re PR tree-optimization/50596 (Problems in vectorization of condition expression)
[gcc.git] / gcc / ChangeLog
1 2011-10-06 Jakub Jelinek <jakub@redhat.com>
2
3 PR tree-optimization/50596
4 * tree-vectorizer.h (vect_is_simple_cond): New prototype.
5 (NUM_PATTERNS): Change to 6.
6 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
7 function.
8 (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
9 (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
10 if it already has one, and don't set STMT_VINFO_VECTYPE in it
11 if it is already set.
12 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
13 COND_EXPR in pattern stmts.
14 (vect_is_simple_cond): No longer static.
15
16 2001-10-06 Richard Henderson <rth@redhat.com>
17
18 * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
19 * config/i386/sse.md (sseshuffint): Remove.
20 (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
21 (VSHUFFLE_AVX2): New mode iterator.
22 (vshuffle<mode>): Use it.
23 (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
24
25 * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
26 for vector_all_ones_operand.
27 (ix86_expand_int_vcond): Distinguish between comparison mode
28 and data mode. Allow them to differ.
29 (ix86_expand_vshuffle): Don't force data mode to match maskmode.
30
31 2001-10-06 Richard Henderson <rth@redhat.com>
32
33 * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
34 mask operand. Tidy the code.
35
36 2011-10-06 Jakub Jelinek <jakub@redhat.com>
37
38 * tree-vect-patterns.c (vect_pattern_recog_1): Use
39 vect_recog_func_ptr typedef for the first argument.
40 (vect_pattern_recog): Rename vect_recog_func_ptr variable
41 to vect_recog_func, use vect_recog_func_ptr typedef for it.
42
43 PR tree-optimization/49279
44 * tree-ssa-structalias.c (find_func_aliases): Don't handle
45 CAST_RESTRICT.
46 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
47 restrict propagation.
48 * tree-ssa.c (useless_type_conversion_p): Don't return false
49 if TYPE_RESTRICT differs.
50
51 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
52
53 * function.c (thread_prologue_and_epilogue_insns): Build a vector
54 of unconverted simple return blocks rather than trying to
55 recompute them later based on bb_flags bitmap tests.
56
57 2011-10-06 Michael Matz <matz@suse.de>
58
59 * tree-flow.h (get_var_ann): Don't declare.
60 * tree-flow-inline.h (get_var_ann): Remove.
61 (set_is_used): Use var_ann, not get_var_ann.
62 * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
63 * tree-profile.c (gimple_gen_edge_profiler): Call
64 find_referenced_var_in.
65 (gimple_gen_interval_profiler): Ditto.
66 (gimple_gen_pow2_profiler): Ditto.
67 (gimple_gen_one_value_profiler): Ditto.
68 (gimple_gen_average_profiler): Ditto.
69 (gimple_gen_ior_profiler): Ditto.
70 (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
71 (gimple_gen_ic_func_profiler): Call add_referenced_var.
72 * tree-mudflap.c (execute_mudflap_function_ops): Call
73 add_referenced_var.
74
75 2011-10-06 Jakub Jelinek <jakub@redhat.com>
76
77 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
78 don't set SSA_NAME_DEF_STMT that has been already set by
79 gimple_build_assign_with_ops.
80 (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
81 vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
82 Likewise.
83
84 * tree.h (avoid_folding_inline_builtin): New prototype.
85 * builtins.c (avoid_folding_inline_builtin): No longer static.
86 * gimple-fold.c (gimple_fold_builtin): Give up if
87 avoid_folding_inline_builtin returns true.
88
89 2011-10-06 Richard Guenther <rguenther@suse.de>
90
91 * tree-vect-generic.c (vector_element): Look at previous
92 generated results.
93
94 2011-10-06 David Edelsohn <dje.gcc@gmail.com>
95
96 PR target/39950
97 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
98 __powerpc__, __PPC__, __unix__.
99
100 2011-10-06 Michael Matz <matz@suse.de>
101
102 * i386/i386.opt (recip_mask, recip_mask_explicit,
103 x_recip_mask_explicit): New variables and cl_target member.
104 (mrecip=): New option.
105 * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
106 RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
107 (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
108 TARGET_RECIP_VEC_SQRT): New tests.
109 * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
110 (sqrt<mode>2): Check TARGET_RECIP_SQRT.
111 * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
112 (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
113 * i386/i386.c (ix86_option_override_internal): Set recip_mask
114 for -mrecip and -mrecip=options.
115 (ix86_function_specific_save): Save recip_mask_explicit.
116 (ix86_function_specific_restore): Restore recip_mask_explicit.
117
118 * doc/invoke.texi (ix86 Options): Document the new option.
119
120 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
121
122 PR target/49049
123 * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
124
125 2011-10-06 Ulrich Weigand <ulrich.weigand@linaro.org>
126
127 PR target/50305
128 * config/arm/arm.c (arm_legitimize_reload_address): Recognize
129 output of a previous pass through legitimize_reload_address.
130 Do not attempt to optimize addresses if the base register is
131 equivalent to a constant.
132
133 2011-10-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
134
135 * function.c (thread_prologue_and_epilogue_insns): Mark
136 last_bb_active as possibly unused. It is unused for targets which
137 do neither have "return" nor "simple_return" expanders.
138
139 2011-10-06 Richard Guenther <rguenther@suse.de>
140
141 * fold-const.c (fold_ternary_loc): Also fold non-constant
142 vector CONSTRUCTORs. Make more efficient.
143 * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
144 (cprop_into_stmt): Don't propagate into virtual operands.
145 (optimize_stmt): Really dump original statement.
146
147 2011-10-06 Nick Clifton <nickc@redhat.com>
148
149 * config/rx/rx.md (smin3): Revert previous delta.
150
151 2011-10-06 Richard Guenther <rguenther@suse.de>
152
153 PR tree-optimization/38884
154 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
155 reads from aggregate SSA names.
156
157 2011-10-05 Jakub Jelinek <jakub@redhat.com>
158
159 * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
160 argument, truncate it at the beginning instead of allocating there
161 and freeing at the end.
162 (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
163 pass its address to vect_pattern_recog_1.
164
165 2011-10-05 David S. Miller <davem@davemloft.net>
166
167 * config/sparc/sparc.opt (POPC): New option.
168 * doc/invoke.texi: Document it.
169 * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
170 default on Niagara-2 and later.
171 * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
172 * config/sparc/sparc.md (SIDI): New mode iterator.
173 (ffsdi2): Delete commented out pattern and comments.
174 (popcount<mode>2, clz<mode>2): New expanders.
175 (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
176 *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
177
178 2011-10-06 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
179
180 PR middle-end/50607
181 * c-tree.h (c_expr_t): New typedef for struct c_expr.
182 (C_EXPR_APPEND): New macro.
183 * c-parser.c (c_parser_get_builtin_args): Preserve
184 original_tree_code of c_expr structure.
185 (c_parser_postfix_expression): Adjust to the new function.
186
187 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
188
189 * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
190 if profiling after the prologue.
191
192 2011-10-05 Jakub Jelinek <jakub@redhat.com>
193
194 PR tree-optimization/50613
195 * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
196 operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
197 and if it is neither that not SSA_NAME, give up.
198
199 2011-10-05 Richard Henderson <rth@redhat.com>
200
201 * tree-vect-generic.c (vector_element): Never fail. Use
202 build_zero_cst. Tidy up type references.
203 (lower_vec_shuffle): Never fail. Mask shuffle indicies. Reduce
204 code duplication. Do update_stmt here ...
205 (expand_vector_operations_1): ... not here.
206
207 * config/i386/i386.c (ix86_expand_vshuffle): Never fail. Handle
208 TARGET_XOP. Fix pshufb constant vector creation. Reduce code
209 duplication. Handle V2DI without SSE4.1.
210 * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
211 * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
212
213 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
214
215 * config/i386/i386.c (distance_non_agu_define): Simplify calculation
216 of "found". Simplify return value calculation.
217 (distance_agu_use): Ditto.
218
219 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
220
221 PR bootstrap/50621
222 * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
223 if the function was not shrink-wrapped.
224 (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
225 to an insn.
226 * function.c (thread_prologue_and_epilogue_insns): Make sure the
227 shrink_wrapped flag is set even if there is no dump file.
228
229 2011-10-05 DJ Delorie <dj@redhat.com>
230 Nick Clifton <nickc@redhat.com>
231
232 * config/rx/rx.opt (mpid): Define.
233 * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
234 (MULTILIB_DIRNAMES): Add pid.
235 * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
236 (rx_num_interrupt_regs): New variable.
237 (rx_gp_base_regnum): New function. Returns the number of the
238 small data area register.
239 (rx_pid_base_regnum): New function. Returns the number of the pid
240 base register.
241 (rx_decl_for_addr): New function. Returns the symbolic part of a MEM.
242 (rx_pid_data_operand): New function. Returns whether an object is
243 in the position independent data area.
244 (rx_legitimize_address): New function. Puts undecided PID
245 objects in the PID data area.
246 (rx_is_legitimate_address): Add support for PID operands.
247 (rx_print_operand_address): Likewise.
248 (rx_print_operand): Likewise.
249 (rx_maybe_pidify_operand): New function. Determine if an operand
250 is suitable for PID addressing.
251 (rx_gen_move_template): Add PID support.
252 (rx_conditional_register_usage): Likewise.
253 (rx_option_override): Initialise rx_num_interrupt_regs.
254 (rx_is_legitimate_constant): Add support for PID constants.
255 (TARGET_LEGITIMIZE_ADDRESS): Define.
256 * config/rx/constraints.md (Rpid): Define.
257 (Rpda): Define.
258 * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
259 (tablejump): Add PID support.
260 (mov<>): Likewise.
261 (mov<>_internal): Likewise.
262 (addsi3): Convert to an expander. Add PID support.
263 (pid_addr): New pattern.
264 * config/rx/rx.h (CPP_SPEC): Define.
265 (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
266 (CASE_VECTOR_PC_RELATIVE): Define.
267 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
268 * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
269 * doc/invoke.texi (RX Options): Document -mpid command line option.
270
271 2011-10-05 Richard Guenther <rguenther@suse.de>
272
273 PR tree-optimization/38885
274 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
275 from constants.
276
277 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
278
279 * doc/invoke.texi (-fshrink-wrap): Document.
280 * opts.c (default_options_table): Add it.
281 * common.opt (fshrink-wrap): Add.
282 * function.c (emit_return_into_block): Remove useless declaration.
283 (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
284 requires_stack_frame_p, gen_return_pattern): New static functions.
285 (emit_return_into_block): New arg simple_p. All callers changed.
286 Use gen_return_pattern.
287 (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
288 * config/i386/i386.md (return): Expand into a simple_return.
289 (simple_return): New expander):
290 (simple_return_internal, simple_return_internal_long,
291 simple_return_pop_internal_long, simple_return_indirect_internal):
292 Renamed from return_internal, return_internal_long,
293 return_pop_internal_long and return_indirect_internal; changed to use
294 simple_return.
295 * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
296 simple returns.
297 (ix86_pad_returns): Likewise.
298 * function.h (struct rtl_data): Add member shrink_wrapped.
299 * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
300 are not jumps or sibcalls can't be compared.
301
302 2011-10-05 Richard Guenther <rguenther@suse.de>
303
304 * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
305 vector type.
306 (simplify_unary_expression): Handle BIT_FIELD_REFs.
307 (try_to_simplify): Handle BIT_FIELD_REFs.
308
309 2011-10-05 Georg-Johann Lay <avr@gjlay.de>
310
311 * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
312 * config/avr/avr.c (avr_out_addto_sp): New function.
313 (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
314 * config/avr/avr.md (adjust_len): Add "addto_sp".
315 (*movhi_sp): Remove insn.
316 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
317
318 2011-10-05 Richard Guenther <rguenther@suse.de>
319
320 * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
321 with an embedded expression valueize and fold that as well.
322 * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
323 results from gimple_fold_stmt_to_constant_1.
324
325 2011-10-05 Nick Clifton <nickc@redhat.com>
326
327 * config/rx/rx.md (tablejump): Add missing label.
328 (adddi3_internal): Mark operand 0 as early-clobbered.
329 (smaxsi3): Revert previous delta.
330 (adc_internal): Fix whitespace in generated asm.
331 (adc_flags): Likewise.
332
333 2011-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
334
335 * expmed.c (expand_mult_highpart_optab): Replace optab_handler
336 with the new widening_optab_handler.
337
338 2011-10-05 Richard Guenther <rguenther@suse.de>
339
340 PR tree-optimization/50609
341 * gimple-fold.c (fold_array_ctor_reference): Also handle
342 vector typed constructors.
343 (fold_ctor_reference): Dispatch to fold_array_ctor_reference
344 for vector typed constructors.
345
346 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
347
348 * config/i386/i386.c (ix86_emit_binop): New static function.
349 (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
350 instructions.
351 (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
352
353 2011-10-04 David S. Miller <davem@davemloft.net>
354
355 * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
356 UNSPEC_XMUL): New unspecs.
357 (muldi3_v8plus): Use output_v8plus_mult.
358 (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
359 New VIS 3.0 combiner patterns.
360 (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
361 fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
362 umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
363 xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
364 builtins patterns.
365 * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
366 (output_v8plus_mult): New function.
367 * config/sparc/sparc-protos.h: Declare it.
368 * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
369 __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
370 __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
371 * doc/extend.texi: Document new builtins.
372
373 2011-10-04 Richard Henderson <rth@redhat.com>
374
375 * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
376 Avoid save_expr unless two_arguments.
377
378 2011-10-04 Ozkan Sezer <sezeroz@gmail.com>
379
380 * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
381 * config/i386/mingw32.h (CPP_SPEC): Likewise.
382
383 2011-10-04 David S. Miller <davem@davemloft.net>
384
385 * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
386 under Linux.
387
388 2011-10-04 Jakub Jelinek <jakub@redhat.com>
389
390 PR tree-optimization/50604
391 * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
392 fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
393 last argument to memcpy has size_type_node type instead of ssizetype.
394 * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
395 instead of TREE_TYPE (len) as type for newlen.
396
397 PR tree-optimization/50522
398 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
399 TYPE_RESTRICT.
400 (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
401 unconditionally.
402
403 * fold-const.c (fold_unary_loc): Don't optimize
404 POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
405 casting the inner pointer if it isn't TYPE_RESTRICT.
406 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
407 casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
408
409 2011-10-04 Joseph Myers <joseph@codesourcery.com>
410
411 * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
412
413 2011-10-04 Jan Hubicka <jh@suse.cz>
414
415 * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
416 * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
417 * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
418 * lto-cgraph.c (order_base): New static var.
419 (lto_output_node): Stream in order.
420 (lto_output_varpool_node): Stream out order.
421 (input_node): Stream in order.
422 (input_varpool_node): Stream out order.
423 (input_cgraph_1): Initialize order base; update call of
424 lto_input_toplevel_asms.
425
426 2011-10-04 Georg-Johann Lay <avr@gjlay.de>
427
428 PR target/50566
429 * config/avr/avr-protos.h (avr_legitimize_reload_address): New
430 prototype.
431 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
432 from here...
433 * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
434 function. Log if avr_log.legitimize_reload_address.
435
436 2011-10-04 Eric Botcazou <ebotcazou@adacore.com>
437
438 * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
439
440 2011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
441
442 * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
443 variables. Fix second operand of DR. Swap inputs for sdiv_qrnnd.
444
445 2011-10-03 David S. Miller <davem@davemloft.net>
446
447 * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
448 GSR_REG an input operand to UNSPEC instead of a parallel USE.
449 (faligndata<V64I:mode>_vis): Likewise and use DI mode.
450 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
451 Reference GSR_REG in DI mode, simplify convoluted expressions by using
452 zero_extract.
453 (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
454
455 2011-10-03 Maxim Kuvyrkov <maxim@codesourcery.com>
456
457 * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
458
459 2011-10-03 Jakub Jelinek <jakub@redhat.com>
460 Ian Lance Taylor <iant@google.com>
461
462 * godump.c (go_output_typedef): Support printing enum values that
463 don't fit in a signed HOST_WIDE_INT.
464
465 2011-10-03 Anatoly Sokolov <aesok@post.ru>
466
467 * config/cris/cris.c (cris_output_addr_const_extra): Make static.
468 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
469 * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
470 * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
471
472 2011-10-03 Anatoly Sokolov <aesok@post.ru>
473
474 * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
475 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
476 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
477 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
478
479 2011-10-03 Steve Ellcey <sje@cup.hp.com>
480
481 PR target/49967
482 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
483 (gcc_cv_ld_static_option): Ditto.
484 (gcc_cv_ld_dynamic_option): Ditto.
485 * configure: Regenerate.
486
487 2011-10-03 David S. Miller <davem@davemloft.net>
488
489 * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
490 and 'si' patterns which describe the GSR changes explicitly in the
491 RTL using zero_extract.
492 (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
493
494 * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
495 GSR_REG in a USE, since it's now a true arg to the UNSPEC.
496
497 2011-10-03 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
498
499 * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
500 if given expression can be expanded by the target.
501 (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
502 using target vector instructions.
503 * optabs.h: New optab vshuffle.
504 (expand_vec_shuffle_expr_p): New prototype.
505 (expand_vec_shuffle_expr): New prototype.
506 (vshuffle_optab): New optab.
507 * genopinit.c: Adjust to support vecshuffle.
508 * c-tree.h (c_build_vec_shuffle_expr): New prototype.
509 * expr.c (expand_expr_real_2): Adjust.
510 * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
511 recognizing the cases of two and three arguments.
512 (convert_arguments) (build_binary_op)
513 (scalar_to_vector) (build_array_ref): Spurious whitespace.
514 * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
515 * tree.def: New tree code VEC_SHUFFLE_EXPR.
516 * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
517 * tree-vect-generic.c (vector_element): New function. Returns an
518 element of the vector at the given position.
519 (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
520 by the backend or expand an expression piecewise.
521 (expand_vector_operations_1): Adjusted.
522 (gate_expand_vector_operations_noop): New gate function.
523 * Makefile.in (tree-vect-generic.o): New include.
524 * gimple.c (get_gimple_rhs_num_ops): Adjust.
525 * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
526 * passes.c: Move veclower down.
527 * tree-pretty-print.c (dump_generic_node): Recognize
528 VEC_SHUFFLE_EXPR as valid expression.
529 * c-parser.c (c_parser_get_builtin_args): Helper function for the
530 builtins with variable number of arguments.
531 (c_parser_postfix_expression): Use a new helper function for
532 RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
533 * tree-ssa-operands: Adjust.
534 * c-family/c-common.c: New __builtin_shuffle keyword.
535 * c-family/c-common.h: New __builtin_shuffle keyword.
536 * gcc/doc/extend.texi: Adjust.
537
538 * gcc/config/i386/sse.md: (sseshuffint) New mode_attr. Correspondence
539 between the vector and the type of the mask when shuffling.
540 (vecshuffle<mode>): New expansion.
541 * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
542 * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
543 (ix86_vectorize_builtin_vec_perm_ok): Adjust.
544
545 2011-10-03 Jakub Jelinek <jakub@redhat.com>
546
547 PR tree-optimization/50587
548 * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
549 arg0 is not a SSA_NAME.
550
551 2011-10-03 Richard Sandiford <rdsandiford@googlemail.com>
552
553 * ipa-inline-analysis.c (MAX_TIME): Update comment.
554
555 2011-10-02 Richard Henderson <rth@redhat.com>
556 David S. Miller <davem@davemloft.net>
557
558 * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
559 conditional insn type setting, we always emit a shift.
560 (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
561 (*lshrsi3_extend): Rename to *lshrsi3_extend1.
562 * config/sparc/predicates.md (const_one_operand): Delete.
563
564 2011-10-02 Gerald Pfeifer <gerald@pfeifer.com>
565
566 * invoke.texi (SPARC Options): Refer to GNU/Linux.
567
568 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
569
570 * config/mips/mips.c (mips_frame_barrier): New function.
571 (mips_expand_prologue): Call it after allocating stack space.
572 (mips_deallocate_stack): New function.
573 (mips_expand_epilogue): Call mips_frame_barrier and
574 mips_deallocate_stack.
575
576 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
577
578 PR target/49696
579 * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
580 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
581 (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
582
583 2011-10-02 Jan Hubicka <jh@suse.cz>
584
585 * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
586
587 * cgraphunit.c (ipa_passes): Remove unrechable nodes.
588 * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
589 * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
590 functions are reachable when address is taken.
591 * tree-sra.c (modify_function): Free dominance info.
592
593 2011-10-02 Jan Hubicka <jh@suse.cz>
594
595 * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
596
597 * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
598 (reset_inline_summary): New function.
599 (compute_inline_parameters, inline_node_removal_hook,
600 inline_edge_removal_hook): Use it.
601 (inline_free_summary): Reset holders correctly.
602 (inline_generate_summary): Free summary before computing it.
603
604 2011-10-02 Paolo Carlini <paolo.carlini@oracle.com>
605
606 PR preprocessor/36819
607 * incpath.c (merge_include_chains): Call free_path on
608 heads[QUOTE] and tails[QUOTE].
609
610 2011-10-02 Jan Hubicka <jh@suse.cz>
611
612 PR lto/47247
613 * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
614 when resolution is already availbale from plugin.
615 (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
616 * cgraph.c (ld_plugin_symbol_resolution): Add
617 prevailing_def_ironly_exp.
618 * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
619 * ipa.c (varpool_externally_visible_p): IRONLY variables are never
620 externally visible.
621 * varasm.c (resolution_to_local_definition_p): Add
622 LDPR_PREVAILING_DEF_IRONLY_EXP.
623 (resolution_local_p): Likewise.
624
625 2011-10-01 David S. Miller <davem@davemloft.net>
626
627 * config/sparc/sparc.opt (VIS3): New option.
628 * doc/invoke.texi: Document it.
629 * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
630 not capable of such instructions.
631 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
632 to 0x300 when TARGET_VIS3.
633 * config/sparc/sparc-modes.def: Create 16-byte vector modes.
634 * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
635 UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
636 (V64N8, VASS): New mode iterators.
637 (vis3_shift, vis3_addsub_ss): New code iterators.
638 (vbits, vconstr): New mode attributes.
639 (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
640 (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
641 fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
642 fmean16_vis, fpadd64_vis, fpsub64_vis,
643 <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
644 VIS 3.0 instruction patterns.
645 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
646 default when targetting capable cpus. TARGET_VIS3 implies
647 TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
648 (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
649 (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
650 is ignored.
651 * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
652 __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
653 __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
654 __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
655 __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
656 __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
657 __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
658 __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
659 * doc/extend.texi: Document new VIS 3.0 builtins.
660
661 2011-10-01 Eric Botcazou <ebotcazou@adacore.com>
662
663 * ira-color.c (assign_hard_reg): Fix typo.
664
665 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
666
667 * doc/extend.texi: Add missing ','.
668
669 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
670
671 * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
672 Enable -fmodulo-sched at -O2 and above.
673 * config/c6x/c6x.md (doloop_end): New expander.
674 (mvilc, sploop, spkernel, loop_end): New patterns.
675 (loop_end with memory destination splitter): New.
676 * config/c6x/c6x.c: Include "hw-doloop.h".
677 (enum unitreqs): New.
678 (unit_req_table): New typedef.
679 (unit_reqs): New static variable.
680 (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
681 res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
682 hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
683 hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
684 (struct c6x_sched_context): New member last_scheduled_iter0.
685 (init_sched_state): Initialize it.
686 (c6x_variable_issue): Update it.
687 (sploop_max_uid_iter0): New static variable.
688 (c6x_sched_reorder_1): Be careful about issuing sploop.
689 (c6x_reorg): Call c6x_hwlooops before the final schedule.
690
691 2011-09-30 Georg-Johann Lay <avr@gjlay.de>
692
693 PR target/50566
694 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
695 * config/avr/avr.c (avr_address_cost): Use it.
696 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
697 (avr_log_vadump): Unknown %-codes finish printing.
698
699 2011-09-30 Jakub Jelinek <jakub@redhat.com>
700
701 PR inline-asm/50571
702 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
703 input constraints allow mem and not reg, pass true instead of
704 false as second argument to maybe_fold_reference.
705
706 PR tree-optimization/46309
707 * fold-const.c (make_range, merge_ranges): Remove prototypes.
708 (make_range_step): New function.
709 (make_range): Use it.
710 * tree.h (make_range_step): New prototypes.
711 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
712 * tree-ssa-reassoc.c: Include diagnostic-core.h.
713 (struct range_entry): New type.
714 (init_range_entry, range_entry_cmp, update_range_test,
715 optimize_range_tests): New functions.
716 (reassociate_bb): Call optimize_range_tests.
717
718 2011-09-30 Jakub Jelinek <jakub@redhat.com>
719 Richard Guenther <rguenther@suse.de>
720
721 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
722 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
723 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
724 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
725 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
726 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
727
728 2011-09-30 Jan Beulich <jbeulich@suse.com>
729
730 * lto-cgraph.c (output_cgraph): Remove processing of
731 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
732 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
733 lto_input_toplevel_asms() instead.
734 * lto-section-in.c (lto_section_name): Add "asm" entry.
735 * lto-streamer-in.c (lto_input_toplevel_asms): New.
736 * lto-streamer-out.c (lto_output_toplevel_asms): New.
737 * lto-streamer.h (LTO_minor_version): Bump.
738 (enum lto_section_type): Add LTO_section_asm.
739 (struct lto_asm_header): New.
740 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
741 * tree-streamer.h (streamer_write_string_cst): Declare.
742 * tree-streamer-out.c (write_string_cst): Rename to
743 streamer_write_string_cst and make global. Handle incoming string
744 being NULL.
745 (streamer_write_tree_header): Adjust call to renamed function.
746
747 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
748
749 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
750 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
751 modulo_last_stage): New static variables.
752 (set_modulo_params, discard_delay_pairs_above): New functions.
753 (struct delay_pair): New member stages.
754 (htab_i2_traverse, htab_i1_traverse): New static functions.
755 (record_delay_slot_pair): New arg stages. All callers changed.
756 Record it.
757 (pair_delay): Take stages into account.
758 (add_delay_dependencies): Don't do so for stage pairs.
759 (struct sched_block_state): New member modulo_epilogue.
760 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
761 (unschedule_insns_until): Decrease modulo_insns_scheduled.
762 Set HARD_DEP without using or.
763 (resolve_dependencies): New static function.
764 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
765 If it is true, allow only insns with INSN_EXACT_TICK set.
766 (schedule_block): Return bool, always true for normal scheduling,
767 true or false depending on modulo scheduling success otherwise.
768 Add bookkeeping for modulo scheduling, and call resolve_dependencies
769 on everything left over after a modulo schedule.
770 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
771 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
772 declarations.
773 (set_modulo_params, discard_delay_pairs_above): Declare.
774 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
775 * doc/invoke.texi (--param): Document it.
776
777 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
778 New arg modulo_scheduling. All callers changed. Move note handling
779 code here from schedule_ebbs.
780 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
781 out of schedule_ebbs.
782 (schedule_ebbs): Call them. Remove note handling code moved to
783 schedule_ebb.
784 * sched-int.h (schedule_ebb, schedule_ebbs_init,
785 schedule_ebbs_finish): Declare.
786
787 2011-09-30 Richard Guenther <rguenther@suse.de>
788
789 PR middle-end/50574
790 * tree-cfg.c (verify_gimple_comparison): Compare component
791 mode sizes for vector comparisons.
792
793 2011-09-30 Revital Eres <revital.eres@linaro.org>
794
795 * ddg.c (autoinc_var_is_used_p): New function.
796 (create_ddg_dep_from_intra_loop_link,
797 add_cross_iteration_register_deps): Call it.
798 * ddg.h (autoinc_var_is_used_p): Declare.
799 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
800 (sms_schedule): Handle instructions with REG_INC.
801
802 2011-09-30 Revital Eres <revital.eres@linaro.org>
803
804 * modulo-sched.c (generate_reg_moves): Skip instructions that
805 do not set a register and verify no regmoves are created for
806 !single_set instructions.
807
808 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
809
810 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
811 insns.
812
813 2011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
814
815 PR target/50099
816 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
817 (qhs_zextenddi_op): New.
818 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
819 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
820 Distinguish between ARM and Thumb2 states.
821
822 2011-09-30 David S. Miller <davem@davemloft.net>
823
824 * config/sparc/sparc.opt (VIS2): New option.
825 * doc/invoke.texi: Document it.
826 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
827 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
828 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
829 (define_attr type): New insn type 'edgen'.
830 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
831 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
832 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
833 patterns.
834 * niagara.md: Handle edgen.
835 * niagara2.md: Likewise.
836 * ultra1_2.md: Likewise.
837 * ultra3.md: Likewise.
838 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
839 to 0x200 when TARGET_VIS2.
840 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
841 default when targetting capable cpus. TARGET_VIS2 implies
842 TARGET_VIS, clear and it when TARGET_FPU is disabled.
843 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
844 (sparc_expand_builtin): Fix predicate indexing when builtin returns
845 void.
846 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
847 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
848 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
849 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
850 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
851 * doc/extend.texi: Document new VIS 2.0 builtins.
852
853 2011-09-29 Nick Clifton <nickc@redhat.com>
854 Bernd Schmidt <bernds@codesourcery.com>
855
856 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
857 * config/frv/frvend.c: Likewise.
858 * config/frv/frv.c (frv_function_prologue): Move misplaced
859 CALL_ARG_LOCATION notes back to their proper locations.
860
861 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
862
863 PR target/50566
864 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
865 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
866 from avr_rtx_costs.
867 (avr_legitimate_address_p): Use avr_edump to print log information
868 filtered by avr_log.
869 (extra_constraint_Q): Ditto.
870 (avr_legitimize_address): Ditto.
871 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
872 (final_prescan_insn): Use avr_log.rtx_costs as filter.
873
874 2011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
875
876 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
877 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
878 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
879 NEON vector and structure modes to be tied.
880
881 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
882
883 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
884 forward declaration.
885 (remove_duplicate_close_phi): Detect and repair creation of
886 duplicate close-phis for a containing loop.
887
888 2011-09-27 Andi Kleen <ak@linux.intel.com>
889
890 * gcc.c (get_local_tick). Rename to get_random_number. Read from
891 /dev/urandom. Add getpid call.
892 (compare_debug_dump_opt_spec_function): Drop getpid call.
893
894 2011-09-26 Andi Kleen <ak@linux.intel.com>
895
896 * toplev.c (init_local_tick): Try reading random seed
897 from /dev/urandom.
898
899 2011-09-26 Andi Kleen <ak@linux.intel.com>
900
901 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
902 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
903 Handle numerical random seed.
904 * lto-streamer.h (lto_file_decl_data): Change id to
905 unsigned HOST_WIDE_INT.
906 * toplev.c (random_seed): Add.
907 (init_random_seed): Change for numerical random seed.
908 (get_random_seed): Return as HOST_WIDE_INT.
909 (set_random_seed): Crc32 existing string.
910 * toplev.h (get_random_seed): Change to numercal return.
911 * tree.c (get_file_function_name): Remove CRC. Handle
912 numerical random seed.
913
914 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
915
916 PR target/50566
917 * config.gcc (extra_objs): Add avr-log.o for $target in:
918 avr-*-rtems*, avr-*-*.
919 * config/avr/t-avr (avr-log.o): New rule to compile...
920 * config/avr/avr-log.c: ...this new file.
921 * config/avr/avr.opt (mlog=): New option.
922 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
923 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
924 (avr_log_set_avr_log): New prototype.
925 (avr_log_t): New typedef.
926 (avr_log): New declaration.
927 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
928
929 2011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
930
931 * expr.c (do_store_flag): Expand vector comparison by
932 building an appropriate VEC_COND_EXPR.
933 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
934 (c_objc_common_truthvalue_conversion): Adjust.
935 * tree-vect-generic.c (do_compare): Helper function.
936 (expand_vector_comparison): Check if hardware supports
937 vector comparison of the given type or expand vector piecewise.
938 (expand_vector_operation): Treat comparison as binary
939 operation of vector type.
940 (expand_vector_operations_1): Adjust.
941
942 2011-09-29 Richard Guenther <rguenther@suse.de>
943
944 * tree.c (build_opaque_vector_type): Make opaque vectors
945 variant types of the corresponding non-opaque type. Make
946 sure to share opaque vector types properly.
947
948 2011-09-29 David S. Miller <davem@davemloft.net>
949
950 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
951 UNSPEC_ARRAY32): New unspec.
952 (define_attr type): New type 'array'.
953 (array{8,16,32}<P:mode>_vis): New patterns.
954 * config/sparc/ultra1_2.md: Add reservations for 'array'.
955 * config/sparc/ultra3.md: Likewise.
956 * config/sparc/niagara.md: Likewise.
957 * config/sparc/niagara2.md: Likewise.
958 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
959 array builtins.
960 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
961 __vis_array32): New.
962 * doc/extend.texi: Document new VIS builtins.
963
964 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
965 (VIS pixel-compare insn): Just use <gcond:name>.
966
967 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
968 code iterator used, so just use <code>. There are two mode iterators
969 so explicitly use <GCM:gcm_name>.
970
971 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
972
973 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
974 Darwin >= 9.
975
976 2011-09-28 David S. Miller <davem@davemloft.net>
977
978 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
979 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
980 (UNSPEC_FCMP): New unspec.
981 (gcond): New code iterator.
982 (gcond_name): New code attr.
983 (GCM): New mode iterator.
984 (gcm_name): New mode attr.
985 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
986
987 2011-09-28 Oleg Endo <oleg.endo@t-online.de>
988
989 PR target/49486
990 * config/sh/sh.md (negdi2): Move expansion into split to
991 allow more combination options. Add T_REG clobber.
992 (abssi2): New expander.
993 (*negdi2, *abssi2, *negabssi2): New insns.
994 (cneg): Change from insn to insn_and_split. Rename to
995 negsi_cond. Add alternative for non-SH4.
996
997 2011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
998
999 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
1000 (neon_move_hi_quad_<mode>): Likewise.
1001 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
1002
1003 2011-09-28 Nick Clifton <nickc@redhat.com>
1004
1005 * config/rx/predicates.md (rx_minmax_operand): New predicate.
1006 Accepts immediates and a restricted subset of MEMs.
1007 * config/rx/rx.md (int_modes): New iterator.
1008 (smaxsi3, sminsi3): Delete and replace with...
1009 (smax<int_mode>3, smin<int_mode>3): New patterns.
1010 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
1011
1012 2011-09-28 Richard Guenther <rguenther@suse.de>
1013
1014 PR middle-end/50460
1015 * fold-const.c (try_move_mult_to_index): Handle &a.array the
1016 same as &a.array[0].
1017
1018 2011-09-28 Kai Tietz <ktietz@redhat.com>
1019
1020 * configure.ac: Add test for new section attribute
1021 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
1022 * config.in: Regenerated.
1023 * configure: Regenerated.
1024 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
1025 new section flag "e" for excluded sections, if supported.
1026 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
1027
1028 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
1029
1030 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
1031 throughout file.
1032
1033 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
1034
1035 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
1036 throughout file.
1037
1038 2011-09-27 Sriraman Tallam <tmsriram@google.com>
1039
1040 * output.h (SECTION_EXCLUDE): New macro.
1041 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
1042
1043 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
1044
1045 * fwprop.c (forward_propagate_and_simplify): After checking
1046 reg/subreg combinations, check whether the modes are the same.
1047
1048 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
1049 Richard Sandiford <rdsandiford@googlemail.com>
1050
1051 * config/mips/mips.c (mips_add_cfa_restore): New function.
1052 (mips16e_save_restore_reg): Use it.
1053 (mips_restore_reg): Likewise. Split double FPRs for
1054 REG_CFA_RESTORE notes.
1055
1056 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
1057
1058 PR middle-end/50386
1059 PR middle-end/50326
1060 * tree-sra.c (build_ref_for_model): Use the type of the field as
1061 the type of the COMPONENT_REF.
1062
1063 2011-09-27 Jeff Law <law@redhat.com>
1064
1065 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
1066 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
1067 (find_if_case_1): Use the probability of the THEN clause when
1068 determining if speculation is profitable.
1069 (find_if_case_2): Similarly for the ELSE clause.
1070
1071 2011-09-27 Jakub Jelinek <jakub@redhat.com>
1072
1073 * common.opt: Add -foptimize-strlen option.
1074 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
1075 (tree-sssa-strlen.o): Add dependencies.
1076 * opts.c (default_options_table): Enable -foptimize-strlen
1077 by default at -O2 if not -Os.
1078 * passes.c (init_optimization_passes): Add pass_strlen
1079 after pass_object_sizes.
1080 * timevar.def (TV_TREE_STRLEN): New timevar.
1081 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
1082 * tree-pass.h (pass_strlen): Declare.
1083 * tree-ssa-strlen.c: New file.
1084 * c-decl.c (merge_decls): If compatible stpcpy prototype
1085 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
1086
1087 2011-09-27 Tom de Vries <tom@codesourcery.com>
1088
1089 PR middle-end/43864
1090 * tree-ssa-tail-merge.c: New file.
1091 (struct same_succ_def): Define.
1092 (same_succ, const_same_succ): New typedef.
1093 (struct bb_cluster_def): Define.
1094 (bb_cluster, const_bb_cluster): New typedef.
1095 (struct aux_bb_info): Define.
1096 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
1097 (gvn_uses_equal): New function.
1098 (same_succ_print, same_succ_print_traverse, update_dep_bb)
1099 (stmt_update_dep_bb, local_def, same_succ_hash)
1100 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
1101 (same_succ_reset): New function.
1102 (same_succ_htab, same_succ_edge_flags)
1103 (deleted_bbs, deleted_bb_preds): New var.
1104 (debug_same_succ): New function.
1105 (worklist): New var.
1106 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
1107 (init_worklist, delete_worklist, delete_basic_block_same_succ)
1108 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
1109 (print_cluster, debug_cluster, update_rep_bb)
1110 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
1111 (all_clusters): New var.
1112 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
1113 (merge_clusters, set_cluster): New function.
1114 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
1115 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
1116 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
1117 (find_clusters_1, find_clusters): New function.
1118 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
1119 (update_bbs): New var.
1120 (apply_clusters): New function.
1121 (update_debug_stmt, update_debug_stmts): New function.
1122 (tail_merge_optimize): New function.
1123 tree-pass.h (tail_merge_optimize): Declare.
1124 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
1125 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
1126 (tree-ssa-tail-merge.o): New rule.
1127 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
1128 default at OPT_LEVELS_2_PLUS.
1129 * tree-ssa-sccvn.c (vn_valueize): Move to ...
1130 * tree-ssa-sccvn.h (vn_valueize): Here.
1131 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
1132 * common.opt (ftree-tail-merge): New switch.
1133 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
1134 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
1135 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
1136 (-ftree-tail-merge, max-tail-merge-comparisons)
1137 (max-tail-merge-iterations): New item.
1138
1139 2011-09-27 Jan Hubicka <jh@suse.cz>
1140
1141 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
1142
1143 2011-09-27 Jan Hubicka <jh@suse.cz>
1144
1145 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
1146 parameters passed by reference; handle loads from non-SSA scalars
1147 and update comments.
1148
1149 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
1150
1151 PR rtl-optimization/50249
1152 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
1153 instead of opnum and type. All callers changed. Remove useless
1154 declaration.
1155 Search forward for other reloads of the same type for the same operand
1156 using the same register; if any are found, return false.
1157 (reload_regs_reach_end_p): Same argument changes; all callers changed.
1158
1159 2011-09-27 Andi Kleen <ak@linux.intel.com>
1160 Jan Hubicka <jh@suse.cz>
1161
1162 * doc/invoke.texi (ffat-lto-objects): Document.
1163 * toplev.c (compile_file): Do not output assembly when doing slim lto;
1164 Output __gnu_slim_lto when doing slim lto.
1165 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
1166 (cgraph_optimize): Return early when doing slim lto.
1167 * opts.c (finish_options): Complain about lack of linker plugin
1168 when doing slim lto.
1169 * common.opt (ffat-lto-objects): New.
1170
1171 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
1172
1173 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
1174 between signed and unsigned.
1175
1176 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
1177
1178 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
1179 vectorization.
1180 (vectorizable_type_promotion): Likewise.
1181 (vect_analyze_stmt): Call vectorizable_type_demotion and
1182 vectorizable_type_promotion for basic blocks.
1183 (supportable_widening_operation): Don't assume loop vectorization.
1184 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
1185 basic blocks. Update vectorization factor for basic block
1186 vectorization.
1187 (vect_analyze_slp_instance): Allow multiple types for basic block
1188 vectorization. Recheck unrolling factor after construction of SLP
1189 instance.
1190
1191 2011-09-27 Richard Guenther <rguenther@suse.de>
1192
1193 * tree-object-size.c (compute_object_sizes): Fix dumping of
1194 folded statement.
1195
1196 2011-09-27 Richard Guenther <rguenther@suse.de>
1197
1198 PR tree-optimization/50363
1199 * tree-ssa-pre.c (create_expression_by_pieces): Handle
1200 pointer conversions in POINTER_PLUS_EXPRs properly.
1201
1202 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
1203
1204 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
1205 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
1206 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
1207 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
1208 that produce subreg moves. Define using VQX iterators.
1209
1210 2011-09-27 Georg-Johann Lay <avr@gjlay.de>
1211
1212 * config/avr/avr.md (ashrqi3): Split alternative "n"
1213 into its remaining parts C03, C04, C05, C06, C07 and describe
1214 impact in CC by attribute "cc" appropriately.
1215 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
1216 by digging RTX.
1217
1218 2011-09-27 Jakub Jelinek <jakub@redhat.com>
1219
1220 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
1221 from 3 x MAX_MACHINE_MODE.
1222 (CONSTM1_RTX): Define.
1223 * emit-rtl.c (const_tiny_rtx): Change into array of
1224 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
1225 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
1226 CONSTM1_RTX.
1227 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
1228 MODE_VECTOR_INT modes.
1229 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
1230 Optimize if one operand is CONSTM1_RTX.
1231 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
1232 into mask | x.
1233
1234 2011-09-26 David S. Miller <davem@davemloft.net>
1235
1236 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
1237 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
1238 * config/sparc/visintrin.h: Update edge and pixel-compare
1239 intrinsics to return 'long' instead of 'int'.
1240 * doc/extend.texi: Update documentation to match.
1241 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
1242 flat, allow any instruction. Otherwise, when V9 allow parallels
1243 which consist only of sets to registers outside of %o0 to %o5.
1244 (sparc_vis_init_builtins): Update VIS builtin types for edge
1245 and pixel-compare.
1246
1247 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
1248 is enabled, mark %gsr as global.
1249 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
1250 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
1251
1252 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
1253 which will now define __VIS and __VIS__ when -mvis is enabled.
1254 * config/sparc/t-sparc: Likewise.
1255 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
1256 and add t-sparc to tmake_file for all sparc targets.
1257 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
1258 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
1259
1260 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
1261 builtins for VIS vector addition and subtraction.
1262 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
1263 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
1264 __vis_fpsub32, __vis_fpsub32s): New.
1265 * doc/extend.texi: Document new VIS intrinsics.
1266
1267 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
1268
1269 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
1270 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
1271 EQ/NE comparisons against +/-1 in the case of unused-after,
1272 non-ld-regs target.
1273
1274 2011-09-26 Jakub Jelinek <jakub@redhat.com>
1275
1276 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
1277 gctx.into_ssa after push_gimplify_context.
1278
1279 * gimple.c (gimple_build_call_valist): New function.
1280 * gimple.h (gimple_build_call_valist): New prototype.
1281 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
1282 (update_gimple_call): Likewise.
1283 (update_call_from_tree): Use finish_update_gimple_call.
1284 * tree-ssa-propagate.h (update_gimple_call): New prototype.
1285
1286 2011-09-26 Richard Guenther <rguenther@suse.de>
1287
1288 PR tree-optimization/50472
1289 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
1290 volatile references.
1291
1292 2011-09-26 Bingfeng Mei <bmei@broadcom.com>
1293
1294 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
1295 * target.def: (addr_space_subset_p): Likewise.
1296
1297 2011-09-26 Tom de Vries <tom@codesourcery.com>
1298
1299 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
1300 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
1301 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
1302 of new var.
1303
1304 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
1305
1306 PR target/50465
1307 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
1308 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
1309 output_reload_insisf.
1310 (adjust_len): Set default to "no".
1311 Remove alternative "yes". Add alternatives: "mov8", "mov16",
1312 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
1313 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
1314 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
1315 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
1316 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
1317 *lshrsi3_const): Set attribute "adjust_len".
1318 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
1319 (output_movsisf): Don't pass insn to output_reload_insisf.
1320 (adjust_insn_length): Handle new alternatives to adjust_len.
1321 Remove handling of ADJUST_LEN_YES. Clean-up code.
1322
1323 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
1324
1325 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
1326 may_trap_p to detect loads that may trap of fault.
1327
1328 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
1329
1330 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
1331 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
1332 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
1333 prototype.
1334 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
1335 * config/avr/avr.c: Rename output_reload_insisf_1 to
1336 output_reload_in_const.
1337 (avr_popcount_each_byte): Handle SFmode, too.
1338 (output_reload_in_const): Change so it can handle HI loads, too.
1339 Use avr_popcount_each_byte to work out if scratch register must be
1340 created on the fly.
1341 (output_reload_inhi): Rewrite using output_reload_in_const and...
1342 (output_movhi): ...use it to print constants' loads.
1343 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
1344
1345 2011-09-25 David S. Miller <davem@davemloft.net>
1346
1347 * config/sparc/constraints.md (C, P, Z): New constraints for
1348 const_doube, const_int, and const_vector "all ones" values.
1349 Make unused constraint letters comment match reality.
1350 * config/sparc/predicates.md (const_all_ones_operand,
1351 register_or_zero_or_all_ones_operand): New predicates.
1352 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
1353 as well as zero constants when VIS.
1354 (sparc_legitimate_constant_p): Likewise.
1355 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
1356 (movsf_insn): Likewise
1357 (movdi_insn_sp64): Add fone alternative.
1358 (movdf_insn_sp32_v9): Likewise.
1359 (movdf_insn_sp64): Likewise.
1360
1361 * configure.ac: Add feature check to make sure the assembler
1362 supports the FMAF, HPC, and VIS 3.0 instructions found on
1363 Niagara-3 and later cpus.
1364 * configure: Rebuild.
1365 * config.in: Likewise.
1366 * config/sparc/sparc.opt: New option '-mfmaf'.
1367 * config/sparc/sparc.md: Add float fused multiply-add patterns.
1368 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
1369 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
1370 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
1371 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
1372 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
1373 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
1374 disabled.
1375 (sparc_rtx_costs): Handle 'FMA'.
1376 * doc/invoke.texi: Document -mfmaf.
1377
1378 2011-09-25 Jakub Jelinek <jakub@redhat.com>
1379
1380 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
1381 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
1382 DECL_BY_REFERENCE parameters.
1383
1384 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
1385
1386 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
1387 if there is no outgoing edge.
1388
1389 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
1390 integral types.
1391
1392 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
1393
1394 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
1395 of vect_analyze_bb here.
1396 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
1397
1398 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
1399
1400 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
1401 Allow not simple iv if analyzing basic block.
1402 (create_data_ref): Update call to dr_analyze_innermost.
1403 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
1404 * tree-loop-distribution.c (generate_memset_zero): Likewise.
1405 * tree-predcom.c (find_looparound_phi): Likewise.
1406 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
1407
1408 2011-09-24 David S. Miller <davem@davemloft.net>
1409
1410 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
1411 (SPARC_GSR_REG): Define.
1412 (FIXED_REGISTERS): Mark GSR as fixed.
1413 (CALL_USED_REGISTERS): Mark GSR as call used.
1414 (HARD_REGNO_NREGS): GSR is always 1 register.
1415 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
1416 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
1417 (REGISTER_NAMES): Add "%gsr".
1418 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
1419 (UNSPEC_WRGSR): New unspec.
1420 (GSR_REG): New constant.
1421 (type): Add new insn type 'gsr'.
1422 (fpack16_vis, fpackfix_vis, fpack32_vis,
1423 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
1424 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
1425 rdgsr_v8plus): New expanders and insns.
1426 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
1427 using patterns which show that this is a plus in addition to a
1428 modification of GSR_REG, instead of an unspec.
1429 * config/sparc/ultra1_2.md: Handle 'gsr'.
1430 * config/sparc/ultra3.md: Likewise.
1431 * config/sparc/niagara.md: Likewise.
1432 * config/sparc/niagara2.md: Likewise.
1433 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
1434 end of table.
1435 (sparc_option_override): Make -mvis imply -mv8plus.
1436 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
1437 for %gsr.
1438 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
1439 __builtin_vis_read_gsr.
1440 (sparc_expand_buildin): Handle builtins that take one argument and
1441 return void.
1442 (sparc_fold_builtin): Never fold writes to %gsr.
1443 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
1444 * doc/extend.texi: Document new VIS intrinsics.
1445
1446 2011-09-23 Jan Hubicka <jh@suse.cz>
1447
1448 * ipa-inline-transform.c (inline_call): Add comment.
1449 * ipa-inline.h (inline_param_summary): New structure and vector.
1450 (struct inline_edge_summary): Add param field.
1451 * ipa-inline-analysis.c (CHANGED): New constant.
1452 (add_clause): Handle CHANGED and NOT_CONSTANT.
1453 (predicate_probability): New function.
1454 (dump_condition): Dump CHANGED predicate.
1455 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
1456 of unknown function wide invariant.
1457 (evaluate_conditions_for_edge): Handle change probabilities.
1458 (inline_edge_duplication_hook): Copy param summaries.
1459 (inline_edge_removal_hook): Free param summaries.
1460 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
1461 sizes; dump param summaries.
1462 (will_be_nonconstant_predicate): Use CHANGED predicate.
1463 (record_modified_bb_info): New structure.
1464 (record_modified): New function.
1465 (param_change_prob): New function.
1466 (estimate_function_body_sizes): Compute param summaries.
1467 (estimate_edge_size_and_time): Add probability argument.
1468 (estimate_node_size_and_time): Add inline_param_summary argument;
1469 handle predicate probabilities.
1470 (remap_predicate): Fix formating.
1471 (remap_edge_change_prob): New function.
1472 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
1473 (remap_edge_predicates): ... this one.
1474 (inline_merge_summary): Remap edge summaries; handle predicate
1475 probabilities; remove param summaries after we are done.
1476 (do_estimate_edge_time): Update.
1477 (do_estimate_edge_growth): Update.
1478 (read_inline_edge_summary): Read param info.
1479 (inline_read_summary): Fix formating.
1480 (write_inline_edge_summary): Write param summaries.
1481
1482 2011-09-23 Jakub Jelinek <jakub@redhat.com>
1483
1484 * config/i386/i386.c (ix86_print_operand): Handle %~.
1485 (ix86_print_operand_punct_valid_p): Return true also for '~'.
1486 * config/i386/sse.md (i128): New mode_attr.
1487 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
1488 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
1489 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
1490 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
1491 patterns, use "<sseinsnmode>" for "mode" attribute.
1492 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
1493 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
1494 %~128 in the patterns, use "OI" for "mode" attribute.
1495
1496 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
1497
1498 PR target/50447
1499 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
1500 "tstsi", "compare".
1501 (*cmpqi_sign_extend): Use s8_operand.
1502 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
1503 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
1504 prototypes.
1505 (out_tsthi, out_tstsi): Remove prototypes.
1506 (avr_out_tsthi, avr_out_tstsi): New prototypes.
1507 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
1508 (avr_asm_len): Negative length now sets *plen to -length.
1509 (compare_sign_p): Return bool instead of int.
1510 (compare_diff_p, compare_eq_p): Ditto and make static.
1511 (avr_out_tsthi): New function.
1512 (avr_out_tstsi): New function.
1513 (avr_out_compare): New function.
1514 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
1515 ADJUST_LEN_COMPARE.
1516
1517 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
1518
1519 PR target/50447
1520 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
1521 (addsi3): Rewrite using QI scratch register. Adjust text
1522 peepholes using plus:SI.
1523 (*addsi3_zero_extend.hi): New insn.
1524 (*subsi3_zero_extend.hi): New insn.
1525 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
1526 (*subsi3_zero_extend): Ditto.
1527 (subsi3): Change predicate #2 to register_operand.
1528 * config/avr/avr-protos.h (avr_out_plus): New prototype.
1529 (avr_out_plus_1): New static function.
1530 (avr_out_plus): New function.
1531 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
1532
1533 2011-09-23 Jakub Jelinek <jakub@redhat.com>
1534
1535 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
1536 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
1537
1538 2011-09-23 Ian Lance Taylor <iant@google.com>
1539
1540 * godump.c (go_define): Treat a single character in single quotes,
1541 or a string, as an operand.
1542
1543 2011-09-23 Martin Jambor <mjambor@suse.cz>
1544
1545 * ipa-prop.h (jump_func_type): Updated comments.
1546 (ipa_known_type_data): New type.
1547 (ipa_jump_func): Use it to describe known type jump functions.
1548 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
1549 reflect the new known type jump function contents.
1550 (compute_known_type_jump_func): Likewise.
1551 (combine_known_type_and_ancestor_jfs): Likewise.
1552 (try_make_edge_direct_virtual_call): Likewise.
1553 (ipa_write_jump_function): Likewise.
1554 (ipa_read_jump_function): Likewise.
1555 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
1556 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
1557 (propagate_accross_jump_function): Likewise.
1558
1559 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
1560
1561 PR target/50446
1562 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
1563 (rotlqi3_4): Turn insn into expander.
1564 (*rotlqi3): New insn.
1565 (rotlhi3, rotlsi3): Support rotate left/right by 1.
1566 (*rotlhi2.1, *rotlhi2.15): New insns.
1567 (*rotlsi2.1, *rotlsi2.31): New insns.
1568 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
1569
1570 2011-09-23 Bin Cheng <bin.cheng@arm.com>
1571
1572 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
1573
1574 2011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
1575
1576 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
1577
1578 2011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1579
1580 * reload.c (find_reloads): Set operand_mode to Pmode for address
1581 operands consisting of just a CONST_INT.
1582
1583 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
1584
1585 PR target/50482
1586 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
1587 blendv, force op_true to register if it doesn't satisfy
1588 nonimmediate_operand predicate.
1589
1590 2011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
1591
1592 PR middle-end/50113
1593 PR middle-end/50061
1594 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
1595 get the locate.where_pad value for register-only arguments.
1596 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
1597 (arm_pad_reg_upward): Handle null types.
1598
1599 2011-09-22 Jan Hubicka <jh@suse.cz>
1600
1601 * ipa-inline-analysis.c: Fix overly long lines.
1602
1603 2011-09-22 Jan Hubicka <jh@suse.cz>
1604
1605 * ipa-inline-transform.c (inline_call): Always update jump functions
1606 after inlining.
1607 * ipa-inline.c (ipa_inline): Likewise; do not call
1608 ipa_create_all_structures_for_iinln.
1609 (ipa_inline): Always free jump functions.
1610 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
1611 (remap_edge_predicates): Fix pasto.
1612 (inline_merge_summary): Remove nlined edge predicate; remove hack.
1613 (inline_analyze_function): Always initialize jump functions.
1614 (inline_generate_summary): Likewise.
1615 (inline_write_summary): Always write jump functions when ipa-cp
1616 is not doing that.
1617 (inline_read_summary): Always read jump functions when ipa-cp
1618 is not doing that.
1619 * ipa-prop.c (iinlining_processed_edges): Remove.
1620 (update_indirect_edges_after_inlining): Do not use
1621 iinlining_processed_edges; instead set param_index to -1.
1622 (propagate_info_to_inlined_callees): Only try to indirect inlining
1623 when asked to do so; update jump functions of indirect calls, too;
1624 remove jump functions of the inlined edge.
1625 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
1626 (ipa_create_all_structures_for_iinln): Remove.
1627 (ipa_free_all_structures_after_iinln): Do not free
1628 iinlining_processed_edges.
1629 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
1630
1631 2011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
1632
1633 * config/arm/predicates.md (expandable_comparison_operator): New
1634 predicate, extracted from...
1635 (arm_comparison_operator): ...here.
1636 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
1637 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
1638 (movdfcc): Use expandable_comparison_operator.
1639
1640 2011-09-22 Georg-Johann Lay <avr@gjlay.de>
1641
1642 PR target/50447
1643 PR target/50465
1644 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
1645 (avr_popcount_each_byte): New prototype.
1646 * config/avr/avr.c (avr_popcount): New static function.
1647 (avr_popcount_each_byte): New function.
1648 (avr_out_bitop): New function.
1649 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
1650 avr_out_bitop. Cleanup code.
1651 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
1652 (Ca4, Co4, Cx4): New constraints.
1653 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
1654 alternative.
1655 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
1656 (andsi3, iorsi3, xorsi3): Ditto.
1657 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
1658
1659 2011-09-22 Ira Rosen <ira.rosen@linaro.org>
1660
1661 PR tree-optimization/50451
1662 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
1663 constant operands in reduction.
1664 (vect_get_slp_defs): Don't create vector operand for NULL scalar
1665 operand.
1666
1667 2011-09-22 David S. Miller <davem@davemloft.net>
1668
1669 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
1670 fpack16, fpack32, fpackfix as const.
1671
1672 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
1673 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
1674 constants. Use them everywhere.
1675
1676 2011-09-22 Oleg Endo <oleg.endo@t-online.de>
1677
1678 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
1679 Added AND special case. Adapted comments.
1680 (sh_rtx_costs): Added XOR and IOR case.
1681
1682 2011-09-21 Jan Hubicka <jh@suse.cz>
1683
1684 * ipa-inline-analsis.c (compute_inline_parameters): Set
1685 cfun and current_function_decl.
1686
1687 2011-09-21 Jan Hubicka <jh@suse.cz>
1688
1689 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
1690 handled components in parameter of builtin_constant_p.
1691 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
1692
1693 2011-09-21 Jan Hubicka <jh@suse.cz>
1694
1695 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
1696 * ipa-inline.h (estimate_edge_time): Fix pasto.
1697 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
1698
1699 2011-09-21 Jakub Jelinek <jakub@redhat.com>
1700
1701 * config/i386/i386.c (ix86_expand_sse_movcc): Use
1702 blendvps, blendvpd and pblendvb if possible.
1703
1704 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
1705
1706 PR target/50464
1707 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
1708 operand 1 predicate to register_operand and operand 2 predicate
1709 to nonimmediate_operand.
1710 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
1711 xop_pcmov, force op_true to register. Also, force op_false to
1712 register if it doesn't satisfy nonimmediate_operand predicate.
1713
1714 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
1715
1716 * config/i386/bmi2intrin.h (_mulx_u64): New.
1717 (_mulx_u32): Ditto.
1718
1719 2011-09-21 Jan Hubicka <jh@suse.cz>
1720
1721 PR tree-optimization/50433
1722 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
1723 Use get_base_address.
1724
1725 2011-09-21 Jakub Jelinek <jakub@redhat.com>
1726
1727 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
1728 nonimmediate_operand instead of register_operand predicate for operands
1729 1 and 2, force them into registers if expanding them as comparison.
1730 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
1731 V8HImode force into register just operand 1.
1732
1733 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
1734
1735 PR target/45099
1736 * config/avr/avr.c (avr_function_arg_advance): Change error to
1737 warning if a fixed register is needed as function argument.
1738
1739 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
1740
1741 PR target/50449
1742 PR target/50465
1743 * config/avr/avr.md (adjust_len): New insn attribute.
1744 (*reload_insi, *reload_insf): Use it.
1745 (*movsi, *movsf): Use new interface of output_movsisf.
1746 * config/avr/avr-protos.h (output_movsisf): Change prototype.
1747 * config/avr/avr.c (output_movsisf): Ditto.
1748 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
1749 lengths of insns *reload_insi, *reload_insf.
1750 (output_reload_insisf_1): New static function.
1751 (output_reload_insisf): Use it.
1752
1753 2011-09-21 David S. Miller <davem@davemloft.net>
1754
1755 * config/sparc/sparc.c (def_builtin): Change from macro into function.
1756 (def_builtin_const): New.
1757 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
1758 other than alignaddr and falignaddr.
1759
1760 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
1761 UNSPEC_FCMPEQ): New unspec codes.
1762 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
1763 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
1764 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
1765 new pixel compare VIS patterns.
1766 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
1767 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
1768 __vis_fcmpeq16, __vis_fcmpeq32): New.
1769 * doc/extend.texi: Document new pixel compare VIS intrinsics.
1770
1771 2011-09-21 Tom de Vries <tom@codesourcery.com>
1772
1773 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
1774
1775 2011-09-20 David S. Miller <davem@davemloft.net>
1776
1777 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
1778 (aligneddrl<P:mode>_vis): New pattern.
1779 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1780 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
1781 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
1782 alignaddrl insn, and adjust edge operations for updated types.
1783 * config/sparc/visintrin.h: Likewise.
1784 * doc/extend.texi: Make typing in VIS documentation match reality.
1785
1786 2011-09-20 Terry Guo <terry.guo@arm.com>
1787
1788 * config/arm/arm-arches.def: Add armv6s-m.
1789 * config/arm/arm-tables.opt: Regenerate.
1790
1791 2011-09-20 Wei Guozhi <carrot@google.com>
1792
1793 PR rtl-optimization/49452
1794 * postreload.c (reload_combine): Invalidate use information when across
1795 volatile insn.
1796
1797 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
1798
1799 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
1800 Remove maintenance overhead.
1801 (haifa_sched_init, sched_finish): Update.
1802
1803 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
1804
1805 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
1806 to calculate unit, prefix_rep and prefix_data16 attributes.
1807 (*mov<mode>_internal): Ditto for unit attribute.
1808 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
1809 (*movv2sf_internal): Ditto.
1810 * config/i386/sse.md (VI1248_256): Remove mode iterator.
1811 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
1812 (*avx2_eq<mode>3): Ditto.
1813 (avx2_gt<mode>3): Ditto.
1814
1815 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
1816
1817 * config/i386/i386.md (maxmin): New code iterator.
1818 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
1819 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
1820 code iterator.
1821 (*avx2_<maxmin:code><mode>3): Macroize isn from
1822 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
1823 maxmin code iterator.
1824 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
1825 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
1826 <umaxmin:code>v16qi3.
1827
1828 2011-09-19 Alan Modra <amodra@gmail.com>
1829 Michael Meissner <meissner@linux.vnet.ibm.com>
1830
1831 PR target/50341
1832 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
1833 split the load of the indirect function's TOC from the call to
1834 prevent the compiler from moving the load of the new TOC above
1835 code that references the current function's TOC.
1836 (call_indirect_aix<ptrsize>_internal): Ditto.
1837 (call_indirect_aix<ptrsize>_nor11): Ditto.
1838 (call_indirect_aix<ptrsize>_internal2): Ditto.
1839 (call_value_indirect_aix<ptrsize>): Ditto.
1840 (call_value_indirect_aix<ptrsize>_internal): Ditto.
1841 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
1842 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
1843
1844 2011-09-19 Jakub Jelinek <jakub@redhat.com>
1845
1846 * config/i386/sse.md (*sse4_1_extractps): Change into
1847 define_insn_and_split, add =x 0 n and =x x n alternatives
1848 and split them after reload.
1849
1850 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
1851
1852 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
1853
1854 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
1855
1856 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
1857
1858 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
1859
1860 PR tree-optimization/50413
1861 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
1862 a basic block if one of its data-refs can't be analyzed.
1863
1864 2011-09-19 Paul Brook <paul@codesourcery.com>
1865
1866 * config/arm/predicates.md (shift_amount_operand): Check constant
1867 shift count is in range.
1868 (const_shift_operand): Remove.
1869
1870 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
1871 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1872
1873 PR target/50091
1874 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
1875 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
1876
1877 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
1878
1879 * config/i386/bmiintrin.h: Remove tmp.
1880 * config/i386/tbmintrin.h: Likewise.
1881
1882 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
1883
1884 PR tree-optimization/50414
1885 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
1886 MIN_EXPR.
1887
1888 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
1889
1890 PR tree-optimization/50412
1891 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
1892 acceses that require epilogue loop if vectorizing outer loop.
1893
1894 2011-09-17 David S. Miller <davem@davemloft.net>
1895
1896 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
1897 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
1898 New unspecs.
1899 (define_attr type): New type 'edge'.
1900 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1901 edge32l_vis): New patterns.
1902 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
1903 * config/sparc/ultra3.md: Likewise.
1904 * config/sparc/niagara.md: Likewise.
1905 * config/sparc/niagara2.md: Likewise.
1906 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
1907 builtins for VIS edge instructions.
1908 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
1909 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
1910 intrinsics.
1911 (__v8qi, __v4qi): Make unsigned.
1912 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
1913 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
1914 __vis_fpack32): Fix types.
1915 * doc/extend.texi: Document new 'edge' VIS intrinsics.
1916
1917 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
1918 divide costs.
1919 (niagara3_costs): New.
1920 (sparc_option_override): Use it.
1921 * gcc/config/sparc/niagara2.md: Adjust with more accurate
1922 Niagara-3 reservations.
1923
1924 2011-09-17 Jakub Jelinek <jakub@redhat.com>
1925
1926 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
1927 (sse2_avx, sseinsnmode): Add V2TI.
1928 (REDUC_SMINMAX_MODE): New mode iterator.
1929 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
1930 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
1931 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
1932 (sse2_lshrv1ti3): Rename to...
1933 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
1934 iterator. Move before umaxmin expanders.
1935 * config/i386/i386.h (VALID_AVX256_REG_MODE,
1936 SSE_REG_MODE_P): Accept V2TImode.
1937 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
1938 V16HImode, V8SImode and V4DImode.
1939
1940 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
1941 and V4DImode.
1942 (ix86_build_signbit_mask): Likewise.
1943 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
1944 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
1945 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
1946 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
1947 (<code><mode>3) ... this.
1948 (avx2_<code><mode>3 smaxmin expand): Rename to...
1949 (<code><mode>3) ... this.
1950 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
1951 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
1952 VI8_AVX2 mode iterator.
1953 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
1954 VI8_AVX2 mode iterator.
1955 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
1956 New expanders.
1957
1958 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
1959
1960 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
1961 throughout file.
1962
1963 2011-09-16 David S. Miller <davem@davemloft.net>
1964
1965 * config/sparc/visintrin.h: New file.
1966 * config.gcc: Add it to extra_headers on sparc.
1967
1968 2011-09-16 Jakub Jelinek <jakub@redhat.com>
1969
1970 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
1971 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
1972 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
1973 reduc_smin_v4sf): Adjust callers.
1974 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
1975 New expanders.
1976
1977 * config/i386/sse.md (vec_extract_hi_<mode>,
1978 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
1979 vextracti128 instead of vextractf128 for -mavx2 and
1980 integer vectors. For V4DFmode fix up mode attribute.
1981 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
1982 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
1983 instead of V8SF mode attribute.
1984 (avx2_extracti128): Change into define_expand.
1985 * config/i386/i386.c (ix86_expand_vector_extract): Handle
1986 32-byte vector modes if TARGET_AVX.
1987
1988 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
1989
1990 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
1991 (umulqi3_highpart, smulqi3_highpart): Ditto.
1992 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
1993 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
1994 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
1995
1996 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
1997
1998 PR target/50358
1999 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
2000 (*maddqi4, *maddqi4.const): New insns.
2001 (*msubqi4, *msubqi4.const): New insns.
2002 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
2003 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
2004 HImode by 1 in the case of multiplying with a CONST_INT.
2005 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
2006
2007 2011-09-15 Jan Hubicka <jh@suse.cz>
2008
2009 PR lto/50430
2010 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
2011 error_mark_node in the DECL_INITIAL of vtable.
2012
2013 2011-09-15 Diego Novillo <dnovillo@google.com>
2014
2015 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
2016 @SYSROOT_CFLAGS_FOR_TARGET@.
2017 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
2018 * configure: Regenerate.
2019 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
2020 Remove setting of GCC_UNDER_TEST.
2021
2022 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
2023
2024 * config/i386/i386.c (output_fp_compare): Return %v prefixed
2025 instruction mnemonics for TARGET_AVX.
2026
2027 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
2028 "type" attribute calculation.
2029 (*movdf_internal): Ditto.
2030 (*movsf_internal): Ditto.
2031
2032 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
2033
2034 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
2035
2036 2011-09-15 Jason Merrill <jason@redhat.com>
2037
2038 PR c++/50361
2039 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
2040
2041 2011-09-15 Jan Hubicka <jh@suse.cz>
2042
2043 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
2044 simplify obviously true clauses.
2045 (and_predicates, or_predicates): Add conditions parameter.
2046 (inline_duplication_hoook): Update.
2047 (mark_modified): New function.
2048 (unmodified_parm): New function.
2049 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
2050 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
2051 Use unmodified_parm.
2052 (estimate_function_body_sizes): Update.
2053 (remap_predicate): Update.
2054
2055 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
2056
2057 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
2058 read-after-read dependencies in basic block SLP.
2059
2060 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
2061
2062 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
2063 throughout file.
2064
2065 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
2066
2067 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
2068 throughout file.
2069
2070 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
2071
2072 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
2073 throughout file.
2074
2075 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
2076
2077 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
2078 throughout file.
2079 * config/rs6000/constraints.md: Likewise.
2080
2081 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
2082
2083 * config/microblaze/microblaze.md: Use match_test rather than
2084 eq/ne symbol_ref throughout file.
2085
2086 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
2087
2088 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
2089 throughout file.
2090
2091 2011-09-14 Tom de Vries <tom@codesourcery.com>
2092
2093 PR middle-end/50251
2094 * explow.c (emit_stack_restore): Set crtl->need_drap if
2095 stack_restore is emitted.
2096
2097 2011-09-14 Julian Brown <julian@codesourcery.com>
2098
2099 * config/arm/arm.c (arm_override_options): Add unaligned_access
2100 support.
2101 (arm_file_start): Emit attribute for unaligned access as appropriate.
2102 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
2103 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
2104 (insv, extzv): Add unaligned-access support.
2105 (extv): Change to expander. Likewise.
2106 (extzv_t1, extv_regsi): Add helpers.
2107 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
2108 (unaligned_storesi, unaligned_storehi): New.
2109 (*extv_reg): New (previous extv implementation).
2110 * config/arm/arm.opt (munaligned_access): Add option.
2111 * config/arm/constraints.md (Uw): New constraint.
2112 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
2113 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
2114 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
2115 volatile accesses when -fstrict-volatile-bitfields is in effect.
2116 (extract_bit_field_1): Likewise.
2117
2118 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
2119
2120 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
2121 a scalar integer before applying integer-only optimisations to
2122 inner arithmetic.
2123
2124 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
2125
2126 * config/mips/mips.c (mips_expand_epilogue): Generate a
2127 simple_return only if the return address is in r31.
2128
2129 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
2130
2131 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
2132 NULL for a jump that is a cc0 insn, pick the previous insn for
2133 move_before.
2134
2135 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
2136
2137 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
2138 throughout file.
2139
2140 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
2141
2142 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
2143 throughout file.
2144
2145 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
2146
2147 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
2148 symbol_ref throughout file.
2149
2150 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
2151
2152 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
2153 throughout file.
2154
2155 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
2156
2157 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
2158 throughout file.
2159
2160 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
2161
2162 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
2163 throughout file.
2164 * config/arm/neon.md: Likewise.
2165 * config/arm/vfp.md: Likewise.
2166 * config/arm/thumb2.md: Likewise.
2167 * config/arm/cortex-m4.md: Likewise.
2168
2169 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
2170
2171 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
2172 define_insn patterns for combine.
2173
2174 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
2175
2176 * reorg.c: Always define make_return_insns.
2177
2178 2011-09-13 Jan Hubicka <jh@suse.cz>
2179
2180 PR other/49533
2181 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
2182
2183 2011-09-13 Jan Hubicka <jh@suse.cz>
2184
2185 PR other/49533
2186 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
2187
2188 2011-09-13 Paul Brook <paul@codesourcery.com>
2189
2190 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2191 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
2192 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
2193 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
2194 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
2195 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
2196 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
2197 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
2198 enabling unwind tables.
2199 (c6x_debug_unwind_info): New function.
2200 (TARGET_ARM_EABI_UNWINDER): Define.
2201 (TARGET_DEBUG_UNWIND_INFO): Define.
2202 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
2203 (TARGET_EXTRA_CFI_SECTION): Remove.
2204 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
2205 * ginclude/unwind-arm-common.h: New file.
2206
2207 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
2208
2209 PR target/50358
2210 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
2211 * config/avr/avr.md: (extend_s): New code attribute.
2212 (mul_r_d): New code attribute.
2213 (*maddqihi4, *umaddqihi4): New insns.
2214 (*msubqihi4, *umsubqihi4): New insns.
2215 (*usmaddqihi4, *sumaddqihi4): New insns.
2216 (*usmsubqihi4, *susubdqihi4): New insns.
2217 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
2218 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
2219 (*umsubqihi4.uconst.ashift): New insn-and-split.
2220 (*msubqihi4.sconst.ashift): New insn-and-split.
2221 (*sumaddqihi4.uconst): New insn-and-split.
2222 (*sumsubqihi4.uconst): New insn-and-split.
2223 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
2224 PLUS:HI and MINUS:HI.
2225
2226 2011-09-13 Revital Eres <revital.eres@linaro.org>
2227
2228 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
2229 (optimize_sc): Adjust call to remove_node_from_ps.
2230 (sms_schedule): Add print info.
2231
2232 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
2233
2234 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
2235 flags specially.
2236
2237 2011-09-12 Jakub Jelinek <jakub@redhat.com>
2238
2239 PR bootstrap/50010
2240 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
2241 NOTE_INSN_CFI notes, with the exception of
2242 NOTE_INSN_SWITCH_TEXT_SECTIONS.
2243
2244 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
2245 Richard Sandiford <rdsandiford@googlemail.com>
2246
2247 * config/mips/mips.c (mips_epilogue): New structure.
2248 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
2249 restoring registers.
2250 (mips_epilogue_emit_cfa_restores): New function.
2251 (mips_epilogue_set_cfa): Likewise.
2252 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
2253 the current CFA register from the stack, redefine the CFA in terms
2254 of the stack pointer.
2255 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
2256 to the epilogue instructions.
2257
2258 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
2259
2260 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
2261 argument.
2262 (mips16e_build_save_restore): Update accordingly.
2263
2264 2011-09-12 Jakub Jelinek <jakub@redhat.com>
2265
2266 PR rtl-optimization/50212
2267 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
2268 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
2269
2270 PR debug/50299
2271 * calls.c (load_register_parameters): Use use_reg_mode instead
2272 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
2273 entry.
2274 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
2275 for stack CALL_INSN_FUNCTION_USAGE uses.
2276 * expr.h (use_reg_mode): New prototype.
2277 (use_reg): Changed into inline around use_reg_mode.
2278 * expr.c (use_reg): Renamed to...
2279 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
2280 mode to that mode instead of VOIDmode.
2281 * var-tracking.c (prepare_call_arguments): Don't track parameters
2282 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
2283 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
2284 EXPR_LIST mode.
2285
2286 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
2287
2288 PR target/43746
2289 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
2290 (progmem_section): New Variable.
2291 (avr_asm_init_sections): Initialize it.
2292 (TARGET_ASM_SELECT_SECTION): Define to...
2293 (avr_asm_select_section): ... this new Function.
2294 (avr_replace_prefix): New Function.
2295 (avr_asm_function_rodata_section): Use it.
2296 (avr_insert_attributes): Don't add section attribute for PROGMEM.
2297 (avr_section_type_flags): Use avr_progmem_p instead of section
2298 name to detect if object is in PROGMEM.
2299 (avr_asm_named_section): Set section name prefix for objects in
2300 PROGMEM.
2301
2302 2011-09-12 Jakub Jelinek <jakub@redhat.com>
2303
2304 PR bootstrap/50352
2305 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
2306 sprintf format string.
2307
2308 2011-09-12 Richard Guenther <rguenther@suse.de>
2309
2310 PR tree-optimization/50343
2311 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
2312 that the reduction is over an SSA name before checking its definition.
2313
2314 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
2315
2316 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
2317 throughout file.
2318
2319 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
2320
2321 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
2322 throughout file.
2323 * config/mips/sb1.md: Likewise.
2324 * config/mips/predicates.md: Replace (match_test "!...")
2325 with (not (match_test "..."))
2326 * config/mips/constraints.md: Likewise.
2327
2328 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
2329
2330 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
2331 * config/arm/arm-tables.opt: Regenerate.
2332 * config/arm/arm-tune.md: Regenerate.
2333 * config/arm/arm.c (arm_file_start): Output .arch directive when
2334 user passes -mcpu=generic-*.
2335 (arm_issue_rate): Add genericv7a support.
2336 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
2337 (ASM_CPU_SPEC): New define.
2338 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
2339 * config/arm/semi.h (ASM_SPEC): Likewise.
2340 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
2341 and -mtune=generic-*.
2342
2343 2011-09-09 Richard Guenther <rguenther@suse.de>
2344
2345 PR tree-optimization/50328
2346 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
2347 constant or default-def operand.
2348
2349 2011-09-09 Richard Guenther <rguenther@suse.de>
2350
2351 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
2352 last statement.
2353
2354 2011-09-09 Richard Guenther <rguenther@suse.de>
2355
2356 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
2357 instead of a statement.
2358 * gimple-fold.c (fold_stmt_inplace): Likewise.
2359 * sese.c (graphite_copy_stmts_from_block): Adjust.
2360 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
2361 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
2362 fold_stmt.
2363 (forward_propagate_addr_into_variable_array_index): Likewise.
2364 (forward_propagate_addr_expr_1): adjust.
2365 (associate_plusminus): Likewise.
2366 (ssa_forward_propagate_and_combine): Likewise.
2367 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
2368 (execute_cse_reciprocals): Likewise.
2369 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
2370
2371 2011-09-09 Nick Clifton <nickc@redhat.com>
2372
2373 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
2374 Return a positive value to indicate that the bits at the
2375 bottom of the register should be cleared.
2376
2377 2011-09-09 Richard Guenther <rguenther@suse.de>
2378
2379 * tree-ssa-operands.c (swap_tree_operands): Always adjust
2380 existing operand positions.
2381
2382 2011-09-09 Richard Guenther <rguenther@suse.de>
2383
2384 PR middle-end/50333
2385 * tree-data-ref.c (split_constant_offset): Do not try to handle
2386 ternary ops.
2387
2388 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
2389
2390 PR tree-optimization/50318
2391 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
2392 typo in use of mult_rhs1 and mult_rhs2.
2393
2394 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
2395
2396 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
2397 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
2398
2399 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
2400
2401 * config/arm/arm.md (push_multi): Emit predicates.
2402 (push_fp_multi): Likewise.
2403 * config/arm/arm.c (vfp_output_fstmd): Likewise.
2404
2405 2011-09-08 Dodji Seketeli <dodji@redhat.com>
2406
2407 PR c++/33255 - Support -Wunused-local-typedefs warning
2408 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
2409 (pushdecl): Use the new record_locally_defined_typedef.
2410 (store_parm_decls): Allocate cfun->language.
2411 (finish_function): Use the new maybe_warn_unused_local_typedefs,
2412 and free cfun->language.
2413 (c_push_function_context): Allocate cfun->language here only if needed.
2414 (c_pop_function_context): Likewise, mark cfun->language
2415 for collection only when it should be done.
2416 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
2417 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
2418 maybe_record_local_typedef_use.
2419 * doc/invoke.texi: Update documentation for
2420 -Wunused-local-typedefs.
2421
2422 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
2423
2424 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
2425 (ix86_avoid_lea_for_add): Likewise.
2426 (ix86_avoid_lea_for_addr): Likewise.
2427 (ix86_split_lea_for_addr): Likewise.
2428
2429 * config/i386/i386.c (LEA_MAX_STALL): New.
2430 (increase_distance): Likewise.
2431 (insn_defines_reg): Likewise.
2432 (insn_uses_reg_mem): Likewise.
2433 (distance_non_agu_define_in_bb): Likewise.
2434 (distance_agu_use_in_bb): Likewise.
2435 (ix86_lea_outperforms): Likewise.
2436 (ix86_ok_to_clobber_flags): Likewise.
2437 (ix86_avoid_lea_for_add): Likewise.
2438 (ix86_avoid_lea_for_addr): Likewise.
2439 (ix86_split_lea_for_addr): Likewise.
2440 (distance_non_agu_define): Search in pred BBs added.
2441 (distance_agu_use): Search in succ BBs added.
2442 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
2443 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
2444 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
2445
2446 * config/i386/i386.md: Split added to transform non destructive
2447 add into move and add.
2448 (lea_1): transformed into insn_and_split to avoid AGU stalls.
2449 (lea<mode>_2): Likewise.
2450
2451 2011-09-08 Martin Jambor <mjambor@suse.cz>
2452
2453 PR tree-optimization/50287
2454 * ipa-split.c (split_function): Do not create SSA names for
2455 non-gimple-registers.
2456
2457 2011-09-08 Richard Guenther <rguenther@suse.de>
2458
2459 PR tree-optimization/19831
2460 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
2461 skip builtins with vdefs that do not really store something.
2462 (propagate_necessity): For calls to free that we can associate
2463 with an allocation function do not mark the freed pointer
2464 definition necessary.
2465 (eliminate_unnecessary_stmts): Remove a call to free if
2466 the associated call to an allocation function is not necessary.
2467
2468 2011-09-08 Richard Guenther <rguenther@suse.de>
2469
2470 PR tree-optimization/19831
2471 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
2472 allocation functions as necessary.
2473
2474 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
2475
2476 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
2477 cut from ...
2478 (darwin_default_min_version): Amended to provide defaults
2479 for the cross directory case.
2480 (darwin_driver_init): call darwin_default_min_version unconditionally.
2481 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
2482 * config/darwin9.h: Likewise.
2483 * config/darwin10.h: Likewise.
2484 * config/rs6000/darwin7.h: Likewise.
2485
2486 2011-09-08 Jakub Jelinek <jakub@redhat.com>
2487
2488 PR target/50310
2489 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
2490 code early if TARGET_AVX.
2491 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
2492
2493 2011-09-07 Jakub Jelinek <jakub@redhat.com>
2494
2495 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
2496 duplicates.
2497
2498 PR target/50310
2499 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
2500 "mode" attribute computation.
2501
2502 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
2503
2504 * regrename.c (struct du_head): Make nregs signed.
2505 (closed_chains): Remove.
2506 (create_new_chain): Return the new chain.
2507 (chain_from_id): New static function.
2508 (dump_def_use_chain): Change argument to be an int, indicating
2509 the first ID to print. All callers changed.
2510 (merge_overlapping_regs): Use chain_from_id. Assert that
2511 chains don't conflict with themselves.
2512 (rename_chains): Take no argument. Iterate over id_to_chain
2513 rather to find chains to rename. Clear tick before the main loop.
2514 (struct incoming_reg_info): New struct.
2515 (struct bb_rename_info): New struct.
2516 (init_rename_info, set_incoming_from_chain, merge_chains): New
2517 static functions.
2518 (regrename_analyze): New static function, broken out of
2519 regrename_optimize. Record and make use of open chain information
2520 at basic block boundaries, and merge chains where possible.
2521 (scan_rtx_reg): Make this_nregs signed. Don't update
2522 closed_chains.
2523 (build_def_use): Return a bool to indicate success. All callers
2524 changed. Don't initialize global data here.
2525 (regrename_optimize): Move most code out of here into
2526 regrename_analyze.
2527 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
2528 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
2529 static inline functions.
2530 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
2531
2532 * bb-reorder.c (insert_section_boundary_note): Don't check
2533 optimize_function_for_speed_p.
2534 (gate_handle_partition_blocks): Do it here instead.
2535 (gate_handle_reorder_blocks): Move preliminary checks here ...
2536 (rest_of_handle_reorder_blocks): ... from here.
2537
2538 2011-09-07 Martin Jambor <mjambor@suse.cz>
2539
2540 PR middle-end/50301
2541 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
2542 function index bounds.
2543 (perhaps_add_new_callers): Likewise.
2544
2545 2011-09-07 Martin Jambor <mjambor@suse.cz>
2546
2547 PR tree-optimization/49911
2548 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
2549 enumerations to the corresponding plain integer type.
2550
2551 2011-09-07 Richard Guenther <rguenther@suse.de>
2552
2553 PR tree-optimization/50319
2554 * tree-if-conv.c (set_bb_predicate): Assert we only set
2555 canonical predicates.
2556 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
2557 around canonical predicates.
2558 (predicate_bbs): Do not re-gimplify already canonical
2559 predicates. Properly unshare them though.
2560 (find_phi_replacement_condition): Simplify.
2561
2562 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
2563
2564 PR target/49030
2565 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
2566 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
2567 reusing the old code from get_arm_condition_code. Return ARM_NV
2568 for invalid comparison codes.
2569 (get_arm_condition_code): Redefine in terms of
2570 maybe_get_arm_condition_code.
2571 * config/arm/predicates.md (arm_comparison_operator): Use
2572 maybe_get_arm_condition_code.
2573
2574 2011-09-07 Richard Guenther <rguenther@suse.de>
2575
2576 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
2577 Canonicalize negated predicates by swapping edges.
2578 (forward_propagate_into_cond): Likewise.
2579
2580 2011-09-07 Richard Guenther <rguenther@suse.de>
2581
2582 PR tree-optimization/50213
2583 * tree-flow.h (simple_iv_increment_p): Declare.
2584 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
2585 POINTER_PLUS_EXPR.
2586 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
2587 not propagate simple IV counter increments.
2588
2589 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
2590 Iain Sandoe <iains@gcc.gnu.org>
2591
2592 * config/rs6000/rs6000.c (compute_save_world_info): Test
2593 cfun->has_nonlocal_label to determine if the out-of-line save
2594 world call may be used.
2595
2596 2011-09-07 Nick Clifton <nickc@redhat.com>
2597
2598 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
2599 label on the parallel part of the insn.
2600
2601 2011-09-07 Jakub Jelinek <jakub@redhat.com>
2602
2603 PR debug/50191
2604 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
2605 avoid_constant_pool_reference first instead of last.
2606
2607 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2608
2609 * doc/configfiles.texi (Configuration Files): Update documentation
2610 about tm_p.h and remove FIXME comment.
2611
2612 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
2613
2614 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
2615 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
2616
2617 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
2618
2619 * config/darwin10.h Remove duplicate LIB_SPEC.
2620
2621 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
2622
2623 PR middle-end/44382
2624 * target.def (reassociation_width): New hook.
2625
2626 * doc/tm.texi.in (reassociation_width): Likewise.
2627
2628 * doc/tm.texi (reassociation_width): Likewise.
2629
2630 * doc/invoke.texi (tree-reassoc-width): New param documented.
2631
2632 * hooks.h (hook_int_uint_mode_1): New default hook.
2633
2634 * hooks.c (hook_int_uint_mode_1): Likewise.
2635
2636 * config/i386/i386.h (ix86_tune_indices): Add
2637 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
2638
2639 (TARGET_REASSOC_INT_TO_PARALLEL): New.
2640 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
2641
2642 * config/i386/i386.c (initial_ix86_tune_features): Add
2643 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
2644
2645 (ix86_reassociation_width): New function.
2646
2647 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
2648
2649 * tree-ssa-reassoc.c (get_required_cycles): New function.
2650 (get_reassociation_width): Likewise.
2651 (swap_ops_for_binary_stmt): Likewise.
2652 (rewrite_expr_tree_parallel): Likewise.
2653
2654 (rewrite_expr_tree): Refactored. Part of code moved into
2655 swap_ops_for_binary_stmt.
2656
2657 (reassociate_bb): Now checks reassociation width to be used and
2658 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
2659
2660 2011-09-06 Richard Guenther <rguenther@suse.de>
2661
2662 PR tree-optimization/47025
2663 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
2664 uses nothing.
2665 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
2666 BUILT_IN_FREE.
2667 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
2668 definitely points to.
2669 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2670 BUILT_IN_VA_START doesn't let its va_list argument escape.
2671 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
2672 not make any previous stores necessary.
2673
2674 2011-09-06 Martin Jambor <mjambor@suse.cz>
2675
2676 * ipa-inline.h (struct inline_summary): Move versionable flag...
2677 * cgraph.h (struct cgraph_local_info): ...here
2678 * ipa-cp.c (determine_versionability): Use the new versionable flag.
2679 (determine_versionability): Likewise.
2680 (ipcp_versionable_function_p): Likewise.
2681 (ipcp_generate_summary): Likewise.
2682 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
2683 versionable flag.
2684 (compute_inline_parameters): Do not clear the versionable flag.
2685 (inline_read_section): Do not stream the versionable flag.
2686 (inline_write_summary): Likewise.
2687 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
2688 (input_overwrite_node): Likewise.
2689
2690 2011-09-06 Richard Guenther <rguenther@suse.de>
2691
2692 PR tree-optimization/48149
2693 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
2694 (vn_valueize): Move earlier.
2695 (valueize_expr): Use vn_valueize.
2696 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
2697 operands.
2698 (simplify_unary_expression): Simplify.
2699
2700 2011-09-06 Richard Guenther <rguenther@suse.de>
2701
2702 PR tree-optimization/48317
2703 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
2704 trailing array.
2705 (sizeof_vn_nary_op): New inline function.
2706 (vn_nary_op_lookup_pieces): Adjust.
2707 (vn_nary_op_insert_pieces): Likewise.
2708 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
2709 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
2710 any number of operands.
2711 (vn_nary_length_from_stmt): New function.
2712 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
2713 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
2714 sized temporary.
2715 (vn_nary_op_lookup): Likewise.
2716 (vn_nary_op_lookup_stmt): Likewise.
2717 (vn_nary_op_insert_into): Likewise.
2718 (vn_nary_op_insert_stmt): Likewise.
2719 (visit_use): Handle CONSTRUCTOR as nary.
2720 * tree-ssa-pre.c (phi_translate_1): Adjust.
2721 (create_expression_by_pieces): Likewise.
2722 (compute_avail): Likewise.
2723
2724 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
2725
2726 * config/arm/arm.c (arm_preferred_simd_mode): Check
2727 TARGET_NEON_VECTORIZE_DOUBLE instead of
2728 TARGET_NEON_VECTORIZE_QUAD.
2729 (arm_autovectorize_vector_sizes): Likewise.
2730 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
2731 mask of mvectorize-with-neon-double. Add RejectNegative.
2732 (mvectorize-with-neon-double): New.
2733
2734 2011-09-06 Richard Guenther <rguenther@suse.de>
2735
2736 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
2737
2738 2011-09-06 Tom de Vries <tom@codesourcery.com>
2739
2740 * recog.c (asm_labels_ok): New function.
2741 (check_asm_operands): Use asm_labels_ok.
2742
2743 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
2744
2745 PR target/49606
2746 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
2747 (PMODE_INSN): New macro.
2748 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
2749 (mips_got_load, mips_expand_synci_loop): Likewise.
2750 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
2751 cprestore patterns.
2752 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
2753 copygp_mips16 patterns.
2754 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
2755 and use_cprestore patterns.
2756 (mips_override_options): Check for incompatible -mabi and -mlong
2757 combinations.
2758 * config/mips/mips.md (unspec_got<mode>): Rename to...
2759 (unspec_got_<mode>): ...this.
2760 (copygp_mips16): Use the Pmode iterator.
2761 (potential_cprestore, cprestore, use_cprestore): Likewise.
2762 (clear_cache, indirect_jump): Use PMODE_INSN.
2763 (indirect_jump<mode>): Rename to...
2764 (indirect_jump_<mode>): ...this.
2765 (tablejump): Use PMODE_INSN.
2766 (tablejump<mode>): Rename to...
2767 (tablejump_<mode>): ...this.
2768 (exception_receiver): Handle restore_gp_si and restore_gp_di.
2769 (restore_gp): Use the Pmode iterator.
2770 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
2771 PMODE_INSN.
2772
2773 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
2774
2775 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
2776 Fix the type of the BIT_AND_EXPR.
2777
2778 2011-09-05 David S. Miller <davem@davemloft.net>
2779
2780 * config.host: Add driver-sparc.o and sparc/x-sparc on
2781 native sparc*-*-linux* builds.
2782 * config/sparc/driver-sparc.c: Correct Linux strings.
2783 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
2784 * config/sparc/linux64.h: Likewise.
2785 * doc/invoke.texi: Document that Linux also supports
2786 -mcpu=native and -mtune=native on sparc.
2787
2788 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
2789 PROCESSOR_NIAGARA4): New.
2790 * config/sparc/sparc.opt: Handle new processor types.
2791 * config/sparc/sparc.md: Add to "cpu" attribute.
2792 * config/sparc/sparc.h (TARGET_CPU_niagara3,
2793 TARGET_CPU_niagara4): New, treat as niagara2.
2794 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
2795 * config/sparc/sol2.h: Likewise.
2796 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
2797 * config/sparc/sparc.c (sparc_option_override): Add
2798 niagara3 and niagara4 handling.
2799 (sparc32_initialize_trampoline): Likewise.
2800 (sparc64_initialize_trampoline): Likewise.
2801 (sparc_use_sched_lookahead): Likewise.
2802 (sparc_issue_rate): Likewise.
2803 (sparc_register_move_cost): Likewise.
2804 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
2805 and niagara4 as appropriate.
2806 * doc/invoke.texi: Document new processor types.
2807 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
2808 and --with-tune options.
2809
2810 * config/sparc/sol2-64.h: Move ...
2811 * config/sparc/default-64.h: ... to here. Update comment.
2812 * config.gcc: Update Solaris sparc to use default-64.h, also
2813 prefix this header into the list on sparc64-*-linux.
2814 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
2815 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
2816 to MASK_HARD_QUAD.
2817
2818 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
2819
2820 PR target/50289
2821 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
2822 that contain global register variable.
2823
2824 2011-09-05 Richard Guenther <rguenther@suse.de>
2825
2826 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
2827
2828 2011-09-05 Richard Guenther <rguenther@suse.de>
2829
2830 * stor-layout.c (layout_type): Use size_binop for array size
2831 calculations.
2832
2833 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
2834
2835 * config/avr/avr.h (progmem_section): Remove Declaration.
2836 * config/avr/avr.c (progmem_section): Make static and rename to
2837 progmem_swtable_section.
2838 (avr_output_addr_vec_elt): No need to switch sections.
2839 (avr_asm_init_sections): Use output_section_asm_op as section
2840 callback for progmem_swtable_section.
2841 (avr_output_progmem_section_asm_op): Remove Function.
2842 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
2843 (avr_asm_function_rodata_section): New static Function.
2844 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
2845 alignment 2**1 for jump tables.
2846
2847 2011-09-04 Jan Hubicka <jh@suse.cz>
2848
2849 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
2850 parameter is SSA name.
2851
2852 2011-09-04 Richard Guenther <rguenther@suse.de>
2853
2854 Revert
2855 2011-08-31 Richard Guenther <rguenther@suse.de>
2856
2857 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
2858 special-casing.
2859
2860 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
2861
2862 PR debug/49901
2863 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
2864
2865 2011-09-04 Jakub Jelinek <jakub@redhat.com>
2866 Ira Rosen <ira.rosen@linaro.org>
2867
2868 PR tree-optimization/50208
2869 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
2870 argument. Check that def_stmt is inside the loop.
2871 (vect_recog_widen_mult_pattern): Update calls to
2872 vect_handle_widen_mult_by_cons.
2873 (vect_operation_fits_smaller_type): Check that def_stmt is
2874 inside the loop.
2875
2876 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
2877
2878 * tree-vectorizer.c (vect_print_dump_info): Print line
2879 number when dumping to a file.
2880 (vectorize_loops): Add new messages to dump file.
2881
2882 2011-09-03 Martin Jambor <mjambor@suse.cz>
2883
2884 * ipa-prop.h (ipa_jump_func_t): New typedef.
2885 (struct ipa_edge_args): Removed field argument_count, field
2886 jump_functions turned into a vector.
2887 (ipa_set_cs_argument_count): Removed.
2888 (ipa_get_cs_argument_count): Updated to work on vectors.
2889 (ipa_get_ith_jump_func): Likewise.
2890 * ipa-prop.c (ipa_count_arguments): Removed.
2891 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
2892 jump functions. Update caller.
2893 (compute_pass_through_member_ptrs): Likewise.
2894 (compute_cst_member_ptr_arguments): Likewise.
2895 (ipa_compute_jump_functions_for_edge): Get number of arguments from
2896 the statement, allocate vector.
2897 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
2898 (duplicate_ipa_jump_func_array): Removed.
2899 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
2900 (ipa_read_node_info): Allocate vector.
2901
2902 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2903
2904 PR middle-end/50232
2905 * config/pa/pa.md (return): Define "return" insn pattern.
2906 (epilogue): Use it when no epilogue is needed.
2907 * config/pa/pa.c (pa_can_use_return_insn): New function.
2908 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
2909
2910 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
2911
2912 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
2913 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
2914 Force at least BITS_PER_UNIT alignment on the new variable.
2915
2916 2011-09-02 Gary Funck <gary@intrepid.com>
2917
2918 * opts.c (print_specific_help): Fix off-by-one compare in
2919 assertion check.
2920 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
2921 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
2922 Increase by +5 to allow for more languages.
2923 * optc-gen.awk: Generate #if that ensures that the number of
2924 languages is within the implementation-defined limit.
2925
2926 2011-09-02 Michael Matz <matz@suse.de>
2927
2928 PR middle-end/50260
2929 * ipa-split.c (split_function): Call add_referenced_var.
2930
2931 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
2932 (cond_if_else_store_replacement_1): Ditto.
2933 * tree-ssa-pre.c (get_representative_for): Ditto.
2934 (create_expression_by_pieces): Ditto.
2935 (insert_into_preds_of_block): Ditto.
2936 * tree-sra.c (create_access_replacement): Ditto.
2937 (get_replaced_param_substitute): Ditto.
2938
2939 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
2940
2941 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
2942 automata_options.
2943 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
2944 (l1w, s1w, l2w, s2w): Define in the main automaton.
2945 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
2946 units.
2947 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
2948 (c6x_unit_names): Add the new units.
2949 (c6x_unit_codes): New static array.
2950 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
2951 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
2952 UNIT_QID_SIDE_OFFSET): New macros.
2953 (RESERVATION_S2): Adjust value.
2954 (c6x_option_override): Compute c6x_unit_codes.
2955 (assign_reservations): Take the unit_mask of the last instruction
2956 into account. Detect floating point reservations by looking for
2957 the new units. Don't assign reservations if the field is already
2958 nonzero.
2959 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
2960 (init_sched_state): Initialize it.
2961 (c6x_clear_sched_context): Free it.
2962 (insn_set_clock): Clear reservation.
2963 (prev_cycle_state): New static variable.
2964 (c6x_init_sched_context): Save it.
2965 (c6x_sched_init): Allocate space for it and clear it.
2966 (c6x_sched_dfa_pre_cycle_insn): New static function.
2967 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
2968 (c6x_variable_issue): Only record units in the unit_mask that
2969 were not set at the start of the cycle.
2970 (c6x_variable_issue): Compute and store the unit_mask from the
2971 current state.
2972 (reorg_split_calls): Ensure the new information remains correct.
2973 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
2974 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
2975 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
2976 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
2977 Add special reservations.
2978 * config/c6x/c6x-sched.md: Regenerate.
2979
2980 2011-09-02 Martin Jambor <mjambor@suse.cz>
2981
2982 * ipa-prop.h (ipa_node_params): Removed fields
2983 called_with_var_arguments and node_versionable.
2984 (ipa_set_called_with_variable_arg): Removed.
2985 (ipa_is_called_with_var_arguments): Likewise.
2986 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
2987 (determine_versionability): Do not check for type attributes and va
2988 builtins. Record versionability into inline summary.
2989 (initialize_node_lattices): Do not check
2990 ipa_is_called_with_var_arguments.
2991 (propagate_constants_accross_call): Likewise, ignore arguments we do
2992 not have PARM_DECLs for, set variable flag for parameters that were
2993 not passed a value.
2994 (create_specialized_node): Dump info that we cannot change signature.
2995 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
2996 number of arguments.
2997 (ipa_make_edge_direct_to_target): Likewise.
2998 (ipa_update_after_lto_read): Likewise.
2999 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
3000 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
3001 they were remapped.
3002
3003 2011-09-02 Richard Guenther <rguenther@suse.de>
3004
3005 PR tree-optimization/27460
3006 PR middle-end/29269
3007 * doc/md.texi (vcond): Document.
3008 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
3009 optab with two modes.
3010 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
3011 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
3012 (vcond_optab): Adjust.
3013 (vcondu_optab): Likewise.
3014 (expand_vec_cond_expr_p): Adjust prototype.
3015 * optabs.c (get_vcond_icode): Adjust.
3016 (expand_vec_cond_expr_p): Likewise.
3017 (expand_vec_cond_expr): Likewise.
3018 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
3019 vector type.
3020 (vectorizable_condition): Allow differing types for comparison
3021 and result.
3022 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
3023 for the comparison.
3024 * config/i386/sse.md (vcond<mode>): Split to
3025 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
3026 vcond<V_128:mode><VI124_128:mode> and
3027 vcondu<V_128:mode><VI124_128:mode>.
3028 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
3029 (vconduv2di): Likewise.
3030 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
3031 (vcondu<mode>): Likewise.
3032 * config/ia64/vect.md (vcond<mode>): Likewise.
3033 (vcondu<mode>): Likewise.
3034 (vcondv2sf): Likewise.
3035 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
3036 * config/rs6000/paired.md (vcondv2sf): Likewise.
3037 * config/rs6000/vector.md (vcond<mode>): Likewise.
3038 (vcondu<mode>): Likewise.
3039 * config/spu/spu.md (vcond<mode>): Likewise.
3040 (vcondu<mode>): Likewise.
3041
3042 2011-09-02 Richard Guenther <rguenther@suse.de>
3043
3044 * pretty-print.h (pp_unsigned_wide_integer): New.
3045 * tree-pretty-print.c (dump_generic_node): Print unsigned
3046 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
3047
3048 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
3049
3050 PR target/49987
3051 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
3052 valid CONST_VECTOR operands.
3053 (rs6000_expand_vector_init): Likewise.
3054
3055 2011-09-02 Martin Jambor <mjambor@suse.cz>
3056
3057 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
3058 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
3059 BINFO_VTABLE. Parameter delta removed, all callers updated.
3060 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
3061 BINFO_VTABLE.
3062 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
3063 all calls.
3064 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
3065 handling of thunk_delta.
3066 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
3067 (devirtualization_time_bonus): Do not handle thunk deltas.
3068 (ipcp_discover_new_direct_edges): Likewise.
3069 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
3070 (try_make_edge_direct_simple_call): Likewise.
3071 (try_make_edge_direct_virtual_call): Likewise.
3072 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
3073 parameter set as unused.
3074 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
3075 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
3076 parameter set as unused.
3077 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
3078 (input_edge_opt_summary): Likewise.
3079 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
3080 BINFO_VIRTUALS at all.
3081 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
3082
3083 2011-09-02 Richard Guenther <rguenther@suse.de>
3084
3085 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
3086 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
3087
3088 2011-08-31 Richard Guenther <rguenther@suse.de>
3089
3090 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
3091 handling here, from ...
3092 (expand_expr_real_1): ... here.
3093 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
3094 and VEC_COND_EXPR.
3095 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
3096 a GIMPLE_TERNARY_RHS.
3097 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
3098 and VEC_COND_EXPR here ...
3099 (verify_gimple_assign_single): ... not here.
3100 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
3101 * tree-object-size.c (cond_expr_object_size): Adjust.
3102 (collect_object_sizes_for): Likewise.
3103 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
3104 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
3105 (ssa_forward_propagate_and_combine): Adjust.
3106 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
3107 as ternary.
3108 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
3109 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
3110 * tree-vect-stmt.c (vectorizable_condition): Likewise.
3111 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
3112 (extract_range_from_assignment): Likewise.
3113
3114 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
3115
3116 * config/i386/i386.md: Use (match_test ...) for attribute tests.
3117 * config/i386/mmx.md: Likewise.
3118 * config/i386/sse.md: Likewise.
3119 * config/i386/predicates.md (call_insn_operand): Use
3120 (not (match_test "...")) instead of (match_test "!...")
3121 * config/i386/constraints.md (w): Likewise.
3122
3123 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
3124
3125 * doc/md.texi: Describe the use of match_tests in attribute tests.
3126 * rtl.def (MATCH_TEST): Update commentary.
3127 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
3128 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
3129
3130 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
3131
3132 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
3133 (attr_string): Use copy_md_ptr_loc.
3134
3135 2011-08-31 Martin Jambor <mjambor@suse.cz>
3136
3137 PR middle-end/49886
3138 * ipa-inline-analysis.c (compute_inline_parameters): Set
3139 can_change_signature of noes with typde attributes.
3140 * ipa-split.c (split_function): Do not skip any arguments if
3141 can_change_signature is set.
3142
3143 2011-08-31 Martin Jambor <mjambor@suse.cz>
3144
3145 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
3146 check removed.
3147
3148 2011-08-31 Richard Guenther <rguenther@suse.de>
3149
3150 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
3151 special-casing.
3152
3153 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
3154
3155 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
3156
3157 2011-08-31 Tom de Vries <tom@codesourcery.com>
3158
3159 PR middle-end/43513
3160 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
3161 * tree-ssa-ccp.c (params.h): Include.
3162 (fold_builtin_alloca_for_var): New function.
3163 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
3164
3165 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
3166
3167 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3168 Handle FMA option.
3169
3170 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
3171
3172 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
3173 b3 and b4 unsigned.
3174
3175 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
3176
3177 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
3178 when code is SET.
3179
3180 2011-08-30 Richard Guenther <rguenther@suse.de>
3181
3182 PR middle-end/48571
3183 * gimple.h (maybe_fold_offset_to_address): Remove.
3184 (maybe_fold_offset_to_reference): Likewise.
3185 (maybe_fold_stmt_addition): Likewise.
3186 (may_propagate_address_into_dereference): Likewise.
3187 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
3188 array references.
3189 * gimple-fold.c (canonicalize_constructor_val): Likewise.
3190 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
3191 addresses instead.
3192 (may_propagate_address_into_dereference): Remove.
3193 (maybe_fold_offset_to_array_ref): Likewise.
3194 (maybe_fold_offset_to_reference): Likewise.
3195 (maybe_fold_offset_to_address): Likewise.
3196 (maybe_fold_stmt_addition): Likewise.
3197 (fold_gimple_assign): Do not reconstruct array references but
3198 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
3199 MEM_REF addresses.
3200 (gimple_fold_stmt_to_constant_1): Likewise.
3201 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3202 * gimplify.c (gimplify_conversion): Likewise.
3203 (gimplify_expr): Likewise.
3204
3205 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
3206
3207 * config/i386/fmaintrin.h: New.
3208 * config.gcc: Add fmaintrin.h.
3209 * config/i386/i386.c
3210 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
3211 <IX86_BUILTIN_VFMADDSD3>: Likewise.
3212 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
3213 (*fmai_fmadd_<mode>): Likewise.
3214 (*fmai_fmsub_<mode>): Likewise.
3215 (*fmai_fnmadd_<mode>): Likewise.
3216 (*fmai_fnmsub_<mode>): Likewise.
3217 * config/i386/immintrin.h: Add fmaintrin.h.
3218
3219 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
3220
3221 * genautomata.c (NO_COMB_OPTION): New macro.
3222 (no_comb_flag): New static variable.
3223 (gen_automata_option): Handle NO_COMB_OPTION.
3224 (comb_vect_p): False if no_comb_flag.
3225 (add_vect): Move computation of min/max values. Return early if
3226 no_comb_flag.
3227 * doc/md.texi (automata_option): Document no-comb-vect.
3228
3229 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
3230 "__x86.get_pc_thunk".
3231
3232 * bb-reorder.c (insert_section_boundary_note): Only do it if
3233 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
3234
3235 2011-08-30 Christian Bruel <christian.bruel@st.com>
3236
3237 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
3238 flag_profile_use.
3239
3240 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
3241
3242 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
3243 to off. Document switch.
3244 * doc/invoke.texi (-msave-toc-indirect): Ditto.
3245
3246 2011-08-29 Jakub Jelinek <jakub@redhat.com>
3247
3248 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
3249 conditionals and comments inside macro arguments.
3250
3251 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
3252 Richard Guenther <rguenther@suse.de>
3253
3254 * tree.h (constant_boolean_node): Adjust prototype.
3255 * fold-const.c (fold_convert_loc): Move aggregate conversion
3256 leeway down.
3257 (constant_boolean_node): Make value parameter boolean, add
3258 vector type handling.
3259 (fold_unary_loc): Use constant_boolean_node.
3260 (fold_binary_loc): Preserve types properly when folding
3261 COMPLEX_EXPR <__real x, __imag x>.
3262 * gimplify.c (gimplify_expr): Handle vector comparison.
3263 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
3264 comparison.
3265 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
3266 comparisons.
3267
3268 2011-08-29 Jakub Jelinek <jakub@redhat.com>
3269
3270 PR middle-end/48722
3271 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
3272 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
3273 (verify_rtl_sharing): Likewise and verify_rtx_sharing
3274 in there too.
3275 (unshare_all_rtl_in_chain): For CALL_INSNs
3276 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
3277
3278 2011-08-29 Richard Guenther <rguenther@suse.de>
3279
3280 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
3281 on the built ADDR_EXPR.
3282
3283 2011-08-29 Jakub Jelinek <jakub@redhat.com>
3284
3285 PR debug/50215
3286 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
3287 before adding ENTRY_VALUE to val->locs.
3288
3289 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
3290
3291 PR bootstrap/50218
3292 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
3293 comp.
3294
3295 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
3296
3297 * doc/rtl.texi (simple_return): Document.
3298 (parallel, PATTERN): Here too.
3299 * doc/md.texi (return): Mention it's allowed to expand to simple_return
3300 in some cases.
3301 (simple_return): Document standard pattern.
3302 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
3303 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
3304 * reorg.c (function_return_label, function_simple_return_label):
3305 New static variables, replacing...
3306 (end_of_function_label): ... this.
3307 (simplejump_or_return_p): New static function.
3308 (optimize_skip, steal_delay_list_from_fallthrough,
3309 fill_slots_from_thread): Use it.
3310 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
3311 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
3312 (find_end_label): Take a new arg which is one of the two return
3313 rtxs. Depending on which, set either function_return_label or
3314 function_simple_return_label. All callers changed.
3315 (make_return_insns): Make both kinds.
3316 (dbr_schedule): Adjust for two kinds of end labels.
3317 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
3318 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
3319 (gen_expand, gen_split): Use ANY_RETURN_P.
3320 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
3321 * rtl.def (SIMPLE_RETURN): New code.
3322 * ifcvt.c (find_if_case_1): Be more careful about
3323 redirecting jumps to the EXIT_BLOCK.
3324 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
3325 returnjump_p_1): Handle SIMPLE_RETURNs.
3326 * print-rtl.c (print_rtx): Likewise.
3327 * rtl.c (copy_rtx): Likewise.
3328 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
3329 * combine.c (simplify_set): Likewise.
3330 * resource.c (find_dead_or_set_registers, mark_set_resources):
3331 Likewise.
3332 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
3333 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
3334 (init_emit_regs): Initialize simple_return_rtx.
3335 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
3336 force_nonfallthru_and_redirect.
3337 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
3338 (GR_SIMPLE_RETURN): New enum value.
3339 (simple_return_rtx): New macro.
3340 * basic-block.h (force_nonfallthru_and_redirect): Adjust
3341 declaration.
3342 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
3343 argument. All callers changed. Be careful about what kinds of
3344 returnjumps to generate.
3345 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
3346 ix86_pad_short_function): Likewise.
3347 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
3348 of return.
3349 * config/mips/mips.md (any_return): New code_iterator.
3350 (optab): Add cases for return and simple_return.
3351 (return): Expand to a simple_return.
3352 (simple_return): New pattern.
3353 (*<optab>, *<optab>_internal for any_return): New patterns.
3354 (return_internal): Remove.
3355 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
3356 a simple_return_internal.
3357
3358 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
3359
3360 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
3361 (vec_extract_lo_<mode>): Prevent both operands in memory.
3362 (vec_extract_lo_v16hi): Ditto.
3363 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
3364
3365 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
3366
3367 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
3368 (*sse2_mulv4si3): Ditto.
3369 (mulv2di3): Ditto.
3370 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
3371 notes to REG_EQUAL.
3372
3373 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
3374
3375 PR target/50202
3376 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
3377 when all outputs are unused.
3378 (sse4_2_pcmpistr): Ditto.
3379
3380 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
3381
3382 * config/i386/i386.md (round<mode>2): New expander.
3383 * config/i386/i386.c (enum ix86_builtins): Add
3384 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
3385 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
3386 descriptions.
3387 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
3388 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
3389
3390 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
3391
3392 PR middle-end/50083
3393 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
3394 only when TARGET_C99_FUNCTIONS.
3395 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
3396 <BUILT_IN_RINT{,F,L}>: Ditto.
3397
3398 2011-08-26 Michael Matz <matz@suse.de>
3399 Jakub Jelinek <jakub@redhat.com>
3400
3401 PR lto/50165
3402 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
3403 don't call strlen twice, use memcpy.
3404
3405 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
3406
3407 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
3408 * config/i386/bmiintrin.h: Likewise.
3409 * config/i386/lzcntintrin.h: Likewise.
3410
3411 * config/i386/immintrin.h: Include <lzcntintrin.h>,
3412 <bmiintrin.h> and <bmi2intrin.h>.
3413
3414 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3415
3416 PR target/50166
3417 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
3418 * configure: Regenerate.
3419
3420 2011-08-26 Jakub Jelinek <jakub@redhat.com>
3421
3422 PR c/50179
3423 * c-typeck.c (c_process_expr_stmt): Skip over nops and
3424 call mark_exp_read even if exprv is ADDR_EXPR.
3425
3426 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
3427
3428 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
3429 to df_set_dead_notes_for_mw.
3430
3431 2011-08-26 Richard Guenther <rguenther@suse.de>
3432
3433 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
3434
3435 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
3436 Tom de Vries <tom@codesourcery.com>
3437
3438 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
3439 (struct ivopts_data): Add loop_single_exit_p field.
3440 (niter_for_exit): Change parameter desc_p into return value. Return
3441 desc if desc->may_be_zero. Free desc if unused.
3442 (niter_for_single_dom_exit): Change return type.
3443 (find_induction_variables): Handle changed return type of
3444 niter_for_single_dom_exit. Dump may_be_zero.
3445 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
3446 (set_use_iv_cost): Add and handle comp parameter.
3447 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
3448 comp argument to set_use_iv_cost.
3449 (strip_wrap_conserving_type_conversions, expr_equal_p)
3450 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
3451 (may_eliminate_iv): Add comp parameter. Handle new return type of
3452 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
3453 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
3454 and may_eliminate_iv.
3455 (rewrite_use_compare): Move call to iv_elimination_compare to ...
3456 (may_eliminate_iv): Here.
3457 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
3458
3459 2011-08-26 Tom de Vries <tom@codesourcery.com>
3460
3461 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
3462 accessing TREE_TYPE.
3463
3464 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
3465
3466 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
3467 (*ior_scc_scc_cmp): Likewise
3468 (*and_scc_scc): Likewise.
3469 (*and_scc_scc_cmp): Likewise.
3470 (*and_scc_scc_nodom): Likewise.
3471 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
3472
3473 2011-08-26 Jakub Jelinek <jakub@redhat.com>
3474
3475 * rtlanal.c (nonzero_bits1): Handle CLRSB.
3476
3477 2011-08-26 Richard Guenther <rguenther@suse.de>
3478
3479 * expr.c (string_constant): Handle &MEM_REF.
3480
3481 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
3482
3483 * config/arm/arm.c (struct four_ints): New type.
3484 (count_insns_for_constant): Delete function.
3485 (find_best_start): Delete function.
3486 (optimal_immediate_sequence): New function.
3487 (optimal_immediate_sequence_1): New function.
3488 (arm_gen_constant): Move constant splitting code to
3489 optimal_immediate_sequence.
3490 Rewrite constant negation/invertion code.
3491
3492 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
3493
3494 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
3495 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
3496 Remove prototype. Remove static function type.
3497 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
3498 Add arch attribute.
3499 * config/arm/constraints.md (Pj, PJ): New constraints.
3500
3501 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3502
3503 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
3504 ("cortex_a9_multiply_long"): New and use above. Handle all
3505 long multiply cases.
3506 ("cortex_a9_multiply"): Handle smmul and smmulr.
3507 ("cortex_a9_mac"): Handle smmla.
3508
3509 2011-08-25 Richard Henderson <rth@redhat.com>
3510
3511 PR 50132
3512 PR 49864
3513 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
3514 non-constant stack adjutment.
3515 * expr.c (find_args_size_adjust): Break out from ...
3516 (fixup_args_size_notes): ... here.
3517 * rtl.h (find_args_size_adjust): Declare.
3518
3519 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
3520
3521 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
3522 sse4 and sse4_noavx.
3523 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
3524 (*pushdf_rex64): Change Y2 register constraint to x.
3525 (*movdf_internal_rex64): Ditto.
3526 (*zero_extendsidi2_rex64): Ditto.
3527 (*movdi_internal): Change Y2 register constraint to x
3528 and update "isa" attribute.
3529 (*pushdf): Ditto.
3530 (*movdf internal): Ditto.
3531 (zero_extendsidi2_1): Ditto.
3532 (*truncdfdf_mixed): Ditto.
3533 (*truncxfdf2_mixed): Ditto.
3534 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
3535 register constraint to x.
3536 (*movv2sf_internal_rex64): Ditto.
3537 (*mov<mode>_internal): Change Y2 register constraint to x
3538 and add "isa" attribute.
3539 (*movv2sf_internal): Ditto.
3540 (*vec_extractv2si_1): Ditto.
3541 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
3542 constraints to x and update "isa" attribute.
3543 (*vec_interleave_highv2df): Change Y3 registerconstraint
3544 to x and update "isa" attribute.
3545 (*vec_interleave_lowv2df): Ditto.
3546 (*vec_concatv2df): Change Y2 register constraint to x and
3547 update "isa" attribute.
3548 (sse2_loadld): Ditto.
3549 (*vec_extractv2di_1): Ditto.
3550 (*vec_dupv4si): Ditto.
3551 (*vec_dupv2di): Ditto.
3552 (*vec_concatv4si): Ditto.
3553 (vec_concatv2di): Ditto.
3554 * config/i386/constraints.md (Y2): Remove.
3555 (Y3): Ditto.
3556 (Y4): Ditto.
3557
3558 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
3559
3560 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
3561 dump_def_use_chain): Don't declare.
3562 (mark_conflict, create_new_chain): Move before users.
3563 (regrename_optimize): Move to near end of file.
3564
3565 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3566
3567 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
3568 (secondary_input_reload_class): Remove Prototype.
3569 * config/avr/avr.c (byte_immediate_operand): Remove Function.
3570 * config/avr/avr.md (setmemhi): Use u8_operand.
3571 (strlenhi): Use const0_rtx for comparison.
3572 * config/avr/avr.h (avr_reg_order): Remove Declaration.
3573
3574 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3575
3576 * config/avr/avr.c (reg_class_tab): Make local to
3577 avr_regno_reg_class. Return smallest register class available.
3578
3579 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3580
3581 * config/avr/avr.c (STR_PREFIX_P): New Define.
3582 (avr_asm_declare_function_name): Use it.
3583 (avr_asm_named_section): Use it.
3584 (avr_section_type_flags): Use it.
3585
3586 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
3587
3588 * doc/md.texi (automata_option): Document collapse-ndfa.
3589 * genautomata.c (COLLAPSE_OPTION): New macro.
3590 (collapse_flag): New static variable.
3591 (struct description): New member normal_decls_num.
3592 (struct automaton): New members advance_ainsn and collapse_ainsn.
3593 (gen_automata_option): Check for COLLAPSE_OPTION.
3594 (collapse_ndfa_insn_decl): New static variable.
3595 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
3596 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
3597 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
3598 necessary. Use normal_decls_num rather than decls_num, remove
3599 test for special decls.
3600 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
3601 (make_automaton); Likewise. Use the new advance_cycle_insn member
3602 of struct automaton.
3603 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
3604 is set.
3605 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
3606 transition. Create the necessary transitions for it.
3607 (create_ainsns): Return void. Take an automaton_t argument, and
3608 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
3609 callers changed.
3610 (COLLAPSE_NDFA_VALUE_NAME): New macro.
3611 (output_tables): Output code to define it.
3612 (output_internal_insn_code_evaluation): Output code to accept
3613 const0_rtx as collapse-ndfa transition.
3614 (output_default_latencies, output_print_reservation_func,
3615 output_print_description): Reorganize loops to use normal_decls_num
3616 as loop bound; remove special case for advance_cycle_insn_decl.
3617 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
3618 (check_automata_insn_issues): Check for collapse_ainsn.
3619 (expand_automate): Allocate sufficient space. Initialize
3620 normal_decls_num.
3621
3622 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3623
3624 * config/avr/avr.md: Fix indentation from r177991.
3625
3626 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
3627
3628 * regrename.c (struct du_head): Remove member terminated.
3629 (create_new_chain): Don't initialize it.
3630 (scan_rtx_reg): Don't set or test it, test the open_chains_set
3631 bitmap instead.
3632 (tick, this_tick): New global variables, moved out of
3633 regrename_optimize.
3634 (current_id, open_chains, closed_chains, open_chains_set,
3635 live_in_chains, live_hard_regs): Reorder declarations.
3636 (dump_def_use_chain): Move function earlier in the file.
3637 (rename_chains): New static function, broken out of
3638 regrename_optimize.
3639 (regrename_optimize): Use it. Remove #if 0'ed code.
3640
3641 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3642
3643 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
3644
3645 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
3646
3647 PR target/50172
3648 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
3649
3650 2011-08-24 Richard Guenther <rguenther@suse.de>
3651
3652 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
3653 ref in the basic-block case. Move stripping array-refs
3654 to the place we create an access-function for it. Remove
3655 bogus stripping down a MEM_REF to its base.
3656
3657 2011-08-24 Richard Guenther <rguenther@suse.de>
3658
3659 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
3660 with -fno-strict-overflow.
3661
3662 2011-08-24 Richard Guenther <rguenther@suse.de>
3663
3664 * tree-vectorizer.c (vect_print_dump_info): Avoid the
3665 file and location clutter when dumping to dump files.
3666
3667 2011-08-24 Simon Baldwin <simonb@google.com>
3668
3669 * gengtype-state.c (write_state): Remove timestamped header line.
3670
3671 2011-08-24 Joseph Myers <joseph@codesourcery.com>
3672
3673 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
3674 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
3675 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
3676 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
3677 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
3678 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
3679 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
3680 rules.
3681 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
3682
3683 2011-08-24 Joseph Myers <joseph@codesourcery.com>
3684
3685 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
3686
3687 2011-08-24 Richard Guenther <rguenther@suse.de>
3688
3689 PR tree-optimization/50067
3690 * tree-data-ref.c (dr_analyze_indices): Do not add an access
3691 function for a MEM_REF base that has no evolution in the loop
3692 nest or that is not analyzable.
3693
3694 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
3695
3696 * ira.c (ira_init_register_move_cost): Check small subclasses
3697 through ira_reg_class_max_nregs and ira_available_class_regs.
3698
3699 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
3700
3701 * config/i386/constraints.md (Yp): New register constraint.
3702 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
3703 Yp register constraint.
3704 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
3705 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
3706 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
3707
3708 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
3709
3710 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
3711
3712 2011-08-23 Mark Heffernan <meheff@google.com>
3713
3714 PR middle-end/38509
3715 * common.opt (Wfree-nonheap-object): New option.
3716 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
3717 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
3718 to warning.
3719 (expand_builtin): Make warning conditional.
3720
3721 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
3722
3723 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
3724 (length_immediate): Handle imulx, ishiftx and rotatex.
3725 (imm_disp): Ditto.
3726 (isa): Add bmi2.
3727 (enabled): Handle bmi2.
3728 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
3729 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
3730 (*bmi2_umulditi3_1): New insn pattern.
3731 (*bmi2_umulsidi3_1): Ditto.
3732 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
3733 (*bmi2_ashl<mode>3_1): New insn pattern.
3734 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
3735 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
3736 (*bmi2_ashlsi3_1_zext): New insn pattern.
3737 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
3738 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
3739 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
3740 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
3741 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
3742 flags dependency.
3743 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
3744 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
3745 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
3746 flags dependency.
3747 (*bmi2_rorx<mode>3_1): New insn pattern.
3748 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
3749 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
3750 (*rotatert<mode>3_1 splitter): Ditto.
3751 (*bmi2_rorxsi3_1_zext): New insn pattern.
3752 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
3753 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
3754 (*rotatertsi3_1_zext splitter): Ditto.
3755
3756 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
3757
3758 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
3759 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
3760 (ix86_handle_option): Handle OPT_mbmi2 case.
3761 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
3762 (x86_64-*-*): Likewise.
3763 * config/i386/bmi2intrin.h: New file.
3764 * config/i386/cpuid.h (bit_BMI2): New.
3765 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3766 BMI2 feature.
3767 * config/i386/i386-c.c (ix86_target_macros_internal):
3768 Conditionally define __BMI2__.
3769 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
3770 Handle BMI2 option.
3771 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
3772 (print_reg): New code.
3773 (ix86_print_operand): Likewise.
3774 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3775 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3776 IX86_BUILTIN_PEXT64.
3777 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3778 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3779 IX86_BUILTIN_PEXT64.
3780 * config/i386/i386.h (TARGET_BMI2): New.
3781 * config/i386/i386.md (UNSPEC_PDEP): New.
3782 (UNSPEC_PEXT): Likewise.
3783 (*bmi2_bzhi_<mode>3): Likewise.
3784 (*bmi2_pdep_<mode>3): Likewise.
3785 (*bmi2_pext_<mode>3): Likewise.
3786 * config/i386/i386.opt (mbmi2): New.
3787 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
3788 is defined.
3789 * doc/extend.texi: Document BMI2 built-in functions.
3790 * doc/invoke.texi: Document -mbmi2.
3791
3792 2011-08-23 Jakub Jelinek <jakub@redhat.com>
3793
3794 PR middle-end/50161
3795 * simplify-rtx.c (simplify_const_unary_operation): If
3796 op is CONST_INT, don't look at op_mode, but use instead mode.
3797 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
3798 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
3799 operation and TRUNCATE/ZERO_EXTEND if needed.
3800 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
3801 Document that operand mode must be same as operation mode,
3802 or VOIDmode.
3803 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
3804 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
3805 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
3806 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
3807 use the mode of operand for the operation and add truncate
3808 or zero_extend around if needed.
3809 * config/c6x/c6x.md (ctzdi2): Likewise.
3810 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
3811
3812 2011-08-12 Michael Matz <matz@suse.de>
3813
3814 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
3815 (gimple_expand_cfg): Merge alignment info for coalesced pointer
3816 SSA names.
3817
3818 2011-08-23 Richard Guenther <rguenther@suse.de>
3819
3820 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
3821 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
3822 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
3823 from ...
3824 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
3825 (mem_refs_may_alias_p): Adjust.
3826 * tree-data-ref.h (dr_may_alias_p): Adjust.
3827 * tree-data-ref.c: Include tree-affine.h.
3828 (dr_analyze_indices): Do nothing for the non-loop case.
3829 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
3830 more cases in the non-loop case.
3831 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
3832 calls to dr_may_alias_p.
3833 (write_alias_graph_to_ascii_ecc): Likewise.
3834 (write_alias_graph_to_ascii_dot): Likewise.
3835 (build_alias_set_optimal_p): Likewise.
3836
3837 2011-08-23 Richard Guenther <rguenther@suse.de>
3838
3839 PR tree-optimization/50162
3840 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
3841
3842 2011-08-23 Richard Guenther <rguenther@suse.de>
3843
3844 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
3845 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
3846 (create_data_ref): Also dump access functions for the created data-ref.
3847
3848 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
3849 Kirill Yukhin <kirill.yukhin@intel.com>
3850
3851 PR target/50155
3852 * config/i386/sse.md (VI_AVX2): New.
3853 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
3854 (*<plusminus_insn><mode>3): Ditto.
3855 (<sse2_avx2>_andnot<mode>3): Ditto.
3856 (*andnot<mode>3): Fix order of cond operands.
3857 Add asserts for correct TARGET_xxx.
3858 (*<any_logic:code><mode>3): Ditto.
3859
3860 2011-08-22 Anatoly Sokolov <aesok@post.ru>
3861
3862 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
3863 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
3864 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
3865 regclass argument type to reg_class_t. Change 'max' and 'v' vars
3866 and return types to unsigned char. Use reg_class_contents instead
3867 of class_contents.
3868 (TARGET_CLASS_MAX_NREGS): Define.
3869
3870 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
3871
3872 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
3873 to make computed_jump_p return true.
3874
3875 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3876
3877 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
3878 (PICFLAG_FOR_TARGET): Substitute.
3879 * aclocal.m4: Regenerate.
3880 * configure: Regenerate.
3881
3882 2011-08-22 Dodji Seketeli <dodji@redhat.com>
3883
3884 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
3885 after reading in the pch.
3886
3887 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
3888
3889 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
3890 * configure: Regenerated.
3891
3892 2011-08-22 Jakub Jelinek <jakub@redhat.com>
3893
3894 PR tree-optimization/50133
3895 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
3896 from stmt instead of some statement around gsi.
3897
3898 PR middle-end/50141
3899 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
3900 innerdecl is a VAR_DECL.
3901
3902 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
3903
3904 * config/i386/avx2intrin.h: New file.
3905 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
3906 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
3907 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
3908 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
3909 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
3910 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
3911 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
3912 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
3913 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
3914 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
3915 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
3916 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
3917 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
3918 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
3919 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
3920 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
3921 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
3922 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
3923 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
3924 VOID_FTYPE_PV8SI_V8SI_V8SI,
3925 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
3926 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
3927 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
3928 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
3929 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
3930 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
3931 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
3932 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
3933 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
3934 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
3935 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
3936 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
3937 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
3938 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
3939 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
3940 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
3941 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
3942 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
3943 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
3944 V4DI_FTYPE_V4DI_INT_CONVERT,
3945 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
3946 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
3947 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
3948 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
3949 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
3950 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
3951 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
3952 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
3953 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
3954 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
3955 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
3956 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
3957 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
3958 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
3959 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
3960 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
3961 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
3962 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
3963 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
3964 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
3965 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
3966 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
3967 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
3968 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
3969 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
3970 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
3971 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
3972 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
3973 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
3974 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
3975 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
3976 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
3977 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
3978 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
3979 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
3980 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
3981 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
3982 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
3983 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
3984 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
3985 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
3986 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
3987 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
3988 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
3989 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
3990 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
3991 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
3992 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
3993 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
3994 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
3995 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
3996 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
3997 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
3998 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
3999 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
4000 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
4001 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
4002 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
4003 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
4004 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
4005 IX86_BUILTIN_VBROADCASTSS_PS256,
4006 IX86_BUILTIN_VBROADCASTSD_PD256,
4007 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
4008 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
4009 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
4010 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
4011 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
4012 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
4013 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
4014 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
4015 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
4016 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
4017 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
4018 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
4019 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
4020 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
4021 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
4022 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
4023 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
4024 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
4025 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
4026 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
4027 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
4028 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
4029 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
4030 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
4031 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
4032 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
4033 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
4034 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
4035 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
4036 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
4037 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
4038 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
4039 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
4040 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
4041 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
4042 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
4043 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
4044 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
4045 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
4046 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
4047 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
4048 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
4049 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
4050 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
4051 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
4052 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
4053 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
4054 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
4055 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
4056 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
4057 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
4058 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
4059 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
4060 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
4061 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
4062 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
4063 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
4064 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
4065 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
4066 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
4067 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
4068 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
4069 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
4070 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
4071 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
4072 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
4073 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
4074 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
4075 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
4076 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
4077 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
4078 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
4079 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
4080 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
4081 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
4082 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
4083 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
4084 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
4085 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
4086 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
4087 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
4088 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
4089 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
4090 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
4091 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
4092 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
4093 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
4094 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
4095 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
4096 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
4097 IX86_BUILTIN_VBROADCASTSD_PD256,
4098 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
4099 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
4100 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
4101 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
4102 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
4103 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
4104 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
4105 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
4106 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
4107 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
4108 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
4109 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
4110 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
4111 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
4112 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
4113 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
4114 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
4115 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
4116 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
4117 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
4118 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
4119 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
4120 IX86_BUILTIN_GATHERDIV8SI.
4121 (ix86_preferred_simd_mode): Support AVX2 modes.
4122 (ix86_expand_args_builtin): Support AVX2 builtins.
4123 (ix86_expand_special_args_builtin): Likewise.
4124 (ix86_expand_builtin): Likewise.
4125 * config/i386/i386.md (UNSPEC_VPERMSI): New.
4126 (UNSPEC_VPERMDF): Likewise.
4127 (UNSPEC_VPERMSF): Likewise.
4128 (UNSPEC_VPERMDI): Likewise.
4129 (UNSPEC_VPERMTI): Likewise.
4130 (UNSPEC_GATHER): Likewise.
4131 (ssemodesuffix): Extend.
4132 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
4133 is defined.
4134 * config/i386/predicates.md (const1248_operand): New.
4135 * config/i386/sse.md (VI1_AVX2): New mode iterator.
4136 (VI2_AVX2): Likewise.
4137 (VI4_AVX2): Likewise.
4138 (VI8_AVX2): Likewise.
4139 (VIMAX_AVX2): Likewise.
4140 (SSESCALARMODE): Likewise.
4141 (VI12_AVX2): Likewise.
4142 (VI24_AVX2): Likewise.
4143 (VI124_AVX2): Likewise.
4144 (VI248_AVX2): Likewise.
4145 (VI48_AVX2): Likewise.
4146 (VI4SD_AVX2): Likewise.
4147 (V48_AVX2): Likewise.
4148 (AVX256MODE2P): Likewise.
4149 (AVXMODE48P_DI): Likewise.
4150 (sse2_avx2): New mode attribute.
4151 (ssse3_avx2): Likewise.
4152 (sse4_1_avx2): Likewise.
4153 (avx_avx2): Likewise.
4154 (ssebytemode): Likewise.
4155 (AVXTOSSEMODE): Likewise.
4156 (AVXMODE48P_DI): Likewise.
4157 (gthrfirstp): Likewise.
4158 (gthrlastp): Likewise.
4159 (lshift): New code_iterator
4160 (lshift): New code attribute.
4161 (lshift): Likewise.
4162 (ssescalarmodesuffix): Update.
4163 (sseunpackmode): Likewise.
4164 (ssepackmode): Likewise.
4165 (avx2_vec_dupv4sf): New insn pattern.
4166 (avx2_vec_dupv8sf): Likewise.
4167 (avx2_interleave_highv4di): Likewise.
4168 (avx2_interleave_lowv4di): Likewise.
4169 (avx2_umulv4siv4di3): Likewise
4170 (*avx2_umulv4siv4di3): Likewise
4171 (avx2_pmaddwd): Likewise.
4172 (*avx2_pmaddwd): Likewise.
4173 (avx2_lshrqv4di3): Likewise.
4174 (avx2_lshlqv4di3): Likewise.
4175 (avx2_lshl<mode>3): Likewise.
4176 (avx2_<umaxmin:code><mode>3): Likewise.
4177 (*avx2_<umaxmin:code><mode>3): Likewise.
4178 (avx2_<smaxmin:code><mode>3): Likewise.
4179 (*avx2_<smaxmin:code><mode>3): Likewise.
4180 (avx2_eq<mode>3): Likewise.
4181 (*avx2_eq<mode>3): Likewise.
4182 (avx2_gt<mode>3): Likewise.
4183 (avx2_interleave_highv32qi): New.
4184 (avx2_interleave_lowv32qi): Likewise.
4185 (avx2_interleave_highv16hi): Likewise.
4186 (avx2_interleave_lowv16hi): Likewise.
4187 (avx2_interleave_highv8si): Likewise.
4188 (avx2_interleave_lowv8si): Likewise.
4189 (avx2_pshufd): Likewise.
4190 (avx2_pshufd_1): Likewise.
4191 (avx2_pshuflwv3): Likewise.
4192 (avx2_pshuflw_1): Likewise.
4193 (avx2_pshufhwv3): Likewise.
4194 (avx2_pshufhw_1): Likewise.
4195 (avx2_uavgv32qi3): Likewise.
4196 (*avx2_uavgv32qi3): Likewise.
4197 (avx2_uavgv16hi3): Likewise.
4198 (*avx2_uavgv16hi3): Likewise.
4199 (avx2_pmovmskb): Likewise.
4200 (avx2_phaddwv16hi3): Likewise.
4201 (avx2_phadddv8si3): Likewise.
4202 (avx2_phaddswv16hi3): Likewise.
4203 (avx2_phsubwv16hi3): Likewise.
4204 (avx2_phsubdv8si3): Likewise.
4205 (avx2_phsubswv16hi3): Likewise.
4206 (avx2_pmaddubsw256): Likewise.
4207 (avx2_umulhrswv16hi3): Likewise.
4208 (*avx2_umulhrswv16hi3): Likewise.
4209 (avx2_packusdw): Likewise.
4210 (avx2_pblendd<mode>): Likewise.
4211 (avx2_<code>v16qiv16hi2): Likewise.
4212 (avx2_<code>v8qiv8si2): Likewise.
4213 (avx2_<code>v8hiv8si2): Likewise.
4214 (avx2_<code>v4qiv4di2): Likewise.
4215 (avx2_<code>v4hiv4di2): Likewise.
4216 (avx2_<code>v4siv4di2): Likewise.
4217 (avx2_pbroadcast<mode>): Likewise.
4218 (avx2_permvarv8si): Likewise.
4219 (avx2_permv4df): Likewise.
4220 (avx2_permvarv8sf): Likewise.
4221 (avx2_permv4di): Likewise.
4222 (avx2_permv2ti): Likewise.
4223 (avx2_vec_dupv4df): Likewise.
4224 (avx2_vbroadcasti128_<mode>): Likewise.
4225 (avx2_vec_set_lo_v4di): Likewise.
4226 (avx2_vec_set_hi_v4di): Likewise.
4227 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
4228 (avx2_extracti128): Likewise.
4229 (avx2_inserti128): Likewise.
4230 (avx2_ashrvv8si): Likewise.
4231 (avx2_ashrvv4si): Likewise.
4232 (avx2_<lshift>vv8si): Likewise.
4233 (avx2_<lshift>v<mode>): Likewise.
4234 (avx2_<lshift>vv2di): Likewise.
4235 (avx2_gathersi<mode>): Likewise.
4236 (*avx2_gathersi<mode>): Likewise.
4237 (avx2_gatherdi<mode>): Likewise.
4238 (*avx2_gatherdi<mode>): Likewise.
4239 (avx2_gatherdi<mode>256): Likewise.
4240 (*avx2_gatherdi<mode>256): Likewise.
4241 (<plusminus_insn><mode>3): Use VI mode iterator.
4242 (*<plusminus_insn><mode>3): Use VI mode iterator.
4243 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
4244 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
4245 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
4246 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
4247 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
4248 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
4249 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
4250 Use VI2_AVX2 mode iterator.
4251 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
4252 Use VI2_AVX2 mode iterator.
4253 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
4254 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
4255 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
4256 Use VI4_AVX2 mode iterator.
4257 (ashr<mode>3): Use VI24_AVX2 mode iterator.
4258 (lshr<mode>3): Use VI248_AVX2 mode iterator.
4259 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
4260 Use VIMAX_AVX2 mode iterator.
4261 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
4262 Use VI mode iterator.
4263 (*andnot<mode>3): Update for AVX2.
4264 (*<any_logic:code><mode>3): Likewise.
4265 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
4266 Use VI1_AVX mode iterator.
4267 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
4268 Use VI2_AVX mode iterator.
4269 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
4270 Use VI1_AVX mode iterator.
4271 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
4272 Use VI8_AVX2 mode iterator.
4273 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
4274 Use VI1_AVX2 mode iterator.
4275 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
4276 Use VI124_AVX2 mode iterator.
4277 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
4278 Use SSESCALARMODE mode iterator.
4279 (abs<mode>2): Use VI124_AVX2 mode iterator.
4280 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
4281 Use VI8_AVX2 mode iterator.
4282 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
4283 Use VI1_AVX2 mode iterator.
4284 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
4285 Use VI1_AVX2 mode iterator.
4286 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
4287 Use VI2_AVX2 mode iterator.
4288 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
4289 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
4290 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
4291 avx_maskstore<ssemodesuffix><avxsizesuffix>.
4292 Use V48_AVX2 mode iterator.
4293 * doc/extend.texi: Document AVX2 built-in functions.
4294 * doc/invoke.texi: Document -mavx2.
4295
4296 2011-08-22 Matthias Klose <doko@debian.org>
4297
4298 Revert:
4299 2011-07-11 Arthur Loiret <aloiret@debian.org>
4300 Matthias Klose <doko@debian.org>
4301 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
4302 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
4303 convention.
4304 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
4305
4306 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
4307
4308 PR bootstrap/50146
4309 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
4310 to #ifndef HONOR_REG_ALLOC_ORDER block.
4311
4312 2011-08-21 Richard Henderson <rth@redhat.com>
4313
4314 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
4315 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
4316 * resource.c (next_insn_no_annul): Likewise.
4317 (mark_set_resources): Likewise.
4318 * reorg.c (delete_from_delay_slot): Likewise.
4319 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
4320 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
4321
4322 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
4323
4324 * config/i386/i386.md (any_div): Remove.
4325 (sgnprefix): Update for removal.
4326 (u): Ditto.
4327
4328 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
4329
4330 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
4331 for ira_reg_class_max_nregs. Increase pressure by 1.
4332 (mark_pseudo_regno_subword_dead): Use allocno class
4333 for ira_reg_class_max_nregs.
4334
4335 2011-08-20 Richard Henderson <rth@redhat.com>
4336
4337 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
4338 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
4339 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
4340 config/c6x/ltf.c: Adjust include path for soft-fp.
4341
4342 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
4343
4344 PR other/46770
4345 * config.gcc (tm_file): Add initfini-array.h if
4346 .init_arrary/.fini_array are supported.
4347
4348 * crtstuff.c: Don't generate .ctors nor .dtors sections if
4349 USE_INITFINI_ARRAY is defined.
4350
4351 * output.h (default_elf_init_array_asm_out_constructor): New.
4352 (default_elf_fini_array_asm_out_destructor): Likewise.
4353 * varasm.c (elf_init_array_section): Likewise.
4354 (elf_fini_array_section): Likewise.
4355 (get_elf_initfini_array_priority_section): Likewise.
4356 (default_elf_init_array_asm_out_constructor): Likewise.
4357 (default_elf_fini_array_asm_out_destructor): Likewise.
4358
4359 * config/initfini-array.h: New.
4360
4361 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
4362
4363 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
4364 OK for ST_REGS and FP_REGS before taking those classes into account.
4365
4366 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
4367
4368 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
4369 before checking for annulled branches.
4370
4371 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
4372
4373 * config/i386/i386.c (ix86_binary_operator_ok): Use
4374 satisfies_constraint_L.
4375
4376 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
4377 Michael Matz <matz@suse.de>
4378
4379 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
4380 trunc (a + copysign (nextafter (0.5, 0.0), a)).
4381
4382 2011-08-20 Anatoly Sokolov <aesok@post.ru>
4383
4384 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4385 * doc/tm.texi: Regenerate.
4386 * targhooks.c (default_preferred_output_reload_class): Don't use
4387 PREFERRED_OUTPUT_RELOAD_CLASS macro.
4388 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
4389
4390 2011-08-20 Jakub Jelinek <jakub@redhat.com>
4391
4392 PR tree-optimization/48739
4393 * tree-ssa.c: Include cfgloop.h.
4394 (execute_update_addresses_taken): When updating ssa, if in loop closed
4395 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
4396 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
4397
4398 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
4399
4400 PR rtl-optimization/49936
4401 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
4402 for calculation of max register move costs.
4403
4404 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4405
4406 * c-parser.c (c_parser_postfix_expression): Convert operands of
4407 __builtin_complex to their semantic types.
4408
4409 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
4410
4411 PR middle-end/49721
4412 * explow.c (convert_memory_address_addr_space): Also permute the
4413 conversion and addition of constant for zero-extend.
4414
4415 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4416
4417 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
4418 * doc/extend.texi (__builtin_complex): Document.
4419
4420 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4421
4422 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
4423 beyond conversions.
4424 (convert_mult_to_widen): Convert constant inputs to the right type.
4425 (convert_plusminus_to_widen): Don't automatically reject inputs that
4426 are not an SSA_NAME.
4427 Convert constant inputs to the right type.
4428
4429 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4430
4431 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
4432 to the correct type.
4433
4434 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4435
4436 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
4437 unsigned inputs of different modes.
4438 (convert_plusminus_to_widen): Likewise.
4439
4440 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4441
4442 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
4443 'type'.
4444 Use 'type' from caller, not inferred from 'rhs'.
4445 Don't reject non-conversion statements. Do return lhs in this case.
4446 (is_widening_mult_p): Add new argument 'type'.
4447 Use 'type' from caller, not inferred from 'stmt'.
4448 Pass type to is_widening_mult_rhs_p.
4449 (convert_mult_to_widen): Pass type to is_widening_mult_p.
4450 (convert_plusminus_to_widen): Likewise.
4451
4452 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4453
4454 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
4455 Ensure the the larger type is the first operand.
4456
4457 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4458
4459 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
4460 unsupported unsigned multiplies to signed.
4461 (convert_plusminus_to_widen): Likewise.
4462
4463 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4464
4465 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
4466 conversion statement separating multiply-and-accumulate.
4467
4468 2011-08-19 Richard Guenther <rguenther@suse.de>
4469
4470 PR tree-optimization/50067
4471 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
4472 offset only if we accounted for it.
4473
4474 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4475
4476 * config/arm/arm.md (maddhidi4): Remove '*' from name.
4477 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
4478 * optabs.c (find_widening_optab_handler_and_mode): New function.
4479 (expand_widen_pattern_expr): Use find_widening_optab_handler.
4480 (expand_binop_directly): Likewise.
4481 (expand_binop): Likewise.
4482 * optabs.h (find_widening_optab_handler): New macro define.
4483 (find_widening_optab_handler_and_mode): New prototype.
4484 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
4485 type precision rules.
4486 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
4487 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
4488 (is_widening_mult_rhs_p): Allow widening by more than one mode.
4489 Explicitly disallow mis-matched input types.
4490 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
4491 input types to fit the new handler.
4492 (convert_plusminus_to_widen): Likewise.
4493
4494 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4495
4496 * expr.c (expand_expr_real_2): Use widening_optab_handler.
4497 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
4498 (gen_insn): $N now means $a must be wider than $b, not consecutive.
4499 * optabs.c (widened_mode): New function.
4500 (expand_widen_pattern_expr): Use widening_optab_handler.
4501 (expand_binop_directly): Likewise.
4502 (expand_binop): Likewise.
4503 * optabs.h (widening_optab_handlers): New struct.
4504 (optab_d): New member, 'widening'.
4505 (widening_optab_handler): New function.
4506 (set_widening_optab_handler): New function.
4507 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
4508 widening_optab_handler.
4509 (convert_plusminus_to_widen): Likewise.
4510
4511 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4512
4513 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
4514 pedantic.
4515 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
4516 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
4517
4518 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4519
4520 * opth-gen.awk: Do not declare target save/restore structures and
4521 functions if IN_RTS defined.
4522
4523 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4524
4525 PR target/49437
4526 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
4527 when stack was realigned in interrupt handler prologue.
4528
4529 2011-08-18 Joseph Myers <joseph@codesourcery.com>
4530
4531 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
4532 (quals_from_declspecs): Assert _Noreturn not present.
4533 (grokdeclarator): Handle _Noreturn.
4534 (build_null_declspecs): Initialize noreturn_p.
4535 (declspecs_add_scspec): Handle RID_NORETURN.
4536 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
4537 (c_parser_attributes): Handle RID_NORETURN.
4538 * c-tree.h (struct c_declspecs): Add noreturn_p.
4539 * ginclude/stdnoreturn.h: New.
4540 * Makefile.in (USER_H): Add stdnoreturn.h.
4541
4542 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
4543
4544 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
4545 (OPTION_MASK_ISA_AVX_UNSET): Update.
4546 (OPTION_MASK_ISA_AVX2_UNSET): New.
4547 (ix86_handle_option): Handle OPT_mavx2 case.
4548 * config/i386/cpuid.h (bit_AVX2): New.
4549 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4550 AVX2 feature.
4551 * config/i386/i386-c.c (ix86_target_macros_internal):
4552 Conditionally define __AVX2__.
4553 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
4554 Define "core-avx2" processor alias. Handle avx2 option.
4555 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
4556 * config/i386/i386.h (TARGET_AVX2): New.
4557 * config/i386/i386.opt (mavx2): New.
4558 * doc/invoke.texi: Document -mavx2.
4559
4560 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
4561
4562 PR rtl-optimization/49890
4563 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
4564 subclasses of class which is superset of a pressure class.
4565
4566 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
4567 Igor Zamyatin <igor.zamyatin@intel.com>
4568
4569 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
4570 with HOST_WIDE_INT for isa_flag.
4571 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
4572 isa variables.
4573
4574 * config/i386/i386.c (ix86_target_string): Replace int with
4575 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
4576 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
4577 (pta_flags): Removed.
4578 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
4579 (pta): Use HOST_WIDE_INT on flags.
4580 (builtin_isa): Use HOST_WIDE_INT on isa.
4581 (ix86_add_new_builtins): Likewise.
4582 (def_builtin): Use HOST_WIDE_INT on mask.
4583 (def_builtin_const): Likewise.
4584 (builtin_description): Likewise.
4585
4586 * config/i386/i386.opt (ix86_isa_flags): Replace int with
4587 HOST_WIDE_INT.
4588 (ix86_isa_flags_explicit): Likewise.
4589 (x_ix86_isa_flags_explicit): Likewise.
4590
4591 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
4592
4593 PR rtl-optimization/50107
4594 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
4595 (ira_hard_reg_in_set_p): New.
4596
4597 * ira-color.c (calculate_saved_nregs): New.
4598 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
4599 hard regs.
4600 (allocno_reload_assign, fast_allocation): Use
4601 ira_hard_reg_set_intersection_p instead of
4602 ira_hard_reg_not_in_set_p.
4603
4604 * ira.c (setup_reg_renumber): Use
4605 ira_hard_reg_set_intersection_p instead of
4606 ira_hard_reg_not_in_set_p.
4607 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
4608 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
4609
4610 * ira-costs.c (ira_tune_allocno_costs): Use
4611 ira_hard_reg_set_intersection_p instead of
4612 ira_hard_reg_not_in_set_p.
4613
4614 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
4615 Igor Zamyatin <igor.zamyatin@intel.com>
4616
4617 * hwint.h (HOST_WIDE_INT_1): New.
4618
4619 * opt-functions.awk (switch_bit_fields): Initialize the
4620 host_wide_int field.
4621 (host_wide_int_var_name): New.
4622 (var_type_struct): Check and return HOST_WIDE_INT.
4623
4624 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
4625
4626 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
4627
4628 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
4629 check masks for HOST_WIDE_INT.
4630
4631 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
4632 (option_enabled): Likewise.
4633 (get_option_state): Likewise.
4634
4635 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
4636 to HOST_WIDE_INT.
4637
4638 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4639 Marc Glisse <marc.glisse@normalesup.org>
4640
4641 PR libstdc++-v3/1773
4642 * target.def (decl_mangling_context): New C++ hook.
4643 * doc/tm.texi: Regenerate.
4644 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
4645 * config/sol2-protos.h: Group by source file.
4646 (solaris_cxx_decl_mangling_context): Declare.
4647 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
4648 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
4649 Use $<.
4650 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
4651 Add sol2-stubs.o to extra_objs.
4652
4653 2011-08-18 Jakub Jelinek <jakub@redhat.com>
4654
4655 PR target/50009
4656 * stor-layout.c (update_alignment_for_field): Don't ICE on
4657 packed flexible array members if ms_bitfield_layout_p.
4658
4659 PR target/50092
4660 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
4661 on the result before returning it.
4662
4663 PR debug/50017
4664 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
4665 is a debug stmt, use location of the first non-debug stmt after it.
4666
4667 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4668
4669 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
4670 (arm_size_rtx_costs): Likewise.
4671
4672 2011-08-18 Richard Guenther <rguenther@suse.de>
4673
4674 * tree.h (tree_int_cst_msb): Remove.
4675 * tree.c (tree_int_cst_msb): Likewise.
4676 (tree_int_cst_sign_bit): Move from ...
4677 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
4678
4679 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4680
4681 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
4682 * doc/tm.texi: Regenerate.
4683 * target.def (rtx_costs): Add an opno parameter.
4684 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
4685 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
4686 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
4687 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
4688 * cse.c (COST_IN): Add an opno parameter.
4689 (notreg_cost): Likewise. Update call to rtx_cost.
4690 (COST, fold_rtx): Update accordingly.
4691 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
4692 * expmed.c (emit_store_flag): Likewise.
4693 * optabs.c (avoid_expensive_constant): Add an opno parameter.
4694 Update call to rtx_cost.
4695 (expand_binop_directly, expand_binop): Likewise.
4696 (expand_twoval_binop, prepare_cmp_insn): Likewise.
4697 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
4698 (set_src_cost, get_full_set_src_cost): Update accordingly.
4699 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
4700 to target hook.
4701 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
4702 (default_adress_cost): Update calls to rtx_cost.
4703
4704 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
4705 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
4706 (arm_rtx_costs): Add an opno parameter.
4707 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
4708 adjust any recursive rtx-cost calls.
4709 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
4710 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4711 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
4712 * config/cris/cris.c (cris_rtx_costs): Likewise.
4713 * config/frv/frv.c (frv_rtx_costs): Likewise.
4714 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
4715 * config/i386/i386.c (ix86_rtx_costs): Likewise.
4716 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
4717 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
4718 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
4719 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
4720 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
4721 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
4722 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
4723 * config/mep/mep.c (mep_rtx_cost): Likewise.
4724 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
4725 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
4726 (mips_zero_extend_cost): Add an opno parameter.
4727 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
4728 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
4729 to rtx_cost.
4730 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
4731 rtx-cost calls.
4732 * config/pa/pa.c (hppa_rtx_costs): Likewise.
4733 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
4734 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
4735 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
4736 (rs6000_debug_rtx_costs): Likewise.
4737 * config/s390/s390.c (s390_rtx_costs): Likewise.
4738 * config/score/score-protos.h (score_rtx_costs): Likewise.
4739 * config/score/score.c (score_rtx_costs): Likewise.
4740 * config/sh/sh.c (andcosts): Update call to rtx_cost.
4741 (sh_rtx_costs): Add an opno parameter.
4742 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
4743 * config/spu/spu.c (spu_rtx_costs): Likewise.
4744 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
4745 * config/v850/v850.c (v850_rtx_costs): Likewise.
4746 * config/vax/vax.c (vax_rtx_costs): Likewise.
4747 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
4748
4749 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4750
4751 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
4752 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
4753 rtx_cost.
4754 * calls.c (precompute_register_parameters): Likewise.
4755 * combine.c (expand_compound_operation, make_extraction): Likewise.
4756 (force_to_mode, distribute_and_simplify_rtx): Likewise.
4757 * dse.c (find_shift_sequence): Likewise.
4758 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
4759 * expr.c (compress_float_constant): Likewise.
4760 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
4761 * gcse.c (want_to_gcse_p): Likewise.
4762 * ifcvt.c (noce_try_sign_mask): Likewise.
4763 * loop-doloop.c (doloop_optimize): Likewise.
4764 * loop-invariant.c (create_new_invariant): Likewise.
4765 * optabs.c (avoid_expensive_constant): Likewise.
4766 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
4767 (try_replace_in_use, reload_cse_move2add): Likewise.
4768 * reload1.c (calculate_elim_costs_all_insns): Likewise.
4769 (note_reg_elim_costly): Likewise.
4770 * rtlanal.c (insn_rtx_cost): Likewise.
4771 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4772 * stmt.c (lshift_cheap_p): Likewise.
4773 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
4774 * config/avr/avr.c (final_prescan_insn): Likewise.
4775 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4776 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
4777
4778 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4779
4780 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
4781 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
4782 * cfgloopanal.c (seq_cost): Likewise.
4783 * loop-invariant.c (create_new_invariant): Likewise.
4784 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
4785 (reload_cse_move2add): Use get_full_set_rtx_cost.
4786
4787 2011-08-18 Richard Guenther <rguenther@suse.de>
4788
4789 * expr.c (get_inner_reference): Fix typo in last change.
4790
4791 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
4792 Joseph Myers <joseph@codesourcery.com>
4793
4794 PR tree-optimization/49963
4795 * hwint.c (absu_hwi): Define.
4796 * hwint.h (absu_hwi): Declare.
4797 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
4798 of abs_hwi.
4799 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4800 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
4801
4802 2011-08-18 Richard Guenther <rguenther@suse.de>
4803
4804 * expr.c (get_inner_reference): Sign-extend the constant
4805 twos-complement offset before doing arbitrary precision
4806 arithmetic on it.
4807 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
4808 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
4809 to get_constraint_for_ptr_offset.
4810
4811 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
4812
4813 PR target/50068
4814 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
4815
4816 2011-08-17 Richard Guenther <rguenther@suse.de>
4817
4818 * tree.h (convert_to_ptrofftype_loc): New function.
4819 (convert_to_ptrofftype): Define.
4820 * builtins.c (expand_builtin_bzero): Use size_type_node.
4821 (fold_builtin_bzero): Likewise.
4822 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
4823 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
4824 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
4825 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
4826 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
4827 * fold-const.c (build_range_check): Negate using the original type.
4828 (fold_unary_loc): Use fold_build_pointer_plus_loc.
4829 * gimple-fold.c (gimple_adjust_this_by_delta): Use
4830 convert_to_ptrofftype.
4831 * gimplify.c (gimplify_self_mod_expr): Likewise.
4832 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
4833 (graphite_create_new_loop_guard): Likewise.
4834 * graphite-sese-to-poly.c (my_long_long): Remove.
4835 (scop_ivs_can_be_represented): Adjust.
4836 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
4837 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
4838 * tree-loop-distribution.c (build_size_arg_loc): Use
4839 size_type_node.
4840 (generate_memset_zero): Simplify.
4841 * tree-mudflap.c: Use fold_convert, not convert.
4842 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
4843 its own type.
4844 (determine_offset): Likewise for DR_STEP.
4845 (valid_initializer_p): Likewise.
4846 * tree-profile.c (prepare_instrumented_value): Convert the pointer
4847 to an integer type of same size.
4848 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
4849 to sizetype without need.
4850 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
4851 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
4852 * tree-ssa-loop-manip.c (create_iv): Likewise.
4853 (determine_exit_conditions): Adjust comment.
4854 * tree-ssa-pre.c (create_expression_by_pieces): Use
4855 convert_to_ptrofftype.
4856 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
4857 * varasm.c (array_size_for_constructor): Compute using double_ints.
4858
4859 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4860
4861 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
4862 when generating an integer result where possible. Short-cut
4863 comparison against 0 also for QImode.
4864
4865 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4866
4867 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
4868 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
4869 prototype.
4870 * config/spu/spu.c (spu_legitimize_reload_address): New function.
4871 (spu_legitimate_address_p): Do not check displacement if the base
4872 is an eliminable stack register.
4873
4874 2011-08-16 Anatoly Sokolov <aesok@post.ru>
4875
4876 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
4877 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
4878 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
4879 m32c_preferred_output_reload_class): Remove.
4880 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
4881 Change rclass argument and return types to reg_class_t. Use
4882 reg_class_subset_p instead of class_sizes.
4883 (m32c_preferred_output_reload_class): Make static. Change rclass
4884 argument and return types to reg_class_t.
4885 (TARGET_PREFERRED_RELOAD_CLASS,
4886 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4887
4888 2011-08-16 Kai Tietz <ktietz@redhat.com>
4889
4890 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
4891
4892 2011-08-16 Richard GUenther <rguenther@suse.de>
4893
4894 PR tree-optimization/50082
4895 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
4896 warnings here, instead of ...
4897 (ssa_forward_propagate_and_combine): ... here.
4898 (forward_propagate_into_comparison_1): Adjust.
4899 (forward_propagate_into_comparison): Likewise.
4900 (forward_propagate_into_gimple_cond): Likewise.
4901 (forward_propagate_into_cond): Likewise.
4902
4903 2011-08-16 Andreas Schwab <schwab@redhat.com>
4904
4905 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
4906 instead of ggc_alloc_zone_vec_rtvec_def.
4907
4908 2011-08-16 Richard Guenther <rguenther@suse.de>
4909
4910 * tree.h (ptrofftype_p): New helper function.
4911 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
4912 offset verification.
4913 (verify_gimple_assign_binary): Likewise.
4914 * tree.c (build2_stat): Likewise.
4915 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
4916 (reset_evolution_in_loop): Likewise.
4917 * tree-chrec.h (build_polynomial_chrec): Likewise.
4918
4919 2011-08-16 Liang Wang <lwang1@marvell.com>
4920
4921 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
4922 ggc_alloc_zone_vec_rtvec_def.
4923
4924 2011-08-16 Richard Guenther <rguenther@suse.de>
4925
4926 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
4927 helper factored out from ...
4928 (extract_range_from_binary_expr_1): ... here. Re-structure
4929 to not glob handling too different tree codes.
4930
4931 2011-08-15 Richard Henderson <rth@redhat.com>
4932
4933 PR middle-end/50006
4934 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
4935 setting out to include allocate_stack named pattern as well.
4936 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
4937 * stmt.c (expand_stack_restore): Likewise.
4938
4939 2011-08-15 Richard Guenther <rguenther@suse.de>
4940
4941 PR middle-end/50082
4942 * fold-const.c (maybe_canonicalize_comparison_1): Properly
4943 convert the modified operand to the other operand type.
4944 (fold_comparison): Call maybe_canonicalize_comparison_1 with
4945 useless conversions stripped from comparison operands.
4946
4947 2011-08-15 Richard Guenther <rguenther@suse.de>
4948
4949 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
4950 (extract_range_from_unary_expr_1): Restructure.
4951
4952 2011-08-15 Richard Guenther <rguenther@suse.de>
4953
4954 PR tree-optimization/50058
4955 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
4956 copy matching.
4957
4958 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4959
4960 PR target/50022
4961 * config/arm/arm.c (output_move_double): Add 2 parameters
4962 to count the number of insns emitted and whether to emit or not.
4963 Use the flag to decide when to emit and count number of instructions
4964 that will be emitted.
4965 Handle case where output_move_double might be called for calculating
4966 lengths with an invalid constant.
4967 (arm_count_output_move_double_insns): Define.
4968 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
4969 (output_move_double): Adjust prototype.
4970 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
4971 output_move_double.
4972 ("*movdi_vfp_cortexa8"): Likewise and add attribute
4973 for ce_count.
4974 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
4975 ("*movdf_soft_insn"): Likewise.
4976 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
4977 ("*cirrus_thumb2_movdi"): Likewise.
4978 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
4979 ("*cirrus_movdf_hard_insn"): Likewise.
4980 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
4981 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
4982 ("mov<mode>_internal VMMX"): Likewise.
4983 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
4984
4985 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
4986
4987 * config/i386/i386.c (ix86_expand_round_sse4): New function.
4988 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
4989 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
4990 for TARGET_ROUND.
4991
4992 (rint<mode>2): Simplify TARGET_ROUND check.
4993 (floor<mode>2): Ditto.
4994 (ceil<mode>2): Ditto.
4995 (btrunc<mode>2): Ditto.
4996
4997 2011-08-14 Anatoly Sokolov <aesok@post.ru>
4998
4999 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
5000 as mmix_preferred_output_reload_class.
5001
5002 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
5003
5004 * PR target/49903
5005 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
5006 (branch_unspec): New insn.
5007 (branch): Beauty farm.
5008 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
5009 to be IF_THEN_ELSE.
5010 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
5011 New static functions.
5012 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
5013 Use CONST_INT_P. Beauty.
5014
5015 2011-08-12 Richard Henderson <rth@redhat.com>
5016
5017 PR rtl-opt/49994
5018 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
5019 * sched-deps.c (init_deps): Clear it.
5020 (deps_analyze_insn): Consume it.
5021 (sched_analyze_insn): Fill it.
5022
5023 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5024
5025 PR target/48328
5026 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
5027 for tbh instructions.
5028
5029 2011-08-12 Diego Novillo <dnovillo@google.com>
5030
5031 * data-streamer.h (streamer_write_zero): Rename from output_zero.
5032 (streamer_write_uhwi): Rename from lto_output_uleb128.
5033 (streamer_write_hwi): Rename from output_sleb128.
5034 (streamer_write_string): Rename from lto_output_string.
5035 (streamer_string_index): Rename from lto_string_index.
5036 (streamer_write_string_with_length): Rename from
5037 lto_output_string_with_length.
5038 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
5039 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
5040 (streamer_read_string): Rename from lto_input_string.
5041 (streamer_read_indexed_string): Rename from input_string_internal.
5042 (streamer_read_uhwi): Rename from lto_input_uleb128.
5043 (streamer_read_hwi): Rename from lto_input_sleb128.
5044 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
5045 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
5046 (streamer_write_enum): Rename from lto_output_enum.
5047 (streamer_read_enum): Rename from lto_input_enum.
5048 (streamer_write_record_start): Rename from output_record_start.
5049 (streamer_read_record_start): Rename from input_record_start.
5050 (streamer_write_bitpack): Rename from lto_output_bitpack.
5051 (streamer_read_bitpack): Rename from lto_input_bitpack.
5052 (streamer_write_char_stream): Rename from lto_output_1_stream.
5053 (streamer_read_uchar): Rename from lto_input_1_unsigned.
5054 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
5055 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
5056 (streamer_read_string_cst): Rename from input_string_cst.
5057 (streamer_read_chain): Rename from lto_input_chain.
5058 (streamer_alloc_tree): Rename from lto_materialize_tree.
5059 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
5060 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
5061 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
5062 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
5063 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
5064 (streamer_write_chain): Rename from lto_output_chain.
5065 (streamer_write_tree_header): Rename from lto_output_tree_header.
5066 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
5067 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
5068 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
5069 (streamer_write_builtin): Rename from lto_output_builtin_tree.
5070 (streamer_check_handled_ts_structures): Rename from
5071 check_handled_ts_structures.
5072 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
5073 (streamer_tree_cache_insert_at): Rename from
5074 lto_streamer_cache_insert_at.
5075 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
5076 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
5077 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
5078 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
5079 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
5080 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
5081 (write_identifier): Rename from output_identifier.
5082 (write_ts_common_tree_pointers): Rename from
5083 lto_output_ts_common_tree_pointers.
5084 (write_ts_vector_tree_pointers): Rename from
5085 lto_output_ts_vector_tree_pointers.
5086 (write_ts_complex_tree_pointers): Rename from
5087 lto_output_ts_complex_tree_pointers.
5088 (write_ts_decl_minimal_tree_pointers): Rename from
5089 lto_output_ts_decl_minimal_tree_pointers.
5090 (write_ts_decl_common_tree_pointers): Rename from
5091 lto_output_ts_decl_common_tree_pointers.
5092 (write_ts_decl_non_common_tree_pointers): Rename from
5093 lto_output_ts_decl_non_common_tree_pointers.
5094 (write_ts_decl_with_vis_tree_pointers): Rename from
5095 lto_output_ts_decl_with_vis_tree_pointers.
5096 (write_ts_field_decl_tree_pointers): Rename from
5097 lto_output_ts_field_decl_tree_pointers.
5098 (write_ts_function_decl_tree_pointers): Rename from
5099 lto_output_ts_function_decl_tree_pointers.
5100 (write_ts_type_common_tree_pointers): Rename from
5101 lto_output_ts_type_common_tree_pointers.
5102 (write_ts_type_non_common_tree_pointers): Rename from
5103 lto_output_ts_type_non_common_tree_pointers.
5104 (write_ts_list_tree_pointers): Rename from
5105 lto_output_ts_list_tree_pointers.
5106 (write_ts_vec_tree_pointers): Rename from
5107 lto_output_ts_vec_tree_pointers.
5108 (write_ts_exp_tree_pointers): Rename from
5109 lto_output_ts_exp_tree_pointers.
5110 (write_ts_block_tree_pointers): Rename from
5111 lto_output_ts_block_tree_pointers.
5112 (write_ts_binfo_tree_pointers): Rename from
5113 lto_output_ts_binfo_tree_pointers.
5114 (write_ts_constructor_tree_pointers): Rename from
5115 lto_output_ts_constructor_tree_pointers.
5116 (write_ts_target_option): Rename from lto_output_ts_target_option.
5117 (write_ts_translation_unit_decl_tree_pointers): Rename from
5118 lto_output_ts_translation_unit_decl_tree_pointers.
5119 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
5120 Rename from lto_streamer_cache_add_to_node_array.
5121 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
5122 (record_common_node): Rename from lto_record_common_node.
5123
5124 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
5125 declarations.
5126 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
5127 function.
5128 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
5129 unused function.
5130 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
5131 (ipa-reference.o): Likewise.
5132 * lto-section-out.c: Include data-streamer.h.
5133 * ipa-reference.c: Include data-streamer.h.
5134
5135 2011-08-12 Nick Clifton <nickc@redhat.com>
5136
5137 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
5138 * doc/md.texi (cmpstrn): Note that the comparison stops if both
5139 fetched bytes are zero.
5140 (cmpstr): Likewise.
5141 (cmpmem): Note that the comparison does not stop if both of the
5142 fetched bytes are zero.
5143
5144 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
5145
5146 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
5147 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
5148 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
5149 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
5150 to integer_type_node.
5151 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
5152 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
5153 * builtins.c (expand_builtin_in): Ditto.
5154 (mathfn_built_in_1): Ditto.
5155 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
5156 BUILT_IN_IFLOOR.
5157 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
5158 BUILT_IN_IROUND.
5159 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
5160 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
5161 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
5162
5163 2011-08-12 Richard Guenther <rguenther@suse.de>
5164
5165 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
5166
5167 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
5168
5169 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
5170
5171 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
5172
5173 * config/arm/arm.c (get_label_padding): New function.
5174 (create_fix_barrier, arm_reorg): Use it.
5175
5176 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
5177
5178 PR target/49781
5179 * config/i386/i386.md (*lea_5_zext): New.
5180 (*lea_6_zext): Ditto.
5181 * config/i386/predicates.md (const_32bit_mask): New predicate.
5182 (lea_address_operand): Reject AND.
5183 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
5184 const_32bit_mask immediate.
5185 (ix86_print_operand_address): Handle AND.
5186 (memory_address_length): Ditto.
5187
5188 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
5189 Brian Hackett <bhackett1024@gmail.com>
5190
5191 * plugin.def: Add event for finish_decl.
5192 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
5193 * c-decl.c (finish_decl): Invoke callbacks on above event.
5194 * doc/plugins.texi: Document above event.
5195
5196 2011-08-11 Richard Guenther <rguenther@suse.de>
5197
5198 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
5199 lookups, make looking through aggregate copies stronger.
5200
5201 2011-08-11 Richard Henderson <rth@redhat.com>
5202
5203 PR bootstrap/50018
5204 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
5205
5206 2011-08-11 Richard Guenther <rguenther@suse.de>
5207
5208 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
5209 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
5210 (vrp_visit_stmt): Likewise.
5211
5212 2011-08-11 Richard Guenther <rguenther@suse.de>
5213
5214 PR middle-end/50040
5215 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
5216 load of the other piece with TREE_NO_WARNING.
5217 * tree-flow.h (warn_uninit): Adjust prototype.
5218 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
5219 the base variable and the expression that is used separately.
5220 Properly query all TREE_NO_WARNING flags.
5221 (struct walk_data): Remove.
5222 (warn_uninitialized_var): Likewise.
5223 (warn_uninitialized_vars): Do not walk gimple pieces but simply
5224 look at all SSA uses of the statement. Handle unused memory
5225 separately.
5226 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
5227
5228 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
5229
5230 * config/rx/rx.md (movsicc): Allow register to register transfers.
5231 (*movsicc): Likewise.
5232 (*stcc): Restrict this pattern to EQ and NE compares.
5233 (*stcc_reg): New pattern. Works for any comparison but only for
5234 register transfers.
5235
5236 2011-08-11 Diego Novillo <dnovillo@google.com>
5237
5238 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
5239 Call stream_write_tree instead of output_record_start.
5240 (lto_output_ts_binfo_tree_pointers): Likewise.
5241
5242 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
5243 Convert it to a macro.
5244 (stream_read_tree): Likewise.
5245
5246 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
5247 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
5248
5249 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
5250 and tree_read_bitfields.
5251 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
5252 (lto_write_tree): Call it.
5253 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
5254 * streamer-hooks.h (struct streamer_hooks): Remove fields
5255 name, is_streamable and alloc_tree. Update all users.
5256 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
5257 (lto_materialize_tree): ... here.
5258 Handle CALL_EXPR codes.
5259 Remove call to lto_streamer_cache_append.
5260 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
5261 * tree-streamer.h (tree_read_bitfields): Declare.
5262
5263 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
5264 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
5265 * tree-streamer.h (stream_read_tree): New. Replace all calls
5266 to lto_input_tree with it.
5267 (stream_write_tree): New. Replace all calls to lto_output_tree,
5268 lto_output_tree_ref and lto_output_tree_or_ref with it.
5269 * lto-streamer-in.c (lto_read_tree): Inline code from
5270 lto_streamer_read_tree.
5271 (lto_input_tree): Move from tree-streamer-in.c.
5272 * lto-streamer-out.c (lto_output_tree_ref): Make static.
5273 Remove handling of NULL values for EXPR.
5274 Do not handle EXPRs that are not indexable.
5275 (lto_write_tree): Move from tree-streamer-out.c.
5276 Inline lto_streamer_write_tree.
5277 (lto_output_tree): Move from tree-streamer-out.c.
5278 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
5279 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
5280 (lto_preload_common_nodes): Likewise.
5281 Remove assertions and adjustments for nodes
5282 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
5283 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
5284 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
5285 * lto-streamer.h (lto_input_tree): Declare.
5286 (lto_output_tree_ref): Remove.
5287 * streamer-hooks.h (struct streamer_hooks): Remove fields
5288 preload_common_nodes, indexable_with_decls_p,
5289 pack_value_fields, unpack_value_fields and output_tree_header.
5290 Update all users.
5291 * tree-streamer-in.c (lto_materialize_tree): Make extern.
5292 (lto_input_tree_pointers): Likewise.
5293 (lto_read_tree): Move to lto-streamer-in.c.
5294 (lto_input_integer_cst): Make extern.
5295 (lto_get_pickled_tree): Likewise.
5296 (lto_get_builtin_tree): Likewise.
5297 (lto_input_tree): Move to lto-streamer-in.c.
5298 * tree-streamer-out.c (pack_value_fields): Make extern.
5299 (lto_output_tree_or_ref): Remove. Replace all callers with
5300 calls to stream_write_tree.
5301 (lto_output_builtin_tree): Make extern.
5302 (lto_streamer_write_tree): Inline into lto_write_tree.
5303 (lto_output_tree_pointers): Make extern.
5304 (lto_output_tree_header): Likewise.
5305 (lto_output_integer_cst): Likewise.
5306 (lto_write_tree): Move to lto-streamer-out.c.
5307 (lto_output_tree): Likewise.
5308 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
5309 (preload_common_nodes): Likewise.
5310 (lto_streamer_cache_create): Call it.
5311 * tree-streamer.h: Include streamer-hooks.h.
5312 (stream_write_tree): New.
5313 (stream_read_tree): New.
5314 (lto_input_tree): Remove.
5315 (lto_materialize_tree): Declare.
5316 (lto_input_tree_pointers): Declare.
5317 (lto_get_pickled_tree): Declare.
5318 (lto_get_builtin_tree): Declare.
5319 (lto_input_integer_cst): Declare.
5320 (lto_output_tree_header): Declare.
5321 (pack_value_fields): Declare.
5322 (lto_output_tree_pointers): Declare.
5323 (lto_output_integer_cst): Declare.
5324 (lto_output_builtin_tree): Declare.
5325
5326 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
5327
5328 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
5329 only if producer writes to the register given by regno.
5330
5331 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
5332 Alexander Monakov <amonakov@ispras.ru>
5333
5334 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
5335 (sched_get_condition_with_rev_uncached): ... this. Factor out
5336 condition caching logic into ...
5337 (sched_get_condition_with_rev): ... this. Reimplement. Do not
5338 attempt to use cache for instructions with zero luid.
5339 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
5340 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
5341
5342 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
5343
5344 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
5345 get_seqno_for_a_jump. Update the caller.
5346 (get_seqno_by_succs): New. Use it ...
5347 (get_seqno_for_a_jump): ... here to find a seqno if looking at
5348 predecessors was not sufficient.
5349 (get_seqno_by_preds): Include head in iteration range, exclude insn.
5350
5351 2011-08-11 Dmitry Melnik <dm@ispras.ru>
5352
5353 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
5354
5355 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
5356
5357 * sel-sched-ir.h (register_unavailable_p): Declare.
5358 * sel-sched-ir.c (register_unavailable_p): New. Use it...
5359 (set_unavailable_target_for_expr): ... here to properly test
5360 availability of a register.
5361 (speculate_expr): Ditto.
5362 * sel-sched.c (substitute_reg_in_expr): Ditto.
5363 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
5364
5365 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
5366
5367 * sel-sched.c (verify_target_availability): Fix usage of
5368 hard_regno_nregs.
5369
5370 2011-08-11 Dmitry Melnik <dm@ispras.ru>
5371
5372 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
5373 recognized by cannot_copy_insn_p hook and volatile instructions.
5374
5375 2011-08-11 Dmitry Melnik <dm@ispras.ru>
5376
5377 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
5378
5379 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
5380
5381 * doc/md.texi (define_bypass): Say that the instruction names can
5382 be filename-style globs.
5383 * Makefile.in (FNMATCH_H): Define.
5384 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
5385 * genattrtab.c: Include fnmatch.h.
5386 (bypass_list): Change field name from "insn" to "pattern".
5387 (gen_bypass_1): Update accordingly.
5388 (process_bypasses): Use fnmatch to check for matches between
5389 insn reservations and define_bypasses.
5390 * genautomata.c: Include fnmatch.h.
5391 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
5392 and out_pattern respectively.
5393 (gen_bypass, insert_bypass): Update accordingly.
5394 (for_each_matching_insn, process_bypass_2, process_bypass_1)
5395 (process_bypass): New functions.
5396 (process_decls): Use process_bypass. Update after field name changes.
5397
5398 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
5399
5400 PR target/49687
5401 * config/avr/avr.md (smulqi3_highpart): New insn.
5402 (umulqi3_highpart): New insn.
5403 (*subqi3.ashiftrt7): New insn.
5404 (smulhi3_highpart): New expander.
5405 (umulhi3_highpart): Nex expander.
5406 (*smulhi3_highpart_call): New insn.
5407 (*umulhi3_highpart_call): New insn.
5408 (extend_u): New code attribute.
5409 (extend_prefix): Rename code attribute to extend_su.
5410 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
5411 widening QI/HI multiply.
5412
5413 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
5414
5415 PR tree-optimization/50039
5416 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
5417 that DEF_STMT has a stmt_vec_info.
5418
5419 2011-08-10 Richard Guenther <rguenther@suse.de>
5420
5421 * tree.h (can_trust_pointer_alignment): Remove.
5422 * builtins.c (can_trust_pointer_alignment): Remove.
5423
5424 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5425
5426 * c-typeck.c (scalar_to_vector): New function. Try scalar to
5427 vector conversion.
5428 (stv_conv): New enum for scalar_to_vector return type.
5429 (build_binary_op): Adjust.
5430 * doc/extend.texi: Description of scalar to vector expansion.
5431
5432 2011-08-10 Richard Guenther <rguenther@suse.de>
5433
5434 * tree.h (get_pointer_alignment): Remove max-align argument.
5435 (get_object_alignment): Likewise.
5436 * builtins.c (get_object_alignment_1): Adjust.
5437 (get_object_alignment): Remove max-align argument.
5438 (get_pointer_alignment): Likewise.
5439 (expand_builtin_strlen): Adjust.
5440 (expand_builtin_memcpy): Likewise.
5441 (expand_builtin_mempcpy_args): Likewise.
5442 (expand_builtin_strncpy): Likewise.
5443 (expand_builtin_memset_args): Likewise.
5444 (expand_builtin_memcmp): Likewise.
5445 (expand_builtin_strcmp): Likewise.
5446 (expand_builtin_strncmp): Likewise.
5447 (get_builtin_sync_mem): Likewise.
5448 (fold_builtin_memset): Likewise.
5449 (fold_builtin_memory_op): Likewise.
5450 (expand_builtin_memory_chk): Likewise.
5451 * emit-rtl.c (get_mem_align_offset): Likewise.
5452 (set_mem_attributes_minus_bitpos): Likewise.
5453 * expr.c (expand_assignment): Likewise.
5454 (expand_expr_real_1): Likewise.
5455 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
5456 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
5457 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
5458 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
5459 * value-prof.c (gimple_stringops_transform): Likewise.
5460
5461 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
5462
5463 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
5464 * doc/tm.texi: Regenerate.
5465
5466 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
5467
5468 PR target/29560
5469 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
5470 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
5471 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
5472 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
5473 shift target is unused.
5474
5475 2011-08-10 Richard Guenther <rguenther@suse.de>
5476
5477 PR tree-optimization/49937
5478 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
5479 using get_object_alignment_1.
5480
5481 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
5482
5483 * config/i386/i386.c (ix86_emit_i387_round): New function.
5484 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
5485 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
5486 Use ix86_emit_i387_round to expand round function for i387 math.
5487 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
5488 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
5489
5490 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5491
5492 * config/sync.c: Move to ../libgcc.
5493 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
5494 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
5495 Remove.
5496
5497 2011-08-09 Anatoly Sokolov <aesok@post.ru>
5498
5499 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
5500 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
5501 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
5502 Change 'from' and 'to' arguments type to reg_class_t.
5503 (TARGET_REGISTER_MOVE_COST): Define.
5504
5505 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
5506
5507 PR target/50026
5508 Revert:
5509 PR rtl-optimization/49990
5510 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
5511 ignore classes which can not change mode.
5512 (find_costs_and_classes): Ditto.
5513
5514 2011-08-09 Richard Guenther <rguenther@suse.de>
5515
5516 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
5517 information for ranges with only negative values.
5518 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
5519 BIT_AND_EXPR handling to handle ranges with negative values.
5520
5521 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
5522
5523 * config/i386/i386.c: Remove traling spaces.
5524 * config/i386/sse.md: Likewise.
5525 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
5526 (*fma_fmsub_<mode>): Likewise.
5527 (*fma_fnmadd_<mode>): Likewise.
5528 (*fma_fnmsub_<mode>): Likewise.
5529
5530 2011-08-09 Nick Clifton <nickc@redhat.com>
5531
5532 * config/rx/rx.md: Disable extender peepholes at -O3.
5533
5534 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
5535
5536 PR target/49781
5537 * config/i386/i386.md (reload_noff_load): New.
5538 (reload_noff_store): Ditto.
5539 * config/i386/i386.c (ix86_secondary_reload): Use
5540 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
5541 double-word moves from/to non-offsetable addresses instead of
5542 generating XMM temporary.
5543
5544 2011-08-09 Anatoly Sokolov <aesok@post.ru>
5545
5546 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
5547
5548 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
5549
5550 PR tree-optimization/50014
5551 * tree-vect-loop.c (vectorizable_reduction): Get def type before
5552 calling vect_get_vec_def_for_stmt_copy ().
5553
5554 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
5555
5556 PR rtl-optimization/49990
5557 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
5558 ignore classes which can not change mode.
5559 (find_costs_and_classes): Ditto.
5560
5561 2011-08-08 Richard Henderson <rth@redhat.com>
5562
5563 PR middle-end/49990
5564 * config/i386/i386.c (ix86_expand_prologue): Call
5565 for SEH target gen_prologue_use instead of gen_blockage
5566 at prologue's end.
5567
5568 2011-08-08 Martin Jambor <mjambor@suse.cz>
5569
5570 PR middle-end/49923
5571 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
5572 memory alignment.
5573
5574 2011-08-08 Diego Novillo <dnovillo@google.com>
5575
5576 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
5577 (DATA_STREAMER_H): New.
5578 (GIMPLE_STREAMER_H): New.
5579 (TREE_STREAMER_H): New.
5580 (STREAMER_HOOKS_H): New.
5581 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
5582 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
5583 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
5584 (data-streamer.o): New.
5585 (data-streamer-in.o): New.
5586 (data-streamer-out.o): New.
5587 (gimple-streamer-in.o): New.
5588 (gimple-streamer-out.o): New.
5589 (streamer-hooks.o): New.
5590 (tree-streamer.o): New.
5591 (tree-streamer-in.o): New.
5592 (tree-streamer-out.o): New.
5593 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
5594 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
5595 GIMPLE_STREAMER_H and TREE_STREAMER_H.
5596 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
5597 GIMPLE_STREAMER_H and TREE_STREAMER_H.
5598 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
5599 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
5600 (ipa-inline-analysis.o): Likewise.
5601 (ipa-pure-const.o): Likewise.
5602 * data-streamer-in.c: New.
5603 * data-streamer-out.c: New.
5604 * data-streamer.c: New.
5605 * data-streamer.h: New.
5606 * gimple-streamer-in.c: New.
5607 * gimple-streamer-out.c: New.
5608 * gimple-streamer.h: New.
5609 * ipa-inline-analysis.c: Include data-streamer.h.
5610 * ipa-prop.c: Include data-streamer.h.
5611 * ipa-pure-const.c: Include data-streamer.h.
5612 * lto-cgraph.c: Include data-streamer.h.
5613 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
5614 (lto_input_widest_uint_uleb128): Likewise.
5615 (lto_input_sleb128): Likewise.
5616 (bp_unpack_var_len_unsigned): Likewise.
5617 (bp_unpack_var_len_int): Likewise.
5618 * lto-section-out.c (lto_output_uleb128_stream): Move to
5619 data-streamer-out.c.
5620 (lto_output_widest_uint_uleb128_stream): Likewise.
5621 (lto_output_sleb128_stream): Likewise.
5622 (bp_pack_var_len_unsigned): Likewise.
5623 (bp_pack_var_len_int): Likewise.
5624 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
5625 (struct string_slot): Remove. Update all users.
5626 (lto_tag_check_set): Make extern.
5627 (lto_tag_check_range): Move to lto-streamer.h.
5628 (lto_tag_check): Likewise.
5629 (hash_string_slot_node): Remove. Update all users.
5630 (eq_string_slot_node): Remove. Update all users.
5631 (string_for_index): Move to data-streamer-in.c
5632 (input_string_internal): Likewise.
5633 (input_string_cst): Move to tree-streamer-in.c.
5634 (input_identifier): Likewise.
5635 (lto_input_string): Move to data-streamer-in.c
5636 (input_record_start): Move to data-streamer.h
5637 (canon_file_name): Use new definition of struct string_slot
5638 from data-streamer.h. Set S_SLOT.LEN.
5639 (lto_input_location): Make extern.
5640 (lto_input_chain): Move to tree-streamer-in.c.
5641 (lto_init_eh): Make extern.
5642 (input_phi): Move to gimple-streamer-in.c.
5643 (input_gimple_stmt): Likewise.
5644 (input_bb): Likewise.
5645 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
5646 (unpack_ts_real_cst_value_fields): Likewise.
5647 (unpack_ts_fixed_cst_value_fields): Likewise.
5648 (unpack_ts_decl_common_value_fields): Likewise.
5649 (unpack_ts_decl_wrtl_value_fields): Likewise.
5650 (unpack_ts_decl_with_vis_value_fields): Likewise.
5651 (unpack_ts_function_decl_value_fields): Likewise.
5652 (unpack_ts_type_common_value_fields): Likewise.
5653 (unpack_ts_block_value_fields): Likewise.
5654 (unpack_ts_translation_unit_decl_value_fields): Likewise.
5655 (unpack_value_fields): Likewise.
5656 (lto_materialize_tree): Likewise.
5657 (lto_input_ts_common_tree_pointers): Likewise.
5658 (lto_input_ts_vector_tree_pointers): Likewise.
5659 (lto_input_ts_complex_tree_pointers): Likewise.
5660 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
5661 (lto_input_ts_decl_common_tree_pointers): Likewise.
5662 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
5663 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
5664 (lto_input_ts_field_decl_tree_pointers): Likewise.
5665 (lto_input_ts_function_decl_tree_pointers): Likewise.
5666 (lto_input_ts_type_common_tree_pointers): Likewise.
5667 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5668 (lto_input_ts_list_tree_pointers): Likewise.
5669 (lto_input_ts_vec_tree_pointers): Likewise.
5670 (lto_input_ts_exp_tree_pointers): Likewise.
5671 (lto_input_ts_block_tree_pointers): Likewise.
5672 (lto_input_ts_binfo_tree_pointers): Likewise.
5673 (lto_input_ts_constructor_tree_pointers): Likewise.
5674 (lto_input_ts_target_option): Likewise.
5675 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
5676 (lto_input_tree_pointers): Likewise.
5677 (lto_get_pickled_tree): Likewise.
5678 (lto_get_builtin_tree): Likewise.
5679 (lto_read_tree): Likewise.
5680 (lto_input_integer_cst): Likewise.
5681 (lto_input_tree): Likewise.
5682 * lto-streamer-out.c: Include data-streamer.h,
5683 gimple-streamer.h and streamer-hooks.h.
5684 (struct string_slot): Move to data-streamer.h.
5685 (hash_string_slot_node): Likewise.
5686 (eq_string_slot_node): Likewise.
5687 (lto_string_index): Move to data-streamer-out.c.
5688 (lto_output_string_with_length): Likewise.
5689 (lto_output_string): Likewise.
5690 (output_string_cst): Move to tree-streamer-out.c.
5691 (output_identifier): Likewise.
5692 (output_zero): Move to data-streamer-out.c
5693 (output_uleb128): Likewise.
5694 (output_sleb128): Likewise.
5695 (output_record_start): Move to data-streamer.h
5696 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
5697 (pack_ts_real_cst_value_fields): Likewise.
5698 (pack_ts_fixed_cst_value_fields): Likewise.
5699 (pack_ts_decl_common_value_fields): Likewise.
5700 (pack_ts_decl_wrtl_value_fields): Likewise.
5701 (pack_ts_decl_with_vis_value_fields): Likewise.
5702 (pack_ts_function_decl_value_fields): Likewise.
5703 (pack_ts_type_common_value_fields): Likewise.
5704 (pack_ts_block_value_fields): Likewise.
5705 (pack_ts_translation_unit_decl_value_fields): Likewise.
5706 (pack_value_fields): Likewise.
5707 (lto_output_chain): Likewise.
5708 (lto_output_ts_common_tree_pointers): Likewise.
5709 (lto_output_ts_vector_tree_pointers): Likewise.
5710 (lto_output_ts_complex_tree_pointers): Likewise.
5711 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
5712 (lto_output_ts_decl_common_tree_pointers): Likewise.
5713 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
5714 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
5715 (lto_output_ts_field_decl_tree_pointers): Likewise.
5716 (lto_output_ts_function_decl_tree_pointers): Likewise.
5717 (lto_output_ts_type_common_tree_pointers): Likewise.
5718 (lto_output_ts_type_non_common_tree_pointers): Likewise.
5719 (lto_output_ts_list_tree_pointers): Likewise.
5720 (lto_output_ts_vec_tree_pointers): Likewise.
5721 (lto_output_ts_exp_tree_pointers): Likewise.
5722 (lto_output_ts_block_tree_pointers): Likewise.
5723 (lto_output_ts_binfo_tree_pointers): Likewise.
5724 (lto_output_ts_constructor_tree_pointers): Likewise.
5725 (lto_output_ts_target_option): Likewise.
5726 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
5727 (lto_output_tree_pointers): Likewise.
5728 (lto_output_tree_header): Likewise.
5729 (lto_output_builtin_tree): Likewise.
5730 (lto_write_tree): Likewise.
5731 (lto_output_integer_cst): Likewise.
5732 (lto_output_tree): Likewise.
5733 (output_phi): Move to gimple-streamer-out.c.
5734 (output_gimple_stmt): Likewise.
5735 (output_bb): Likewise.
5736 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
5737 (streamer_hooks): Move to streamer-hooks.c.
5738 (check_handled_ts_structures): Move to tree-streamer.c
5739 (lto_streamer_cache_add_to_node_array): Likewise.
5740 (lto_streamer_cache_insert_1): Likewise.
5741 (lto_streamer_cache_insert): Likewise.
5742 (lto_streamer_cache_insert_at): Likewise.
5743 (lto_streamer_cache_append): Likewise.
5744 (lto_streamer_cache_lookup): Likewise.
5745 (lto_streamer_cache_get): Likewise.
5746 (lto_record_common_node): Likewise.
5747 (lto_preload_common_nodes): Likewise.
5748 (lto_streamer_cache_create): Likewise.
5749 (lto_streamer_cache_delete): Likewise.
5750 (streamer_hooks_init): Move to streamer-hooks.c.
5751 * lto-streamer.h: Include diagnostic.h
5752 (struct output_block, struct lto_input_block,
5753 struct data_in, struct bitpack_d): Remove forward declarations.
5754 (struct bitpack_d): Move to data-streamer.h.
5755 (struct lto_streamer_cache_d): Move to tree-streamer.h.
5756 (struct streamer_hooks): Move to streamer-hooks.h.
5757 (bp_pack_var_len_unsigned): Move to data-streamer.h.
5758 (bp_pack_var_len_int): Likewise.
5759 (bp_unpack_var_len_unsigned): Likewise.
5760 (bp_unpack_var_len_int): Likewise.
5761 (lto_input_location): Declare.
5762 (lto_tag_check_set): Declare.
5763 (lto_init_eh): Declare.
5764 (lto_output_tree_ref): Declare.
5765 (lto_output_location): Declare.
5766 (bitpack_create): Move to data-streamer.h.
5767 (bp_pack_value): Likewise.
5768 (lto_output_bitpack): Likewise.
5769 (lto_input_bitpack): Likewise.
5770 (bp_unpack_value): Likewise.
5771 (lto_output_1_stream): Likewise.
5772 (lto_input_1_unsigned): Likewise.
5773 (lto_output_int_in_range): Likewise.
5774 (lto_input_int_in_range): Likewise.
5775 (bp_pack_int_in_range): Likewise.
5776 (bp_unpack_int_in_range): Likewise.
5777 (lto_output_enum): Likewise.
5778 (lto_input_enum): Likewise.
5779 (bp_pack_enum): Likewise.
5780 (bp_unpack_enum): Likewise.
5781 * streamer-hooks.c: New.
5782 * streamer-hooks.h: New.
5783 * tree-streamer-in.c: New.
5784 * tree-streamer-out.c: New.
5785 * tree-streamer.c: New.
5786 * tree-streamer.h: New.
5787
5788 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5789
5790 * gthr-posix95.h: Remove.
5791 * gthr.h [_PTHREADS95]: Remove.
5792 * configure.ac (enable_threads): Remove posix95.
5793 * configure: Regenerate.
5794 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
5795
5796 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
5797
5798 PR target/49781
5799 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
5800 SImode addresses.
5801 (ix86_print_operand_address): Handle zero-extended addresses.
5802 (memory_address_length): Add length of addr32 prefix for
5803 zero-extended addresses.
5804 (ix86_secondary_reload): Handle moves to/from double-word general
5805 registers from/to zero-extended addresses.
5806 * config/i386/predicates.md (lea_address_operand): Reject
5807 zero-extended operands.
5808
5809 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
5810
5811 PR other/48007
5812 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
5813
5814 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
5815 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
5816
5817 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
5818 (_Unwind_Context_Reg_Val): Likewise.
5819 (_Unwind_Get_Unwind_Word): Likewise.
5820 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
5821 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
5822 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
5823 for EXTENDED_CONTEXT_BIT.
5824 (__frame_state_for): Likewise.
5825 (uw_init_context_1): Likewise.
5826 (_Unwind_GetGR): Updated.
5827 (_Unwind_SetGR): Likewise.
5828 (_Unwind_GetGRPtr): Likewise.
5829 (_Unwind_SetGRPtr): Likewise.
5830 (_Unwind_SetGRValue): Likewise.
5831 (_Unwind_GRByValue): Likewise.
5832 (uw_install_context_1): Likewise.
5833
5834 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
5835 ASSUME_EXTENDED_UNWIND_CONTEXT.
5836 * doc/tm.texi: Regenerated.
5837
5838 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5839
5840 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
5841
5842 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5843
5844 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
5845 Linux/GNU-specific.
5846 (DEC Alpha Options, -mtune): Likewise.
5847 (MIPS Options, -march): native is supported on IRIX.
5848
5849 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5850
5851 * config/sparc/driver-sparc.c: New file.
5852 * config/sparc/x-sparc: New file.
5853 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
5854 * config/sparc/sparc.opt (native): New value for enum processor_type.
5855 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
5856 * config/sparc/sparc.c (sparc_option_override): Abort if
5857 PROCESSOR_NATIVE gets here.
5858 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
5859 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
5860 DRIVER_SELF_SPECS): Define.
5861 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
5862 (SPARC Options, -mtune): Likewise.
5863 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
5864 Substitute result.
5865 * configure: Regenerate.
5866 * Makefile.in (EXTRA_GCC_LIBS): Set.
5867 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
5868 (cpp$(exeext)): Likewise.
5869
5870 2011-08-08 Richard Guenther <rguenther@suse.de>
5871
5872 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
5873 split out from ...
5874 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
5875 by composition.
5876
5877 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
5878
5879 PR tree-optimization/50005
5880 * ipa-inline-analysis (remap_predicate): Add cast to
5881 silence signed/unsigned comparison warning.
5882
5883 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
5884
5885 * modulo-sched.c (get_sched_window): Use a table for the debug output.
5886 Print the current ii.
5887 (sms_schedule_by_order): Reduce whitespace in dump line.
5888
5889 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
5890
5891 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
5892 and one loop for successors. Fix upper bound of memory range.
5893
5894 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5895
5896 PR target/50001
5897 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
5898 (TARGET_INSTANTIATE_DECLS): New define.
5899
5900 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
5901 Mikael Morin <mikael.morin@sfr.fr>
5902
5903 * Makefile.in (INCLUDES_FOR_TARGET): New.
5904 (LIBGCC2_CFLAGS): Use it.
5905 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
5906
5907 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5908
5909 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
5910 frame->save_regs_using_mov calculation.
5911
5912 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5913
5914 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
5915 * config/i386/sse.md (castmode): New mode attribute.
5916 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
5917 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
5918
5919 2011-08-05 Jan Hubicka <jh@suse.cz>
5920
5921 PR middle-end/49494
5922 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
5923
5924 2011-08-05 Jan Hubicka <jh@suse.cz>
5925
5926 PR middle-end/49500
5927 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
5928 handle aliases.
5929 (create_emultls_var):New function.
5930 (ipa_lower_emutls): Handle aliases correctly.
5931
5932 2011-08-05 Jan Hubicka <jh@suse.cz>
5933
5934 PR middle-end/49735
5935 * ipa-inline.c (recursive_inlining): Look through aliases.
5936
5937 2011-08-05 Jason Merrill <jason@redhat.com>
5938
5939 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
5940 declarations to beginning of function.
5941
5942 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
5943
5944 PR rtl-optimization/49900
5945 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
5946 ensure basic blocks stay in the same order.
5947
5948 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
5949
5950 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
5951 store_bit_field.
5952 (s390_expand_atomic): Same.
5953
5954 2011-08-05 Richard Henderson <rth@redhat.com>
5955
5956 PR rtl-opt/49977
5957 * dwarf2cfi.c (scan_insn_after): Split out of ...
5958 (scan_trace): ... here. Correctly place notes wrt sequences.
5959
5960 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
5961 Richard Henderson <rth@redhat.com>
5962
5963 PR rtl-opt/49982
5964 * expr.c (fixup_args_size_notes): Look through no-op moves.
5965
5966 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5967
5968 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
5969 of "m" for operand 0. Add type and mode attribute.
5970 (*pushxf_nointeger"): Use "<" constraint for operand 0.
5971 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
5972 constraint instead of "o" for opreand 1.
5973 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
5974 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
5975 operand 0, alternative 4.
5976 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
5977
5978 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5979
5980 * config/i386/predicates.md (lea_address_operand): Rename from
5981 no_seg_address_operand.
5982 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
5983 (*lea_1_zext): Ditto.
5984 (*lea_2): Ditto.
5985 (*lea_2_zext): Ditto.
5986
5987 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5988
5989 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
5990 parts.base and parts.index.
5991 * config/i386/predicates.md (aligned_operand): Ditto.
5992 (cmpxchg8b_pic_memory_operand): Ditto.
5993
5994 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5995
5996 * config/soft-fp: Move to ../libgcc.
5997 * Makefile.in (SFP_MACHINE): Remove.
5998 (libgcc-support): Remove $(SFP_MACHINE) dependency.
5999 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
6000 * config/arm/t-arm-softfp: Move to
6001 ../libgcc/config/arm/t-softfp.
6002 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
6003 * config/c6x/t-c6x-softfp: Remove.
6004 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
6005 * config/i386/t-fprules-softfp: Move to
6006 ../libgcc/config/t-softfp-tf.
6007 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
6008 * config/ia64/t-fprules-softfp: Remove.
6009 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
6010 * config/lm32/t-fprules-softfp: Remove.
6011 * config/moxie/sfp-machine.h: Remove.
6012 * config/moxie/t-moxie-softfp: Remove.
6013 * config/rs6000/darwin-ldouble-format: Move to
6014 ../libgcc/config/rs6000/ibm-ldouble-format.
6015 * config/rs6000/darwin-ldouble.c: Move to
6016 ../libgcc/config/rs6000/ibm-ldouble.c
6017 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
6018 * config/rs6000/libgcc-ppc64.ver: Likewise.
6019 * config/rs6000/sfp-machine.h: Likewise.
6020 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
6021 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
6022 (LIB2FUNCS_EXTRA): Remove.
6023 (TARGET_LIBGCC2_CFLAGS): Remove.
6024 * config/rs6000/t-aix52: Likewise
6025 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
6026 $(srcdir)/config/rs6000/darwin-ldouble.c.
6027 (SHLIB_MAPFILES): Remove.
6028 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
6029 $(srcdir)/config/rs6000/darwin-ldouble.c.
6030 * config/rs6000/t-fprules-softfp: Move to
6031 ../libgcc/config/t-softfp-sfdf.
6032 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
6033 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
6034 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
6035 $(srcdir)/config/rs6000/darwin-ldouble.c.
6036 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
6037 * config/score/t-score-softfp: Remove.
6038 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
6039 soft-fp/t-softfp from tmake_file.
6040 (arm*-*-uclinux*): Likewise.
6041 (arm*-*-ecos-elf): Likewise.
6042 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
6043 (arm*-*-rtems*): Likewise.
6044 (arm*-*-elf): Likewise.
6045 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
6046 tmake_file.
6047 (moxie-*-uclinux*): Likewise.
6048 (moxie-*-rtems*): Likewise.
6049 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
6050 tmake_file.
6051 (lm32-*-rtems*): Likewise.
6052 (lm32-*-uclinux*): Likewise.
6053 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
6054 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
6055 (powerpc-*-linux*, powerpc64-*-linux*): Remove
6056 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
6057 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
6058 tmake_file.
6059 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
6060 tmake_file.
6061 (tic6x-*-uclinux): Likewise.
6062 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
6063 soft-fp/t-softfp from tmake_file.
6064 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
6065 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
6066 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
6067 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
6068 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
6069
6070 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6071
6072 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
6073 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
6074 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
6075 TPBIT, TPBIT_FUNCS.
6076 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
6077 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
6078 Remove.
6079 * config/arm/t-vxworks: Likewise.
6080 * config/arm/t-wince-pe: Likewise.
6081 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
6082 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6083 * config/bfin/t-bfin-elf: Likewise.
6084 * config/bfin/t-bfin-linux: Likewise.
6085 * config/bfin/t-bfin-uclinux: Likewise.
6086 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
6087 Remove.
6088 * config/fr30/t-fr30: Likewise.
6089 * config/frv/t-frv: Likewise.
6090 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
6091 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6092 * config/m32c/t-m32c: Likewise.
6093 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
6094 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6095 * config/mcore/t-mcore: Likewise.
6096 * config/mep/t-mep: Likewise.
6097 * config/microblaze/t-microblaze: Likewise.
6098 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
6099 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6100 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
6101 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6102 * config/mn10300/t-linux: Remove.
6103 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6104 * config/pdp11/t-pdp11: Likewise.
6105 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
6106 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
6107 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6108 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
6109 * config/rs6000/t-aix52: Likewise.
6110 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
6111 $(srcdir)/config/rs6000/ppc64-fp.c.
6112 * config/rs6000/t-fprules-fpbit: Remove.
6113 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
6114 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6115 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
6116 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6117 * config/sparc/t-elf: Likewise.
6118 * config/sparc/t-leon: Likewise.
6119 * config/sparc/t-leon3: Likewise.
6120 * config/spu/t-spu-elf: Likewise.
6121 (DPBIT_FUNCS): Remove.
6122 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6123 * config/v850/t-v850: Likewise.
6124 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
6125 (avr-*-*): Likewise.
6126 (h8300-*-rtems*): Set libgcc_tm_file.
6127 (h8300-*-elf*): Likewise.
6128 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
6129 tmake_file.
6130 (powerpc-*-eabisim*): Likewise.
6131 (powerpc-*-elf*): Likewise.
6132 (powerpc-*-eabialtivec*): Likewise.
6133 (powerpc-xilinx-eabi*): Likewise.
6134 (powerpc-*-eabi*): Likewise.
6135 (powerpc-*-rtems*): Likewise.
6136 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
6137 (powerpcle-*-elf*): Likewise.
6138 (powerpcle-*-eabisim*): Likewise.
6139 (powerpcle-*-eabi*): Likewise.
6140 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
6141 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
6142 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
6143 Remove.
6144
6145 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6146
6147 * Makefile.in (UNWIND_H): Remove.
6148 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
6149 ../libgcc/Makefile.in.
6150 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
6151 (LIBUNWINDDEP): Remove.
6152 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
6153 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
6154 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
6155 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
6156 Don't copy $(UNWIND_H).
6157 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
6158 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
6159 * aclocal.m4: Regenerate.
6160 * configure: Regenerate.
6161 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
6162 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
6163 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
6164 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
6165 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
6166 * config/arm/libunwind.S, config/arm/pr-support.c,
6167 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
6168 ../libgcc/config/arm.
6169 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
6170 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
6171 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
6172 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
6173 ($(T)frvend$(objext)): Likewise.
6174 * config/ia64/t-glibc (LIB2ADDEH): Remove.
6175 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
6176 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
6177 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
6178 ../libgcc/config/ia64.
6179 * config/ia64/t-hpux (LIB2ADDEH): Remove.
6180 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
6181 * config/ia64/t-vms (LIB2ADDEH): Remove.
6182 * config/ia64/vms.h (UNW_IVMS_MODE,
6183 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
6184 * config/picochip/t-picochip (LIB2ADDEH): Remove.
6185 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
6186 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
6187 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
6188 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
6189 $(srcdir)/../libgcc to refer to unwinder sources.
6190 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
6191 * config/t-darwin (LIB2ADDEH): Remove.
6192 * config/t-freebsd (LIB2ADDEH): Remove.
6193 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
6194 * config/t-libunwind-elf: Move to ../libgcc/config.
6195 * config/t-linux (LIB2ADDEH): Remove.
6196 * config/t-sol2 (LIB2ADDEH): Remove.
6197 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
6198 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
6199
6200 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
6201
6202 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
6203
6204 * doc/invoke.texi: Document core-avx-i.
6205
6206 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6207
6208 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
6209
6210 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
6211
6212 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
6213 result of multiple results reduction when extracting the final
6214 value using scalar code.
6215
6216 2011-08-05 Richard Guenther <rguenther@suse.de>
6217
6218 PR tree-optimization/49984
6219 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
6220
6221 2011-08-05 Richard Guenther <rguenther@suse.de>
6222
6223 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
6224 return true for constant integer ranges.
6225 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
6226 BIT_IOR_EXPR handling.
6227
6228 2011-08-04 Kai Tietz <ktietz@redhat.com>
6229
6230 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
6231 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
6232
6233 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
6234
6235 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
6236 pattern def statement, and its access macro.
6237 (NUM_PATTERNS): Set to 5.
6238 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
6239 pattern def statement.
6240 (vect_transform_loop): Likewise.
6241 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
6242 function vect_recog_over_widening_pattern ().
6243 (vect_operation_fits_smaller_type): New function.
6244 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
6245 Likewise.
6246 (vect_pattern_recog_1): Move the code that marks pattern
6247 statements to vect_mark_pattern_stmts (), and call it. Update
6248 documentation.
6249 * tree-vect-stmts.c (vect_supportable_shift): New function.
6250 (vect_analyze_stmt): Handle pattern def statement.
6251 (new_stmt_vec_info): Initialize pattern def statement.
6252
6253 2011-08-04 Richard Henderson <rth@redhat.com>
6254
6255 PR target/49964
6256 * config/i386/i386.c (ix86_expand_call): Don't create nested
6257 PARALLELs for TARGET_VZEROUPPER.
6258 (ix86_split_call_vzeroupper): Fix extraction of the original call.
6259 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
6260 recognize nested PARALLELs.
6261 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
6262 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
6263 *sibcall_value_pop_vzeroupper): Likewise.
6264
6265 2011-08-04 Richard Henderson <rth@redhat.com>
6266
6267 PR middle-end/49968
6268 * calls.c (expand_call): Use fixup_args_size_notes for
6269 emit_stack_restore.
6270 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
6271 in non-standard modes.
6272
6273 2011-08-04 Jakub Jelinek <jakub@redhat.com>
6274
6275 * gcc.c (self_spec): New variable.
6276 (static_specs): Add self_spec.
6277 (main): Call do_self_spec on "self_spec" specs after reading
6278 user specs files. Move compare_debug handling right after that.
6279
6280 2011-08-04 Richard Guenther <rguenther@suse.de>
6281
6282 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
6283 (value_range_nonnegative_p): New function.
6284 (ssa_name_nonnegative_p): Use it.
6285 (value_range_constant_singleton): New function.
6286 (op_with_constant_singleton_value_range): Use it.
6287 (extract_range_from_binary_expr_1): New function, split out from ...
6288 (extract_range_from_binary_expr): ... this. Remove fallback
6289 constant folding done here.
6290
6291 2011-08-04 Richard Guenther <rguenther@suse.de>
6292
6293 PR tree-optimization/49806
6294 * tree-vrp.c (op_with_boolean_value_range_p): New function.
6295 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
6296 a new statement for a final conversion to bool.
6297
6298 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
6299
6300 * gengtype-state.c: Include "bconfig.h" if
6301 GENERATOR_FILE is defined, "config.h" otherwise.
6302 * gengtype.c: Likewise.
6303 * gengtype-lex.l: Likewise.
6304 * gengtype-parse.c: Likewise.
6305 * Makefile.in (gengtype-lex.o-warn): New variable.
6306 (plugin_resourcesdir): Likewise.
6307 (plugin_bindir): Likewise.
6308 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
6309 (MOSTLYCLEANFILES): Add gengtype$(exeext).
6310 (native): Depend on gengtype$(exeext) is $enable_plugin
6311 is set to "yes".
6312 (gtype.state): Depend on s-gtype. Use temporary file.
6313 (gengtype-lex.o): New rule.
6314 (gengtype-parse.o): Likewise.
6315 (gengtype-state.o): Likewise.
6316 (gengtype$(exeext)): Likewise.
6317 (install-gengtype): Likewise.
6318 (gengtype.o): Likewise.
6319 (build/gengtype.o): Depend on version.h.
6320 (build/gengtype-state): Depend on double-int.h, version.h,
6321 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
6322 (install-plugin): Depend on install-gengtype.
6323
6324 2011-08-04 Jakub Jelinek <jakub@redhat.com>
6325
6326 PR middle-end/49905
6327 * tree.h (init_attributes): New prototype.
6328 * attribs.c (init_attributes): No longer static.
6329
6330 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6331
6332 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
6333 maybe_suffix.
6334
6335 2011-08-03 David Li <davidxl@google.com>
6336
6337 * tree-optimize.c (execute_fixup_cfg): Fix up entry
6338 outgoing edge counts after inlining.
6339
6340 2011-08-03 David Li <davidxl@google.com>
6341
6342 * profile.c (compute_branch_probabilities): Compute
6343 function frequency after profile annotation.
6344
6345 2011-08-04 Alan Modra <amodra@gmail.com>
6346
6347 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
6348 use_backchain_to_restore_sp initialisation.
6349 (rs6000_legitimate_offset_address_p): Simplify offset test.
6350
6351 2011-08-03 Richard Henderson <rth@redhat.com>
6352
6353 * config/spu/spu.md: Use define_c_enum instead of define_constants.
6354 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
6355 (UNSPECV_NOP): New.
6356
6357 2011-08-03 Richard Henderson <rth@redhat.com>
6358
6359 PR target/34888
6360 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
6361
6362 2011-08-03 Jakub Jelinek <jakub@redhat.com>
6363
6364 PR tree-optimization/49948
6365 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
6366
6367 2011-08-03 Anatoly Sokolov <aesok@post.ru>
6368
6369 * config/m32c/m32c.c (class_sizes): Remove.
6370 (reduce_class): Change arguments and return type to reg_class_t.
6371 Change type cc var to HARD_REG_SET. Change type best var to
6372 reg_class_t. Change type best_size var to unsigned int. Remove
6373 initialization class_sizes var. Use reg_class_size array instead
6374 of class_sizes. Use reg_class_contents array instead
6375 of class_contents.
6376
6377 2011-08-03 Richard Guenther <rguenther@suse.de>
6378
6379 PR middle-end/49958
6380 * fold-const.c (fold_binary_loc): Only associate
6381 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
6382 overflow wraps.
6383
6384 2011-08-03 Alan Modra <amodra@gmail.com>
6385
6386 PR rtl-optimization/49941
6387 * jump.c (mark_jump_label): Comment.
6388 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
6389 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
6390 (mark_used_flags): Don't mark RETURN.
6391
6392 2011-08-03 Richard Guenther <rguenther@suse.de>
6393
6394 PR tree-optimization/49938
6395 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
6396 deal with a POLYNOMIAL_CHREC.
6397
6398 2011-08-03 Revital Eres <revital.eres@linaro.org>
6399
6400 * modulo-sched.c (calculate_stage_count,
6401 calculate_must_precede_follow, get_sched_window,
6402 try_scheduling_node_in_cycle, remove_node_from_ps): Add
6403 declaration.
6404 (update_node_sched_params, set_must_precede_follow, optimize_sc):
6405 New functions.
6406 (reset_sched_times): Call update_node_sched_params.
6407 (sms_schedule): Call optimize_sc.
6408 (get_sched_window): Change function arguments.
6409 (sms_schedule_by_order): Update call to get_sched_window.
6410 Call set_must_precede_follow.
6411 (calculate_stage_count): Add function argument.
6412
6413 2011-08-02 Richard Henderson <rth@redhat.com>
6414
6415 PR target/49864
6416 PR target/49879
6417 * reg-notes.def (REG_ARGS_SIZE): New.
6418 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
6419 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
6420 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
6421 different stack levels.
6422 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
6423 (maybe_move_args_size_note): New.
6424 (combine_stack_adjustments_for_block): Use it.
6425 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
6426 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
6427 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
6428 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
6429 (cur_cfa): New.
6430 (queued_args_size): Remove.
6431 (add_cfi_args_size): Assert size is non-negative.
6432 (stack_adjust_offset, dwarf2out_args_size): Remove.
6433 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
6434 (notice_args_size, notice_eh_throw): New.
6435 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
6436 (dwarf2out_frame_debug_adjust_cfa): Likewise.
6437 (dwarf2out_frame_debug_cfa_offset): Likewise.
6438 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
6439 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
6440 (change_cfi_row): Don't emit args_size.
6441 (maybe_record_trace_start_abnormal): Split out from ...
6442 (maybe_record_trace_start): Here. Set args_size_undefined.
6443 (create_trace_edges): Update to match.
6444 (scan_trace): Handle REG_ARGS_SIZE.
6445 (connect_traces): Connect args_size between EH insns.
6446 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
6447 * explow.c (suppress_reg_args_size): New.
6448 (adjust_stack_1): Split out from ...
6449 (adjust_stack): ... here.
6450 (anti_adjust_stack): Use it.
6451 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
6452 * expr.c (mem_autoinc_base): New.
6453 (fixup_args_size_notes): New.
6454 (emit_single_push_insn_1): Rename from emit_single_push_insn.
6455 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
6456 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
6457 * reload1.c (reload_as_needed): Likewise.
6458 * rtl.h (fixup_args_size_notes): Declare.
6459
6460 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
6461
6462 PR bootstrap/49914
6463 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
6464 of abs.
6465 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
6466 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
6467
6468 2011-08-02 Richard Henderson <rth@redhat.com>
6469
6470 * config/h8300/h8300.c (push, pop): Return the insn.
6471 (h8300_swap_into_er6): Generate correct unwind info.
6472 (h8300_swap_out_of_er6): Likewise.
6473 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
6474 complex cfa expression.
6475 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
6476
6477 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
6478
6479 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
6480
6481 2011-08-02 Richard Henderson <rth@redhat.com>
6482
6483 PR target/49878
6484 * config/h8300/h8300.c (h8300_move_ok): New.
6485 * config/h8300/h8300-protos.h: Declare it.
6486 * config/h8300/h8300.md (P): New mode iterator.
6487 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
6488 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
6489 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
6490 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
6491 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
6492 and pushqi1_h8300hs_normal; use PRE_MODIFY and
6493 register_no_sp_elim_operand.
6494 (*pushhi1_h8300hs_<P>): Similarly.
6495 (pushqi1, pushhi1, pushhi1_h8300): Remove.
6496 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
6497
6498 2011-08-02 Richard Henderson <rth@redhat.com>
6499
6500 PR target/49881
6501 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
6502
6503 2011-08-02 Jakub Jelinek <jakub@redhat.com>
6504
6505 * c-parser.c (enum c_parser_prec): New enum, moved from within
6506 c_parser_binary_expression.
6507 (c_parser_binary_expression): Add PREC argument. Stop parsing
6508 if operator has lower or equal precedence than PREC.
6509 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
6510 callers.
6511 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
6512 Adjust c_finish_omp_atomic caller.
6513 (c_parser_omp_taskyield): New function.
6514 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
6515 (c_parser_omp_clause_name): Handle final and mergeable clauses.
6516 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
6517 functions.
6518 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
6519 and PRAGMA_OMP_CLAUSE_MERGEABLE.
6520 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
6521 (c_parser_omp_clause_reduction): Handle min and max.
6522 * c-typeck.c (c_finish_omp_clauses): Don't complain about
6523 const qualified predetermined vars in firstprivate clause.
6524 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6525 Handle MIN_EXPR and MAX_EXPR.
6526 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
6527 and OMP_CLAUSE_MERGEABLE.
6528 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
6529 and OMP_ATOMIC_CAPTURE_NEW.
6530 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
6531 OMP_CLAUSE_MERGEABLE.
6532 (omp_clause_code_name): Likewise.
6533 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6534 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
6535 and OMP_CLAUSE_MERGEABLE.
6536 (OMP_CLAUSE_FINAL_EXPR): Define.
6537 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
6538 OMP_CLAUSE_MERGEABLE.
6539 (expand_task_call): Likewise.
6540 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
6541 (expand_omp_atomic_fetch_op): Handle cases where old or new
6542 value is needed afterwards.
6543 (expand_omp_atomic): Call expand_omp_atomic_load resp.
6544 expand_omp_atomic_store.
6545 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
6546 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
6547 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
6548 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6549 * tree-nested.c (convert_nonlocal_omp_clauses,
6550 convert_local_omp_clauses): Likewise.
6551 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
6552 OMP_ATOMIC_CAPTURE_NEW): New.
6553 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
6554 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
6555 New inlines.
6556 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
6557 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
6558 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6559
6560 2011-08-02 Kai Tietz <ktietz@redhat.com>
6561
6562 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
6563 boolean-type.
6564 (ssa_forward_propagate_and_combine): Interprete result of
6565 forward_propagate_comparison.
6566 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
6567 boolean-typed operands for comparisons.
6568
6569 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
6570
6571 * config/avr/libgcc.S: Gather related function in the
6572 same input section.
6573 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
6574 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
6575 references.
6576 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
6577 __udivmodsi4, __divmodsi4, __prologue_saves__,
6578 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
6579 __do_copy_data, __do_clear_bss, __do_global_ctors,
6580 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
6581
6582 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
6583
6584 PR target/47766
6585 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
6586 (stack_protect_test): The pattern compares ptr_mode value.
6587
6588 2011-08-02 Alan Modra <amodra@gmail.com>
6589
6590 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
6591 note for save_LR_around_toc_setup sequence.
6592
6593 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
6594
6595 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
6596
6597 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
6598 Joseph Myers <joseph@codesourcery.com>
6599
6600 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
6601 * hwint.c: Include diagnostic-core.h.
6602 (abs_hwi): New.
6603 (gcd): Moved here...
6604 (pos_mul_hwi): New.
6605 (mul_hwi): New.
6606 (least_common_multiple): Moved here...
6607 * hwint.h (gcd): ... from here.
6608 (least_common_multiple): ... from here.
6609 (HOST_WIDE_INT_MIN): New.
6610 (HOST_WIDE_INT_MAX): New.
6611 (abs_hwi): Declared.
6612 (gcd): Declared.
6613 (pos_mul_hwi): Declared.
6614 (mul_hwi): Declared.
6615 (least_common_multiple): Declared.
6616 * omega.c (check_pos_mul): Removed.
6617 (check_mul): Removed.
6618 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
6619 mul_hwi instead of check_mul.
6620
6621 2011-08-01 Richard Henderson <rth@redhat.com>
6622
6623 PR target/49881
6624 * config/avr/avr.h (PUSH_ROUNDING): New.
6625 * config/avr/avr.md (pushqi1): Rename from *pushqi.
6626 (*pushhi, *pushsi, *pushsf): Remove.
6627 (MPUSH): New mode iterator.
6628 (push<MPUSH>1): New expander.
6629
6630 2011-08-01 Anatoly Sokolov <aesok@post.ru>
6631
6632 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
6633 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
6634 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
6635 mmix_preferred_output_reload_class): Remove.
6636 * config/mmix/mmix.c (mmix_preferred_reload_class,
6637 mmix_preferred_output_reload_class): Make static. Change rclass
6638 argument and return type to reg_class_t.
6639 (TARGET_PREFERRED_RELOAD_CLASS,
6640 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6641
6642 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
6643
6644 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
6645 handling.
6646
6647 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
6648
6649 PR target/47766
6650 * config/i386/i386.md (PTR): New.
6651 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
6652 (stack_protect_test): Likewise.
6653 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
6654 (stack_tls_protect_set_<mode>): Likewise.
6655 (stack_tls_protect_test_<mode>): Likewise.
6656
6657 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
6658
6659 PR target/49927
6660 * config/i386/i386.c (ix86_address_subreg_operand): New.
6661 (ix86_decompose_address): Use ix86_address_subreg_operand.
6662 (ix86_legitimate_address_p): Do not assert that subregs satisfy
6663 register_no_elim_operand in DImode.
6664
6665 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
6666
6667 PR tree-optimization/49926
6668 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
6669 in a chain doesn't have uses both inside and outside the loop.
6670
6671 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
6672
6673 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
6674 * config/avr/avr-devices.c (avr_mcu_types): Use it.
6675 * config/avr/avr-mcus.def (AVR_MCU): Use it.
6676 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
6677 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
6678 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
6679 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
6680 to detect if XJMP must not be skipped.
6681
6682 2011-08-02 Alan Modra <amodra@gmail.com>
6683
6684 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
6685 Delete.
6686 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
6687 (rs6000_emit_prologue): Don't prematurely return when
6688 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
6689 save_toc_in_prologue case.
6690 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
6691 calls_alloca.
6692
6693 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
6694
6695 * config/avr/avr-devices.c: Delete SVN property svn:executable.
6696 * config/avr/predicates.md: Ditto.
6697 * config/avr/driver-avr.c: Ditto.
6698 * config/avr/genopt.sh: Set SVN property svn:executable to *.
6699
6700 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
6701
6702 * calls.c (emit_library_call_value_1): Declare size only if
6703 BLOCK_REG_PADDING is defined.
6704
6705 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
6706
6707 PR target/49547
6708 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
6709 (x86_64-*-*): Likewise.
6710 * config/i386/i386.opt (mlzcnt): New.
6711 * config/i386/abmintrin.h: File removed.
6712 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
6713 * config/i386/lzcntintrin.h: ... here. New file.
6714 (__lzcnt): Rename to ...
6715 (__lzcnt32): ... this.
6716 * config/i386/bmiintrin.h (head): Update copyright year.
6717 (__lzcnt_u16): Removed.
6718 (__lzcnt_u32): Likewise.
6719 (__lzcnt_u64): Likewise.
6720 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
6721 is defined, remove abmintrin.h.
6722 * config/i386/cpuid.h (bit_LZCNT): New.
6723 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6724 LZCNT feature.
6725 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6726 __LZCNT__ if needed.
6727 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
6728 (ix86_option_override_internal): Handle LZCNT option.
6729 (ix86_valid_target_attribute_inner_p): Likewise.
6730 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
6731 * config/i386/i386.h (TARGET_LZCNT): New.
6732 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
6733 * config/i386/i386.md (clz<mode>2): Update insn constraint.
6734 (clz<mode>2_lzcnt): Likewise.
6735 * doc/invoke.texi: Mention -mlzcnt option.
6736 * doc/extend.texi: Likewise.
6737
6738 2011-08-01 Julian Brown <julian@codesourcery.com>
6739
6740 * configure.ac (fixed-point): Add ARM support.
6741 * configure: Regenerate.
6742 * config/arm/arm.c (arm_fixed_mode_set): New struct.
6743 (arm_set_fixed_optab_libfunc): New.
6744 (arm_set_fixed_conv_libfunc): New.
6745 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
6746 ARM-specific names.
6747 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
6748 return values in SImode.
6749 (arm_return_in_msb): Return fixed-point types in the msb.
6750 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
6751 upwards.
6752 (arm_scalar_mode_supported_p): Support fixed-point modes.
6753 (arm_vector_mode_supported_p): Support vector fixed-point modes.
6754 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
6755 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
6756 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
6757 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
6758 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
6759 New mode iterators.
6760 (qaddsub_suf): New mode attribute.
6761 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
6762 vector modes.
6763 * config/arm/predicates.md (sat_shift_operator): New predicate.
6764 * config/arm/arm-fixed.md: New.
6765 * config/arm/arm.md: Include arm-fixed.md.
6766 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
6767
6768 2011-08-01 Julian Brown <julian@codesourcery.com>
6769
6770 * calls.c (emit_library_call_value_1): Support padding for libcall
6771 arguments and return values.
6772 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
6773 downwards in big-endian mode.
6774
6775 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6776
6777 PR debug/49887
6778 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
6779 * config/sol2-protos.h: Likewise.
6780 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
6781 solaris_code_end.
6782 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
6783 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
6784 solaris_file_end.
6785 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
6786
6787 2011-08-01 Julian Brown <julian@codesourcery.com>
6788
6789 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
6790
6791 2011-08-01 Julian Brown <julian@codesourcery.com>
6792
6793 * final.c (output_addr_const): Print fixed-point constants as
6794 decimal not hex.
6795
6796 2011-08-01 Richard Guenther <rguenther@suse.de>
6797
6798 * stor-layout.c (initialize_sizetypes): Properly sign-extend
6799 bitsiztype TYPE_MAX_VALUE.
6800
6801 2011-08-01 Julian Brown <julian@codesourcery.com>
6802
6803 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
6804 comparison helpers.
6805
6806 2011-07-31 Richard Henderson <rth@redhat.com>
6807
6808 * config/h8300/crti.asm: Add flags to .section directive.
6809 * config/h8300/crtn.asm: Likewise.
6810
6811 2011-07-31 Richard Henderson <rth@redhat.com>
6812
6813 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
6814 * tree.c (build_common_tree_nodes): Likewise.
6815
6816 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
6817
6818 PR target/49880
6819 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
6820 (divsi3_i1): Likewise.
6821
6822 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6823
6824 PR tree-optimization/49749
6825 * tree-ssa-reassoc.c (get_rank): New forward declaration.
6826 (PHI_LOOP_BIAS): New macro.
6827 (phi_rank): New function.
6828 (loop_carried_phi): Likewise.
6829 (propagate_rank): Likewise.
6830 (get_rank): Add calls to phi_rank and propagate_rank.
6831
6832 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
6833
6834 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
6835 of TARGET_64BIT.
6836 (PTRDIFF_TYPE): Likewise.
6837
6838 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
6839
6840 PR target/49920
6841 * config/i386/i386.md (strset): Do not expand strset_singleop
6842 when %eax or $edi are fixed.
6843 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
6844 (*strsetsi_1): Ditto.
6845 (*strsethi_1): Ditto.
6846 (*strsetqi_1): Ditto.
6847 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
6848 (*rep_stossi): Ditto.
6849 (*rep_stosqi): Ditto.
6850 (*strlenqi_1): Ditto.
6851 (cmpstrnsi): Also fail when %ecx is fixed.
6852 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
6853 (*cmpstrnqi_1): Ditto.
6854 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
6855 (*strmovsi_1): Ditto.
6856 (*strmovhi_1): Ditto.
6857 (*strmovqi_1): Ditto.
6858 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
6859 (*rep_movsi): Ditto.
6860 (*rep_movqi): Ditto.
6861
6862 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
6863
6864 PR target/47908
6865 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
6866 Disable instruction scheduling for non-ColdFire targets.
6867 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
6868
6869 2011-07-31 Revital Eres <revital.eres@linaro.org>
6870
6871 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
6872 of anti-dep edge from a branch.
6873 (add_cross_iteration_register_deps): Create anti-dep edge from
6874 a branch.
6875
6876 2011-07-31 Revital Eres <revital.eres@linaro.org>
6877
6878 * modulo-sched.c: Change comment.
6879 (reset_sched_times): Fix print message.
6880 (print_partial_schedule): Add print info.
6881
6882 2011-07-31 Tom de Vries <tom@codesourcery.com>
6883
6884 PR middle-end/43513
6885 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
6886 get_object_alignment and TYPE_ALIGN.
6887
6888 2011-07-30 Tom de Vries <tom@codesourcery.com>
6889
6890 PR middle-end/43513
6891 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
6892 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
6893
6894 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6895
6896 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
6897 <sys/sbd.h>.
6898 (cpu_types): New array.
6899 (cputype): New function.
6900 (host_detect_local_cpu): Only define buf, f if !__sgi__.
6901 Use scaninvent instead of /proc/cpuinfo if __sgi__.
6902 * config.host: Also use driver-native.o, mips/x-native on
6903 mips-sgi-irix*.
6904 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
6905 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
6906 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
6907
6908 2011-07-29 Jakub Jelinek <jakub@redhat.com>
6909
6910 PR middle-end/49897
6911 PR middle-end/49898
6912 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
6913 in nested parallel and outer is a gimple_reg, mark it as addressable
6914 and set its bit in task_shared_vars bitmap too.
6915
6916 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
6917
6918 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
6919
6920 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6921
6922 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
6923 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
6924 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
6925 AMASK_LOCKPFTCHOK): Define.
6926 (host_detect_local_cpu): Remove buf, f, cpu_names.
6927 Define cpu_types, implver, amask.
6928 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
6929 native CPU.
6930 * config.host: Also use driver-alpha.o, alpha/x-alpha on
6931 alpha*-dec-osf*.
6932 * config/alpha/osf5.h [__alpha__ || __alpha]
6933 (host_detect_local_cpu): Declare.
6934 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
6935 (DRIVER_SELF_SPECS): Define.
6936
6937 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
6938
6939 PR target/47715
6940 * config/i386/i386.md (*load_tp_x32): New.
6941 (*load_tp_x32_zext): Ditto.
6942 (*add_tp_x32): Ditto.
6943 (*add_tp_x32_zext): Ditto.
6944 (*load_tp_<mode>): Disable for TARGET_X32 targets.
6945 (*add_tp_<mode>): Ditto.
6946 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
6947 ptr_mode and convert to Pmode if needed.
6948
6949 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
6950
6951 PR target/49687
6952 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
6953 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
6954 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
6955 Add X to register footprint: Clobber r26/r27.
6956
6957 2011-07-29 Richard Guenther <rguenther@suse.de>
6958
6959 * builtins.c (fold_builtin_signbit): Build the comparison
6960 with a proper type.
6961
6962 2011-07-29 Richard Guenther <rguenther@suse.de>
6963
6964 PR tree-optimization/49893
6965 * tree-predcom.c (suitable_reference_p): Volatile references
6966 are not suitable.
6967
6968 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
6969
6970 PR target/49313
6971 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
6972 (__ctzsi2): Result for 0 may be undefined.
6973 (__ctzhi2): Result for 0 may be undefined.
6974 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
6975 (__popcountsi2): Ditto. And don't clobber r26.
6976 (__popcountdi2): Ditto. And don't clobber r27.
6977 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
6978 (parityhi2): New expand.
6979 (paritysi2): New expand.
6980 (popcounthi2): New expand.
6981 (popcountsi2): New expand.
6982 (clzhi2): New expand.
6983 (clzsi2): New expand.
6984 (ctzhi2): New expand.
6985 (ctzsi2): New expand.
6986 (ffshi2): New expand.
6987 (ffssi2): New expand.
6988 (copysignsf3): New insn.
6989 (bswapsi2): New expand.
6990 (*parityhi2.libgcc): New insn.
6991 (*parityqihi2.libgcc): New insn.
6992 (*paritysihi2.libgcc): New insn.
6993 (*popcounthi2.libgcc): New insn.
6994 (*popcountsi2.libgcc): New insn.
6995 (*popcountqi2.libgcc): New insn.
6996 (*popcountqihi2.libgcc): New insn-and-split.
6997 (*clzhi2.libgcc): New insn.
6998 (*clzsihi2.libgcc): New insn.
6999 (*ctzhi2.libgcc): New insn.
7000 (*ctzsihi2.libgcc): New insn.
7001 (*ffshi2.libgcc): New insn.
7002 (*ffssihi2.libgcc): New insn.
7003 (*bswapsi2.libgcc): New insn.
7004
7005 2011-07-29 Richard Guenther <rguenther@suse.de>
7006
7007 * tree-vrp.c (get_value_range): Only set parameter default
7008 definitions to varying, leave others at undefined.
7009 (extract_range_from_binary_expr): Fix undefined handling.
7010 (vrp_visit_phi_node): Handle merged undefined state.
7011
7012 2011-07-29 Wei Guozhi <carrot@google.com>
7013
7014 PR rtl-optimization/49799
7015 * combine.c (make_compound_operation): Check if the bit field is valid
7016 before change it to bit field extraction.
7017
7018 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
7019
7020 PR rtl-optimization/49891
7021 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
7022 newly created returnjumps.
7023
7024 2011-07-28 DJ Delorie <dj@redhat.com>
7025
7026 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
7027 local frame in a naked function, and produce a suitable error for
7028 that specific case.
7029
7030 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
7031 registers to be reloaded in HI classes when the target is HI.
7032
7033 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
7034
7035 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
7036 bound_one, bound_two.
7037
7038 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
7039
7040 PR middle-end/48648
7041 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
7042 CLAST assignments.
7043 (translate_clast): Same.
7044 (translate_clast_assignment): New.
7045
7046 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
7047
7048 PR tree-optimization/49876
7049 * sese.c (rename_uses): Do not return false on gloog_error: set
7050 the new_expr to integer_zero_node and continue code generation.
7051 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
7052
7053 2011-07-28 Jakub Jelinek <jakub@redhat.com>
7054
7055 PR debug/49846
7056 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
7057 arguments also check if they aren't initialized with a MODE_INT
7058 mode of the same size.
7059
7060 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
7061
7062 * expr.c (get_bit_range): Handle *MEM_REF's.
7063
7064 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
7065
7066 * rtlanal.c (tablejump_p): False for returns.
7067 * reorg.c (first_active_target_insn): New static function.
7068 (find_end_label): Set JUMP_LABEL for a new returnjump.
7069 (optimize_skip, get_jump_flags, rare_destination,
7070 mostly_true_jump, get_branch_condition,
7071 steal_delay_list_from_target, own_thread_p,
7072 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
7073 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
7074 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
7075 * jump.c (delete_related_insns): Likewise.
7076 (jump_to_label_p): New function.
7077 (redirect_target): New static function.
7078 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
7079 (redirect_jump_1): Assert that the new label is nonnull.
7080 (redirect_jump): Likewise.
7081 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
7082 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
7083 exit block.
7084 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
7085 changed. Ensure that the right label is passed to redirect_jump.
7086 * function.c (emit_return_into_block,
7087 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
7088 ret_rtx in their JUMP_LABEL.
7089 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
7090 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
7091 pass ret_rtx as label.
7092 * cfglayout.c (fixup_reorder_chain): Use
7093 force_nonfallthru_and_redirect rather than force_nonfallthru.
7094 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
7095 * rtl.h (ANY_RETURN_P): New macro.
7096 (jump_to_label_p): Declare.
7097 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
7098 JUMP_LABELs.
7099 (mark_target_live_regs): Likewise.
7100 * basic-block.h (force_nonfallthru_and_redirect): Declare.
7101 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
7102 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
7103 alpha_tablejump_best_label): Remove functions.
7104 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
7105 alpha_tablejump_best_label): Remove declarations.
7106 * config/sh/sh.c (barrier_align, split_branches): Adjust for
7107 ret_rtx in JUMP_LABELs.
7108 * config/arm/arm.c (is_jump_table): Likewise.
7109
7110 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
7111
7112 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
7113 special predicate. Remove explicit mode checks.
7114
7115 2011-07-28 Jakub Jelinek <jakub@redhat.com>
7116
7117 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
7118 DW_AT_data_member_location containing just DW_OP_plus_uconst.
7119
7120 PR debug/49871
7121 * dwarf2out.c (size_of_die, value_format, output_die): Use
7122 DW_FORM_udata instead of DW_FORM_data[48] for
7123 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
7124
7125 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
7126
7127 * config/i386/i386.md (*tls_global_dynamic_64): Update
7128 length attribute.
7129
7130 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
7131
7132 PR target/47715
7133 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
7134 tls_symbolic_operand check. Update code sequence for TARGET_X32.
7135 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
7136 (tls_dynamic_gnu2_64): Ditto.
7137 (*tls_dynamic_gnu2_lea_64): Ditto.
7138 (*tls_dynamic_gnu2_call_64): Ditto.
7139 (*tls_dynamic_gnu2_combine_64): Ditto.
7140
7141 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
7142
7143 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
7144
7145 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
7146
7147 PR target/47364
7148 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
7149
7150 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7151
7152 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
7153 before the core constraints. Adjust attributes.
7154 ("*thumb2_movdf_vfp"): Likewise.
7155
7156 2011-07-28 Kai Tietz <ktietz@redhat.com>
7157
7158 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
7159 (simplify_truth_ops_using_ranges): Likewise.
7160 (build_assert_expr_for): Likewise.
7161 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
7162 and handle BIT_NOT_EXPR for truth-operation.
7163
7164 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
7165
7166 PR target/49313
7167 Undo r176835 from trunk
7168 2011-07-27 Georg-Johann Lay
7169
7170 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
7171
7172 PR target/49687
7173 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
7174 Add _muluhisi3, _mulshisi3, _usmulhisi3.
7175 * config/avr/libgcc.S (__mulsi3): Rewrite.
7176 (__mulhisi3): Rewrite.
7177 (__umulhisi3): Rewrite.
7178 (__usmulhisi3): New.
7179 (__muluhisi3): New.
7180 (__mulshisi3): New.
7181 (__mulohisi3): New.
7182 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
7183 declare.
7184 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
7185 (pseudo_register_or_const_int_operand): New.
7186 (combine_pseudo_register_operand): New.
7187 (u16_operand): New.
7188 (s16_operand): New.
7189 (o16_operand): New.
7190 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
7191 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
7192 (any_extend, any_extend2): New code iterators.
7193 (extend_prefix): New code attribute.
7194 (mulsi3): Rewrite. Turn insn to expander.
7195 (mulhisi3): Ditto.
7196 (umulhisi3): Ditto.
7197 (usmulhisi3): New expander.
7198 (*mulsi3): New insn-and-split.
7199 (mulu<mode>si3): New insn-and-split.
7200 (muls<mode>si3): New insn-and-split.
7201 (mulohisi3): New insn-and-split.
7202 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
7203 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
7204 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
7205 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
7206 insn-and-split.
7207 (*mulsi3_call): Rewrite.
7208 (*mulhisi3_call): Rewrite.
7209 (*umulhisi3_call): Rewrite.
7210 (*usmulhisi3_call): New insn.
7211 (*muluhisi3_call): New insn.
7212 (*mulshisi3_call): New insn.
7213 (*mulohisi3_call): New insn.
7214 (extendqihi2): Use combine_pseudo_register_operand as predicate
7215 for operand 1.
7216 (extendqisi2): Ditto.
7217 (zero_extendqihi2): Ditto.
7218 (zero_extendqisi2): Ditto.
7219 (zero_extendhisi2): Ditto.
7220 (extendhisi2): Ditto. Don't early-clobber operand 0.
7221
7222 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
7223
7224 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
7225
7226 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
7227
7228 PR tree-optimization/49471
7229 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
7230 iv only when the largest type is unsigned. Do not call
7231 lang_hooks.types.type_for_size.
7232
7233 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
7234
7235 PR middle-end/45450
7236 * graphite-poly.c (apply_poly_transforms): Disable legality check
7237 after an openscop read.
7238
7239 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
7240
7241 PR middle-end/47691
7242 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
7243 copy_bb_and_scalar_dependences.
7244 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
7245 (graphite_copy_stmts_from_block): Update call to rename_uses.
7246 (copy_bb_and_scalar_dependences): Update call to
7247 graphite_copy_stmts_from_block.
7248 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
7249
7250 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
7251
7252 PR target/49313
7253 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
7254 (__ctzsi2): Result for 0 may be undefined.
7255 (__ctzhi2): Result for 0 may be undefined.
7256 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
7257 (__popcountsi2): Ditto. And don't clobber r26.
7258 (__popcountdi2): Ditto. And don't clobber r27.
7259 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
7260 (parityhi2): New expand.
7261 (paritysi2): New expand.
7262 (popcounthi2): New expand.
7263 (popcountsi2): New expand.
7264 (clzhi2): New expand.
7265 (clzsi2): New expand.
7266 (ctzhi2): New expand.
7267 (ctzsi2): New expand.
7268 (ffshi2): New expand.
7269 (ffssi2): New expand.
7270 (copysignsf3): New insn.
7271 (bswapsi2): New expand.
7272 (*parityhi2.libgcc): New insn.
7273 (*parityqihi2.libgcc): New insn.
7274 (*paritysihi2.libgcc): New insn.
7275 (*popcounthi2.libgcc): New insn.
7276 (*popcountsi2.libgcc): New insn.
7277 (*popcountqi2.libgcc): New insn.
7278 (*popcountqihi2.libgcc): New insn-and-split.
7279 (*clzhi2.libgcc): New insn.
7280 (*clzsihi2.libgcc): New insn.
7281 (*ctzhi2.libgcc): New insn.
7282 (*ctzsihi2.libgcc): New insn.
7283 (*ffshi2.libgcc): New insn.
7284 (*ffssihi2.libgcc): New insn.
7285 (*bswapsi2.libgcc): New insn.
7286
7287 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
7288
7289 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
7290 the mode of symbolic_opreand RTXes.
7291
7292 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
7293
7294 * config/i386/predicates.md (x86_64_movabs_operand): Return false
7295 for pic_32bit_operand RTXes.
7296 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
7297 in DImode.
7298
7299 2011-07-27 Kai Tietz <ktietz@redhat.com>
7300
7301 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
7302 for 32-bit, too.
7303 (ix86_handle_abi_attribute): Allow function attributes
7304 ms_abi/sysv_abi in 32-bit mode, too.
7305 * doc/extend.texi: Adjust attribute documentation.
7306
7307 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
7308 expression handling.
7309 (and_var_with_comparison_1): Likewise.
7310
7311 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
7312
7313 * params.h (ALLOW_STORE_DATA_RACES): New.
7314 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
7315 * Makefile.in (expr.o): Depend on PARAMS_H.
7316 * machmode.h (get_best_mode): Add argument.
7317 * fold-const.c (optimize_bit_field_compare): Add argument to
7318 get_best_mode.
7319 (fold_truthop): Same.
7320 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
7321 * expr.c (emit_group_store): Same.
7322 (copy_blkmode_from_reg): Same.
7323 (write_complex_part): Same.
7324 (optimize_bitfield_assignment_op): Add argument.
7325 Add argument to get_best_mode.
7326 (get_bit_range): New.
7327 (expand_assignment): Calculate maxbits and pass it down accordingly.
7328 (store_field): New argument.
7329 (expand_expr_real_2): New argument to store_field. Include params.h.
7330 * expr.h (store_bit_field): New argument.
7331 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
7332 into account maxbits.
7333 * calls.c (store_unaligned_arguments_into_pseudos): New argument
7334 to store_bit_field.
7335 * expmed.c (store_bit_field_1): New argument. Use it.
7336 (store_bit_field): Same.
7337 (store_fixed_bit_field): Same.
7338 (store_split_bit_field): Same.
7339 (extract_bit_field_1): Pass new argument to get_best_mode.
7340 (extract_bit_field): Same.
7341 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
7342 * doc/invoke.texi: Document parameter allow-store-data-races.
7343
7344 2011-07-27 Jakub Jelinek <jakub@redhat.com>
7345
7346 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
7347
7348 2011-07-27 Kai Tietz <ktietz@redhat.com>
7349
7350 * tree-vrp.c (extract_range_from_binary_expr): Remove
7351 TRUTH-binary cases and add new bitwise-cases.
7352 (extract_range_from_assignment): Likewise.
7353 (register_edge_assert_for_1): Likeiwise.
7354 (register_edge_assert_for): Likewise.
7355 (simplify_truth_ops_using_ranges): Likewise.
7356 (simplify_stmt_using_ranges): Likewise.
7357
7358 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
7359
7360 PR target/47372
7361 * config/i386/i386.c (ix86_delegitimize_address): Call
7362 simplify_gen_subreg for PIC with mode of x only if modes of
7363 x and orig_x are different.
7364
7365 2011-07-26 Jakub Jelinek <jakub@redhat.com>
7366
7367 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
7368 to GC allocated copy of the string.
7369 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
7370 before .debug_line, not after it.
7371
7372 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
7373
7374 PR middle-end/47046
7375 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
7376 evolution_function_is_affine_p on CHREC_RIGHT.
7377
7378 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
7379
7380 * tree-data-ref.c (max_stmt_executions_tree): Do not call
7381 lang_hooks.types.type_for_size.
7382
7383 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
7384
7385 PR middle-end/47653
7386 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
7387 loops using wrapping semantics.
7388
7389 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
7390
7391 PR middle-end/48805
7392 * tree-scalar-evolution.c (instantiate_scev_r): Return
7393 chrec_dont_know for ADDR_EXPR.
7394
7395 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
7396 H.J. Lu <hongjiu.lu@intel.com>
7397
7398 PR target/47369
7399 PR target/49853
7400 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
7401 if legitimize_tls_address returned operand in wrong mode. Allow
7402 SImode and DImode symbolic operand for PIC. Call convert_to_mode
7403 if legitimize_pic_address returned operand in wrong mode.
7404
7405 2011-07-26 Martin Jambor <mjambor@suse.cz>
7406
7407 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
7408 return false for invariants.
7409
7410 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
7411
7412 * config/i386/i386.md (add->lea splitter): Implement using SWI
7413 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
7414 (add->lea zext splitter): Change operand 2 predicate to
7415 x86_64_nonmemory_operand.
7416
7417 2011-07-26 Richard Guenther <rguenther@suse.de>
7418
7419 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
7420 frequency makes everything hot.
7421
7422 2011-07-26 Richard Guenther <rguenther@suse.de>
7423
7424 PR tree-optimization/49840
7425 * tree-vrp.c (range_fits_type_p): Properly handle full
7426 double-int precision.
7427
7428 2011-07-26 Martin Jambor <mjambor@suse.cz>
7429
7430 PR bootstrap/49786
7431 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
7432 counts.
7433 (update_specialized_profile): Likewise.
7434
7435 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
7436 H.J. Lu <hongjiu.lu@intel.com>
7437
7438 PR target/47381
7439 PR target/49832
7440 PR target/49833
7441 * config/i386/i386.md (i): Change SImode attribute to "e".
7442 (g): Change SImode attribute to "rme".
7443 (di): Change SImode attribute to "nF".
7444 (general_operand): Change SImode attribute to x86_64_general_operand.
7445 (general_szext_operand): Change SImode attribute to
7446 x86_64_szext_general_operand.
7447 (immediate_operand): Change SImode attribute to
7448 x86_64_immediate_operand.
7449 (nonmemory_operand): Change SImode attribute to
7450 x86_64_nonmemory_operand.
7451 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
7452 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
7453 (*lea_1): Use SWI48 mode iterator.
7454 (*lea_1_zext): New insn pattern.
7455 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
7456 (*bt<mode>): Ditto.
7457 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
7458 Update operand constraints.
7459 (addsi_1_zext): Ditto.
7460 (*add<mode>2): Ditto.
7461 (*addsi_3_zext): Ditto.
7462 (*subsi_1_zext): Ditto.
7463 (*subsi_2_zext): Ditto.
7464 (*subsi_3_zext): Ditto.
7465 (*addsi3_carry_zext): Ditto.
7466 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
7467 (*mulsi3_1_zext): Ditto.
7468 (*andsi_1): Ditto.
7469 (*andsi_1_zext): Ditto.
7470 (*andsi_2_zext): Ditto.
7471 (*<any_or:code>si_1_zext): Ditto.
7472 (*<any_or:code>si_2_zext): Ditto.
7473 (*test<mode>_1): Use <general_operand> predicate for operand 1.
7474 (*and<mode>_2): Ditto.
7475 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
7476 (add->lea splitter): Check operand modes in insn constraint. Extend
7477 operands less than SImode wide to SImode.
7478 (add->lea zext splitter): Do not extend input operands to DImode.
7479 (*lea_general_1): Handle only QImode and HImode operands.
7480 (*lea_general_2): Ditto.
7481 (*lea_general_3): Ditto.
7482 (*lea_general_1_zext): Remove.
7483 (*lea_general_2_zext): Ditto.
7484 (*lea_general_3_zext): Ditto.
7485 (*lea_general_4): Check operand modes in insn constraint. Extend
7486 operands less than SImode wide to SImode.
7487 (ashift->lea splitter): Ditto.
7488 * config/i386/i386.c (ix86_print_operand_address): Print address
7489 registers with 'q' modifier on 64bit targets.
7490 * config/i386/predicates.md (pic_32bit_opreand): Define as special
7491 predicate. Reject non-SI and non-DI modes.
7492
7493 2011-07-25 Andrew Pinski <apinski@cavium.com>
7494
7495 PR tree-opt/49671
7496 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
7497 TREE_THIS_NOTRAP into the inner most MEM_REF.
7498 Always copy TREE_THIS_VOLATILE.
7499 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
7500 arguments are not volatile references.
7501
7502 2011-07-25 Richard Henderson <rth@redhat.com>
7503
7504 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
7505 * final.c (final_scan_insn): Don't test for it.
7506 (rest_of_clean_state): Likewise.
7507
7508 2011-07-25 Richard Henderson <rth@redhat.com>
7509
7510 PR debug/49841
7511 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
7512 (emit_frame_save): Likewise.
7513 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
7514 insn onto a dummy blockage insn after the join label.
7515
7516 2011-07-25 Richard Henderson <rth@redhat.com>
7517
7518 * dwarf2cfi.c (dw_trace_info): Add ID member.
7519 (get_trace_index): Remove. Change users to use ID member.
7520 (before_next_cfi_note): New.
7521 (connect_traces): Remove unreachable traces before the main loop.
7522 Look across one trace and generate remember/restore_state if needed.
7523
7524 2011-07-25 Richard Henderson <rth@redhat.com>
7525
7526 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
7527
7528 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
7529
7530 * genattr.c (write_upcase, gen_attr <enum definition writing>):
7531 Move to ...
7532 * genattr-common.c ... here.
7533 (main): Call gen_attr.
7534 * optc-gen.awk: Make generated program include insn-attr-common.h .
7535 * Makefile.in (oprions.o): Depend on insn-attr-common.h
7536
7537 2011-07-25 Anatoly Sokolov <aesok@post.ru>
7538
7539 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7540 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
7541 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
7542 m32c_print_operand, m32c_print_operand_address): Remove.
7543 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
7544 Change return type to bool. Change argument type to bool.
7545 (m32c_print_operand, m32c_print_operand_address): Make static.
7546 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
7547 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7548
7549 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7550
7551 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
7552 attributes): Document mmap.
7553
7554 2011-07-25 Anatoly Sokolov <aesok@post.ru>
7555
7556 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7557 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
7558 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
7559 mmix_print_operand, mmix_print_operand_address): Remove.
7560 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
7561 Change return type to bool. Change argument type to bool.
7562 (mmix_print_operand, mmix_print_operand_address): Make static.
7563 (mmix_intval, mmix_output_condition): Change 'x' argument type
7564 to const_rtx.
7565 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
7566 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7567
7568 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
7569
7570 PR target/39386
7571 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
7572 shift counter for x << x and x >> x shifts.
7573
7574 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7575
7576 PR target/47124
7577 * config.gcc: Reject *-*-solaris2 configuration.
7578
7579 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
7580
7581 PR tree-optimization/49809
7582 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
7583 gimple_get_lhs instead of gimple_assign_lhs.
7584
7585 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7586
7587 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
7588
7589 2011-07-25 Richard Guenther <rguenther@suse.de>
7590
7591 PR tree-optimization/49822
7592 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
7593 more. Make sure to preserve stmts with side-effects. Properly
7594 handle virtual defs, follow a longer def chain.
7595
7596 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
7597
7598 PR plugins/45348
7599 PR plugins/48425
7600 PR plugins/46577
7601 * Makefile.in: Do not flatten c-family directory when installing
7602 plugin headers.
7603
7604 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
7605
7606 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
7607 original nodes if we are dealing with virtual clones.
7608
7609 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
7610
7611 * common/config/c6x/c6x-common.c: New file.
7612
7613 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
7614
7615 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
7616
7617 2011-07-25 Richard Guenther <rguenther@suse.de>
7618
7619 PR tree-optimization/49715
7620 * tree-vrp.c: Include expr.h and optabs.h.
7621 (range_fits_type_): New function.
7622 (simplify_float_conversion_using_ranges): Likewise.
7623 (simplify_stmt_using_ranges): Call it.
7624 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
7625 * optabs.c (can_float_p): Export.
7626 * optabs.h (can_float_p): Declare.
7627
7628 2011-07-25 Richard Guenther <rguenther@suse.de>
7629
7630 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
7631 (get_value_range): For out-of-range SSA names or names created
7632 after propagation return a read-only varying range.
7633 (dump_all_value_ranges): Adjust.
7634 (vrp_initialize): Likewise.
7635 (vrp_finalize): Likewise.
7636
7637 2011-07-24 Richard Henderson <rth@redhat.com>
7638
7639 PR debug/49831
7640 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
7641 them entirely.
7642
7643 2011-07-24 Richard Henderson <rth@redhat.com>
7644
7645 PR debug/49825
7646 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
7647 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
7648
7649 2011-07-24 Richard Henderson <rth@redhat.com>
7650
7651 PR debug/49827
7652 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
7653
7654 2011-07-24 Richard Henderson <rth@redhat.com>
7655
7656 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
7657 Zero args_size for abnormal edges. Adjust all callers.
7658
7659 2011-07-24 Richard Henderson <rth@redhat.com>
7660
7661 PR debug/49825
7662 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
7663
7664 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
7665
7666 PR bootstrap/49835
7667 * collect2.c (demangle_flag): Removed.
7668
7669 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
7670
7671 * configure.ac (demangler_in_ld): Default to yes.
7672 * configure: Regenerated.
7673 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
7674 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
7675 --no-demangle options straight through to ld. When
7676 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
7677 way that has the intended effect on Windows.
7678
7679 2011-07-23 Richard Henderson <rth@redhat.com>
7680
7681 * dwarf2cfi.c: Include basic-block.h.
7682 (dw_label_info): Remove.
7683 (trace_work_list, trace_index): New.
7684 (remember_row, emit_cfa_remember): Remove.
7685 (dw_trace_info_hash, dw_trace_info_eq): New.
7686 (get_trace_index, get_trace_info): New.
7687 (save_point_p): New.
7688 (free_cfi_row): Remove.
7689 (add_cfi): Do not emit DW_CFA_remember_state.
7690 (cfa_row_equal_p): New.
7691 (barrier_args_size): Remove.
7692 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
7693 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
7694 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
7695 (dwarf2out_cfi_begin_epilogue): Remove.
7696 (dwarf2out_frame_debug_restore_state): Remove.
7697 (connect_traces, create_pseudo_cfg): New.
7698 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
7699 * Makefile.in (dwarf2cfi.o): Update.
7700
7701 2011-07-23 Richard Henderson <rth@redhat.com>
7702
7703 * dwarf2cfi.c (dw_trace_info): New.
7704 (dw_label_info): New.
7705 (cie_return_save): New.
7706 (cur_trace): New.
7707 (queued_args_size): Rename from args_size. Update all users.
7708 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
7709 (def_cfa_1): Use cur_trace instead of cfa_*.
7710 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
7711 (clobbers_queued_reg_save, reg_saved_in): Likewise.
7712 (dwarf2out_frame_debug_expr): Likewise.
7713 (create_cie_data): Split out from ...
7714 (execute_dwarf2_frame): ... here. Initialize cur_trace.
7715
7716 2011-07-23 Richard Henderson <rth@redhat.com>
7717
7718 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
7719 Update all users to match.
7720 (execute_dwarf2_frame): Free reg_saved_in_data.
7721
7722 2011-07-23 Richard Henderson <rth@redhat.com>
7723
7724 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
7725 (queued_reg_saves): Don't GTY. Change to a VEC.
7726 (queue_reg_save): Update to match.
7727 (dwarf2out_flush_queued_reg_saves): Likewise.
7728 (clobbers_queued_reg_save): Likewise.
7729 (reg_saved_in): Likewise.
7730 (execute_dwarf2_frame): Free queued_reg_saves.
7731
7732 2011-07-23 Richard Henderson <rth@redhat.com>
7733
7734 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
7735
7736 2011-07-23 Richard Henderson <rth@redhat.com>
7737
7738 * dwarf2cfi.c (add_cfi_args_size): Split out from...
7739 (dwarf2out_args_size): ... here.
7740 (add_cfi_restore): Split out from ...
7741 (dwarf2out_frame_debug_cfa_restore): ... here.
7742 (def_cfa_0): Split out from ...
7743 (def_cfa_1): ... here.
7744 (cfi_oprnd_equal_p, cfi_equal_p): New.
7745 (change_cfi_row): New.
7746 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
7747 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
7748 (output_cfis): Remove.
7749 * dwarf2out.c (output_fde): Simplify output_cfi loop.
7750 (dwarf2out_switch_text_section): Don't call output_cfis.
7751 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
7752 * dwarf2out.h: Update decls.
7753 (enum dw_val_class): Add dw_val_class_none.
7754
7755 2011-07-23 Richard Henderson <rth@redhat.com>
7756
7757 * dwarf2cfi.c (update_row_reg_save): New.
7758 (dwarf2out_frame_debug_cfa_expression): Use it.
7759 (dwarf2out_frame_debug_cfa_restore): Likewise.
7760 (reg_save): Likewise. Do not emit DW_CFA_same_value.
7761
7762 2011-07-23 Richard Henderson <rth@redhat.com>
7763
7764 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
7765
7766 2011-07-23 Richard Henderson <rth@redhat.com>
7767
7768 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
7769 (cie_cfi_row): New.
7770 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
7771 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
7772 (cur_row, remember_row): New.
7773 (def_cfa_1): Use cur_row instead of the old_* variables.
7774 (dwarf2out_frame_debug_restore_state): Similarly.
7775 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
7776 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
7777 (dwarf2out_frame_debug_adjust_cfa): Likewise.
7778 (dwarf2out_frame_debug_cfa_offset): Likewise.
7779 (dwarf2out_frame_debug_expr): Likewise.
7780 (execute_dwarf2_frame): Set up cur_row.
7781 * dwarf2out.h (struct cfa_loc): Mark for GTY.
7782
7783 2011-07-23 Richard Henderson <rth@redhat.com>
7784
7785 * basic-block.h (EDGE_PRESERVE): New.
7786 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
7787 * bb-reorder.c: Include except.h.
7788 (fix_up_crossing_landing_pad): New.
7789 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
7790 landing pads in the right partition. Duplicate as necessary.
7791 (partition_hot_cold_basic_blocks): Fix up DF info after
7792 duplicating landing pads.
7793 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
7794 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
7795 is set properly. Validate that EH edges are not CROSSING.
7796 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
7797 (dw2_build_landing_pads): ... here.
7798 (convert_to_eh_region_ranges): Remove code to fixup crossing
7799 landing pads.
7800 * except.h (expand_dw2_landing_pad_for_region): Declare.
7801 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
7802
7803 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
7804
7805 PR target/49816
7806 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
7807
7808 2011-07-22 Jason Merrill <jason@redhat.com>
7809
7810 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
7811
7812 2011-07-22 Richard Henderson <rth@redhat.com>
7813
7814 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
7815
7816 2011-07-22 Richard Henderson <rth@redhat.com>
7817
7818 * jump.c (maybe_propagate_label_ref): Split out of...
7819 (mark_all_labels): ... here. Do not attempt label_ref
7820 propagation while in cfglayout mode.
7821
7822 2011-07-22 Jakub Jelinek <jakub@redhat.com>
7823
7824 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
7825 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
7826 (dwarf_attr_name): Handle DW_AT_GNU_macros.
7827 (dwarf2out_define): If the vector is empty and
7828 lineno is 0, emit a dummy entry first.
7829 (dwarf2out_undef): Likewise. Remove redundant semicolon.
7830 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
7831 optimize_macinfo_range): New functions.
7832 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
7833 mergeable, optimize longer strings using
7834 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
7835 optimize longer sequences of define/undef ops from headers
7836 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
7837 emit a section headers.
7838 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
7839 and macinfo_section_label to DEBUG_MACRO_SECTION
7840 resp. DEBUG_MACRO_SECTION_LABEL.
7841 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
7842 instead of DW_AT_macro_info.
7843
7844 PR other/32998
7845 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
7846 options.
7847 * dwarf2out.c: Include opts.h.
7848 (dchar_p): New typedef. Define heap VEC for it.
7849 (producer_string): New variable.
7850 (gen_producer_string): New function.
7851 (gen_compile_unit_die): Use it.
7852 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
7853 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
7854 * doc/invoke.texi: Document -grecord-gcc-switches and
7855 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
7856 to -frecord-gcc-switches description.
7857
7858 2011-07-22 Jason Merrill <jason@redhat.com>
7859
7860 PR c++/30112
7861 * c-decl.c (c_linkage_bindings): Define.
7862
7863 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
7864
7865 PR debug/49815
7866 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
7867
7868 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
7869
7870 * config/i386/i386.c (ix86_option_override_internal): Disallow
7871 MS ABI in x32 mode.
7872 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
7873 only for TARGET_LP64.
7874 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
7875
7876 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7877
7878 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
7879 avoid warnings when GCC is built with a C++ compiler.
7880
7881 2011-07-22 Martin Jambor <mjambor@suse.cz>
7882
7883 PR lto/49796
7884 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
7885 if decl node is in another partition, call cgraph_get_node only once.
7886
7887 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
7888
7889 * config.gcc (x86_64-*-linux*): Set
7890 default_gnu_indirect_function to yes.
7891
7892 2011-07-22 Richard Guenther <rguenther@suse.de>
7893
7894 PR tree-optimization/45819
7895 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
7896 preserve volatile and notrap flags.
7897
7898 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7899 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7900
7901 PR bootstrap/49794
7902 * configure.ac: Test AM_ICONV with CXX.
7903 * configure: Regenerate.
7904 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
7905
7906 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7907
7908 PR bootstrap/49797
7909 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
7910 (set_cloog_options): Use it.
7911
7912 2011-07-22 Jakub Jelinek <jakub@redhat.com>
7913
7914 PR c++/49756
7915 * gcc.c (main): Call stack_limit_increase (64MB).
7916 * toplev.c (toplev_main): Likewise.
7917
7918 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7919
7920 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
7921 instead of force_reg.
7922
7923 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7924
7925 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
7926 needed and use force_reg after convert.
7927 (ix86_expand_call): Likewise.
7928 (ix86_expand_special_args_builtin): Likewise.
7929 (ix86_expand_builtin): Likewise.
7930
7931 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7932
7933 PR middle-end/47654
7934 PR middle-end/49649
7935 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
7936 in parameter. Initialize v1 and v2 based on the values returned
7937 by clast_name_to_lb_ub.
7938 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
7939 values.
7940 (type_for_clast_bin): Same.
7941 (type_for_clast_expr): Same.
7942 (type_for_clast_eq): Update calls to type_for_clast_expr.
7943 (type_for_clast_for): Same.
7944 (build_iv_mapping): Same.
7945 * graphite-ppl.h (value_min): New.
7946
7947 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7948
7949 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
7950 types whenever possible.
7951
7952 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7953
7954 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
7955 and ub fields.
7956 (new_clast_name_index): Add lb and ub parameters.
7957 (free_clast_name_index): New.
7958 (clast_name_to_lb_ub): New.
7959 (save_clast_name_index): Add lb and ub parameters.
7960 (compute_bounds_for_param): New.
7961 (type_for_level): Removed.
7962 (type_for_clast_for): Removed level parameter. Do not call
7963 type_for_level.
7964 (graphite_create_new_loop): Store the lb and ub for the clast_name
7965 of the iterator of the loop that has been generated.
7966 (graphite_create_new_loop_guard): Remove parameter level.
7967 (create_params_index): Store the lb and ub of each parameter.
7968 (gloog): Use free_clast_name_index. Pass to create_params_index
7969 the current scop.
7970
7971 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7972
7973 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
7974 (max_precision_type): Inline max_signed_precision_type.
7975 (type_for_clast_red): Use max_precision_type.
7976 (type_for_clast_bin): Same.
7977 (type_for_clast_for): Same.
7978
7979 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7980
7981 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
7982 type_for_interval.
7983 (gcc_type_for_value): Renamed type_for_value.
7984 (gcc_type_for_clast_term): Renamed type_for_clast_term.
7985 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
7986 (gcc_type_for_clast_red): Renamed type_for_clast_red.
7987 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
7988 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
7989 (graphite_translate_clast_equation): Update calls.
7990 (compute_type_for_level): Renamed type_for_level.
7991 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
7992 (build_iv_mapping): Update calls.
7993 (graphite_create_new_loop_guard): Same.
7994
7995 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7996
7997 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
7998 comment.
7999
8000 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
8001
8002 * graphite-clast-to-gimple.c (struct ivs_params): New.
8003 (clast_name_to_gcc): Use ivs_params to pass around parameters.
8004 (clast_to_gcc_expression): Same.
8005 (clast_to_gcc_expression_red): Same.
8006 (gcc_type_for_clast_term): Same.
8007 (gcc_type_for_clast_expr): Same.
8008 (gcc_type_for_clast_red): Same.
8009 (gcc_type_for_clast_bin): Same.
8010 (gcc_type_for_clast_eq): Same.
8011 (graphite_translate_clast_equation): Same.
8012 (graphite_create_guard_cond_expr): Same.
8013 (graphite_create_new_guard): Same.
8014 (graphite_create_new_loop): Same.
8015 (build_iv_mapping): Same.
8016 (translate_clast_user): Same.
8017 (graphite_create_new_loop_guard): Same.
8018 (translate_clast): Same.
8019 (translate_clast_for_loop): Same.
8020 (translate_clast_for): Same.
8021 (translate_clast_guard): Same.
8022 (initialize_cloog_names): Fix typo.
8023 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
8024
8025 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
8026
8027 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
8028 (new_clast_name_index): Add level parameter.
8029 (clast_name_to_level): New.
8030 (save_clast_name_index): Add level parameter.
8031 (newivs_to_depth_to_newiv): Removed.
8032 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
8033 (graphite_create_new_loop): Add level parameter. Pass level to
8034 save_clast_name_index.
8035 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
8036 (create_params_index): Pass level to save_clast_name_index.
8037
8038 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
8039
8040 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
8041 recompute type, lb, and ub. Get them from...
8042 (graphite_create_new_loop_guard): ...here. Pass in parameter
8043 pointers to type, lb, and ub.
8044 (translate_clast_for_loop): Update function calls.
8045 (translate_clast_for): Same.
8046
8047 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
8048
8049 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
8050 psct_dynamic_dim.
8051 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
8052 (gcc_type_for_iv_of_clast_loop): Update use of level.
8053 (gloog): Start counting nesting level from 0.
8054 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
8055 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
8056 psct_dynamic_dim on level.
8057
8058 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
8059
8060 * config/i386/i386.c (ix86_legitimize_address): Convert to
8061 Pmode if needed.
8062
8063 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
8064
8065 * config/i386/i386.c (function_value_64): Always return pointers
8066 in Pmode.
8067 (ix86_promote_function_mode): New.
8068 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
8069
8070 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8071
8072 PR tree-optimization/49749
8073 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
8074 remove no-longer-used maxrank variable.
8075
8076 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
8077
8078 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
8079
8080 2011-07-21 Jason Merrill <jason@redhat.com>
8081
8082 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
8083 * recog.h (struct insn_data_d): Check it instead of
8084 HAVE_DESIGNATED_INITIALIZERS.
8085 * genoutput.c (output_insn_data): Likewise.
8086
8087 2011-07-21 Richard Guenther <rguenther@suse.de>
8088
8089 PR tree-optimization/49770
8090 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
8091 valueized any operand. Renamed from ...
8092 (valueize_refs): ... this. New wrapper around valueize_refs_1.
8093 (valueize_shared_reference_ops_from_ref): Return whether we
8094 valueized any operand.
8095 (vn_reference_lookup): Only when we valueized any operand
8096 use the valueized reference for alias analysis. Do not preserve
8097 the original reference tree in this case.
8098
8099 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
8100
8101 * config/i386/i386.c (ix86_decompose_address): Reject all but
8102 register operands and subregs of DImode hard registers in index.
8103
8104 2011-07-21 Kai Tietz <ktietz@redhat.com>
8105
8106 * fold-const.c (fold_unary_loc): Preserve indirect
8107 comparison cast to none-boolean type.
8108 * tree-ssa.c (useless_type_conversion_p): Preserve cast
8109 from/to boolean-type.
8110 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
8111 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
8112 * tree-cfg.c (verify_gimple_comparison): Check result
8113 type of comparison expression.
8114 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
8115 of condition result and disallow type-cast sinking into comparison.
8116
8117 2011-07-21 Richard Guenther <rguenther@suse.de>
8118
8119 * tree-ssa-forwprop.c (combine_conversions): Return whether
8120 we have to run cfg-cleanup. Properly remove dead stmts.
8121 (ssa_forward_propagate_and_combine): Adjust.
8122
8123 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
8124
8125 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
8126
8127 2011-07-21 Kai Tietz <ktietz@redhat.com>
8128
8129 * tree-ssa-propagate.c (substitute_and_fold): Use
8130 do_dce flag to deside, if BB's statements are scanned
8131 in last to first, or first to last order.
8132
8133 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
8134
8135 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
8136
8137 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
8138 Uros Bizjak <ubizjak@gmail.com>
8139 Richard Henderson <rth@redhat.com>
8140
8141 * config/i386/constraints.md (w): New.
8142
8143 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
8144 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
8145
8146 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
8147 instead of TARGET_64BIT.
8148
8149 * config/i386/i386.md (indirect_jump): Replace
8150 nonimmediate_operand with indirect_branch_operand.
8151 (*indirect_jump): Likewise. Replace constraint "m" with "w".
8152 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
8153 Convert operand 0 to Pmode for x32 if not PIC.
8154 (*tablejump_1): Replace nonimmediate_operand with
8155 indirect_branch_operand. Replace constraint "m" with "w".
8156 (*call_vzeroupper): Replace constraint "m" with "w".
8157 (*call): Likewise.
8158 (*call_rex64_ms_sysv_vzeroupper): Likewise.
8159 (*call_rex64_ms_sysv): Likewise.
8160 (*call_value_vzeroupper): Likewise.
8161 (*call_value): Likewise.
8162 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
8163 (*call_value_rex64_ms_sysv): Likewise.
8164 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
8165
8166 * config/i386/predicates.md (indirect_branch_operand): New.
8167 (call_insn_operand): Support x32.
8168
8169 2011-07-20 Michael Eager <eager@eagercon.com>
8170
8171 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
8172
8173 2011-07-20 Richard Henderson <rth@redhat.com>
8174
8175 * cfg.c (dump_bb_info): Dump basic_block->flags.
8176 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
8177
8178 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
8179
8180 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8181 of DImode hard registers in index.
8182 (ix86_legitimate_address_p): Allow subregs of base and index to span
8183 more than a word. Assert that subregs of base and index satisfy
8184 register_no_elim_operand predicates. Reject addresses where
8185 base and index have different modes.
8186
8187 2011-07-20 Robert Millan <rmh@gnu.org>
8188
8189 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
8190
8191 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8192
8193 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
8194 removing now-unnecessary assignment.
8195
8196 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8197
8198 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
8199 memory address space to the type's address space.
8200
8201 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
8202
8203 PR target/36467
8204 PR target/49687
8205 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
8206 and expand appropriately if there is a CONST_INT in operand2.
8207 (usmulqihi3): New insn.
8208 (*sumulqihi3): New insn.
8209 (*osmulqihi3): New insn.
8210 (*oumulqihi3): New insn.
8211 (*muluqihi3.uconst): New insn_and_split.
8212 (*muluqihi3.sconst): New insn_and_split.
8213 (*mulsqihi3.sconst): New insn_and_split.
8214 (*mulsqihi3.uconst): New insn_and_split.
8215 (*mulsqihi3.oconst): New insn_and_split.
8216 (*ashifthi3.signx.const): New insn_and_split.
8217 (*ashifthi3.signx.const7): New insn_and_split.
8218 (*ashifthi3.zerox.const): New insn_and_split.
8219 (mulsqihi3): New insn.
8220 (muluqihi3): New insn.
8221 (muloqihi3): New insn.
8222 * config/avr/predicates.md (const_2_to_7_operand): New.
8223 (const_2_to_6_operand): New.
8224 (u8_operand): New.
8225 (s8_operand): New.
8226 (o8_operand): New.
8227 (s9_operand): New.
8228 (register_or_s9_operand): New.
8229
8230 2011-07-20 Kai Tietz <ktietz@redhat.com>
8231
8232 * builtins.c (fold_builtin_expect): See through the cast
8233 from truthvalue_type_node to long.
8234
8235 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
8236
8237 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
8238 where we can use them from the standard and altivec instruction
8239 sets, instead of always using the 3 operand VSX forms that require
8240 the destination to overlap one of the inputs.
8241 (vsx_fms*): Ditto.
8242 (vsx_fnma*): Ditto.
8243 (vsx_fnms*): Ditto.
8244
8245 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
8246 for DF types.
8247 (fmsdf4_fpr): Ditto.
8248 (nfmadf4_fpr): Ditto.
8249 (nfmsdf4_fpr): Ditto.
8250
8251 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
8252
8253 * genrecog.c (make_insn_sequence): Correct position numbering
8254 when filtering out match_scratch and match_dup.
8255
8256 2011-07-20 Richard Guenther <rguenther@suse.de>
8257
8258 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
8259 against already removed statements.
8260 (forward_propagate_into_comparison): Remove dead defining stmts.
8261 (forward_propagate_into_gimple_cond): Likewise.
8262 (forward_propagate_into_cond): Simplify.
8263 (ssa_forward_propagate_and_combine): Handle changed cfg from
8264 forward_propagate_into_comparison.
8265 * tree-ssa-phiopt.c (conditional_replacement): Use proper
8266 locations for newly built statements.
8267
8268 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
8269
8270 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
8271
8272 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8273
8274 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
8275 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
8276
8277 2011-07-20 Richard Guenther <rguenther@suse.de>
8278
8279 PR middle-end/18908
8280 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
8281 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
8282 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
8283
8284 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
8285
8286 * config/frv/frv.c (frv_register_move_cost): Define explicitly
8287 costs for subclasses of GR_REGS.
8288
8289 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
8290
8291 PR target/49780
8292 * config/i386/predicates.md (no_seg_addres_operand): No more special.
8293 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8294 of DImode hard registers in base.
8295 (ix86_legitimate_address_p): Allow SImode and DImode base and index
8296 registers.
8297
8298 2011-07-20 Richard Guenther <rguenther@suse.de>
8299
8300 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
8301 (unify_nodes): Deal with that.
8302 (solve_graph): Likewise.
8303
8304 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
8305
8306 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
8307 canonicalize left operand from ZERO_EXTEND to AND.
8308
8309 2011-07-20 Anatoly Sokolov <aesok@post.ru>
8310
8311 * target.def (class_max_nregs): New hook.
8312 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
8313 * doc/tm.texi: Regenerate.
8314 * targhooks.c (default_class_max_nregs): New function.
8315 * targhooks.h (default_class_max_nregs): Declare.
8316 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
8317 x_ira_reg_class_min_nregs arrays to unsigned char.
8318 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
8319 hook instead of CLASS_MAX_NREGS macro.
8320 * reginfo.c (restore_register_info): Ditto.
8321 * ira-conflicts.c (process_regs_for_copy): Use
8322 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
8323 Change type rclass and aclass vars to reg_class_t.
8324 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
8325 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
8326 reg_class_t.
8327 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
8328 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
8329
8330 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
8331 * config/i386/i386.c (ix86_class_max_nregs): New function.
8332 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
8333 instead of CLASS_MAX_NREGS macro.
8334 (TARGET_CLASS_MAX_NREGS): Define.
8335 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
8336 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
8337 * config/avr/avr.c (class_max_nregs): Remove function.
8338 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
8339 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
8340 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
8341 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
8342 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
8343 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
8344 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
8345 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
8346 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
8347 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
8348 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
8349 * config/score/score.h (CLASS_MAX_NREGS): Remove.
8350 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
8351 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
8352 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
8353
8354 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
8355
8356 * cif-code.def (OVERWRITABLE): Fix typo and move around.
8357 (TARGET_OPTIMIZATION_MISMATCH): Delete.
8358 (EH_PERSONALITY): Fix typo.
8359 (NON_CALL_EXCEPTIONS): Fix message.
8360 (OPTIMIZATION_MISMATCH): Adjust message.
8361 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
8362
8363 2011-07-19 Ian Lance Taylor <iant@google.com>
8364
8365 * doc/install.texi (Configuration): Document
8366 --enable-build-poststage1-with-cxx.
8367
8368 2011-07-19 Robert Millan <rmh@gnu.org>
8369
8370 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
8371 (GLIBC_DYNAMIC_LINKER): Remove.
8372
8373 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
8374 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
8375 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
8376 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
8377 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
8378 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
8379
8380 * config/mips/linux.h: Remove everything except for ...
8381 (GLIBC_DYNAMIC_LINKER): ... this macro.
8382
8383 * config/mips/linux64.h: Remove everything except for ...
8384 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
8385 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
8386 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
8387 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
8388 (GNU_USER_LINK_EMULATIONN32): New macros.
8389
8390 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
8391 Use the new headers.
8392
8393 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
8394
8395 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
8396 Add offset_known_p and size_known_p fields.
8397 (MEM_OFFSET_KNOWN_P): Update accordingly.
8398 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
8399 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
8400 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
8401 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
8402 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
8403 (init_emit_regs): Likewise.
8404
8405 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
8406
8407 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
8408 (MEM_OFFSET): Change from returning an rtx to returning a
8409 HOST_WIDE_INT.
8410 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
8411 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
8412 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
8413 (clear_mem_offset): Declare.
8414 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
8415 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
8416 MEM_OFFSET to get a HOST_WIDE_INT offset.
8417 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
8418 (adjust_offset_for_component_ref): Take a bool "known_p"
8419 parameter and a HOST_WIDE_INT "offset" parameter.
8420 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
8421 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
8422 than an rtx. Use clear_mem_offset to clear the offset.
8423 * cfgcleanup.c (merge_memattrs): Likewise.
8424 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
8425 * function.c (assign_parm_find_stack_rtl): Likewise.
8426 (assign_parm_setup_stack): Likewise.
8427 * print-rtl.c (print_rtx): Likewise.
8428 * reload.c (find_reloads_subreg_address): Likewise.
8429 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
8430 * var-tracking.c (INT_MEM_OFFSET): Likewise.
8431 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
8432 (get_mem_align_offset): Likewise.
8433 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
8434 (clear_mem_offset): New function.
8435 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
8436 offset rather than an rtx. Assume both the expressio and offset
8437 are available.
8438 (r10k_needs_protection_p_1): Update accordingly, checking the
8439 expression and offset availability here instead.
8440
8441 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
8442
8443 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
8444 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
8445 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
8446 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
8447 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
8448 (clear_mem_size): Declare.
8449 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
8450 (clear_mem_size): New function.
8451 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
8452 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
8453 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
8454 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
8455 to clear the size.
8456 (nonoverlapping_memrefs_p): Likewise.
8457 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
8458 (expand_builtin_init_trampoline): Likewise.
8459 * calls.c (compute_argument_addresses): Likewise.
8460 * cfgcleanup.c (merge_memattrs): Likewise.
8461 * dce.c (find_call_stack_args): Likewise.
8462 * dse.c (record_store, scan_insn): Likewise.
8463 * dwarf2out.c (dw_sra_loc_expr): Likewise.
8464 * expr.c (emit_block_move_hints): Likewise.
8465 * function.c (assign_parm_find_stack_rtl): Likewise.
8466 * print-rtl.c (print_rtx): Likewise.
8467 * reload.c (find_reloads_subreg_address): Likewise.
8468 * rtlanal.c (may_trap_p_1): Likewise.
8469 * var-tracking.c (track_expr_p): Likewise.
8470 * varasm.c (assemble_trampoline_template): Likewise.
8471 * config/arm/arm.c (arm_print_operand): Likewise.
8472 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
8473 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
8474 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
8475 (expand_constant_setmem_prologue): Likewise.
8476 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
8477 * config/rs6000/rs6000.c (expand_block_move): Likewise.
8478 (adjacent_mem_locations): Likewise.
8479 * config/s390/s390.c (s390_expand_setmem): Likewise.
8480 (s390_expand_insv): Likewise.
8481 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
8482 (*extendqi<mode>2_short_displ): Likewise.
8483 * config/sh/sh.c (expand_block_move): Likewise.
8484 * config/sh/sh.md (extv, extzv): Likewise.
8485
8486 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
8487
8488 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
8489 (mem_attrs_htab_eq): ...here.
8490 (find_mem_attrs): Replace with...
8491 (set_mem_attrs): ...this function. Take a mem_attrs structure
8492 rather than individual fields.
8493 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
8494 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
8495 (set_mem_size, change_address, adjust_address_1, offset_address)
8496 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
8497 Update accordingly.
8498
8499 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
8500
8501 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
8502 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
8503 Provide a dummy definition of MEM_ADDR_SPACE for generators.
8504 (target_rtl): Add x_mode_mem_attrs.
8505 (mode_mem_attrs): New macro.
8506 (get_mem_attrs): New function.
8507 * emit-rtl.c (get_mem_attrs): Rename to...
8508 (find_mem_attrs): ...this.
8509 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
8510 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
8511 (set_mem_size, change_address, adjust_address_1, offset_address)
8512 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
8513 Update accordingly.
8514 (init_emit_regs): Initialize mode_mem_attrs.
8515
8516 2011-07-19 Richard Guenther <rguenther@suse.de>
8517
8518 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
8519 TRUTH_*_EXPR handling.
8520 * tree-ssa-operands.c (get_expr_operands): Likewise.
8521 * tree-ssa-pre.c (fully_constant_expression): Likewise.
8522 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
8523 Likewise.
8524 (is_and_or_or): Likewise.
8525 (is_norm_cond_subset_of): Likewise.
8526
8527 2011-07-19 Richard Guenther <rguenther@suse.de>
8528
8529 * tree.h (fold_build_pointer_plus_loc): New helper function.
8530 (fold_build_pointer_plus_hwi_loc): Likewise.
8531 (fold_build_pointer_plus): Define.
8532 (fold_build_pointer_plus_hwi): Likewise.
8533 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
8534 (fold_builtin_memory_op): Likewise.
8535 (fold_builtin_stpcpy): Likewise.
8536 (fold_builtin_memchr): Likewise.
8537 (fold_builtin_strstr): Likewise.
8538 (fold_builtin_strchr): Likewise.
8539 (fold_builtin_strrchr): Likewise.
8540 (fold_builtin_strpbrk): Likewise.
8541 (fold_builtin_strcat): Likewise.
8542 (expand_builtin_memory_chk): Likewise.
8543 (fold_builtin_memory_chk): Likewise.
8544 * c-typeck.c (build_unary_op): Likewise.
8545 * cgraphunit.c (thunk_adjust): Likewise.
8546 * fold-const.c (build_range_check): Likewise.
8547 (fold_binary_loc): Likewise.
8548 * omp-low.c (extract_omp_for_data): Likewise.
8549 (expand_omp_for_generic): Likewise.
8550 (expand_omp_for_static_nochunk): Likewise.
8551 (expand_omp_for_static_chunk): Likewise.
8552 * tree-affine.c (add_elt_to_tree): Likewise.
8553 * tree-data-ref.c (split_constant_offset_1): Likewise.
8554 * tree-loop-distribution.c (generate_memset_zero): Likewise.
8555 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
8556 * tree-predcom.c (ref_at_iteration): Likewise.
8557 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
8558 (add_to_parts): Likewise.
8559 (create_mem_ref): Likewise.
8560 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
8561 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
8562 (number_of_iterations_le): Likewise.
8563 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
8564 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8565 (vect_create_addr_base_for_vector_ref): Likewise.
8566 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
8567 (vect_create_cond_for_alias_checks): Likewise.
8568 * tree-vrp.c (extract_range_from_assert): Likewise.
8569 * config/alpha/alpha.c (alpha_va_start): Likewise.
8570 (alpha_gimplify_va_arg_1): Likewise.
8571 * config/i386/i386.c (ix86_va_start): Likewise.
8572 (ix86_gimplify_va_arg): Likewise.
8573 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
8574 * config/mep/mep.c (mep_expand_va_start): Likewise.
8575 (mep_gimplify_va_arg_expr): Likewise.
8576 * config/mips/mips.c (mips_va_start): Likewise.
8577 (mips_gimplify_va_arg_expr): Likewise.
8578 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
8579 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
8580 (rs6000_gimplify_va_arg): Likewise.
8581 * config/s390/s390.c (s390_va_start): Likewise.
8582 (s390_gimplify_va_arg): Likewise.
8583 * config/sh/sh.c (sh_va_start): Likewise.
8584 (sh_gimplify_va_arg_expr): Likewise.
8585 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
8586 * config/spu/spu.c (spu_va_start): Likewise.
8587 (spu_gimplify_va_arg_expr): Likewise.
8588 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
8589 Likewise.
8590 (xstormy16_gimplify_va_arg_expr): Likewise.
8591 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
8592 (xtensa_gimplify_va_arg_expr): Likewise.
8593
8594 2011-07-19 Richard Guenther <rguenther@suse.de>
8595
8596 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
8597 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
8598 handling.
8599
8600 PR middle-end/18908
8601 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
8602 result of BIT_*_EXPR to bitfield precision.
8603
8604 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
8605
8606 PR tree-optimization/49742
8607 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
8608 as a potential write.
8609
8610 2011-07-19 Richard Guenther <rguenther@suse.de>
8611
8612 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
8613 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
8614 (forward_propagate_comparison): Simplify, remove obsolete code.
8615
8616 2011-07-19 Richard Guenther <rguenther@suse.de>
8617
8618 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
8619 BIT_XOR_EXPR, same as the RTL expander does.
8620 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
8621 (verify_gimple_assign_unary): Likewise.
8622 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
8623 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
8624 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
8625
8626 2011-07-19 Jakub Jelinek <jakub@redhat.com>
8627
8628 PR tree-optimization/49768
8629 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
8630 if offset is smaller than bitoffset, but offset+size is bigger
8631 than bitoffset.
8632
8633 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
8634
8635 PR tree-optimization/49771
8636 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
8637 zero step, set segment length to the size of the data-ref's type.
8638
8639 2011-07-18 Martin Jambor <mjambor@suse.cz>
8640
8641 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
8642 comments.
8643 (ipcp_values_pool): Declare.
8644 (ipcp_sources_pool): Likewise.
8645 (ipcp_lattice): Changed to forward declaration.
8646 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
8647 cannot_devirtualize.
8648 (ipa_node_params): New fields descriptors, lattices, known_vals,
8649 clone_for_all_contexts and node dead, removed fields params and
8650 count_scale.
8651 (ipa_set_param_count): Removed.
8652 (ipa_get_param_count): Made to work with descriptors vector.
8653 (ipa_get_param): Updated.
8654 (ipa_param_cannot_devirtualize_p): Removed.
8655 (ipa_param_types_vec_empty): Likewise.
8656 (ipa_set_param_used): New function.
8657 (ipa_get_param_used): Updated to use descriptors vector.
8658 (ipa_func_list): Removed.
8659 (ipa_init_func_list): Removed declaration.
8660 (ipa_push_func_to_list_1): Likewise.
8661 (ipa_pop_func_from_list): Likewise.
8662 (ipa_push_func_to_list): Removed.
8663 (ipa_lattice_from_jfunc): Remove declaration.
8664 (ipa_get_jf_pass_through_result): Declare.
8665 (ipa_get_jf_ancestor_result): Likewise.
8666 (ipa_value_from_jfunc): Likewise.
8667 (ipa_get_lattice): Update.
8668 (ipa_lat_is_single_const): New function.
8669 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
8670 (ipa_init_func_list): Likewise.
8671 (ipa_pop_func_from_list): Likewise.
8672 (ipa_get_param_decl_index): Fix coding style.
8673 (count_formal_params): Removed.
8674 (count_formal_params_1): Renamed to count_formal_params.
8675 (ipa_populate_param_decls): Update to use descriptors vector.
8676 (ipa_initialize_node_params): Likewise.
8677 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
8678 (ipa_analyze_params_uses): Likewise.
8679 (ipa_free_node_params_substructures): Likewise and free also lattices
8680 and known values.
8681 (duplicate_array): Removed.
8682 (ipa_edge_duplication_hook): Add the new edge to the list of edge
8683 clones.
8684 (ipa_node_duplication_hook): Update to use new lattices.
8685 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
8686 (ipa_free_all_structures_after_iinln): Likewise.
8687 (ipa_write_node_info): Update to use new lattices.
8688 (ipa_read_node_info): Likewise.
8689 (ipa_get_jf_pass_through_result): New function.
8690 (ipa_get_jf_ancestor_result): Likewise.
8691 (ipa_value_from_jfunc): Likewise.
8692 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
8693 * ipa-cp.c: Reimplemented.
8694 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
8695 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
8696 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
8697 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
8698 * doc/invoke.texi (devirt-type-list-size): Removed description.
8699 (ipa-cp-value-list-size): Added description.
8700
8701 2011-07-18 Richard Henderson <rth@redhat.com>
8702
8703 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
8704 before calling create_basic_block.
8705
8706 2011-07-18 Jakub Jelinek <jakub@redhat.com>
8707
8708 PR middle-end/49675
8709 * tree.c (build_common_builtin_nodes): Register
8710 __builtin_return_address, __cyg_profile_func_enter
8711 and __cyg_profile_func_exit.
8712
8713 2011-07-18 Richard Henderson <rth@redhat.com>
8714
8715 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
8716 (add_labels_and_missing_jumps): ... here.
8717 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
8718
8719 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
8720
8721 PR target/47744
8722 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8723 of DImode hard registers in PLUS address chains.
8724
8725 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8726
8727 PR bootstrap/49769
8728 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
8729 (alpha*-*-freebsd*): Likewise.
8730 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
8731 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
8732 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
8733 crtprec80.o, crtfastmath.o to extra_parts for all targets.
8734 (ia64*-*-elf*): Remove extra_parts.
8735 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
8736 (sparc64-*-linux*): Likewise.
8737 (sparc64-*-freebsd*): Likewise.
8738
8739 Revert:
8740 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
8741 (ia64*-*-linux*): Likewise.
8742 (mips64*-*-linux*): Likewise.
8743 (mips*-*-linux*): Likewise.
8744
8745 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
8746
8747 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
8748
8749 2011-07-18 Richard Guenther <rguenther@suse.de>
8750
8751 * gimplify.c (gimplify_expr): Use input_location, not saved_location
8752 when building new trees.
8753
8754 2011-07-18 Richard Guenther <rguenther@suse.de>
8755
8756 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
8757 expansion result to bitfield precision if required.
8758
8759 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8760
8761 * config.gcc (i[3456x]86-*-netware*): Remove.
8762
8763 * gthr-nks.h: Remove.
8764 * configure.ac (enable_threads): Remove nks.
8765 * configure: Regenerate.
8766
8767 * config/i386/i386.c (ix86_encode_section_info): Remove netware
8768 reference.
8769 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
8770 <netware.h> reference.
8771
8772 * config/i386/netware-libgcc.c,
8773 gcc/config/i386/netware-libgcc.def,
8774 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
8775 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
8776 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
8777 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
8778
8779 * doc/extend.texi (Function Attributes,
8780 callee_pop_aggregate_return): Remove i?86-netware reference.
8781 * doc/install.texi (Configuration, --enable-threads): Remove nks.
8782
8783 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8784
8785 PR target/49746
8786 Revert:
8787 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8788
8789 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
8790 patterns.
8791
8792 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
8793
8794 PR middle-end/49732
8795 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
8796
8797 2011-07-16 Matthias Klose <doko@ubuntu.com>
8798
8799 * doc/install.texi: Document --enable-static-libjava.
8800
8801 2011-07-15 Richard Henderson <rth@redhat.com>
8802
8803 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
8804 Replace all three arguments by returning a VEC of edges.
8805 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
8806 pointers and counts.
8807 (fix_edges_for_rarely_executed_code): Merge ...
8808 (rest_of_handle_partition_blocks): ... into...
8809 (partition_hot_cold_basic_blocks): ... here. Return todo items if
8810 any work was performed.
8811 (pass_partition_blocks): Clear todo_flags_finish.
8812
8813 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
8814 Jakub Jelinek <jakub@redhat.com>
8815 Jonathan Wakely <jwakely.gcc@gmail.com>
8816
8817 PR libstdc++/49745
8818 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
8819 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
8820
8821 2011-07-15 Jason Merrill <jason@redhat.com>
8822
8823 PR testsuite/49741
8824 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
8825 rather than --tool_opts.
8826
8827 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
8828
8829 * doc/plugins.texi (Building GCC plugins): gengtype needs its
8830 corresponding gtype.state.
8831
8832 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8833
8834 PR target/49723
8835 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
8836
8837 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
8838
8839 PR target/48220
8840 * doc/md.texi (Standard Names): Document window_save.
8841 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
8842 expand_debug_expr and expand_debug_source_expr. If the target has
8843 a window_save instruction, adjust the ENTRY_VALUE_EXP.
8844 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
8845 SSA_NAME_VAR is a parameter.
8846 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
8847 * var-tracking.c (parm_reg_t): New type and associated vector type.
8848 (windowed_parm_regs): New variable.
8849 (adjust_insn): If the target has a window_save instruction and this
8850 is the instruction, make its effect on parameter registers explicit.
8851 (next_non_note_insn_var_location): New function.
8852 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
8853 (vt_add_function_parameter): If the target has a window_save insn,
8854 adjust the incoming RTL and record that in windowed_parm_regs.
8855 (vt_finalize): Free windowed_parm_regs.
8856
8857 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
8858
8859 * doc/invoke.texi (C6X Options): New section.
8860 * doc/md.texi (TI C6X family): New section.
8861 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
8862 tic6x-*-uclinux.
8863 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
8864 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
8865 Provide C6X definitions.
8866 * config/c6x/c6x.md: New file.
8867 * config/c6x/constraints.md: New file.
8868 * config/c6x/predicates.md: New file.
8869 * config/c6x/c6x-sched.md.in: New file.
8870 * config/c6x/c6x-sched.md: New file.
8871 * config/c6x/gensched.sh: New file.
8872 * config/c6x/c6x-mult.md.in: New file.
8873 * config/c6x/genmult.sh: New file.
8874 * config/c6x/c6x-mult.md: New file.
8875 * config/c6x/sync.md: New file.
8876 * config/c6x/c6x-protos.h: New file.
8877 * config/c6x/sfp-machine.h: New file.
8878 * config/c6x/c6x.c: New file.
8879 * config/c6x/c6x.h: New file.
8880 * config/c6x/crti.s: New file.
8881 * config/c6x/crtn.s: New file.
8882 * config/c6x/lib1funcs.asm: New file.
8883 * config/c6x/c6x-modes.def: New file.
8884 * config/c6x/genopt.sh: New file.
8885 * config/c6x/c6x.opt: New file.
8886 * config/c6x/c6x-tables.opt: New file.
8887 * config/c6x/c6x-opts.h: New file.
8888 * config/c6x/c6x-isas.def: New file.
8889 * config/c6x/elf.h: New file.
8890 * config/c6x/elf-common.h: New file.
8891 * config/c6x/uclinux-elf.h: New file.
8892 * config/c6x/t-c6x: New file.
8893 * config/c6x/t-c6x-elf: New file.
8894 * config/c6x/t-c6x-uclinux: New file.
8895 * config/c6x/t-c6x-softfp: New file.
8896 * config/c6x/gtd.c: New file.
8897 * config/c6x/gtf.c: New file.
8898 * config/c6x/ltd.c: New file.
8899 * config/c6x/ltf.c: New file.
8900 * config/c6x/ged.c: New file.
8901 * config/c6x/gef.c: New file.
8902 * config/c6x/led.c: New file.
8903 * config/c6x/lef.c: New file.
8904 * config/c6x/eqd.c: New file.
8905 * config/c6x/eqf.c: New file.
8906 * config/c6x/libgcc-c6xeabi.ver: New file.
8907
8908 Revert
8909 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
8910 PR rtl-optimization/11320
8911 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
8912 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
8913 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
8914 current_sched_info->compute_jump_reg_dependencies. Record which
8915 registers are used and which registers are set by the jump.
8916 Clear deps->reg_conditional_sets after a barrier.
8917 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
8918 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
8919 (init_deps): Initialize reg_conditional_sets.
8920 (free_deps): Clear reg_conditional_sets.
8921 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
8922 Mark registers live on entry of the fallthrough block and conditionally
8923 set as set by the jump. Mark registers live on entry of non-fallthrough
8924 blocks as used by the jump.
8925 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
8926 Mark new parameters as unused.
8927
8928 2011-07-14 Andrew Pinski <pinskia@gmail.com>
8929
8930 PR tree-opt/49309
8931 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
8932 Use fold_build2_loc instead of build2.
8933 Use the correct type for the new tree.
8934
8935 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
8936
8937 PR rtl-optimization/11320
8938 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
8939 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
8940
8941 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
8942
8943 PR target/49487
8944 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
8945 of REG.
8946 (*rotw<mode>): Use const_int_operand for operand2.
8947 Use match_scatch for operand3.
8948 (*rotb<mode>): Ditto
8949 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
8950
8951 2011-07-14 Richard Guenther <rguenther@suse.de>
8952
8953 PR tree-optimization/49651
8954 * tree-ssa-structalias.c (get_constraint_for_1): Properly
8955 handle dereferences with subvariables.
8956
8957 2011-07-14 Richard Guenther <rguenther@suse.de>
8958
8959 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
8960 (fold_stmt_1): Do it here directly on gimple and as a first thing.
8961
8962 2011-07-14 Richard Guenther <rguenther@suse.de>
8963
8964 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
8965 not bool_var when folding bool_var != 1 or bool_var == 0.
8966
8967 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
8968
8969 * haifa-sched.c (schedule_insns): Remove outdated comment.
8970 (schedule_block): When computing a known value for TODO_SPEC,
8971 just set it rather than using logical operations.
8972 (try_ready): Likewise. Use a local variable rather than a
8973 pointer to TODO_SPEC. Reorder an if statement to move the
8974 easy case to the then block.
8975 * sched-deps.c (dep_spec_p): New static function.
8976 (update_dep): Use it to decide whether to call
8977 change_spec_dep_to_hard.
8978 (get_back_and_forw_lists): Use it.
8979 (sd_resolve_dep): Likewise.
8980 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
8981 (haifa_note_mem_dep): Likewise.
8982 (check_dep): Likewise.
8983 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
8984 (sched_free_deps): Free in two passes.
8985
8986 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
8987
8988 PR middle-end/49736
8989 * expr.c (all_zeros_p): Undo bogus part of last change.
8990
8991 2011-07-14 Matthias Klose <doko@ubuntu.com>
8992
8993 * doc/extend.texi (optimize attribute): Fix typo.
8994
8995 2011-07-14 Richard Guenther <rguenther@suse.de>
8996
8997 * gimplify.c (gimplify_expr): Only do required conversions.
8998
8999 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
9000
9001 PR target/43746
9002 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
9003 i.e. use default_elf_select_section.
9004 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
9005 (READONLY_DATA_SECTION_ASM_OP): Remove.
9006 (TARGET_ASM_NAMED_SECTION): Move from here...
9007 * config/avr/avr.c: ...to here.
9008 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
9009 (avr_asm_named_section): Make static.
9010
9011 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9012
9013 PR bootstrap/49739
9014 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
9015 and crtfastmath.o for Linux/x86.
9016
9017 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
9018
9019 * haifa-sched.c: Include "hashtab.h"
9020 (sched_no_dce): New global variable.
9021 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
9022 SHADOW_P): New macros.
9023 (last_clock_var, cycle_issued_insns): Move declarations.
9024 (must_backtrack): New static variable.
9025 (struct delay_pair): New structure.
9026 (delay_htab, delay_htab_i2): New static variables.
9027 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
9028 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
9029 functions.
9030 (dep_cost_1): If delay pairs exist, try to look up the insns and
9031 use the correct pair delay if we find them.
9032 (rank-for_schedule): Tweak priority for insns that must be scheduled
9033 soon to avoid backtracking.
9034 (queue_insn): Detect conditions which force backtracking.
9035 (ready_add): Likewise.
9036 (struct sched_block_state): Add member shadows_only_p.
9037 (struct haifa_save_data): New structure.
9038 (backtrack_queue): New static variable.
9039 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
9040 unschedule_insns_until, restore_last_backtrack_point,
9041 free_topmost_backtrack_point, free_backtrack_queue,
9042 estimate_insn_tick, estimate_shadow_tick): New functions.
9043 (prune_ready_list): New arg shadows_only_p. All callers changed.
9044 If true, remove everything that isn't SHADOW_P. Look up delay
9045 pairs and estimate ticks to avoid scheduling the first insn too early.
9046 (verify_shadows): New function.
9047 (schedule_block): Add machinery to enable backtracking.
9048 (sched_init): Take sched_no_dce into account when setting
9049 DF_LR_RUN_DCE.
9050 (free_delay_pairs): New function.
9051 (init_h_i_d): Initialize INSN_EXACT_TICK.
9052 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
9053 * sched-deps.c (sd_unresolve_dep): New function.
9054 * sched-int. (struct haifa_sched_info): New fields save_state
9055 and restore_state.
9056 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
9057 feeds_backtrack_insn and shadow_p.
9058 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
9059 (sched_no_dce): Declare variable.
9060 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
9061 sd_unresolve_dep): Declare functions.
9062 * modulo-sched.c (sms_sched_info): Clear the two new fields.
9063 * sched-rgn.c (rgn_const_sched_info): Likewise.
9064 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
9065 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
9066 (ebb_sched_info): Add them for the two new fields.
9067 (add_deps_for_risky_insns): Call add_delay_dependencies.
9068
9069 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
9070
9071 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
9072 Rename -mr11.
9073 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
9074 (rs6000_call_indirect_aix): Ditto.
9075 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
9076 (call_indirect_aix<ptrsize>_internal): Ditto.
9077 (call_indirect_aix<ptrsize>_nor11): Ditto.
9078 (call_indirect_aix<ptrsize>_internal2): Ditto.
9079 (call_value_indirect_aix<ptrsize>): Ditto.
9080 (call_value_indirect_aix<ptrsize>_internal): Ditto.
9081 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
9082 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
9083 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
9084
9085 2011-07-13 Jason Merrill <jason@redhat.com>
9086
9087 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
9088
9089 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9090
9091 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
9092 * config/spu/spu.md ("clrsb<mode>2"): New expander.
9093
9094 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
9095
9096 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
9097 * configure: Regenerate.
9098
9099 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9100
9101 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
9102 (asm_file_start): Remove.
9103 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
9104 free_bb_for_insn around code that modifies insns before
9105 restarting df analysis.
9106
9107 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9108
9109 PR target/49541
9110 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
9111 (LINK_SPEC): ... here.
9112
9113 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
9114
9115 * haifa-sched.c (struct sched_block_state): New.
9116 (schedule_block): Move some local variables into such a structure.
9117
9118 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9119
9120 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
9121 * config/i386/t-crtpc: Remove.
9122 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
9123 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
9124 tmake_file.
9125 (x86_64-*-darwin*): Likewise.
9126 (i[34567]86-*-linux*): Likewise.
9127 (x86_64-*-linux*): Likewise.
9128
9129 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
9130 Handle -mpc32, -mpc64, -mpc80.
9131
9132 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9133
9134 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
9135 * config/alpha/t-crtfm: Remove.
9136 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
9137 * config/i386/t-crtfm: Remove.
9138 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
9139 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
9140 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
9141 * config/sparc/t-crtfm: Remove.
9142
9143 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
9144 (alpha*-*-freebsd*): Likewise.
9145 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
9146 (x86_64-*-darwin*): Likewise.
9147 (i[34567]86-*-linux*): Likewise.
9148 (x86_64-*-linux*): Likewise.
9149 (x86_64-*-mingw*): Likewise.
9150 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
9151 (ia64*-*-freebsd*): Likewise.
9152 (ia64*-*-linux*): Likewise.
9153 (mips64*-*-linux*): Likewise.
9154 (mips*-*-linux*): Likewise.
9155 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
9156 (sparc64-*-linux*): Likewise.
9157 (sparc64-*-freebsd*): Likewise.
9158
9159 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9160
9161 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
9162 * config/darwin-crt3.c: Move to ../libgcc/config.
9163 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
9164 ($(T)crt3$(objext)): Remove.
9165 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
9166 ($(T)crt2$(objext)): Remove.
9167 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
9168 (powerpc64-*-darwin*): Likewise.
9169
9170 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
9171
9172 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
9173
9174 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
9175 (addsi_1_zext): This.
9176
9177 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
9178
9179 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
9180 * doc/tm.texi: Regenerate.
9181 * target.def (mergeable_rodata_prefix): New defhookpod.
9182 * varasm.c (mergeable_string_section, mergeable_constant_section):
9183 Use it. Allocate name with alloca.
9184
9185 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
9186
9187 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
9188
9189 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
9190
9191 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
9192 overlap check.
9193
9194 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
9195
9196 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
9197 (count_type_elements): Delete.
9198 (complete_ctor_at_level_p): Declare.
9199 * expr.c (flexible_array_member_p): New function, split out from...
9200 (count_type_elements): ...here. Make static. Replace allow_flexarr
9201 parameter with for_ctor_p. When for_ctor_p is true, return the
9202 number of elements that should appear in the top-level constructor,
9203 otherwise return an estimate of the number of scalars.
9204 (categorize_ctor_elements): Replace p_must_clear with p_complete.
9205 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
9206 (complete_ctor_at_level_p): New function, borrowing union logic
9207 from old categorize_ctor_elements_1.
9208 (mostly_zeros_p): Return true if the constructor is not complete.
9209 (all_zeros_p): Update call to categorize_ctor_elements.
9210 * gimplify.c (gimplify_init_constructor): Update call to
9211 categorize_ctor_elements. Don't call count_type_elements.
9212 Unconditionally prevent clearing for variable-sized types,
9213 otherwise rely on categorize_ctor_elements to detect
9214 incomplete initializers.
9215
9216 2011-07-13 Richard Guenther <rguenther@suse.de>
9217
9218 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
9219 the final type is integral.
9220
9221 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
9222
9223 * sched-int.h (struct _dep): Add member cost.
9224 (DEP_COST, UNKNOWN_DEP_COST): New macros.
9225 * sched-deps.c (init_dep_1): Initialize DEP_COST.
9226 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
9227 (sched_change_pattern): Reset it for dependent insns.
9228
9229 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9230
9231 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
9232 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
9233 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
9234 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
9235 (CRT0_S, MCRT0_S): Remove.
9236 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
9237 Remove.
9238 (s-crt0): Remove.
9239 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
9240
9241 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
9242
9243 * cse.c (insert_with_costs): Put semi-colon after empty loop body
9244 on the next line.
9245 * emit-rtl.c (push_to_sequence): Likewise.
9246 * haifa-sched.c (max_issue): Likewise.
9247 * matrix-reorg.c (add_allocation_site): Likewise.
9248 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
9249 * reload.c (alternative_allows_const_pool_ref): Likewise.
9250 * sched-rgn.c (rgn_add_block): Likewise.
9251 (rgn_fix_recovery_cfg): Likewise.
9252 * tree.c (attribute_list_contained): Likewise.
9253
9254 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
9255
9256 * config/i386/i386.c: Tidy processor feature bitmasks.
9257 (m_P4_NOCONA): New.
9258
9259 2011-07-12 Andrew Pinski <pinskia@gmail.com>
9260
9261 PR rtl-opt/49474
9262 * cprop.c (find_implicit_sets): Correct the condition.
9263
9264 2011-07-12 Richard Henderson <rth@redhat.com>
9265
9266 PR target/49713
9267 * dwarf2out.h (dwarf_frame_regnum): Remove.
9268 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
9269 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
9270 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
9271 (execute_dwarf2_frame): Initialize them.
9272 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
9273 users of the macros with the variables.
9274 (expand_builtin_dwarf_sp_column): Revert last change.
9275 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
9276 result of DWARF_FRAME_REGNUM into a local variable.
9277
9278 2011-07-12 Richard Henderson <rth@redhat.com>
9279
9280 PR target/49714
9281 * config/i386/i386.c (x86_output_mi_thunk): Use
9282 machopic_indirect_call_target instead of machopic_indirection_name
9283 directly.
9284
9285 2011-07-12 Laurent GUERBY <laurent@guerby.net>
9286 Eric Botcazou <ebotcazou@adacore.com>
9287
9288 * prefix.h: Wrap up in extern "C" block.
9289
9290 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
9291
9292 AMD bdver2 Enablement
9293 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
9294 (case ${target}): Add bdver2.
9295 * config/i386/driver-i386.c (host_detect_local_cpu): Let
9296 -march=native recognize bdver2 processors.
9297 * config/i386/i386-c.c (ix86_target_macros_internal): Add
9298 bdver2 def_and_undef
9299 * config/i386/i386.c (struct processor_costs bdver2_cost): New
9300 bdver2 cost table.
9301 (m_BDVER2): New definition.
9302 (m_AMD_MULTIPLE): Includes m_BDVER2.
9303 (initial_ix86_tune_features): Add bdver2 tuning.
9304 (processor_target_table): Add bdver2 entry.
9305 (static const char *const cpu_names): Add bdver2 entry.
9306 (ix86_option_override_internal): Add bdver2 instruction sets.
9307 (ix86_issue_rate): Add bdver2.
9308 (ix86_adjust_cost): Add bdver2.
9309 (has_dispatch): Add bdver2.
9310 * config/i386/i386.h (TARGET_BDVER2): New definition.
9311 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
9312 (enum processor_type): Add PROCESSOR_BDVER2.
9313 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
9314 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
9315 description.
9316
9317 2011-07-12 Richard Henderson <rth@redhat.com>
9318
9319 PR target/49714
9320 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
9321 destination address in memory on some paths.
9322
9323 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
9324
9325 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
9326 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
9327 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
9328 * function.c (locate_and_pad_parm): Take it into account.
9329 * target.def (function_arg_round_boundary): New hook.
9330 * targhooks.c (default_function_arg_round_boundary): New function.
9331 * targhooks.h (default_function_arg_round_boundary): Declare.
9332 * doc/tm.texi: Regenerate.
9333
9334 2011-07-12 Richard Guenther <rguenther@suse.de>
9335
9336 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
9337 Do not perform no-op changes.
9338
9339 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
9340
9341 * config/arm/predicates.md (neon_struct_operand): Make a normal
9342 predicate.
9343 (neon_struct_or_register_operand): New predicate.
9344 * config/arm/neon.md (movmisalign<mode>): Replace predicates
9345 with neon_struct_or_register_operand.
9346 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
9347 neon_struct_operand instead of memory_operand.
9348
9349 2011-07-12 Martin Jambor <mjambor@suse.cz>
9350
9351 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
9352 * cgraph.c (cgraph_get_node_or_alias): Removed.
9353 (change_decl_assembler_name): Changed all calls to
9354 cgraph_get_node_or_alias to a call to cgraph_get_node.
9355 (cgraph_make_decl_local): Likewise.
9356 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
9357 * varasm.c (default_binds_local_p_1): Likewise.
9358 (decl_binds_to_current_def_p): Likewise.
9359
9360 2011-07-12 Jakub Jelinek <jakub@redhat.com>
9361
9362 PR tree-optimization/49712
9363 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
9364
9365 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
9366
9367 * genautomata.c (add_arc): Return void. All callers changed.
9368 (make_automaton): Remove dead code.
9369
9370 2011-07-11 Richard Henderson <rth@redhat.com>
9371
9372 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
9373 (DW_FRAME_POINTER_REGNUM): New.
9374 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
9375 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
9376 (dwf_regno): New.
9377 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
9378 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
9379 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
9380 Use it.
9381 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
9382 * dwarf2out.h (dwarf_frame_regnum): New.
9383 (struct cfa_loc): Document the domain of the reg member.
9384
9385 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
9386
9387 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
9388 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
9389
9390 2011-07-11 Jakub Jelinek <jakub@redhat.com>
9391
9392 PR debug/49676
9393 * dwarf2out.c (int_shift_loc_descriptor): New function.
9394 (int_loc_descriptor): If shorter, emit i as
9395 (i >> shift), shift, DW_OP_shl for suitable shift value.
9396 Similarly, try to optimize large negative values using
9397 DW_OP_neg of a positive value if shorter.
9398 (size_of_int_shift_loc_descriptor): New function.
9399 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
9400 changes.
9401 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
9402 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
9403 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
9404 is shorter.
9405 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
9406 addend as added DW_OP_plus if it is shorter.
9407
9408 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9409
9410 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
9411 (DTORS_SECTION_ASM_OP): Define.
9412
9413 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9414
9415 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
9416 * config/t-dfprules: Move to ../libgcc/config.
9417 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
9418 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
9419 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
9420 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
9421 Likewise.
9422 (i[34567]86-*-cygwin*): Likewise.
9423 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
9424 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
9425 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
9426 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
9427 D64PBIT_FUNCS, D128PBIT_FUNCS.
9428
9429 2011-07-11 Richard Guenther <rguenther@suse.de>
9430
9431 * tree-vrp.c (simplify_conversion_using_ranges): Manually
9432 translate the source value-range through the conversion chain.
9433
9434 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
9435
9436 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
9437
9438 2011-07-11 Arthur Loiret <aloiret@debian.org>
9439
9440 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
9441 a bi-arch compiler defaulting to 31-bit. In this case:
9442 (tmake_file): Add s390/t-linux64.
9443 * doc/install.texi: Add s390-linux to the list of targets supporting
9444 --enable-targets=all.
9445
9446 2011-07-11 Arthur Loiret <aloiret@debian.org>
9447 Matthias Klose <doko@debian.org>
9448
9449 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
9450 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
9451 (tm_file): Add mips/linux64.h.
9452 (tmake_file): Add mips/t-linux64.
9453 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
9454 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
9455 instead of hardcoded mabi=n32.
9456 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
9457 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
9458 convention.
9459
9460 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9461
9462 * passes.c (init_optimization_passes): Add invariant motion pass
9463 after induction variable optimization.
9464
9465 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
9466
9467 PR target/39633
9468 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
9469 offsets 1..5 set cc0 in a usable way.
9470
9471 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
9472
9473 * tree.h (call_expr_arg): Remove.
9474 (call_expr_argp): Likewise.
9475
9476 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
9477
9478 * config/sparc/sparc.md (save_register_window_1): Rename to...
9479 (window_save): ...this.
9480 * config/sparc/sparc.c (emit_save_register_window): Rename to...
9481 (emit_window_save): ...this.
9482 (sparc_expand_prologue): Adjust to above renaming.
9483
9484 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
9485
9486 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
9487 of movabs for x32.
9488
9489 2011-07-10 Richard Henderson <rth@redhat.com>
9490
9491 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
9492 run final, instead of emitting text directly.
9493
9494 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
9495
9496 * config/i386/i386.c (ix86_option_override_internal): Turn on
9497 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
9498 small PIC models for TARGET_X32.
9499
9500 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
9501
9502 PR target/49684
9503 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
9504 $(LIBGCC2_CFLAGS).
9505
9506 PR bootstrap/49680
9507 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
9508 stray notes and debug insns by using prev_nonnote_nondebug_insn
9509 instead of PREV_INSN.
9510
9511 2011-07-09 Richard Henderson <rth@redhat.com>
9512
9513 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
9514 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
9515 * dwarf2out.c: ... here.
9516 (output_all_cfis): Remove.
9517 (dwarf2out_switch_text_section): Use output_cfis directly.
9518 (size_of_locs): Export.
9519 (output_loc_sequence, output_loc_sequence_raw): Export.
9520 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
9521 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
9522 output_cfa_loc_raw): Move to ...
9523 * dwarfcfi.c: ... here.
9524 * dwarf2out.h: Update decls.
9525
9526 2011-07-09 Richard Henderson <rth@redhat.com>
9527
9528 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
9529 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
9530 * dwarf2cfi.c: ... here.
9531 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
9532 (DWARF_ROUND, DWARF_CIE_ID): Remove.
9533 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
9534 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
9535 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
9536
9537 2011-07-09 Richard Henderson <rth@redhat.com>
9538
9539 * dwarf2cfi.c (cie_return_save): New.
9540 (queue_reg_save): Use compare_reg_or_pc.
9541 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
9542 (dwarf2out_frame_debug_expr): Likewise.
9543 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
9544 (initial_return_save): Likewise.
9545 (execute_dwarf2_frame): Save and restore initial return save from
9546 the cie to the fde.
9547 * config/mips/mips.c (mips_frame_set): Remove special case for
9548 DWARF_FRAME_RETURN_COLUMN.
9549
9550 2011-07-09 Richard Henderson <rth@redhat.com>
9551
9552 * dwarf2cfi.c (lookup_cfa): Remove.
9553 (execute_dwarf2_frame): Assert queues are empty on entry.
9554 Setup initial cfa directly, not via lookup_cfa.
9555 Don't clear args_size state here.
9556
9557 2011-07-09 Richard Henderson <rth@redhat.com>
9558
9559 * dwarf2cfi.c (add_cfi_vec): New.
9560 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
9561 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
9562 (execute_dwarf2_frame): Set add_cfi_vec.
9563
9564 2011-07-09 Richard Henderson <rth@redhat.com>
9565
9566 * defaults.h (ASM_COMMENT_START): Move here...
9567 * dwarf2asm.c: ... from here.
9568 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
9569 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
9570 * varasm.c: Likewise.
9571
9572 2011-07-09 Richard Henderson <rth@redhat.com>
9573
9574 PR debug/49686
9575 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
9576 (create_cfi_notes): ... do it here instead.
9577
9578 2011-07-09 Jakub Jelinek <jakub@redhat.com>
9579
9580 PR debug/49676
9581 * dwarf2out.c (size_of_int_loc_descriptor): New function.
9582 (address_of_int_loc_descriptor): Use it.
9583 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
9584
9585 2011-07-09 Richard Henderson <rth@redhat.com>
9586
9587 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
9588 (prologue, epilogue): New.
9589 (return, *rts): New.
9590 (blockage, setd, seti): New.
9591 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
9592 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
9593 (pdp11_saved_regno): New.
9594 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
9595 generate rtl instead of text.
9596 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
9597 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
9598 * config/pdp11/pdp11-protos.h: Update.
9599
9600 2011-07-09 Richard Henderson <rth@redhat.com>
9601
9602 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
9603 try to insert an rtl prologue here.
9604 (rs6000_output_function_epilogue): Similarly.
9605 * config/rs6000/rs6000.md (prologue): Emit a barrier to
9606 satisfy !TARGET_SCHED_PROLOG.
9607 (epilogue, sibcall_epilogue): Likewise.
9608
9609 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
9610
9611 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
9612 (FP_REG_P): Delete.
9613 (IN_OR_GLOBAL_P): Likewise.
9614
9615 2011-07-08 Jason Merrill <jason@redhat.com>
9616
9617 PR c++/45437
9618 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
9619 compound assignment.
9620
9621 * cgraph.c (cgraph_add_to_same_comdat_group): New.
9622 * cgraph.h: Declare it.
9623 * ipa.c (function_and_variable_visibility): Make sure thunks
9624 have the right visibility.
9625
9626 2011-07-08 Richard Henderson <rth@redhat.com>
9627
9628 PR bootstrap/49680
9629 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
9630 any tablejump vector.
9631
9632 PR bootstrap/49680
9633 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
9634 end of the prologue.
9635
9636 2011-07-08 Jakub Jelinek <jakub@redhat.com>
9637
9638 PR target/49621
9639 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
9640 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
9641 * config/rs6000/vector.md (vector_select_<mode>,
9642 vector_select_<mode>_uns): Change second operand of NE to
9643 CONST0_RTX (<MODE>mode) instead of const0_rtx.
9644 * config/rs6000/altivec.md (*altivec_vsel<mode>,
9645 *altivec_vsel<mode>_uns): Expect second operand of NE to be
9646 zero_constant of the corresponding vector mode.
9647 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
9648 Likewise.
9649
9650 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
9651
9652 * graphite-dependences.c (build_alias_set_powerset): Remove
9653 continue from loop, add one more assert.
9654
9655 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
9656
9657 PR target/46779
9658 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
9659 In particular, allow 8-bit values in r28 and r29.
9660 (avr_hard_regno_scratch_ok): Disallow any register that might be
9661 part of the frame pointer.
9662 (avr_hard_regno_rename_ok): Same.
9663 (avr_legitimate_address_p): Don't allow SUBREGs.
9664
9665 2011-07-08 Julian Brown <julian@codesourcery.com>
9666
9667 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
9668 big-endian mode.
9669 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
9670 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
9671 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
9672 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
9673 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
9674 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
9675 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
9676 registers in big-endian mode.
9677
9678 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
9679
9680 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
9681 in terms of another.
9682 (write_attr_value): Write a cast if necessary.
9683
9684 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
9685 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
9686 (REG_WORDS_BIG_ENDIAN): Document.
9687 * doc/tm.texi: Regenerate.
9688 * reload.c (operands_match_p): Take it into account.
9689 (reload_adjust_reg_for_mode): Likewise.
9690 * rtlanal.c (subreg_get_info): Likewise.
9691
9692 2011-07-08 Richard Guenther <rguenther@suse.de>
9693
9694 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
9695 folding.
9696
9697 2011-07-08 Kai Tietz <ktietz@redhat.com>
9698
9699 * fold-const.c (fold_truth_andor): Factored out truth_andor
9700 label from fold_binary as function.
9701 (fold_binary_loc): Replace truth_andor lable
9702 by function fold_truth_andor.
9703
9704 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
9705
9706 PR middle-end/49519
9707 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
9708 check if address is stored in register. If so - give up.
9709 (check_sibcall_argument_overlap_1): Do not perform check of
9710 overlapping when it is call to address.
9711
9712 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
9713
9714 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
9715 of magic '31'.
9716
9717 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
9718
9719 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
9720 GET_MODE_BITSIZE where appropriate.
9721 (widen_leading, expand_parity, expand_ctz, expand_ffs,
9722 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
9723 expand_float, expand_fix): Likewise.
9724 * expr.c (convert_move, convert_modes, expand_expr_real_2,
9725 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
9726 * stor-layout.c (get_mode_bounds): Likewise.
9727 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
9728 Likewise.
9729 * convert.c (convert_to_integer): Likewise.
9730 * expmed.c (expand_shift_1): Likewise.
9731
9732 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
9733 a bitsize.
9734
9735 * optabs.c (expand_binop): Tighten conditions for doubleword
9736 expansions.
9737 (widen_bswap): Assert that mode bitsize and precision are the same.
9738 * stor-layout.c (get_best_mode): Skip modes that have lower
9739 precision than bitsize.
9740 * recog.c (simplify_while_replacing): Assert that bitsize and
9741 precision are the same.
9742
9743 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9744
9745 * Makefile.in (LIBGCOV): Remove.
9746 (libgcc.mvars): Remove LIBGCOV.
9747 * libgov.c: Move to ../libgcc.
9748
9749 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9750
9751 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
9752
9753 2011-07-08 Martin Jambor <mjambor@suse.cz>
9754
9755 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
9756 is too big for total scalarization.
9757
9758 2011-07-07 Richard Henderson <rth@redhat.com>
9759
9760 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
9761 (DBX_DEBUGGING_INFO): Undef.
9762
9763 2011-07-07 Richard Henderson <rth@redhat.com>
9764
9765 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
9766 Handle some opcodes specially for debugging.
9767 * print-rtl.c: Include dwarf2out.h
9768 (print_rtx): Handle NOTE_INSN_CFI.
9769 * Makefile.in (print-rtl.o): Update.
9770
9771 2011-07-07 Richard Henderson <rth@redhat.com>
9772
9773 * tree-pass.h (pass_dwarf2_frame): Declare.
9774 * passes.c (init_optimization_passes): Add it.
9775 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
9776 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
9777 make static, do not call add_cfis_to_fde.
9778 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
9779 dwarf2out_frame_init): Merge into...
9780 (execute_dwarf2_frame): ... here. New function.
9781 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
9782 saved_do_cfi_asm to a tri-state variable.
9783 (gate_dwarf2_frame, pass_dwarf2_frame): New.
9784 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
9785 if it has yet to be done. Don't call dwarf2cfi_function_init.
9786 * dwarf2out.h, debug.h: Update decls.
9787 * final.c (final_start_function): Don't call
9788 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
9789 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
9790 * toplev.c (lang_dependent_init): Likewise.
9791
9792 2011-07-07 Richard Henderson <rth@redhat.com>
9793
9794 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
9795 FDE_TABLE_INCREMENT): Replace with...
9796 (fde_vec): ... this, a new vector.
9797 (current_fde): Remove. Replace all users with cfun->fde.
9798 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
9799 (size_of_aranges, dwarf2out_finish): Likewise.
9800 (dwarf2out_alloc_current_fde): Break out from ...
9801 (dwarf2out_begin_prologue): ... here.
9802 (dwarf2out_frame_init): Remove.
9803 * dwarf2cfi.c: Update all users of current_fde.
9804 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
9805 * dwarf2out.h: Update decls.
9806 (dw_fde_node): Add fde_index member.
9807 * function.h (struct function): Add fde member.
9808
9809 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9810 Richard Henderson <rth@redhat.com>
9811
9812 * dwarf2cfi.c (add_cfi): Remove.
9813 (dwarf2out_cfi_label): Remove force argument. Only generate the
9814 label name.
9815 (add_fde_cfi): Simplify the different code paths.
9816 (add_cie_cfi): New.
9817 (old_cfa, old_cfa_remember): New.
9818 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
9819 (last_reg_save_label): Remove.
9820 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
9821 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9822 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9823 dwarf2out_frame_debug_cfa_expression,
9824 dwarf2out_frame_debug_cfa_restore,
9825 dwarf2out_frame_debug_cfa_window_save,
9826 dwarf2out_frame_debug_expr): Remove label parameter.
9827 (cfi_label_required_p, add_cfis_to_fde): New.
9828 (dwarf2out_frame_debug_after_prologue): New.
9829 (dwarf2cfi_frame_init): Initialize old_cfa.
9830 (dwarf2out_frame_debug_restore_state): Likewise.
9831 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
9832 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
9833 * final.c (final_start_function): Call
9834 dwarf2out_frame_debug_after_prologue.
9835
9836 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9837 Richard Henderson <rth@redhat.com>
9838
9839 * dwarf2cfi.c (cfi_insn): New.
9840 (dwarf2out_cfi_label): Don't emit cfi label here.
9841 (add_fde_cfi): Create a NOTE_INSN_CFI.
9842 (dwarf2out_frame_debug): Setup cfi_insn.
9843 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
9844 (dwarf2out_cfi_begin_epilogue): Make static.
9845 (dwarf2out_frame_debug_restore_state): Make static.
9846 * dwarf2out.c (output_cfi_directive): Make static.
9847 (dwarf2out_emit_cfi): New.
9848 * dwarf2out.h: Update.
9849 * final.c (final): Remove CFI notes.
9850 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
9851 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
9852 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
9853 * insn-notes.def (NOTE_INSN_CFI): New.
9854 (NOTE_INSN_CFI_LABEL): New.
9855 * rtl.h (union rtunion_def): Add rt_cfi member.
9856 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
9857
9858 2011-07-07 Richard Henderson <rth@redhat.com>
9859
9860 * dwarf2cfi.c: New file.
9861 * Makefile.in (OBJS): Add it.
9862 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
9863 * gengtype.c (open_base_files): Include dwarf2out.h.
9864 * coretypes.h (enum var_init_status): Move from ...
9865 * rtl.h: ... here.
9866 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
9867 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
9868 expand_builtin_dwarf_sp_column, init_return_column_size,
9869 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
9870 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
9871 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
9872 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
9873 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
9874 compute_barrier_args_size, dwarf2out_args_size,
9875 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
9876 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
9877 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
9878 queue_reg_save, dwarf2out_flush_queued_reg_saves,
9879 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
9880 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9881 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9882 dwarf2out_frame_debug_cfa_expression,
9883 dwarf2out_frame_debug_cfa_restore,
9884 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
9885 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
9886 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
9887 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
9888 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
9889 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
9890 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
9891 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
9892 dw_loc_descr_node): Move to dwarf2out.h.
9893 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
9894 mem_loc_descriptor): Export.
9895 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
9896 (dwarf2out_frame_init): Extract CIE generation code to
9897 dwarf2cfi_frame_init.
9898
9899 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
9900
9901 PR target/49660
9902 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
9903 MASK_V8PLUS, remove commented out flag and reorder.
9904
9905 2011-07-07 Jakub Jelinek <jakub@redhat.com>
9906
9907 PR c/49644
9908 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
9909 one non-complex and one complex argument, call c_save_expr on both
9910 operands.
9911
9912 2011-07-07 Martin Jambor <mjambor@suse.cz>
9913
9914 PR middle-end/49495
9915 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
9916 (verify_cgraph_node): Some functinality moved to
9917 verify_edge_corresponds_to_fndecl, call it.
9918
9919 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9920
9921 * config.gcc (*local*): Remove.
9922 * doc/install-old.texi: Don't mention local configurations.
9923
9924 2011-07-07 Jakub Jelinek <jakub@redhat.com>
9925
9926 PR debug/49522
9927 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
9928 referencing debug insns that have been reset.
9929 (dead_debug_insert_before): Don't assert reg is non-NULL,
9930 instead return immediately if it is NULL.
9931
9932 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9933
9934 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
9935
9936 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9937
9938 * hw-doloop.c: New file.
9939 * hw-doloop.h: New file.
9940 * Makefile.in (OBJS): Add hw-doloop.o.
9941 (hw-doloop.o): New rule.
9942 ($(obj_out_file)): Add hw-doloop.h dependency.
9943 * config/bfin/bfin.c: Include "hw-doloop.h".
9944 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
9945 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
9946 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
9947 type changed to hwloop_info. Return bool, true if the loop was
9948 successfully optimized. Remove code that was moved to
9949 hw-doloop.c, and adjust other parts.
9950 (hwloop_fail): New static function, containing parts that used
9951 to be in bfin_optimize_loop.
9952 (bfin_discover_loop, bfin_discover_loops, free_loops,
9953 bfin_reorder_loops): Remove.
9954 (hwloop_pattern_reg): New static function.
9955 (bfin_doloop_hooks): New variable.
9956 (bfin_reorg_loops): Remove most code, call reorg_loops.
9957 * config/bfin/bfin.md (doloop_end splitter): Also enable if
9958 loop counter is a memory_operand.
9959
9960 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
9961
9962 * config.gcc: Support --with-multilib-list for x86 Linux targets.
9963
9964 * configure.ac: Mention x86-64 for --with-multilib-list.
9965 * configure: Regenerated.
9966
9967 * config/i386/gnu-user64.h (SPEC_64): Support x32.
9968 (SPEC_32): Likewise.
9969 (ASM_SPEC): Likewise.
9970 (LINK_SPEC): Likewise.
9971 (TARGET_THREAD_SSP_OFFSET): Likewise.
9972 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
9973 (SPEC_X32): New.
9974
9975 * config/i386/i386.h (TARGET_X32): New.
9976 (TARGET_LP64): New.
9977 (LONG_TYPE_SIZE): Likewise.
9978 (POINTER_SIZE): Likewise.
9979 (POINTERS_EXTEND_UNSIGNED): Likewise.
9980 (OPT_ARCH64): Support x32.
9981 (OPT_ARCH32): Likewise.
9982
9983 * config/i386/i386.opt (mx32): New.
9984
9985 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
9986 (GLIBC_DYNAMIC_LINKERX32): Likewise.
9987 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
9988 (GLIBC_DYNAMIC_LINKERX32): Likewise.
9989
9990 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
9991 (BIONIC_DYNAMIC_LINKERX32): Likewise.
9992 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
9993
9994 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
9995
9996 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
9997
9998 * doc/invoke.texi: Document -mx32.
9999
10000 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
10001
10002 * doc/invoke.texi (mwords-little-endian): Deprecate.
10003 * config/arm/arm.opt (mwords-little-endian): Likewise.
10004 * config/arm/arm.c (arm_option_override): Warn about the deprecation
10005 of -mwords-little-endian.
10006
10007 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
10008
10009 * reload1.c (choose_reload_regs): Use mode sizes to check whether
10010 an old reload register completely defines the required value.
10011
10012 2011-07-07 Richard Guenther <rguenther@suse.de>
10013
10014 * fold-const.c (fold_unary_loc): Do not strip sign-changes
10015 for NEGATE_EXPR.
10016
10017 2011-07-07 Richard Guenther <rguenther@suse.de>
10018
10019 * tree-vrp.c (simplify_conversion_using_ranges): New function.
10020 (simplify_stmt_using_ranges): Call it.
10021
10022 2011-07-07 Kai Tietz <ktietz@redhat.com>
10023
10024 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
10025 (lookup_logical_inverted_value): Likewise.
10026 (simplify_bitwise_binary_1): Likewise.
10027 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
10028
10029 2011-07-07 Joseph Myers <joseph@codesourcery.com>
10030
10031 * gcc.c (%[Spec]): Don't document.
10032 (struct spec_list): Update comment.
10033 (do_spec_1): Don't handle %[Spec].
10034 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
10035
10036 2011-07-07 Joseph Myers <joseph@codesourcery.com>
10037
10038 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
10039 default based on TARGET_ASM_NAMED_SECTION.
10040 * common/common-target.def (have_named_sections): Default to true.
10041 * common/config/default-common.c: Don't include tm.h.
10042 * common/config/picochip/picochip-common.c
10043 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
10044 * common/config/m32c/m32c-common.c: Remove.
10045 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
10046 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10047 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10048 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10049 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10050 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10051 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10052
10053 2011-07-07 Jakub Jelinek <jakub@redhat.com>
10054
10055 PR middle-end/49640
10056 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
10057 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
10058
10059 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10060
10061 PR libmudflap/49550
10062 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
10063
10064 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10065
10066 PR target/39150
10067 * configure.ac (gcc_cv_as_hidden): Also accept
10068 x86_64-*-solaris2.1[0-9]*.
10069 (gcc_cv_as_cfi_directive): Likewise.
10070 (gcc_cv_as_comdat_group_group): Likewise.
10071 (set_have_as_tls): Likewise.
10072 * configure: Regenerate.
10073 * config.gcc (i[34567]86-*-solaris2*): Also handle
10074 x86_64-*-solaris2.1[0-9]*.
10075 * config.host (i[34567]86-*-solaris2*): Likewise.
10076 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
10077 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
10078 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
10079 (TARGET_LD_EMULATION): Use it.
10080 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
10081 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
10082 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
10083 (ASM_CPU64_DEFAULT_SPEC): Define.
10084 (ASM_CPU_SPEC): Use %(asm_cpu_default).
10085 (ASM_SPEC): Redefine.
10086 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
10087 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
10088 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
10089 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
10090 configuration.
10091 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
10092
10093 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10094
10095 * config/sol2.h (ASM_SPEC): Split into ...
10096 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
10097 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
10098 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
10099 (ASM_SPEC): Use ASM_SPEC_BASE.
10100 * config/sparc/sol2.h (ASM_SPEC): Redefine.
10101
10102 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
10103
10104 * config/avr/avr.md (*reload_insi): Change predicate #1 to
10105 const_int_operand. Ditto for peep2 producing this insn.
10106 Add argument to output_reload_insisf call.
10107 (*movsi,*movsf): Add argument to output_movsisf call.
10108 (*reload_insf): New insn and new peep2 to produce it.
10109 * config/avr/avr-protos.h (output_movsisf): Change prototype.
10110 (output_reload_insisf): Change prototype.
10111 * config/avr/avr.c (avr_asm_len): New function.
10112 (output_reload_insisf): Rewrite.
10113 (output_movsisf): Change prototype. output_reload_insisf for
10114 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
10115 (adjust_insn_length): Add argument to output_movsisf and
10116 output_reload_insisf call.
10117
10118 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
10119
10120 * emit-rtl.c (paradoxical_subreg_p): New function.
10121 * rtl.h (paradoxical_subreg_p): Declare.
10122 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
10123 apply_distributive_law, simplify_comparison, simplify_set): Use it.
10124 * cse.c (record_jump_cond, cse_insn): Likewise.
10125 * expr.c (force_operand): Likewise.
10126 * rtlanal.c (num_sign_bit_copies1): Likewise.
10127 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
10128 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
10129 (push_reload): Use precision to check for paradoxical subregs.
10130 * expmed.c (extract_bit_field_1): Likewise.
10131
10132 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
10133 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
10134 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
10135 simplify_set, simplify_logical, expand_compound_operation,
10136 make_extraction, force_to_mode, if_then_else_cond, extended_count,
10137 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
10138 record_value_for_reg): Likewise.
10139 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
10140 * simplify-rtx. c (simplify_unary_operation_1,
10141 simplify_binary_operation_1, simplify_const_relational_operation):
10142 Likewise.
10143
10144 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
10145 instead of GET_MODE_BITSIZE where appropriate.
10146 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
10147 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
10148 init_num_sign_bit_copies_in_rep): Likewise.
10149 * cse.c (fold_rtx, cse_insn): Likewise.
10150 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
10151 * simplify-rtx.c (simplify_unary_operation_1,
10152 simplify_const_unary_operation, simplify_binary_operation_1,
10153 simplify_const_binary_operation, simplify_ternary_operation,
10154 simplify_const_relational_operation, simplify_subreg): Likewise.
10155 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
10156 simplify_if_then_else, simplify_set, expand_compound_operation,
10157 expand_field_assignment, make_extraction, if_then_else_cond,
10158 make_compound_operation, force_to_mode, make_field_assignment,
10159 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
10160 extended_count, try_widen_shift_mode, simplify_shift_const_1,
10161 simplify_comparison, record_promoted_value, simplify_compare_const,
10162 record_dead_and_set_regs_1): Likewise.
10163
10164 Revert:
10165 * simplify-rtx.c (simplify_const_binary_operation): Use the
10166 shift_truncation_mask hook instead of performing modulo by width.
10167 Compare against mode precision, not bitsize.
10168 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
10169 Use shift_truncation_mask instead of constructing the value manually.
10170
10171 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
10172
10173 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
10174 declaration.
10175 (rs6000_save_toc_in_prologue_p): Ditto.
10176
10177 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
10178 up the static chain (r11) during indirect function calls.
10179 (-msave-toc-indirect): New undocumented debug switch.
10180
10181 * config/rs6000/rs6000.c (struct machine_function): Add
10182 save_toc_in_prologue field to note whether the prologue needs to
10183 save the TOC value in the reserved stack location.
10184 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
10185 to save the TOC in the prologue, do so.
10186 (rs6000_trampoline_init): Don't allow creating AIX style
10187 trampolines if -mno-r11 is in effect.
10188 (rs6000_call_indirect_aix): New function to create AIX style
10189 indirect calls, adding support for -mno-r11 to suppress loading
10190 the static chain, and saving the TOC in the prologue instead of
10191 the call body.
10192 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
10193 TOC in the prologue.
10194
10195 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
10196 register numbers.
10197 (TOC_REGNUM): Ditto.
10198 (STATIC_CHAIN_REGNUM): Ditto.
10199 (ARG_POINTER_REGNUM): Ditto.
10200 (SFP_REGNO): Delete, unused.
10201 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
10202 function descriptor offsets.
10203 (TOC_SAVE_OFFSET_64BIT): Ditto.
10204 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
10205 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
10206 (AIX_FUNC_DESC_SC_32BIT): Ditto.
10207 (AIX_FUNC_DESC_SC_64BIT): Ditto.
10208 (ptrload): New mode attribute for the appropriate load of a pointer.
10209 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
10210 (call_indirect_aix64): Ditto.
10211 (call_value_indirect_aix32): Ditto.
10212 (call_value_indirect_aix64): Ditto.
10213 (call_indirect_nonlocal_aix32_internal): Ditto.
10214 (call_indirect_nonlocal_aix32): Ditto.
10215 (call_indirect_nonlocal_aix64_internal): Ditto.
10216 (call_indirect_nonlocal_aix64): Ditto.
10217 (call): Rewrite AIX indirect function calls. Add support for
10218 eliminating the static chain, and for moving the save of the TOC
10219 to the function prologue.
10220 (call_value): Ditto.
10221 (call_indirect_aix<ptrsize>): Ditto.
10222 (call_indirect_aix<ptrsize>_internal): Ditto.
10223 (call_indirect_aix<ptrsize>_internal2): Ditto.
10224 (call_indirect_aix<ptrsize>_nor11): Ditto.
10225 (call_value_indirect_aix<ptrsize>): Ditto.
10226 (call_value_indirect_aix<ptrsize>_internal): Ditto.
10227 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
10228 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
10229 (call_nonlocal_aix32): Relocate in the rs6000.md file.
10230 (call_nonlocal_aix64): Ditto.
10231
10232 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
10233 -mno-r11 documentation.
10234
10235 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
10236
10237 PR other/49658
10238 * doc/extend.texi (Compound Literals): Fix typo.
10239
10240 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
10241
10242 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
10243
10244 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
10245
10246 * configure.ac (plugin-version.h): Generate
10247 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
10248 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
10249 macros.
10250
10251 * configure: Regenerate.
10252
10253 * doc/plugins.texi (Building GCC plugins): Mention
10254 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
10255
10256 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
10257
10258 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
10259 * combine.c (make_extraction, gen_lowpart_or_truncate,
10260 apply_distributive_law, simplify_comparison,
10261 reg_truncated_to_mode, record_truncated_value): Use it.
10262 * cse.c (notreg_cost): Likewise.
10263 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
10264 * expr.c (convert_move, convert_modes): Likewise.
10265 * optabs.c (expand_binop, expand_unop): Likewise.
10266 * postreload.c (move2add_last_label): Likewise.
10267 * regmove.c (optimize_reg_copy_3): Likewise.
10268 * rtlhooks.c (gen_lowpart_general): Likewise.
10269 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
10270
10271 2011-07-06 Joseph Myers <joseph@codesourcery.com>
10272
10273 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
10274
10275 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
10276
10277 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
10278 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
10279 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
10280 (simplify_const_unary_operation, simplify_binary_operation_1,
10281 simplify_const_binary_operation, simplify_const_relational_operation):
10282 Use them. Use GET_MODE_MASK for masking and sign-extensions.
10283 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
10284 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
10285 simplify_shift_const_1, simplify_comparison): Likewise.
10286 * expr.c (convert_modes): Likewise.
10287 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
10288 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
10289 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
10290
10291 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
10292
10293 2011-07-06 Richard Guenther <rguenther@suse.de>
10294
10295 PR tree-optimization/49645
10296 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
10297 register variables.
10298 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
10299 in type qualification here ...
10300 (copy_reference_ops_from_ref): ... not here.
10301 (vn_reference_lookup_3): ... or here.
10302 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
10303 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
10304
10305 2011-07-06 Ian Lance Taylor <iant@google.com>
10306
10307 * doc/install.texi (Configuration): It's
10308 --enable-gnu-indirect-function, not --enable-indirect-function.
10309
10310 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
10311
10312 * simplify-rtx.c (simplify_const_binary_operation): Use the
10313 shift_truncation_mask hook instead of performing modulo by width.
10314 Compare against mode precision, not bitsize.
10315 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
10316 Use shift_truncation_mask instead of constructing the value manually.
10317
10318 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
10319
10320 PR middle-end/47383
10321 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
10322 address computation and convert to address_mode if needed.
10323
10324 2011-07-06 Richard Guenther <rguenther@suse.de>
10325
10326 * tree.c (build_common_tree_nodes_2): Merge with
10327 build_common_tree_nodes.
10328 * tree.h (build_common_tree_nodes): Adjust prototype.
10329 (build_common_tree_nodes_2): Remove.
10330 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
10331 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
10332
10333 2011-07-05 Jakub Jelinek <jakub@redhat.com>
10334
10335 PR tree-optimization/49618
10336 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
10337 t recurse on the decl.
10338 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
10339 return true if expr isn't known to be defined in current
10340 TU or some other LTO partition.
10341
10342 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
10343
10344 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
10345 override CASE_VALUES_THRESHOLD.
10346
10347 * stmt.c (toplevel): Include params.h.
10348 (case_values_threshold): Use the --param case-values-threshold
10349 value if non-zero, otherwise use machine dependent value.
10350 (expand_case): Use case_values_threshold.
10351
10352 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
10353
10354 * doc/invoke.texi (--param case-values-threshold): Document.
10355
10356 2011-07-05 Richard Henderson <rth@redhat.com>
10357
10358 * dwarf2out.c (dwarf2out_cfi_label): Make static.
10359 (dwarf2out_flush_queued_reg_saves): Make static.
10360 (dwarf2out_reg_save): Remove.
10361 (dwarf2out_return_save): Remove.
10362 (dwarf2out_return_reg): Remove.
10363 (dwarf2out_reg_save_reg): Remove.
10364 (dwarf2out_def_cfa): Merge into ...
10365 (dwarf2out_frame_init): ... here.
10366 * dwarf2out.h, tree.h: Remove declarations as necessary.
10367
10368 2011-07-05 Richard Henderson <rth@redhat.com>
10369
10370 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
10371 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
10372 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
10373 the alloc insn.
10374
10375 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
10376 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
10377 (process_epilogue): Don't call dwarf2out_def_cfa.
10378
10379 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
10380 indicate the return address save.
10381 (process_cfa_register): Likewise.
10382
10383 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
10384 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
10385
10386 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
10387 for ar.pfs save at alloc insn.
10388
10389 2011-07-05 Richard Henderson <rth@redhat.com>
10390
10391 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
10392 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
10393 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
10394 stack pointer save.
10395 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
10396 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
10397 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
10398 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
10399
10400 2011-07-05 Richard Henderson <rth@redhat.com>
10401
10402 * config/vax/vax.md (define_c_enum unspecv): New. Define the
10403 VUNSPEC_* constants here instead of via define_constants.
10404 (VUNSPEC_PEM): New constant.
10405 (procedure_entry_mask): New insn.
10406 (prologue): New expander.
10407 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
10408 (vax_expand_prologue): Rename from vax_output_function_prologue;
10409 emit rtl instead of text.
10410 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
10411 (print_operand): Add 'x' prefix.
10412
10413 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
10414
10415 PR middle-end/47715
10416 * calls.c (precompute_register_parameters): Promote the function
10417 argument before checking non-legitimate constant.
10418
10419 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
10420
10421 PR tree-optimization/47654
10422 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
10423 (lst_do_strip_mine_loop): Return an int.
10424 (lst_do_strip_mine): Same.
10425 (scop_do_strip_mine): Same.
10426 (scop_do_block): Loop blocking should strip-mine at least two loops.
10427 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
10428 (scop_do_interchange): Same.
10429 * graphite-poly.h (scop_do_interchange): Update declaration.
10430 (scop_do_strip_mine): Same.
10431
10432 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
10433
10434 * graphite-clast-to-gimple.c (precision_for_value): Removed.
10435 (precision_for_interval): Removed.
10436 (gcc_type_for_interval): Use mpz_sizeinbase.
10437
10438 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
10439
10440 * graphite-ppl.h (value_max): Correct computation of max.
10441
10442 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
10443
10444 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
10445
10446 2011-07-05 Richard Guenther <rguenther@suse.de>
10447
10448 * c-decl.c (c_init_decl_processing): Defer building common
10449 tree nodes to c_common_nodes_and_builtins.
10450
10451 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
10452
10453 PR tree-optimization/49580
10454 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
10455 the loop's number of iterations.
10456 * tree-parloops.c (transform_to_exit_first_loop): Add the
10457 handling of the loop's number of iterations before the call
10458 to gimple_duplicate_sese_tail.
10459 Insert the stmt caclculating the new rhs of the loop's
10460 condition stmt to the preheader instead of iters_bb.
10461
10462 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
10463
10464 PR rtl-optimization/47449
10465 * fwprop.c (forward_propagate_subreg): Don't propagate hard
10466 register nor zero/sign extended hard register.
10467
10468 2011-07-05 Richard Guenther <rguenther@suse.de>
10469
10470 PR tree-optimization/49518
10471 PR tree-optimization/49628
10472 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
10473 irrelevant and invariant data-references.
10474 (vect_analyze_data_ref_access): For invariant loads clear the
10475 group association.
10476
10477 2011-07-04 Jakub Jelinek <jakub@redhat.com>
10478
10479 PR rtl-optimization/49619
10480 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
10481 pass VOIDmode as op0_mode to recursive call, and return temp even
10482 when different from tor, just if it is not IOR of the original
10483 PLUS arguments.
10484
10485 PR rtl-optimization/49472
10486 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
10487 negating MULT, negate the second operand instead of first.
10488 (simplify_binary_operation_1) <case MULT>: If one operand is
10489 a NEG and the other is MULT, don't attempt to optimize by negation
10490 of the MULT operand if it only moves the NEG operation around.
10491
10492 PR debug/49602
10493 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
10494 get_current_def return value if it can't be trusted to be
10495 the current value of the variable in the current bb.
10496
10497 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
10498
10499 PR target/49600
10500 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
10501 general register to memory for !TARGET_INTER_UNIT_MOVES.
10502
10503 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
10504
10505 PR target/44643
10506 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
10507 instead of TREE_READONLY.
10508
10509 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
10510
10511 * doc/extend.texi (AVR Built-in Functions): Update documentation
10512 of __builtin_avr_fmul*.
10513 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
10514 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
10515 * config/avr/avr.md (fmul): Rename to fmul_insn.
10516 (fmuls): Rename to fmuls_insn.
10517 (fmulsu): Rename to fmulsu_insn.
10518 (fmul,fmuls,fmulsu): New expander.
10519 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
10520 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
10521 * config/avr/libgcc.S (__fmul): New function.
10522 (__fmuls): New function.
10523 (__fmulsu,__fmulsu_exit): New function.
10524
10525 2011-07-04 Richard Guenther <rguenther@suse.de>
10526
10527 PR tree-optimization/49615
10528 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
10529 basic-block index check.
10530
10531 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
10532
10533 * longlong.h (count_leading_zeros, count_trailing_zeros,
10534 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
10535 resp. 64.
10536
10537 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
10538
10539 PR tree-optimization/49610
10540 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
10541 a basic block.
10542
10543 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
10544 Olivier Hainque <hainque@adacore.com>
10545 Nicolas Setton <setton@adacore.com>
10546
10547 * tree.h (TYPE_ARTIFICIAL): New flag.
10548 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
10549 the DIE of the type if it is artificial.
10550 (gen_array_type_die): Likewise.
10551 (gen_enumeration_type_die): Likewise.
10552 (gen_struct_or_union_type_die): Likewise.
10553 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
10554 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
10555
10556 2011-07-01 Jakub Jelinek <jakub@redhat.com>
10557
10558 * tree-object-size.c (pass_through_call): Handle
10559 BUILT_IN_ASSUME_ALIGNED.
10560
10561 2011-07-01 Martin Jambor <mjambor@suse.cz>
10562
10563 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
10564
10565 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
10566
10567 PR middle-end/48016
10568 * explow.c (update_nonlocal_goto_save_area): Use proper mode
10569 for stack save area.
10570 * function.c (expand_function_start): Likewise.
10571
10572 2011-07-01 Richard Guenther <rguenther@suse.de>
10573
10574 PR middle-end/49596
10575 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
10576 may have unknown refs.
10577
10578 2011-07-01 Kai Tietz <ktietz@redhat.com>
10579
10580 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
10581
10582 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10583
10584 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
10585 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
10586 (Specific, mips-sgi-irix6): Likewise.
10587
10588 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10589
10590 PR libmudflap/49549
10591 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
10592
10593 2011-07-01 Jakub Jelinek <jakub@redhat.com>
10594
10595 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
10596 [idx]= and [idx1 ... idx2]= before initializers if needed for
10597 array initializers.
10598
10599 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
10600
10601 * config.gcc (score-*-elf): Remove score7.o.
10602 * config/score/t-score-elf: Likewise.
10603 * config/score/score.c: Merge score7 to score.c and
10604 remove forwarding functions.
10605 * config/score/score7.c: Deleted.
10606 * config/score/score7.h: Deleted.
10607
10608 2011-07-01 Richard Guenther <rguenther@suse.de>
10609
10610 PR tree-optimization/49603
10611 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
10612
10613 2011-06-30 Martin Jambor <mjambor@suse.cz>
10614
10615 * tree-sra.c (struct access): Rename total_scalarization to
10616 grp_total_scalarization
10617 (completely_scalarize_var): New function.
10618 (sort_and_splice_var_accesses): Set total_scalarization in the
10619 representative access.
10620 (analyze_access_subtree): Propagate total scalarization accross the
10621 tree, no holes in totally scalarized trees, simplify coverage
10622 computation.
10623 (analyze_all_variable_accesses): Call completely_scalarize_var instead
10624 of completely_scalarize_record.
10625
10626 2011-06-30 Richard Henderson <rth@redhat.com>
10627
10628 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
10629 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
10630 * config/i386/i386.c: Don't include dwarf2out.h.
10631 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
10632 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
10633 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
10634 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
10635 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
10636
10637 2011-06-30 Richard Henderson <rth@redhat.com>
10638
10639 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
10640 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
10641 * final.c (final_scan_insn): Look for it, and invoke
10642 dwarf2out_frame_debug before the insn if found.
10643
10644 2011-06-30 Richard Henderson <rth@redhat.com>
10645
10646 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
10647 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
10648
10649 2011-06-30 Richard Henderson <rth@redhat.com>
10650
10651 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
10652 Define a vector of this type.
10653 (regs_saved_in_regs): Use a VEC.
10654 (num_regs_saved_in_regs): Remove.
10655 (compare_reg_or_pc): New.
10656 (record_reg_saved_in_reg): Split out from...
10657 (dwarf2out_flush_queued_reg_saves): ... here.
10658 (clobbers_queued_reg_save): Update for VEC.
10659 (reg_saved_in): Likewise.
10660 (dwarf2out_frame_debug_init): Likewise.
10661 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
10662 (dwarf2out_frame_debug_cfa_register): Likewise.
10663
10664 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
10665
10666 PR tree-optimization/49572
10667 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
10668 type of the RHS instead of that of the LHS for the expression type.
10669
10670 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
10671
10672 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
10673 unconditionally.
10674
10675 2011-06-30 Richard Guenther <rguenther@suse.de>
10676
10677 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
10678 * tree-ssa-structalias.c (create_variable_info_for): Do not
10679 add initial constraints for non-var-decls. Properly handle
10680 globals in other ltrans partitions.
10681 (intra_create_variable_infos): Manually create constraints for
10682 the fake no-alias parameter.
10683 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
10684 and assert there are no clones.
10685
10686 2011-06-30 Richard Guenther <rguenther@suse.de>
10687
10688 PR tree-optimization/46787
10689 * tree-data-ref.c (dr_address_invariant_p): Remove.
10690 (find_data_references_in_stmt): Invariant accesses are ok now.
10691 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
10692 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
10693 invariant loads.
10694
10695 2011-06-30 Martin Jambor <mjambor@suse.cz>
10696
10697 PR tree-optimization/49094
10698 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
10699 (build_accesses_from_assign): Use it.
10700
10701 2011-06-30 Jakub Jelinek <jakub@redhat.com>
10702
10703 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10704 handling of BUILT_IN_ASSUME_ALIGNED.
10705
10706 PR debug/49364
10707 * dwarf2out.c (output_abbrev_section): Don't return early
10708 if abbrev_die_table_in_use is 1.
10709 (dwarf2out_finish): Instead don't call output_abbrev_section
10710 nor emit abbrev_section_label in that case.
10711
10712 2011-06-30 Nick Clifton <nickc@redhat.com>
10713
10714 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
10715 for the V850E.
10716
10717 2011-06-30 Jakub Jelinek <jakub@redhat.com>
10718
10719 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10720 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
10721
10722 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
10723
10724 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
10725 both pattern and original statements if necessary.
10726 (vect_transform_loop): Likewise.
10727 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
10728 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
10729 Mark the pattern statement only if the original statement doesn't
10730 have its own uses.
10731 (process_use): Call vect_mark_relevant with additional parameter.
10732 (vect_mark_stmts_to_be_vectorized): Likewise.
10733 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
10734 (vect_analyze_stmt): Handle both pattern and original statements
10735 if necessary.
10736 (vect_transform_stmt): Don't store vectorized pattern statement
10737 in the original statement.
10738 (vect_is_simple_use_1): Use related pattern statement only if the
10739 original statement is irrelevant.
10740 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
10741
10742 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
10743
10744 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
10745 option.
10746 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
10747 entry.
10748 (TARGET_AVX128_OPTIMAL): New definition.
10749 * config/i386/i386.c (initial_ix86_tune_features): Initialize
10750 X86_TUNE_AVX128_OPTIMAL entry.
10751 (ix86_option_override_internal): Enable the generation
10752 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
10753 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
10754 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
10755
10756 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
10757
10758 PR tree-optimization/49539
10759 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
10760 names by means of stmt_references_abnormal_ssa_name.
10761 (associate_plusminus): Call can_propagate_from before propagating
10762 from definition statements.
10763 (ssa_forward_propagate_and_combine): Remove superfluous newline.
10764
10765 2011-06-29 Richard Guenther <rguenther@suse.de>
10766
10767 * doc/invoke.texi: Document -scev dump modifier.
10768 * tree-pass.h (TDF_SCEV): New dump flag.
10769 * tree-dump.c (dump_option_value_in): Add scev.
10770 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
10771 * tree-scalar-evolution.c: Likewise.
10772
10773 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
10774
10775 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
10776 (cxa_type_match): Correct declaration.
10777 (__gnu_unwind_pr_common): Reconstruct additional indirection
10778 when __cxa_type_match returns succeeded_with_ptr_to_base.
10779
10780 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10781
10782 PR rtl-optimization/49114
10783 * reload.c (struct replacement): Remove SUBREG_LOC member.
10784 (push_reload): Do not set it.
10785 (push_replacement): Likewise.
10786 (subst_reload): Remove dead code.
10787 (copy_replacements): Remove assertion.
10788 (copy_replacements_1): Do not handle SUBREG_LOC.
10789 (move_replacements): Likewise.
10790 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
10791 Detect subregs via recursive descent instead of via SUBREG_LOC.
10792
10793 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10794
10795 * config/avr/avr.c (avr_encode_section_info): Dispatch to
10796 default_encode_section_info.
10797
10798 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
10799
10800 PR tree-optimization/49545
10801 * builtins.c (get_object_alignment_1): Update function comment.
10802 Do not use DECL_ALIGN for functions, but test
10803 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
10804 * fold-const.c (get_pointer_modulus_and_residue): Don't check
10805 for functions here.
10806 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
10807
10808 2011-06-29 Jakub Jelinek <jakub@redhat.com>
10809
10810 PR debug/49567
10811 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
10812 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
10813
10814 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10815
10816 PR target/34734
10817 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
10818 about uninitialized data attributed 'progmem' from here...
10819 (avr_encode_section_info): ...to this new function.
10820 (TARGET_ENCODE_SECTION_INFO): New define.
10821 (avr_section_type_flags): For data in ".progmem.data", remove
10822 section flag SECTION_WRITE.
10823
10824 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10825
10826 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
10827 _xmulhisi3_exit.
10828 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
10829 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
10830 (__umulhisi3): Ditto.
10831 * config/avr/avr.md (mulhisi3): New insn expender.
10832 (umulhisi3): New insn expender.
10833 (*mulhisi3_call): New insn.
10834 (*umulhisi3_call): New insn.
10835
10836 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10837
10838 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
10839
10840 2011-06-28 Richard Henderson <rth@redhat.com>
10841
10842 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
10843 all code and arguments that handled pushes. Update all callers.
10844
10845 2011-06-28 Richard Henderson <rth@redhat.com>
10846
10847 * config/arm/arm.c (arm_output_function_prologue): Don't call
10848 thumb1_output_function_prologue.
10849 (arm_expand_prologue): Avoid dead store.
10850 (number_of_first_bit_set): Use ctz_hwi.
10851 (thumb1_emit_multi_reg_push): New.
10852 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
10853 to emit the entire prologue as rtl.
10854 (thumb1_output_interwork): Split out from
10855 thumb1_output_function_prologue.
10856 (thumb1_output_function_prologue): Remove.
10857 (arm_attr_length_push_multi): Handle thumb1.
10858 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
10859 (prologue_thumb1_interwork): New.
10860 (*push_multi): Allow thumb1; use push_mult_memory_operand.
10861 * config/arm/predicates.md (push_mult_memory_operand): New.
10862
10863 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
10864
10865 * config/sparc/sync.md (*stbar): Delete.
10866 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
10867
10868 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
10869
10870 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
10871
10872 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10873
10874 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
10875 (TARGET_64BIT_DEFAULT): Define.
10876 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
10877 of tm_file.
10878 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
10879
10880 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10881
10882 * common.opt (in_lto_p): New Variable entry.
10883 * flags.h (in_lto_p): Move to common.opt.
10884 * gcc.c: Include params.h.
10885 (set_option_handlers): Also use common_handle_option and
10886 target_handle_option.
10887 (main): Call global_init_params, finish_params and init_options_struct.
10888 * opts.c (debug_type_names): Move from toplev.c.
10889 (print_filtered_help): Access quiet_flag through opts pointer.
10890 (common_handle_option): Return early in the driver for some options.
10891 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
10892 opts pointer.
10893 * toplev.c (in_lto_p): Move to common.opt.
10894 (debug_type_names): Move to opts.c.
10895 * Makefile.in (OBJS): Remove opts.o.
10896 (OBJS-libcommon-target): Add opts.o.
10897 (gcc.o): Update dependencies.
10898
10899 2011-06-28 Kai Tietz <ktietz@redhat.com>
10900
10901 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
10902
10903 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10904
10905 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
10906 with '=' constraint modifier.
10907 (*divdf3_vfp): Likewise.
10908 ("*mulsf3_vfp"): Likewise.
10909 ("*muldf3_vfp"): Likewise.
10910 ("*mulsf3negsf_vfp"): Likewise.
10911 ("*muldf3negdf_vfp"): Likewise.
10912
10913 2011-06-28 Nick Clifton <nickc@redhat.com>
10914
10915 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
10916 relaxation when performing an incremental link.
10917
10918 2011-06-28 Kai Tietz <ktietz@redhat.com>
10919
10920 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
10921 within BB from last to first.
10922
10923 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10924
10925 * genattr-common.c: New. Based on genattr.c.
10926 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
10927 (MOSTLYCLEANFILES): Add insn-attr-common.h.
10928 (opts.o): Update dependencies.
10929 (.PRECIOUS): Add insn-attr-common.h.
10930 (simple_rtl_generated_h): Add insn-attr-common.h.
10931 (build/genattr-common.o): New.
10932 (genprogrtl): Add attr-common.
10933 * genattr.c (main): Include insn-attr-common.h. Don't generate
10934 definitions of DELAY_SLOTS or INSN_SCHEDULING.
10935 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
10936
10937 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
10938
10939 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
10940 avr-*-* and avr-*-rtems* targets.
10941
10942 * config/avr/elf.h: New file.
10943 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
10944 (TARGET_ASM_SELECT_SECTION): Define.
10945 (INIT_SECTION_ASM_OP): Undefine.
10946 (FINI_SECTION_ASM_OP): Undefine.
10947 (READONLY_DATA_SECTION_ASM_OP): Undefine.
10948 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
10949 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
10950 * config/avr/avr.h:
10951 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
10952 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
10953 (MAX_OFILE_ALIGNMENT): Move to elf.h.
10954 (STRING_LIMIT): Move to elf.h.
10955 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
10956 (ASM_DECLARE_OBJECT_NAME): Remove.
10957 (ESCAPES): Remove.
10958 (ASM_OUTPUT_SKIP): Remove.
10959 (DWARF2_DEBUGGING_INFO): Remove.
10960 (OBJECT_FORMAT_ELF): Remove.
10961 (USER_LABEL_PREFIX): Remove.
10962 (ASM_OUTPUT_EXTERNAL): Remove.
10963 (ASM_OUTPUT_ASCII): Remove.
10964 (TYPE_ASM_OP): Remove.
10965 (SIZE_ASM_OP): Remove.
10966 (WEAK_ASM_OP): Remove.
10967 (STRING_ASM_OP): Remove.
10968 (SET_ASM_OP): Remove.
10969 (ASM_WEAKEN_LABEL): Remove.
10970 (TYPE_OPERAND_FMT): Remove.
10971 (ASM_DECLARE_FUNCTION_SIZE): Remove.
10972 (ASM_FINISH_DECLARE_OBJECT): Remove.
10973 (NO_DOLLAR_IN_LABEL): Remove.
10974 (ASM_GENERATE_INTERNAL_LABEL): Remove.
10975 (ASM_OUTPUT_CASE_LABEL): Remove.
10976 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
10977 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
10978 (gas_output_ascii): Remove.
10979 (gas_output_limited_string): Remove.
10980 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
10981 * config/avr/avr-protos.h
10982 (gas_output_ascii): Remove prototye.
10983 (gas_output_limited_string): Remove prototype.
10984
10985 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
10986
10987 PR target/48637
10988 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
10989 asm operands.
10990
10991 2011-06-27 Jan Hubicka <jh@suse.cz>
10992
10993 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
10994 node instead of references in node.
10995
10996 2011-06-27 Richard Henderson <rth@redhat.com>
10997
10998 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
10999 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
11000 inside ifdef.
11001
11002 2011-06-27 Jakub Jelinek <jakub@redhat.com>
11003
11004 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
11005
11006 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
11007 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
11008 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
11009 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
11010 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
11011 (evaluate_stmt, execute_fold_all_builtins): Handle
11012 BUILT_IN_ASSUME_ALIGNED.
11013 * tree-ssa-dce.c (propagate_necessity): Likewise.
11014 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11015 call_may_clobber_ref_p_1): Likewise.
11016 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
11017 (expand_builtin_assume_aligned): New function.
11018 * doc/extend.texi (__builtin_assume_aligned): Document.
11019
11020 PR debug/49544
11021 * cselib.c (promote_debug_loc): If cselib_preserve_constants
11022 and l has two DEBUG_INSN owned locs instead of just one, adjust
11023 the second location's setting_insn too.
11024
11025 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11026
11027 PR libmudflap/38738
11028 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
11029
11030 2011-06-27 Nick Clifton <nickc@redhat.com>
11031
11032 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
11033 bit position of highest bit set into a count of the high zero bits.
11034
11035 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
11036
11037 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
11038
11039 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
11040
11041 PR lto/48492
11042 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
11043 to a NULL parent.
11044
11045 2011-06-27 Richard Guenther <rguenther@suse.de>
11046
11047 PR tree-optimization/49394
11048 * passes.c (execute_one_pass): Restore current_pass after
11049 applying IPA transforms.
11050
11051 2011-06-27 Kai Tietz <ktietz@redhat.com>
11052
11053 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
11054 out of type precision after operation.
11055 (find_bswap): Take for limit value the integer auto-promotion
11056 into account.
11057
11058 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
11059
11060 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
11061 forward scan as well.
11062
11063 2011-06-27 Tristan Gingold <gingold@adacore.com>
11064
11065 PR target/44241
11066 * config/vms/vms-protos.h: New file.
11067 * config/vms/vms-crtlmap.map: New file.
11068 * config/vms/vms.c: New file.
11069 * config/vms/make-crtlmap.awk: New file.
11070 * config/vms/vms-crtl.h: File removed.
11071 * config/vms/vms-crtl-64.h: File removed.
11072 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
11073 * config/alpha/vms64.h: Do not include vms-crtl-64.h
11074 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
11075 clear some builtins on VMS. Calls vms_patch_builtins.
11076 (avms_asm_output_external): Remove.
11077 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
11078 (struct crtl_name_spec): Remove
11079 (DO_CTRL_NAMES): Remove.
11080 * config/ia64/vms.h (struct crtl_name_spec): Remove
11081 (DO_CTRL_NAMES): Remove.
11082 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
11083 clear some builtins on VMS. Calls vms_patch_builtins.
11084 (ia64_asm_output_external): Remove DO_CRTL_NAME.
11085 * config/ia64/vms64.h: Do not include vms-crtl-64.h
11086 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
11087
11088 2011-06-27 Tristan Gingold <gingold@adacore.com>
11089
11090 * config/alpha/alpha.c (alpha_end_function): Always generate .end
11091 directive on VMS.
11092
11093 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
11094
11095 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
11096 the function receives nonlocal gotos.
11097
11098 2011-06-27 Richard Guenther <rguenther@suse.de>
11099
11100 PR tree-optimization/49536
11101 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
11102 For non-scalar inner types use a scalar type according to
11103 the scalar inner mode.
11104
11105 2011-06-27 Richard Guenther <rguenther@suse.de>
11106
11107 PR tree-optimization/49365
11108 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
11109
11110 2011-06-27 Richard Guenther <rguenther@suse.de>
11111
11112 PR tree-optimization/49169
11113 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
11114 the alignment of function decls.
11115
11116 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
11117
11118 PR target/47997
11119 * config/darwin.c (darwin_mergeable_string_section): Place string
11120 constants in '.cstring' rather than '.const' when CF/NSStrings are
11121 active.
11122
11123 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
11124
11125 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
11126 (emit_save_register_window): Likewise.
11127 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
11128 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
11129 Swap back %o7/%i7 in register naming.
11130
11131 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
11132
11133 PR driver/49371
11134 * config/darwin.c (darwin_override_options): Improve warning when
11135 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
11136 is given with fpie/fPIE.
11137 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
11138 * config/darwin9.h (PIE_SPEC): New.
11139
11140 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
11141
11142 * timevar.c (timevar_print): Increase width for display of timevar
11143 name.
11144
11145 2011-06-24 Jakub Jelinek <jakub@redhat.com>
11146
11147 PR c++/46400
11148 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
11149 instead of TYPE_CHAIN for chain_next for types.
11150
11151 2011-06-24 Richard Henderson <rth@redhat.com>
11152
11153 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
11154 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
11155 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
11156 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
11157 (sparc_flat_expand_prologue): Emit individual instructions
11158 instead of one of the above.
11159
11160 2011-06-24 Easwaran Raman <eraman@google.com>
11161
11162 PR rtl-optimization/49429
11163 PR target/49454
11164 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
11165 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
11166 used to copy y into x.
11167 * calls.c (initialize_argument_information): Mark
11168 an argument addressable if it is passed by invisible reference.
11169 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
11170 if it is passed by reference.
11171
11172 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
11173
11174 PR rtl-optimization/49504
11175 * rtlanal.c (nonzero_bits1): Properly handle addition or
11176 subtraction of a pointer in Pmode if pointers extend unsigned.
11177 (num_sign_bit_copies1): Likewise.
11178
11179 2011-06-24 Martin Jambor <mjambor@suse.cz>
11180
11181 PR tree-optimizations/49516
11182 * tree-sra.c (sra_modify_assign): Choose the safe path for
11183 aggregate copies if we also did scalar replacements.
11184
11185 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11186
11187 PR target/49335
11188 * config/arm/predicates.md (add_operator): New.
11189 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
11190
11191 2011-06-24 Andi Kleen <ak@linux.intel.com>
11192
11193 * tree-sra.c (type_internals_preclude_sra_p): Add msg
11194 parameter. Split up ifs and report reason in *msg.
11195 (reject): Add.
11196 (find_var_candiate): Add msg variable.
11197 Split up ifs and report reason to reject.
11198 (find_param_candidates): Add msg variable.
11199 Pass msg to type_internals_preclude_sra_p.
11200
11201 2011-06-23 Jeff Law <law@redhat.com>
11202
11203 PR middle-end/48770
11204 * reload.h (reload): Change to return a bool.
11205 * ira.c (ira): If requested by reload, run a fast DCE pass after
11206 reload has completed. Fix comment typo.
11207 * reload1.c (need_dce): New file scoped static.
11208 (reload): Set reload_completed here. Return whether or not a DCE
11209 pass after reload is needed.
11210 (delete_dead_insn): Set need_dce as needed.
11211
11212 PR middle-end/49465
11213 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
11214 to detect threading through joiner block. If there was already
11215 an edge to the new target, then do not change the PHI nodes.
11216
11217 2011-06-23 Jakub Jelinek <jakub@redhat.com>
11218
11219 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
11220 get_pointer_alignment to see if base isn't sufficiently aligned.
11221
11222 2011-06-23 Jan Hubicka <jh@suse.cz>
11223
11224 PR tree-optimize/49373
11225 * tree-pass.h (all_late_ipa_passes): Declare.
11226 * cgraphunit.c (init_lowered_empty_function): Fix properties.
11227 (cgraph_optimize): Execute late passes; remove unreachable funcions
11228 after materialization.
11229 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
11230 LTOing.
11231 * passes.c (all_late_ipa_passes): Declare.
11232 (dump_passes, register_pass): Handle late ipa passes.
11233 (init_optimization_passes): Move ipa_pta to late passes; schedule
11234 fixup_cfg at beggining of all_passes.
11235 (apply_ipa_transforms): New function.
11236 (execute_one_pass): When doing simple ipa pass, apply all transforms.
11237
11238 2011-06-23 Joseph Myers <joseph@codesourcery.com>
11239
11240 * params.c: Include common/common-target.h. Don't include tm.h.
11241 (lang_independent_params): Move from toplev.c.
11242 (global_init_params): New.
11243 * params.h (global_init_params): Declare.
11244 * target.def (default_params): Move to common-target.def.
11245 * toplev.c (lang_independent_options): Remove.
11246 (lang_independent_params): Move to params.c.
11247 (general_init): Use global_init_params.
11248 * common/common-target.def (option_default_params): Move from
11249 target.def.
11250 * common/config/ia64/ia64-common.c: Include params.h.
11251 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11252 from ia64.c.
11253 * common/config/rs6000/rs6000-common.c: Include params.h.
11254 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11255 from rs6000.c.
11256 * common/config/sh/sh-common.c: Include params.h.
11257 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11258 from sh.c.
11259 * common/config/spu/spu-common.c: Include params.h.
11260 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11261 from spu.c.
11262 * config/ia64/ia64.c (ia64_option_default_params,
11263 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
11264 * config/rs6000/rs6000.c (rs6000_option_default_params,
11265 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
11266 * config/sh/sh.c (sh_option_default_params,
11267 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
11268 * config/spu/spu.c (spu_option_default_params,
11269 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
11270 * Makefile.in (OBJS): Remove params.o.
11271 (OBJS-libcommon-target): Add params.o.
11272 (params.o, $(common_out_object_file)): Update dependencies.
11273 * doc/tm.texi: Regenerate.
11274
11275 2011-06-23 Alan Modra <amodra@gmail.com>
11276
11277 PR bootstrap/49383
11278 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
11279 invocation for 2011-06-09 changes.
11280
11281 2011-06-22 Jakub Jelinek <jakub@redhat.com>
11282
11283 PR libgomp/49490
11284 * omp-low.c (expand_omp_for_static_nochunk): Only
11285 use n ceil/ nthreads size for the first n % nthreads threads in the
11286 team instead of all threads except for the last few ones which
11287 get less work or none at all.
11288
11289 PR debug/49496
11290 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
11291 uses.
11292
11293 2011-06-22 Richard Guenther <rguenther@suse.de>
11294
11295 PR tree-optimization/49493
11296 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
11297 Refer to the alias target of variables.
11298 (associate_varinfo_to_alias_1): Remove.
11299 (ipa_pta_execute): Do not associate aliases with anything.
11300 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
11301 (cgraph_function_node): Likewise.
11302 (cgraph_function_or_thunk_node): Likewise.
11303 (varpool_variable_node): Likewise.
11304
11305 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
11306
11307 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
11308 * config.gcc (arm*-*-linux*): Default to gnu tls.
11309 (arm*-*-*): Add --with-tls option.
11310 (all_defaults): Add 'tls'.
11311
11312 2011-06-22 Richard Henderson <rth@redhat.com>
11313
11314 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
11315 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
11316 (dwarf2out_frame_debug_cfa_window_save): Rename from
11317 dwarf2out_window_save; make static.
11318 * tree.h (dwarf2out_window_save): Don't declare.
11319
11320 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
11321 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
11322 (emit_save_register_window): Rename from gen_save_register_window;
11323 emit the insn and add REG_CFA_* notes.
11324 (sparc_expand_prologue): Update to match.
11325 * config/sparc/sparc.md (save_register_window_1): Simplify from
11326 save_register_window<P:mode>.
11327
11328 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
11329
11330 PR target/49497
11331 * config/i386/i386.md (*lea_general_2): Always allow SImode.
11332 (*lea_general_2_zext): Likewise.
11333 (imul to lea peepholes): Use const359_operand and check
11334 TARGET_PARTIAL_REG_STALL.
11335
11336 * config/i386/predicates.md (const359_operand): New.
11337
11338 2011-06-22 Michael Matz <matz@suse.de>
11339
11340 * cgraphunit.c (assemble_thunk): Use correct return type.
11341
11342 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
11343 Dmitry Melnik <dm@ispras.ru>
11344
11345 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
11346 (neon_output_shift_immediate): Ditto.
11347 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
11348 prototype.
11349 (neon_output_shift_immediate): Ditto.
11350 * config/arm/neon.md (vashl<mode>3): Modified constraint.
11351 (vashr<mode>3_imm): New insn pattern.
11352 (vlshr<mode>3_imm): Ditto.
11353 (vashr<mode>3): Modified constraint.
11354 (vlshr<mode>3): Ditto.
11355 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
11356 predicate.
11357 (imm_for_neon_rshift_operand): Ditto.
11358 (imm_lshift_or_reg_neon): Ditto.
11359 (imm_rshift_or_reg_neon): Ditto.
11360
11361 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
11362
11363 2011-06-22 Jakub Jelinek <jakub@redhat.com>
11364
11365 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
11366 builtin calls even if likelyvalue is not CONSTANT.
11367 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
11368 Return get_value_for_expr of first operand
11369 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
11370 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
11371 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
11372 their non-checking counterparts.
11373 (call_may_clobber_ref_p_1): Likewise.
11374 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
11375 like their non-checking counterparts.
11376 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11377 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
11378 like their non-checking counterparts.
11379 (find_func_clobbers): Likewise.
11380 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
11381 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
11382
11383 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
11384 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
11385 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
11386 of base type reference as argument.
11387 (resolve_addr_in_expr): Likewise. Fix keep computation.
11388 (convert_descriptor_to_signed): Renamed to...
11389 (convert_descriptor_to_mode): ... this. For wider types convert to
11390 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
11391 (typed_binop): New function.
11392 (scompare_loc_descriptor, ucompare_loc_descriptor,
11393 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
11394 default to unsigned type instead of signed.
11395
11396 PR debug/47858
11397 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
11398 (gimple_build_debug_source_bind_stat): New prototype.
11399 (gimple_build_debug_source_bind): Define.
11400 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
11401 gimple_debug_source_bind_get_value,
11402 gimple_debug_source_bind_get_value_ptr,
11403 gimple_debug_source_bind_set_var,
11404 gimple_debug_source_bind_set_value): New inlines.
11405 * gimple.c (gimple_build_debug_source_bind_stat): New function.
11406 * gimple-pretty-print.c (dump_gimple_debug): Handle
11407 GIMPLE_DEBUG_SOURCE_BIND.
11408 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
11409 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
11410 * tree-parloops.c (eliminate_local_variables,
11411 separate_decls_in_region): Likewise.
11412 (separate_decls_in_region_debug): Renamed from
11413 separate_decls_in_region_debug_bind. Handle
11414 gimple_debug_source_bind_p.
11415 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
11416 prototypes.
11417 (DECL_HAS_DEBUG_ARGS_P): Define.
11418 (struct tree_function_decl): Add has_debug_args_flag field.
11419 * tree.c (debug_args_for_decl): New variable.
11420 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
11421 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
11422 (rewrite_debug_stmt_uses): New function.
11423 (rewrite_stmt): Use it to rewrite debug stmt uses.
11424 * rtl.def (DEBUG_PARAMETER_REF): New.
11425 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
11426 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
11427 DEBUG_PARAMETER_REF.
11428 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
11429 * print-rtl.c (print_rtx): Likewise.
11430 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
11431 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
11432 debug stmts in the first bb.
11433 * tree-inline.c (remap_ssa_name): If remapping default def
11434 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
11435 a source bind debug stmt.
11436 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
11437 (maybe_move_debug_stmts_to_successors): Likewise.
11438 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
11439 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
11440 debug args vector from old_decl to new_decl.
11441 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
11442 or modified parameters, add debug bind stmts before call
11443 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
11444 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
11445 on DECL_DEBUG_EXPRs from debug args vector.
11446 (expand_debug_source_expr): New function.
11447 (expand_debug_locations): Use it for source bind insns.
11448 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
11449 * var-tracking.c (prepare_call_arguments): Add debug args
11450 to call_arguments if any.
11451 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
11452 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
11453 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
11454 (get_ref_die_offset, parameter_ref_descriptor): New functions.
11455 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
11456 (gen_subprogram_die): Handle parameters identified by
11457 DEBUG_PARAMETER_REF.
11458
11459 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
11460
11461 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
11462 * doc/install.texi (Configuration): Document --with-tls.
11463 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
11464 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
11465 (arm_tls_descseq_addr): New.
11466 (legitimize_tls_address): Add tlsdesc support.
11467 (arm_cannot_copy_insn_p): Check for tlscall.
11468 (arm_emit_tls_decoration): Likewise.
11469 * config/arm/arm.h (TARGET_GNU2_TLS): New.
11470 (OPTION_DEFAULT_SPECS): Add with-tls support.
11471 * config/arm/arm.md (R1_REGNUM): Define.
11472 (tlscall): New.
11473 * config/arm/arm.opt (tls_type): New enumeration type and values.
11474 (mtls-dialect): New switch.
11475 * config/arm/arm-opts.h (enum tls_type): New.
11476
11477 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
11478
11479 * attribs.c (register_attribute): Added assert to check that all
11480 attribute specs are registered with a name that is not empty and
11481 does not start with '_'.
11482 (decl_attributes): Avoid the lookup of the "naked" attribute spec
11483 if the function has no attributes.
11484 * tree.c (is_attribute_with_length_p): Removed.
11485 (is_attribute_p): Removed.
11486 (private_is_attribute_p): New.
11487 (private_lookup_attribute): New.
11488 (lookup_attribute): Removed.
11489 (lookup_ident_attribute): New.
11490 (remove_attribute): Require the first argument to be in the form
11491 'text', not '__text__'. Updated asserts.
11492 (merge_attributes): Use lookup_ident_attributes instead of
11493 lookup_attribute.
11494 (merge_dllimport_decl_attributes): Use remove_attribute.
11495 (attribute_list_contained): Likewise.
11496 (attribute_list_equal): Immediately return 1 if the arguments are
11497 identical pointers.
11498 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
11499 'int'. Require the first argument to be in the form 'text', not
11500 '__text__'. Require the second argument to be an identifier.
11501 (lookup_attribute): Made inline. Require the first argument to be
11502 in the form 'text', not '__text__'.
11503 (private_is_attribute_p, private_lookup_attribute): New.
11504 Updated comments.
11505
11506 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
11507
11508 * builtins.c: Add sync_ or SYNC__ to builtin names.
11509 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
11510 * omp-low.c: Add sync_ or SYNC__ to builtin names.
11511
11512 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
11513
11514 PR target/33049
11515 * config/avr/avr.md (extzv): New expander.
11516 (*extzv): New insn.
11517 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
11518 * config/avr/constraints.md (C04): New constraint.
11519 * doc/md.texi (Machine Constraints): Document it.
11520
11521 2011-06-21 Jakub Jelinek <jakub@redhat.com>
11522
11523 PR middle-end/49489
11524 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
11525 unsignedp argument instead of 1 for clrsb_optab.
11526 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
11527 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
11528 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
11529 * optabs.c (widen_leading): Call widen_operand and expand_unop
11530 with 0 as unsignedp argument instead of 1 for clrsb_optab.
11531 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
11532
11533 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
11534
11535 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
11536
11537 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
11538
11539 * gensupport.c (add_define_attr): New static function.
11540 (is_predicable): Allow multi-alternative lists for the "predicable"
11541 attribute.
11542 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
11543 (process_one_cond_exec): Call alter_attrs_for_insn.
11544 * doc/md.texi (Defining Attributes): Mention some standard names.
11545 (Conditional Execution): Update documentation for "predicable".
11546
11547 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
11548 __builtin_clrsbll): Document.
11549 * doc/rtl.texi (clrsb): New entry.
11550 * optabs.c (widen_leading): Renamed from widen_clz. New argument
11551 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
11552 (expand_unop): Handle clrsb_optab.
11553 (init_optabs): Initialize it.
11554 * optabs.h (enum optab_index): New entry OTI_clrsb.
11555 (clrsb_optab): Define.
11556 * genopinit.c (optabs): Add an entry for it.
11557 * builtins.c (expand_builtin): Handle clrsb builtin functions.
11558 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
11559 BUILT_IN_CLRSBLL): New.
11560 * rtl.def (CLRSB): New code.
11561 * dwarf2out.c (mem_loc_descriptor): Handle it.
11562 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11563 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
11564 and popcount.
11565 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
11566 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
11567 (__ctzDI2): Move declaration.
11568 * config/bfin/bfin.md (clrsbsi2): New expander.
11569 (signbitssi2): Use the CLRSB rtx.
11570 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
11571 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
11572
11573 2011-06-21 Richard Guenther <rguenther@suse.de>
11574
11575 * ipa-inline-transform.c (inline_transform): Fix previous change.
11576
11577 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
11578
11579 PR tree-optimization/49478
11580 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
11581 with constant operand.
11582
11583 2011-06-21 Richard Guenther <rguenther@suse.de>
11584
11585 * ipa-inline-transform.c (inline_transform): Fix typo.
11586
11587 2011-06-21 Richard Guenther <rguenther@suse.de>
11588
11589 PR tree-optimization/49483
11590 * tree-vect-stmts.c (vectorizable_assignment): Also handle
11591 VIEW_CONVERT_EXPR conversions.
11592
11593 2011-06-21 Joseph Myers <joseph@codesourcery.com>
11594
11595 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
11596 * config/avr/avr-tables.opt: New file (generated).
11597 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
11598 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
11599 avr-mcus.def.
11600 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
11601 (avr_option_override): Don't process -mmcu= argument here. Set
11602 avr_current_device using avr_mcu_index.
11603 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
11604 * config/avr/avr.opt (mmcu=): Use Enum.
11605 * config/avr/t-avr (avr-devices.o): Update dependencies.
11606 ($(srcdir)/config/avr/avr-tables.opt): New.
11607 * target.def (help): Remove.
11608 * doc/tm.texi.in (TARGET_HELP): Remove.
11609 * doc/tm.texi: Regenerate.
11610 * opts.c: Don't include target.h.
11611 (common_handle_option): Don't call targetm.help.
11612 * system.h (TARGET_HELP): Poison.
11613 * Makefile.in (opts.o): Update dependencies.
11614
11615 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11616
11617 * config/usegld.h: New file.
11618 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
11619 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
11620 (LIB_SPEC): Likewise. Search /lib.
11621 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
11622 (RDYNAMIC_SPEC): Handle GNU ld.
11623 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
11624 Define.
11625 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
11626 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
11627 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
11628 (STACK_CHECK_STATIC_BUILTIN): Define.
11629 * config/sol2.opt (compat-bsd): Remove.
11630 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
11631 * config/sol2-bi.h: New file.
11632 * config/sol2-gld.h: Remove.
11633 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
11634 (NO_DBX_BNSYM_ENSYM): Remove.
11635 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
11636 (STACK_CHECK_STATIC_BUILTIN): Remove.
11637 Test USE_GLD instead of TARGET_GNU_LD.
11638 * config/i386/sol2-10.h: Rename to ...
11639 * config/i386/sol2-bi.h .. this.
11640 (SUBTARGET_EXTRA_SPECS): Redefine.
11641 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
11642 (MULTILIB_DEFAULTS): Remove.
11643 (DEFAULT_ARCH32_P): Define.
11644 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
11645 (ARCH64_SUBDIR): Define.
11646 Test USE_GLD instead of TARGET_GNU_LD.
11647 (I386_EMULATION): Rename to ...
11648 (ARCH32_EMULATION): ... this.
11649 (X86_64_EMULATION): Rename to ...
11650 (ARCH64_EMULATION): ... this.
11651 (TARGET_LD_EMULATION): Remove.
11652 (LINK_ARCH_SPEC): Remove.
11653 * config/i386/sol2-gas.h: Remove.
11654 * config/i386/t-sol2-10: Rename to ...
11655 * config/i386/t-sol2-64: ... this.
11656 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
11657 (AS_SPARC64_FLAG): Define.
11658 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
11659 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
11660 depending on TARGET_CPU_DEFAULT.
11661 (CPP_CPU_SPEC): Redefine.
11662 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
11663 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
11664 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
11665 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
11666 ASM_ARCH_DEFAULT_SPEC): Redefine.
11667 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
11668 LINK_ARCH_DEFAULT_SPEC.
11669 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
11670 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
11671 (ARCH64_SUBDIR): Define.
11672 (LINK_ARCH64_SPEC): Redefine.
11673 (CC1_SPEC): Redefine.
11674 (OPTION_DEFAULT_SPECS): Redefine.
11675 (MULTILIB_DEFAULTS): Define.
11676 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
11677 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
11678 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
11679 (NO_DBX_BNSYM_ENSYM): Remove.
11680 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
11681 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
11682 (TARGET_ASM_NAMED_SECTION): Likewise.
11683 (STACK_CHECK_STATIC_BUILTIN): Remove.
11684 * config/sparc/sol2-bi.h: Remove.
11685 * config/sparc/sol2-gas-bi.h: Remove.
11686 * config/sparc/sol2-gas.h: Remove.
11687 * config/sparc/sol2-gld-bi.h: Remove.
11688 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
11689 common parts ...
11690 (*-*-solaris2*): ... here.
11691
11692 2011-06-21 Christian Bruel <christian.bruel@st.com>
11693
11694 PR other/43564
11695 * ipa-inline.c (can_inline_edge_p): Check
11696 !DECL_DISREGARD_INLINE_LIMITS.
11697
11698 2011-06-21 Christian Bruel <christian.bruel@st.com>
11699
11700 PR middle-end/49139
11701 * cgraphunit.c (process_function_and_variable_attributes): warn when
11702 always_inline functions that are not inline.
11703 * ipa-inline-transform.c (inline_transform): Always call
11704 optimize_inline.
11705 * tree-inline.c (tree_inlinable_function_p): Use error instead
11706 of sorry.
11707 (expand_call_inline): Likewise.
11708
11709 2011-06-21 Jakub Jelinek <jakub@redhat.com>
11710
11711 * Makefile.in (dg_target_exps): Set.
11712 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
11713 instead of 7, try to divide it more evenly.
11714
11715 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
11716
11717 PR target/49089
11718 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
11719 (avx256_split_unaligned_store): New definition.
11720 (ix86_option_override_internal): Enable avx256 unaligned load/store
11721 splitting only when avx256_split_unaligned_load/store is set.
11722
11723 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
11724
11725 * regrename.c (scan_rtx_reg): Handle the case where we write to an
11726 open chain in a smaller mode without failing the entire block.
11727
11728 2011-06-21 Alan Modra <amodra@gmail.com>
11729
11730 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
11731 CONST high part large-toc address.
11732 (rs6000_tls_referenced_p): Make static.
11733 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
11734
11735 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11736
11737 PR target/49385
11738 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
11739 one of the operands is a register.
11740
11741 2011-06-20 Kai Tietz <ktietz@redhat.com>
11742
11743 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
11744 operations in combination with binary and.
11745
11746 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
11747
11748 * regrename.c (do_replace): Don't update notes.
11749
11750 2011-06-20 Alan Modra <amodra@gmail.com>
11751
11752 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
11753 of toc-relative address in CONST.
11754 (rs6000_delegitimize_address): Recognize changed address.
11755 (rs6000_legitimize_reload_address): Likewise.
11756 (rs6000_emit_move): Don't force these constants to memory.
11757 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
11758 toc-relative address in CONST.
11759 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
11760 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
11761
11762 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
11763
11764 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
11765 (count_trailing_zeros): Likewise.
11766
11767 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
11768
11769 PR other/49325
11770 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
11771 .init_array can be used with .ctors on targets.
11772 * configure: Regenerated.
11773
11774 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
11775
11776 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
11777 if the element type is volatile.
11778
11779 2011-06-18 Jan Hubicka <jh@suse.cz>
11780
11781 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
11782 extra name aliases.
11783 (lto_symtab_resolve_can_prevail_p): Likewise.
11784 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
11785 * cgraphbuild.c (record_reference): Remove extra body alias code.
11786 (mark_load): Likewise.
11787 (mark_store): Likewise.
11788 * cgraph.h (varpool_node): Remove extra_name filed;
11789 add alias_of and extraname_alias.
11790 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
11791 (varpool_alias_aliased_node): New inline function.
11792 (varpool_variable_node): New function.
11793 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
11794 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
11795 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
11796 (input_varpool_node): Likewise.
11797 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
11798 (varpool_externally_visible_p): Remove extra body alias code.
11799 (function_and_variable_visibility): Likewise.
11800 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
11801 (ipa_pta_execute): Use it.
11802 * varpool.c (varpool_remove_node): Remove extra name alias code.
11803 (varpool_mark_needed_node): Likewise.
11804 (varpool_analyze_pending_decls): Analyze aliases.
11805 (assemble_aliases): New functoin.
11806 (varpool_assemble_decl): Use it.
11807 (varpool_create_variable_alias): New function.
11808 (varpool_extra_name_alias): Rewrite.
11809 (varpool_for_node_and_aliases): New function.
11810
11811 2011-06-18 Jakub Jelinek <jakub@redhat.com>
11812
11813 PR target/49411
11814 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
11815 last_arg_constant and last argument doesn't match its predicate,
11816 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
11817 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
11818 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
11819 spelling of error message.
11820 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
11821 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
11822 const_0_to_255_operand instead of const_int_operand.
11823
11824 Revert:
11825 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
11826
11827 * config/i386/sse.md (blendbits): Remove mode attribute.
11828 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
11829 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
11830 Check integer value of operand 3 in insn constraint.
11831
11832 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
11833
11834 PR rtl-optimization/48542
11835 * reload.c (find_equiv_reg): Stop looking when finding a
11836 setjmp-type call.
11837 * reload1.c (reload_as_needed): Invalidate all reload
11838 registers when crossing a setjmp-type call.
11839
11840 2011-06-16 Jeff Law <law@redhat.com>
11841
11842 * tree-ssa-threadupdate.c (struct redirection_data): New field
11843 intermediate_edge.
11844 (THREAD_TARGET2): Define.
11845 (redirection_data_eq): Also check that the intermediate edge is equal.
11846 (lookup_redirection_data): Drop useless argument. Extract the
11847 outgoing_edge and intermediate edge from E. Callers updated.
11848 (copy_phi_args, update_destination_phis): New functions.
11849 (fix_duplicate_block_edges): Likewise.
11850 (create_edge_and_update_destination_phis): Duplicate all the edges
11851 hung off e->aux. Use copy_phi_args.
11852 (create_duplicates): Use fix_duplicate_block_edges.
11853 (fixup_template_block): Likewise.
11854 (redirect_edges): If necessary, redirect the joiner block's incoming
11855 edge to the duplicate of the joiner block.
11856 (thread_block): Don't muck up loops when threading through a joiner
11857 block.
11858 (thread_through_loop_header): Handle threading through a joiner block.
11859 (mark_threaded_blocks, register_jump_thread): Likewise.
11860 * tree-flow.h (register_jump_thread): Add new argument. Callers
11861 updated.
11862 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
11863 (thread_across_edge): Handle threading through a joiner block.
11864
11865 2011-06-16 Martin Jambor <mjambor@suse.cz>
11866
11867 PR tree-optimization/49343
11868 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
11869 calculate offset, provide 2nd operand for the new COMPONENT_REF.
11870
11871 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
11872
11873 * config/darwin-protos.h (machopic_select_rtx_section): Move to
11874 inside RTX_CODE ifdef.
11875
11876 2011-06-16 Tom de Vries <tom@codesourcery.com>
11877
11878 PR target/45098
11879 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
11880 Disallow NULL pointer for pointer arithmetic.
11881
11882 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11883
11884 PR target/49398
11885 Revert.
11886 2011-06-10 Wei Guozhi <carrot@google.com>
11887
11888 PR target/45335
11889 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
11890 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
11891 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
11892 related peephole2.
11893 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
11894 related peephole2.
11895 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
11896 (arm_legitimate_ldrd_p): New prototype.
11897 (arm_output_ldrd): New prototype.
11898 * config/arm/arm.c (arm_check_ldrd_operands): New function.
11899 (arm_legitimate_ldrd_p): New function.
11900 (arm_output_ldrd): New function.
11901
11902 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
11903
11904 PR middle-end/46500
11905 * doc/tm.texi.in: Update Copyright date.
11906 * doc/tm.texi: Regenerate.
11907 * targhooks.c (default_setup_incoming_varargs): Replace
11908 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11909 (default_pretend_outgoing_varargs_named): Likewise.
11910 (hook_pass_by_reference_must_pass_in_stack): Likewise.
11911 (hook_callee_copies_named): Likewise.
11912 (default_function_arg_advance): Likewise.
11913 (default_function_arg): Likewise.
11914 (default_function_incoming_arg): Likewise.
11915 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
11916 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
11917 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
11918 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11919 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
11920 * targhooks.h (default_setup_incoming_varargs): Likewise.
11921 (default_pretend_outgoing_varargs_named): Likewise.
11922 (hook_pass_by_reference_must_pass_in_stack): Likewise.
11923 (hook_callee_copies_named): Likewise.
11924 (default_function_arg_advance): Likewise.
11925 (default_function_arg): Likewise.
11926 (default_function_incoming_arg): Likewise.
11927 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
11928 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
11929 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
11930 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11931 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
11932 * target.def (pass_by_reference): Likewise.
11933 (setup_incoming_varargs, strict_argument_naming): Likewise.
11934 (pretend_outgoing_varargs_named, callee_copies): Likewise.
11935 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
11936 (function_incoming_arg): Likewise.
11937 * target.h: Don't include "tm.h" .
11938 (cumulative_args_t): New typedef.
11939 [GCC_TM_H] (get_cumulative_args): New static inline function.
11940 [GCC_TM_H] (pack_cumulative_args): Likewise.
11941 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
11942 argument type with cumulative_args_t.
11943 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
11944 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
11945 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
11946 (frv_arg_partial_bytes, frv_function_arg): Likewise.
11947 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
11948 (frv_function_arg_1): Likewise.
11949 * config/s390/s390.c (s390_pass_by_reference): Likewise.
11950 (s390_function_arg_advance, s390_function_arg): Likewise.
11951 * config/m32c/m32c.c (m32c_function_arg): Likewise.
11952 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
11953 (m32c_strict_argument_naming): Likewise.
11954 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
11955 (spu_function_arg_advance): Likewise.
11956 (spu_setup_incoming_varargs): Likewise. Make static.
11957 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
11958 Remove prototype.
11959 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
11960 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11961 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
11962 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
11963 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
11964 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
11965 (mep_pass_by_reference, mep_function_arg): Likewise.
11966 (mep_function_arg_advance): Likewise.
11967 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
11968 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
11969 (m32r_function_arg, m32r_function_arg_advance): Likewise.
11970 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
11971 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
11972 (ix86_function_arg, ix86_pass_by_reference): Likewise.
11973 (ix86_setup_incoming_varargs): Likewise.
11974 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
11975 (sh_strict_argument_naming): Likewise.
11976 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
11977 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
11978 (sh_function_arg_advance, sh_function_arg): Likewise.
11979 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
11980 (pdp11_function_arg_advance): Likewise.
11981 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
11982 Likewise.
11983 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
11984 * config/avr/avr.c (avr_function_arg): Likewise.
11985 (avr_function_arg_advance): Likewise.
11986 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
11987 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
11988 (xtensa_function_arg_1): Likewise.
11989 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
11990 Likewise.
11991 (xstormy16_function_arg): Likewise.
11992 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
11993 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
11994 (fr30_function_arg_advance): Likewise.
11995 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
11996 (lm32_function_arg, lm32_function_arg_advance): Likewise.
11997 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
11998 (moxie_function_arg, moxie_function_arg_advance): Likewise.
11999 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
12000 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
12001 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
12002 (cris_function_arg, cris_function_incoming_arg): Likewise.
12003 (cris_function_arg_advance, cris_function_arg_1): Likewise.
12004 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
12005 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
12006 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
12007 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
12008 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
12009 (mn10300_arg_partial_bytes): Likewise.
12010 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
12011 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
12012 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
12013 (ia64_function_arg_1): Likewise.
12014 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
12015 (m68k_function_arg): Likewise.
12016 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
12017 (rs6000_function_arg, setup_incoming_varargs): Likewise.
12018 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
12019 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
12020 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
12021 (picochip_arg_advance): Likewise.
12022 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
12023 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
12024 (mcore_function_arg_advance): Likewise.
12025 * config/score/score.c (score_pass_by_reference): Likewise.
12026 (score_function_arg_advance): Likewise.
12027 (score_arg_partial_bytes): Likewise. Make static.
12028 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
12029 * config/arm/arm.c (arm_arg_partial_bytes): Replace
12030 CUMULATIVE_ARGS* argument type with cumulative_args_t.
12031 (arm_function_arg, arm_function_arg_advance): Likewise.
12032 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
12033 * config/pa/pa.c (pa_pass_by_reference): Likewise.
12034 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
12035 (pa_function_arg): Likewise.
12036 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
12037 (mips_function_arg, mips_function_arg_advance): Likewise.
12038 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
12039 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
12040 * config/vax/vax.c (vax_function_arg): Likewise.
12041 (vax_function_arg_advance): Likewise.
12042 * config/h8300/h8300.c (h8300_function_arg): Likewise.
12043 (h8300_function_arg_advance): Likewise.
12044 * config/v850/v850.c (v850_pass_by_reference): Likewise.
12045 (v850_strict_argument_naming, v850_function_arg): Likewise.
12046 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
12047 (v850_setup_incoming_varargs): Likewise.
12048 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
12049 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
12050 (mmix_function_arg, mmix_pass_by_reference): Likewise.
12051 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
12052 with const void *.
12053 * config/bfin/bfin.c (setup_incoming_varargs): Replace
12054 CUMULATIVE_ARGS* argument type with cumulative_args_t.
12055 (bfin_function_arg_advance, bfin_function_arg): Likewise.
12056 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
12057 * calls.c (emit_call_1): Change type of args_so_far to
12058 cumulative_args_t. Changed all callers.
12059 (initialize_argument_information): Likewise.
12060 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
12061 * dse.c (get_call_args): Likewise.
12062 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12063 * function.c (pass_by_reference, reference_callee_copied): Likewise.
12064 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
12065 New member args_so_far_v. Changed all users.
12066 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
12067 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
12068 * config/mips/mips.c (mips_output_args_xfer): Likewise.
12069 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
12070 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12071 * config/microblaze/microblaze.c (microblaze_expand_prologue):
12072 Likewise.
12073 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
12074 m32r_pass_by_reference.
12075
12076 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
12077
12078 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
12079 argument to be a VEC of statements.
12080 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
12081 assert that pattern statements have to have their vector type set.
12082 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
12083 Change the first argument to be a VEC of statements. Update
12084 documentation.
12085 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
12086 (vect_handle_widen_mult_by_const): New function.
12087 (vect_recog_widen_mult_pattern): Change the first argument to be a
12088 VEC of statements. Update documentation. Check that the constant is
12089 INTEGER_CST. Support multiplication by a constant that fits an
12090 intermediate type - call vect_handle_widen_mult_by_const.
12091 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
12092 call. Handle additional pattern statements if necessary.
12093
12094 2011-06-16 Nick Clifton <nickc@redhat.com>
12095
12096 PR target/49427
12097 * config.gcc: Set cpu_type to v850 for any V850 architecture.
12098 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
12099 md_file, extra_modes, out_file and extra_options are these are all
12100 deduced from cpu_type.
12101
12102 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
12103
12104 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
12105 truncation mask to 63.
12106
12107 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
12108
12109 PR target/49313
12110 PR target/29524
12111 * longlong.h: Add AVR support:
12112 (count_leading_zeros): New macro.
12113 (count_trailing_zeros): New macro.
12114 (COUNT_LEADING_ZEROS_0): New macro.
12115 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
12116 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
12117 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
12118 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
12119 (LIB2FUNCS_EXCLUDE): Add _clz.
12120 * config/avr/libgcc.S (XCALL): Move up in file.
12121 (XJMP): New C Macro.
12122 (DEFUN): New asm macro.
12123 (ENDF): New asm macro.
12124 (__ffssi2): New function.
12125 (__ffshi2): New function.
12126 (__loop_ffsqi2): New function.
12127 (__ctzsi2): New function.
12128 (__ctzhi2): New function.
12129 (__clzdi2): New function.
12130 (__clzsi2): New function.
12131 (__clzhi2): New function.
12132 (__paritydi2): New function.
12133 (__paritysi2): New function.
12134 (__parityhi2): New function.
12135 (__parityqi2): New function.
12136 (__popcounthi2): New function.
12137 (__popcountsi2): New function.
12138 (__popcountdi2): New function.
12139 (__popcountqi2): New function.
12140 (__bswapsi2): New function.
12141 (__bswapdi2): New function.
12142 (__ashldi3): New function.
12143 (__ashrdi3): New function.
12144 (__lshrdi3): New function.
12145 Fix suspicous lines.
12146
12147 2011-06-16 Richard Guenther <rguenther@suse.de>
12148
12149 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
12150 the same as x != 0.
12151 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
12152 to (bool) X & 1.
12153 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
12154 equality compares against zero for the lower bit.
12155
12156 2011-06-16 Jakub Jelinek <jakub@redhat.com>
12157
12158 PR tree-optimization/49419
12159 * tree-vrp.c (execute_vrp): Call init_range_assertions
12160 before estimate_numbers_of_iterations, call
12161 free_number_of_iterations_estimates before calling
12162 remove_range_assertions.
12163
12164 2011-06-16 Revital Eres <revital.eres@linaro.org>
12165
12166 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
12167 (struct partial_schedule): Add rows_length field.
12168 (verify_partial_schedule): Check rows_length.
12169 (ps_insert_empty_row): Handle rows_length.
12170 (create_partial_schedule): Likewise.
12171 (free_partial_schedule): Likewise.
12172 (reset_partial_schedule): Likewise.
12173 (create_ps_insn): Remove rest_count argument.
12174 (remove_node_from_ps): Update rows_length.
12175 (add_node_to_ps): Update rows_length and call create_ps_insn
12176 without passing row_rest_count.
12177 (rotate_partial_schedule): Update rows_length.
12178
12179 2011-06-16 Revital Eres <revital.eres@linaro.org>
12180
12181 * ddg.c (add_intra_loop_mem_dep): New function.
12182 (build_intra_loop_deps): Call it.
12183
12184 2011-06-13 Jeff Law <law@redhat.com>
12185
12186 * df-problems.c (df_lr_local_compute): Manually CSE
12187 PIC_OFFSET_TABLE_REGNUM.
12188 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
12189 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
12190
12191 2011-06-13 Jan Hubicka <jh@suse.cz>
12192
12193 * cgraphunit.c (handle_alias_pairs): New function.
12194 (cgraph_finalize_compilation_unit): Use it.
12195 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
12196 as externally visible.
12197
12198 2011-06-15 Richard Guenther <rguenther@suse.de>
12199
12200 * expr.c (expand_expr_real_2): Reduce all integral types to
12201 bitfield precision.
12202 (expand_expr_real_1): Likewise.
12203
12204 2011-06-15 Martin Jambor <mjambor@suse.cz>
12205
12206 PR tree-optimization/48613
12207 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
12208 ipa_node_params_vector is NULL.
12209
12210 2011-06-15 Jakub Jelinek <jakub@redhat.com>
12211
12212 PR debug/49382
12213 * dwarf2out.c (dw_loc_list_node): Add force field.
12214 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
12215 location in the list, even if it is modified before first real insn.
12216 (output_loc_list): Emit empty ranges with force flag set.
12217 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
12218
12219 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
12220
12221 PR target/49349
12222 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
12223 (fence_to_rewind). Use it to notice when bookkeeping will be placed
12224 above a fence. Update comments.
12225 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
12226 placed just above it. Do not allow NULL place_to_insert.
12227
12228 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
12229
12230 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
12231 (slpeel_tree_peel_loop_to_edge): Don't call
12232 remove_dead_stmts_from_loop.
12233 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
12234 remove irrelevant pattern statements. For irrelevant statements
12235 check if it is the last statement of a detected pattern, use
12236 corresponding pattern statement instead.
12237 (destroy_loop_vec_info): No need to remove pattern statements,
12238 only free stmt_vec_info.
12239 (vect_transform_loop): For irrelevant statements check if it is
12240 the last statement of a detected pattern, use corresponding
12241 pattern statement instead.
12242 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
12243 pattern statements. Set basic block for the new statement.
12244 (vect_pattern_recog): Update documentation.
12245 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
12246 operands of pattern statements.
12247 (vectorizable_call): Fix printing. In case of a pattern statement
12248 use the lhs of the original statement when creating a dummy
12249 statement to replace the original call.
12250 (vect_analyze_stmt): For irrelevant statements check if it is
12251 the last statement of a detected pattern, use corresponding
12252 pattern statement instead.
12253 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
12254 statements use gsi of the original statement.
12255
12256 2011-06-14 Joseph Myers <joseph@codesourcery.com>
12257
12258 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
12259 common/common-target-def.h.
12260 * target.def (default_target_flags, handle_option,
12261 supports_split_stack, optimization_table, init_struct,
12262 except_unwind_info, unwind_tables_default, have_named_sections):
12263 Move to common/common-target.def.
12264 * target.h (enum opt_levels, struct default_options): Move to
12265 common/common-target.h.
12266 * targhooks.c (default_except_unwind_info,
12267 dwarf2_except_unwind_info, sjlj_except_unwind_info,
12268 default_target_handle_option, empty_optimization_table): Move to
12269 common/common-targhooks.c.
12270 * targhooks.h (default_except_unwind_info,
12271 dwarf2_except_unwind_info, sjlj_except_unwind_info,
12272 default_target_handle_option, empty_optimization_table): Move to
12273 common/common-targhooks.h.
12274 * common/common-target-def.h: Include common/common-targhooks.h.
12275 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
12276 defined.
12277 * common/common-target.def (handle_option, option_init_struct,
12278 option_optimization_table, default_target_flags,
12279 except_unwind_info, supports_split_stack, unwind_tables_default,
12280 have_named_sections): Move from target.def.
12281 (HOOK_PREFIX): Undefine at end of file.
12282 * common/common-target.h: Include input.h.
12283 (enum opt_levels, struct default_options): Move from target.h.
12284 * common/common-targhooks.c, common/common-targhooks.h: New.
12285 * config.gcc (target_has_targetm_common): Default to yes.
12286 (moxie*): Set target_has_targetm_common=no.
12287 (hppa*-*-*): Don't set target_has_targetm_common=yes.
12288 * doc/tm.texi: Regenerate.
12289 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
12290 (C_TARGET_DEF_H): Add common/common-targhooks.h.
12291 (GCC_OBJS): Remove vec.o.
12292 (OBJS): Remove hooks.o and vec.o.
12293 (OBJS-libcommon-target): Add vec.o, hooks.o and
12294 common/common-targhooks.o.
12295 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
12296 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
12297 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
12298 cfglayout.o, $(out_object_file), $(common_out_object_file)):
12299 Update dependencies.
12300 (common/common-targhooks.o): New.
12301 * common/config/default-common.c: Include tm.h. Add FIXME comment.
12302 * common/config/pa/pa-common.c: Include more headers. Take
12303 copyright dates from pa.c.
12304 (pa_option_optimization_table, pa_handle_option,
12305 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
12306 TARGET_HANDLE_OPTION): Move from pa.c.
12307 * common/config/alpha/alpha-common.c,
12308 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
12309 common/config/bfin/bfin-common.c,
12310 common/config/cris/cris-common.c,
12311 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
12312 common/config/h8300/h8300-common.c,
12313 common/config/i386/i386-common.c,
12314 common/config/ia64/ia64-common.c,
12315 common/config/iq2000/iq2000-common.c,
12316 common/config/lm32/lm32-common.c,
12317 common/config/m32c/m32c-common.c,
12318 common/config/m32r/m32r-common.c,
12319 common/config/m68k/m68k-common.c,
12320 common/config/mcore/mcore-common.c,
12321 common/config/mep/mep-common.c,
12322 common/config/microblaze/microblaze-common.c,
12323 common/config/mips/mips-common.c,
12324 common/config/mmix/mmix-common.c,
12325 common/config/mn10300/mn10300-common.c,
12326 common/config/pdp11/pdp11-common.c,
12327 common/config/picochip/picochip-common.c,
12328 common/config/rs6000/rs6000-common.c,
12329 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
12330 common/config/score/score-common.c, common/config/sh/sh-common.c,
12331 common/config/sparc/sparc-common.c,
12332 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
12333 common/config/vax/vax-common.c,
12334 common/config/xstormy16/xstormy16-common.c,
12335 common/config/xtensa/xtensa-common.c: New.
12336 * config/alpha/alpha.c: Include common/common-target.h.
12337 (alpha_option_optimization_table, alpha_handle_option,
12338 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12339 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
12340 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
12341 * config/arm/arm.c (arm_option_optimization_table,
12342 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12343 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
12344 arm-common.c.
12345 * config/avr/avr.c (avr_option_optimization_table,
12346 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
12347 to avr-common.c.
12348 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
12349 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
12350 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
12351 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
12352 * config/cris/cris.c (cris_option_optimization_table,
12353 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12354 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
12355 cris-common.c.
12356 * config/fr30/fr30.c (fr30_option_optimization_table,
12357 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
12358 to fr30-common.c.
12359 * config/frv/frv.c (frv_option_optimization_table,
12360 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
12361 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
12362 * config/h8300/h8300.c (h8300_option_optimization_table,
12363 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12364 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
12365 * config/i386/i386-protos.h (ix86_handle_option): Declare.
12366 * config/i386/i386.c: Include common/common-target.h.
12367 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
12368 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
12369 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
12370 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
12371 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
12372 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
12373 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
12374 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
12375 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
12376 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
12377 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
12378 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
12379 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
12380 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
12381 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
12382 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
12383 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
12384 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
12385 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
12386 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
12387 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
12388 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
12389 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
12390 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
12391 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
12392 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
12393 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
12394 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
12395 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
12396 ix86_option_optimization_table, ix86_option_init_struct,
12397 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
12398 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
12399 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
12400 i386-common.c.
12401 * config/i386/t-i386 (i386.o): Update dependencies.
12402 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
12403 * config/ia64/ia64.c (ia64_option_optimization_table,
12404 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
12405 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12406 ia64_handle_option): Move to ia64-common.c.
12407 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
12408 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
12409 * config/lm32/lm32.c (lm32_option_optimization_table,
12410 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
12411 to lm32-common.c.
12412 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
12413 m32c-common.c.
12414 * config/m32r/m32r.c (m32r_option_optimization_table,
12415 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12416 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
12417 m32r_handle_option): Move to m32r-common.c.
12418 (m32r_memory_move_cost): Remove comment referring to
12419 TARGET_HANDLE_OPTION.
12420 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
12421 Move to m68k-common.c.
12422 * config/mcore/mcore.c (mcore_option_optimization_table,
12423 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12424 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
12425 * config/mep/mep.c (mep_option_optimization_table,
12426 mep_handle_option, TARGET_HANDLE_OPTION,
12427 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
12428 Move to mep-common.c.
12429 * config/microblaze/microblaze.c
12430 (microblaze_option_optimization_table,
12431 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12432 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
12433 * config/mips/mips.c (mips_handle_option,
12434 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
12435 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
12436 mips-common.c.
12437 * config/mmix/mmix.c (mmix_option_optimization_table,
12438 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
12439 Move to mmix-common.c.
12440 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
12441 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
12442 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12443 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
12444 * config/pa/pa.c: Include common/common-target.h.
12445 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
12446 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12447 pa_handle_option): Move to pa-common.c.
12448 (pa_option_override): Use targetm_common.except_unwind_info.
12449 (pa_asm_output_mi_thunk, pa_function_section): Use
12450 targetm_common.have_named_sections.
12451 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
12452 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12453 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
12454 pdp11_handle_option, pdp11_option_init_struct): Move to
12455 pdp11-common.c.
12456 * config/picochip/picochip.c (picochip_option_optimization_table,
12457 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
12458 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
12459 * config/rs6000/rs6000.c: Include common/common-target.h.
12460 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
12461 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
12462 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
12463 rs6000_handle_option): Move to rs6000-common.c.
12464 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
12465 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
12466 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
12467 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
12468 * config/s390/s390.c (processor_flags_table,
12469 s390_option_optimization_table, s390_option_init_struct,
12470 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
12471 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
12472 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
12473 * config/s390/s390.h (processor_flags_table): Declare.
12474 * config/score/score.c (score_option_optimization_table,
12475 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12476 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
12477 score_handle_option): Move to score-common.c.
12478 * config/sh/sh.c (sh_option_optimization_table,
12479 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
12480 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12481 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
12482 * config/sparc/sparc.c: Include common/common-target.h.
12483 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
12484 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
12485 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
12486 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
12487 spu_option_init_struct): Move to spu-common.c.
12488 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
12489 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
12490 * config/v850/v850.c (small_memory_physical_max,
12491 v850_handle_memory_optionn v850_handle_option,
12492 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
12493 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
12494 v850-common.c.
12495 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
12496 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
12497 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
12498 Move to xtensa-common.c.
12499 * cfglayout.c: Include common/common-target.h.
12500 (fixup_reorder_chain): Use targetm_common.have_named_sections.
12501 * cfgrtl.c: Include common/common-target.h.
12502 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
12503 targetm_common.have_named_sections.
12504 * dbxout.c: Include common/common-target.h.
12505 (dbxout_function_end): Use targetm_common.have_named_sections.
12506 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
12507 targetm_common.except_unwind_info.
12508 * dwarf2out.c: Include common/common-target.h.
12509 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
12510 dwarf2out_begin_prologue, dwarf2out_frame_init,
12511 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
12512 targetm_common.except_unwind_info.
12513 * except.c: Include common/common-target.h.
12514 (init_eh, finish_eh_generation,
12515 output_one_function_exception_table): Use
12516 targetm_common.except_unwind_info.
12517 (switch_to_exception_section): Use targetm_common.have_named_sections.
12518 * explow.c: Include common/common-target.h.
12519 * expr.c: Include common/common-target.h.
12520 (build_personality_function): Use targetm_common.except_unwind_info.
12521 * function.c: Include common/common-target.h.
12522 (expand_function_end): Use targetm_common.except_unwind_info.
12523 * haifa-sched.c: Include common/common-target.h.
12524 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
12525 * lto-opts.c: Include common/common-target.h instead of target.h.
12526 (lto_reissue_options): Use targetm_common.handle_option.
12527 * opts.c: Include common/common-target.h.
12528 (target_handle_option): Use targetm_common.handle_option.
12529 (init_options_struct): Update comment referring to
12530 targetm.target_option.optimization. Use
12531 targetm_common.default_target_flags,
12532 targetm_common.unwind_tables_default and
12533 targetm_common.option_init_struct.
12534 (default_options_optimization): Use
12535 targetm_common.option_optimization_table.
12536 (finish_options): Use targetm_common.except_unwind_info,
12537 targetm_common.unwind_tables_default,
12538 targetm_common.have_named_sections and
12539 targetm_common.supports_split_stack.
12540 * toplev.c: Include common/common-target.h.
12541 (process_options): Use targetm_common.have_named_sections.
12542 * tree-tailcall.c: Include common/common-target.h.
12543 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
12544 * tree.c: Include common/common-target.h.
12545 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
12546 * varasm.c: Include common/common-target.h.
12547 (resolve_unique_section, hot_function_section,
12548 default_function_section): Use targetm_common.have_named_sections.
12549
12550 2011-06-14 Easwaran Raman <eraman@google.com>
12551
12552 PR rtl-optimization/44194
12553 * dse.c: Include tree-flow.h
12554 (insn_info): Add new field non_frame_wild_read.
12555 (group_info): Add new fields escaped_n and escaped_p.
12556 (kill_on_calls): New variable.
12557 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
12558 (dse_step0): Initialize kill_on_calls.
12559 (can_escape): New function.
12560 (set_usage_bits): Add additional parameter; record information
12561 about escaped locations.
12562 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
12563 (dse_step2_nospill): Set kill_on_calls based on
12564 group->escaped_n and group->escaped_n.
12565 (add_wild_read): Refactor into...
12566 (reset_active_stores): ... New function, and
12567 (free_read_records): ... New function.
12568 (add_non_frame_wild_read): New function.
12569 (scan_insn): Call add_non_frame_wild_read on non-const calls.
12570 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
12571 (dse_step5_nospill): Call scan_reads_nospill for instructions
12572 marked as non_frame_wild_read.
12573 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
12574
12575 2011-06-14 Joseph Myers <joseph@codesourcery.com>
12576
12577 * common/common-target-def.h, common/common-target.def,
12578 common/common-target.h, common/config/default-common.c,
12579 common/config/pa/pa-common.c: New files.
12580 * Makefile.in (common_out_file, common_out_object_file,
12581 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
12582 (OBJS-libcommon-target): Include $(common_out_object_file).
12583 (prefix.o): Update dependencies.
12584 ($(common_out_object_file), common/common-target-hooks-def.h,
12585 s-common-target-hooks-def-h): New.
12586 (s-tm-texi): Also check timestamp on common-target.def.
12587 (build/genhooks.o): Update dependencies.
12588 * config.gcc (common_out_file, target_has_targetm_common): Define.
12589 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
12590 TARGET_ALWAYS_STRIP_DOTDOT.
12591 * configure.ac (common_out_object_file): Define.
12592 (common_out_file, common_out_object_file): Substitute.
12593 (common): Create directory.
12594 * configure: Regenerate.
12595 * doc/tm.texi.in (targetm_common): Document.
12596 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
12597 * doc/tm.texi: Regenerate.
12598 * genhooks.c (hook_array): Also include common/common-target.def.
12599 * prefix.c (tm.h): Don't include.
12600 (common/common-target.h): Include.
12601 (ALWAYS_STRIP_DOTDOT): Don't define.
12602 (update_path): Use targetm_common.always_strip_dotdot instead of
12603 ALWAYS_STRIP_DOTDOT.
12604 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
12605
12606 2011-06-14 David Li <davidxl@google.com>
12607
12608 * passes.c (execute_function_todo): Remove TODO_dump_func.
12609 (execute_one_pass): Remove TODO_dump_func.
12610 (execute_function_dump): New function.
12611 * tree-vrp.c: Remove TODO_dump_func.
12612 * regrename.c: Remove TODO_dump_func.
12613 * fwprop.c: Remove TODO_dump_func.
12614 * tree-into-ssa.c: Remove TODO_dump_func.
12615 * tree-complex.c: Remove TODO_dump_func.
12616 * tracer.c: Remove TODO_dump_func.
12617 * tree-loop-distribution.c: Remove TODO_dump_func.
12618 * postreload-gcse.c: Remove TODO_dump_func.
12619 * postreload.c: Remove TODO_dump_func.
12620 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
12621 * tree-tailcall.c: Remove TODO_dump_func.
12622 * ipa-cp.c: Remove TODO_dump_func.
12623 * final.c: Remove TODO_dump_func.
12624 * tree-emutls.c: Remove TODO_dump_func.
12625 * omp-low.c: Remove TODO_dump_func.
12626 * tree-ssa-dse.c: Remove TODO_dump_func.
12627 * tree-ssa-uncprop.c: Remove TODO_dump_func.
12628 * auto-inc-dec.c: Remove TODO_dump_func.
12629 * reorg.c: Remove TODO_dump_func.
12630 * tree-ssa-copyrename.c: Remove TODO_dump_func.
12631 * tree-ssa-ccp.c: Remove TODO_dump_func.
12632 * compare-elim.c: Remove TODO_dump_func.
12633 * mode-switching.c: Remove TODO_dump_func.
12634 * modulo-sched.c: Remove TODO_dump_func.
12635 * tree-call-cdce.c: Remove TODO_dump_func.
12636 * cse.c: Remove TODO_dump_func.
12637 * web.c: Remove TODO_dump_func.
12638 * tree-stdarg.c: Remove TODO_dump_func.
12639 * lto-streamer-out.c: Remove TODO_dump_func.
12640 * tree-ssa-math-opts.c: Remove TODO_dump_func.
12641 * tree-ssa-dom.c: Remove TODO_dump_func.
12642 * tree-nrv.c: Remove TODO_dump_func.
12643 * loop-init.c: Remove TODO_dump_func.
12644 * gimple-low.c: Remove TODO_dump_func.
12645 * ipa-inline.c: Remove TODO_dump_func.
12646 * tree-ssa-sink.c: Remove TODO_dump_func.
12647 * jump.c: Remove TODO_dump_func.
12648 * ifcvt.c: Remove TODO_dump_func.
12649 * tree-ssa-loop.c: Remove TODO_dump_func.
12650 * recog.c: Remove TODO_dump_func.
12651 * dse.c: Remove TODO_dump_func.
12652 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
12653 * matrix-reorg.c: Remove TODO_dump_func.
12654 * tree-eh.c: Remove TODO_dump_func.
12655 * regmove.c: Remove TODO_dump_func.
12656 * function.c: Remove TODO_dump_func.
12657 * tree-vectorizer.c: Remove TODO_dump_func.
12658 * ipa-split.c: Remove TODO_dump_func.
12659 * gcse.c: Remove TODO_dump_func.
12660 * tree-if-conv.c: Remove TODO_dump_func.
12661 * init-regs.c: Remove TODO_dump_func.
12662 * tree-ssa-phiopt.c: Remove TODO_dump_func.
12663 * implicit-zee.c: Remove TODO_dump_func.
12664 * lower-subreg.c: Remove TODO_dump_func.
12665 * bt-load.c: Remove TODO_dump_func.
12666 * tree-dfa.c: Remove TODO_dump_func.
12667 * except.c: Remove TODO_dump_func.
12668 * emit-rtl.c: Remove TODO_dump_func.
12669 * store-motion.c: Remove TODO_dump_func.
12670 * cfgexpand.c: Remove TODO_dump_func.
12671 * tree-cfgcleanup.c: Remove TODO_dump_func.
12672 * cfgcleanup.c: Remove TODO_dump_func.
12673 * tree-ssa-pre.c: Remove TODO_dump_func.
12674 * tree-sra.c: Remove TODO_dump_func.
12675 * tree-mudflap.c: Remove TODO_dump_func.
12676 * tree-ssa-copy.c: Remove TODO_dump_func.
12677 * cfglayout.c: Remove TODO_dump_func.
12678 * tree-ssa-forwprop.c: Remove TODO_dump_func.
12679 * tree-ssa-dce.c: Remove TODO_dump_func.
12680 * ira.c: Remove TODO_dump_func.
12681 * tree-ssa.c: Remove TODO_dump_func.
12682 * integrate.c: Remove TODO_dump_func.
12683 * tree-optimize.c: Remove TODO_dump_func.
12684 * tree-ssa-phiprop.c: Remove TODO_dump_func.
12685 * tree-object-size.c: Remove TODO_dump_func.
12686 * combine.c: Remove TODO_dump_func.
12687 * bb-reorder.c: Remove TODO_dump_func.
12688 * cprop.c: Remove TODO_dump_func.
12689 * var-tracking.c: Remove TODO_dump_func.
12690 * tree-profile.c: Remove TODO_dump_func.
12691 * tree-vect-generic.c: Remove TODO_dump_func.
12692 * reg-stack.c: Remove TODO_dump_func.
12693 * sched-rgn.c: Remove TODO_dump_func.
12694 * tree-ssa-structalias.c: Remove TODO_dump_func.
12695 * tree-switch-conversion.c: Remove TODO_dump_func.
12696 * tree-cfg.c: Remove TODO_dump_func.
12697 * tree-ssa-reassoc.c: Remove TODO_dump_func.
12698 * combine-stack-adj.c: Remove TODO_dump_func.
12699 * dce.c: Remove TODO_dump_func.
12700 * tree-ssanames.c: Remove TODO_dump_func.
12701 * regcprop.c: Remove TODO_dump_func.
12702
12703 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
12704
12705 PR middle-end/47364
12706 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
12707 and properly handle result not in Pmode.
12708
12709 2011-06-14 Robert Millan <rmh@gnu.org>
12710
12711 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
12712 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
12713 `config/linux.h'.
12714
12715 * config/i386/kfreebsd-gnu64.h: New file.
12716 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
12717 with `i386/kfreebsd-gnu64.h'.
12718
12719 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
12720 (GNU_USER_LINK_EMULATION64): New macros.
12721 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
12722 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
12723 of hardcoding `elf_i386' and `elf_x86_64'.
12724
12725 2011-06-14 Nick Clifton <nickc@redhat.com>
12726
12727 PR target/49403
12728 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
12729
12730 PR target/49402
12731 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
12732
12733 2011-06-14 Jakub Jelinek <jakub@redhat.com>
12734
12735 PR fortran/49103
12736 * tree.h (DECL_NONSHAREABLE): Define.
12737 (struct tree_decl_common): Change decl_common_unused to
12738 decl_nonshareable_flag.
12739 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
12740 Ignore vars with DECL_NONSHAREABLE bit set.
12741 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
12742 on stores to automatic aggregate vars.
12743
12744 PR rtl-optimization/49390
12745 Revert:
12746 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
12747
12748 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
12749 MEM_ALIAS_SET.
12750
12751 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
12752 Tom de Vries <tom@codesourcery.com>
12753
12754 PR target/45098
12755 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
12756 Document changed semantics.
12757 (max_stmt_executions, max_stmt_executions_int): Declare.
12758 * tree-data-ref.c (estimated_loop_iterations)
12759 (estimated_loop_iterations_int): Move functions...
12760 * tree-ssa-loop-niter.c (estimated_loop_iterations)
12761 (estimated_loop_iterations_int): here.
12762 (record_estimate): Change nb_iterations_upper_bound and
12763 nb_iterations_estimate semantics.
12764 (max_stmt_executions, max_stmt_executions_int): New function.
12765 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
12766 (max_stmt_executions_tree): this.
12767 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
12768 estimated_loop_iterations_tree.
12769 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
12770 max_stmt_executions_int instead of estimated_loop_iterations_int.
12771 * predict.c (predict_loops): Idem.
12772 * tree-parloops.c (parallelize_loops): Idem.
12773 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
12774 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
12775 (init_omega_for_ddr_1): Idem.
12776 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
12777 (loop_prefetch_arrays): Idem
12778 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
12779 max_stmt_executions instead of estimated_loop_iterations.
12780 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
12781 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
12782 instead of nb_iterations_upper_bound.
12783
12784 2011-06-13 Jan Hubicka <jh@suse.cz>
12785
12786 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
12787
12788 2011-06-14 Richard Henderson <rth@redhat.com>
12789
12790 PR debug/48459
12791 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
12792 (based_loc_descr): Assert it's true.
12793 (compute_frame_pointer_to_fb_displacement): Set it, rather than
12794 aborting immediately.
12795
12796 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
12797 Mingfeng Wu <mingfeng@faraday-tech.com>
12798
12799 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
12800
12801 2011-06-13 Jan Hubicka <jh@suse.cz>
12802
12803 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
12804
12805 2011-06-13 Jan Hubicka <jh@suse.cz>
12806
12807 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
12808 similarly to DECL_COMDAT.
12809 * cgraphunit.c (cgraph_analyze_function): Likewise.
12810 * ipa.c (function_and_variable_visibility): Likewise.
12811
12812 2011-06-13 Jan Hubicka <jh@suse.cz>
12813
12814 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
12815 BINFO_VIRTUALS when streaming for ltrans unit.
12816
12817 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
12818
12819 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
12820 (movdi_internal64): Same.
12821
12822 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
12823
12824 PR target/44618
12825 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
12826 a set of similar patterns, where the MATCH_OPERAND for the function
12827 argument is replaced with individual references to hardware registers.
12828 (save_fpregs_<mode>): Ditto
12829 (restore_gpregs_<mode>): Ditto
12830 (return_and_restore_gpregs_<mode>): Ditto
12831 (return_and_restore_fpregs_<mode>): Ditto
12832 (return_and_restore_fpregs_aix_<mode>): Ditto
12833
12834 2011-06-13 Jan Hubicka <jh@suse.cz>
12835
12836 * ipa-utils.c (postorder_stack): New structure.
12837 (ipa_reverse_postorder): Handle aliases.
12838
12839 2011-06-13 Jan Hubicka <jh@suse.cz>
12840
12841 * ipa-inline.c (reset_edge_caches): Walk aliases.
12842 (update_caller_keys): Do not test inlinability of aliases.
12843 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
12844 (do_estimate_growth): Fix typo.
12845
12846 2011-06-13 Jan Hubicka <jh@suse.cz>
12847
12848 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
12849 (can_remove_node_now_p): ... here; handle same comdat groups.
12850 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
12851 (inline_call): Update use of can_remove_node_now_p.
12852
12853 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12854
12855 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
12856 condition to disallow non-identical memory locations.
12857 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
12858 preference to bit manipulation instructions.
12859
12860 2011-06-13 Jan Hubicka <jh@suse.cz>
12861
12862 * cgraph.c (cgraph_for_node_thunks_and_aliases,
12863 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
12864 (nonremovable_p): New function.
12865 (cgraph_can_remove_if_no_direct_calls_p): New function.
12866 (used_from_object_file_p): New functoin.
12867 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
12868 references from aliases.
12869 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
12870 * ipa-inline.c (check_caller_edge): New function.
12871 (want_inline_function_called_once_p): Use it; accept aliases called
12872 once, too.
12873 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
12874
12875 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12876
12877 PR target/48454
12878 * config/arm/neon.md (vec_pack_trunc): Set the lengths
12879 correctly for the case with Quad vectors.
12880
12881 2011-06-13 Jakub Jelinek <jakub@redhat.com>
12882 Ira Rosen <ira.rosen@linaro.org>
12883
12884 PR tree-optimization/49352
12885 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
12886 all, make sure loop_use_stmt after the loop is a def stmt of a used
12887 SSA_NAME that is the only one defined inside of the loop. Don't
12888 check for COND_EXPR and GIMPLE_BINARY_RHS.
12889 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
12890 check_reduction is true.
12891
12892 2011-06-11 Jan Hubicka <jh@suse.cz>
12893
12894 PR middle-end/49373
12895 * ipa.c (cgraph_externally_visible_p): Check resolution info.
12896
12897 2011-06-11 Jan Hubicka <jh@suse.cz>
12898
12899 PR middle-end/48836
12900 * ipa-inline-transform.c: Include tree-pass.h
12901 (inline_transform): Set TODO_update_ssa_only_virtuals.
12902 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
12903
12904 2011-06-11 Jan Hubicka <jh@suse.cz>
12905
12906 PR middle-end/49378
12907 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
12908 aliases and thunks.
12909
12910 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
12911
12912 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
12913 Take number of iterations to peel into account for equally frequent
12914 misalignment values.
12915
12916 2011-06-11 Jan Hubicka <jh@suse.cz>
12917
12918 * lto-streamer-out.c (produce_symtab): Stream out the newly
12919 represented aliases.
12920
12921 2011-06-11 Jan Hubicka <jh@suse.cz>
12922
12923 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
12924 varying args.
12925 (ipa_update_after_lto_read): Likewise.
12926 (ipa_write_node_info): Do not sream call_with_var_arguments.
12927 (ipa_read_node_info): Likewise.
12928
12929 2011-06-11 Jan Hubicka <jh@suse.cz>
12930
12931 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
12932
12933 2011-06-11 Jan Hubicka <jh@suse.cz>
12934
12935 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
12936 (lto_symtab_resolve_can_prevail_p): Likewise.
12937 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
12938 * cgraph.c (same_body_aliases_done): New global var.
12939 (cgraph_same_body_alias_1): Rename to ...
12940 (cgraph_create_function_alias): ... this one; reorg to new
12941 representation.
12942 (cgraph_same_body_alias): Use cgraph_create_function_alias;
12943 record references when asked to.
12944 (cgraph_add_thunk): Fix formating.
12945 (cgraph_get_node): Kill same body alias code.
12946 (cgraph_node_for_asm): Likewise.
12947 (cgraph_remove_same_body_alias): Remove.
12948 (cgraph_remove_node): Kill same body alias code.
12949 (cgraph_mark_address_taken_node): Mark also the aliased function
12950 as having address taken.
12951 (dump_cgraph_node): Dump same body aliases.
12952 (cgraph_for_node_thunks_and_aliases): Update for new alias
12953 representation.
12954 (cgraph_for_node_and_aliases): Likewise.
12955 * cgraph.h (same_body): Kll pointer.
12956 (same_body_alias): Update comment.
12957 (same_body_aliases_done): Declare.
12958 (cgraph_remove_same_body_alias): Remove declaration.
12959 (cgraph_create_function_alias): Declare.
12960 (cgraph_process_same_body_aliases): Declare.
12961 (cgraph_function_with_gimple_body_p): Check for alias.
12962 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
12963 (cgraph_alias_aliased_node): New function.
12964 (cgraph_function_node): Update for new aliases.
12965 (cgraph_function_or_thunk_node): Likewise.
12966 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
12967 (inline_call): Remove dead aliases.
12968 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
12969 name hack for same body aliases.
12970 (clone_of_p): Look through aliases.
12971 (verify_cgraph_node): Verify aliases.
12972 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
12973 (cgraph_process_same_body_aliases): New function.
12974 (process_function_and_variable_attributes): Disable weakref warning on
12975 alias.
12976 (cgraph_analyze_functions): Handle aliases.
12977 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
12978 (assemble_thunks): Rename to ...
12979 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
12980 (cgraph_expand_function): Remove alias output code.
12981 (cgraph_output_in_order): Skip aliases.
12982 (cgraph_preserve_function_body_p): Aliases don't need preserving.
12983 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
12984 (ipa_record_reference): Do not assert on alias references.
12985 (ipa_ref_has_aliases_p): New function.
12986 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
12987 (ipa_ref_has_aliases_p): Declare.
12988 * lto-cgraph.c (lto_output_node): Handle aliases.
12989 (input_node): Likewise.
12990 * lto-streamer-out.c (lto_output): Skip aliases.
12991 (produce_symtab): Kill same_body_alias code.
12992 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
12993 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
12994 * ipa-inline.c (update_caller_keys): Walk aliases.
12995 (inline_small_functions): Fix thinko in previous patch.
12996 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
12997 (function_and_variable_visibility): Do not walk same body aliases.
12998 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
12999 (ipa_pta_execute): Use it.
13000
13001 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
13002
13003 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
13004 (*vec_dupv2df): Rename from vec_dupv2df.
13005 (vec_dupv2df): New expander.
13006
13007 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
13008
13009 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
13010
13011 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
13012
13013 * config/i386/i386.md: Use default value in "isa" attribute.
13014 * config/i386/sse.md: Ditto.
13015 * config/i386/mmx.md: Ditto.
13016
13017 2011-06-10 Wei Guozhi <carrot@google.com>
13018
13019 PR target/45335
13020 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
13021 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
13022 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
13023 related peephole2.
13024 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
13025 related peephole2.
13026 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
13027 (arm_legitimate_ldrd_p): New prototype.
13028 (arm_output_ldrd): New prototype.
13029 * config/arm/arm.c (arm_check_ldrd_operands): New function.
13030 (arm_legitimate_ldrd_p): New function.
13031 (arm_output_ldrd): New function.
13032
13033 2011-06-10 David Li <davidxl@google.com>
13034
13035 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
13036 * passes.c (passr_eq): New function.
13037 (create_pass_tab): New function.
13038 (pass_traverse): New function.
13039 (dump_one_pass): New function.
13040 (dump_pass_list): New function.
13041 (dump_passes): New function.
13042
13043 2011-06-10 Jan Hubicka <jh@suse.cz>
13044
13045 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
13046 setting the nothrow flag.
13047 * ipa-reference.c (propagate): Skip aliases.
13048 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
13049 (propagate_nothrow): Skip aliases; do not update cgraph.
13050 (local_pure_const): Do not update cgraph.
13051 * tree-profile.c (tree_profiling): Do fixup_cfg.
13052
13053 2011-06-10 Jan Hubicka <jh@suse.cz>
13054
13055 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
13056 (cgraph_local_node_p): ... here; handle aliases.
13057 (has_addr_references_p): Break out from ...;
13058 (cgraph_remove_unreachable_nodes) ... here.
13059
13060 2011-06-10 Jan Hubicka <jh@suse.cz>
13061
13062 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
13063 * common.opt (flag_inline_functions_called_once): Do not
13064 initialize to 1.
13065
13066 2011-06-10 Jan Hubicka <jh@suse.cz>
13067
13068 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
13069 (ipcp_initialize_node_lattices): Do not deal with aliases;
13070 Do not try to propagate through thunks.
13071 (ipcp_change_tops_to_bottom): Do not deal with aliases.
13072
13073 2011-06-10 Jan Hubicka <jh@suse.cz>
13074
13075 * ipa-prop.c (ipa_write_node_info): Stream jump functions
13076 for indirect calls.
13077 (ipa_read_node_info): Likewise.
13078
13079 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13080
13081 PR lto/49302
13082 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
13083 (build_and_insert_call): Likewise.
13084 (build_and_insert_ref): New.
13085 (gimple_expand_builtin_pow): Minor cleanup.
13086 (gimple_expand_builtin_cabs): New.
13087 (execute_cse_sincos): Add case for BUILT_IN_CABS.
13088
13089 2011-06-10 Jan Hubicka <jh@suse.cz>
13090
13091 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
13092 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
13093 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
13094 (ipcp_propagate_stage): Skip aliases when propagating.
13095 (ipcp_need_redirect_p): Skip aliases.
13096 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
13097 collect_callers_of_node.
13098 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
13099 for aliases.
13100 (ipa_compute_jump_functions): Look through aliases.
13101
13102 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13103
13104 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
13105
13106 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
13107
13108 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
13109 Adjust comments.
13110 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
13111
13112 2011-06-10 Jan Hubicka <jh@suse.cz>
13113
13114 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
13115 Update call of gimple_get_virt_method_for_binfo.
13116 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
13117 refuse_thunks parameter.
13118 (gimple_fold_call): Update.
13119 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
13120
13121 2011-06-10 Jan Hubicka <jh@suse.cz>
13122
13123 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
13124 (not_all_callers_have_enough_arguments_p): ... this one; turn into
13125 worker for cgraph_for_node_and_aliases.
13126 (convert_callers_for_node): Break out from ...
13127 (convert_callers): ... here.
13128 (modify_function): Use collect_callers_of_node.
13129 (ipa_early_sra): Use cgraph_for_node_and_aliases.
13130
13131 2011-06-10 Richard Guenther <rguenther@suse.de>
13132
13133 PR tree-optimization/49361
13134 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
13135 when not already in gimple form.
13136
13137 2011-06-10 Richard Guenther <rguenther@suse.de>
13138
13139 PR bootstrap/49344
13140 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
13141 FOR_EACH_PHI_OR_STMT_USE.
13142
13143 2011-06-10 Jan Hubicka <jh@suse.cz>
13144
13145 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
13146 (clone_inlined_nodes): ... here.
13147 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
13148 to real destination prior inlining.
13149 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
13150 can_early_inline_edge_p, want_early_inline_function_p,
13151 want_early_inline_function_p, want_inline_small_function_p,
13152 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
13153 edge_badness, update_all_callee_keys, lookup_recursive_calls,
13154 add_new_edges_to_heap, inline_small_functions, flatten_function,
13155 inline_always_inline_functions, early_inline_small_functions): Use
13156 cgraph_function_or_thunk_node.
13157 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
13158 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
13159 (do_estimate_edge_growth_1): Break out from ...
13160 (do_estimate_growth) ... here; walk aliases.
13161 (inline_generate_summary): Skip aliases.
13162
13163 2011-06-10 Richard Guenther <rguenther@suse.de>
13164
13165 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
13166 forward when combining, visit inserted stmts when a stmt was changed.
13167
13168 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
13169
13170 * tree.h (error_operand_p): Add.
13171 * dbxout.c (dbxout_type_fields): Use the latter.
13172 * c-decl.c (add_stmt): Likewise.
13173 * gimplify.c (omp_add_variable, omp_notice_variable,
13174 gimplify_scan_omp_clauses): Likewise.
13175
13176 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
13177
13178 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
13179 when a value is actually passed in regs.
13180
13181 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
13182 Laurent Rougé <laurent.rouge@menta.fr>
13183
13184 * doc/invoke.texi (SPARC options): Add -mflat.
13185 * config/sparc/sparc.opt: Likewise.
13186 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
13187 (sparc_flat_expand_prologue): Declare.
13188 (sparc_flat_expand_epilogue): Likewise.
13189 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
13190 (CPP_ENDIAN_SPEC): Replace with...
13191 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
13192 (CPP_SPEC): Adjust to above change.
13193 (EXTRA_SPECS): Likewise.
13194 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
13195 (INCOMING_REGNO): Likewise.
13196 (OUTGOING_REGNO): Likewise.
13197 (LOCAL_REGNO): Likewise.
13198 (SETUP_FRAME_ADDRESSES): Likewise.
13199 (FIXED_REGISTERS): Set 0 for %fp.
13200 (CALL_USED_REGISTERS): Likewise.
13201 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
13202 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
13203 (RETURN_ADDR_REGNUM): Define.
13204 (RETURN_ADDR_RTX): Use it.
13205 (INCOMING_RETURN_ADDR_REGNUM): Define.
13206 (INCOMING_RETURN_ADDR_RTX): Use it.
13207 (DWARF_FRAME_RETURN_COLUMN): Likewise.
13208 (EH_RETURN_REGNUM): Define.
13209 (EH_RETURN_STACKADJ_RTX): Use it.
13210 (EH_RETURN_HANDLER_RTX): Delete.
13211 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
13212 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
13213 Delete.
13214 (struct machine_function): Add frame_size, apparent_frame_size,
13215 frame_base_reg, frame_base_offset, n_global_fp_regs and
13216 save_local_in_regs_p fields.
13217 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
13218 sparc_frame_base_offset, sparc_n_global_fp_regs,
13219 sparc_save_local_in_regs_p): New macros.
13220 (sparc_option_override): Error out if -fcall-saved-REG is specified
13221 for Out registers.
13222 (eligible_for_restore_insn): Fix formatting.
13223 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
13224 (eligible_for_sibcall_delay): Likewise.
13225 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
13226 (sparc_legitimate_address_p): Adjust to above change.
13227 (save_global_or_fp_reg_p): New predicate.
13228 (return_addr_reg_needed_p): Likewise.
13229 (save_local_or_in_reg_p): Likewise.
13230 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
13231 (SORR_SAVE, SORR_RESTORE): Delete.
13232 (sorr_pred_t): New typedef.
13233 (sorr_act_t): New enum.
13234 (save_or_restore_regs): Rename to...
13235 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
13236 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
13237 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
13238 mechanism. Add CFI information for double-word saves in 32-bit mode.
13239 (emit_adjust_base_to_offset): New function extracted from...
13240 (emit_save_or_restore_regs): ...this. Rename the rest to...
13241 (emit_save_or_restore_regs_global_fp_regs): ...this.
13242 (emit_save_or_restore_regs_local_in_regs): New function.
13243 (gen_create_flat_frame_[123]): New functions.
13244 (sparc_expand_prologue): Use SIZE local variable. Adjust.
13245 (sparc_flat_expand_prologue): New function.
13246 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
13247 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
13248 (sparc_flat_expand_epilogue): New function.
13249 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
13250 (output_return): Likewise.
13251 (output_sibcall): Likewise.
13252 (sparc_output_mi_thunk): Likewise.
13253 (sparc_frame_pointer_required): Likewise.
13254 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
13255 function optimization.
13256 * config/sparc/sparc.md (flat): New attribute.
13257 (prologue): Add TARGET_FLAT handling.
13258 (save_register_window): Disable if TARGET_FLAT.
13259 (create_flat_frame_[123]): New patterns.
13260 (epilogue): Add TARGET_FLAT handling.
13261 (sibcall_epilogue): Likewise.
13262 (eh_return): New expander.
13263 (eh_return_internal): New insn and splitter.
13264 (return_internal): Add TARGET_FLAT handling.
13265 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
13266 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
13267 (nonlocal_goto): Add TARGET_FLAT handling.
13268 * config/sparc/t-elf: Add -mflat multilib.
13269 * config/sparc/t-leon: Likewise.
13270
13271 2011-06-10 Jan Hubicka <jh@suse.cz>
13272
13273 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
13274 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
13275 (self_recursive_p): Use cgraph_function_node.
13276 (propagate_pure_const): Likewise.
13277 (propagate_nothrow): Likewise.
13278 * ipa-reference.c (ipa_reference_get_not_read_global): Use
13279 cgraph_function_node.
13280 (propagate_bits): Likewise.
13281 (propagate): Likewise.
13282
13283 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13284 Richard Earnshaw <rearnsha@arm.com>
13285
13286 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
13287 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
13288 (*thumb2_movdi_vfp): Delete.
13289 (*arm_movdi_vfp_cortexa8): Delete.
13290 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
13291 (*movdi_vfp_cortexa8): Likewise.
13292
13293 2011-06-10 Richard Guenther <rguenther@suse.de>
13294
13295 * stor-layout.c (initialize_sizetypes): Give names to all
13296 sizetype kinds.
13297
13298 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
13299
13300 PR tree-optimization/49318
13301 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
13302 irrelevant pattern statements.
13303
13304 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
13305
13306 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
13307
13308 PR bootstrap/49354
13309 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
13310 to last assignment.
13311
13312 2011-06-09 Jan Hubicka <jh@suse.cz>
13313
13314 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
13315 do not recompute reachable flag.
13316 (cgraph_finalize_function, cgraph_analyze_functions): Set
13317 redefined_extern_inline here.
13318
13319 2011-06-09 Jan Hubicka <jh@suse.cz>
13320
13321 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
13322 (cgraph_only_called_directly_p): ... this one; bring offline.
13323 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
13324 varpool_used_from_object_file_p): Drop names from the declaratoin.
13325 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
13326 collect_callers_of_node): New.
13327 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
13328 (cgraph_edge_recursive_p): Use cgraph_function_node.
13329 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
13330 (cgraph_node_cannot_be_local_p_1): Break out from ...
13331 (cgraph_node_can_be_local_p): ... here; walk aliases.
13332 (cgraph_for_node_thunks_and_aliases): New function.
13333 (cgraph_for_node_and_aliases): New function.
13334 (cgraph_make_node_local_1): Break out from ...
13335 (cgraph_make_node_local) ... here; use
13336 cgraph_for_node_thunks_and_aliases.
13337 (cgraph_set_nothrow_flag_1): Break out from ...
13338 (cgraph_set_nothrow_flag) ... here;
13339 use cgraph_for_node_thunks_and_aliases.
13340 (cgraph_set_const_flag_1): Break out from ...
13341 (cgraph_set_const_flag) ... here;
13342 use cgraph_for_node_thunks_and_aliases.
13343 (cgraph_set_pure_flag_1): Break out from ...
13344 (cgraph_set_pure_flag) ... here;
13345 use cgraph_for_node_thunks_and_aliases.
13346 (cgraph_propagate_frequency_1): Break out from ...
13347 (cgraph_propagate_frequency) ... here; use
13348 cgraph_for_node_thunks_and_aliases.
13349 (cgraph_used_from_object_file_p): Do not care about aliases.
13350 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
13351 New functions.
13352 (collect_callers_of_node_1, collect_callers_of_node): New functions.
13353
13354 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
13355
13356 PR rtl-optimization/49154
13357 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
13358 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
13359 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
13360 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
13361 * config/cris/cris.h (cris_register_move_cost): Remove
13362 !TARGET_V32 code. Tweak comments.
13363
13364 2011-06-09 Jan Hubicka <jh@suse.cz>
13365
13366 * cgraphbuild.c (record_eh_tables): Mark personality function as having
13367 address taken.
13368
13369 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
13370
13371 PR rtl-optimization/49154
13372 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
13373 is a matching slot in the hashtable, assign it to classes_ptr.
13374
13375 PR rtl-optimization/49154
13376 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
13377 register classes.
13378 * doc/tm.texi: Regenerate.
13379
13380 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
13381
13382 PR target/49307
13383 * config/sh/sh.md (UNSPEC_CHKADD): New.
13384 (chk_guard_add): New define_insn_and_split.
13385 (symGOT_load): Use chk_guard_add instead of blockage.
13386
13387 2011-06-09 Kai Tietz <ktietz@redhat.com>
13388
13389 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
13390
13391 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
13392
13393 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
13394
13395 2011-06-09 Wei Guozhi <carrot@google.com>
13396
13397 PR target/46975
13398 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
13399 (peephole2 for conditional move): Generate 16 bit instructions.
13400
13401 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
13402
13403 * config/i386/i386.md (*movdi_internal_rex64): Merge
13404 alternatives 6 and 8.
13405
13406 2011-06-09 David Li <davidxl@google.com>
13407
13408 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
13409 * passes.c (passr_eq): New function.
13410 (create_pass_tab): New function.
13411 (pass_traverse): New function.
13412 (dump_one_pass): New function.
13413 (dump_pass_list): New function.
13414 (dump_passes): New function.
13415
13416 2011-06-09 David Li <davidxl@google.com>
13417
13418 * tree-complex.c (tree_lower_complex): Gate cleanup.
13419 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
13420 (execute_optimize_stdarg): Ditto.
13421 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
13422 (execute_cleanup_eh_1): Ditto.
13423 (execute_cleanup_eh): Ditto.
13424 * gcse.c (gate_rtl_pre): Ditto.
13425 (execute_rtl_pre): Ditto.
13426 * except.c (finish_eh_generation): Ditto.
13427 (convert_to_eh_region_ranges): Ditto.
13428 * cprop.c (one_cprop_pass): Ditto.
13429
13430 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
13431
13432 PR target/48673
13433 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
13434 in all basic blocks.
13435
13436 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13437
13438 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
13439 (HAVE_ENABLE_EXECUTE_STACK): Define.
13440 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
13441 (HAVE_ENABLE_EXECUTE_STACK): Define.
13442 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
13443 (HAVE_ENABLE_EXECUTE_STACK): Define.
13444 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
13445 (ENABLE_EXECUTE_STACK): Remove.
13446 (HAVE_ENABLE_EXECUTE_STACK): Define.
13447 [IN_LIBGCC2]: Don't include <windows.h>.
13448 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
13449 (HAVE_ENABLE_EXECUTE_STACK): Define.
13450 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
13451 (HAVE_ENABLE_EXECUTE_STACK): Define.
13452 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
13453 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
13454 (HAVE_ENABLE_EXECUTE_STACK): Define.
13455 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
13456 (HAVE_ENABLE_EXECUTE_STACK): Define.
13457 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
13458 (HAVE_ENABLE_EXECUTE_STACK): Define.
13459 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
13460 (HAVE_ENABLE_EXECUTE_STACK): Define.
13461 * config/alpha/alpha.c (alpha_trampoline_init): Test
13462 HAVE_ENABLE_EXECUTE_STACK.
13463 * config/i386/i386.c (ix86_trampoline_init): Likewise.
13464 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
13465 (sparc64_initialize_trampoline): Likewise.
13466 * libgcc2.c [L_enable_execute_stack]: Remove.
13467 * system.h (ENABLE_EXECUTE_STACK): Poison.
13468 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
13469 * doc/tm.texi: Regenerate.
13470 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
13471
13472 2011-06-09 Jakub Jelinek <jakub@redhat.com>
13473
13474 PR middle-end/49308
13475 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
13476 variable. After resetting and rescanning insn continue with previous
13477 statement.
13478
13479 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13480
13481 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
13482 (gcc_cv_ld_hidden): Likewise.
13483 * configure: Regenerate.
13484 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
13485 (ix86_stack_protect_fail): Mark unused.
13486 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
13487 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
13488 [TARGET_MACHO]: Don't define.
13489 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
13490 (TARGET_STACK_PROTECT_FAIL): Likewise.
13491 (rs6000_stack_protect_fail): Mark unused.
13492 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
13493 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
13494
13495 2011-06-08 Andi Kleen <ak@linux.intel.com>
13496
13497 * varasm.c (get_section): Print location of other conflict
13498 for section conflicts.
13499
13500 2011-06-08 Andi Kleen <ak@linux.intel.com>
13501
13502 * config/i386/driver-i386.c (host_detect_local_cpu):
13503 Add model 0x2d Intel CPU.
13504
13505 2011-06-08 Andi Kleen <ak@linux.intel.com>
13506
13507 * reginfo.c (global_regs_decl): Add.
13508 (globalize_reg): Add decl parameter. Compute location. Pass location
13509 to warnings and add inform. Store decl in global_regs_decl.
13510 * rtl.h (globalize_reg): Update prototype.
13511 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
13512
13513 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
13514
13515 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
13516
13517 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
13518
13519 PR target/49305
13520 * config/sh/predicates.md (general_movsrc_operand): Check
13521 mode for memory with indexed address for QI and HImode.
13522 (general_movdst_operand): Likewise.
13523
13524 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
13525
13526 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
13527
13528 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
13529
13530 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
13531 (num_ssa_operands): Likewise.
13532 (op_iter_init_phiuse): Forward-declare.
13533 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
13534
13535 2011-06-08 Nick Clifton <nickc@redhat.com>
13536
13537 * doc/invoke.texi (ARM Options): Update description of
13538 -mthumb-interwork.
13539
13540 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
13541
13542 * config/i386/driver-i386.c (host_detect_local_cpu): Support
13543 unknown Intel family 0x6 CPUs.
13544
13545 2011-06-08 Martin Jambor <mjambor@suse.cz>
13546
13547 * tree-sra.c (mark_rw_status): Removed.
13548 (analyze_access_subtree): New parameter parent instead of
13549 mark_read and mark_write, propagate from that.
13550
13551 2011-06-08 Julian Brown <julian@codesourcery.com>
13552
13553 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
13554 for double-precision helper functions in hard-float mode if only
13555 single-precision arithmetic is supported in hardware.
13556
13557 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
13558
13559 PR rtl-optimization/49303
13560 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
13561 code_motion_path_driver returned 0 or 1.
13562 (sel_region_finish): Clear h_d_i_d.
13563
13564 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
13565
13566 * config/sh/sh.c (prepare_move_operands): Set pic register
13567 appropriately for global and local dynamic tls models even
13568 if flag_pic is unset.
13569
13570 2011-06-07 Jason Merrill <jason@redhat.com>
13571
13572 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
13573
13574 2011-06-07 Xinliang David Li <davidxl@google.com>
13575 * passes.c (enable_disable_pass): Handle assembler name.
13576 (is_pass_explicitly_enabled_or_disabled): Ditto.
13577
13578 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13579
13580 PR tree-optimization/48497
13581 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
13582
13583 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13584
13585 PR tree-optimization/46728
13586 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
13587 to use gimple_val_nonnegative_real_p.
13588 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
13589 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
13590
13591 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
13592
13593 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
13594
13595 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
13596
13597 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
13598 constant vectors.
13599
13600 2011-06-07 Richard Guenther <rguenther@suse.de>
13601
13602 * stor-layout.c (initialize_sizetypes): Initialize all
13603 sizetypes based on target definitions.
13604 (set_sizetype): Remove.
13605 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
13606 * tree.h (set_sizetype): Remove.
13607
13608 2011-06-07 Nick Clifton <nickc@redhat.com>
13609
13610 * config.gcc: Unify V850 architecture options and add support for
13611 newer V850 architectures.
13612 * config/v850/t-v850e: Delete.
13613
13614 2011-06-07 Richard Guenther <rguenther@suse.de>
13615
13616 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
13617 Call set_sizetype from here.
13618
13619 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
13620
13621 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
13622 (*maddhisi4tb, *maddhisi4tt): New define_insns.
13623
13624 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
13625 Andrew Stubbs <ams@codesourcery.com>
13626
13627 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
13628 multiplies.
13629 * doc/md.texi (Canonicalization of Instructions): Document widening
13630 multiply canonicalization.
13631
13632 2011-06-07 Jakub Jelinek <jakub@redhat.com>
13633
13634 PR gcov-profile/49299
13635 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
13636
13637 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
13638
13639 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
13640 a pointer.
13641 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
13642 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
13643 vect_recog_pow_pattern): Likewise.
13644 (vect_pattern_recog_1): Remove declaration.
13645 (widened_name_p): Remove declaration. Add new argument to specify
13646 whether to check that both types are either signed or unsigned.
13647 (vect_recog_widen_mult_pattern): Update documentation. Handle
13648 unsigned patterns and multiplication by constants.
13649 (vect_pattern_recog_1): Update vect_recog_func references. Use
13650 statement information from the statement returned from pattern
13651 detection functions.
13652 (vect_pattern_recog): Update vect_recog_func reference.
13653 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
13654 multiplication by a constant use the type of the other operand.
13655
13656 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13657
13658 PR rtl-optimization/49145
13659 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
13660
13661 2011-06-06 Jakub Jelinek <jakub@redhat.com>
13662
13663 PR debug/49262
13664 * dwarf2out.c (native_encode_initializer): Decrement count in each
13665 iteration.
13666
13667 PR debug/49294
13668 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
13669 non-MODE_INT modes.
13670
13671 PR c++/49264
13672 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
13673 if stmt folded into nothing.
13674 * tree-inline.c (fold_marked_statements): If a builtin at the end of
13675 a bb folded into nothing, just update cgraph edges and move to next bb.
13676 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
13677 to be NULL. Don't compute count and frequency if new_call is NULL.
13678
13679 2011-06-04 Diego Novillo <dnovillo@google.com>
13680
13681 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
13682 (cgraph.o): Likewise.
13683 (cgraphunit.o): Likewise.
13684 * cgraphunit.c: Include lto-streamer.h
13685 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
13686 if LTO is enabled.
13687 * lto-streamer-in.c (unpack_value_fields): Call
13688 streamer_hooks.unpack_value_fields if set.
13689 (lto_materialize_tree): For unhandled nodes, first try to
13690 call lto_streamer_hooks.alloc_tree, if it exists.
13691 (lto_input_ts_decl_common_tree_pointers): Move reading of
13692 DECL_INITIAL to lto_streamer_read_tree.
13693 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
13694 (lto_streamer_read_tree): New.
13695 (lto_reader_init): Rename from lto_init_reader.
13696 Move initialization code to lto/lto.c.
13697 * lto-streamer-out.c (pack_value_fields): Call
13698 streamer_hooks.pack_value_fields if set.
13699 (lto_output_tree_ref): For tree nodes that are not normally indexable,
13700 call streamer_hooks.indexable_with_decls_p before giving up.
13701 (lto_output_ts_decl_common_tree_pointers): Move handling
13702 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
13703 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
13704 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
13705 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
13706 (lto_streamer_write_tree): New.
13707 (lto_output): Call lto_streamer_init directly.
13708 (lto_writer_init): Remove.
13709 * lto-streamer.c (streamer_hooks): New.
13710 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
13711 instead of lto_preload_common_nodes.
13712 (lto_is_streamable): Move from lto-streamer.h
13713 (lto_streamer_hooks_init): New.
13714 (streamer_hooks): New.
13715 (streamer_hooks_init): New.
13716 * lto-streamer.h (struct output_block): Forward declare.
13717 (struct lto_input_block): Likewise.
13718 (struct data_in): Likewise.
13719 (struct bitpack_d): Likewise.
13720 (struct streamer_hooks): Declare.
13721 (streamer_hooks): Declare.
13722 (lto_streamer_hooks_init): Declare.
13723 (lto_streamer_write_tree): Declare.
13724 (lto_streamer_read_tree): Declare.
13725 (streamer_hooks_init): Declare.
13726 (lto_is_streamable): Move to lto-streamer.c
13727
13728 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13729
13730 * longlong.h (smul_ppmm): The resulting register pair contains the
13731 higher order word first.
13732
13733 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13734
13735 PR tree-optimization/46728
13736 * builtins.c (powi_table): Remove.
13737 (powi_lookup_cost): Remove.
13738 (powi_cost): Remove.
13739 (expand_powi_1): Remove.
13740 (expand_powi): Remove.
13741 (expand_builtin_pow_root): Remove.
13742 (expand_builtin_pow): Remove.
13743 (expand_builtin_powi): Eliminate handling of constant exponent.
13744 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
13745
13746 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13747
13748 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
13749
13750 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13751
13752 * dce.c (reset_unmarked_insns_debug_uses): New.
13753 (delete_unmarked_insns): Skip debug insns.
13754 (prescan_insns_for_dce): Likewise.
13755 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
13756 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
13757 active reg can be found.
13758 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
13759 (convert_regs_1): Use it.
13760
13761 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13762
13763 * tree-pretty-print.c (dump_function_header): Add flags.
13764 Don't dump decl_uid with nouid.
13765 * tree-pretty-print.h (dump_function_header): Adjust.
13766 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
13767 * passes.c (pass_init_dump_file): Pass dump_flags on.
13768 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
13769
13770 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13771
13772 PR bootstrap/49270
13773 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
13774
13775 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
13776
13777 PR tree-optimization/49243
13778 * calls.c (setjmp_call_p): Also check if fndecl has the
13779 returns_twice attribute.
13780
13781 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13782
13783 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
13784 -ffast-math etc.
13785
13786 2011-06-06 Richard Henderson <rth@redhat.com>
13787 Georg-Johann Lay <avr@gjlay.de>
13788
13789 PR target/42210
13790 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
13791 New predicates.
13792 * config/avr/avr.md ("insv"): New insn expander.
13793 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
13794 "*insv.not.io", "*insv.reg"): New insns.
13795
13796 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
13797
13798 PR target/49285
13799 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
13800 to nonimmediate_operand from memory_operand for the operand that is to
13801 be forced to memory by the expander. Lose the constraints.
13802
13803 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
13804
13805 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
13806 EH return when delayed branches are disabled.
13807
13808 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
13809
13810 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
13811 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
13812 calculation.
13813 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
13814 Simplify MODE_V1DF and MODE_V2SF handling.
13815 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
13816 Simplify MODE_SF handling.
13817
13818 2011-06-04 Jan Hubicka <jh@suse.cz>
13819
13820 PR tree-optimization/48893
13821 PR tree-optimization/49091
13822 PR tree-optimization/49179
13823 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
13824 Bounds check.
13825
13826 2011-06-04 Jan Hubicka <jh@suse.cz>
13827
13828 PR lto/48954
13829 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
13830 bitmaps.
13831
13832 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
13833
13834 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
13835
13836 2011-06-04 Jakub Jelinek <jakub@redhat.com>
13837
13838 PR target/49281
13839 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
13840 to be strictly smaller than 1 << shiftcount.
13841
13842 2011-06-04 Jan Hubicka <jh@suse.cz>
13843
13844 PR tree-optimize/48929
13845 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
13846 of empty predicate.
13847
13848 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
13849
13850 PR debug/48333
13851 * calls.c (emit_call_1): Prefer the __builtin declaration of
13852 builtin functions.
13853
13854 2011-06-03 Diego Novillo <dnovillo@google.com>
13855
13856 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
13857 (lto_input_tree_pointers): Likewise.
13858 * lto-streamer-out.c (pack_value_fields): Likewise.
13859 (lto_output_tree_pointers): Likewise.
13860 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
13861 and OPTIMIZATION_NODE.
13862
13863 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13864
13865 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
13866 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
13867 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
13868 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
13869 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
13870 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
13871 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
13872 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
13873 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
13874 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
13875 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
13876 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
13877 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
13878 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
13879 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
13880 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
13881 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
13882 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
13883 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
13884 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
13885 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
13886 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
13887 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
13888 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
13889 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
13890 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
13891 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
13892 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
13893 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
13894 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
13895 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
13896 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
13897 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
13898 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
13899 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
13900 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
13901 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
13902 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
13903 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
13904 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
13905 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
13906 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
13907 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
13908 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
13909 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
13910 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
13911 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
13912 * system.h (MD_UNWIND_SUPPORT): Poison.
13913 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
13914 * doc/tm.texi: Regenerate.
13915 * unwind-dw2.c: Include md-unwind-support.h instead of
13916 MD_UNWIND_SUPPORT.
13917 * config/ia64/unwind-ia64.c: Likewise.
13918 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
13919
13920 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
13921
13922 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
13923
13924 2011-06-03 Richard Henderson <rth@redhat.com>
13925 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13926
13927 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
13928 (sigill_hdlr): Correct insn, insn size.
13929 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
13930
13931 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13932
13933 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
13934 t-slibgcc-dummy.
13935 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
13936 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
13937 * config/mips/t-iris: Remove.
13938 * config/mips/t-irix6: New file.
13939 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
13940
13941 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13942
13943 * Makefile.in (LIB2ADDEHDEP): Remove.
13944 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
13945 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
13946 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
13947 * config/t-darwin (LIB2ADDEHDEP): Remove.
13948 * config/t-freebsd (LIB2ADDEHDEP): Remove.
13949 * config/t-linux (LIB2ADDEHDEP): Remove.
13950
13951 2011-06-03 Diego Novillo <dnovillo@google.com>
13952
13953 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
13954 (lto_register_var_decl_in_symtab): Likewise.
13955 (lto_register_function_decl_in_symtab): Likewise.
13956 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
13957 logic to uniquify_nodes.
13958
13959 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13960
13961 * config/alpha/t-osf5: Remove.
13962 * config/alpha/t-osf-pthread: Remove.
13963 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
13964 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
13965
13966 2011-06-03 Julian Brown <julian@codesourcery.com>
13967
13968 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
13969 (strongarm1110): Use strongarm tuning.
13970 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
13971 * config/arm/arm.c (arm_strongarm_tune): New.
13972 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
13973 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
13974 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
13975 setting, using previous defaults or 1 for Cortex-A5.
13976 (arm_option_override): Set max_insns_skipped from current tuning.
13977
13978 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
13979
13980 * doc/install.texi (Options specification): Document --with-specs.
13981
13982 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13983
13984 * config/arm/neon.md (orndi3_neon): Actually split it.
13985
13986 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
13987
13988 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
13989 * var-tracking.c (reverse_op): Limite recurse depth to 5.
13990
13991 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
13992
13993 PR debug/47590
13994 * target.def (delay_sched2, delay_vartrack): New.
13995 * doc/tm.texi.in: Update.
13996 * doc/tm.texi: Rebuild.
13997 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
13998 * var-tracking.c (gate_handle_var_tracking): Likewise.
13999 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
14000 (bfin_flag_var_tracking): Drop.
14001 (output_file_start): Don't save and override flag_var_tracking.
14002 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
14003 (bfin_reorg): Test original variables.
14004 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
14005 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
14006 (ia64_flag_var_tracking): Drop.
14007 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
14008 (ia64_file_start): Don't save and override flag_var_tracking.
14009 (ia64_override_options_after_change): Ditto
14010 flag_schedule_insns_after_reload.
14011 (ia64_reorg): Test original variables.
14012 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
14013 (picochip_flag_var_tracking): Drop.
14014 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
14015 (picochip_option_override): Don't save and override
14016 flag_schedule_insns_after_reload.
14017 (picochip_asm_file_start): Ditto flag_var_tracking.
14018 (picochip_reorg): Test original variables.
14019 * config/spu/spu.c (spu_flag_var_tracking): Drop.
14020 (TARGET_DELAY_VARTRACK): Define.
14021 (spu_var_tracking): New.
14022 (spu_machine_dependent_reorg): Call it.
14023 (asm_file_start): Don't save and override flag_var_tracking.
14024
14025 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
14026
14027 PR target/49163
14028 * config/sh/predicates.md (general_movsrc_operand): Return 0
14029 for memory and memory subreg of which address is an invalid
14030 indexed address for QI and HImode.
14031 (general_movdst_operand): Likewise.
14032
14033 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
14034
14035 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
14036 edges only, when there is a non-local label in the function.
14037 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
14038
14039 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
14040
14041 * config/i386/constraints.md (Y3): New register constraint.
14042 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
14043 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
14044 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
14045 *sse2_interleave_lowv2df.
14046
14047 2011-06-02 Julian Brown <julian@codesourcery.com>
14048
14049 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
14050 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
14051 (arm_cortex_a5_tune): New.
14052
14053 2011-06-02 Julian Brown <julian@codesourcery.com>
14054
14055 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
14056 * config/arm/arm.c (arm_default_branch_cost): New.
14057 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
14058 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
14059 (arm_fa726_tune): Set branch_cost field using
14060 arm_default_branch_cost.
14061 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
14062 current_tune structure.
14063 * dojump.c (tm_p.h): Include file.
14064
14065 2011-06-02 Julian Brown <julian@codesourcery.com>
14066
14067 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
14068 tuning.
14069 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
14070 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
14071 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
14072 field.
14073 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
14074 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
14075 (arm_fa726te_tune): Add prefer_constant_pool setting.
14076 (arm_v6t2_tune, arm_cortex_tune): New.
14077 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
14078 prefer_constant_pool setting.
14079
14080 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
14081
14082 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
14083 switch statement.
14084 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
14085 (*movdf_internal) <case 6,7,8>: Ditto.
14086
14087 * config/i386/constraints.md (Y4): New register constraint.
14088 * config/i386/sse.md (vec_set<mode>_0): Merge with
14089 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
14090 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
14091 *vec_extractv2di_1_sse.
14092 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
14093 and *vec_concatv2di_rex64_sse.
14094
14095 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
14096
14097 PR target/48807
14098 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
14099 of cgraph_local_info for null before attempting to use it.
14100
14101 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
14102
14103 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
14104 (current_function_dynamic_alloc_count): Delete.
14105 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
14106 (expand_builtin_nonlocal_goto): Remove obsolete comment.
14107 (expand_builtin_update_setjmp_buf): Remove dead code.
14108 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
14109 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
14110 support.
14111 * function.c (instantiate_virtual_regs): Likewise.
14112 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
14113 for a block with a single abnormal incoming edge.
14114 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
14115 (SETJMP_VIA_SAVE_AREA): Delete.
14116 * config/sparc/sparc-protos.h (load_got_register): Declare.
14117 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
14118 (load_got_register): Make global.
14119 (sparc_frame_pointer_required): Add 'static'.
14120 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
14121 (sparc_builtin_setjmp_frame_value): New function.
14122 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
14123 (save_stack_nonlocal): New expander.
14124 (restore_stack_nonlocal): Likewise.
14125 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
14126 (nonlocal_goto_internal): New insn.
14127 (goto_handler_and_restore): Delete.
14128 (builtin_setjmp_setup): Likewise.
14129 (do_builtin_setjmp_setup): Likewise.
14130 (setjmp): Likewise.
14131 (builtin_setjmp_receiver): New expander.
14132
14133 2011-06-01 David Li <davidxl@google.com>
14134
14135 PR middle-end/49261
14136 * tree-pretty-print.c (dump_function_header): Format cleanup.
14137
14138 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
14139
14140 PR target/49238
14141 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
14142 needed when original operands are used for msw_skip comparison.
14143
14144 2011-06-01 Jakub Jelinek <jakub@redhat.com>
14145
14146 PR debug/49250
14147 * var-tracking.c (add_uses, add_stores): Don't call
14148 cselib_subst_to_values on ENTRY_VALUE.
14149
14150 2011-06-01 Diego Novillo <dnovillo@google.com>
14151
14152 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
14153 output_record_start with LTO_null instead of output_zero.
14154 (lto_output_ts_binfo_tree_pointers): Likewise.
14155 (lto_output_tree): Likewise.
14156 (output_eh_try_list): Likewise.
14157 (output_eh_region): Likewise.
14158 (output_eh_lp): Likewise.
14159 (output_eh_regions): Likewise.
14160 (output_bb): Likewise.
14161 (output_function): Likewise.
14162 (output_unreferenced_globals): Likewise.
14163 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
14164 instead of NUM_TREE_CODES.
14165 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
14166 (lto_output_int_in_range): Change << to >> when shifting VAL.
14167
14168 2011-06-01 Diego Novillo <dnovillo@google.com>
14169
14170 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
14171 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
14172
14173 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
14174
14175 PR target/45074
14176 * optabs.h (valid_multiword_target_p): Declare.
14177 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
14178 doing multi-word operations.
14179 * optabs.c (expand_binop): Likewise.
14180 (expand_doubleword_bswap): Likewise.
14181 (expand_absneg_bit): Likewise.
14182 (expand_unop): Likewise.
14183 (expand_copysign_bit): Likewise.
14184 (multiword_target_p): New function.
14185
14186 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
14187
14188 PR rtl-optimization/48830
14189 PR rtl-optimization/48808
14190 PR rtl-optimization/48792
14191 * reload.c (push_reload): Check contains_reg_of_mode.
14192 * reload1.c (strip_paradoxical_subreg): New function.
14193 (gen_reload_chain_without_interm_reg_p): Use it to handle
14194 paradoxical subregs.
14195 (emit_output_reload_insns, gen_reload): Likewise.
14196
14197 2011-06-01 David Li <davidxl@google.com>
14198
14199 * predict.c : Change pass name
14200 * ipa.c: Ditto.
14201 * dce.c: Ditto.
14202 * tree-profile.c: Ditto.
14203 * except.c: Ditto.
14204
14205 2011-06-01 David Li <davidxl@google.com>
14206
14207 * tree-pretty-print.c (dump_function_header): New function.
14208 * final.c (rest_of_clean_state): Use header dumper.
14209 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
14210 * passes.c (pass_init_dump_file): Use header dumper.
14211
14212 2011-06-01 Jakub Jelinek <jakub@redhat.com>
14213
14214 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
14215 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
14216 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
14217 New functions.
14218 (mem_loc_descriptor): Use them.
14219
14220 * var-tracking.c (create_entry_value): New function.
14221 (vt_add_function_parameter): Use it.
14222
14223 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14224
14225 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
14226 Include <signal.h>, <ucontext.h>.
14227 (sigill_caught): Define.
14228 (sigill_hdlr): New function.
14229 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
14230 insns can be executed.
14231 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
14232 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
14233
14234 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14235
14236 * config/t-slibgcc-darwin: Move to ...
14237 * config/t-slibgcc-dummy: ... this. Clarify comments.
14238 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
14239 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
14240 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
14241 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
14242 Remove i386/t-crtstuff from tmake_file.
14243 (i[34567]86-*-solaris2*): Remove t-svr4,
14244 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
14245 t-slibgcc-dummy.
14246 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
14247 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
14248 sparc/t-crtfm from tmake_file.
14249 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
14250 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
14251 Remove extra_parts.
14252 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
14253 * config/i386/t-nwld (SHLIB_LINK): Remove.
14254 * config/i386/t-rtems-i386: Rename to ...
14255 * config/i386/t-rtems: ... this.
14256 ($(T)crti.o, $(T)crtn.o): Remove.
14257 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
14258 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
14259 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
14260 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
14261 EXTRA_MULTILIB_PARTS): Remove.
14262 * config/sparc/t-sol2-64: Likewise.
14263 * config/sparc/t-sol2: Remove.
14264 * config/sparc/t-crtin: Remove.
14265 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
14266 * config/i386/gmon-sol2.c: Remove.
14267 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
14268 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
14269 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
14270 * config/i386/sol2-gc1.asm: Remove.
14271 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
14272 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
14273 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
14274 * config/t-slibgcc-sld: Remove.
14275
14276 2011-06-01 Jakub Jelinek <jakub@redhat.com>
14277
14278 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
14279 base_type_for_mode with op_mode instead of mode.
14280
14281 2011-06-01 Paul Brook <paul@cpodesourcery.com>
14282
14283 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
14284 Cortex-A15.
14285 * config/arm/arm-tune.md: Regenerate.
14286 * config/arm/arm-tables.opt: Regenerate.
14287 * config/arm/arm.c (FL_DIV): Rename...
14288 (FL_THUMB_DIV): ... to this.
14289 (FL_ARM_DIV): Define.
14290 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
14291 (arm_arch_hwdiv): Remove.
14292 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
14293 (arm_issue_rate): Add cortexr5.
14294 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
14295 __ARM_ARCH_EXT_IDIV__.
14296 (TARGET_IDIV): Define.
14297 (arm_arch_hwdiv): Remove.
14298 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
14299 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
14300 (divsi3, udivsi3): New patterns.
14301 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
14302 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
14303
14304 2011-06-01 Martin Jambor <mjambor@suse.cz>
14305
14306 * ipa-utils.c (ipa_dfs_info): New field scc_no.
14307 * ipa-utils.c (searchc): Set scc_no.
14308
14309 2011-06-01 Martin Jambor <mjambor@suse.cz>
14310
14311 * ipa-utils.c (searchc_env): New field allow_overwritable.
14312 (searchc): do not ignore edges to overwritable nodes if indicated
14313 by env->allow_overwritable.
14314 (ipa_reduced_postorder): Set env.allow_overwritable.
14315
14316 2011-06-01 Richard Guenther <rguenther@suse.de>
14317
14318 * tree.c (free_lang_data): Do not reset boolean_type_node nor
14319 char_type_node.
14320 * lto-streamer.c (lto_record_common_node): Take node pointer,
14321 do not register types.
14322 (lto_preload_common_nodes): Explicitly skip preloading nodes
14323 that differ between frontends.
14324
14325 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
14326
14327 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
14328 NON_FLOAT_REGS.
14329
14330 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
14331
14332 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
14333 parameter value for dump. Dump cost on outermost call only.
14334 (rs6000_memory_move_cost): Dump cost on outermost call only.
14335
14336 2011-05-31 Jakub Jelinek <jakub@redhat.com>
14337
14338 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
14339 DW_OP_GNU_convert ops.
14340
14341 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
14342 cselib_preserve_constants.
14343 (cselib_lookup_1): If cselib_preserve_constants,
14344 a new VALUE is being created for REG and there is a VALUE for the
14345 same register in wider mode, add another loc with lowpart SUBREG of
14346 the wider VALUE.
14347 (cselib_subst_to_values): Handle ENTRY_VALUE.
14348 * var-tracking.c (replace_expr_with_values): Return NULL for
14349 ENTRY_VALUE too.
14350 * dwarf2out.c (convert_descriptor_to_signed): New function.
14351 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
14352 instead of two shifts.
14353 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
14354 the right mode if needed.
14355 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
14356 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
14357 convert_descriptor_to_signed.
14358 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
14359 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
14360
14361 PR target/48688
14362 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
14363
14364 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
14365
14366 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
14367 of X87MODEI12 and SWI48x instead of SSEMODEI24.
14368 (SWI248x): New mode iterator, rename from X87MODEI.
14369 (X87MODEI): Remove mode iterator.
14370 (X87MODEI12): Ditto.
14371 (SSEMODEI24): Ditto.
14372
14373 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
14374
14375 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
14376 * doc/invoke.texi: Document max-vartrack-expr-depth.
14377 * var-tracking.c (EXPR_DEPTH): New.
14378 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
14379
14380 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
14381
14382 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
14383 * config/i386/sse.md: Add n to negated FMA pattern names.
14384
14385 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
14386
14387 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
14388
14389 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
14390
14391 * gengtype-state.c (read_state_params_structs): Initialize previous.
14392
14393 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
14394
14395 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
14396 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
14397
14398 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
14399
14400 * config/i386/i386.md (*movtf_internal): Avoid allocating general
14401 registers. Penalize F*r->o alternative to prevent partial memory
14402 stalls. Slightly penalize *roF->*r alternative. Generate SSE
14403 CONST_DOUBLE immediates when optimizing function for size. Do not move
14404 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
14405 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
14406 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
14407 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
14408 alternatives.
14409 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
14410
14411 (fp_register_operand splitters): Use fp_register_operand
14412 constraint. Do not use FP_REG_P in insn condition.
14413 (any_fp_register_operand splitters): Use any_fp_register_operand
14414 constraint. Do not use ANY_FP_REG_P in insn condition.
14415
14416 2011-05-31 Jan Hubicka <jh@suse.cz>
14417
14418 * cgraph.h (cgraph_inline_failed_t): Give enum a name
14419 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
14420 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
14421 (lto_output_edge): Use output_enum and var_len_unsigned.
14422 (lto_output_varpool_node): Likewise.
14423 (input_overwrite_node): Do not take resolution parameter;
14424 extract it from a bitpack.
14425 (input_node): Do not read resolution; use input_enum and
14426 var_len_unsigned.
14427 (input_varpool_node): Likewise.
14428 (input_edge): Likewise.
14429 (input_cgraph_1): Likewise.
14430
14431 2011-05-31 Richard Guenther <rguenther@suse.de>
14432
14433 * gimple.c (gimple_register_canonical_type): Do not register
14434 any types via gimple_register_type.
14435
14436 2011-05-31 Jan Hubicka <jh@suse.cz>
14437
14438 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
14439 of thunks.
14440
14441 2011-05-31 Jakub Jelinek <jakub@redhat.com>
14442
14443 PR rtl-optimization/49235
14444 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
14445 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
14446
14447 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
14448
14449 PR tree-optimization/49093
14450 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
14451 data references.
14452
14453 2011-05-31 Dodji Seketeli <dodji@redhat.com>
14454
14455 PR debug/49047
14456 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
14457 for concrete functions containing the code of cloned functions.
14458
14459 2011-05-31 Richard Guenther <rguenther@suse.de>
14460
14461 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
14462 to ...
14463 (forward_propagate_into_comparison_1): ... this.
14464 (forward_propagate_comparison): Rename to ...
14465 (forward_propagate_into_comparison): ... this. Split out
14466 real forward propagation code to ...
14467 (forward_propagate_comparison): ... this.
14468 (forward_propagate_into_gimple_cond): Remove looping.
14469 (forward_propagate_into_cond): Likewise.
14470 (simplify_not_neg_expr): Return whether we have done something.
14471 (simplify_gimple_switch): Likewise.
14472 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
14473 (ssa_forward_propagate_and_combine): ... this. Re-structure
14474 to do a forward forward-propagation walk on BBs and a backward
14475 stmt combining walk on BBs. Consistently re-scan changed statements.
14476 (pass_forwprop): Adjust.
14477
14478 2011-05-30 Ian Lance Taylor <iant@google.com>
14479
14480 * godump.c (go_format_type): Correct length of name added to
14481 obstack for anonymous field.
14482
14483 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
14484
14485 PR target/49186
14486 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
14487 part of the second operand is 0.
14488
14489 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
14490
14491 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
14492 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
14493 to memory for !TARGET_MEMORY_MISMATCH_STALL.
14494 (*movdf_internal_rex64): Do not penalize F->r alternative.
14495 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
14496 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
14497 when optimizing function for size. Do not move CONST_DOUBLEs
14498 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
14499 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
14500 SUBREGs. Do not check for MEM_P operands in the insn condition,
14501 check for ANY_FP_REGNO_P instead.
14502 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
14503 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
14504 function for speed.
14505 * config/i386/i386.c (ix86_option_override_internal): Do not
14506 set TARGET_INTEGER_DFMODE_MOVES here.
14507
14508 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
14509
14510 PR target/49168
14511 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
14512
14513 2011-05-30 Jakub Jelinek <jakub@redhat.com>
14514
14515 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
14516 DW_TAG_rvalue_reference_type even for
14517 -gdwarf-4 -fno-debug-types-section.
14518
14519 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14520
14521 PR tree-optimization/46728
14522 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
14523 (build_and_insert_binop): New.
14524 (gimple_expand_builtin_pow): Reorder args for
14525 build_and_insert_call; use build_and_insert_binop; add more
14526 optimizations for fractional exponents.
14527
14528 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
14529
14530 PR bootstrap/49190
14531
14532 Revert:
14533 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
14534
14535 * tree.h (struct tree_identifier): Inherit from tree_typed, not
14536 tree_common.
14537 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
14538 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
14539 TS_BASE instead of TS_COMMON.
14540 * varasm.c (assemble_name): Remove assert.
14541
14542 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
14543
14544 * config.gcc: Keep obselete list sorted.
14545
14546 2011-05-30 Jakub Jelinek <jakub@redhat.com>
14547 Eric Botcazou <ebotcazou@adacore.com>
14548
14549 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
14550 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
14551 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
14552 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
14553 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
14554
14555 2011-05-30 Richard Guenther <rguenther@suse.de>
14556
14557 * gimple.c (gimple_types_compatible_p_1): Compare record
14558 and union type members properly.
14559
14560 2011-05-30 Richard Guenther <rguenther@suse.de>
14561
14562 PR tree-optimization/49210
14563 * ipa-split.c (split_function): Care for the case where the call
14564 result is not trivially convertible to the result holding variable.
14565
14566 2011-05-30 Richard Guenther <rguenther@suse.de>
14567
14568 PR tree-optimization/49218
14569 * tree-vrp.c (adjust_range_with_scev): Properly check whether
14570 overflow occured.
14571
14572 2011-05-30 Richard Guenther <rguenther@suse.de>
14573
14574 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
14575 New function split out from ...
14576 (forward_propagate_into_gimple_cond): ... here. Adjust.
14577 (forward_propagate_into_cond): Likewise.
14578 (forward_propagate_comparison): Also propagate into
14579 comparisons on assignment RHS. Change return value to
14580 behave similar to forward_propagate_into_cond.
14581 (tree_ssa_forward_propagate_single_use_vars): Handle
14582 strict-overflow warnings properly for forward_propagate_comparison.
14583
14584 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14585
14586 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
14587 from plugin linker.
14588 * configure: Regenerate.
14589
14590 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
14591
14592 PR tree-optimization/49199
14593 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
14594 non-reduction operands are either defined in the loop or by induction.
14595
14596 2011-05-29 Xinliang David Li <davidxl@google.com>
14597
14598 * opts-global.c (handle_common_deferred_options): Handle new options.
14599 * passes.c (register_one_dump_file): Call register_pass_name.
14600 (execute_one_pass): Check explicit enable/disable flag.
14601 (passr_hash): New function.
14602 (passr_eq): Ditto.
14603 (register_pass_name): Ditto.
14604 (get_pass_by_name): Ditto.
14605 (pass_hash): Ditto.
14606 (pass_eq): Ditto.
14607 (enable_pass): Ditto.
14608 (disable_pass): Ditto.
14609 (is_pass_explicitly_enabled_or_disabled): Ditto.
14610
14611 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
14612
14613 * config/i386/i386.md (*movoi_internal_avx): Use
14614 standard_sse_constant_opcode for alternative 0.
14615 (*movti_internal_sse): Ditto.
14616 (*movti_internal_rex64): Use standard_sse_constant_opcode for
14617 alternative 2.
14618 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
14619 sselog1 type moves.
14620 (*movsi_internal): Ditto.
14621 (*movdi_internal): Ditto. Add ssecvt type moves.
14622
14623 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
14624
14625 PR target/48830
14626 * rtlanal.c (simplify_subreg_regno): Adjust comment.
14627
14628 2011-05-29 Jakub Jelinek <jakub@redhat.com>
14629
14630 PR rtl-optimization/49095
14631 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
14632 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
14633
14634 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
14635
14636 PR target/43995
14637 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
14638 recurse_p argument. Only follow register copies if it is set,
14639 and prevent mips_find_pic_call_symbol from recursing.
14640 (mips_find_pic_call_symbol): Add a recurse_p argument.
14641 Pass it to mips_pic_call_symbol_from_set.
14642 (mips_annotate_pic_calls): Update accordingly.
14643
14644 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
14645
14646 * emit-rtl.c (try_split): Use a loop to search for
14647 NOTE_INSN_CALL_ARG_LOCATIONs.
14648
14649 2011-05-29 Richard Guenther <rguenther@suse.de>
14650
14651 PR tree-optimization/49217
14652 * ipa-pure-const.c (propagate_pure_const): Fix typos.
14653
14654 2011-05-28 Jan Hubicka <jh@suse.cz>
14655
14656 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
14657 length.
14658 (string_slot_free): Remove
14659 (create_output_block): Initialize obstack.
14660 (destroy_output_block): Free obstack.
14661 (lto_string_index): Add PERSISTENT parameter; do not duplicate
14662 the string unless it needs to be added into the hash.
14663 (lto_output_string_with_length): Add persistent attribute;
14664 handle NULL strings.
14665 (lto_output_string): Add PERSISTENT parameter.
14666 (output_string_cst, output_identifier): Simplify.
14667 (lto_output_location_bitpack): Update.
14668 (lto_output_builtin_tree): Update.
14669 * lto-streamer.h (struct output_block): Add obstack.
14670 (lto_output_string, lto_output_string_with_length): Remove
14671 declarations; functions are static now.
14672
14673 2011-05-28 Jan Hubicka <jh@suse.cz>
14674
14675 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
14676 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
14677 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
14678 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
14679 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
14680 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
14681 unpack_ts_decl_with_vis_value_fields,
14682 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
14683 lto_get_builtin_tree): Use enum and variable length i/o.
14684 * basic-block.h (profile_status_d): Add PROFILE_LAST.
14685 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
14686 New functions.
14687 (bp_pack_enum, bp_unpack_enum): New macros.
14688
14689 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14690
14691 * genrecog.c: Remove redundant forward declarations.
14692
14693 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14694
14695 * config.gcc: Deprecate mips*-*-openbsd*.
14696
14697 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14698
14699 PR bootstrap/49195
14700 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
14701 for match_op_dup.
14702
14703 2011-05-27 Andrew Pinski <pinskia@gmail.com>
14704
14705 PR middle-end/48981
14706 * gengtype.c (vec_prefix_type): New function.
14707 (note_def_vec): Use vec_prefix_type and change the length
14708 attribute to be based on the prefix.
14709 * vec.c: Include coretypes.h before vec.h.
14710 (struct vec_prefix): Remove.
14711 (vec_gc_p_reserve): Change the offsetof to sizeof.
14712 (vec_gc_p_reserve_exact): Likewise.
14713 (vec_heap_p_reserve): Likewise.
14714 (vec_heap_p_reserve_exact): Likewise.
14715 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
14716 (vec_stack_p_reserve): Change the offsetof to sizeof.
14717 (vec_stack_p_reserve_exact): Likewise.
14718 * vec.h (struct vec_prefix): New struct definition.
14719 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
14720 (VEC_T_GTY(T,B)): Likewise.
14721 (DEF_VEC_FUNC_P(T)): Use prefix field.
14722 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
14723 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
14724
14725 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14726
14727 PR tree-optimization/46728
14728 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
14729 (powi_as_mults): Add gimple_set_location.
14730 (build_and_insert_call): New.
14731 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
14732 0.5, 0.25, 0.75, 1./3., or 1./6.
14733
14734 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
14735
14736 * doc/contrib.texi: Update copyright years.
14737 (Contributors): Add Zdenek Sojka.
14738
14739 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
14740
14741 * c-decl.c (c_push_function_context): Copy the current statement
14742 list stack.
14743 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
14744 (finish_struct): Call building_stmt_list_p instead of checking
14745 cur_stmt_list.
14746 * c-parser.c (c_parser_postfix_expression): Likewise.
14747 * c-typeck.c (c_end_compound_stmt): Likewise.
14748 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
14749 * tree-iterator.c (stmt_list_cache): Change to a VEC.
14750 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
14751 (free_stmt_list): Likewise.
14752 * tree.h (struct tree_statement_list): Include typed_tree instead
14753 of tree_common.
14754 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
14755 as TS_TYPED instead of TS_COMMON.
14756
14757 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14758 Uros Bizjak <ubizjak@gmail.com>
14759
14760 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
14761 (HAVE_AS_IX86_TLSGDPTL): Define.
14762 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
14763 (HAVE_AS_IX86_TLSLDMPLT): Define.
14764 * configure: Regenerate.
14765 * config.in: Regenerate.
14766 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
14767 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
14768 TARGET_SUN_TLS, use @tlsgdplt or @plt.
14769 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
14770 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
14771 @tlsldmplt or @plt.
14772 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
14773
14774 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
14775
14776 * sched-int.h (struct _haifa_deps_insn_data): New members cond
14777 and reverse_cond.
14778 (INSN_COND, INSN_REVERSE_COND): New macros.
14779 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
14780 once.
14781 (sched_get_condition_with_rev): Cache the results, and look them up
14782 if possible.
14783 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
14784 are clobbered by the current insn.
14785 * target.def (exposed_pipline): New sched data hook.
14786 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
14787 * doc/tm.texi: Regenerate.
14788
14789 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14790
14791 PR tree-optimization/49170
14792 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
14793 sincos or cexp.
14794
14795 2011-05-27 Richard Guenther <rguenther@suse.de>
14796
14797 PR middle-end/49189
14798 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
14799 of comparisons.
14800
14801 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
14802
14803 * haifa-sched.c (sched_scan_info): Remove.
14804 (schedule_block): Call sched_extend_luids rather than sched_init_luids
14805 with NULL args.
14806 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
14807 Remove functions.
14808 (sched_scan): Remove.
14809 (sched_extend_luids): Renamed from luids_extend_insn and no longer
14810 static. All callers changed.
14811 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
14812 static. All callers changed.
14813 (sched_init_luids): Remove all arguments except the first. All
14814 callers changed. Don't use sched_scan.
14815 (haifa_init_h_i_d): Likewise.
14816 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
14817 manually rather than using sched_init_luids. Likewise with
14818 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
14819 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
14820 rather than sched_init_luids with NULL args.
14821 * sel-sched-ir.c (new_insns): Remove variable.
14822 (sched_scan): New static function, previously in haifa-sched.c. Remove
14823 all arguments but the first two; all callers changed.
14824 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
14825 rather than sched_init_luids.
14826 (sel_init_bbs): Remove second argument. All callers changed.
14827 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
14828 with NULL arguments.
14829 (create_insn_rtx_from_pattern): Likewise.
14830 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
14831 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
14832 (sched_init_insn_luid, sched_extend_luids): Declare.
14833 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
14834 declarations.
14835
14836 2011-05-27 Richard Guenther <rguenther@suse.de>
14837
14838 PR middle-end/49177
14839 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
14840 A CMP B ? (T) true : (T) false for non-integral types T again.
14841
14842 2011-05-27 Jan Hubicka <jh@suse.cz>
14843
14844 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
14845 so 0 means NULL string.
14846 (lto_output_string_with_length): ... here.
14847 (lto_output_string, output_string_cst, output_identifier): Update
14848 handling of NULL strings.
14849 (lto_output_location_bitpack): New function.
14850 (lto_output_location): Use it.
14851 (lto_output_tree_ref): Use output_record_start.
14852 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
14853 len values.
14854 * lto-streamer-in.c (string_for_index): Break out from ...; offset
14855 values by 1.
14856 (input_string_internal): ... here;
14857 (input_string_cst, input_identifier, lto_input_string): Update handling
14858 of NULL strings.
14859 (lto_input_location_bitpack): New function
14860 (lto_input_location): Use it.
14861 (unpack_ts_type_common_value_fields): Pack align & alias in var len
14862 values.
14863 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
14864 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
14865 (bp_pack_value): Sanity check the value range.
14866 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
14867 New functions.
14868 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
14869 New functions.
14870
14871 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
14872
14873 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
14874 call_arg_location instructions down the floor.
14875
14876 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
14877
14878 PR rtl-optimization/49154
14879 * ira.c (setup_pressure_classes): Process class without sublcasses
14880 as a candidate for pressure classes.
14881
14882 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
14883
14884 PR rtl-optimization/48575
14885 * genrecog.c (position_type): New enum.
14886 (position): New structure.
14887 (decision): Use position structure instead of a string.
14888 (root_pos, peep2_insn_pos_list): New variables.
14889 (next_position, compare_positions): New functions.
14890 (new_decision): Use position structures instead of strings.
14891 (maybe_both_true): Likewise.
14892 (change_state): Likewise.
14893 (write_tree): Likewise.
14894 (make_insn_sequence): Likewise.
14895
14896 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
14897
14898 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
14899 TS_BASE instead of TS_COMMON.
14900 (find_decls_types_r): Check for TS_TYPED structure before looking at
14901 TREE_TYPE.
14902 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
14903 Add chain field.
14904 (BLOCK_CHAIN): Use new chain field.
14905
14906 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
14907
14908 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
14909 moves expensive on Power7 also.
14910
14911 2011-05-26 Richard Guenther <rguenther@suse.de>
14912
14913 * fold-const.c (fold_unary_loc): Remove bogus code.
14914
14915 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
14916
14917 * tree.h (struct tree_identifier): Inherit from tree_typed, not
14918 tree_common.
14919 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
14920 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
14921 TS_BASE instead of TS_COMMON.
14922 * varasm.c (assemble_name): Remove assert.
14923
14924 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
14925
14926 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
14927 substituted first.
14928 * libgcc-std.ver: Delete file.
14929
14930 2011-05-26 Richard Guenther <rguenther@suse.de>
14931
14932 PR tree-optimization/48702
14933 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
14934 only when we know the base address is within bounds.
14935 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
14936 assume the base address of TARGET_MEM_REFs is in bounds.
14937
14938 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14939
14940 PR target/49099
14941 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
14942 declaration in TARGET_SOLARIS.
14943
14944 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
14945
14946 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
14947 The instruction is then expanded explicitly.
14948 (supported_compare): Callable instruction.
14949 (compare): Likewise.
14950
14951 2011-05-26 Jakub Jelinek <jakub@redhat.com>
14952
14953 PR c++/49165
14954 * gimplify.c (shortcut_cond_r): Don't special case
14955 COND_EXPRs if they have void type on one of their arms.
14956
14957 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
14958
14959 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
14960 to reduce duplication, and to achieve a slightly more logical order
14961 of operations.
14962
14963 2011-05-26 Jakub Jelinek <jakub@redhat.com>
14964
14965 PR tree-optimization/49161
14966 * tree-vrp.c (struct case_info): New type.
14967 (compare_case_labels): Sort case_info structs instead of
14968 trees, and not primarily by CASE_LABEL uids but by
14969 label_for_block indexes.
14970 (find_switch_asserts): Put case labels into struct case_info
14971 array instead of TREE_VEC, adjust sorting, compare label_for_block
14972 values instead of CASE_LABELs.
14973
14974 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14975
14976 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
14977 ("orndi3_neon"): Likewise.
14978 ("bic<mode>3_neon"): Likewise.
14979
14980 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
14981
14982 PR tree-optimization/49038
14983 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
14984 Ensure at least one epilogue iteration if required by data
14985 accesses with gaps.
14986 * tree-vectorizer.h (struct _loop_vec_info): Add new field
14987 to mark loops that require peeling for gaps.
14988 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
14989 (vect_get_known_peeling_cost): Take peeling for gaps into
14990 account.
14991 (vect_transform_loop): Generate epilogue if required by data
14992 access with gaps.
14993 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
14994 loop as requiring an epilogue if there are gaps in the end of
14995 the strided group.
14996
14997 2011-05-25 Ian Lance Taylor <iant@google.com>
14998
14999 * godump.c (go_format_type): Output the first field with a usable
15000 Go type, if any.
15001
15002 2011-05-25 Ian Lance Taylor <iant@google.com>
15003
15004 * godump.c (go_format_type): Check for invalid type names, pointer
15005 target types, and struct field types.
15006
15007 2011-05-25 Jason Merrill <jason@redhat.com>
15008
15009 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
15010
15011 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
15012
15013 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
15014
15015 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
15016
15017 * config/i386/i386.md (*movqi_extv_1)): Put back
15018 "register_operand" check in "type" calculation.
15019 (*movqi_extzv_2): Likewise.
15020
15021 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
15022
15023 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
15024
15025 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
15026
15027 PR bootstrap/49160
15028 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
15029 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
15030 __divxc3, __divtc3): Wrap definitions in #ifndef.
15031
15032 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
15033
15034 PR target/49142
15035 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
15036 "register_operand" check and replace q_regs_operand with
15037 QIreg_operand in "type" calculation.
15038 (*movqi_extv_1): Likewise.
15039 (*movqi_extzv_2_rex64): Likewise.
15040 (*movqi_extzv_2): Likewise.
15041
15042 * config/i386/predicates.md (QIreg_operand): New.
15043
15044 2011-05-25 Richard Guenther <rguenther@suse.de>
15045
15046 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15047 type-based offset disambiguation, streamline MEM_REF and
15048 TARGET_MEM_REF handling.
15049
15050 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
15051
15052 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
15053 (bdesc_special_args): Add pause intrinsic.
15054
15055 * config/i386/i386.md (UNSPEC_PAUSE): New.
15056 (pause): Likewise.
15057 (*pause): Likewise.
15058 * config/i386/ia32intrin.h (__pause): Likewise.
15059
15060 * doc/extend.texi (X86 Built-in Functions): Add documentation for
15061 pause intrinsic.
15062
15063 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15064
15065 PR tree-optimization/46728
15066 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
15067 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
15068
15069 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
15070
15071 * tree.h (struct tree_exp): Inherit from struct tree_typed.
15072 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
15073 instead of TS_COMMON.
15074
15075 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
15076
15077 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
15078 LIBGCC2_GNU_PREFIX is defined.
15079 (__N): New macro.
15080 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
15081 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
15082 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
15083 __clz_tab): Define using __N.
15084 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
15085 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
15086 * target.def (libfunc_gnu_prefix): New hook.
15087 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
15088 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
15089 * doc/tm.texi: Regenerate.
15090 * system.h (LIBGCC2_GNU_PREFIX): Poison.
15091 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
15092 account.
15093 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
15094 (init_optabs): Likewise for the bswap libfuncs.
15095 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
15096 and divide.
15097 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
15098 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
15099 * libgcc-std.ver: Remove.
15100 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
15101 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
15102 libgcc-std.ver.
15103 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
15104 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
15105 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
15106 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
15107 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
15108 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
15109 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
15110 * config/fixed-bit.h (FIXED_OP): Define differently depending on
15111 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
15112 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
15113
15114 2011-05-25 Jan Hubicka <jh@suse.cz>
15115
15116 * lto-streamer-out.c (output_record_start): Use lto_output_enum
15117 (lto_output_tree): Use output_record_start.
15118 * lto-streamer-in.c (input_record_start): Use lto_input_enum
15119 (lto_get_pickled_tree): Use input_record_start.
15120 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
15121 (lto_value_range_error): New function.
15122 * lto-streamer.h (lto_value_range_error): Declare.
15123 (lto_output_int_in_range, lto_input_int_in_range): New functions.
15124 (lto_output_enum, lto_input_enum): New macros.
15125
15126 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
15127
15128 * common.opt (flag_stack_usage_info): New variable.
15129 (-Wstack-usage): New option.
15130 * doc/invoke.texi (Warning options): Document -Wstack-usage.
15131 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
15132 <OPT_fstack_usage>: Likewise.
15133 * toplev.c (output_stack_usage): Handle -Wstack-usage.
15134 * calls.c (expand_call): Test flag_stack_usage_info variable instead
15135 of flag_stack_usage.
15136 (emit_library_call_value_1): Likewise.
15137 * explow.c (allocate_dynamic_stack_space): Likewise.
15138 * function.c (instantiate_virtual_regs ): Likewise.
15139 (prepare_function_start): Likewise.
15140 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
15141 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
15142 * config/arm/arm.c (arm_expand_prologue): Likewise.
15143 (thumb1_expand_prologue): Likewise.
15144 * config/avr/avr.c (expand_prologue): Likewise.
15145 * config/i386/i386.c (ix86_expand_prologue): Likewise.
15146 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
15147 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
15148 * config/mips/mips.c (mips_expand_prologue): Likewise.
15149 * config/pa/pa.c (hppa_expand_prologue): Likewise.
15150 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
15151 * config/s390/s390.c (s390_emit_prologue): Likewise.
15152 * config/sh/sh.c (sh_expand_prologue): Likewise.
15153 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
15154 * config/spu/spu.c (spu_expand_prologue): Likewise.
15155
15156 2011-05-25 Richard Guenther <rguenther@suse.de>
15157
15158 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
15159 (gimple_canonical_types_compatible_p): Likewise.
15160
15161 2011-05-25 Jan Hubicka <jh@suse.cz>
15162
15163 PR middle-end/49062
15164 * ipa.c (function_and_variable_visibility): Only add to same
15165 comdat group list if DECL_ONE_ONLY.
15166
15167 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
15168
15169 PR rtl-optimization/49014
15170 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
15171
15172 2011-05-25 Jakub Jelinek <jakub@redhat.com>
15173
15174 PR target/49128
15175 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
15176
15177 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
15178
15179 PR rtl-optimization/48757
15180 * ira-build.c (loop_with_eh_edge_p): Rename to
15181 loop_with_complex_edge_p, check edges on complexity, make function
15182 conditional.
15183 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
15184 conditional.
15185
15186 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
15187
15188 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
15189 force flag_ira_share_save_slots to 0.
15190
15191 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
15192
15193 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
15194 (vt_initialize): Set PROLOGUE_BB unconditionally.
15195 Add block comment about CFA_BASE_RTX machinery.
15196 Reset FP_CFA_OFFSET to -1 on all invalid paths.
15197 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
15198
15199 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
15200
15201 PR objc/48187
15202 * c-parser.c (c_parser_objc_class_instance_variables): More robust
15203 parsing of syntax error in ObjC instance variable lists. In
15204 particular, avoid an infinite loop if there is a stray ']'.
15205 Updated error message.
15206
15207 2011-05-24 Ian Lance Taylor <iant@google.com>
15208
15209 * godump.c (go_define): Don't accept a string immediately after
15210 another operand.
15211
15212 2011-05-24 Ian Lance Taylor <iant@google.com>
15213
15214 * godump.c (struct godump_container): Add invalid_hash field.
15215 (go_format_type): Return false if type is found in invalid_hash.
15216 (go_output_typedef): Add invalid type to invalid_hash.
15217 (go_finish): Create and delete invalid_hash.
15218
15219 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15220
15221 PR tree-optimization/46728
15222 * tree-ssa-math-opts.c (powi_table): New.
15223 (powi_lookup_cost): New.
15224 (powi_cost): New.
15225 (powi_as_mults_1): New.
15226 (powi_as_mults): New.
15227 (gimple_expand_builtin_powi): New.
15228 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
15229 (gate_cse_sincos): Remove sincos/cexp restriction.
15230
15231 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15232
15233 PR target/3746
15234 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
15235 mips-tdump native.
15236 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
15237 * mips-tdump.c: Likewise.
15238
15239 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
15240
15241 PR target/49128
15242 * config/i386/driver-i386.c (host_detect_local_cpu): Always
15243 add -mno-XXX. Handle FMA.
15244
15245 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
15246
15247 PR rtl-optimization/48633
15248 * ira-build.c (loop_with_eh_edge_p): New function.
15249 (mark_loops_for_removal): Use it.
15250
15251 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
15252
15253 PR rtl-optimization/48971
15254 * ira.c (setup_pressure_classes): Don't check register move cost
15255 for classes with one registers. Don't add pressure class if there
15256 is a pressure class with the same available hard registers.
15257 Check contains_reg_of_mode. Fix a typo in collecting
15258 temp_hard_regset. Ignore hard registers not belonging to a class.
15259
15260 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
15261
15262 PR target/49133
15263 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
15264
15265 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
15266 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15267
15268 PR gcov-profile/48845
15269 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
15270
15271 2011-05-24 Richard Guenther <rguenther@suse.de>
15272
15273 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
15274 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
15275 (gimple_types_compatible_p_1): Adjust.
15276 (iterative_hash_canonical_type): Do not bother about complete vs.
15277 incomplete types.
15278 (gimple_canonical_types_compatible_p): Likewise.
15279
15280 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15281
15282 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
15283
15284 2011-05-24 Richard Guenther <rguenther@suse.de>
15285
15286 PR bootstrap/49078
15287 * gimple.c (gimple_register_canonical_type): Revert
15288 previous change.
15289 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
15290 does not for a tree for the case where it matters. Cache
15291 pointer-type alias-sets.
15292
15293 2011-05-24 Joseph Myers <joseph@codesourcery.com>
15294
15295 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
15296 (OBJS): Remove options.o, opts-common.o and prefix.o.
15297 (OBJS-libcommon-target): New.
15298 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
15299 (BACKEND): Include libcommon-target.a.
15300 (MOSTLYCLEANFILES): Include libcommon-target.a.
15301 (libcommon-target.a): New.
15302 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
15303 prefix.o.
15304
15305 2011-05-23 Joseph Myers <joseph@codesourcery.com>
15306
15307 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
15308 parts of output shared with the driver.
15309 * optc-gen.awk: Don't generate parts of output not shared with the
15310 driver.
15311 * opth-gen.awk: Remove GCC_DRIVER conditionals.
15312 * doc/options.texi (SourcerInclude): Mention options-save.c.
15313 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
15314 (OBJS): Add options-save.o.
15315 (options-save.c, options-save.o): New.
15316 (options.o): Update dependencies.
15317 (gcc-options.o): Remove.
15318 (mostlyclean): Remove options-save.c.
15319
15320 2011-05-23 Jakub Jelinek <jakub@redhat.com>
15321
15322 PR debug/49032
15323 * dbxout.c: Include cgraph.h.
15324 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
15325 and without value expr, return NULL if no varpool node exists for
15326 it or if it is not needed.
15327 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
15328
15329 PR c/49120
15330 * c-decl.c (start_decl): Convert expr to void_type_node.
15331
15332 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
15333
15334 PR rtl-optimization/48826
15335 * emit-rtl.c (try_split): When splitting a call that is followed
15336 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
15337
15338 2011-05-23 Jakub Jelinek <jakub@redhat.com>
15339
15340 * cfgexpand.c (expand_debug_expr): For unused non-addressable
15341 parameters passed in memory prefer using DECL_INCOMING_RTL over
15342 the pseudos it will be copied into.
15343
15344 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
15345
15346 PR target/47315
15347 * config/i386/i386.c (ix86_option_override_internal): Save the
15348 initial options after checking vzeroupper.
15349
15350 2011-05-23 David Li <davidxl@google.com>
15351
15352 PR tree-optimization/48988
15353 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
15354 Initialize has_valid_pred for each pred chain.
15355
15356 2011-05-23 Richard Guenther <rguenther@suse.de>
15357
15358 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
15359 (iterative_hash_gimple_type): Always hash type names.
15360
15361 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
15362
15363 * c-typeck.c (build_function_call_vec): Tweak call to
15364 check_function_arguments.
15365
15366 2011-05-23 Richard Guenther <rguenther@suse.de>
15367
15368 PR tree-optimization/49115
15369 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
15370 is not necessarily carried out, do not claim it kills the ref.
15371 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
15372
15373 2011-05-23 Richard Guenther <rguenther@suse.de>
15374
15375 PR middle-end/15419
15376 * builtins.c (fold_builtin_memory_op): Be less restrictive about
15377 what pointer types we accept for folding.
15378
15379 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15380
15381 * gthr-gnat.c: Remove.
15382 * gthr-gnat.h: Remove.
15383 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
15384 * config/t-freebsd (LIB2ADDEH): Likewise.
15385 * config/t-linux (LIB2ADDEH): Likewise.
15386 * config/t-sol2 (LIB2ADDEH): Likewise.
15387 * config/ia64/t-vms (LIB2ADDEH): Likewise.
15388 * configure.ac (target_thread_file): Remove gnat handling.
15389 * configure: Regenerate.
15390 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
15391
15392 2011-05-23 Tristan Gingold <gingold@adacore.com>
15393 Eric Botcazou <ebotcazou@adacore.com>
15394
15395 * gcov.c (create_file_names): If no object directory is specified,
15396 keep the directory of the file.
15397
15398 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15399
15400 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
15401 * configure: Regenerate.
15402
15403 2011-05-23 Jakub Jelinek <jakub@redhat.com>
15404
15405 PR middle-end/48973
15406 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
15407 failed and the comparison has a single bit signed type, use
15408 constm1_rtx instead of const1_rtx for true value.
15409 (do_store_flag): If ops->type is single bit signed type, disable
15410 signel bit test optimization and pass -1 instead of 1 as last
15411 parameter to emit_store_flag_force.
15412
15413 2011-05-23 Tom de Vries <tom@codesourcery.com>
15414
15415 PR target/45098
15416 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
15417 function.
15418 (infer_loop_bounds_from_undefined): Use new function.
15419
15420 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
15421
15422 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
15423 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
15424 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
15425 and -O0 otherwise.
15426 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
15427
15428 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
15429
15430 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
15431 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
15432 returns true.
15433
15434 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
15435
15436 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
15437
15438 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
15439
15440 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
15441 UNSPEC_MOVE_PIC pattern.
15442
15443 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
15444
15445 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
15446 (sparc-*-rtems*): Likewise.
15447 (sparc64-*-elf*): Likewise.
15448 (sparc64-*-rtems*): Likewise.
15449 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
15450 * config/sparc/t-crtin: New file.
15451 * config/sparc/t-sol2 (crti.o): Delete rule.
15452 (crtn.o): Likewise.
15453 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
15454 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
15455 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
15456 (ENDFILE_SPEC): Add crtn.o.
15457
15458 2011-05-22 Tom de Vries <tom@codesourcery.com>
15459
15460 PR middle-end/48689
15461 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
15462 CODE_CONTAINS_STRUCT (TS_COMMON).
15463
15464 2011-05-22 Jakub Jelinek <jakub@redhat.com>
15465
15466 PR middle-end/49029
15467 * expmed.c (extract_fixed_bit_field): Test whether target can be used
15468 only after deciding which mode to use.
15469
15470 2011-05-22 Tom de Vries <tom@codesourcery.com>
15471
15472 PR target/45098
15473 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
15474 for call to get_shiftadd_cost.
15475
15476 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
15477
15478 PR target/49104
15479 * config/i386/cpuid.h (bit_MMXEXT): New define.
15480
15481 2011-05-22 Nick Clifton <nickc@redhat.com>
15482
15483 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
15484 initialisation of non-existant args[2] element. Use args[] array
15485 not arg[] array to pass arguments to build_function_type_list.
15486
15487 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
15488
15489 PR tree-optimization/49087
15490 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
15491
15492 2011-05-21 Jason Merrill <jason@redhat.com>
15493
15494 PR c++/49092
15495 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
15496 static storage duration.
15497
15498 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
15499
15500 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
15501 frame pointer.
15502
15503 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
15504
15505 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
15506 false if there are call-saved registers here...
15507 (sparc_can_use_return_insn_p): ...but here instead.
15508 (save_or_restore_regs): Fix thinko.
15509 (sparc_expand_prologue): Use current_function_is_leaf.
15510 (sparc_frame_pointer_required): Likewise.
15511
15512 2011-05-21 Nick Clifton <nickc@redhat.com>
15513
15514 PR target/49098
15515 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
15516
15517 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
15518
15519 * gengtype.c (walk_type): Implemented "atomic" GTY option.
15520 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
15521
15522 2011-05-21 Joseph Myers <joseph@codesourcery.com>
15523
15524 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
15525 * optc-gen.awk: Move common code to opt-read.awk.
15526 * opth-gen.awk: Likewise.
15527 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
15528
15529 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
15530
15531 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
15532
15533 2011-05-20 Tom de Vries <tom@codesourcery.com>
15534
15535 PR target/45098
15536 * tree-ssa-loop-ivopts.c: Include expmed.h.
15537 (get_shiftadd_cost): New function.
15538 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
15539
15540 2011-05-20 Jakub Jelinek <jakub@redhat.com>
15541
15542 PR bootstrap/49086
15543 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
15544 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
15545
15546 2011-05-20 Joseph Myers <joseph@codesourcery.com>
15547
15548 * Makefile.in: Update comment referring to $(OBJS-common).
15549
15550 2011-05-20 Ian Lance Taylor <iant@google.com>
15551
15552 * godump.c (go_output_typedef): Put enum constants in the macro
15553 hash table to avoid duplicate Go const definitions.
15554
15555 2011-05-20 Joseph Myers <joseph@codesourcery.com>
15556
15557 * Makefile.in (LIBDEPS): Add libcommon.a.
15558 (LIBS): Likewise.
15559 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
15560 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
15561 pretty-print.o and version.o.
15562 (OBJS-libcommon): New.
15563 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
15564 (BACKEND): Add libcommon.a.
15565 (MOSTLYCLEANFILES): Likewise.
15566 (libcommon.a): New.
15567 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
15568 (cpp$(exeext)): Likewise.
15569 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
15570 pretty-print.o and input.o.
15571 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
15572 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
15573 (errors.o): Remove.
15574 (mips-tfile): Don't explicitly use version.o.
15575 (mips-tdump): Likewise.
15576 (gcov.o): Depend on $(DIAGNOSTIC_H).
15577 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
15578 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
15579 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
15580 * gcov-dump.c: Include intl.h and diagnostic.h.
15581 (main): Initialize diagnostics.
15582 * gcov.c: Include diagnostic.h.
15583 (fnotice): Remove.
15584 (main): Initialize diagnostics.
15585 * lto-wrapper.c: Include diagnostic.h.
15586 (main): Initialize diagnostics.
15587
15588 2011-05-20 Michael Matz <matz@suse.de>
15589
15590 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
15591
15592 2011-05-20 Michael Matz <matz@suse.de>
15593 Richard Guenther <rguenther@suse.de>
15594
15595 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
15596 use lto_streamer_cache_append directly instead of returning a VEC.
15597 (preload_common_node): Remove.
15598 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
15599 track seen nodes.
15600 (lto_streamer_cache_create): Call lto_preload_common_nodes.
15601
15602 2011-05-20 Richard Guenther <rguenther@suse.de>
15603
15604 PR tree-optimization/49079
15605 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
15606 MEM_REFs correctly for the trailing array access detection.
15607 Special case constants the same way as decls for overall size
15608 constraining.
15609
15610 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
15611
15612 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
15613 argument expansion.
15614
15615 2011-05-20 Jakub Jelinek <jakub@redhat.com>
15616
15617 PR tree-optimization/49073
15618 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
15619 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
15620 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
15621
15622 2011-05-20 Richard Guenther <rguenther@suse.de>
15623
15624 PR middle-end/48849
15625 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
15626 of pointer types the same way the middle-end does.
15627
15628 2011-05-20 Richard Guenther <rguenther@suse.de>
15629
15630 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
15631 or pointer-to chains. Delay all fixup to uniquify_nodes.
15632
15633 2011-05-19 Quentin Neill <quentin.neill@amd.com>
15634
15635 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
15636 (fma4_fmaddsub): Likewise
15637
15638 2011-05-19 Jan Hubicka <jh@suse.cz>
15639
15640 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
15641 (GIMPLE_TYPE_PAIR_SIZE): New macro.
15642 (type_pair_cache): New static var.
15643 (lookup_type_pair): Use fixed sized custom hash; make inline.
15644 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
15645 calls of lookup_type_pair.
15646 (print_gimple_types_stats): Remove cache stats.
15647 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
15648 and gtc_ob.
15649
15650 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
15651
15652 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
15653 when TARGET_RDRND is active.
15654 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
15655 Generate dummy SImode target register when target is NULL.
15656
15657 2011-05-19 Joseph Myers <joseph@codesourcery.com>
15658
15659 * config/arm/arm-fpus.def: New.
15660 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
15661 arm-fpus.def.
15662 * config/arm/arm-tables.opt: Regenerate.
15663 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
15664 (arm_option_override): Don't decode FPU name to string here.
15665 * config/arm/arm.opt (mfpu=): Use Enum.
15666 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
15667 Update dependencies.
15668
15669 2011-05-19 Joseph Myers <joseph@codesourcery.com>
15670
15671 * collect2.c: Include diagnostic.h.
15672 (fatal_perror, fatal, error, fancy_abort): Remove.
15673 (main): Set progname. Call xmalloc_set_program_name and
15674 diagnostic_initialize.
15675 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
15676 scan_libraries, resolve_lib_name): Call fatal_error instead of
15677 fatal and fatal_perror.
15678 * collect2.h (error, fatal, fatal_perror): Don't declare.
15679 * tlink.c: Include diagnostic-core.h.
15680 (recompile_files): Call fatal_error instead of fatal_perror.
15681 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
15682 pretty-print.o and input.o.
15683 (collect2.o, tlink.o): Update dependencies.
15684
15685 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15686
15687 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
15688
15689 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15690
15691 PR target/40483
15692 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
15693 COMDAT group syntax, both SPARC and x86 variants.
15694 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
15695 * configure: Regenerate.
15696 * config/sol2.h (TARGET_SOLARIS): Define.
15697 (PUSHSECTION_FORMAT): Remove.
15698 (SECTION_NAME_FORMAT): Define.
15699 * config/sol2.c: Include hashtab.h.
15700 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
15701 expansion, using SECTION_NAME_FORMAT.
15702 (solaris_comdat_htab): New variable.
15703 (struct comdat_entry): Define.
15704 (comdat_hash): New function.
15705 (comdat_eq): New function.
15706 (solaris_elf_asm_comdat_section): New function.
15707 (solaris_define_comdat_signature): New function.
15708 (solaris_code_end): New function.
15709 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
15710 (solaris_code_end): Declare.
15711 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
15712 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
15713 solaris_code_end.
15714 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
15715 Remove ATTRIBUTE_UNUSED.
15716 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
15717 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
15718 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
15719 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
15720 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
15721 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
15722 (PUSHSECTION_FORMAT): Remove.
15723 (SECTION_NAME_FORMAT): Redefine.
15724
15725 2011-05-19 Kai Tietz <ktietz@redhat.com>
15726
15727 * tree-cfg.c (verify_gimple_assign_binary): Barf on
15728 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
15729 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
15730
15731 2011-05-19 Anatoly Sokolov <aesok@post.ru>
15732 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15733
15734 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
15735
15736 2011-05-19 Richard Guenther <rguenther@suse.de>
15737
15738 PR middle-end/48985
15739 * tree-object-size.c (addr_object_size): If the pointed-to
15740 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
15741
15742 2011-05-19 Richard Guenther <rguenther@suse.de>
15743
15744 * gimple.c (gimple_types_compatible_p_1): Compare names of
15745 the types themselves.
15746 (iterative_hash_gimple_type): And hash them that way.
15747 (gimple_register_type_1): If we register a main variant properly
15748 initialize the leader to ourselves.
15749
15750 2011-05-19 Tom de Vries <tom@codesourcery.com>
15751
15752 PR target/45098
15753 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
15754 get_loop_invariant_expr_id.
15755 (get_loop_invariant_expr_id): Use get_expr_id.
15756 (parm_decl_cost): New function.
15757 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
15758 Improve bound cost estimation. Use different inv_expr_id for elim and
15759 express cases.
15760
15761 2011-05-19 Tom de Vries <tom@codesourcery.com>
15762
15763 PR target/45098
15764 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
15765 cost_base.cost == 0.
15766
15767 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
15768
15769 PR target/49002
15770 * config/i386/sse.md
15771 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
15772 load cast.
15773
15774 2011-05-18 Jakub Jelinek <jakub@redhat.com>
15775
15776 PR tree-optimization/49039
15777 * tree-vrp.c (extract_range_from_binary_expr): For
15778 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
15779 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
15780
15781 2011-05-18 Tom de Vries <tom@codesourcery.com>
15782
15783 PR target/45098
15784 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
15785
15786 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
15787
15788 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
15789 (*tls_global_dynamic_64): Ditto.
15790 (*tls_local_dynamic_base_32_gnu): Ditto.
15791 (*tls_local_dynamic_base_64): Ditto.
15792 (tls_initial_exec_64_sun): Ditto.
15793
15794 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
15795
15796 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
15797 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
15798 bf592-none.
15799 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
15800 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
15801 * config/bfin/bfin.c (bfin_cpus): Add bf592.
15802 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15803 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
15804 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
15805 * config/bfin/elf.h (LIB_SPEC): Add bf592.
15806
15807 2011-05-18 Joseph Myers <joseph@codesourcery.com>
15808
15809 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
15810 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
15811 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
15812 target_thread_pointer, arm_structure_size_boundary, struct
15813 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
15814 struct abi_name, arm_all_abis): Remove.
15815 (arm_option_override) Don't process most enumerated option values here.
15816 Don't process target_fpe_name here. Work with integer not string for
15817 structure size boundary; use separate diagnostics for each case.
15818 * config/arm/arm.h (enum float_abi_type, enum
15819 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
15820 to arm-opts.h.
15821 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
15822 arm_structure_size_boundary): Remove.
15823 * config/arm/arm.opt (mabi=): Use Enum and Init.
15824 (arm_abi_type): New Enum and EnumValue entries.
15825 (mfloat-abi=): Use Enum and Init.
15826 (float_abi_type): New Enum and EnumValue entries.
15827 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
15828 (mfp16-format=): Use Enum and Init.
15829 (arm_fp16_format_type): New Enum and EnumValue entries.
15830 (mstructure-size-boundary=): Use UInteger and Init.
15831 (mtp=): Use Enum and Init.
15832 (arm_tp_type): New Enum and EnumValue entries.
15833
15834 2011-05-18 Richard Guenther <rguenther@suse.de>
15835
15836 PR tree-optimization/49018
15837 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
15838 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
15839 gimple_has_side_effects.
15840
15841 2011-05-18 Richard Guenther <rguenther@suse.de>
15842
15843 * gimple.c (gimple_register_type_1): New function, split out from ...
15844 (gimple_register_type): ... here. Avoid infinite recursion.
15845
15846 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
15847
15848 PR tree-optimization/41881
15849 * tree-vectorizer.h (struct _loop_vec_info): Add new field
15850 reduction_chains along with a macro for its access.
15851 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
15852 (destroy_loop_vec_info): Free reduction chains.
15853 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
15854 (vect_is_slp_reduction): New function.
15855 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
15856 (vect_create_epilog_for_reduction): Support SLP reduction chains.
15857 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
15858 definition types for reduction chains.
15859 (vect_supported_load_permutation_p): Don't allow permutations for
15860 reduction chains.
15861 (vect_analyze_slp_instance): Support reduction chains.
15862 (vect_analyze_slp): Try to build SLP instance from reduction chains.
15863 (vect_get_constant_vectors): Handle reduction chains.
15864 (vect_schedule_slp_instance): Mark the first statement of the
15865 reduction chain as reduction.
15866
15867 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
15868
15869 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
15870 names for group elements access.
15871 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
15872 reduction chains as well. Remove data reference and interleaving
15873 related words from the fields names.
15874 * tree-vect-loop.c (vect_transform_loop): Use new names for group
15875 elements access.
15876 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
15877 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
15878 vect_update_interleaving_chain, vect_same_range_drs,
15879 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
15880 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
15881 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
15882 vect_analyze_group_access, vect_analyze_data_ref_access,
15883 vect_create_data_ref_ptr, vect_transform_strided_load,
15884 vect_record_strided_load_vectors): Likewise.
15885 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
15886 vect_model_load_cost, vectorizable_store, vectorizable_load,
15887 vect_remove_stores, new_stmt_vec_info): Likewise.
15888 * tree-vect-slp.c (vect_build_slp_tree,
15889 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
15890
15891 2011-05-18 Richard Guenther <rguenther@suse.de>
15892
15893 PR middle-end/48989
15894 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
15895 operand verification.
15896 (verify_gimple_assign_binary): Likewise.
15897 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
15898 to non-1-precision BOOLEAN_TYPEs.
15899
15900 2011-05-18 Tom de Vries <tom@codesourcery.com>
15901
15902 PR target/45098
15903 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
15904
15905 2011-05-18 Jakub Jelinek <jakub@redhat.com>
15906
15907 PR tree-optimization/49000
15908 * tree-ssa.c (execute_update_addresses_taken): Call
15909 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
15910 be rewritten and decl has been marked for renaming, reset
15911 the debug stmt.
15912
15913 2011-05-17 Joseph Myers <joseph@codesourcery.com>
15914
15915 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
15916 enum_opts_set when testing if attributes have set -mfpmath=.
15917
15918 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15919
15920 * config/mips/mips.c (mips_handle_option): Remove unused variable.
15921
15922 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
15923
15924 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
15925 info->entry with 0
15926 * tree-inline.c (maybe_inline_call_in_expr): Initialize
15927 id.transform_lang_insert_block with NULL.
15928
15929 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
15930
15931 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
15932 (output_fp_compare): Change args 3 and 4 to bool.
15933 (ix86_expand_call): Change arg 6 to bool.
15934 (ix86_attr_length_immediate_default): Change arg 2 to bool.
15935 (ix86_attr_length_vex_default): Change arg 3 to bool.
15936 * config/i386/i386.md: Update all uses.
15937 * config/i386/i386.c: Ditto.
15938 (ix86_flags_dependent): Change return type to bool.
15939
15940 2011-05-17 Richard Guenther <rguenther@suse.de>
15941
15942 * gimple.c (type_hash_pair_compare): Fix comparison.
15943
15944 2011-05-17 Richard Guenther <rguenther@suse.de>
15945
15946 * gimple.c (iterative_hash_gimple_type): Simplify singleton
15947 case some more, fix final hash value of the non-singleton case.
15948
15949 2011-05-17 Richard Guenther <rguenther@suse.de>
15950
15951 PR bootstrap/49013
15952 Revert
15953 2011-05-16 Richard Guenther <rguenther@suse.de>
15954
15955 * gimple.c (gimple_types_compatible_p_1): Use names of the
15956 type itself, not its main variant.
15957 (iterative_hash_gimple_type): Likewise.
15958
15959 2011-05-17 Richard Guenther <rguenther@suse.de>
15960
15961 * gimple.c (gimple_register_canonical_type): Use the main-variant
15962 leader for computing the canonical type.
15963
15964 2011-05-17 Nick Clifton <nickc@redhat.com>
15965
15966 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
15967 moves.
15968
15969 * config/rx/rx.md: Add peephole to remove redundant extensions
15970 after loads.
15971 (bitset_in_memory): Use rx_restricted_mem_operand.
15972 (bitinvert_in_memory): Likewise.
15973 (bitclr_in_memory): Likewise.
15974
15975 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
15976 Nick Clifton <nickc@redhat.com>
15977
15978 * config/rx/rx.md: Add peepholes to match a register move followed
15979 by a comparison of the moved register. Replace these with an
15980 addition of zero that does both actions in one instruction.
15981
15982 2011-05-17 Jakub Jelinek <jakub@redhat.com>
15983
15984 PR target/48986
15985 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
15986 predicate to allow CONST_INT.
15987 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
15988
15989 2011-05-16 Joseph Myers <joseph@codesourcery.com>
15990
15991 * opts-common.c (opt_enum_arg_to_value): New.
15992 * opts.h (opt_enum_arg_to_value): Declare.
15993 * config/i386/i386.opt (fpmath): Remove.
15994 (mfpmath=): Use Enum, Init and Save.
15995 (fpmath_unit): New Enum and EnumValue entries.
15996 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
15997 name for function fpmath state.
15998 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
15999 * config/i386/i386.c: Include diagnostic.h.
16000 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
16001 (ix86_target_string): Take enum fpmath_unit value instead of string.
16002 (ix86_debug_options): Update call to ix86_target_string.
16003 (ix86_option_override_internal): Don't process fpmath strings here.
16004 (x86_function_specific_save, ix86_function_specific_restore):
16005 Don't handle fpmath state specially.
16006 (ix86_function_specific_print): Pass fpmath state to
16007 ix86_target_string instead of printing in this function.
16008 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
16009 Handle enum attributes.
16010 (IX86_ATTR_ENUM, ix86_opt_enum): New.
16011 (ix86_valid_target_attribute_tree): Update option_strings
16012 handling. Handle fpmath as enum option.
16013 (ix86_can_inline_p): Update field names for function fpmath state.
16014 (ix86_expand_builtin): Update call to ix86_target_string.
16015 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
16016 (ix86_fpmath): Remove.
16017 * config/i386/t-i386 (i386.o): Update dependencies.
16018
16019 2011-05-16 Joseph Myers <joseph@codesourcery.com>
16020
16021 PR preprocessor/48677
16022 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
16023 from decoded_options[0], not from itself.
16024
16025 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
16026
16027 * config/i386/constraints.md (z): New constraint.
16028 * config/i386/i386.c (c): New mode attribute.
16029 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
16030 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
16031 constraint for operand 0.
16032 (*call_vzeroupper): Ditto.
16033 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
16034 (*call_rex64_ms_sysv_vzeroupper): Ditto.
16035 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
16036 Use "lzm" constraint for operand 0.
16037 (*call_pop_vzeroupper): Ditto.
16038 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
16039 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
16040 constraint for operand 0.
16041 (*sibcall_vzeroupper): Ditto.
16042 (*sibcall_rex64_ms_sysv): Ditto.
16043 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
16044 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
16045 *sibcall_pop_1. Use "Uz" constraint for operand 0.
16046 (*sibcall_pop_vzeroupper): Ditto.
16047 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
16048 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
16049 mode iterator. Use "<c>zm" constraint for operand 1.
16050 (*call_value_vzeroupper): Ditto.
16051 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
16052 for operand 1.
16053 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
16054 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
16055 *call_value_pop_1. Use "lzm" constraint for operand 1.
16056 (*call_value_pop_vzeroupper): Ditto.
16057 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
16058 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
16059 mode iterator. Use "Uz" constraint for operand 1.
16060 (*sibcall_value_vzeroupper): Ditto.
16061 (*sibcall_value_rex64_ms_sysv): Ditto.
16062 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
16063 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
16064 constraint for operand 1.
16065 (*sibcall_value_pop_vzeroupper): Ditto.
16066 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
16067 and "z" constraint for operand 2.
16068 (*tls_global_dynamic_32_gnu): Ditto.
16069 (*tls_local_dynamic_base_32_gnu): Ditto.
16070 (*tls_local_dynamic_base_64): Ditto.
16071 (*tls_local_dynamic_32_once): Ditto.
16072 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
16073 Update all callers.
16074 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
16075
16076 2011-05-16 Richard Guenther <rguenther@suse.de>
16077
16078 * gimple.c (gimple_types_compatible_p_1): Use names of the
16079 type itself, not its main variant.
16080 (iterative_hash_gimple_type): Likewise.
16081
16082 2011-05-16 Richard Guenther <rguenther@suse.de>
16083
16084 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
16085 always visit pointer target and function result and argument types.
16086
16087 2011-05-16 Jason Merrill <jason@redhat.com>
16088
16089 PR c++/48999
16090 * tree-inline.c (copy_statement_list): Put back recursion.
16091
16092 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
16093
16094 PR target/27663
16095 PR target/41076
16096 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
16097 * config/avr/avr.md ("*ior<mode>qi.byte0",
16098 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
16099
16100 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
16101
16102 PR target/45099
16103 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
16104 register is needed for a function argument.
16105
16106 2011-05-16 Richard Guenther <rguenther@suse.de>
16107
16108 * gimple.c (struct type_hash_pair): New type.
16109 (type_hash_pair_compare): New function.
16110 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
16111
16112 2011-05-16 Revital Eres <revital.eres@linaro.org>
16113
16114 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
16115
16116 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
16117
16118 * config/i386/i386.md (floating point move splitters): Fix
16119 usage of standard_80387_constant_p.
16120 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
16121
16122 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
16123
16124 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
16125
16126 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
16127
16128 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
16129 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
16130 (tree_ssa_lim_finalize): Likewise.
16131
16132 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
16133
16134 * config/i386/constraint.md (Yd, Yx): New register constraints.
16135 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
16136 Yd conditional register constraint.
16137 (*movtf_internal): Use standard_sse_constant_opcode.
16138 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
16139 Yx conditional register constraint.
16140 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
16141 Yd conditional register constraint. Use standard_sse_constant_p to
16142 check for valid SSE constants and call standard_sse_constant_opcode to
16143 output SSE insn.
16144 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
16145 constants and call standard_sse_constant_opcode to output SSE insn.
16146 * config/i386/i386.c (ix86_option_ovverride_internal): Set
16147 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
16148 optimize_size is set.
16149 (standard_sse_constant_opcode): Output conditional AVX insn templates.
16150
16151 2011-05-14 Tobias Burnus <burnus@net-b.de>
16152
16153 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
16154
16155 2011-05-13 Martin Jambor <mjambor@suse.cz>
16156
16157 * ipa-prop.c (ipa_cst_from_jfunc): New function.
16158 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
16159 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
16160 (evaluate_conditions_for_ipcp_clone): Removed.
16161 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
16162 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
16163 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
16164
16165 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
16166
16167 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
16168 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
16169 lieu of MAY_HAVE_DEBUG_STMTS.
16170 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
16171 debug statements if !MAY_HAVE_DEBUG_STMTS.
16172
16173 2011-05-13 Martin Thuresson <martint@google.com>
16174
16175 PR gcov-profile/47793
16176 * libgcov.c (gcov_exit): Support relative profile paths.
16177 * doc/invoke.texi (-fprofile-dir): Update for above change.
16178
16179 2011-05-13 Richard Guenther <rguenther@suse.de>
16180
16181 * gimple.c (gimple_canonical_types_compatible_p): Do not use
16182 type-pair caching, do not compare hashes.
16183
16184 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
16185
16186 PR middle-end/48965
16187 * tree-cfg.c (edge_to_cases_cleanup): Return true.
16188 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
16189
16190 2011-05-13 Kai Tietz <ktietz@redhat.com>
16191
16192 * gimplify.c (gimplify_expr): Make sure operand is boolified.
16193 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
16194 compatible type for TRUTH_NOT_EXPR.
16195
16196 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
16197
16198 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
16199 (ix86_hard_regno_mode_ok): Change return value to bool. Use
16200 can_create_pseudo_p ().
16201
16202 2011-05-13 Richard Guenther <rguenther@suse.de>
16203
16204 PR lto/48978
16205 * gimple.c (iterative_hash_gimple_type): Revert change in
16206 pointer target and function result and argument hashing.
16207
16208 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
16209
16210 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
16211 (*movxf_internal_nointeger): Ditto.
16212 (*movdf_internal_rex64): Ditto.
16213 (*movdf_internal): Ditto.
16214 (*movdf_internal_nointeger): Ditto.
16215 (*movsf_internal): Ditto.
16216 (sincos splitters): Use can_create_pseudo ().
16217
16218 2011-05-13 Joseph Myers <joseph@codesourcery.com>
16219
16220 * config/i386/i386-opts.h: New.
16221 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
16222 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
16223 ix86_section_threshold): Remove.
16224 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
16225 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
16226 OPT_mbranch_cost_.
16227 (ix86_option_override_internal): Don't decode strings for options
16228 other than -march=, -mtune= and -mfpmath=. Don't allow for
16229 __attribute__ uses in remaining diagnostics for options with
16230 string arguments. Don't check for integer arguments being negative.
16231 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
16232 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
16233 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
16234 ix86_branch_cost, ix86_section_threshold): Remove.
16235 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
16236 HeaderInclude.
16237 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
16238 but not Var.
16239 (masm=): Use Enum and Init.
16240 (asm_dialect): New Enum and EnumValue entries.
16241 (mbranch-cost=): Use UInteger.
16242 (mlarge-data-threshold=): Use UInteger and Init.
16243 (mcmodel=): Use Enum and Init.
16244 (cmodel): New Enum and EnumValue entries.
16245 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
16246 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
16247 mregparm=): Use UInteger.
16248 (mstringop-strategy=): Use Enum and Init.
16249 (stringop_alg): New Enum and EnumValue entries.
16250 (mtls-dialect=): Use Enum and Init.
16251 (tls_dialect): New Enum and EnumValue entries.
16252 (mabi=): Use Enum and Init.
16253 (calling_abi): New Enum and EnumValue entries.
16254 (mveclibabi=): Use Enum and Init.
16255 (ix86_veclibabi): New Enum and EnumValue entries.
16256
16257 2011-05-13 Nick Clifton <nickc@redhat.com>
16258
16259 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
16260 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
16261
16262 2011-05-13 Kai Tietz <ktietz@redhat.com>
16263
16264 PR middle-end/48984
16265 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
16266 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
16267 (gimple_boolify): Check for cast for boolean_type_node instead for
16268 BOOLEAN_TYPE.
16269
16270 2011-05-13 Richard Guenther <rguenther@suse.de>
16271
16272 PR tree-optimization/48172
16273 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
16274 multiplying by number of iterations for equal step.
16275 (vect_create_cond_for_alias_checks): Likewise.
16276
16277 2011-05-13 Andreas Schwab <schwab@redhat.com>
16278
16279 * configure.ac: Use AS_HELP_STRING throughout.
16280 * configure: Regenerate.
16281
16282 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
16283
16284 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
16285 (ix86_emit_restore_regs_using_mov): Likewise.
16286 (ix86_emit_restore_sse_regs_using_mov): Likewise.
16287
16288 2011-05-12 Anatoly Sokolov <aesok@post.ru>
16289
16290 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
16291 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
16292 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
16293 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
16294 RTX_OK_FOR_OLO10_P): ...here.
16295 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
16296 SYMBOLIC_CONST.
16297
16298 2011-05-12 Kai Tietz <ktietz@redhat.com>
16299
16300 * gimplify.c (gimple_boolify): Re-boolify expression
16301 arguments even if expression type is of kind BOOLEAN_TYPE.
16302 (gimplify_boolean_expr): Removed.
16303 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
16304 and XOR. Additional take care that we keep expression's type.
16305 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
16306 of TRUTH_AND|OR|XOR_EXPR.
16307
16308 2011-05-12 Jakub Jelinek <jakub@redhat.com>
16309
16310 PR tree-optimization/48975
16311 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
16312 on all bbs here and free and clear ifc_bbs at the end.
16313
16314 2011-05-12 Richard Guenther <rguenther@suse.de>
16315
16316 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
16317 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
16318 until after simple checks.
16319 (gimple_types_compatible_p): Likewise.
16320 (iterative_hash_gimple_type): Always hash pointer targets
16321 and function return and argument types.
16322 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
16323 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
16324 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
16325 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
16326 completely in the simple compare section.
16327 (gimple_register_canonical_type): Query the cache again after
16328 registering.
16329
16330 2011-05-12 Richard Guenther <rguenther@suse.de>
16331
16332 PR tree-optimization/48172
16333 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
16334 the number of iterations from the segment size calculation.
16335 (vect_create_cond_for_alias_checks): Adjust.
16336
16337 2011-05-12 Jakub Jelinek <jakub@redhat.com>
16338
16339 PR debug/48967
16340 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
16341 if validate_subreg fails.
16342
16343 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
16344
16345 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
16346 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
16347 early.
16348
16349 2011-05-12 DJ Delorie <dj@redhat.com>
16350
16351 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
16352 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
16353 created builtin into rx_builtins array.
16354 (rx_builtin_decl): New function.
16355 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
16356
16357 2011-05-12 DJ Delorie <dj@redhat.com>
16358 Nick Clifton <nickc@redhat.com>
16359
16360 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
16361 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
16362 (rx_is_legitimate_address): Add pre-decrement and post-increment
16363 addressing in HImode and QImode. Fix test for out of range
16364 REG+INT addressing.
16365 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
16366 (rx_align_for_label): Test label before extracting its usage count.
16367 (rx_adjust_insn_lengths): Fix selection of insn codes.
16368 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
16369
16370 2011-05-11 Jason Merrill <jason@redhat.com>
16371
16372 * tree.c (type_hash_canon): Use struct tree_type_non_common.
16373
16374 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
16375
16376 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
16377 reindent the subsequent block.
16378
16379 2011-05-11 Satoru Takabayashi <satorux@google.com>
16380 Paul Pluzhnikov <ppluzhnikov@google.com>
16381
16382 * doc/install.texi (Configuration): Document --with-linker-hash-style.
16383 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
16384 * config.in: Add LINKER_HASH_STYLE.
16385 * configure.ac: Add --with-linker-hash-style.
16386 * configure: Regenerate.
16387
16388 2011-05-11 Richard Guenther <rguenther@suse.de>
16389
16390 PR middle-end/48964
16391 * gimple.c (iterative_hash_canonical_type): Fix typo.
16392
16393 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
16394
16395 * config/i386/i386.c (legitimize_tls_address)
16396 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
16397 expanders directly for TARGET_GNU2_TLS. Determine pic and
16398 __tls_get_addr symbol reference here. Update call to
16399 gen_tls_global_dynamic_{32,64} for added arguments.
16400 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
16401 expanders directly for TARGET_GNU2_TLS. Determine
16402 __tls_get_addr symbol reference here. Update call to
16403 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
16404 unique UNSPEC REG_EQUIV to libcall block.
16405 (ix86_tls_get_addr): Declare static.
16406 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
16407 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
16408 Do not determine pic and __tls_get_addr symbol reference here. Do not
16409 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
16410 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
16411 (tls_global_dynamic_64): Add operand 2. Do not determine
16412 __tls_get_addr symbol reference here. Do not call
16413 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
16414 (tls_local_dynamic_base64): Ditto for operand 1.
16415
16416 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
16417
16418 * function.c (expand_function_start): Initialize stack_check_probe_note
16419 only if the generic stack checking mechanism is used.
16420
16421 2011-05-11 Richard Guenther <rguenther@suse.de>
16422
16423 PR tree-optimization/15256
16424 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
16425 (A & B) | C, combine (A op CST1) op CST2.
16426 (tree_ssa_forward_propagate_single_use_vars): Only bother to
16427 visit assigns that have uses.
16428
16429 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
16430
16431 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
16432 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
16433 (unpack_ts_type_common_value_fields): ...this. Update comment.
16434 (unpack_value_fields): Adjust for renaming.
16435 (lto_input_ts_type_tree_pointers): Split into...
16436 (lto_input_ts_type_common_tree_pointer): ...this and...
16437 (lto_input_ts_type_non_common_tree_pointers): ...this.
16438 (lto_input_tree_pointers): Adjust for above split.
16439 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
16440 (pack_ts_type_common_value_fields): ...this. Update comment.
16441 (lto_output_ts_type_tree_pointers): Split into...
16442 (lto_output_ts_type_common_tree_pointers): ...this and...
16443 (lto_output_ts_type_non_common_tree_pointers): ...this.
16444 (lto_output_tree_pointers): Adjust for above split.
16445 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
16446 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
16447 * stor-layout.c (vector_type_mode): Adjust location of mode field.
16448 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
16449 Define.
16450 (struct tree_type): Split into...
16451 (struct tree_type_common: ...this and...
16452 (struct tree_type_with_lang_specific): ...this and...
16453 (struct tree_type_non_common): ...this. Adjust accessor macros
16454 accordingly.
16455 (TYPE_VALUES_RAW): Define.
16456 (union tree_node): Update for above changes.
16457 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
16458 TS_TYPE_NON_COMMON.
16459 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
16460 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
16461 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
16462 * treestructu.def (TS_TYPE): Remove.
16463 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
16464 Define.
16465
16466 2011-05-11 Jakub Jelinek <jakub@redhat.com>
16467
16468 PR debug/48159
16469 * tree-ssa.c (reset_debug_uses): New function.
16470 * tree-flow.h (reset_debug_uses): New prototype.
16471 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
16472 * tree-loop-distribution.c (generate_loops_for_partition): Call
16473 reset_debug_uses on the stmts that will be removed. Keep around
16474 all debug stmts, don't count them as bits in partition bitmap.
16475 (generate_builtin): Don't count debug stmts or labels as bits in
16476 partition bitmap.
16477
16478 2011-05-11 Richard Guenther <rguenther@suse.de>
16479
16480 * gimple.c (gimple_type_hash_1): Merge with ...
16481 (gimple_type_hash): ... this.
16482 (gtc_visit): Remove mode parameter and simplify accordingly.
16483 (gimple_types_compatible_p_1): Likewise.
16484 (gimple_types_compatible_p): Likewise.
16485 (iterative_hash_gimple_type): Likewise.
16486 (visit): Likewise.
16487 (gimple_type_eq): Adjust.
16488
16489 2011-05-11 Revital Eres <revital.eres@linaro.org>
16490
16491 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
16492 enters the branch create an anti edge in the opposite direction
16493 to prevent the creation of reg-moves.
16494 * modulo-sched.c: Adjust comment to reflect the fact we are
16495 scheduling closing branch.
16496 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
16497 (stage_count): New field in struct partial_schedule.
16498 (calculate_stage_count): New function.
16499 (normalize_sched_times): Rename to reset_sched_times and handle
16500 incrementing the sched time of the nodes by a constant value
16501 passed as parameter.
16502 (duplicate_insns_of_cycles): Skip closing branch.
16503 (sms_schedule_by_order): Schedule closing branch.
16504 (ps_insn_find_column): Handle closing branch.
16505 (sms_schedule): Call reset_sched_times and adjust the code to
16506 support scheduling of the closing branch.
16507 (ps_insert_empty_row): Update calls to normalize_sched_times
16508 and rotate_partial_schedule functions.
16509
16510 2011-05-11 Richard Guenther <rguenther@suse.de>
16511
16512 PR middle-end/48953
16513 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
16514
16515 2011-05-11 Joseph Myers <joseph@codesourcery.com>
16516
16517 * opts.c (finish_options): Move warning settings from process_options.
16518 * toplev.c (process_options): Move warning settings to finish_options.
16519
16520 2011-05-11 Richard Guenther <rguenther@suse.de>
16521
16522 PR tree-optimization/18041
16523 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
16524 (simplify_bitwise_binary): ... this. Handle operand conversions
16525 by applying them to the result instead.
16526 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
16527
16528 2011-05-11 Richard Guenther <rguenther@suse.de>
16529
16530 * gimple.c (gimple_canonical_types_compatible_p): Split out
16531 from gimple_types_compatible_p and friends. Do not recurse
16532 to pointed-to types.
16533 (gimple_canonical_type_eq): Use it.
16534 (iterative_hash_canonical_type): Split out from
16535 iterative_hash_gimple_type and friends. Do not recurse
16536 to pointed-to types.
16537 (gimple_canonical_type_hash): Use it, allocate the hash here.
16538
16539 2011-05-11 Revital Eres <revital.eres@linaro.org>
16540
16541 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
16542 recognizing doloop.
16543
16544 2011-05-11 Revital Eres <revital.eres@linaro.org>
16545
16546 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
16547 instead of PREV_INSN.
16548
16549 2011-05-11 Revital Eres <revital.eres@linaro.org>
16550
16551 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
16552 * loop-doloop.c (doloop_condition_get): Likewise.
16553 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
16554 (doloop_end): New.
16555 * config/arm/arm.md (*addsi3_compare0): Remove "*".
16556
16557 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
16558
16559 * tree.def (CASE_LABEL_EXPR): Add an operand.
16560 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
16561
16562 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16563
16564 * c-decl.c (c_override_global_bindings_to_false): Remove.
16565 (global_bindings_p): Don't check
16566 c_override_global_bindings_to_false.
16567 * c-tree.h (c_override_global_bindings_to_false): Remove.
16568 * c-typeck.c (composite_type): Don't set
16569 c_override_global_bindings_to_false.
16570
16571 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
16572
16573 PR target/48857, 48495
16574 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
16575 (VSX_MODE): Ditto.
16576 (VSX_MOVE_MODE): Ditto.
16577 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
16578 VSX vector types. Add V2DImode.
16579 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
16580 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
16581 (MODES_TIEABLE_P): Ditto.
16582
16583 * config/rs6000/rs6000.c (rs6000_emit_move): Use
16584 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
16585 VSX_VECTOR_MODE.
16586 (init_cumulative_args): Ditto.
16587 (rs6000_function_arg_boundary): Ditto.
16588 (rs6000_function_arg_advance_1): Ditto.
16589 (rs6000_function_arg): Ditto.
16590 (rs6000_function_ok_for_sibcall): Ditto.
16591 (emit_frame_save): Ditto.
16592 (rs6000_function_value): Ditto.
16593 (rs6000_libcall_value): Ditto.
16594
16595 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16596
16597 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
16598 i386/darwin-lib.h to $libgcc_tm_file.
16599 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
16600
16601 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16602
16603 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
16604
16605 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16606
16607 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
16608 * config/rs6000/rs6000-tables.opt: New file (generated).
16609 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
16610 rs6000/rs6000-tables.opt to extra_options.
16611 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
16612 * config/rs6000/rs6000.c (rs6000_select): Remove.
16613 (processor_target_table): Move contents to rs6000-cpus.def.
16614 (darwin_rs6000_override_options): Check
16615 global_options_set.x_rs6000_cpu_index instead of
16616 rs6000_select[1].string.
16617 (rs6000_option_override_internal): Likewise.
16618 (rs6000_handle_option): Don't assert that global structures are in
16619 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
16620 (rs6000_default_cpu): New variable.
16621 (rs6000_file_start): Set it instead of local default_cpu. Check
16622 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
16623 global_options_set.x_rs6000_tune_index instead of rs6000_select.
16624 (rs6000_darwin_file_start): Check rs6000_default_cpu and
16625 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
16626 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
16627 rs6000_select): Remove.
16628 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
16629 Remove.
16630 (mcpu=, mtune=): Use Var, Init, Enum and Save.
16631 * config/rs6000/t-rs6000
16632 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
16633 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
16634 global_options_set.x_rs6000_cpu_index instead of
16635 rs6000_select[1].string.
16636 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
16637 global_options_set.x_rs6000_cpu_index instead of
16638 rs6000_select[1].string.
16639
16640 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16641
16642 * config.gcc (libgcc_tm_file): Define instead of including files
16643 from ../../libgcc/config/ in tm_file.
16644 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
16645 * configure: Regenerate.
16646 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
16647 libgcc_tm.h, cs-libgcc_tm.h): New.
16648 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
16649 (clean): Remove libgcc_tm.h.
16650 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
16651 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
16652 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
16653
16654 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
16655
16656 PR target/48896
16657 * config/avr/avr.c (avr_ret_register): Return unsigned int
16658 instead of int.
16659 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
16660 it to avr_libcall_value.
16661 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
16662 expand_expr.
16663 (avr_expand_binop_builtin): Ditto.
16664 (avr_expand_unop_builtin): Ditto.
16665
16666 2011-05-10 DJ Delorie <dj@redhat.com>
16667
16668 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
16669 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
16670 * config/rx/rx.c (rx_align_for_label): Add label and
16671 uses_threshold parameters. Do not align when the label is not
16672 used enough.
16673 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
16674
16675 2011-05-10 Richard Guenther <rguenther@suse.de>
16676
16677 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
16678 a series of conversions and apply foldings similar to what
16679 fold-const does.
16680 (tree_ssa_forward_propagate_single_use_vars): Call it.
16681
16682 2011-05-10 Jakub Jelinek <jakub@redhat.com>
16683
16684 PR tree-optimization/48611
16685 PR tree-optimization/48794
16686 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
16687 referenced from RESX or EH_DISPATCH arguments.
16688
16689 PR debug/48928
16690 * dfp.c (decimal_to_decnumber): Handle conversion from
16691 dconst{1,2,m1,half}.
16692
16693 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16694
16695 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
16696 for !flag_prefer_avx128.
16697 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
16698
16699 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
16700
16701 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
16702 (fold_ternary_loc): Use expr_location_or.
16703
16704 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
16705
16706 PR debug/48853
16707 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
16708 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
16709 Pmode and mem_mode is not VOIDmode.
16710
16711 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
16712
16713 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
16714 TYPE_QUAL_RESTRICT): Convert to enum.
16715
16716 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16717
16718 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
16719 (const_pow2_1_to_8_operand): Ditto.
16720 (const_pow2_1_to_128_operand): Ditto.
16721 (const_pow2_1_to_32768_operand): Ditto.
16722 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
16723 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
16724 in insn constraint to check integer value of operand 3.
16725 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
16726
16727 (PINSR_MODE): New mode iterator.
16728 (sse2p4_1): New mode attribute.
16729 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
16730 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
16731 iterator. Use const_int_operand instead of
16732 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
16733 exact_log2 in insn constraint to check integer value of operand 3.
16734
16735 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16736
16737 * config/i386/sse.md (blendbits): Remove mode attribute.
16738 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
16739 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
16740 Check integer value of operand 3 in insn constraint.
16741
16742 2011-05-09 Richard Guenther <rguenther@suse.de>
16743
16744 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
16745 for diagnostics.
16746 (lto_symtab_merge): Likewise. Do not register types here.
16747 (lto_symtab_merge_decls_2): Likewise.
16748 (lto_symtab_merge_decls_1): Likewise.
16749 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
16750 * gimple.c (enum gtc_mode): Declare.
16751 (gimple_types_compatible_p): Make static.
16752
16753 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16754
16755 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
16756 temporary register to match Pmode.
16757
16758 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16759
16760 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
16761 and *vec_concatv4si_1_avx.
16762
16763 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16764
16765 PR rtl-optimization/48927
16766 * ira-conflicts.c (commutative_constraint_p): Use
16767 recog_data.alternative_enabled_p to disable alternatives where
16768 "enabled" attribute is false.
16769 (get_dup_num): Ditto.
16770 * ira-lives.c (single_reg_class): Ditto.
16771 (ira_implicitly_set_insn_hard_regs): Ditto.
16772
16773 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
16774
16775 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
16776 (dataflow_set_preserve_mem_locs): Likewise.
16777
16778 2011-05-09 Philipp Thomas <pth@suse.de>
16779
16780 * config/mep/mep.c (mep_validate_vliw): Syntax description
16781 should not be translated.
16782
16783 2011-05-09 Joseph Myers <joseph@codesourcery.com>
16784
16785 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
16786 * config/mips/mips-tables.opt: New file (generated).
16787 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
16788 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
16789 MIPS_ARCH_OPTION_NATIVE): Define.
16790 * config/mips/mips.c (mips_cpu_info_table): Move contents to
16791 mips-cpus.def.
16792 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
16793 mips_parse_cpu): Remove.
16794 (mips_cpu_info_from_opt, mips_default_arch): New.
16795 (mips_handle_option): Don't assert that global structures are in
16796 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
16797 (mips_option_override): Use new variables and functions to set
16798 state of these options. Use strcmp to check for individual CPU names.
16799 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
16800 definition.
16801 * config/mips/mips.opt (march=): Use ToLower and Enum.
16802 (mips): Use ToLower, Enum and Var.
16803 (mtune=): Use ToLower and Enum.
16804 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
16805
16806 2011-05-08 Jan Hubicka <jh@suse.cz>
16807
16808 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
16809 Arrange type pairs to be UID ordered.
16810 (gimple_lookup_type_leader): Make inline.
16811
16812 2011-05-09 Nick Clifton <nickc@redhat.com>
16813
16814 PR target/48899
16815 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
16816 PROCESSOR_DEFAULT.
16817
16818 PR target/48897
16819 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
16820 variable 's'.
16821
16822 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
16823
16824 * combine.c (simplify_comparison): Abstract out parts into...
16825 (simplify_compare_const): ... new function.
16826 (try_combine): Generalize parallel arithmetic/compare combining
16827 to call simplify_compare_const() and CANONICALIZE_COMPARE().
16828
16829 2011-05-08 Jan Hubicka <jh@suse.cz>
16830
16831 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
16832 (cgraph_create_virtual_clone): Call hooks once virtual clone
16833 is finished.
16834 * cgraph.h (cgraph_clone_node): Update prototype.
16835 * ipa-cp.c (ipcp_estimate_growth): Use
16836 estimate_ipcp_clone_size_and_time.
16837 * ipa-inline-transform.c (clone_inlined_nodes): Update.
16838 * lto-cgraph.c (input_node): Update.
16839 * ipa-inline.c (recursive_inlining): Update.
16840 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
16841 (evaluate_conditions_for_known_args): Break out from ...
16842 (evaluate_conditions_for_edge): ... here.
16843 (evaluate_conditions_for_ipcp_clone): New function.
16844 (inline_node_duplication_hook): Update clone summary based
16845 on parameter map.
16846 (estimate_callee_size_and_time): Rename to ...
16847 (estimate_node_size_and_time): take NODE instead of EDGE;
16848 take POSSIBLE_TRUTHS as argument.
16849 (estimate_callee_size_and_time): Update.
16850 (estimate_ipcp_clone_size_and_time): New function.
16851 (do_estimate_edge_time): Update.
16852
16853 2011-05-08 Richard Guenther <rguenther@suse.de>
16854
16855 PR middle-end/48908
16856 PR middle-end/48905
16857 * expmed.c (expand_shift_1): Compute adjusted constant shift
16858 amount manually.
16859
16860 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
16861
16862 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
16863
16864 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
16865
16866 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
16867
16868 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
16869
16870 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
16871
16872 2011-05-07 Jan Hubicka <jh@suse.cz>
16873
16874 * ipa-inline-transform.c (inline_call): Account when program size
16875 decreases.
16876 * ipa-inline.c (relative_time_benefit): New function.
16877 (edge_badness): Reorganize to be power 2 based; fix thinko when
16878 computing badness for negative growth; update comments to match
16879 reality; better dumps.
16880
16881 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
16882
16883 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
16884 type to bool and adjust comment.
16885 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
16886 (fold_mathfn_compare): Remove calls to global_bindings_p.
16887 (fold_inf_compare): Likewise.
16888 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
16889 * c-tree.h (global_bindings_p): Adjust prototype.
16890 * c-decl.c (global_bindings_p): Return bool and simplify.
16891
16892 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
16893
16894 PR tree-optimization/48837
16895 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
16896 when accumulator transformation is performed.
16897
16898 2011-05-06 Jan Hubicka <jh@suse.cz>
16899
16900 * i386.h (ix86_tune_indices): Add
16901 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
16902 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
16903 * i386.c (initial_ix86_tune_features): Add
16904 X86_SOFTARE_PREFETCHING_BENEFICIAL.
16905 (software_prefetching_beneficial_p): Remove predicate.
16906 (ix86_option_override_internal): Use new macro.
16907
16908 2011-05-06 Jan Hubicka <jh@suse.cz>
16909
16910 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
16911
16912 2011-05-06 Jan Hubicka <jh@suse.cz>
16913
16914 * cgraph.c (cgraph_add_thunk): Create real function node instead
16915 of alias node; finalize it and mark needed/reachale; arrange visibility
16916 to be right and add it into the corresponding same comdat group list.
16917 (dump_cgraph_node): Dump thunks.
16918 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
16919 cgraph_function_with_gimple_body_p,
16920 cgraph_first_function_with_gimple_body,
16921 cgraph_next_function_with_gimple_body): New functions.
16922 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
16923 New macros.
16924 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
16925 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
16926 * cgraphunit.c (cgraph_finalize_function): Only look into possible
16927 devirtualization when optimizing.
16928 (verify_cgraph_node): Verify thunks.
16929 (cgraph_analyze_function): Analyze thunks.
16930 (cgraph_mark_functions_to_output): Output thunks only in combination
16931 with function they are assigned to.
16932 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
16933 alias into normal node.
16934 (assemble_thunks): New functoin.
16935 (cgraph_expand_function): Use it.
16936 * lto-cgraph.c (lto_output_node): Stream thunks.
16937 (input_overwrite_node): Stream in thunks.
16938 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
16939 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
16940 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
16941 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
16942 (inline_analyze_function): Do not care about thunk jump functions.
16943 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
16944 * ipa-prop.c (ipa_prop_write_jump_functions): Use
16945 cgraph_function_with_gimple_body_p.
16946 * passes.c (do_per_function_toporder): Use
16947 cgraph_function_with_gimple_body_p.
16948 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
16949 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
16950 (function_called_by_processed_nodes_p): Likewise.
16951
16952 2011-05-06 Joseph Myers <joseph@codesourcery.com>
16953
16954 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
16955 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
16956 entries.
16957 (mabi=): Replace with separate entries for mabi=altivec,
16958 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
16959 mabi=ieeelongdouble and mabi=ibmlongdouble.
16960 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
16961 check for -mabi=spe without SPE ABI support here.
16962 (rs6000_handle_option): Replace OPT_mabi_ handling with
16963 OPT_mabi_altivec and OPT_mabi_spe handling.
16964
16965 2011-05-06 Cary Coutant <ccoutant@google.com>
16966
16967 * dwarf2out.c (contains_subprogram_definition): New function.
16968 (should_move_die_to_comdat): Call it.
16969
16970 2011-05-06 Jeff Law <law@redhat.com>
16971
16972 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
16973 remove_ctrl_stmt_and_useless_edges.
16974 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
16975 (fixup_template_block, thread_single_edge): Likewise.
16976 (mark_threaded_blocks): Use THREAD_TARGET.
16977
16978 2011-05-06 Alan Modra <amodra@gmail.com>
16979
16980 PR target/48900
16981 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
16982 const0_rtx as the arg to the dummy __tls_get_addr libcall.
16983
16984 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
16985
16986 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
16987 constraint modifier to "r".
16988
16989 2011-05-06 Joseph Myers <joseph@codesourcery.com>
16990
16991 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
16992 fall through for OPT_mcmodel_.
16993
16994 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16995
16996 * config/s390/s390.c (s390_asm_trampoline_template): Comment
16997 instruction sizes.
16998 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
16999
17000 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17001
17002 PR target/47930
17003 * config/arm/arm.opt (marm): Document it.
17004 (mthumb): Reject negative variant.
17005
17006 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
17007
17008 PR target/48898
17009 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
17010 Fix typo in "ccvt" variable name.
17011
17012 2011-05-06 Tristan Gingold <gingold@adacore.com>
17013
17014 PR target/48895
17015 * config/vms/vms-ar.c (main): Remove cwd variable.
17016
17017 2011-05-06 Jakub Jelinek <jakub@redhat.com>
17018
17019 PR debug/48902
17020 * var-tracking.c (prepare_call_arguments): Move else before #endif.
17021
17022 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
17023
17024 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
17025 * gimplify.c (gimplify_switch_expr): Likewise.
17026 * omp-low.c (expand_omp_sections): Likewise.
17027 * tree-eh.c (lower_try_finally_switch): Likewise.
17028 (lower_eh_dispatch): Likewise.
17029 * tree.h (build_case_label): Declare.
17030 * tree.c (build_case_label): Define.
17031
17032 2011-05-05 Jason Merrill <jason@redhat.com>
17033
17034 PR c++/40975
17035 * tree-inline.c (copy_tree_r): Use copy_statement_list.
17036 (copy_statement_list): Don't recurse.
17037 * stor-layout.c (copy_self_referential_tree_r): Don't allow
17038 STATEMENT_LIST.
17039
17040 2011-05-05 Joseph Myers <joseph@codesourcery.com>
17041
17042 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
17043 through from -mfpu= handling.
17044 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
17045
17046 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
17047
17048 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
17049 POST_MODIFY.
17050
17051 2011-05-05 Steve Ellcey <sje@cup.hp.com>
17052
17053 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
17054 for 11.31.
17055 (hppa[12]*-*-hpux11*): Ditto.
17056 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
17057 * config/ia64/hpux-unix2003.h: New.
17058 * config/pa/pa-hpux1131.opt: New.
17059 * config/pa/pa-hpux1131.h: New.
17060 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
17061 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
17062 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
17063
17064 2011-05-05 Jakub Jelinek <jakub@redhat.com>
17065
17066 PR debug/48853
17067 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
17068 instead of mode as 3rd argument to recursive call.
17069 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
17070 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
17071 VOIDmode.
17072 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
17073 don't give up if mode is Pmode and mem_mode is not VOIDmode.
17074 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
17075 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
17076
17077 2011-05-05 Julian Brown <julian@codesourcery.com>
17078
17079 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
17080 parenthesis in D-register case.
17081
17082 2011-05-05 Joseph Myers <joseph@codesourcery.com>
17083
17084 * opt-functions.awk (var_type_struct): Handle Enum options.
17085 * optc-gen.awk: Don't check range of variables of character type.
17086 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
17087 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
17088 rs6000_sdata_name, rs6000_explicit_options): Remove.
17089 (rs6000_option_override_internal): Check for -malign-power here.
17090 Use global_options_set instead of rs6000_explicit_options.
17091 (rs6000_parse_fpu_option): Remove.
17092 (rs6000_handle_option): Access variables via opts and opts_set
17093 pointers. Use error_at and warning_at. Add fall-through
17094 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
17095 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
17096 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
17097 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
17098 here. Don't use rs6000_parse_fpu_option.
17099 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
17100 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
17101 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
17102 (mrecip=): Use Var.
17103 (mspe): Use Var and Save.
17104 (mtraceback=): Use Enum and Var.
17105 (rs6000_traceback_type): New Enum and EnumValue entries.
17106 (mfloat-gprs=): Use Enum, Var and Save.
17107 (rs6000_float_gprs): New Enum and EnumValue entries.
17108 (mlong-double-): use Var and Save.
17109 (msched-costly-dep=, minsert-sched-nops=): Use Var.
17110 (malign-): Use Enum and Var.
17111 (rs6000_alignment_flags): New Enum and EnumValue entries.
17112 (mfpu=): Use Enum.
17113 (fpu_type_t): New Enum and EnumValue entries.
17114 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17115 global_options_set instead of rs6000_explicit_options.
17116 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17117 global_options_set instead of rs6000_explicit_options.
17118 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17119 global_options_set instead of rs6000_explicit_options.
17120 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17121 global_options_set instead of rs6000_explicit_options.
17122 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
17123 global_options_set instead of rs6000_explicit_options.
17124 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17125 global_options_set instead of rs6000_explicit_options.
17126 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
17127 definition.
17128 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17129 global_options_set instead of rs6000_explicit_options.
17130 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
17131 (rs6000_cmodel): New Enum and EnumValue entries.
17132 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17133 global_options_set instead of rs6000_explicit_options.
17134 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
17135 (mtls-size=): Use Enum and Var.
17136 (rs6000_tls_size): New Enum and EnumValue entries.
17137
17138 2011-05-05 Michael Matz <matz@suse.de>
17139
17140 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
17141 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
17142 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
17143 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
17144 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
17145 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
17146 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
17147 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
17148 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
17149 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
17150 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
17151 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
17152 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
17153 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
17154 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
17155 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
17156
17157 2011-05-05 Richard Guenther <rguenther@suse.de>
17158
17159 * expmed.c (expand_variable_shift): Rename to ...
17160 (expand_shift_1): ... this. Take an expanded shift amount.
17161 For rotates recurse directly not building trees for the shift amount.
17162 (expand_variable_shift): Wrap around expand_shift_1.
17163 (expand_shift): Adjust.
17164
17165 2011-05-05 Jakub Jelinek <jakub@redhat.com>
17166
17167 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
17168
17169 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
17170
17171 * tree.h (get_pending_sizes): Remove prototype.
17172 (put_pending_size): Likewise.
17173 (put_pending_sizes): Likewise.
17174 * stor-layout.c (pending_sizes): Delete.
17175 (get_pending_sizes): Likewise.
17176 (put_pending_size): Likewise.
17177 (put_pending_sizes): Likewise.
17178 (variable_size): Do not call put_pending_size and tidy up.
17179 * function.h (struct function): Remove dont_save_pending_sizes_p.
17180 * lto-streamer-in.c (input_function): Do not stream it.
17181 * lto-streamer-out.c (output_function): Likewise.
17182 * tree-inline.c (initialize_cfun): Do not copy it.
17183 * c-decl.c (store_parm_decls): Do not set it.
17184 * omp-low.c (create_task_copyfn): Likewise.
17185 * tree-optimize.c (tree_rest_of_compilation): Likewise.
17186
17187 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
17188
17189 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
17190 conditions.
17191 (*movdf_internal): Ditto.
17192 (*movdf_internal_nointeger): Ditto.
17193 (*movsf_internal): Ditto.
17194
17195 2011-05-05 Joseph Myers <joseph@codesourcery.com>
17196
17197 * c-decl.c (finish_decl): Don't call get_pending_sizes.
17198 (grokparm): Add parameter expr. Pass it to grokdeclarator.
17199 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
17200 (c_variable_size): Remove.
17201 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
17202 call put_pending_sizes.
17203 (get_parm_info): Add parameter expr. Use it to set
17204 arg_info->pending_sizes.
17205 (store_parm_decls): Use arg_info->pending_sizes instead or calling
17206 get_pending_sizes.
17207 * c-parser.c (c_parser_parms_declarator): Update call to
17208 c_parser_parms_list_declarator.
17209 (c_parser_parms_list_declarator): Take parameter expr. Update
17210 call to push_parm_decl. Update recursive call. Don't call
17211 get_pending_sizes. Update calls to get_parm_info.
17212 (c_parser_objc_method_definition): Update calls to
17213 c_parser_objc_method_decl and objc_start_method_definition.
17214 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
17215 (c_parser_objc_method_decl): Add parameter expr. Update call to
17216 grokparm.
17217 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
17218 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
17219 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
17220
17221 2011-05-05 Michael Hope <michael.hope@linaro.org>
17222
17223 PR pch/45979
17224 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
17225 __ARM_EABI__ hosts.
17226
17227 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17228
17229 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
17230 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
17231 (spu_output_mi_thunk): New function.
17232
17233 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17234
17235 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
17236 targetm.asm_out.print_operand.
17237 * config/sol2.c: Include target.h.
17238
17239 2011-05-04 Jan Hubicka <jh@suse.cz>
17240
17241 * ipa-inline.c (reset_edge_caches): New function.
17242 (update_caller_keys): Add check_inlinablity_for; do not
17243 reset edge caches; remove now unnecesary loop.
17244 (update_callee_keys): Add comments; reset node_growth_cache of callee.
17245 (update_all_callee_keys): Likewise.
17246 (inline_small_functions): Sanity check cache; update code
17247 recomputing it.
17248
17249 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
17250
17251 PR rtl-optimization/47612
17252 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
17253 as the last insn of the sequence to be moved.
17254
17255 2011-05-04 Tobias Burnus <burnus@net-b.de>
17256
17257 PR fortran/48864
17258 * doc/invoke.texi (Ofast): Document that it
17259 enables Fortran's -fno-protect-parens.
17260
17261 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
17262
17263 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
17264
17265 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
17266
17267 * stor-layout.c (variable_size): Do not issue errors.
17268
17269 2011-05-04 Richard Guenther <rguenther@suse.de>
17270
17271 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
17272 for array-ref indices.
17273 (tree_coverage_counter_addr): Likewise.
17274 (build_fn_info_type): Use size_int for index types.
17275 (build_gcov_info): Likewise.
17276
17277 2011-05-04 Richard Guenther <rguenther@suse.de>
17278
17279 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
17280 to build_int_cst.
17281 * c-typeck.c (really_start_incremental_init): Use bitsize_int
17282 for constructor indices.
17283 (push_init_level): Likewise.
17284
17285 2011-05-04 Richard Guenther <rguenther@suse.de>
17286
17287 * explow.c (promote_mode): Move variable declarations before code.
17288
17289 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
17290
17291 * tree.h (build_function_type_array): Declare.
17292 (build_varargs_function_type_array): Declare.
17293 (build_function_type_vec, build_varargs_function_type_vec): Define.
17294 * tree.c (build_function_type_array_1): New function.
17295 (build_function_type_array): New function.
17296 (build_varargs_function_type_array): New function.
17297
17298 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
17299
17300 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
17301 before setting STMT_VINFO_TYPE.
17302
17303 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17304
17305 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
17306 instead of spu_pass_by_reference.
17307
17308 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17309
17310 * calls.c (emit_library_call_value_1): Invoke
17311 promote_function_mode hook on libcall arguments.
17312 * explow.c (promote_function_mode, promote_mode): Handle TYPE
17313 argument being NULL.
17314 * targhooks.c (default_promote_function_mode): Lisewise.
17315 * config/s390/s390.c (s390_promote_function_mode): Likewise.
17316 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
17317
17318 * doc/tm.texi: Document that TYPE argument might be NULL.
17319
17320 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
17321
17322 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
17323
17324 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
17325
17326 From Bernd Schmidt
17327 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
17328
17329 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17330
17331 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
17332 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
17333 Move ...
17334 * mips-tfile.c: ... here.
17335 Don't include coretypes.h, tm.h, filenames.h.
17336 (saber_stop): Remove definition and all calls.
17337 [__SABER__]: Remove.
17338 (__LINE__): Remove default.
17339 (Size_t, Ptrdiff_t): Remove definitions.
17340 Replace by size_t, ptrdiff_t.
17341 [!MIPS_DEBUGGING_INFO]: Remove.
17342 (SHASH_SIZE, THASH_SIZE): Remove defaults.
17343 (progname): Add const.
17344 (STATIC): Remove.
17345 Replace all uses by static.
17346 (ALIGN_SYMTABLE_OFFSET): Remove default.
17347 * mips-tdump.c: Don't include coretypes.h, tm.h.
17348 Remove !MIPS_IS_STAB guard.
17349 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
17350 $(TM_H), filenames.h dependencies.
17351 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
17352
17353 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
17354
17355 From Jie Zhang
17356 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
17357 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
17358
17359 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
17360
17361 From Bernd Schmidt
17362 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
17363 account and save/restore RETS.
17364 (PROFILE_BEFORE_PROLOGUE): Define.
17365 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
17366 the push insn to use predecrement.
17367
17368 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
17369
17370 From Jie Zhang
17371 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
17372
17373 2011-05-04 Nick Clifton <nickc@redhat.com>
17374
17375 * config/mn10300/mn10300.c: Include cfgloop.h.
17376 (DUMP): New macro.
17377 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
17378 Lcc or a FLcc insn into the instruction stream.
17379 (mn10300_block_contains_call): New function. Returns true if the
17380 given basic block contains a CALL insn.
17381 (mn10300_loop_contains_call_insn): New function. Returns true if
17382 the given loop contains a CALL insn.
17383 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
17384 to use the SETLB and Lcc or FLcc insns.
17385 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
17386 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
17387 * config/mn10300/mn10300.opt (msetlb): New option. Used to
17388 disable the SETLB optimization.
17389 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
17390 __SETLB__ or __NO_SETLB__.
17391 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
17392 (movsf_internal): Handle MDR register.
17393 (cmpsi): Make visible.
17394 (setlb): New pattern.
17395 (Lcc): New pattern.
17396 (FLcc): New pattern.
17397
17398 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
17399
17400 PR target/48860
17401 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
17402 for reg<->xmm moves.
17403 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
17404 (vec_concatv2di_rex64_sse): Ditto.
17405 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
17406 (*vec_extractv2di_1_rex64): Ditto.
17407
17408 Revert:
17409 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
17410
17411 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
17412 reg<->xmm moves.
17413 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
17414
17415 2011-05-04 Richard Guenther <rguenther@suse.de>
17416
17417 * tree.h (int_const_binop): Remove notrunc argument.
17418 * fold-const.c (int_const_binop): Remove notrunc argument. Always
17419 create integer constants that are properly truncated.
17420 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
17421 (const_binop): Remove zero notrunc argument to int_const_binop.
17422 (size_binop_loc): Likewise.
17423 (fold_div_compare): Likewise.
17424 (maybe_canonicalize_comparison_1): Likewise.
17425 (fold_comparison): Likewise.
17426 (fold_binary_loc): Likewise.
17427 (multiple_of_p): Likewise.
17428 * expr.c (store_constructor): Likewise.
17429 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
17430 (maybe_fold_stmt_addition): Likewise.
17431 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
17432 * stor-layout.c (layout_type): Likewise.
17433 * tree-data-ref.c (tree_fold_divides_p): Likewise.
17434 * tree-sra.c (build_ref_for_offset): Likewise.
17435 (build_user_friendly_ref_for_offset): Likewise.
17436 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
17437 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17438 * tree-ssa-loop-niter.c (inverse): Likewise.
17439 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
17440 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
17441 * tree-switch-conversion.c (check_range): Likewise.
17442 (build_constructors): Likewise.
17443 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
17444 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
17445 (extract_range_from_assert): Likewise.
17446 (vrp_int_const_binop): Likewise.
17447 (extract_range_from_binary_expr): Likewise.
17448 (extract_range_from_unary_expr): Likewise.
17449 (check_array_ref): Likewise.
17450 (find_case_label_range): Likewise.
17451 (simplify_div_or_mod_using_ranges): Likewise.
17452 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
17453 comparing case labels for merging.
17454
17455 2011-05-03 Mark Wielaard <mjw@redhat.com>
17456
17457 * dwarf2out.c (debug_str_hash_forced): Removed.
17458 (gen_label_for_indirect_string): Removed.
17459 (get_debug_string_label): Removed.
17460 (AT_string_form): Generate label directly.
17461 (output_indirect_string): Test indirect_string_node for
17462 DW_FORM_strp instead of checking label and refcount.
17463 (prune_indirect_string): Removed.
17464 (prune_unused_types): Don't check debug_str_hash_forced or
17465 call prune_indirect_string.
17466
17467 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
17468
17469 PR other/48093
17470 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
17471
17472 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
17473
17474 PR debug/47994
17475 PR debug/47919
17476 * combine.c (try_combine): Skip debug insns at m_split tests.
17477
17478 2011-04-26 Mark Wielaard <mjw@redhat.com>
17479
17480 PR42288
17481 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
17482 when info_section_emitted.
17483
17484 2011-05-03 Joseph Myers <joseph@codesourcery.com>
17485
17486 * config/mips/mips-opts.h: New.
17487 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
17488 to mips-opts.h.
17489 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
17490 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
17491 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
17492 via opts pointer.
17493 * config/mips/mips.h (enum mips_code_readable_setting): Move to
17494 mips-opts.h.
17495 (mips_abi, mips_code_readable): Don't declare.
17496 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
17497 (mabi=): Use Enum and Var.
17498 (mips_abi): New Enum and EnumValue entries.
17499 (mcode-readable=): Use Enum and Var.
17500 (mips_code_readable_setting): New Enum and EnumValue entries.
17501 (mr10k-cache-barrier=): Use Enum and Var.
17502 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
17503
17504 2011-05-03 Jan Hubicka <jh@suse.cz>
17505
17506 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
17507 replace hash by pointer map.
17508 (cgraph_node_set_element_def, cgraph_node_set_element,
17509 const_cgraph_node_set_element, varpool_node_set_element_def,
17510 varpool_node_set_element, const_varpool_node_set_element): Remove.
17511 (free_cgraph_node_set, free_varpool_node_set): New function.
17512 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
17513 * tree-emutls.c: Free varpool node set.
17514 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
17515 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
17516 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
17517 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
17518 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
17519 Move here from ipa.c; implement using pointer_map
17520 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
17521 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
17522 debug_cgraph_node_set, varpool_node_set_new,
17523 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
17524 dump_varpool_node_set, debug_varpool_node_set):
17525 Move to ipa-uitls.c.
17526 * passes.c (ipa_write_summaries): Update.
17527
17528 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17529
17530 From Mike Frysinger:
17531 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
17532 bf542/bf544/bf547/bf548/bf549.
17533
17534 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
17535
17536 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
17537
17538 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17539
17540 From Bernd Schmidt:
17541 * config/bfin/bfin.md (MOVCC): New mode_macro.
17542 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
17543 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
17544 comments from generated assembly.
17545
17546 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17547
17548 From Bernd Schmidt
17549 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
17550 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
17551 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
17552 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
17553 * config/bfin/lib1funcs.asm (___muldi3): New function.
17554
17555 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17556
17557 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
17558 build_function_type_list instead of build_function_type.
17559 Rearrange initialization of `args' to do so.
17560
17561 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17562
17563 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
17564 instead of build_function_type.
17565
17566 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17567
17568 * config/rs6000/rs6000.c (spe_init_builtins): Call
17569 build_function_type_list instead of build_function_type.
17570 (paired_init_builtins, altivec_init_builtins): Likewise.
17571 (builtin_function_type): Likewise.
17572
17573 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17574
17575 * config/sh/sh.c (sh_media_init_builtins): Call
17576 build_function_type_list instead of build_function_type.
17577
17578 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17579
17580 * config/sparc/sparc.c (sparc_file_end): Call
17581 build_function_type_list instead of build_function_type.
17582
17583 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17584
17585 * config/alpha/alpha.c (alpha_init_builtins): Call
17586 build_function_type_list instead of build_function_type.
17587
17588 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17589
17590 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
17591 build_function_type_list instead of build_function_type.
17592
17593 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17594
17595 * config/iq2000/i2000.c (iq2000_init_builtins): Call
17596 build_function_type_list instead of build_function_type.
17597 Delete `endlink' variable.
17598
17599 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17600
17601 * config/avr/avr.c (avr_init_builtins): Call
17602 build_function_type_list instead of build_function_type.
17603
17604 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17605
17606 * config/picochip/picochip.c (picochip_init_builtins): Call
17607 build_function_type_list instead of build_function_type.
17608 Delete `endlink' variable.
17609
17610 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17611
17612 * config/bfin/bfin.c (bfin_init_builtins): Call
17613 build_function_type_list instead of build_function_type.
17614
17615 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17616
17617 From Bernd Schmidt
17618 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
17619 that's not CONST_INT. Seemingly redundant check is due to PR39768.
17620
17621 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17622
17623 From Jie Zhang:
17624 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
17625 libbffastfp overrides libgcc when -mfast-fp.
17626
17627 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17628
17629 Originally from Bernd Schmidt
17630 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
17631 * config/bfin/bfin.c (override_options): Test it and error if
17632 TARGET_FDPIC.
17633
17634 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17635
17636 Originally From Bernd Schmidt
17637 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
17638 FD-PIC.
17639
17640 2011-05-03 Jeff Law <law@redhat.com>
17641
17642 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
17643 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
17644 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
17645 than accessing AUX field directly. Free the AUX field before
17646 clearing it.
17647 (thread_block, thread_through_loop_header): Likewise.
17648 (thread_single_edge, mark_threaded_blocks): Likewise.
17649 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
17650 (register_jump_thread): Do not attempt to thread to a NULL edge.
17651
17652 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
17653
17654 * function.c (init_function_start): Call decide_function_section.
17655 * varasm.c (decide_function_section): New function.
17656 (assemble_start_function): When not using
17657 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
17658 or first_function_block_is_cold.
17659 * rtl.h (decide_function_section): Declare.
17660
17661 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
17662 Jakub Jelinek <jakub@redhat.com>
17663
17664 PR target/48774
17665 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
17666 only succeed if req_mode is the same as set_mode.
17667
17668 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
17669
17670 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
17671 * genemit.c (gen_exp): Handle RETURN.
17672 * emit-rtl.c (verify_rtx_sharing): Likewise.
17673 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
17674 * rtl.c (copy_rtx): RETURN is shared.
17675 * rtl.h (enum global_rtl_index): Add GR_RETURN.
17676 (ret_rtx): New.
17677 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
17678 * config/s390/s390.c (s390_emit_epilogue): Likewise.
17679 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
17680 * config/cris/cris.c (cris_expand_return): Likewise.
17681 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
17682 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
17683 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
17684 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
17685 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
17686 Likewise.
17687 * config/v850/v850.c (expand_epilogue): Likewise.
17688 * config/bfin/bfin.c (bfin_expand_call): Likewise.
17689 * config/arm/arm.md (epilogue): Likewise.
17690 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
17691 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
17692 variable to ret_reg.
17693
17694 2011-05-03 Richard Guenther <rguenther@suse.de>
17695
17696 PR lto/48846
17697 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
17698 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
17699 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
17700
17701 2011-05-03 Richard Guenther <rguenther@suse.de>
17702
17703 * c-decl.c (grokdeclarator): Instead of looking at
17704 TREE_OVERFLOW check if the constant fits in the index type.
17705
17706 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17707
17708 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
17709 (vec_store_lanes<mode><mode>): Likewise.
17710
17711 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17712
17713 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
17714 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
17715 convert_optab_index values.
17716 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
17717 * genopinit.c (optabs): Initialize the new optabs.
17718 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
17719 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
17720 (expand_STORE_LANES): New functions.
17721 * tree.h (build_array_type_nelts): Declare.
17722 * tree.c (build_array_type_nelts): New function.
17723 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
17724 (vect_model_load_cost): Likewise.
17725 (vect_store_lanes_supported, vect_load_lanes_supported)
17726 (vect_record_strided_load_vectors): Declare.
17727 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
17728 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
17729 (vect_transform_strided_load): Split out statement recording into...
17730 (vect_record_strided_load_vectors): ...this new function.
17731 * tree-vect-stmts.c (create_vector_array, read_vector_array)
17732 (write_vector_array, create_array_ref): New functions.
17733 (vect_model_store_cost): Add store_lanes_p argument.
17734 (vect_model_load_cost): Add load_lanes_p argument.
17735 (vectorizable_store): Try to use store-lanes functions for
17736 interleaved stores.
17737 (vectorizable_load): Likewise load-lanes and loads.
17738 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
17739 to vect_model_store_cost.
17740 (vect_build_slp_tree): Likewise vect_model_load_cost.
17741
17742 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17743
17744 * hooks.h (hook_bool_mode_uhwi_false): Declare.
17745 * hooks.c (hook_bool_mode_uhwi_false): New function.
17746 * target.def (array_mode_supported_p): New hook.
17747 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
17748 * doc/tm.texi: Regenerate.
17749 * stor-layout.c (mode_for_array): New function.
17750 (layout_type): Use it.
17751 * config/arm/arm.c (arm_array_mode_supported_p): New function.
17752 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
17753
17754 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
17755
17756 PR target/48723
17757 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
17758 for -fstack-check if the size to allocate is negative.
17759
17760 2011-05-02 Lawrence Crowl <crowl@google.com>
17761
17762 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
17763 (timevar_cond_start): New for starting a timer only when it is not
17764 already running.
17765 (timevar_cond_stop): New for stopping a timer when it was not already
17766 running.
17767
17768 * timevar.c (timevar_stop): Enable start/stop timers to start again.
17769 (timevar_cond_start): New as above.
17770 (timevar_cond_stop): New as above.
17771
17772 * timevar.def: Add start/stop timers for compiler phases,
17773 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
17774 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
17775 and TV_PHASE_FINALIZE.
17776 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
17777 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
17778 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
17779 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
17780 Make unused TV_OVERLOAD into a start/stop timer.
17781
17782 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
17783 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
17784 to indicate that they are start/stop timers.
17785
17786 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
17787 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
17788 Move initialization to do_compile.
17789 (do_compile): Add initialization from above.
17790 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
17791
17792 * c-decl.c (c_write_global_declarations): Add start/stop of
17793 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
17794
17795 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
17796 or TV_PARSE_INLINE, as appropriate.
17797 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
17798 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
17799
17800 2011-05-02 Jason Merrill <jason@redhat.com>
17801
17802 PR c++/40975
17803 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
17804
17805 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
17806
17807 PR c/35445
17808 * c-decl.c (finish_decl): Only create a composite if the types are
17809 compatible.
17810
17811 2011-05-02 Joseph Myers <joseph@codesourcery.com>
17812
17813 * config/fr30/fr30-protos.h (Mmode): Don't define.
17814 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
17815 definition where used.
17816 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
17817 define. Expand definitions where used.
17818 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
17819 Expand definitions where used.
17820 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
17821 rx_function_arg, rx_function_arg_advance,
17822 rx_function_arg_boundary): Expand definitions of those macros.
17823 * config/v850/v850-protos.h (Mmode): Don't define. Expand
17824 definition where used.
17825
17826 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
17827
17828 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
17829 reg<->xmm moves.
17830 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
17831 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
17832 with *movv2sf_internal_rex64_avx.
17833 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
17834 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
17835 Use %v prefix in insn mnemonic to handle TARGET_AVX.
17836 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
17837 "vex" in "prefix" attribute calculation.
17838 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
17839
17840 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
17841
17842 PR target/47951
17843 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
17844 inputs match the output.
17845
17846 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
17847
17848 PR target/47955
17849 * config/m68k/m68k.c (m68k_expand_prologue): Set
17850 current_function_static_stack_size.
17851
17852 2011-05-02 Jan Hubicka <jh@suse.cz>
17853
17854 * lto-streamer.c (lto_streamer_cache_insert_1,
17855 lto_streamer_cache_lookup, lto_streamer_cache_create,
17856 lto_streamer_cache_delete): Use pointer map instead of hashtable.
17857 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
17858
17859 2011-05-02 Joseph Myers <joseph@codesourcery.com>
17860
17861 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
17862 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
17863 config/m68k/t-opts: New files.
17864 * config/m68k/m68k-tables.opt: New file (generated).
17865 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
17866 extra_options and m68k/t-opts to tmake_file.
17867 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
17868 (all_isas): Initialize using m68k-isas.def.
17869 (all_microarchs): Initialize using m68k-microarchs.def.
17870 (m68k_find_selection): Remove.
17871 (m68k_handle_option): Don't assert that global structures are in
17872 use. Use error_at. Access variables via opts pointer. Don't
17873 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
17874 directly for -m68020-40 and -m68020-60.
17875 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
17876 m68k_tune_entry here.
17877 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
17878 to m68k-opts.h.
17879 (m68k_library_id_string): Remove declaration.
17880 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
17881 (m68k_library_id_string): New Variable.
17882 (march=, mcpu=, mtune=): Use Enum and Var.
17883
17884 2011-05-02 Richard Guenther <rguenther@suse.de>
17885
17886 * varasm.c (output_constructor_regular_field): Compute zero-based
17887 index with double-ints. Make sure to ICE instead of producing
17888 wrong code.
17889 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
17890 in asserts. Properly use a signed type.
17891
17892 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
17893
17894 * config/i386/sse.md (V): New mode iterator.
17895 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
17896 TARGET_SSE2.
17897 (V_256): Rename from AVX256MODE.
17898 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
17899 condition to all users.
17900 (VF1): Ditto.
17901 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
17902 condition to all users.
17903 (VF_128): Make V4SF mode unconditional.
17904 (VF_256): Rename from AVX256MODEF2P.
17905 (VI4F_128): Rename from SSEMODE4S.
17906 (VI8F_128): Rename from SSEMODE2D.
17907 (VI4F_256): Rename from AVX256MODE8P.
17908 (VI8F_256): Rename from AVX256MODE4P.
17909 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
17910 (ssescalarmodesuffix): Remove SF and DF modes.
17911 (SSEMODE124): Remove.
17912 (SSEMODE1248): Ditto.
17913 (SSEMODEF2P): Ditto.
17914 (AVXMODEF2P): Ditto.
17915 (AVXMODEFDP): Ditto.
17916 (AVXMODEFSP): Ditto.
17917 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
17918 unconditional.
17919 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
17920 unconditional.
17921 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
17922 xop_pcmov_<mode>256. Use V mode iterator.
17923
17924 Adjust RTX patterns globally for renamed mode attributes.
17925
17926 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17927
17928 * haifa-sched.c (sched_emit_insn): Emit insn before first
17929 non-scheduled insn. Inform back-end about new insn. Add
17930 new insn to scheduled_insns list.
17931
17932 2011-05-02 Richard Guenther <rguenther@suse.de>
17933
17934 PR tree-optimization/48822
17935 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
17936 (process_scc): Indicate which iteration we start.
17937
17938 2011-05-02 Jan Hubicka <jh@suse.cz>
17939
17940 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
17941 (lto_section_overrun): New.
17942 * lto-section-out.c (append_block): Rename to ...
17943 (lto_append_block): ... this one; export.
17944 (lto_output_1_stream): Move lto lto-streamer.h
17945 (lto_output_data_stream): Update.
17946 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
17947 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
17948 functions.
17949
17950 2011-05-02 Richard Guenther <rguenther@suse.de>
17951
17952 * tree.c (tree_code_counts): New global array.
17953 (record_node_allocation_statistics): Count individual tree codes.
17954 (dump_tree_statistics): Dump individual code stats.
17955
17956 2011-05-01 Jan Hubicka <jh@suse.cz>
17957
17958 * ipa-inline.c (caller_growth_limits): Fix thinko when
17959 looking for largest stack frame.
17960 * ipa-inline.h (dump_inline_summary): Declare.
17961 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
17962 on stack usage.
17963 (dump_inline_summary): Export.
17964 (debug_inline_summary): Declare as DEBUG_FUNCTION.
17965
17966 2011-05-01 Anatoly Sokolov <aesok@post.ru>
17967
17968 * reginfo.c (memory_move_cost): Change rclass argument type form
17969 'enum reg_class' to reg_class_t.
17970 * reload.h (memory_move_cost): Update prototype.
17971 * postreload.c reload_cse_simplify_set): Change type dclass var to
17972 reg_class_t.
17973 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
17974 Update prototype.
17975 (ira_allocate_and_set_costs): Change aclass argument type form
17976 'enum reg_class' to reg_class_t.
17977 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
17978 Change aclass argument type to reg_class_t.
17979 (update_conflict_hard_reg_costs): Change type aclass and pref vars
17980 to reg_class_t.
17981 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
17982 memory_move_cost call.
17983
17984 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
17985 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
17986 Change type tmp var to reg_class_t.
17987
17988 2011-04-30 Jan Hubicka <jh@suse.cz>
17989
17990 * ipa-inline.c (can_inline_edge_p): Disregard limits when
17991 inlining into function with flatten attribute.
17992 (want_inline_small_function_p): Be more realistic about inlining
17993 cold calls where callee size grows.
17994
17995 2011-04-30 Jan Hubicka <jh@suse.cz>
17996
17997 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
17998 flags.
17999
18000 2011-04-30 Anatoly Sokolov <aesok@post.ru>
18001
18002 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
18003 PRINT_OPERAND_PUNCT_VALID_P): Remove.
18004 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
18005 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
18006 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18007 (print_operand): Rename to...
18008 (sparc_print_operand): ...this. Make static. Adjust
18009 sparc_print_operand function call.
18010 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
18011 functions.
18012
18013 2011-04-30 Jan Hubicka <jh@suse.cz>
18014
18015 PR middle-end/48752
18016 * ipa-inline.c (early_inliner): Disable when doing late
18017 addition of function.
18018
18019 2011-04-30 Jakub Jelinek <jakub@redhat.com>
18020
18021 * dwarf2out.c (get_address_mode): New inline.
18022 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
18023 if not dwarf_strict emit
18024 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
18025 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
18026 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
18027 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
18028 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
18029 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
18030 mem_loc_descriptor callers.
18031 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
18032 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
18033 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
18034 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
18035 (base_types): New variable.
18036 (get_base_type_offset, calc_base_type_die_sizes,
18037 base_type_for_mode, mark_base_types, base_type_cmp,
18038 move_marked_base_types): New functions.
18039 (calc_die_sizes): Assert that die_offset is 0 or equal to
18040 next_die_offset.
18041 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
18042 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
18043 callers. If not dwarf_strict, call mem_loc_descriptor even for
18044 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
18045 (gen_subprogram_die): Don't give up on call site parameters
18046 with non-integral or large integral modes. Adjust
18047 mem_loc_descriptor callers.
18048 (prune_unused_types): Call prune_unused_types_mark on base_types
18049 vector entries.
18050 (resolve_addr): Call mark_base_types.
18051 (dwarf2out_finish): Call move_marked_base_types.
18052
18053 PR tree-optimization/48809
18054 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
18055 type.
18056 (gen_inbound_check): Don't compute index_expr - range_min in utype
18057 again, instead reuse SSA_NAME initialized in build_arrays.
18058 Remove two useless gsi_for_stmt calls.
18059
18060 2011-04-29 Jeff Law <law@redhat.com>
18061
18062 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
18063
18064 2011-04-29 Martin Jambor <mjambor@suse.cz>
18065
18066 * cgraph.h (cgraph_postorder): Remove declaration.
18067 * ipa-utils.h (ipa_free_postorder_info): Declare.
18068 (ipa_reverse_postorder): Likewise.
18069 * cgraphunit.c: Include ipa-utils.h.
18070 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
18071 * ipa-inline.c: Include ipa-utils.h.
18072 (ipa_inline): Update call to ipa_reverse_postorder.
18073 * ipa-pure-const.c (propagate_pure_const): Update call to
18074 ipa_reduced_postorder and ipa_print_order. Call
18075 ipa_free_postorder_info to clean up.
18076 (propagate_nothrow): Likewise.
18077 * ipa-reference.c (propagate): Removed a useless call to
18078 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
18079 and ipa_print_order. Call ipa_free_postorder_info to clean up.
18080 * ipa.c: Include ipa-utils.h.
18081 (ipa_profile): Update call to ipa_reverse_postorder.
18082 (cgraph_postorder): Moved to...
18083 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
18084 (ipa_utils_print_order): Renamed to ipa_print_order.
18085 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
18086 comments.
18087 (ipa_free_postorder_info): New function.
18088 * passes.c: Include ipa-utils.h.
18089 (do_per_function_toporder): Update call to ipa_reverse_postorder.
18090 (ipa_write_summaries): Likewise.
18091 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
18092 (cgraphunit.o): Likewise.
18093 (ipa.o): Likewise.
18094 (ipa-inline.o): Likewise.
18095
18096 2011-04-29 Jan Hubicka <jh@suse.cz>
18097
18098 * gcc.dg/tree-ssa/inline-10.c: New testcase.
18099 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
18100 * ipa-inline.h (clause_t): Turn into unsigned int.
18101 * ipa-inline-analysis.c (add_clause): Do more simplification.
18102 (and_predicates): Shortcut more cases.
18103 (predicates_equal_p): Move forward; check that clauses are properly
18104 ordered.
18105 (or_predicates): Shortcut more cases.
18106 (edge_execution_predicate): Rewrite as...
18107 (set_cond_stmt_execution_predicate): ... this function; handle
18108 __builtin_constant_p.
18109 (set_switch_stmt_execution_predicate): New .
18110 (compute_bb_predicates): New.
18111 (will_be_nonconstant_predicate): Update TODO.
18112 (estimate_function_body_sizes): Use compute_bb_predicates
18113 and free them later, always try to estimate if stmt is constant.
18114 (estimate_time_after_inlining, estimate_size_after_inlining):
18115 Gracefully handle optimized out edges.
18116 (read_predicate): Fix off by one error.
18117
18118 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
18119
18120 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
18121
18122 2011-04-27 Xinliang David Li <davidxl@google.com>
18123
18124 * tree-profile.c (init_ic_make_global_vars): Set
18125 tls attribute on ic vars.
18126 * coverage.c (coverage_end_function): Initialize
18127 function_list with zero.
18128
18129 2011-04-29 Richard Guenther <rguenther@suse.de>
18130
18131 * builtins.c (fold_builtin_classify_type): Use integer_type_node
18132 for the type of the result.
18133 (fold_builtin_isascii): Likewise.
18134 (fold_builtin_toascii): Use integer_type_node where appropriate.
18135 (fold_builtin_logb): Likewise.
18136 (fold_builtin_frexp): Likewise.
18137 (fold_builtin_strstr): Likewise.
18138 (fold_builtin_strpbrk): Likewise.
18139 (fold_builtin_fputs): Likewise.
18140 (fold_builtin_sprintf): Likewise.
18141 (fold_builtin_snprintf): Likewise.
18142 (fold_builtin_printf): Likewise.
18143 (do_mpfr_remquo): Use a proper type for the assigned constant.
18144 (do_mpfr_lgamma_r): Likewise.
18145 * dwarf2out.c (resolve_one_addr): Use size_int.
18146 * except.c (init_eh): Likewise.
18147 (assign_filter_values): Use integer_type_node for filter values.
18148 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
18149 indices.
18150 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
18151 for EH region numbers.
18152 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
18153 for the shift amount.
18154
18155 2011-04-29 Richard Guenther <rguenther@suse.de>
18156
18157 * expr.h (expand_shift): Rename to ...
18158 (expand_variable_shift): ... this.
18159 (expand_shift): Take a constant shift amount.
18160 * expmed.c (expand_shift): Rename to ...
18161 (expand_variable_shift): ... this.
18162 (expand_shift): New wrapper around expand_variable_shift.
18163 * expr.c (convert_move, emit_group_load_1, emit_group_store,
18164 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
18165 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
18166 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
18167 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
18168 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
18169 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
18170 emit_store_flag_1, emit_store_flag): Likewise.
18171 * builtins.c (expand_builtin_signbit): Likewise.
18172 * calls.c (load_register_parameters): Likewise.
18173 * function.c (assign_parm_setup_block): Likewise.
18174 * lower-subreg.c (resolve_shift_zext): Likewise.
18175 * optabs.c (widen_bswap, expand_abs_nojump,
18176 expand_one_cmpl_abs_nojump, expand_float): Likewise.
18177 * spu/spu.c (spu_expand_extv): Likewise.
18178 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
18179
18180 2011-04-29 Richard Guenther <rguenther@suse.de>
18181
18182 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
18183 for the remapped region number.
18184 * predict.c (build_predict_expr): Use integer_type_node for the
18185 predict kind.
18186 * fold-const.c (fold_binary_loc): Use integer_type_node for
18187 the shift amount. Use a proper type for the PLUS_EXPR operand.
18188
18189 2011-04-29 Michael Matz <matz@suse.de>
18190
18191 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
18192 other trees that just builtins.
18193 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
18194
18195 2011-04-29 Richard Guenther <rguenther@suse.de>
18196
18197 * tree-nested.c (get_trampoline_type): Use size_int.
18198 (get_nl_goto_field): Likewise.
18199 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
18200 for all indexes.
18201 (lower_eh_constructs_2): Likewise.
18202 (lower_resx): Likewise.
18203 (lower_eh_dispatch): Likewise.
18204 * tree-mudflap.c (mf_build_string): Use size_int.
18205 (mudflap_register_call): Use integer_type_node for the flag.
18206 (mudflap_enqueue_constant): Use size_int.
18207 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
18208 instead of rebuilding it.
18209
18210 2011-04-29 Richard Guenther <rguenther@suse.de>
18211
18212 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
18213 Handle OBJ_TYPE_REF.
18214 (find_func_aliases_for_call): Use it more consistently.
18215
18216 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
18217
18218 * haifa-sched.c (last_nondebug_scheduled_insn): New.
18219 (rank_for_schedule): Use it.
18220 (schedule_block): Set it.
18221
18222 2011-04-28 David Li <davidxl@google.com>
18223
18224 * tree.c (crc32_string): Use crc32_byte.
18225 (crc32_byte): New function.
18226 * tree.h (crc32_byte): New function.
18227 * gcov.c (read_graph_file): Handle new cfg_cksum.
18228 (read_count_file): Ditto.
18229 * profile.c (instrument_values): Ditto.
18230 (get_exec_counts): Ditto.
18231 (read_profile_edge_counts): Ditto.
18232 (compute_branch_probabilities): Ditto.
18233 (compute_value_histograms): Ditto.
18234 (branch_prob): Ditto.
18235 (end_branch_prob): Ditto.
18236 * coverage.c (read_counts_file): Ditto.
18237 (get_coverage_counts): Ditto.
18238 (tree_coverage_counter_addr): Ditto.
18239 (coverage_checksum_string): Ditto.
18240 (coverage_begin_output): Ditto.
18241 (coverage_end_function): Ditto.
18242 (build_fn_info_type): Ditto.
18243 (build_fn_info_value): Ditto.
18244 * libgcov.c (gcov_exit): Ditto.
18245 * gcov-dump.c (tag_function): Ditto.
18246 (compute_checksum): Remove.
18247
18248 2011-04-29 Alan Modra <amodra@gmail.com>
18249
18250 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
18251 unspec plus offset. Tidy macho code.
18252
18253 2011-04-29 Martin Jambor <mjambor@suse.cz>
18254
18255 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
18256 node instead of a decl. Update all callers.
18257 * cgraph.h: Update declaration.
18258
18259 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
18260
18261 PR tree-optimization/48765
18262 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
18263 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
18264 to indicate if loop aware SLP is being used. Scan the statements
18265 and update the vectorization factor according to the type of
18266 vectorization before statement analysis.
18267 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
18268 pass it to vect_analyze_loop_operations.
18269 (vectorizable_reduction): Set number of copies to 1 in case of pure
18270 SLP statement.
18271 * tree-vect-stmts.c (vectorizable_conversion,
18272 vectorizable_assignment, vectorizable_shift,
18273 vectorizable_operation, vectorizable_type_demotion,
18274 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
18275 Likewise.
18276 (vectorizable_condition): Move the check that it is not SLP
18277 vectorization before the number of copies check.
18278 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
18279 to vectorize the loop using SLP.
18280
18281 2011-04-28 Jakub Jelinek <jakub@redhat.com>
18282
18283 PR middle-end/48597
18284 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
18285 inline asm.
18286
18287 2011-04-28 Joseph Myers <joseph@codesourcery.com>
18288
18289 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
18290 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
18291 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18292 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18293 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
18294 linux*.h headers.
18295 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
18296 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18297 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18298 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18299 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18300 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
18301 REG_NAME.
18302 * config/i386/linux.h (REG_NAME): Don't define.
18303 * config/i386/linux64.h (REG_NAME): Don't define.
18304 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
18305 Undefine before defining.
18306
18307 2011-04-28 Jan Hubicka <jh@suse.cz>
18308
18309 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
18310 nonconstant_names array.
18311 (estimate_function_body_sizes): Build nonconstant_names array; handle
18312 BUILT_IN_CONSTANT_P.
18313
18314 2011-04-28 Richard Guenther <rguenther@suse.de>
18315
18316 PR bootstrap/48804
18317 Revert
18318 2011-04-28 Richard Guenther <rguenther@suse.de>
18319
18320 * tree-ssa-structalias.c (solve_constraints): Build succ graph
18321 as late as possible.
18322
18323 2011-04-28 Richard Guenther <rguenther@suse.de>
18324
18325 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
18326 (debug_constraint): Do it here.
18327 (dump_constraints): And here.
18328 (rewrite_constraints): And here.
18329 (dump_constraint_edge): Remove.
18330 (dump_constraint_graph): Rewrite to produce DOT output.
18331 (solve_constraints): Build succ graph as late as possible.
18332 Dump constraint graphs before and after solving.
18333
18334 2011-04-28 Richard Guenther <rguenther@suse.de>
18335
18336 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18337 New function split out from ...
18338 (find_func_aliases): ... here. Call it.
18339 (find_func_aliases_for_call): Likewise.
18340
18341 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
18342
18343 * internal-fn.h (internal_fn_name_array): Declare.
18344 (internal_fn_flags_array): Likewise.
18345
18346 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
18347
18348 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
18349 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
18350 Move from sse.md.
18351 (ssemodefsuffix): Remove.
18352 (ssevecmodesuffix): New mode attribute.
18353 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
18354 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
18355 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
18356 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
18357 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
18358 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
18359 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
18360 ssemodesuffix mode attribute.
18361 (float splitters): Use ssevecmodesuffix mode attribute.
18362 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
18363 (sseinsmode): Rename from avxvecmode.
18364 (avxsizesuffix): Rename from avxmodesuffix.
18365 (sseintvecmode): Rename from avxpermvecmode.
18366 (ssedoublevecmode): Rename from ssedoublesizemode.
18367 (ssehalfvecmode): Rename from avxhalfvecmode.
18368 (ssescalarmode): Rename from avxscalarmode.
18369 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
18370 templates for ssemodesuffix mode attribute.
18371 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
18372 mode attribute.
18373
18374 Adjust RTX patterns globally for renamed mode attributes.
18375
18376 2011-04-27 Jan Hubcika <jh@suse.cz>
18377
18378 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
18379 * ipa-inline-analysis.c: Include alloc-pool.h.
18380 (edge_predicate_pool): New.
18381 (trye_predicate_p): New function
18382 (false_predicate_p): New function.
18383 (add_clause): Sanity check that false clauses are "optimized";
18384 never add clauses to predicate that is already known to be false.
18385 (and_predicate): Use flase_predicate_p.
18386 (evaulate_predicate): Rename to ...
18387 (evaluate_predicate): ... this one; update all callers; assert
18388 that false is not listed among possible truths.
18389 (dump_predicate): Use true_predicate_p.
18390 (account_size_time): Use false_predicate_p.
18391 (evaulate_conditions_for_edge): Rename to ...
18392 (evaluate_conditions_for_edge) ... this one.
18393 (edge_set_predicate): New function.
18394 (inline_edge_duplication_hook): Duplicate edge predicates.
18395 (inline_edge_removal_hook): Free edge predicates.
18396 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
18397 (dump_inline_summary): Update.
18398 (estimate_function_body_sizes): Set edge predicates.
18399 (estimate_calls_size_and_time): Handle predicates.
18400 (estimate_callee_size_and_time): Update.
18401 (remap_predicate): Add toplev_predicate; update comment.
18402 (remap_edge_predicates): New function.
18403 (inline_merge_summary): Compute toplev predicate; update.
18404 (read_predicate): New function.
18405 (read_inline_edge_summary): Use it.
18406 (inline_read_section): Likewise.
18407 (write_predicate): New function.
18408 (write_inline_edge_summary): Use it.
18409 (inline_write_summary): Likewise.
18410 (inline_free_summary): Free alloc pool and edge summary vec.
18411
18412 2011-04-27 Richard Guenther <rguenther@suse.de>
18413
18414 * tree-ssa-structalias.c (changed_count): Remove.
18415 (changed): Use a bitmap.
18416 (unify_nodes): Adjust.
18417 (do_sd_constraint): Likewise.
18418 (do_ds_constraint): Likewise.
18419 (do_complex_constraint): Likewise.
18420 (solve_graph): Likewise.
18421
18422 2011-04-27 Jan Hubicka <jh@suse.cz>
18423
18424 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
18425
18426 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
18427
18428 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
18429 (avx_vperm2f128_*_operand): Ditto.
18430 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
18431 Use avx_vpermilp_parallel in insn condition.
18432 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
18433 Use avx_vperm2f128_parallel in insn condition.
18434
18435 2011-04-27 Richard Guenther <rguenther@suse.de>
18436
18437 * Makefile.in (tree-ssa-structalias.o): Remove
18438 gt-tree-ssa-structalias.h dependency.
18439 (GTFILES): Remove tree-ssa-structalias.c.
18440 * tree.c (allocate_decl_uid): New function.
18441 (make_node_stat): Use it.
18442 (copy_node_stat): Likewise.
18443 * tree.h (allocate_decl_uid): Declare.
18444 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
18445 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
18446 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
18447 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
18448 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
18449 (struct heapvar_map): Likewise.
18450 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
18451 heapvar_insert): Likewise.
18452 (make_heapvar_for): Rename to ...
18453 (make_heapvar): ... this. Simplify.
18454 (fake_var_decl_obstack): New global var.
18455 (build_fake_var_decl): New function.
18456 (make_constraint_from_heapvar): Adjust.
18457 (handle_lhs_call): Likewise.
18458 (create_function_info_for): Likewise.
18459 (intra_create_variable_infos): Likewise.
18460 (init_alias_vars): Allocate fake_var_decl_obstack.
18461 (init_alias_heapvars, delete_alias_heapvars): Remove.
18462 (compute_points_to_sets): Do not call init_alias_heapvars.
18463 (ipa_pta_execute): Likewise.
18464 (delete_points_to_sets): Free fake_var_decl_obstack.
18465
18466 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18467
18468 * config/spu/divmovti4.c (union qword_UTItype): New data type.
18469 (si_from_UTItype, si_to_UTItype): New functions.
18470 (__udivmodti4): Use them to implement type-punning.
18471 * config/spu/multi3.c (union qword_TItype): New data type.
18472 (si_from_TItype, si_to_TItype): New functions.
18473 (__multi3): Use them to implement type-punning.
18474
18475 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18476
18477 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
18478
18479 2011-04-27 Jan Hubicka <jh@suse.cz>
18480
18481 * ipa-prop.c (function_insertion_hook_holder): New holder.
18482 (ipa_add_new_function): New function.
18483 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
18484 Register/deregister holder.
18485
18486 2011-04-27 Richard Guenther <rguenther@suse.de>
18487
18488 PR tree-optimization/48772
18489 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
18490
18491 2011-04-27 Richard Guenther <rguenther@suse.de>
18492
18493 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
18494 TARGET_MEM_REF handling.
18495
18496 2011-04-27 Nick Clifton <nickc@redhat.com>
18497
18498 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
18499 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
18500 (REG_CLASS_NAMES): Likewise.
18501 (REG_CLASS_CONTENTS): Likewise.
18502 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
18503 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
18504 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
18505 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
18506 (EVEN_REGS): New macro. Alias for QUAD_REGS.
18507 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
18508 duplicate register classes.
18509 (frv_class_likely_spilled_p): Likewise.
18510 (frv_register_move_cost): Likewise.
18511
18512 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
18513 end of the regno_reg_class array.
18514
18515 2011-04-27 Jakub Jelinek <jakub@redhat.com>
18516
18517 PR c/48742
18518 * c-typeck.c (build_binary_op): Don't wrap arguments if
18519 int_operands is true.
18520
18521 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
18522
18523 PR target/48767
18524 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
18525 targetm.calls.must_pass_in_stack for void type.
18526
18527 2011-04-26 Jan Hubicka <jh@suse.cz>
18528
18529 * cgraphbuild.c (build_cgraph_edges): Update call
18530 of cgraph_create_edge and cgraph_create_indirect_edge.
18531 * cgraph.c (cgraph_create_edge_including_clones,
18532 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
18533 cgraph_update_edges_for_call_stmt_node): Do not take nest
18534 argument; do not initialize call_stmt_size/time.
18535 (dump_cgraph_node): Do not dump nest.
18536 (cgraph_clone_edge): Do not take loop_nest argument;
18537 do not propagate it; do not clone call_stmt_size/time.
18538 (cgraph_clone_node): Likewise.
18539 (cgraph_create_virtual_clone): Update.
18540 * cgraph.h (struct cgraph_edge): Remove
18541 call_stmt_size/call_stmt_time/loop_nest.
18542 (cgraph_create_edge, cgraph_create_indirect_edge,
18543 cgraph_create_edge_including_clones, cgraph_clone_node): Update
18544 prototype.
18545 * tree-emutls.c (gen_emutls_addr): Update.
18546 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
18547 loop_nest; handle indirect calls, too.
18548 (clone_inlined_nodes): Do not care about updating inline summaries.
18549 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
18550 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
18551 stream call_stmt_size/call_stmt_time/loop_nest.
18552 * ipa-inline.c (edge_badness): Update.
18553 (ipa_inline): dump summaries after inlining.
18554 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
18555 New.
18556 (inline_edge_summary): New function.
18557 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
18558 (inline_edge_removal_hook): Handle edge summaries.
18559 (inline_edge_duplication_hook): New hook.
18560 (inline_summary_alloc): Alloc hooks.
18561 (initialize_growth_caches): Do not register removal hooks.
18562 (free_growth_caches); Do not free removal hook.
18563 (dump_inline_edge_summary): New function.
18564 (dump_inline_summary): Use it.
18565 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
18566 (inline_update_callee_summaries): New function.
18567 (inline_merge_summary): Use it.
18568 (do_estimate_edge_time, do_estimate_edge_growth): Update.
18569 (read_inline_edge_summary): New function.
18570 (inline_read_section): Use it.
18571 (write_inline_edge_summary): New function.
18572 (inline_write_summary): Use it.
18573 (inline_free_summary): Free edge new holders.
18574 * tree-inline.c (copy_bb): Update.
18575
18576 2011-04-26 Jason Merrill <jason@redhat.com>
18577
18578 * tree-eh.c (lower_try_finally_switch): Create the label along with
18579 the CASE_LABEL_EXPR.
18580
18581 2011-04-26 David S. Miller <davem@davemloft.net>
18582 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18583
18584 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
18585 * configure: Regenerate.
18586
18587 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
18588
18589 PR target/48258
18590 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
18591 reduction.
18592 (VEC_reduc): New code iterator and splitters for vector reduction.
18593 (VEC_reduc_name): Ditto.
18594 (VEC_reduc_rtx): Ditto.
18595 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
18596 (reduc_<VEC_reduc_name>_v4sf): Ditto.
18597
18598 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18599 support for extracting SF on VSX.
18600
18601 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
18602 generating xscvspdp.
18603 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
18604 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
18605 double add, minimum, maximum vector reduction.
18606 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
18607 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
18608 optimize double vector reduction.
18609 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
18610
18611 2011-04-26 Joseph Myers <joseph@codesourcery.com>
18612
18613 * config/fr30/fr30.h (inhibit_libc): Don't define.
18614 * config/m32r/m32r-protos.h: Correct comment.
18615 * config/v850/v850.h (GHS_default_section_names,
18616 GHS_current_section_names): Use tree, not union tree_node *.
18617
18618 2011-04-26 Xinliang David Li <davidxl@google.com>
18619
18620 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
18621 * c-family/c-opts.c (c_common_handle_option): Set
18622 warn_maybe_uninitialized.
18623 * opts.c (common_handle_option): Ditto.
18624 * common.opt: New option.
18625 * tree-ssa.c (warn_uninit): Add one more parameter.
18626 (warn_uninitialized_var): Pass warning code.
18627 * tree-flow.h: Interface change.
18628
18629 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18630
18631 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
18632 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
18633 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
18634
18635 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18636
18637 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
18638 * config/mips/mips.opt (mmips-tfile): Remove.
18639
18640 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
18641 mips-tdump reference to ...
18642 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
18643 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
18644 reference by Tru64 UNIX.
18645
18646 2011-04-26 Jakub Jelinek <jakub@redhat.com>
18647
18648 PR debug/48768
18649 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
18650 is error_mark_node, set value to NULL.
18651
18652 PR tree-optimization/48734
18653 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
18654 if return value from maybe_fold_*_comparsions isn't something
18655 the code is prepared to handle.
18656
18657 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
18658
18659 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
18660 mode check.
18661 (ext_QIreg_nomode_operands): Remove.
18662 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
18663 (*andsi_1): Ditto.
18664 (*andhi_1): Ditto.
18665
18666 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
18667
18668 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
18669
18670 2011-04-26 Richard Guenther <rguenther@suse.de>
18671
18672 * c-typeck.c (build_unary_op): Do not expand array-refs via
18673 pointer arithmetic. Only adjust qualifiers for function types.
18674
18675 2011-04-26 Richard Guenther <rguenther@suse.de>
18676
18677 PR middle-end/48694
18678 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
18679 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
18680 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
18681 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
18682
18683 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
18684
18685 * doc/extend.texi: Document __underlying_type.
18686
18687 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
18688
18689 * config/rs6000/titan.md (automata_option "progress"): Remove.
18690
18691 2011-04-25 Jeff Law <law@redhat.com>
18692
18693 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
18694
18695 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
18696
18697 * system.h (ENUM_BITFIELD): Remove.
18698
18699 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
18700 Eric Botcazou <ebotcazou@adacore.com>
18701
18702 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
18703 for STORE_FLAG_VALUE==-1 case.
18704
18705 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
18706
18707 PR target/43804
18708 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
18709 LEGITIMATE_PIC_OPERAND_P.
18710
18711 2011-04-24 Jan Hubicka <jh@suse.cz>
18712
18713 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
18714 WPA hack.
18715 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
18716 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
18717 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
18718 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
18719 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
18720 Sanity check predicate length.
18721 (remap_predicate): Likewise; sanity check jump functions.
18722 (inline_read_section, inline_write_summary): Sanity check
18723 predicate length.
18724
18725 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
18726
18727 PR other/48748
18728 * doc/extend.texi (Type Traits): Document __is_standard_layout,
18729 __is_literal_type, and __is_trivial; update throughout about
18730 possibly cv-qualified void types.
18731
18732 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
18733
18734 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
18735 testsuite and make it version agnostic.
18736
18737 2011-04-22 Jan Hubicka <jh@suse.cz>
18738
18739 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
18740
18741 2011-04-23 Jakub Jelinek <jakub@redhat.com>
18742
18743 PR c/48685
18744 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
18745 to VOID_TYPE even around MODIFY_EXPR.
18746
18747 2011-04-22 Mike Stump <mikestump@comcast.net>
18748
18749 * gensupport.c (read_md_rtx): Fix typo in comment.
18750 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
18751 comment.
18752
18753 2011-04-22 Jan Hubicka <jh@suse.cz>
18754
18755 * gengtype.c (open_base_files): Add ipa-inline.h include.
18756 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
18757 ipa-prop.c; update all uses.
18758 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
18759 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
18760 merge summary of inlined function into former caller.
18761 * ipa-inline.c (max_benefit): Remove.
18762 (edge_badness): Compensate for removal of benefits.
18763 (update_caller_keys): Use
18764 reset_node_growth_cache/reset_edge_growth_cache.
18765 (update_callee_keys): Likewise.
18766 (update_all_callee_keys): Likewise.
18767 (inline_small_functions): Do not collect max_benefit; do not reset
18768 estimated_growth; call free_growth_caches and initialize_growth_caches.
18769 * ipa-inline.h (struct condition, type clause_t, struct predicate,
18770 struct size_time_entry): New structures.
18771 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
18772 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
18773 and estimated_growth.
18774 (edge_growth_cache_entry): New structure.
18775 (node_growth_cache, edge_growth_cache): New global vars.
18776 (estimate_growth): Turn into inline.
18777 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
18778 initialize_growth_caches, free_growth_caches): Declare.
18779 (estimate_edge_growth): Rewrite.
18780 (estimate_edge_time): Implement as inline cache lookup.
18781 (reset_node_growth_cache, reset_edge_growth_cache): New inline
18782 functions.
18783 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
18784 (NUM_CONDITIONS): New constant.
18785 (predicate_conditions): New enum.
18786 (IS_NOT_CONSTANT): New constant.
18787 (edge_removal_hook_holder): New var.
18788 (node_growth_cache, edge_growth_cache): New global vars.
18789 (true_predicate, single_cond_predicate, false_predicate,
18790 not_inlined_predicate, add_condition, add_clause, and_predicates,
18791 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
18792 dump_clause, dump_predicate, account_size_time,
18793 evaulate_conditions_for_edge): New functions.
18794 (inline_summary_alloc): Move to heap.
18795 (inline_node_removal_hook): Clear condition and entry vectors.
18796 (inline_edge_removal_hook): New function.
18797 (initialize_growth_caches, free_growth_caches): New function.
18798 (dump_inline_summary): Update.
18799 (edge_execution_predicate): New function.
18800 (will_be_nonconstant_predicate): New function.
18801 (estimate_function_body_sizes): Compute BB and constantness predicates.
18802 (compute_inline_parameters): Do not clear estimated_growth.
18803 (estimate_edge_size_and_time): New function.
18804 (estimate_calls_size_and_time): New function.
18805 (estimate_callee_size_and_time): New function.
18806 (remap_predicate): New function.
18807 (inline_merge_summary): New function.
18808 (do_estimate_edge_time): New function based on...
18809 (estimate_edge_time): ... this one.
18810 (do_estimate_edge_growth): New function.
18811 (do_estimate_growth): New function based on....
18812 (estimate_growth): ... this one.
18813 (inline_analyze_function): Analyze after deciding on jump functions.
18814 (inline_read_section): New function.
18815 (inline_read_summary): Use it.
18816 (inline_write_summary): Write all the new data.
18817 * ipa-prop.c (ipa_get_param_decl_index): Export.
18818 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
18819 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
18820 Declare.
18821 (ipa_get_lattice): Move here from ipa-cp.c
18822 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
18823 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
18824 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
18825 cgraph_edge_inlinable_p): Remove.
18826 * cgraphunit.c: Include ipainline.h
18827 (cgraph_process_new_functions): Update call of
18828 compute_inline_parameters.
18829
18830 2011-04-22 Richard Guenther <rguenther@suse.de>
18831
18832 * tree.c (build_int_cst): Properly create canonicalized integer
18833 constants.
18834 (build_int_cst_type): Remove scary comments.
18835
18836 2011-04-22 Xinliang David Li <davidxl@google.com>
18837
18838 * toplev.c (process_options): Enable -Werror=coverage-mismatch
18839 by default when -Wno-error is not specified.
18840 * opts-global.c (decode_options): Remove call to
18841 control_warning_options.
18842
18843 2011-04-22 Jakub Jelinek <jakub@redhat.com>
18844
18845 PR tree-optimization/48717
18846 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
18847 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
18848
18849 2011-04-22 Joseph Myers <joseph@codesourcery.com>
18850
18851 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
18852 definition where used.
18853
18854 2011-04-22 Jakub Jelinek <jakub@redhat.com>
18855
18856 PR c/48716
18857 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
18858 TREE_STATIC variables declared inside of some OpenMP construct.
18859
18860 2011-04-22 Martin Jambor <mjambor@suse.cz>
18861
18862 PR middle-end/48585
18863 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
18864
18865 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
18866
18867 PR c/36750
18868 * c-typeck.c (pop_init_level): Do not warn about initializing
18869 with ` = {0}'.
18870
18871 2011-04-22 Alan Modra <amodra@gmail.com>
18872
18873 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
18874 when returning call_cookie.
18875 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
18876 pointers, to functions with no more vector args than the current
18877 function, and some non-local calls for ABI_V4.
18878 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
18879 sibcall_nonlocal_aix64): Combine to ..
18880 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
18881 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
18882 (sibcall_value_nonlocal_aix<mode>): ..likewise.
18883 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
18884 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
18885 operand.
18886 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
18887 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
18888 sibcall_value_symbolic_64): Delete.
18889
18890 2011-04-21 Xinliang David Li <davidxl@google.com>
18891
18892 * cgraph.h: Remove pid.
18893 * cgraph.c: Remove pid.
18894 * value-prof.c (init_node_map): New function.
18895 (del_node_map): New function.
18896 (find_func_by_funcdef_no): New function.
18897 (gimple_ic_transform): Call new function.
18898 * cgraphunit.c (cgraph_finalize_function): Remove pid.
18899 * function.c (get_last_funcdef_no): New function.
18900 * function.h (get_last_funcdef_no): New function.
18901 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
18902 to libgcov function.
18903 (tree-profiling): Call node map init and delete function.
18904
18905 2011-04-21 Ian Lance Taylor <iant@google.com>
18906
18907 * godump.c (go_format_type): Use exported Go name for anonymous
18908 field name.
18909
18910 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18911
18912 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
18913 Call builtin_function_type_list instead of builtin_function_type.
18914 (UNARY, BINARY, TRINARY, QUAD): Likewise.
18915
18916 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18917
18918 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
18919 build_function_type_list instead of build_function_type.
18920 Delete variable `endlink'.
18921
18922 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18923
18924 * config/s390/s390.c (s390_init_builtins): Call
18925 build_function_type_list instead of build_function_type.
18926
18927 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18928
18929 * config/ia64/ia64.c (ia64_init_builtins): Call
18930 build_function_type_list instead of builtin_function_type.
18931
18932 2011-04-21 Easwaran Raman <eraman@google.com>
18933
18934 * cfgexpand.c (stack_var): Remove OFFSET...
18935 (add_stack_var): ...and its reference here...
18936 (expand_stack_vars): ...and here.
18937 (stack_var_cmp): Sort by descending order of size.
18938 (partition_stack_vars): Change heuristic.
18939 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
18940 (dump_stack_var_partition): Add newline after each partition.
18941
18942 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
18943 Jeff Law <law@redhat.com>
18944
18945 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
18946 * gengtype.c (matching_file_name_substitute): Likewise.
18947
18948 2011-04-21 Richard Guenther <rguenther@suse.de>
18949
18950 PR lto/48703
18951 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
18952
18953 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
18954
18955 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
18956
18957 2011-04-21 Richard Guenther <rguenther@suse.de>
18958
18959 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
18960 file name.
18961
18962 2011-04-21 Richard Guenther <rguenther@suse.de>
18963
18964 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
18965 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
18966 Use DECL_P, not SSA_VAR_P.
18967 (ptr_derefs_may_alias_p): Likewise.
18968 (ptr_deref_may_alias_ref_p_1): Likewise.
18969 (decl_refs_may_alias_p): Likewise.
18970 (refs_may_alias_p_1): Likewise.
18971 (ref_maybe_used_by_call_p_1): Likewise.
18972 (call_may_clobber_ref_p_1): Likewise.
18973 (indirect_ref_may_alias_decl_p): Assume indirect refrences
18974 are either MEM_REF or TARGET_MEM_REF.
18975 (indirect_refs_may_alias_p): Likewise.
18976 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
18977 for MEM_EXPR of indirect calls.
18978
18979 2011-04-21 Tristan Gingold <gingold@adacore.com>
18980
18981 * vmsdbgout.c (write_srccorr): Compute file length from the string.
18982 (dst_file_info_struct): Remove flen field.
18983 (lookup_filename): Remove code that set flen field.
18984
18985 2011-04-21 Tristan Gingold <gingold@adacore.com>
18986
18987 * config/ia64/ia64.c (ia64_start_function): Add a guard.
18988
18989 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
18990
18991 PR target/48708
18992 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
18993 vec_extract and vec_concat for non-SSE4_1 targets.
18994
18995 2011-04-21 Richard Guenther <rguenther@suse.de>
18996
18997 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
18998 return statements.
18999
19000 2011-04-21 Joseph Myers <joseph@codesourcery.com>
19001
19002 * config/i386/cygming.h (union tree_node, TREE): Don't define or
19003 undefine.
19004 (FILE): Don't undefine.
19005
19006 2011-04-21 Joseph Myers <joseph@codesourcery.com>
19007
19008 * config/alpha/alpha.c (struct machine_function): Use rtx, not
19009 struct rtx_def *.
19010 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
19011 struct rtx_def *.
19012 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
19013 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
19014 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
19015 rtx_def *.
19016 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
19017 definitions where used.
19018 * config/microblaze/microblaze.h (struct microblaze_args): Use
19019 rtx, not struct rtx_def *.
19020 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
19021 rtx_def *.
19022 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
19023 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
19024 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
19025 not struct rtx_def *.
19026 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
19027 struct rtx_def *.
19028 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
19029 rtx_def *.
19030 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
19031
19032 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
19033
19034 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
19035 operand_equal_p to compare DR_BASE_ADDRESSes.
19036 (vect_check_interleaving): Likewise.
19037
19038 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
19039
19040 PR target/46329
19041 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
19042 for all Neon struct constants.
19043
19044 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
19045
19046 * target.def (legitimate_constant_p): New hook.
19047 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
19048 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
19049 * doc/tm.texi: Regenerate.
19050 * hooks.h (hook_bool_mode_rtx_true): Declare.
19051 * hooks.c (hook_bool_mode_rtx_true): Define.
19052 * system.h (LEGITIMATE_CONSTANT_P): Poison.
19053 * calls.c (precompute_register_parameters): Replace uses of
19054 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
19055 (emit_library_call_value_1): Likewise.
19056 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
19057 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
19058 * ira-costs.c (scan_one_insn): Likewise.
19059 * recog.c (general_operand, immediate_operand): Likewise.
19060 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
19061 * reload1.c (init_eliminable_invariants): Likewise.
19062
19063 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
19064 mode argument.
19065 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
19066 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
19067 argument.
19068 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19069 * config/alpha/predicates.md (input_operand): Update call to
19070 alpha_legitimate_constant_p.
19071
19072 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
19073 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
19074 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
19075 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19076 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
19077 (arm_legitimate_constant_p): New functions.
19078 (arm_cannot_force_const_mem): Make static.
19079
19080 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
19081
19082 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
19083 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
19084 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
19085 instead of bfin_legitimate_constant_p.
19086 (bfin_legitimate_constant_p): Make static. Add a mode argument.
19087 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19088
19089 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
19090
19091 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
19092
19093 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
19094 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
19095 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19096 (frv_legitimate_constant_p): Make static. Add a mode argument.
19097
19098 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
19099 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
19100 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
19101
19102 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
19103 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
19104 * config/i386/i386.c (legitimate_constant_p): Rename to...
19105 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
19106 argument.
19107 (ix86_cannot_force_const_mem): Update accordingly.
19108 (ix86_legitimate_address_p): Likewise.
19109 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19110 * config/i386/i386.md: Update commentary.
19111
19112 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
19113 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
19114 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19115 (ia64_legitimate_constant_p): Make static. Add a mode argument.
19116
19117 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
19118
19119 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
19120 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
19121 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19122 (lm32_legitimate_constant_p): Make static. Add a mode argument.
19123
19124 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
19125 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
19126 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
19127
19128 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
19129 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19130 (m32r_legitimate_constant_p): New function.
19131
19132 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
19133 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
19134 LEGITIMATE_CONSTANT_P.
19135 (LEGITIMATE_CONSTANT_P): Delete.
19136 * config/m68k/m68k.c (m68k_expand_prologue): Call
19137 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
19138 (m68k_legitimate_constant_p): New function.
19139 * config/m68k/m68k.md: Update comments.
19140
19141 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
19142 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19143 (mcore_legitimate_constant_p): New function.
19144
19145 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
19146 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
19147 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
19148 Add a mode argument.
19149 (mep_legitimate_address): Update accordingly.
19150 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19151
19152 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
19153 Delete.
19154 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
19155 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
19156 static. Check OP's mode for VOIDmode.
19157 (microblaze_legitimate_constant_p): New function.
19158 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19159
19160 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
19161 * config/mips/mips.c (mips_legitimate_constant_p): New function.
19162 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
19163 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19164 * config/mips/predicates.md: Update comments.
19165
19166 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
19167 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
19168 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19169 (mmix_legitimate_constant_p): Make static, return a bool, and take
19170 a mode argument.
19171 (mmix_print_operand_address): Update accordingly.
19172
19173 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
19174 Delete.
19175 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
19176 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
19177 static. Add a mode argument.
19178 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19179
19180 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
19181
19182 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
19183 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19184 (pa_legitimate_constant_p): New function.
19185
19186 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
19187
19188 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
19189 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19190 (pdp11_legitimate_constant_p): New function.
19191
19192 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
19193 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19194 (rs6000_legitimate_constant_p): New function.
19195
19196 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
19197 (rx_legitimate_constant_p): ...this.
19198 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
19199 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
19200 (rx_legitimate_constant_p): ...this.
19201 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19202 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
19203
19204 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
19205 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
19206 * config/s390/s390.c (legitimate_constant_p): Rename to...
19207 (s390_legitimate_constant_p): ...this. Make static, return a bool,
19208 and add a mode argument.
19209 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19210
19211 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
19212
19213 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
19214 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19215 (sh_legitimate_constant_p): New function.
19216
19217 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
19218 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
19219 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19220 (legitimate_constant_p): Rename to...
19221 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
19222 argument.
19223 (constant_address_p): Update accordingly.
19224
19225 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
19226 argument and return a bool.
19227 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
19228 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19229 (spu_legitimate_constant_p): Add a mode argument and return a bool.
19230 (spu_rtx_costs): Update accordingly.
19231 * config/spu/predicates.md (vec_imm_operand): Likewise.
19232
19233 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
19234
19235 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
19236 * config/v850/v850.c (v850_legitimate_constant_p): New function.
19237 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19238
19239 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
19240 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
19241 * config/vax/vax.c (legitimate_constant_p): Likewise.
19242
19243 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
19244 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19245 (xtensa_legitimate_constant_p): New function.
19246
19247 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
19248
19249 * target.def (cannot_force_const_mem): Add a mode argument.
19250 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
19251 * doc/tm.texi: Regenerate.
19252 * hooks.h (hook_bool_mode_rtx_false): Declare.
19253 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
19254 (hook_bool_mode_const_rtx_true): Likewise.
19255 (hook_bool_mode_rtx_false): New function.
19256 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
19257 to be non-VOID. Update call to cannot_force_const_mem.
19258 (find_reloads): Update accordingly.
19259 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
19260 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
19261 argument.
19262 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
19263 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
19264 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
19265 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
19266 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
19267 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
19268 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
19269 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
19270 (m68k_cannot_force_const_mem): ...this new function.
19271 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
19272 argument.
19273 (mips_const_insns, mips_legitimize_const_move): Update calls.
19274 (mips_secondary_reload_class): Likewise.
19275 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
19276 (pa_cannot_force_const_mem): ...this new function.
19277 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
19278 (rs6000_cannot_force_const_mem): ...this new function.
19279 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
19280 argument.
19281 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
19282 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
19283 to...
19284 (xtensa_cannot_force_const_mem): ...this new function.
19285
19286 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
19287
19288 * config/mips/mips.c (mips16_build_function_stub): Call
19289 build_function_type_list instead of build_function_type.
19290 (mips16_build_call_stub): Likewise.
19291
19292 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
19293
19294 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
19295 instead of build_function_type.
19296
19297 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
19298
19299 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
19300 instead of build_function_type.
19301
19302 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
19303
19304 PR target/48678
19305 * config/i386/i386.md (insv): Change operand 0 constraint to
19306 "register_operand". Change operand 1 and 2 constraint to
19307 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
19308 * config/i386/sse.md (sse4_1_pinsrb): Export.
19309 (sse2_pinsrw): Ditto.
19310 (sse4_1_pinsrd): Ditto.
19311 (sse4_1_pinsrq): Ditto.
19312 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
19313 * config/i386/i386.c (ix86_expand_pinsr): New.
19314
19315 2011-04-20 Easwaran Raman <eraman@google.com>
19316
19317 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
19318 containing union type only with -fstrict-aliasing.
19319
19320 2011-04-20 Jim Meyering <meyering@redhat.com>
19321
19322 Remove useless if-before-free tests.
19323 * calls.c (expand_call, save_area): Likewise.
19324 * cfgcleanup.c (try_forward_edges): Likewise.
19325 * collect2.c (collect_execute): Likewise.
19326 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
19327 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
19328 * coverage.c (coverage_checksum_string): Likewise.
19329 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
19330 * cselib.c (cselib_init): Likewise.
19331 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
19332 (df_set_clean_cfg): Likewise.
19333 * function.c (free_after_compilation): Likewise.
19334 * gcc.c (do_spec_1, main): Likewise.
19335 * gcov.c (create_file_names): Likewise.
19336 * gensupport.c (identify_predicable_attribute): Likewise.
19337 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
19338 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
19339 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
19340 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
19341 * ipa-pure-const.c (local_pure_const): Likewise.
19342 * ipa-reference.c (propagate): Likewise.
19343 * ira-costs.c (free_ira_costs): Likewise.
19344 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
19345 * matrix-reorg.c (mat_free): Likewise.
19346 * prefix.c (get_key_value): Likewise.
19347 * profile.c (compute_value_histograms): Likewise.
19348 * reload1.c (free_reg_equiv): Likewise.
19349 * sched-deps.c (free_deps): Likewise.
19350 * sel-sched-ir.c (fence_clear): Likewise.
19351 * sese.c (set_rename, if_region_set_false_region): Likewise.
19352 * tree-data-ref.c (free_rdg): Likewise.
19353 * tree-eh.c (lower_try_finally): Likewise.
19354 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
19355 * tree-ssa-live.c (delete_var_map): Likewise.
19356 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
19357 * tree-ssa-pre.c (phi_trans_add): Likewise.
19358
19359 2011-04-20 Jakub Jelinek <jakub@redhat.com>
19360
19361 PR tree-optimization/48611
19362 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
19363 beyond ERT_MUST_NOT_THROW region.
19364
19365 2011-04-20 Catherine Moore <clm@codesourcery.com>
19366
19367 * config/mips/mips.opt (mfix-24k): New.
19368 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
19369 * config/mips/mips.md (length): Increase by 4 for stores if
19370 fixing 24K errata.
19371 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
19372 all noreorder if fixing 24K errata.
19373 * doc/invoke.texi: Document mfix-24k.
19374
19375 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
19376
19377 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
19378 quad-word modes, reduce to 9-bit index range when above 1016 limit.
19379
19380 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
19381
19382 * config/arm/arm.c (arm_gen_constant): Move movw support ....
19383 (const_ok_for_op): ... to here.
19384
19385 2011-04-20 Kai Tietz <ktietz@redhat.com>
19386
19387 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
19388 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
19389
19390 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
19391
19392 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
19393
19394 2011-04-20 Richard Guenther <rguenther@suse.de>
19395
19396 PR tree-optimization/47892
19397 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
19398 are if-convertible.
19399
19400 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
19401
19402 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
19403
19404 2011-04-20 Tristan Gingold <gingold@adacore.com>
19405
19406 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
19407
19408 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
19409
19410 PR target/18145
19411
19412 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
19413 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
19414 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
19415 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
19416 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
19417
19418 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
19419 New prototype.
19420
19421 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
19422 (avr_asm_named_section, avr_asm_output_aligned_common,
19423 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
19424 New functions to update...
19425 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
19426 (avr_asm_init_sections): Overwrite section callbacks for
19427 data_section, bss_section.
19428 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
19429 from here to...
19430 (avr_file_end): ...here.
19431
19432 2011-04-20 Richard Guenther <rguenther@suse.de>
19433
19434 PR middle-end/48695
19435 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
19436 objects and types here. Adjust for their offset before comparing.
19437
19438 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
19439
19440 * tree-vect-stmts.c (vectorizable_store): Only chain one related
19441 statement per copy.
19442
19443 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
19444
19445 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
19446 (GIMPLE_H): Include $(INTERNAL_FN_H).
19447 (OBJS-common): Add internal-fn.o.
19448 (internal-fn.o): New rule.
19449 * internal-fn.def: New file.
19450 * internal-fn.h: Likewise.
19451 * internal-fn.c: Likewise.
19452 * gimple.h: Include internal-fn.h.
19453 (GF_CALL_INTERNAL): New gf_mask.
19454 (gimple_statement_call): Put fntype into a union with a new
19455 internal_fn field.
19456 (gimple_build_call_internal): Declare.
19457 (gimple_build_call_internal_vec): Likewise.
19458 (gimple_call_same_target_p): Likewise.
19459 (gimple_call_internal_p): New function.
19460 (gimple_call_internal_fn): Likewise.
19461 (gimple_call_fntype): Return null for internal calls.
19462 (gimple_call_set_fntype): Assert that the function is not internal.
19463 (gimple_call_set_fn): Likewise.
19464 (gimple_call_set_fndecl): Likewise.
19465 (gimple_call_set_internal_fn): New function.
19466 (gimple_call_addr_fndecl): Handle null functions.
19467 (gimple_call_return_type): Likewise null types.
19468 * gimple.c (gimple_build_call_internal_1): New function.
19469 (gimple_build_call_internal): Likewise.
19470 (gimple_build_call_internal_vec): Likewise.
19471 (gimple_call_same_target_p): Likewise.
19472 (gimple_call_flags): Handle calls to internal functions.
19473 (gimple_call_fnspec): New function.
19474 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
19475 (gimple_has_side_effects): Handle null functions.
19476 (gimple_rhs_has_side_effects): Likewise.
19477 (gimple_call_copy_skip_args): Handle calls to internal functions.
19478 * cfgexpand.c (expand_call_stmt): Likewise.
19479 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
19480 * gimple-fold.c (gimple_fold_call): Handle null functions.
19481 (gimple_fold_stmt_to_constant_1): Don't fold
19482 calls to internal functions.
19483 * gimple-low.c (gimple_check_call_args): Handle calls to internal
19484 functions.
19485 * gimple-pretty-print.c (dump_gimple_call): Likewise.
19486 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
19487 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
19488 (do_warn_unused_result): Likewise.
19489 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
19490 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
19491 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
19492 the target of a call.
19493 (initialize_hash_element): Update accordingly.
19494 (hashable_expr_equal_p): Use gimple_call_same_target_p.
19495 (iterative_hash_hashable_expr): Handle calls to internal functions.
19496 (print_expr_hash_elt): Likewise.
19497 * tree-ssa-pre.c (can_value_number_call): Likewise.
19498 (eliminate): Handle null functions.
19499 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
19500 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
19501 (find_func_aliases): Likewise.
19502 * value-prof.c (gimple_ic_transform): Likewise.
19503 (gimple_indirect_call_to_profile): Likewise.
19504 * lto-streamer-in.c (input_gimple_stmt): Likewise.
19505 * lto-streamer-out.c (output_gimple_stmt): Likewise.
19506
19507 2011-04-19 Jan Hubicka <jh@suse.cz>
19508
19509 * ipa-inline-transform.c (save_inline_function_body): Add comments.
19510 * ipa-inline.c (inline_small_functions): Compute summaries first,
19511 populate heap later.
19512
19513 2011-04-19 Jan Hubicka <jh@suse.cz>
19514
19515 * cgraph.h (save_inline_function_body): Remove.
19516 * ipa-inline-transform.c: New file, broke out of...
19517 * ipa-inline.c: ... this one; Update toplevel comment.
19518 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
19519 make global.
19520 (update_noncloned_frequencies): Move to ipa-inline-transform.c
19521 (cgraph_mark_inline_edge): Rename to inline_call; move to
19522 ipa-inline-transform.c.
19523 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
19524 move to ipa-inline-transform.c
19525 (recursive_inlining, inline_small_functions, flatten_function,
19526 ipa_inline, inline_always_inline_functions,
19527 early_inline_small_functions): Update.
19528 (inline_transform): Move to ipa-inline-transform.c.
19529 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
19530 Declare.
19531 * Makefile.in (ipa-inline-transform.o): New file.
19532 * cgraphunit.c (save_inline_function_body): Move to
19533 ipa-inline-transform.c
19534
19535 2011-04-19 DJ Delorie <dj@redhat.com>
19536
19537 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
19538 registers if we already know there aren't any.
19539 (m32c_emit_epilogue): Don't emit a barrier here.
19540 (m32c_emit_eh_epilogue): Likewise.
19541 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
19542 operands at expand time.
19543 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
19544 int" wchar type.
19545 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
19546 duplicates. Provide aliases instead.
19547 * config/m32c/prologue.md (eh_return): Emit a barrier here.
19548 (eh_epilogue): Add a "(return)" here as a hint to other parts of
19549 the compiler.
19550
19551 2011-04-19 Anatoly Sokolov <aesok@post.ru>
19552
19553 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
19554 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
19555 (general_or_i64_p, sparc_register_move_cost): New function.
19556
19557 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19558
19559 * doc/install.texi (Configuration, --enable-threads): Remove mach.
19560 Add lynx, mipssde. Sort table.
19561
19562 2011-04-19 Xinliang David Li <davidxl@google.com>
19563
19564 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
19565 not negative.
19566
19567 2011-04-19 Jakub Jelinek <jakub@redhat.com>
19568
19569 PR target/48678
19570 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
19571 is a SUBREG with non-MODE_INT mode inside of it.
19572
19573 2011-04-19 Martin Jambor <mjambor@suse.cz>
19574
19575 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
19576 also according to actual contants.
19577 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
19578 (gimple_fold_call): Use it.
19579 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
19580
19581 2011-04-19 Martin Jambor <mjambor@suse.cz>
19582
19583 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
19584 non-pointer assignments.
19585
19586 2011-04-19 Martin Jambor <mjambor@suse.cz>
19587
19588 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
19589 account anc_offset and otr_type from the indirect edge info.
19590 * ipa-prop.c (get_ancestor_addr_info): New function.
19591 (compute_complex_ancestor_jump_func): Assignment analysis moved to
19592 get_ancestor_addr_info, call it.
19593 (ipa_note_param_call): Do not initialize information about polymorphic
19594 calls, return the indirect call graph edge. Remove the last
19595 parameter, adjust all callers.
19596 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
19597 parameters. Initialize polymorphic information in the indirect edge.
19598
19599 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
19600
19601 PR lto/48148
19602 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
19603 the types if they have different enumeration identifiers.
19604
19605 2011-04-19 Jan Hubicka <jh@suse.cz>
19606
19607 * cgraph.h (cgraph_optimize_for_size_p): Declare.
19608 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
19609 * predict.c (cgraph_optimize_for_size_p): Break out from ...
19610 (optimize_function_for_size_p) ... here.
19611
19612 2011-04-19 Richard Guenther <rguenther@suse.de>
19613
19614 PR lto/48207
19615 * tree.c (free_lang_data): Do not reset the decl-assembler-name
19616 langhook.
19617
19618 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
19619
19620 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
19621 if DECL_NO_INLINE_WARNING_P is set on the function.
19622
19623 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
19624
19625 PR fortran/47976
19626 * reload1.c (inc_for_reload): Return void. All callers changed.
19627 (emit_input_reload_insns): Don't try to delete previous output
19628 reloads to a register, or record spill_reg_store for autoincs.
19629
19630 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
19631
19632 * gengtype.h: Updated copyright year.
19633 (struct input_file_st): Add inpisplugin field.
19634 (type_fileloc): New function.
19635 * gengtype.c
19636 (write_typed_struct_alloc_def): Add gcc_assert.
19637 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
19638 (write_typed_alloc_defns): Don't output for plugin files.
19639 (input_file_by_name): Clear inpisplugin field.
19640 (main): Set inpisplugin field for plugin files.
19641
19642 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
19643
19644 * gengtype-state.c (string_eq): New.
19645 (read_state): Use string_eq instead of strcmp when creating the
19646 state_ident_tab.
19647
19648 2011-04-19 Wei Guozhi <carrot@google.com>
19649
19650 PR target/47855
19651 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
19652 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
19653 linkage.
19654 * config/arm/constraints.md (Uu): New constraint.
19655 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
19656
19657 2011-04-19 Tristan Gingold <gingold@adacore.com>
19658
19659 * config.gcc (-*-*-*vms): Added.
19660 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
19661 definitions moved.
19662 * config/vms/vms-ld.c: New file.
19663 * config/vms/vms-ar.c: New file.
19664 * config/vms/t-vmsnative: New file.
19665
19666 2011-04-18 Xinliang David Li <davidxl@google.com>
19667
19668 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
19669
19670 2011-04-18 Jakub Jelinek <jakub@redhat.com>
19671
19672 PR middle-end/48661
19673 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
19674 if TREE_TYPE (v) is non-NULL.
19675
19676 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
19677 gimple_get_virt_mehtod_for_binfo.
19678 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
19679 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
19680 callers.
19681 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19682
19683 2011-04-18 Michael Matz <matz@suse.de>
19684 Steve Ellcey <sje@cup.hp.com>
19685
19686 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
19687 use its mode as source mode if it isn't VOIDmode.
19688
19689 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
19690
19691 * doc/passes.texi: Fill crossref nodes.
19692
19693 2011-04-18 Jim Meyering <meyering@redhat.com>
19694
19695 Fix doubled-word typos in comments and strings
19696 * config/alpha/vms-unwind.h: s/for for/for/
19697 * config/arm/unwind-arm.h: Likewise.
19698 * config/microblaze/microblaze.c: Likewise.
19699 * config/sh/constraints.md: s/in in/in/
19700 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
19701
19702 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
19703
19704 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
19705 (AVX_FLOAT_MODE_P): Ditto.
19706 (AVX128_VEC_FLOAT_MODE_P): Ditto.
19707 (AVX256_VEC_FLOAT_MODE_P): Ditto.
19708 (AVX_VEC_FLOAT_MODE_P): Ditto.
19709 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
19710 (UNSPEC_MASKSTORE): Ditto.
19711 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
19712 Merge from <sse>_movmsk<ssemodesuffix> and
19713 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
19714 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
19715 iterator.
19716 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
19717 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
19718 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
19719
19720 2011-04-18 Jan Hubicka <jh@suse.cz>
19721
19722 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
19723
19724 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
19725 (want_inline_function_called_once_p): Break out the logic from
19726 ipa_inline.
19727 (edge_badness): Ensure that profile is not misupdated.
19728 (lookup_recursive_calls): Prioritize by call frequencies.
19729 (inline_small_functions): Move program size estimates here;
19730 actually process whole queue even when unit growth has been
19731 met. (to properly compute inline_failed reasons and for the
19732 case unit size decrease.) Revisit comments on recursive inlining.
19733 (ipa_inline): Remove unit summary code; first inline hot calls
19734 of functions called once, cold calls next.
19735 (order, nnodes): Remove unused variables.
19736 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
19737 (GTFILES): Remove ipa-inline.c
19738 * sel-sched.c (fill_insns): Silence uninitialized var warning.
19739
19740 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
19741
19742 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
19743
19744 2011-04-18 Jie Zhang <jie@codesourcery.com>
19745 Richard Earnshaw <rearnsha@arm.com>
19746
19747 * arm.c (neon_builtin_type_bits): Remove.
19748 (typedef enum neon_builtin_mode): New.
19749 (T_MAX): Don't define.
19750 (typedef enum neon_builtin_datum): Remove bits, codes[],
19751 num_vars and base_fcode. Add mode, code and fcode.
19752 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
19753 VAR10): Change accordingly.
19754 (neon_builtin_data[]): Change accordingly
19755 (arm_init_neon_builtins): Change accordingly.
19756 (neon_builtin_compare): Remove.
19757 (locate_neon_builtin_icode): Remove.
19758 (arm_expand_neon_builtin): Change accordingly.
19759
19760 * arm.h (enum arm_builtins): Move to ...
19761 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
19762
19763 * arm.c (arm_builtin_decl): Declare.
19764 (TARGET_BUILTIN_DECL): Define.
19765 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
19766 (arm_builtin_decls[]): New.
19767 (arm_init_neon_builtins): Store builtin declarations in
19768 arm_builtin_decls[].
19769 (arm_init_tls_builtins): Likewise.
19770 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
19771 (arm_builtin_decl): New.
19772
19773 2011-04-18 Richard Guenther <rguenther@suse.de>
19774
19775 * tree.c (upper_bound_in_type): Build properly canonicalized
19776 INTEGER_CSTs.
19777 (lower_bound_in_type): Likewise.
19778
19779 2011-04-18 Richard Guenther <rguenther@suse.de>
19780
19781 * gimple.h (gimple_call_addr_fndecl): New function.
19782 (gimple_call_fndecl): Use it.
19783 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
19784 for direct calls.
19785 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
19786 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
19787
19788 2011-04-18 Richard Guenther <rguenther@suse.de>
19789
19790 PR middle-end/48650
19791 * tree.c (build_string): STRING_CST is now derived from tree_typed.
19792
19793 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
19794
19795 PR lto/48492
19796 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
19797 DECL_IN_CONSTANT_POOL without RTL.
19798
19799 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
19800 Ira Rosen <ira.rosen@linaro.org>
19801
19802 PR target/48252
19803 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
19804 to match neon_vzip/vuzp/vtrn_internal.
19805 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
19806 outputs explicitly dependent on both inputs.
19807 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
19808
19809 2011-04-18 Jakub Jelinek <jakub@redhat.com>
19810
19811 PR tree-optimization/48616
19812 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
19813 whether the shift is by scalar or vector based on whether all SLP
19814 scalar stmts have the same rhs.
19815
19816 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
19817
19818 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
19819 memory operands.
19820
19821 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
19822
19823 PR target/43700
19824 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
19825 registers.
19826
19827 2011-04-17 Jan Hubicka <jh@suse.cz>
19828
19829 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
19830 * cgrpahunit.c (cgraph_finalize_function): Do not set
19831 finalized_by_frontend.
19832 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
19833 finalized_by_frontend.
19834
19835 2011-04-17 Jan Hubicka <jh@suse.cz>
19836
19837 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
19838 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
19839 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
19840 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
19841 method.
19842 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
19843 gimple-fold.c
19844 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
19845
19846 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
19847
19848 PR lto/48538
19849 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
19850 is non-null before accessing it.
19851 (input_cgraph): Remove trailing spaces.
19852
19853 2011-04-17 Revital Eres <revital.eres@linaro.org>
19854
19855 * params.def (sms-min-sc): New param flag.
19856 * modulo-sched.c (sms_schedule): Use it.
19857 * doc/invoke.texi (sms-min-sc): Document it.
19858
19859 2011-04-17 Jan Hubicka <jh@suse.cz>
19860
19861 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
19862 present, also set gimple_call_set_cannot_inline.
19863 * ipa-inline.c: Update toplevel comment.
19864 (MAX_TIME): Remove.
19865 (cgraph_clone_inlined_nodes): Fix linebreaks.
19866 (cgraph_check_inline_limits): Restructure to ...
19867 (caller_growth_limits): ... this one; be more tolerant
19868 on growth in nested inline chains; add explanatory comment;
19869 fix stack accounting thinko introduced by previous patch.
19870 (cgraph_default_inline_p): Remove.
19871 (report_inline_failed_reason): New function.
19872 (can_inline_edge_p): New function.
19873 (can_early_inline_edge_p): New function.
19874 (leaf_node_p): Move upwards in file.
19875 (want_early_inline_function_p): New function.
19876 (want_inline_small_function_p): New function.
19877 (want_inline_self_recursive_call_p): New function.
19878 (cgraph_edge_badness): Rename to ...
19879 (edge_badness) ... this one; fix linebreaks.
19880 (update_edge_key): Update call of edge_baddness; add
19881 detailed dump about queue updates.
19882 (update_caller_keys): Use can_inline_edge_p and
19883 want_inline_small_function_p.
19884 (cgraph_decide_recursive_inlining): Rename to...
19885 (recursive_inlining): Use can_inline_edge_p and
19886 want_inline_self_recursive_call_p; simplify and remove no longer
19887 valid FIXME.
19888 (cgraph_set_inline_failed): Remove.
19889 (add_new_edges_to_heap): Use can_inline_edge_p and
19890 want_inline_small_function_p.
19891 (cgraph_decide_inlining_of_small_functions): Rename to ...
19892 (inline_small_functions): ... this one; cleanup; use
19893 can/want predicates; cleanup debug ouput; work edges till fibheap
19894 is exhausted and do not stop once unit growth is reached; remove
19895 later loop processing remaining edges.
19896 (cgraph_flatten): Rename to ...
19897 (flatten_function): ... this one; use can_inline_edge_p
19898 and can_early_inline_edge_p predicates.
19899 (cgraph_decide_inlining): Rename to ...
19900 (ipa_inline): ... this one; remove unreachable nodes before
19901 inlining functions called once; simplify the pass.
19902 (cgraph_perform_always_inlining): Rename to ...
19903 (inline_always_inline_functions): ... this one; use
19904 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
19905 (cgraph_decide_inlining_incrementally): Rename to ...
19906 (early_inline_small_functions): ... this one; simplify
19907 using new predicates; cleanup; make dumps prettier.
19908 (cgraph_early_inlining): Rename to ...
19909 (early_inliner): newer inline regular functions into always-inlines;
19910 fix updating of call stmt summaries.
19911 (pass_early_inline): Update for new names.
19912 (inline_transform): Fix formating.
19913 (gate_cgraph_decide_inlining): Rename to ...
19914 (pass_ipa_inline): ... this one.
19915 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
19916 * ipa-inline-analysis.c (dump_inline_summary): Update.
19917 (compute_inline_parameters): Do not compute disregard_inline_limits;
19918 look for mismatching arguments.
19919 (estimate_growth): Fix handlig of non-trivial self recursion.
19920 (inline_read_summary): Do not read info->disregard_inline_limits.
19921 (inline_write_summary): Do not write info->disregard_inline_limits.
19922 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
19923 and move all checks into can_inline_edge_p predicate; re-enable code
19924 comparing optimization levels.
19925 (expand_call_inline): Do not test inline_forbidden_into_p.
19926 * Makefile.in (ipa-inline.o): Update arguments.
19927
19928 2011-04-17 Revital Eres <revital.eres@linaro.org>
19929
19930 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
19931
19932 2011-04-17 Revital Eres <revital.eres@linaro.org>
19933
19934 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
19935
19936 2011-04-17 Michael Matz <matz@suse.de>
19937
19938 PR tree-optimization/48622
19939 PR lto/48645
19940 * ipa-inline-analysis.c (inline_read_summary): Read size/time
19941 in same order as they're written.
19942
19943 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19944
19945 * config/pa/predicates.md: Reorganize and simplify predicates.
19946 Eliminate duplicate code checks.
19947 (arith_operand): Rename to arith14_operand
19948 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
19949 * config/pa/pa.md: Use renamed operands.
19950 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
19951 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
19952 arith11_operand, adddi3_operand, indexed_memory_operand,
19953 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
19954 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
19955 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
19956 move_dest_operand, move_src_operand, prefetch_cc_operand,
19957 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
19958 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
19959 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
19960 div_operand, int5_operand, movb_comparison_operator,
19961 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
19962 arith_double_operand, ireg_operand, lhs_lshift_operand,
19963 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
19964 integer_store_memory_operand): Likewise.
19965 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
19966 (integer_store_memory_operand, read_only_operand,
19967 function_label_operand, borx_reg_operand,
19968 non_hard_reg_operand): Likewise.
19969 (eq_neq_comparison_operator): Delete unused operator.
19970 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
19971 function_label_operand.
19972 (emit_move_sequence): Likewise.
19973
19974 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
19975
19976 * config/i386/sse.md (sseunpackmode): New mode attribute.
19977 (ssepackmode): Ditto.
19978 (vec_pack_trunc_<mode>): Macroize expander from
19979 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
19980 (vec_unpacks_lo_<mode>): Macroize expander from
19981 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19982 (vec_unpacks_hi_<mode>): Macroize expander from
19983 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19984 (vec_unpacku_lo_<mode>): Macroize expander from
19985 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19986 (vec_unpacku_hi_<mode>): Macroize expander from
19987 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19988 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
19989 ix86_expand_sse4_unpack.
19990 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
19991
19992 2011-04-16 Jan Hubicka <jh@suse.cz>
19993
19994 * cgraphbuild.c: Include ipa-inline.h.
19995 (reset_inline_failed): Use initialize_inline_failed.
19996 * cgraph.c: Include ipa-inline.h.
19997 (cgraph_create_node_1): Do not initialize estimated_growth.
19998 (initialize_inline_failed): More to ipa-inline-analysis.c
19999 (dump_cgraph_node): Do not dump inline flags.
20000 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
20001 and disregard_inline_limits flags.
20002 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
20003 time, size, estimated_growth.
20004 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
20005 Update.
20006 * cgraphunit.c (cgraph_decide_is_function_needed): Use
20007 DECL_DISREGARD_INLINE_LIMITS.
20008 (cgraph_analyze_function): Do not initialize
20009 node->local.disregard_inline_limits.
20010 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
20011 inlinable, versionable and disregard_inline_limits.
20012 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
20013 cgraph_check_inline_limits, cgraph_default_inline_p,
20014 cgraph_edge_badness, update_caller_keys, update_callee_keys,
20015 add_new_edges_to_heap): Update.
20016 (cgraph_decide_inlining_of_small_function): Update; set
20017 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
20018 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
20019 cgraph_decide_inlining_incrementally): Update.
20020 * ipa-inline.h (inline_summary): Add inlinable, versionable,
20021 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
20022 time, size and estimated_growth parameters.
20023 (estimate_edge_growth): Update.
20024 (initialize_inline_failed): Declare.
20025 * ipa-split.c: Include ipa-inline.h
20026 (execute_split_functions): Update.
20027 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
20028 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
20029 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
20030 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
20031 estimated_growth to INT_MIN.
20032 (inline_node_duplication_hook): Likewise.
20033 (dump_inline_summary): Dump new fields.
20034 (compute_inline_parameters): Update.
20035 (estimate_edge_time, estimate_time_after_inlining,
20036 estimate_size_after_inlining, estimate_growth, inline_read_summary,
20037 inline_write_summary):
20038 (initialize_inline_failed): Move here from cgraph.c.
20039 * tree-sra.c: Include ipa-inline.h.
20040 (ipa_sra_preliminary_function_checks): Update.
20041 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
20042 ipa-inline.h.
20043
20044 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
20045
20046 * config/i386/sse.md (V16): New mode iterator.
20047 (VI1, VI8): Ditto.
20048 (AVXMODEQI, AVXMODEDI): Remove.
20049 (sse2, sse3): New mode attribute.
20050 (mov<mode>): Use V16 mode iterator.
20051 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
20052 (push<mode>1): Use V16 mode iterator.
20053 (movmisalign<mode>): Ditto.
20054 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
20055 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
20056 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
20057 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
20058 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
20059 avx_movdqu<avxmodesuffix>.
20060 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
20061 *avx_movdqu<avxmodesuffix>.
20062 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
20063 avx_lddqu<avxmodesuffix>.
20064 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
20065 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
20066 avx_movnt<AVXMODEDI:mode>.
20067 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
20068 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
20069
20070 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
20071
20072 PR target/48629
20073 * haifa-sched.c (prune_ready_list, schedule_block): Use
20074 sched_pressure_p rather than flag_sched_pressure.
20075
20076 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
20077
20078 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
20079 cgraph_get_node instead of cgraph_get_create_node.
20080
20081 2011-04-15 Jakub Jelinek <jakub@redhat.com>
20082
20083 * cfgexpand.c (expand_debug_expr): Use
20084 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
20085
20086 2011-04-15 Michael Matz <matz@suse.de>
20087
20088 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
20089 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
20090 * function.c (gimplify_parameters): Ditto.
20091 * gimplify.c (gimplify_vla_decl): Ditto.
20092
20093 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
20094 (gimple_call_set_alloca_for_var): New inline function.
20095 (gimple_call_alloca_for_var_p): Ditto.
20096 * gimple.c (gimple_build_call_from_tree): Remember
20097 CALL_ALLOCA_FOR_VAR_P state.
20098 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
20099
20100 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
20101 calls if they were for VLA objects.
20102
20103 2011-04-15 Martin Jambor <mjambor@suse.cz>
20104
20105 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
20106 of ADR_EXPRs.
20107
20108 2011-04-15 Martin Jambor <mjambor@suse.cz>
20109
20110 PR middle-end/48601
20111 * tree-emutls.c (lower_emutls_function_body): Call
20112 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
20113 result is non-NULL.
20114
20115 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
20116
20117 * c-decl.c (detect_field_duplicates): Call
20118 objc_detect_field_duplicates instead of objc_get_interface_ivars.
20119
20120 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
20121
20122 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
20123 * gimple.c (gimple_asm_clobbers_memory_p): Define.
20124 * ipa-pure-const.c (check_stmt): Call it.
20125 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
20126
20127 2011-04-15 Richard Guenther <rguenther@suse.de>
20128
20129 PR tree-optimization/48290
20130 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
20131 Properly decide inhibiting propagation based on the valueized
20132 operand. Do loop-closed SSA form preserving here ...
20133 (init_copy_prop): ... not here.
20134
20135 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
20136
20137 PR target/48612
20138 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
20139 (*ieee_smax<mode>3): Likewise.
20140
20141 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20142
20143 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
20144 Replace match_operand with match_dup for the third operand in
20145 these expanders.
20146
20147 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
20148
20149 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
20150 to track processing of conditionals. Update all callers.
20151 (try_combine, simplify_if_then_else): Update.
20152
20153 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
20154
20155 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
20156 -fsched-pressure.
20157
20158 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
20159
20160 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
20161 instead of match_operand for operand 3.
20162
20163 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
20164
20165 * recog.h (insn_operand_data): Add an "allows_mem" field.
20166 * genoutput.c (output_operand_data): Initialize it.
20167 * optabs.c (maybe_legitimize_operand_same_code): New function.
20168 (maybe_legitimize_operand): Use it when matching the original
20169 op->value.
20170
20171 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
20172
20173 * gimplify.c: Fix issues in comments throughout.
20174 (voidify_wrapper_expr): Fix long line.
20175 (build_stack_save_restore): Likewise.
20176 (gimplify_loop_expr): Likewise.
20177 (gimplify_compound_lval): Likewise.
20178 (gimplify_init_ctor_eval): Likewise.
20179 (gimplify_modify_expr_rhs): Likewise.
20180 (omp_notice_threadprivate_variable): Likewise.
20181
20182 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
20183
20184 * cfgexpand.c (expand_call_stmt): Convert the function type to the
20185 original one if this is not a builtin function.
20186
20187 2011-04-14 Jakub Jelinek <jakub@redhat.com>
20188
20189 PR target/48605
20190 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
20191 offset it as needed based on top 2 bits in operands[3], change
20192 MEM mode to SFmode and mask those 2 bits away from operands[3].
20193
20194 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
20195
20196 * c-parser.c (c_parser_objc_protocol_definition): Updated for
20197 change from objc_declare_protocols() to objc_declare_protocol().
20198
20199 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
20200
20201 * config/i386/sse.md (sse4_1): New mode attribute.
20202 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
20203 avx_blend<ssemodesuffix><avxmodesuffix> and
20204 sse4_1_blend<ssemodesuffix> using VF mode iterator.
20205 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
20206 avx_blendv<ssemodesuffix><avxmodesuffix> and
20207 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
20208 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
20209 avx_dp<ssemodesuffix><avxmodesuffix> and
20210 sse4_1_dp<ssemodesuffix> using VF mode iterator.
20211 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
20212 (sse4_1_packusdw): Merge with *avx_packusdw.
20213 (sse4_1_pblendvb): Merge with *avx_pblendvb.
20214 (sse4_1_pblendw): Merge with *avx_pblendw.
20215 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
20216 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
20217 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
20218 VF mode iterator.
20219 (sse4_1_round<ssescalarmodesuffix>): Merge with
20220 *avx_round<ssescalarmodesuffix>.
20221 (aesenc): Merge with *avx_aesenc.
20222 (aesenclast): Merge with *avx_aesenclast.
20223 (aesdec): Merge with *avx_aesdec.
20224 (aesdeclast): Merge with *avx_aesdeclast.
20225 (pclmulqdq): Merge with *pclmulqdq.
20226 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
20227 New predicate.
20228 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
20229
20230 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
20231
20232 PR middle-end/48608
20233 * cfgexpand.c (get_decl_align_unit): Renamed to ...
20234 (align_local_variable): This. Update DECL_ALIGN.
20235 (add_stack_var): Updated.
20236 (expand_one_stack_var): Likewise.
20237
20238 2011-04-14 Richard Guenther <rguenther@suse.de>
20239
20240 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
20241 Remove.
20242 (dse_initialize_block_local_data, dse_leave_block,
20243 record_voperand_set, get_stmt_uid): Likewise.
20244 (dse_possible_dead_store_p): Allow any kind of killing stmt.
20245 (dse_optimize_stmt): Remove voperand set handling code.
20246 Simplify and improve to handle any kind of killing stmt.
20247 (dse_record_phi): Remove.
20248 (dse_enter_block): Simplify.
20249 (tree_ssa_dse): Likewise.
20250 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
20251
20252 2011-04-14 Jan Hubicka <jh@suse.cz>
20253
20254 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
20255 * cgraph.h (struct inline_summary): Move to ipa-inline.h
20256 (cgraph_local_info): Remove inline_summary.
20257 * ipa-cp.c: Include ipa-inline.h.
20258 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
20259 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
20260 accesor.
20261 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
20262 (input_overwrite_node): Do not set inline summary.
20263 (input_node): Do not stream inline summary.
20264 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
20265 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
20266 growth; we do not have inline parameters computed for that anyway.
20267 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
20268 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
20269 (inline_summary_t): New type and VECtor.
20270 (debug_inline_summary, dump_inline_summaries): Declare.
20271 (inline_summary): Use VOCtor.
20272 (estimate_edge_growth): Kill hack computing call stmt size directly.
20273 * lto-section-in.c (lto_section_name): Add inline section.
20274 * ipa-inline-analysis.c: Include lto-streamer.h
20275 (node_removal_hook_holder, node_duplication_hook_holder): New holders
20276 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
20277 (inline_summary_vec): Define.
20278 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
20279 dump_inline_summaries): New functions.
20280 (estimate_function_body_sizes): Properly compute size/time of outgoing
20281 calls.
20282 (compute_inline_parameters): Alloc inline_summary; do not compute
20283 size/time of incomming calls.
20284 (estimate_edge_time): Avoid missing time summary hack.
20285 (inline_read_summary): Read inline summary info.
20286 (inline_write_summary): Write inline summary info.
20287 (inline_free_summary): Free all hooks and inline summary vector.
20288 * lto-streamer.h: Add LTO_section_inline_summary section.
20289 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
20290 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
20291
20292 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
20293
20294 * tree-vectorizer.h (vect_strided_store_supported): Add a
20295 HOST_WIDE_INT argument.
20296 (vect_strided_load_supported): Likewise.
20297 (vect_permute_store_chain): Return void.
20298 (vect_transform_strided_load): Likewise.
20299 (vect_permute_load_chain): Delete.
20300 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
20301 count argument. Check that the count is a power of two.
20302 (vect_strided_load_supported): Likewise.
20303 (vect_permute_store_chain): Return void. Update after above changes.
20304 Assert that the access is supported.
20305 (vect_permute_load_chain): Likewise.
20306 (vect_transform_strided_load): Return void.
20307 * tree-vect-stmts.c (vectorizable_store): Update calls after
20308 above interface changes.
20309 (vectorizable_load): Likewise.
20310 (vect_analyze_stmt): Don't check for strided powers of two here.
20311
20312 2011-04-14 Richard Guenther <rguenther@suse.de>
20313
20314 PR tree-optimization/48590
20315 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
20316 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
20317 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
20318 BUILT_IN_STACK_SAVE.
20319 * tree-ssa-dce.c (propagate_necessity): Handle
20320 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
20321
20322 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
20323
20324 * c-parser.c (c_parser_objc_class_declaration): Updated call to
20325 objc_declare_class.
20326
20327 2011-04-14 Richard Guenther <rguenther@suse.de>
20328
20329 * tree.h (get_object_alignment_1): Declare.
20330 * builtins.c (get_object_alignment_1): Split out worker from ...
20331 (get_object_alignment): ... here.
20332 * fold-const.c (get_pointer_modulus_and_residue): Use
20333 get_object_alignment_1.
20334
20335 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
20336
20337 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
20338 type parameter.
20339 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
20340 parameter. Generalise code to handle arrays as well as vectors.
20341 (vect_setup_realignment): Update accordingly.
20342 * tree-vect-stmts.c (vectorizable_store): Likewise.
20343 (vectorizable_load): Likewise.
20344
20345 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
20346
20347 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
20348 within the per-copy loop.
20349
20350 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
20351
20352 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
20353 in the dump file.
20354
20355 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
20356
20357 * doc/options.texi (Negative): Explicitly mention that the
20358 Negative chain must be circular.
20359
20360 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
20361
20362 * function.h (block_chainon): Declare.
20363 * function.c (block_chainon): Define.
20364
20365 2011-04-14 Anatoly Sokolov <aesok@post.ru>
20366 Eric Weddington <eric.weddington@atmel.com>
20367 Georg-Johann Lay <avr@gjlay.de>
20368
20369 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
20370 New Includes
20371 (avr_init_builtins, avr_expand_builtin,
20372 avr_expand_delay_cycles, avr_expand_unop_builtin,
20373 avr_expand_binop_builtin ): New functions.
20374 (avr_builtin_id): New enum
20375 (struct avr_builtin_description): New struct
20376 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
20377 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
20378
20379 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
20380 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
20381 UNSPECV_DELAY_CYCLES): new enumeration values
20382 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
20383 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
20384 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
20385 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
20386 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
20387 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
20388 "fmulsu"): New insns
20389
20390 * config/avr/avr-c.c: fix line endings
20391 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
20392 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
20393 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
20394 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
20395 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
20396
20397 * doc/extend.texi (AVR Built-in Functions): New node
20398 (Target Builtins): Add documentation of AVR
20399 built-in functions.
20400
20401 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
20402
20403 PR target/44643
20404 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
20405 alone. Error if non-const data has attribute progmem.
20406
20407 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
20408
20409 * tree.h (struct tree_constructor): Include tree_typed instead of
20410 tree_common.
20411 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
20412 TS_TYPED instead of TS_COMMON.
20413
20414 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
20415
20416 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
20417 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
20418 (sse2_psadbw): Merge with *avx_psadbw.
20419 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
20420 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
20421 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
20422 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
20423 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
20424 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
20425 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
20426 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
20427 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
20428 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
20429 (ssse3_palignrti): Merge with *avx_palignrti.
20430
20431 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
20432
20433 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
20434 * tree-ssanames.c (fini_ssanames): VEC_free it.
20435 (make_ssa_name_fn): Update for VECness of free_ssanames.
20436 (release_ssa_name, release_dead_ssa_names): Likewise.
20437 * tree.h (struct tree_ssa_name): Include tree_typed instead of
20438 tree_common.
20439 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
20440 TS_TYPED instead of TS_COMMON.
20441
20442 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
20443
20444 * postreload-gcse.c (gcse_after_reload_main): Add calls to
20445 statistics_counter_event.
20446 * tree-ssa-copyrename.c (stats): Define.
20447 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
20448 statistics_counter_event.
20449 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
20450 (bswap_stats, widen_mul_stats): Define.
20451 (insert_reciprocals): Increment rdivs_inserted.
20452 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
20453 rfuncs_inserted. Add calls to statistics_counter_event.
20454 (execute_cse_sincos_1): Increment inserted.
20455 (execute_cse_sincos): Zeroize sincos_stats. Add call to
20456 statistics_counter_event.
20457 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
20458 of bswap_stats. Add calls to statistics_counter_event.
20459 (convert_mult_to_widen): Increment widen_mults_inserted.
20460 (convert_plusminus_to_widen): Increment maccs_inserted.
20461 (convert_mult_to_fma): Increment fmas_inserted.
20462 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
20463 calls to statistics_counter_event.
20464
20465 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
20466
20467 PR rtl-optimization/48455
20468 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
20469 `temp_costs->mem_cost'.
20470
20471 2011-04-13 Jan Hubicka <jh@suse.cz>
20472
20473 * ipa-inline.h: New file.
20474 * ipa-inline-analysis.c: New file. Broken out of ...
20475 * ipa-inline.c: ... this file; update toplevel comment;
20476 include ipa-inline.h
20477 (inline_summary): Move to ipa-inline.h
20478 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
20479 ipa-inline-analysis.c.
20480 (cgraph_estimate_time_after_inlining): Rename to
20481 estiamte_time_after_inlining; move to ipa-inline-analysis.c
20482 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
20483 to estimate_edge_growth.
20484 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
20485 rename to estimate_size_after_inlining.
20486 (cgraph_mark_inline_edge): Update for new naming convention.
20487 (cgraph_check_inline_limits): Likewise.
20488 (cgraph_edge_badness): Likewise.
20489 (cgraph_decide_recursive_inlining): Likewise.
20490 (cgraph_decide_inlining_of_small_functions): Likewise.
20491 (cgraph_decide_inlining_incrementally): Likewise.
20492 (cgraph_estimate_growth): Rename to estimate_growth; move to
20493 ipa-inline-analysis.c.
20494 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
20495 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
20496 (compute_inline_parameters): Likewise.
20497 (compute_inline_parameters_for_current): Likewise.
20498 (pass_inline_parameters): Likewise.
20499 (inline_indirect_intraprocedural_analysis): Likewise.
20500 (analyze_function): Rename to inline_analyze_function; likewise.
20501 (add_new_function): Move to ipa-inline-analysis.c.
20502 (inline_generate_summary): Likewise.
20503 (inline_read_summary): Likewise.
20504 (inline_write_summary): Likewise.
20505 * Makefile.in (ipa-inline-analysis.c): New file.
20506
20507 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20508
20509 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
20510 * configure: Regenerate.
20511
20512 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
20513
20514 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
20515 instead of tree_common.
20516 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
20517 Likewise.
20518 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
20519 TS_TYPED rather than TS_COMMON.
20520 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
20521
20522 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
20523
20524 PR target/45263
20525 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
20526 r20 around calls of __tablejump_elpm__
20527
20528 2011-04-13 Jakub Jelinek <jakub@redhat.com>
20529
20530 PR middle-end/48591
20531 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
20532 NULL.
20533 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
20534
20535 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
20536
20537 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
20538 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
20539 (cfi_vec): New typedef.
20540 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
20541 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
20542 (cie_cfi_vec): New static variable.
20543 (cie_cfi_head): Delete.
20544 (add_cfi): Accept a cfi_vec * as first argument. All callers and
20545 declaration changed. Use vector rather than list operations.
20546 (new_cfi): Don't initialize the dw_cfi_next field.
20547 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
20548 rather than list operations.
20549 (lookup_cfa): Use vector rather than list operations.
20550 (output_cfis): New argument upto. Accept a cfi_vec rather than
20551 a dw_cfi_ref list head as argument. All callers changed.
20552 Iterate over the vector using upto as a maximum index.
20553 (output_all_cfis): New static function.
20554 (output_fde): Use vector rather than list operations. Use the
20555 new upto argument for output_cfis rather than manipulating a
20556 list.
20557 (dwarf2out_begin_prologue): Change initializations to match
20558 new struct members.
20559 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
20560 from the vector length rather than searching for the end of a list.
20561 Use output_all_cfis.
20562 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
20563
20564 2011-04-13 Nick Clifton <nickc@redhat.com>
20565
20566 * config/rx/rx.md (movmemsi): Do not use this pattern when
20567 volatile pointers are involved.
20568
20569 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
20570
20571 * config/i386/sse.md (pinsrbits): Remove.
20572 (sse2_packsswb): Merge with *avx_packsswb.
20573 (sse2_packssdw): Merge with *avx_packssdw.
20574 (sse2_packuswb): Merge with *avx_packuswb.
20575 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
20576 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
20577 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
20578 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
20579 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
20580 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
20581 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
20582 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
20583 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
20584 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
20585 (sse2_loadld): Merge with *avx_loadld.
20586 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
20587 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
20588 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
20589 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
20590 (vec_concatv2di): Merge with *vec_concatv2di_avx.
20591
20592 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
20593
20594 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
20595 calling TREE_CHAIN.
20596 * print-tree.c (print_node): Likewise.
20597 * tree-inline.c (copy_tree_r): Likewise.
20598 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
20599 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
20600 instead of TS_COMMON.
20601 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
20602 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
20603 (copy_node_stat): Zero TREE_CHAIN only if necessary.
20604 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
20605 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
20606 ...and these...
20607 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
20608 * tree.h: ...here.
20609 (TREE_CHAIN): Check for a TS_COMMON structure.
20610 (TREE_TYPE): Check for a TS_TYPED structure.
20611
20612 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
20613
20614 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
20615 cgraph_get_create_node instead of cgraph_node.
20616
20617 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
20618
20619 * c-parser.c (c_parser_initelt): Updated call to
20620 objc_build_message_expr.
20621 (c_parser_postfix_expression): Likewise.
20622
20623 2011-04-12 Kai Tietz <ktietz@redhat.com>
20624
20625 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
20626 MASK_MS_BITFIELD_LAYOUT bit.
20627
20628 2011-04-12 Jakub Jelinek <jakub@redhat.com>
20629
20630 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
20631 assert it is always true.
20632 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
20633 moves.
20634
20635 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
20636
20637 * c-parser.c (c_lex_one_token): Rewritten conditional used when
20638 compiling Objective-C to be more efficient.
20639
20640 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
20641
20642 * opts-common.c (decode_cmdline_options_to_array): Remove variable
20643 argv_copied.
20644
20645 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20646
20647 * recog.h, genoutput.c, optabs.c: Revert last patch.
20648
20649 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20650
20651 PR target/48090
20652 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
20653
20654 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20655
20656 * recog.h (insn_operand_data): Add an "allows_mem" field.
20657 * genoutput.c (output_operand_data): Initialize it.
20658 * optabs.c (maybe_legitimize_operand_same_code): New function.
20659 (maybe_legitimize_operand): Use it when matching the original
20660 op->value.
20661
20662 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20663
20664 * genpreds.c (process_define_predicate): Move most processing
20665 to gensupport.c. Continue to validate the expression.
20666 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
20667 (process_define_predicate): Move processing to gensupport.c.
20668 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
20669 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
20670 (compute_predicate_codes): Moved from genrecog.c. Add lineno
20671 argument.
20672 (valid_predicate_name_p): New function, split out from old
20673 genpreds.c:process_define_predicate.
20674 (process_define_predicate): New function, combining code from
20675 old genpreds.c and genrecog.c functions.
20676 (process_rtx): Call it for DEFINE_PREDICATE and
20677 DEFINE_SPECIAL_PREDICATE.
20678
20679 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20680
20681 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
20682 size of a '%A' memory reference.
20683 (T_DREG, T_QREG): New neon_builtin_type_bits.
20684 (arm_init_neon_builtins): Assert that the load and store operands
20685 are neon_struct_operands.
20686 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
20687 (NEON_ARG_MEMORY): New builtin_arg.
20688 (neon_dereference_pointer): New function.
20689 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
20690 Handle NEON_ARG_MEMORY.
20691 (arm_expand_neon_builtin): Update after above interface changes.
20692 Use NEON_ARG_MEMORY for loads and stores.
20693 * config/arm/predicates.md (neon_struct_operand): New predicate.
20694 * config/arm/iterators.md (V_two_elem): Tweak formatting.
20695 (V_three_elem): Use BLKmode for accesses that have no associated mode.
20696 (V_four_elem): Tweak formatting.
20697 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
20698 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
20699 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
20700 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
20701 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
20702 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
20703 (neon_vst4<mode>): Replace pointer operand with a memory operand.
20704 Use %A in the output template.
20705 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
20706 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
20707 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
20708 the width of the memory access. Remove post-increment.
20709 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
20710
20711 2011-04-12 Nick Clifton <nickc@redhat.com>
20712
20713 * config/v850/v850.c (expand_prologue): Do not use the CALLT
20714 instruction for interrupt handlers if the target is the basic V850
20715 architecture.
20716 (expand_epilogue): Likewise.
20717
20718 2011-04-12 Jakub Jelinek <jakub@redhat.com>
20719
20720 PR rtl-optimization/48549
20721 * combine.c (propagate_for_debug): Also stop after BB_END of
20722 this_basic_block. Process LAST and just stop processing after it.
20723 (combine_instructions): If last_combined_insn has been deleted,
20724 set last_combined_insn to its PREV_INSN.
20725
20726 2011-04-12 Richard Guenther <rguenther@suse.de>
20727
20728 PR tree-optimization/46076
20729 * gimple.h (struct gimple_statement_call): Add fntype field.
20730 (gimple_call_fntype): Adjust.
20731 (gimple_call_set_fntype): New function.
20732 * gimple.c (gimple_build_call_1): Set the call function type.
20733 * gimplify.c (gimplify_call_expr): Preserve the function
20734 type the frontend used for the call.
20735 (gimplify_modify_expr): Likewise.
20736 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
20737 function type.
20738 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
20739 function type.
20740 * tree-ssa.c (useless_type_conversion_p): Function pointer
20741 conversions are useless.
20742
20743 2011-04-12 Martin Jambor <mjambor@suse.cz>
20744
20745 * cgraph.h (cgraph_node): Remove function declaration.
20746 (cgraph_create_node): Declare.
20747 (cgraph_get_create_node): Likewise.
20748 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
20749 Updated all callers.
20750 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
20751 the decl does not already exist. Call cgraph_get_create_node instead
20752 of cgraph_node.
20753 (cgraph_get_create_node): New function.
20754 (cgraph_same_body_alias): Update comment.
20755 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
20756 assert it does not return NULL.
20757 (cgraph_update_edges_for_call_stmt): Likewise.
20758 (cgraph_clone_edge): Likewise.
20759 (cgraph_create_virtual_clone): Likewise.
20760 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
20761 instead of cgraph_node.
20762 (cgraph_add_new_function): Call cgraph_create_node or
20763 cgraph_get_create_node instead of cgraph_node.
20764 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
20765 instead of cgraph_node.
20766 (record_eh_tables): Likewise.
20767 (mark_address): Likewise.
20768 (mark_load): Likewise.
20769 (build_cgraph_edges): Call cgraph_get_create_node instead
20770 of cgraph_node.
20771 (rebuild_cgraph_edges): Likewise.
20772 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
20773 instead of cgraph_node.
20774 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
20775 cgraph_node.
20776 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
20777 cgraph_create_node instead of cgraph_node.
20778 * c-decl.c (finish_function): Call cgraph_get_create_node instead
20779 of cgraph_node.
20780 * lto-cgraph.c (input_node): Likewise.
20781 * lto-streamer-in.c (input_function): Likewise.
20782 * varasm.c (mark_decl_referenced): Likewise.
20783 (assemble_alias): Likewise.
20784
20785 2011-04-12 Martin Jambor <mjambor@suse.cz>
20786
20787 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
20788 instead of cgraph_node and assert it does not return NULL.
20789 * lto-streamer-in.c (lto_read_body): Likewise.
20790 * omp-low.c (new_omp_context): Likewise.
20791 (create_task_copyfn): Likewise.
20792 * tree-emutls.c (lower_emutls_function_body): Likewise.
20793 * matrix-reorg.c (transform_allocation_sites): Likewise.
20794
20795 2011-04-12 Jakub Jelinek <jakub@redhat.com>
20796
20797 PR c/48552
20798 * c-typeck.c (build_asm_expr): Error out on attempts to use
20799 void type outputs or inputs for constraints that allow reg or
20800 don't allow memory.
20801
20802 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
20803 Richard Earnshaw <rearnsha@arm.com>
20804
20805 PR target/48250
20806 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
20807 to use sign-magnitude offsets. Reject unsupported unaligned
20808 cases. Add detailed description in comments.
20809 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
20810 condition from TARGET_32BIT to TARGET_ARM.
20811
20812 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
20813
20814 * tree.h (struct typed_tree): New.
20815 (struct tree_common): Include it instead of tree_base.
20816 (TREE_TYPE): Update for new location of type field.
20817 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
20818 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
20819 (union tree_node): Add typed field.
20820 * treestruct.def (TS_TYPED): New.
20821 * lto-streamer.c (check_handled_ts_structures): Handle it.
20822 * tree.c (MARK_TS_TYPED): New macro.
20823 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
20824
20825 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
20826
20827 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
20828 (force_nonfallthru): Do not alter the loop nest if no basic block
20829 was created.
20830
20831 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
20832
20833 * config/i386/sse.md (VI): New mode iterator.
20834 (SSEMODEI): Remove.
20835 (AVX256MODEI): Ditto.
20836 (AVXMODEF4P): Ditto.
20837 (avxvecpsmode): Ditto.
20838 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
20839 (sse2_andnot<mode>3): New expander.
20840 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
20841 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
20842 (<any_logic:code><mode>3): Use VI mode iterator.
20843 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
20844 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
20845 (*andnottf3): Handle AVX three-operand constraints.
20846 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
20847
20848 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20849 Robert Millan <rmh@gnu.org>
20850
20851 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
20852 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
20853 GNU_USER_DYNAMIC_LINKER64): Define.
20854 (REG_NAME): Don't undefine.
20855 (MD_UNWIND_SUPPORT): Undefine.
20856 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
20857 (REG_NAME): Don't undefine.
20858 (MD_UNWIND_SUPPORT): Undefine.
20859 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
20860
20861 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20862
20863 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
20864 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
20865
20866 2011-04-11 Xinliang David Li <davidxl@google.com>
20867
20868 * value-profile.c (check_ic_target): New function.
20869 (gimple_ic_transform): Sanity check indirect call target.
20870 * gimple-low.c (gimple_check_call_args): Interface change.
20871 (gimple_check_call_matching_types): New function.
20872 * tree-inline.c (tree_can_inline_p): Call new function.
20873
20874 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
20875
20876 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
20877 tree-pretty-print.h & realmpfr.h.
20878
20879 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
20880
20881 PR middle-end/48464
20882 * ira.c (setup_pressure_classes): Fix typo in loop condition.
20883 (setup_allocno_and_important_classes): Ditto.
20884
20885 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20886
20887 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
20888 GNU_USER_DYNAMIC_LINKER.
20889 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
20890 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20891 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
20892 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20893 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20894 GNU_USER_TARGET_OS_CPP_BUILTINS.
20895 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
20896 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20897 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20898 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20899 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
20900 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20901 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20902 GNU_USER_TARGET_OS_CPP_BUILTINS.
20903 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20904 GNU_USER_DYNAMIC_LINKER.
20905 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20906 GNU_USER_TARGET_OS_CPP_BUILTINS.
20907 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
20908 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20909 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
20910 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20911 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
20912 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
20913 GNU_USER_DYNAMIC_LINKER64): Remove.
20914 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
20915 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20916 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20917 GNU_USER_DYNAMIC_LINKER.
20918 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20919 GNU_USER_TARGET_OS_CPP_BUILTINS.
20920 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20921 GNU_USER_TARGET_OS_CPP_BUILTINS.
20922 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
20923 to GNU_USER_TARGET_OS_CPP_BUILTINS.
20924 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20925 GNU_USER_TARGET_OS_CPP_BUILTINS.
20926 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
20927 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
20928 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
20929 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
20930 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20931 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20932 GNU_USER_DYNAMIC_LINKER.
20933 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20934 GNU_USER_TARGET_OS_CPP_BUILTINS.
20935 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
20936 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20937 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20938 GNU_USER_DYNAMIC_LINKER.
20939 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20940 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20941 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
20942 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20943 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20944 GNU_USER_DYNAMIC_LINKER.
20945 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
20946 GNU_USER_DYNAMIC_LINKERN32.
20947 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
20948 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
20949 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
20950 GNU_USER_DYNAMIC_LINKER32.
20951 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
20952 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20953 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20954 GNU_USER_DYNAMIC_LINKER.
20955 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20956 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20957 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
20958 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20959 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20960 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
20961 GNU_USER_DYNAMIC_LINKER32.
20962 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
20963 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
20964 GNU_USER_DYNAMIC_LINKER.
20965 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
20966 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20967 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
20968 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
20969 GNU_USER_DYNAMIC_LINKER64.
20970 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
20971 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20972 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20973 GNU_USER_DYNAMIC_LINKER.
20974 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
20975 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20976 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20977 GNU_USER_DYNAMIC_LINKER.
20978 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
20979 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20980 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
20981 GNU_USER_DYNAMIC_LINKER32.
20982 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
20983 GNU_USER_DYNAMIC_LINKER64.
20984 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
20985 GNU_USER_DYNAMIC_LINKER64.
20986 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
20987 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20988 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
20989 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20990 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20991
20992 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20993
20994 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
20995 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
20996 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
20997 GNU_USER_DYNAMIC_LINKER.
20998 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
20999 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
21000 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
21001 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
21002 GNU_USER_DYNAMIC_LINKER64.
21003 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
21004 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
21005 GNU_USER_LINK_EMULATION.
21006 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
21007 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
21008 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
21009 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
21010 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
21011 CPP_SPEC, CC1_SPEC): Remove.
21012 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
21013 (GNU_USER_DYNAMIC_LINKER): Define.
21014 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
21015 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
21016 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
21017 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
21018 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
21019 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
21020 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
21021 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
21022 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
21023 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
21024 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
21025 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
21026 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
21027 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
21028 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
21029 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
21030 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21031 GNU_USER_DYNAMIC_LINKER.
21032 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21033 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
21034 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21035 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
21036 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21037 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
21038 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
21039 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
21040 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
21041 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
21042
21043 2011-04-11 Kai Tietz <ktietz@redhat.com>
21044
21045 PR target/9601
21046 PR target/11772
21047 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
21048 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
21049 comment.
21050 (ix86_is_msabi_thiscall): Removed.
21051 (ix86_is_type_thiscall): Likewise.
21052 (ix86_get_callcvt): New function.
21053 (ix86_comp_type_attributes): Simplify check.
21054 (ix86_function_regparm): Use ix86_get_callcvt for calling
21055 convention attribute checks.
21056 (ix86_return_pops_args): Likewise.
21057 (ix86_static_chain): Likewise.
21058 (x86_this_parameter): Likewise.
21059 (x86_output_mi_thunk): Likewise.
21060 (ix86_function_type_abi): Optimize check for types without attributes.
21061 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
21062 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
21063 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
21064 by flag-values.
21065 (IX86_BASE_CALLCVT): Helper macro.
21066 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
21067 Use ix86_get_callcvt for calling convention attribute checks and avoid
21068 symbol-decoration for stdcall in TARGET_RTD case.
21069 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
21070 Likewise.
21071 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
21072 for declaration.
21073
21074 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
21075
21076 * config/i386/sse.md (VI_128): New mode iterator.
21077 (VI12_128): Rename from SSEMODE12.
21078 (VI14_128): Rename from SSEMODE14.
21079 (VI124_128): New mode iterator.
21080 (VI24_128): Rename from SSEMODE248.
21081 (VI248_128): Rename from SSEMODE248.
21082 (SSEMODE124C8): Remove.
21083 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
21084 (*sse2_<plusminus_insn><mode>3): Merge with
21085 *avx_<plusminus_insn><mode>3.
21086 (*mulv8hi3): Merge with *avx_mulv8hi3.
21087 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
21088 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
21089 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
21090 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
21091 (ashr<mode>3): Merge with *avx_ashr<mode>3.
21092 (lshr<mode>3): Merge with *avx_lshr<mode>3.
21093 (ashl<mode>3): Merge with *avx_ashl<mode>3.
21094 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
21095 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
21096 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21097 (*<smaxmin:code>v8hi3): Ditto.
21098 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
21099 (*<smaxmin:code>v16qi3): Ditto.
21100 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
21101 (*sse2_eq<mode>3): Ditto.
21102 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
21103 (*sse2_gt<mode>3): Ditto.
21104 (vcondv2di): Split out of vcond<mode>.
21105 (vconduv2di): Split out of vcondu<mode>.
21106
21107 2011-04-11 Richard Guenther <rguenther@suse.de>
21108
21109 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
21110 before calling tree_low_cst.
21111
21112 2011-04-11 Richard Guenther <rguenther@suse.de>
21113
21114 * stor-layout.c (layout_type): Compute all array index size operations
21115 in the original type.
21116 (initialize_sizetypes): Add comment.
21117 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
21118
21119 2011-04-11 Joseph Myers <joseph@codesourcery.com>
21120
21121 * common.opt (Tbss=, Tdata=, Ttext=): New options.
21122
21123 2011-04-11 Martin Jambor <mjambor@suse.cz>
21124
21125 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
21126 of cgraph_node, handle NULL return value.
21127 (cgraph_global_info): Likewise.
21128 (cgraph_rtl_info): Likewise.
21129 * tree-inline.c (estimate_num_insns): Likewise.
21130 * gimplify.c (unshare_body): Likewise.
21131 (unvisit_body): Likewise.
21132 (gimplify_body): Likewise.
21133 * predict.c (optimize_function_for_size_p): Likewise.
21134 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
21135 (call_may_clobber_ref_p_1): Likewise.
21136 * varasm.c (function_section_1): Likewise.
21137 (assemble_start_function): Likewise.
21138
21139 2011-04-11 Martin Jambor <mjambor@suse.cz>
21140
21141 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
21142 of cgraph_node.
21143 * final.c (rest_of_clean_state): Likewise.
21144 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
21145 * passes.c (pass_init_dump_file): Likewise.
21146 (execute_all_ipa_transforms): Likewise.
21147 (function_called_by_processed_nodes_p): Likewise.
21148 * predict.c (maybe_hot_frequency_p): Likewise.
21149 (probably_never_executed_bb_p): Likewise.
21150 (compute_function_frequency): Likewise.
21151 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
21152 (unnest_nesting_tree_1): Likewise.
21153 (lower_nested_functions): Likewise.
21154 * tree-optimize.c (execute_fixup_cfg): Likewise.
21155 (tree_rest_of_compilation): Likewise.
21156 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
21157 * tree-sra.c (ipa_early_sra): Likewise.
21158 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
21159 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
21160 * ipa.c (record_cdtor_fn): Likewise.
21161 * ipa-inline.c (cgraph_early_inlining): Likewise.
21162 (compute_inline_parameters_for_current): Likewise.
21163 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
21164 * ipa-pure-const.c (local_pure_const): Likewise.
21165 * ipa-split.c (split_function): Likewise.
21166 (execute_split_functions): Likewise.
21167 * cgraphbuild.c (build_cgraph_edges): Likewise.
21168 (rebuild_cgraph_edges): Likewise.
21169 (cgraph_rebuild_references): Likewise.
21170 (remove_cgraph_callee_edges): Likewise.
21171 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
21172 (verify_cgraph_node): Likewise.
21173 (cgraph_analyze_functions): Likewise.
21174 (cgraph_preserve_function_body_p): Likewise.
21175 (save_inline_function_body): Likewise.
21176 (save_inline_function_body): Likewise.
21177 * tree-inline.c (copy_bb): Likewise.
21178 (optimize_inline_calls): Likewise.
21179
21180 2011-04-11 Martin Jambor <mjambor@suse.cz>
21181
21182 PR tree-optimization/48195
21183 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
21184 ipa_check_create_edge_args.
21185 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
21186 ipa_check_create_edge_args.
21187 * ipa-inline.c (inline_generate_summary): Do not call
21188 ipa_check_create_node_params and ipa_check_create_edge_args.
21189 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
21190 ipa_check_create_edge_args.
21191
21192 2011-04-09 Anatoly Sokolov <aesok@post.ru>
21193
21194 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
21195 instead of loop.
21196 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
21197 * function.c (record_hard_reg_sets): Likewise.
21198 * ira.c (compute_regs_asm_clobbered): Likewise.
21199 * sched-deps.c (sched_analyze_1): Likewise.
21200 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
21201
21202 2011-04-09 Xinliang David Li <davidxl@google.com>
21203
21204 PR tree-optimization/PR48484
21205 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
21206 has_valid_pred lazily
21207
21208 2011-04-09 Duncan Sands <baldrick@free.fr>
21209
21210 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
21211
21212 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
21213
21214 * combine.c (combine_validate_cost): Adjust comments. Set registered
21215 cost of I0 to zero at the end, if any.
21216
21217 2011-04-08 Xinliang David Li <davidxl@google.com>
21218
21219 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
21220 to insane profile data.
21221
21222 2011-04-08 Xinliang David Li <davidxl@google.com>
21223
21224 * ipa-cp.c (ipcp_update_profiling): Correct
21225 negative scale factor due to insane profile data.
21226
21227 2011-04-08 Xinliang David Li <davidxl@google.com>
21228
21229 * final.c (dump_basic_block_info): New function.
21230 (final): Dump basic block.
21231 (final_scan_insn): Remove old dump.
21232
21233 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
21234
21235 PR target/47829
21236 * config.gcc (i386-*-freebsd): Disable unwind table generation for
21237 crtbegin/crtend.
21238
21239 2011-04-08 Michael Matz <matz@suse.de>
21240
21241 PR middle-end/48389
21242 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
21243 functions.
21244 (rebuild_jump_labels): Call rebuild_jump_labels_1.
21245 * rtl.h (rebuild_jump_labels_chain): Declare.
21246 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
21247 insns inserted on edges.
21248
21249 2011-04-08 Joseph Myers <joseph@codesourcery.com>
21250
21251 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
21252 * config/arm/arm-arches.def: New.
21253 * config/arm/arm-opts.h: New.
21254 * config/arm/genopt.sh: New.
21255 * config/arm/arm-tables.opt: New (generated).
21256 * config/arm/arm.c (arm_handle_option, arm_target_help,
21257 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
21258 (all_architectures): Get most table contents from arm-arches.def.
21259 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
21260 arm_selected_tune here.
21261 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
21262 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
21263 (march=, mcpu=, mtune=): Use Enum and Var.
21264 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
21265 (arm.o): Update dependencies.
21266
21267 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
21268
21269 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
21270 of header_file.
21271 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
21272 (write_typed_alloc_defns): Likewise.
21273 (main): Calls write_typed_alloc_defns with output_header.
21274
21275 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
21276
21277 PR inline-asm/48435
21278 * ira-color.c (setup_profitable_hard_regs): Add comments.
21279 Don't take prohibited hard regs into account.
21280 (setup_conflict_profitable_regs): Rename to
21281 get_conflict_profitable_regs.
21282 (check_hard_reg_p): Check prohibited hard regs.
21283
21284 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
21285
21286 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
21287 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
21288 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
21289
21290 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21291
21292 PR target/48366
21293 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
21294 move from floating point to shift amount register.
21295 (emit_move_sequence): Remove secondary reload support for floating
21296 point to shift amount amount register copies.
21297 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
21298 amount register copies.
21299 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
21300 register, return false if mode isn't a scalar integer mode.
21301 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
21302
21303 2011-04-08 Richard Guenther <rguenther@suse.de>
21304
21305 * gimple.c (gimple_call_flags): Remove kludge.
21306
21307 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
21308
21309 * sel-sched.c (sel_region_init): Move call to
21310 sel_setup_region_sched_flags after setup_current_loop_nest.
21311
21312 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
21313
21314 PR rtl-optimization/48272
21315 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
21316 init_insn_reg_pressure_info. Adjust a caller.
21317 * sched-int.h (init_insn_reg_pressure_info): Declare.
21318 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
21319 when sched-pressure is enabled.
21320
21321 2011-04-08 Richard Guenther <rguenther@suse.de>
21322
21323 * gimple.c (gimple_set_modified): Do not queue calls to
21324 MODIFIED_NORETURN_CALLS here ...
21325 * tree-ssa-operands.c (update_stmt_operands): ... but here.
21326
21327 2011-04-08 Richard Guenther <rguenther@suse.de>
21328
21329 PR lto/48467
21330 * toplev.c (lang_dependent_init): Do not open asm_out_file
21331 in WPA mode, nor perform debug machinery initialization.
21332 (finalize): Do not unlink asm_out_file in WPA mode.
21333
21334 2011-04-08 Richard Guenther <rguenther@suse.de>
21335
21336 * gimple.h (gimple_call_fntype): New function.
21337 (gimple_call_return_type): Use it.
21338 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
21339 * gimple-low.c (gimple_check_call_args): Likewise.
21340 * gimple.c (gimple_call_flags): Likewise.
21341 (gimple_call_arg_flags): Likewise.
21342 (gimple_call_return_flags): Likewise.
21343 * tree-cfg.c (verify_gimple_call): Likewise.
21344 (do_warn_unused_result): Likewise.
21345 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
21346 * value-prof.c (gimple_ic_transform): Fix fndecl check.
21347
21348 2011-04-08 Dmitry Melnik <dm@ispras.ru>
21349
21350 PR rtl-optimization/48235
21351 * sel-sched.c (code_motion_process_successors): Recompute the last
21352 insn in basic block if control flow changed.
21353 (code_motion_path_driver): Ditto. Recompute the first insn as well.
21354 Update condition for ilist_remove.
21355
21356 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
21357
21358 PR rtl-optimization/48302
21359 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
21360 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
21361 it to record added preheader blocks.
21362 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
21363 on to sel_add_loop_preheaders.
21364 (sel_region_init): Move call to setup_current_loop_nest after
21365 sel_init_bbs.
21366
21367 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
21368
21369 PR target/48273
21370 * cfgloop.h (loop_has_exit_edges): New helper.
21371 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
21372 non-clonable.
21373 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
21374 that have no exit edges.
21375
21376 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
21377
21378 PR rtl-optimization/48442
21379 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
21380 all callers. Adjust assert.
21381
21382 2011-04-08 Jakub Jelinek <jakub@redhat.com>
21383
21384 PR tree-optimization/48377
21385 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
21386 is_packed to true even for types with smaller TYPE_ALIGN than
21387 TYPE_SIZE.
21388
21389 2011-04-08 Richard Guenther <rguenther@suse.de>
21390
21391 PR bootstrap/48513
21392 * doc/tm.texi: Re-generate.
21393
21394 2011-04-08 Wei Guozhi <carrot@google.com>
21395
21396 PR target/47855
21397 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
21398 * config/arm/arm.c (arm_attr_length_push_multi): New function.
21399 * config/arm/arm.md (*push_multi): Change the length computation to
21400 call a C function.
21401
21402 2011-04-08 Anatoly Sokolov <aesok@post.ru>
21403
21404 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
21405 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
21406 * doc/tm.texi: Regenerate.
21407 * system.h (ASM_OUTPUT_BSS): Poison.
21408 * varasm.c (asm_output_bss): Remove function.
21409 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
21410
21411 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
21412 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
21413 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
21414 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
21415 Likewise.
21416 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
21417 Likewise.
21418 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
21419 Likewise.
21420 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
21421
21422 2011-04-07 Joseph Myers <joseph@codesourcery.com>
21423
21424 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
21425 EnumValue lines.
21426
21427 2011-04-07 Joseph Myers <joseph@codesourcery.com>
21428
21429 * config/m68k/m68k.c (m68k_handle_option): Don't handle
21430 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
21431 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
21432 OPT_mcpu32.
21433 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
21434 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
21435 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
21436 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
21437 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
21438 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
21439 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
21440 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
21441 options. Don't map other m68k options manually. Don't handle
21442 old-style options as canonical.
21443 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
21444 * doc/install.texi (m68k-*-*): Document binutils version requirement.
21445
21446 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
21447
21448 * basic-block.h (force_nonfallthru): Move to...
21449 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
21450 (force_nonfallthru): ...here.
21451 * cfghooks.c (force_nonfallthru): New function.
21452 * cfgrtl.c (force_nonfallthru): Rename into...
21453 (rtl_force_nonfallthru): ...this.
21454 (commit_one_edge_insertion): Do not set AUX field.
21455 (commit_edge_insertions): Do not discover new basic blocks.
21456 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
21457 (cfg_layout_rtl_cfg_hooks): Likewise.
21458 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
21459 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
21460 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
21461
21462 2011-04-07 Anatoly Sokolov <aesok@post.ru>
21463
21464 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
21465 Remove macros.
21466
21467 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
21468
21469 * config/i386/sse.md: Update copyright year.
21470 (avxcvtvecmode): Remove.
21471 (sse_movhlps): Merge with *avx_movhlps.
21472 (sse_movlhps): Merge with *avx_movlhps.
21473 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
21474 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
21475 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
21476 (sse_loadhps): Merge with *avx_loadhps.
21477 (sse_storelps): Merge with *avx_storelps.
21478 (sse_loadlps): Merge with *avx_loadlps.
21479 (sse_movss): Merge with *avx_movss.
21480 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
21481 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
21482 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
21483 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
21484 (vec_set<mode>_0): Ditto.
21485 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
21486 (sse4_1_insertps): Merge with *avx_insertps.
21487 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
21488 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
21489 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
21490 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
21491 (sse2_storehpd): Merge with *avx_storehpd.
21492 (sse2_loadhpd): Merge with *avx_loadhpd.
21493 (sse2_loadlpd): Merge with *avx_loadlpd.
21494 (sse2_movsd): Merge with *avx_movsd.
21495 (*vec_concatv2df): Merge with *vec_concatv2df.
21496
21497 2011-04-07 Jakub Jelinek <jakub@redhat.com>
21498
21499 PR debug/48343
21500 * combine.c (combine_instructions): Add last_combined_insn,
21501 update it if insn is after it, pass it to all try_combine calls.
21502 (try_combine): Add last_combined_insn parameter, pass it instead of
21503 i3 to propagate_for_debug.
21504
21505 2011-04-07 Nick Clifton <nickc@redhat.com>
21506
21507 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
21508 to handle MDR <-> data register transfers.
21509 (movhi_internal): Likewise.
21510
21511 2011-04-07 Alan Modra <amodra@gmail.com>
21512
21513 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
21514 previous stack info.
21515
21516 2011-04-07 Tom de Vries <tom@codesourcery.com>
21517
21518 PR target/43920
21519 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
21520 flow_find_cross_jump. Swap variables to implement backward replacement.
21521 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
21522
21523 2011-04-07 Tom de Vries <tom@codesourcery.com>
21524
21525 PR target/43920
21526 * cfgcleanup.c (walk_to_nondebug_insn): New function.
21527 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
21528 and bb2.
21529 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
21530 src1 or src2. Redirect edges to the last basic block. Update
21531 frequency and count on multiple basic blocks in case of fallthru.
21532
21533 2011-04-07 Tom de Vries <tom@codesourcery.com>
21534
21535 PR target/43920
21536 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
21537 function.
21538 (old_insns_match_p): Change return type. Replace return false/true
21539 with return dir_none/dir_both. Use can_replace_by.
21540 (flow_find_cross_jump): Add dir_p parameter. Init replacement
21541 direction from dir_p. Register replacement direction in dir, last_dir
21542 and afterlast_dir. Handle new return type of old_insns_match_p using
21543 merge_dir. Return replacement direction in dir_p.
21544 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
21545 return type of old_insns_match_p.
21546 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
21547 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
21548 flow_find_cross_jump.
21549 * basic-block.h (enum replace_direction): New type.
21550 (flow_find_cross_jump): Add parameter to declaration.
21551
21552 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
21553
21554 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
21555 (AVXMODEDCVTPS2DQ): Ditto.
21556 (VEC_FLOAT_MODE): Ditto.
21557 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
21558 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
21559 (<any_logic:code><mode>3): Use VF mode iterator.
21560 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
21561 Use VF mode iterator.
21562 (copysign<mode>3): Use VF mode iterator.
21563 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
21564 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
21565 (*<any_logic:code><MODEF:mode>3): Merge with
21566 *avx_<any_logic:code><MODEF:mode>3.
21567 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
21568 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
21569 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
21570 (avx_cvtdq2ps<avxmodesuffix>): Remove.
21571 (sse2_cvtdq2ps): Use %v modifier.
21572 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
21573 (avx_cvtps2dq<avxmodesuffix>): Remove.
21574 (sse2_cvtps2dq): Use %v modifier.
21575 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
21576 (avx_cvttps2dq<avxmodesuffix>): Remove.
21577 (sse2_cvttps2dq): Use %v modifier.
21578 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
21579 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
21580 (sse2_cvtsd2siq): Fix insn template.
21581 (sse2_cvtsd2siq_2): Ditto.
21582 (sse2_cvttsd2siq): Ditto.
21583 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
21584 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
21585
21586 2011-04-06 Joseph Myers <joseph@codesourcery.com>
21587
21588 * gcov-io.c: Use GCC Runtime Library Exception.
21589
21590 2011-04-06 Jakub Jelinek <jakub@redhat.com>
21591
21592 PR debug/48466
21593 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
21594 as base_reg whatever register reg has been eliminated to, instead
21595 of hardcoding STACK_POINTER_REGNUM.
21596
21597 2011-04-06 Joseph Myers <joseph@codesourcery.com>
21598
21599 * doc/tm.texi.in: Document C target hooks as separate from general
21600 target hooks.
21601 * doc/tm.texi: Regenerate.
21602 * genhooks.c (struct hook_desc): Add docname field.
21603 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
21604 docname field.
21605 (hook_array): Include c-target.def.
21606 (emit_documentation): Use docname field in output.
21607 (emit_init_macros): Take docname argument. Only emit definitions
21608 for hooks matching docname.
21609 (main): Expect additional arguments in all cases. Pass argument
21610 to emit_init_macros.
21611 * target.def: Move initial macro definitions and comments to
21612 target-hooks-macros.h.
21613 (gcc_targetcm): Move to c-family/c-target.def.
21614 * target.h (targetcm): Move declaration to c-family/c-target.h.
21615 * targhooks.c (default_handle_c_option): Move to
21616 c-family/c-opts.c.
21617 * targhooks.h (default_handle_c_option): Move declaration to
21618 c-family/c-common.h.
21619 * target-hooks-macros.h: New file.
21620 * config.gcc (target_has_targetcm): Define and use to add to
21621 c_target_objs and cxx_target_objs.
21622 * config/default-c.c: New file.
21623 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
21624 of target.h and target-def.h.
21625 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
21626 (darwin_objc_construct_string, darwin_cfstring_ref_p,
21627 darwin_check_cfstring_format_arg): Make static.
21628 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
21629 TARGET_STRING_OBJECT_REF_TYPE_P,
21630 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
21631 * config/darwin-protos.h (darwin_objc_construct_string,
21632 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
21633 declare.
21634 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
21635 TARGET_STRING_OBJECT_REF_TYPE_P,
21636 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
21637 * config/t-darwin (darwin-c.o): Update dependencies.
21638 * system.h (TARGET_HAS_TARGETCM): Poison.
21639 * Makefile.in (TARGET_H): Update.
21640 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
21641 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
21642 (default-c.o): New target.
21643 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
21644 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
21645 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
21646 c-target.def.
21647 (build/genhooks.o): Update dependencies.
21648
21649 2011-04-06 Richard Guenther <rguenther@suse.de>
21650
21651 * ipa-inline.c (enum inlining_mode): Remove.
21652 (cgraph_flatten): Use some other token.
21653 (cgraph_edge_early_inlinable_p): New function, split out from ...
21654 (cgraph_perform_always_inlining): New function, split out from ...
21655 (cgraph_decide_inlining_incrementally): ... here.
21656 (cgraph_mark_inline_edge): Adjust.
21657 (cgraph_early_inlining): Re-structure.
21658 (pass_early_inline): Require SSA form.
21659
21660 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
21661 Julian Brown <julian@codesourcery.com>
21662 Mark Shinwell <shinwell@codesourcery.com>
21663
21664 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
21665 LO_REGS only for Thumb-1.
21666 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
21667 be used in short instructions when optimising for size on Thumb-2.
21668
21669 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
21670
21671 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
21672 associated with user returns to be preserved.
21673
21674 2011-04-06 Tristan Gingold <gingold@adacore.com>
21675
21676 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
21677 symbol_queue_size, DBXOUT_DECR_NESTING,
21678 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
21679 if XCOFF_DEBUGGING_INFO.
21680
21681 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
21682
21683 * config/i386/i386.md (attribute isa): New.
21684 (attribute enabled): New.
21685 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
21686 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
21687 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
21688 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
21689 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
21690 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21691 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
21692 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
21693
21694 * config/i386/sse.md (VF): New mode iterator.
21695 (VF1): Ditto.
21696 (VF2): Ditto.
21697 (VF_128): Ditto.
21698 (SSEMODEF4): Remove.
21699 (attribute sse): Handle V8SF and V4DF modes.
21700 (<absneg:code><mode>2): Use VF mode iterator.
21701 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
21702 mode iterator.
21703 (<plusminus_insn><mode>3): Use VF mode iterator.
21704 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
21705 Use VF mode iterator.
21706 (<sse>_vm<plusminus_insn><mode>3): Merge with
21707 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
21708 (mul<mode>3): Use VF mode iterator.
21709 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
21710 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
21711 mode iterator.
21712 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
21713 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
21714 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
21715 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
21716 mode iterator.
21717 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
21718 Use VF1 mode iterator.
21719 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
21720 (sqrt<VF2:mode>2): New expander.
21721 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
21722 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
21723 and sqrtv2df2. Use VF mode iterator.
21724 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
21725 mode iterator.
21726 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
21727 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
21728 Use VF1 mode iterator.
21729 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
21730 (<smaxmin:code><mode>3): Use VF mode iterator.
21731 (*<smaxmin:code><mode>3_finite): Merge with
21732 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
21733 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21734 (<sse>_vm<smaxmin:code><mode>2): Merge with
21735 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
21736 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
21737 mode iterator.
21738 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
21739 mode iterator.
21740 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
21741 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
21742 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
21743 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
21744 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
21745 VF mode iterator.
21746 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
21747 Use VF_128 mode iterator.
21748 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
21749 mode iterator.
21750 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
21751 VF_128 mode iterator.
21752 (vcond<mode>): Use VF mode iterator.
21753 * config/i386/predicates.md (sse_comparison_operator): Merge with
21754 avx_comparison_float_operator. Do not declare as special_predicate.
21755 * config/i386/i386.c (struct builtin_description): Update for renamed
21756 compare patterns.
21757 (ix86_expand_args_builtin): Ditto.
21758 (ix86_expand_sse_compare_mask): Ditto.
21759
21760 2011-04-06 Richard Guenther <rguenther@suse.de>
21761
21762 * tree-inline.c (estimate_num_insns): For calls simply account
21763 for all passed arguments and a used return value.
21764
21765 2011-04-06 Richard Guenther <rguenther@suse.de>
21766
21767 PR tree-optimization/47663
21768 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
21769 call_stmt_time fields.
21770 (cgraph_edge_inlinable_p): Declare.
21771 (cgraph_edge_recursive_p): New inline function.
21772 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
21773 (cgraph_clone_edge): Copy it.
21774 * ipa-inline.c (cgraph_estimate_edge_time): New function.
21775 Account for call stmt time.
21776 (cgraph_estimate_time_after_inlining): Take edge argument.
21777 (cgraph_estimate_edge_growth): Account call stmt size.
21778 (cgraph_estimate_size_after_inlining): Take edge argument.
21779 (cgraph_mark_inline_edge): Adjust.
21780 (cgraph_check_inline_limits): Likewise.
21781 (cgraph_recursive_inlining_p): Remove.
21782 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
21783 (cgraph_decide_recursive_inlining): Take edge argument and
21784 adjust.
21785 (cgraph_decide_inlining_of_small_functions): Do not avoid
21786 diags for recursive inlining here.
21787 (cgraph_flatten): Adjust.
21788 (cgraph_decide_inlining_incrementally): Likewise.
21789 (estimate_function_body_sizes): Remove call cost handling.
21790 (compute_inline_parameters): Initialize caller edge call costs.
21791 (cgraph_estimate_edge_growth): New function.
21792 (cgraph_estimate_growth): Use it.
21793 (cgraph_edge_badness): Likewise.
21794 (cgraph_check_inline_limits): Take an edge argument.
21795 (cgraph_decide_inlining_of_small_functions): Adjust.
21796 (cgraph_decide_inlining): Likewise.
21797 * tree-inline.c (estimate_num_insns): Only account for call
21798 return value if it is used.
21799 (expand_call_inline): Avoid diagnostics on recursive inline
21800 functions here.
21801 * lto-cgraph.c (lto_output_edge): Output edge call costs.
21802 (input_edge): Input edge call costs.
21803
21804 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21805
21806 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
21807
21808 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
21809
21810 * doc/invoke.texi (Spec Files): Fix typo.
21811
21812 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
21813
21814 * profile.c (branch_prob): Move declaration of local variable. Remove
21815 obsolete ??? comment. Expand the location explicitly instead of using
21816 the LOCATION_FILE and LOCATION_LINE macros.
21817
21818 2011-04-06 Wei Guozhi <carrot@google.com>
21819
21820 PR target/47855
21821 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
21822 (arm_cond_branch): Likewise.
21823 (arm_cond_branch_reversed): Likewise.
21824 (arm_jump): Likewise.
21825 (push_multi): Likewise.
21826 * config/arm/constraints.md (Py): New constraint.
21827
21828 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21829
21830 PR bootstrap/48471
21831 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
21832 Move these...
21833 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
21834 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
21835 #ifdef DBX_DEBUGGING_INFO.
21836
21837 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
21838
21839 PR bootstrap/48403
21840 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
21841 if old and new states differ.
21842
21843 2011-04-05 Joseph Myers <joseph@codesourcery.com>
21844
21845 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
21846 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
21847 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
21848 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
21849 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
21850 mcfv4e): Use Alias.
21851 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
21852 ColdFire options to -mcpu= options.
21853
21854 2011-04-05 Jeff Law <law@redhat.com>
21855
21856 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
21857 check if BB is a successor of LOOP->header and return
21858 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
21859
21860 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
21861
21862 * cprop.c (struct reg_use): Remove.
21863 (reg_use_table): Make an array of RTX.
21864 (find_used_regs, constprop_register, local_cprop_pass,
21865 bypass_block): Simplify users of reg_use_table.
21866 (cprop_insn): Likewise. Iterate if copy propagation succeeded
21867 on one of the uses found by find_used_regs.
21868
21869 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21870
21871 PR bootstrap/48469
21872 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
21873 declaration.
21874
21875 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21876
21877 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
21878 as an rtx.
21879 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
21880
21881 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
21882
21883 PR middle-end/48441
21884 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
21885
21886 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21887
21888 * combine.c: Include obstack.h.
21889 (struct insn_link): Define.
21890 (uid_log_links): Adjust type.
21891 (FOR_EACH_LOG_LINK): New macro.
21892 (insn_link_obstack): Declare.
21893 (alloc_insn_link): Define.
21894 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
21895 type of link variables.
21896 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
21897 (try_combine, record_promoted_values, distribute_notes): Likewise.
21898 (distribute_links): Likewise. Tweak prototype.
21899 (clear_log_links): Delete.
21900 (adjust_for_new_dest): Call alloc_insn_link.
21901 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
21902
21903 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21904
21905 * gcse.c (modify_mem_list): Convert to an array of VECs.
21906 (canon_modify_mem_list, compute_transp): Tweak formatting.
21907 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
21908 (load_killed_in_block_p): Likewise.
21909 (record_last_mem_set_info): Likewise.
21910 (clear_modify_mem_tables): Likewise.
21911
21912 2011-04-05 Tom de Vries <tom@codesourcery.com>
21913
21914 PR middle-end/48461
21915 * function.c (emit_use_return_register_into_block): Only define if
21916 HAVE_return.
21917
21918 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
21919
21920 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
21921
21922 2011-04-05 Joseph Myers <joseph@codesourcery.com>
21923
21924 * config/rx/rx-opts.h: New.
21925 * config/rx/rx.c (rx_cpu_type): Remove.
21926 (rx_handle_option): Don't assert that global structures are in
21927 use. Access variables via opts pointer. Defer most handling of
21928 OPT_mint_register_. Use error_at.
21929 (rx_option_override): Handle deferred OPT_mint_register_ here.
21930 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
21931 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
21932 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
21933 (rx_cpu_types): New Enum and EnumValue entries.
21934 (mint-register=): Use Defer and use Var accordingly.
21935
21936 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21937
21938 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
21939 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
21940 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
21941 Move these...
21942 (debug_free_queue, debug_nesting, symbol_queue_index):
21943 ...and these...
21944 * dbxout.c: ...to here. Make static.
21945
21946 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21947
21948 * gcse.c (modify_pair): Define. Define a VEC of it.
21949 (canon_modify_mem_list): Convert to an array of VECs.
21950 (free_insn_expr_list_list): Delete.
21951 (clear_modify_mem_tables): Call VEC_free instead.
21952 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
21953 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
21954 (canon_list_insert, compute_transp): Likewise.
21955
21956 2011-04-05 Tom de Vries <tom@codesourcery.com>
21957
21958 PR target/43920
21959 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
21960 for size.
21961
21962 2011-04-05 Tom de Vries <tom@codesourcery.com>
21963
21964 PR target/43920
21965 * function.c (emit_use_return_register_into_block): New function.
21966 (thread_prologue_and_epilogue_insns): Use
21967 emit_use_return_register_into_block.
21968
21969 2011-04-05 Tom de Vries <tom@codesourcery.com>
21970
21971 PR target/43920
21972 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
21973 insn.
21974
21975 2011-04-05 Tom de Vries <tom@codesourcery.com>
21976
21977 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
21978
21979 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
21980
21981 * config/arm/arm.md (define_constants for unspec): Replace with
21982 define_c_enum.
21983 (define_constants for unspecv): Replace with define_c_enum.
21984 * config/arm/neon.md (define_constants for unspec): Replace with
21985 define_c_enum.
21986
21987 2011-04-04 Richard Henderson <rth@redhat.com>
21988
21989 PR bootstrap/48400
21990 * dwarf2out.c (output_line_info): Always emit line info from
21991 at least one section.
21992 (dwarf2out_init): Create text_section_line_info here ...
21993 (set_cur_line_info_table): ... not here.
21994
21995 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
21996
21997 PR target/48380
21998 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
21999 not called.
22000
22001 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
22002
22003 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
22004
22005 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
22006 (expr_equiv_p): Remove.
22007 (insert_set_in_table): Look at <dest, src> pair instead of expr.
22008 (hash_scan_set): Update call to insert_set_in_table.
22009 (dump_hash_table): Dump <dest, src> pair.
22010 (lookup_set): Simplify. Lookup <dest, src> pair.
22011 (compute_transp): Remove, fold heavily simplified code into...
22012 (compute_local_properties): ...here. Expect COMP and TRANSP
22013 unconditionally.
22014 (find_avail_set): Take set directly from struct expr.
22015 (find_bypass-set): Likewise.
22016 (bypass_block): Likewise.
22017 (cprop_insn): Likewise. Remove redundant INSN_P test.
22018
22019 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
22020 checks on form of COND from find_implicit_sets to here.
22021 (find_implicit_sets): Cleanup control flow. Split critical edges
22022 if it exposes implicit sets. Allocate/resize implicit_sets as
22023 necessary.
22024 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
22025 changed something. Run df_analyze after find_implicit_sets if any
22026 edges were split. Do not allocate implicit_sets here.
22027
22028 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
22029 (gcse_obstack): Renamed to cprop_obstack.
22030 (GNEW, GNEWVEC, GNEWVAR): Remove.
22031 (gmalloc): Remove.
22032 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
22033 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
22034 (gcse_alloc): Likewise, and rename to cprop_alloc.
22035 (alloc_gcse_men, free_gcse_mem): Remove.
22036 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
22037 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
22038 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
22039
22040 * cprop.c (oprs_not_set_p): Remove.
22041 (mark_set, mark_clobber): Remove.
22042 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
22043 (reg_not_set_p): New function.
22044 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
22045 (cprop_insn): Likewise.
22046 (cprop_jump): Use FOR_EACH_EDGE.
22047
22048 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
22049
22050 PR bootstrap/48403
22051 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
22052 (rank_for_schedule): Use scheduled_insns vector instead of
22053 last_scheduled_insn.
22054 (ok_for_early_queue_removal): Likewise.
22055 (queue_to_ready): Search forward in nonscheduled_insns_begin if
22056 we have a dbg_cnt.
22057 (choose_ready): Likewise.
22058 (commit_schedule): Use VEC_iterate.
22059 (schedule_block): Initialize nonscheduled_insns_begin. If we have
22060 a dbg_cnt, use it and ensure the first insn is in the ready list.
22061 (haifa_sched_init): Allocate scheduled_insns.
22062 (sched_extend_ready_list): Don't allocate it; reserve space.
22063 (haifa_sched_finish): Free it.
22064
22065 2011-04-04 Joseph Myers <joseph@codesourcery.com>
22066
22067 * optc-gen.awk: Always remove type from Variable entry before
22068 recording in var_seen.
22069
22070 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
22071
22072 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
22073 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
22074 call to tidy_fallthru_edges.
22075
22076 2011-04-04 Joseph Myers <joseph@codesourcery.com>
22077
22078 * doc/options.texi (ToLower): Document.
22079 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
22080 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
22081 * opts.h (cl_option): Add cl_tolower field.
22082 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
22083 arguments with lowercase strings.
22084 * config/rx/rx.opt (mcpu=): Add ToLower.
22085 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
22086 argument.
22087
22088 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
22089
22090 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
22091
22092 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
22093
22094 * config/vax/vax.c: Include reload.h.
22095
22096 2011-04-04 Anatoly Sokolov <aesok@post.ru>
22097
22098 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
22099 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
22100 (sparc_preferred_reload_class): New function.
22101
22102 2011-04-04 Jakub Jelinek <jakub@redhat.com>
22103
22104 PR debug/48401
22105 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
22106 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
22107
22108 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
22109
22110 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
22111 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
22112
22113 2011-04-03 Anatoly Sokolov <aesok@post.ru>
22114
22115 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
22116 (ASM_OUTPUT_ALIGNED_BSS): Define.
22117
22118 2011-04-03 Michael Matz <matz@suse.de>
22119
22120 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
22121 and next_slot members.
22122 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
22123 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
22124 (lto_streamer_cache_append): Declare.
22125 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
22126 unsigned index, remove offset parameter, ensure that we append
22127 or update existing entries.
22128 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
22129 parameter, update next_slot for append.
22130 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
22131 parameter.
22132 (lto_streamer_cache_insert_at): Likewise.
22133 (lto_streamer_cache_append): New function.
22134 (lto_streamer_cache_lookup): Use unsigned index.
22135 (lto_streamer_cache_get): Likewise.
22136 (lto_record_common_node): Don't test tree_node_can_be_shared.
22137 (preload_common_node): Adjust call to lto_streamer_cache_insert.
22138 (lto_streamer_cache_delete): Don't free offsets member.
22139 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
22140 (lto_output_string_with_length): Use lto_output_data_stream.
22141 (lto_output_tree_header): Remove ix parameter, don't write it.
22142 (lto_output_builtin_tree): Likewise.
22143 (lto_write_tree): Adjust callers to above, don't track and write
22144 offset, write unsigned index.
22145 (output_unreferenced_globals): Don't emit all global vars.
22146 (write_global_references): Use unsigned indices.
22147 (lto_output_decl_state_refs): Likewise.
22148 (write_symbol): Likewise.
22149 * lto-streamer-in.c (lto_input_chain): Move earlier.
22150 (input_function): Use unsigned index.
22151 (input_alias_pairs): Don't read and then ignore all global vars.
22152 (lto_materialize_tree): Remove ix_p parameter, don't read index,
22153 don't pass it back, use lto_streamer_cache_append.
22154 (lto_register_var_decl_in_symtab): Use unsigned index.
22155 (lto_register_function_decl_in_symtab): Likewise.
22156 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
22157 index.
22158 (lto_get_builtin_tree): Don't read index, use
22159 lto_streamer_cache_append.
22160 (lto_read_tree): Adjust call to lto_materialize_tree.
22161
22162 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
22163 don't use function calls in arguments to MIN.
22164
22165 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
22166 twice.
22167
22168 * gimple.c (gimple_type_leader_entry): Mark deletable.
22169
22170 2011-04-03 Alan Modra <amodra@gmail.com>
22171
22172 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
22173
22174 2011-04-03 Michael Matz <matz@suse.de>
22175
22176 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
22177 an integer.
22178 * tree.h (tree_decl_non_common.vindex): Adjust comment.
22179
22180 2011-04-03 Michael Matz <matz@suse.de>
22181
22182 * cgraphbuild.c (record_reference): Canonicalize constructor values.
22183 * gimple-fold.c (canonicalize_constructor_val): Accept being called
22184 without function context.
22185 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
22186 current_function_decl and cfun.
22187
22188 2011-04-03 Michael Matz <matz@suse.de>
22189
22190 * tree.c (decl_init_priority_insert): Don't create entry for
22191 default priority.
22192 (decl_fini_priority_insert): Ditto.
22193 (fields_compatible_p, find_compatible_field): Remove.
22194 * tree.h (fields_compatible_p, find_compatible_field): Remove.
22195 * gimple.c (gimple_compare_field_offset): Adjust block comment.
22196
22197 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
22198
22199 * combine.c (try_combine): Remove useless local variable.
22200
22201 2011-04-03 Richard Guenther <rguenther@suse.de>
22202 Ira Rosen <ira.rosen@linaro.org>
22203
22204 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
22205 non-variable offsets and compare the remaining bases of the two
22206 accesses instead of looking for exact same data-ref.
22207
22208 2011-04-02 Kai Tietz <ktietz@redhat.com>
22209
22210 PR target/48416
22211 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
22212
22213 * i386.c (ix86_is_msabi_thiscall): New helper function.
22214 (ix86_is_type_thiscall): New helper function.
22215 (ix86_comp_type_attributes): Handle thiscall for method-functions
22216 special.
22217 (init_cumulative_args): Likewise.
22218 (find_drap_reg): Likewise.
22219 (ix86_static_chain): Likewise.
22220 (x86_this_parameter): Likewise.
22221 (x86_output_mi_thunk): Likewise.
22222
22223 2011-04-01 Olivier Hainque <hainque@adacore.com>
22224 Nicolas Setton <setton@adacore.com>
22225 Eric Botcazou <ebotcazou@adacore.com>
22226
22227 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
22228 (add_gnat_descriptive_type_attribute): New function.
22229 (gen_array_type_die): Call it.
22230 (gen_enumeration_type_die): Likewise.
22231 (gen_struct_or_union_type_die): Likewise.
22232 (modified_type_die): Likewise.
22233 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
22234 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
22235 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
22236
22237 2011-04-01 Jakub Jelinek <jakub@redhat.com>
22238
22239 PR bootstrap/48148
22240 * dwarf2out.c (resolve_addr): Don't call force_decl_die
22241 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
22242
22243 Revert:
22244 2011-03-17 Richard Guenther <rguenther@suse.de>
22245
22246 PR bootstrap/48148
22247 * lto-cgraph.c (input_overwrite_node): Clear the abstract
22248 origin for decls in other ltrans units.
22249 (input_varpool_node): Likewise.
22250
22251 2011-04-01 Jakub Jelinek <jakub@redhat.com>
22252
22253 PR middle-end/48335
22254 * expr.c (expand_assignment): Handle all possibilities
22255 if TO_RTX is CONCAT.
22256 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
22257 (store_split_bit_field): If SUBREG_REG (op0) or
22258 op0 itself has smaller mode than word, return it
22259 for offset 0 and const0_rtx for out-of-bounds stores.
22260 If word is const0_rtx, skip it.
22261
22262 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
22263
22264 * config/h8300/h8300.c (print_operand_address): Rename to...
22265 (h8300_print_operand_address): ...this. Make static. Adjust comments.
22266 Call h8300_print_operand and h8300_print_operand_address instead of
22267 print_operand and print_operand_address. Declare.
22268 (print_operand): Renake to...
22269 (h8300_print_operand): ...this. Make static. Adjust comments.
22270 Call h8300_print_operand instead of print_operand. Declare.
22271 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
22272 (h8300_register_move_cost): Likewise.
22273 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
22274 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
22275 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
22276 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
22277 * config/h8300/h8300-protos.h (print_operand): Delete.
22278 (print_operand_address): Delete.
22279
22280 2011-04-01 Richard Henderson <rth@redhat.com>
22281
22282 PR 48400
22283 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
22284 in strict mode before dwarf4. Re-order tests to early out
22285 before switching sections.
22286
22287 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
22288
22289 * config/h8300/constraints.md: New file.
22290 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
22291 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
22292 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
22293 * config/h8300/predicates.md (bit_operand): Likewise.
22294 (incdec_operand): Use satisfies_constraint_M and
22295 satisfies_constraint_O. Don't use C code block.
22296 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
22297 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
22298 (compute_mov_length): Use satisfies_constraint_G.
22299 (fix_bit_operand): Use satisfies_constraint_U.
22300 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
22301 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
22302 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
22303 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
22304 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
22305 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
22306 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22307 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
22308 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
22309 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
22310 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
22311 (EXTRA_MEMORY_CONSTRAINT): Delete.
22312
22313 2011-04-01 Andrew Pinski <pinskia@gmail.com>
22314 Michael Meissner <meissner@linux.vnet.ibm.com>
22315
22316 PR target/48262
22317 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
22318 operands, as per the specifications.
22319
22320 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
22321 (vec_extract_evenv4sf): Ditto.
22322 (vec_extract_evenv8hi): Ditto.
22323 (vec_extract_evenv16qi): Ditto.
22324 (vec_extract_oddv4si): Ditto.
22325
22326 2011-03-31 Mark Wielaard <mjw@redhat.com>
22327
22328 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
22329 high_pc attribute if the CU has no associated code. Only output
22330 DW_AT_entry_pc for CU if not generating strict dwarf and
22331 dwarf_version < 4.
22332
22333 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
22334
22335 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
22336 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
22337 out of ...
22338 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
22339 * final.c (final_start_function): Call the new function rather
22340 than using a NULL argument for dwarf2out_frame_debug.
22341
22342 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
22343 that contains the prologue.
22344
22345 * haifa-sched.c (queue_insn): New arg REASON. All callers
22346 changed. Print it in debugging output.
22347
22348 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
22349
22350 * sched-ebb.c (begin_schedule_ready): Remove second argument.
22351 Split most of the code into...
22352 (begin_move_insn): ... here. New function.
22353 (ebb_sched_info): Add a pointer to it.
22354 * haifa-sched.c (scheduled_insns): New static variable.
22355 (sched_extend_ready_list): Allocate it.
22356 (schedule_block): Use it to record the order of scheduled insns.
22357 Perform RTL changes to move insns only after all scheduling
22358 decisions have been made.
22359 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
22360 begin_move_insn field.
22361 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
22362 * sched-int.h (struct haifa_sched_info): Remove second argument
22363 from begin_schedule_ready hook. Add new member begin_move_insn.
22364 * sched-rgn.c (begin_schedule_ready): Remove second argument.
22365 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
22366
22367 * haifa-sched.c (prune_ready_list): New function, broken out of
22368 schedule_block.
22369 (schedule_block): Use it.
22370
22371 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22372
22373 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
22374
22375 2011-04-01 Kai Tietz <ktietz@redhat.com>
22376
22377 * config.gcc (*-*-mingw*): Allow as option the
22378 posix threading model.
22379 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
22380 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
22381 definition.
22382 (CPP_SPEC): Add pthread/no-pthread handling.
22383 (LIB_SPEC): Likewise.
22384 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
22385 (LIB_SPEC): Likewise.
22386 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
22387 flag to pass -pthread option for shared libgcc build.
22388 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
22389 for shared libgcc build.
22390 * config/i386/t-mingw-pthread: New file.
22391 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
22392 New define to enable use of library pthread by default.
22393 * config/i386/mingw.opt (pthread): New driver option.
22394 (no-pthread): New driver option.
22395 * config/i386/cygming.opt: Make sure trailing empty line is retained.
22396 * config/i386/mingw-w64.opt: Likewise.
22397
22398 2011-04-01 Gary Funck <gary@intrepid.com>
22399
22400 * c-decl.c (grokdeclarator): Fix formatting.
22401
22402 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
22403
22404 * expr.c (emit_block_move_via_movmem): Use n_generator_args
22405 instead of n_operands.
22406 (set_storage_via_setmem): Likewise.
22407 * optabs.c (maybe_gen_insn): Likewise.
22408 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
22409 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
22410 (mips_expand_builtin_direct): Likewise.
22411 * config/spu/spu.c (expand_builtin_args): Likewise.
22412
22413 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
22414
22415 * recog.h (insn_data_d): Add n_generator_args.
22416 * genoutput.c (data): Likewise.
22417 (output_insn_data): Print it.
22418 (max_opno, num_dups): Delete.
22419 (scan_operands): Just fill in "d->operand[...]".
22420 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
22421
22422 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
22423
22424 * gensupport.h (pattern_stats): New structure.
22425 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
22426 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
22427 (max_operand_1, max_operand_vec): Delete.
22428 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
22429
22430 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
22431
22432 * emit-rtl.c (emit_pattern_after_setloc): New function.
22433 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
22434 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
22435 (emit_pattern_after): New function.
22436 (emit_insn_after, emit_jump_insn_after): Call it.
22437 (emit_call_insn_after, emit_debug_insn_after): Likewise.
22438 (emit_pattern_before_setloc): New function.
22439 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
22440 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
22441 Likewise.
22442 (emit_pattern_before): New function.
22443 (emit_insn_before, emit_jump_insn_before): Call it.
22444 (emit_call_insn_before, emit_debug_insn_before): Likewise.
22445
22446 2011-03-31 Richard Henderson <rth@redhat.com>
22447
22448 * dwarf2out.c (dw_separate_line_info_ref): Remove.
22449 (dw_separate_line_info_entry): Remove.
22450 (enum dw_line_info_opcode): New.
22451 (dw_line_info_entry): Use it.
22452 (dw_line_info_table, dw_line_info_table_p): New.
22453 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
22454 (line_info_table, line_info_label_num): Remove.
22455 (line_info_table_in_use): Remove.
22456 (separate_line_info_table): Remove.
22457 (separate_line_info_table_allocated): Remove.
22458 (separate_line_info_table_in_use): Remove.
22459 (LINE_INFO_TABLE_INCREMENT): Remove.
22460 (line_info_label_num): New.
22461 (cur_line_info_table): New.
22462 (text_section_line_info, cold_text_section_line_info): New.
22463 (separate_line_info): New.
22464 (SEPARATE_LINE_CODE_LABEL): Remove.
22465 (print_dwarf_line_table): Remove.
22466 (debug_dwarf): Don't dump it.
22467 (output_one_line_info_table): New.
22468 (output_line_info): Use it.
22469 (new_line_info_table): New.
22470 (set_cur_line_info_table): New.
22471 (dwarf2out_switch_text_section): Use it.
22472 (dwarf2out_begin_function): Likewise.
22473 (push_dw_line_info_entry): New.
22474 (dwarf2out_source_line): Rewrite for new line info tables.
22475 (dwarf2out_init): Remove dead initailizations.
22476
22477 2011-03-31 Joseph Myers <joseph@codesourcery.com>
22478
22479 * opts.h (cl_option): Add comments to fields. Add bit-fields for
22480 various flags.
22481 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
22482 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
22483 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
22484 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
22485 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
22486 * opt-functions.awk (flag_init, switch_bit_fields): New.
22487 (switch_flags): Don't handle flags moved to bit-fields. Don't
22488 generate CL_MISSING_OK or CL_SAVE.
22489 * optc-gen.awk: Update to generate bit-field output as well as
22490 flags field.
22491 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
22492 bit-field instead of CL_REJECT_DRIVER flag.
22493 * opts-common.c (generate_canonical_option,
22494 decode_cmdline_option): Use bit-fields instead of CL_* flags.
22495 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
22496 instead of CL_REJECT_NEGATIVE flag.
22497 * toplev.c (print_switch_values): Use cl_report bit-field instead
22498 of CL_REPORT flag.
22499
22500 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
22501
22502 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
22503 a zero minimum index only if it is redundant.
22504
22505 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
22506
22507 PR rtl-optimization/48381
22508 * ira-color.c (assign_hard_reg): Use hard reg set intersection
22509 instead of ira_class_hard_reg_index for calculating conflicting
22510 hard registers.
22511
22512 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
22513
22514 * cprop.c: Clean up hash table building.
22515 (reg_avail_info): Remove.
22516 (oprs_available_p): Remove.
22517 (record_last_reg_set_info): Remove.
22518 (record_last_set_info): Remove.
22519 (reg_available_p): New function.
22520 (gcse_constant_p): Do not treat unfolded conditions as constants.
22521 (make_set_regs_unavailable): New function.
22522 (hash_scan_set): Simplify with new reg_available_p.
22523 (compute_hash_table_work): Traverse insns stream only once.
22524 Do not compute reg_avail_info. Traverse insns in reverse order.
22525 Record implicit sets after recording explicit sets from the block.
22526
22527 2011-03-31 Michael Matz <matz@suse.de>
22528
22529 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
22530
22531 2011-03-31 Anatoly Sokolov <aesok@post.ru>
22532
22533 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
22534 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
22535 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22536 (h8300_mode_dependent_address_p): New function.
22537 (h8300_get_index): Make static.
22538
22539 2011-03-31 Jeff Law <law@redhat.com>
22540
22541 * reload1.c (elimination_effects): Fix typo in recent change.
22542
22543 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
22544 typo potentially leading to null pointer dereference.
22545
22546 * caller-save.c (new_saved_hard_reg): Eliminate return value.
22547 (setup_save_areas): Corresponding changes to avoid useless
22548 assignments.
22549
22550 * jump.c (reversed_comparison_code_parts): Avoid successive return
22551 statements when REVERSE_CONDITION is defined.
22552
22553 * expr.c (expand_assignment): Avoid useless assignments.
22554 (expand_expr_real_1): Likewise.
22555 (expand_expr_real_2): Avoid useless statements.
22556
22557 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
22558
22559 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
22560
22561 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
22562 statements.
22563
22564 * stmt.c (expand_expr_stmt): Avoid useless assignment.
22565
22566 2011-03-31 Joseph Myers <joseph@codesourcery.com>
22567
22568 PR target/47109
22569 * doc/tm.texi.in (TARGET_VERSION): Remove.
22570 * doc/tm.texi: Regenerate.
22571 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
22572 * collect2.c (main): Don't use TARGET_VERSION.
22573 * mips-tdump.c (main): Don't use TARGET_VERSION.
22574 * mips-tfile.c (main): Don't use TARGET_VERSION.
22575 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
22576 * config/rs6000/vxworksae.h: Remove.
22577 * config/alpha/alpha.h (TARGET_VERSION): Remove.
22578 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
22579 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
22580 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
22581 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
22582 * config/arm/arm.h (TARGET_VERSION): Remove.
22583 * config/arm/coff.h (TARGET_VERSION): Remove.
22584 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
22585 * config/arm/elf.h (TARGET_VERSION): Remove.
22586 * config/arm/freebsd.h (TARGET_VERSION): Remove.
22587 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
22588 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
22589 * config/arm/pe.h (TARGET_VERSION): Remove.
22590 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
22591 * config/arm/semi.h (TARGET_VERSION): Remove.
22592 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
22593 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
22594 * config/arm/vxworks.h (TARGET_VERSION): Remove.
22595 * config/avr/avr.h (TARGET_VERSION): Remove.
22596 * config/bfin/bfin.h (TARGET_VERSION): Remove.
22597 * config/fr30/fr30.h (TARGET_VERSION): Remove.
22598 * config/frv/frv.h (TARGET_VERSION): Remove.
22599 * config/h8300/h8300.h (TARGET_VERSION): Remove.
22600 * config/i386/cygwin.h (TARGET_VERSION): Remove.
22601 * config/i386/darwin.h (TARGET_VERSION): Remove.
22602 * config/i386/darwin64.h (TARGET_VERSION): Remove.
22603 * config/i386/djgpp.h (TARGET_VERSION): Remove.
22604 * config/i386/freebsd.h (TARGET_VERSION): Remove.
22605 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
22606 * config/i386/gnu.h (TARGET_VERSION): Remove.
22607 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
22608 * config/i386/i386elf.h (TARGET_VERSION): Remove.
22609 * config/i386/linux.h (TARGET_VERSION): Remove.
22610 * config/i386/linux64.h (TARGET_VERSION): Remove.
22611 * config/i386/lynx.h (TARGET_VERSION): Remove.
22612 * config/i386/mingw32.h (TARGET_VERSION): Remove.
22613 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
22614 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
22615 * config/i386/netware.h (TARGET_VERSION): Remove.
22616 * config/i386/nto.h (TARGET_VERSION): Remove.
22617 * config/i386/openbsd.h (TARGET_VERSION): Remove.
22618 * config/i386/vxworks.h (TARGET_VERSION): Remove.
22619 * config/ia64/elf.h (TARGET_VERSION): Remove.
22620 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
22621 * config/ia64/hpux.h (TARGET_VERSION): Remove.
22622 * config/ia64/linux.h (TARGET_VERSION): Remove.
22623 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
22624 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
22625 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
22626 * config/lm32/lm32.h (TARGET_VERSION): Remove.
22627 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
22628 * config/m32c/m32c.h (TARGET_VERSION): Remove.
22629 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
22630 * config/m32r/m32r.h (TARGET_VERSION): Remove.
22631 * config/m68k/linux.h (TARGET_VERSION): Remove.
22632 * config/m68k/m68k.h (TARGET_VERSION): Remove.
22633 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
22634 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
22635 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
22636 * config/mep/mep.h (TARGET_VERSION): Remove.
22637 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
22638 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
22639 * config/mips/iris6.h (MACHINE_TYPE): Remove.
22640 * config/mips/linux.h (TARGET_VERSION): Remove.
22641 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
22642 * config/mips/vxworks.h (TARGET_VERSION): Remove.
22643 * config/mmix/mmix.h (TARGET_VERSION): Remove.
22644 * config/mn10300/linux.h (TARGET_VERSION): Remove.
22645 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
22646 * config/pa/pa.h (TARGET_VERSION): Remove.
22647 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
22648 * config/picochip/picochip.h (TARGET_VERSION): Remove.
22649 * config/rs6000/aix.h (TARGET_VERSION): Remove.
22650 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
22651 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
22652 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
22653 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
22654 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
22655 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
22656 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
22657 * config/rs6000/linux.h (TARGET_VERSION): Remove.
22658 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
22659 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
22660 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
22661 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
22662 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
22663 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
22664 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
22665 * config/s390/linux.h (TARGET_VERSION): Remove.
22666 * config/s390/s390.h (TARGET_VERSION): Remove.
22667 * config/s390/tpf.h (TARGET_VERSION): Remove.
22668 * config/score/score.h (TARGET_VERSION): Remove.
22669 * config/sh/linux.h (TARGET_VERSION): Remove.
22670 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
22671 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
22672 * config/sh/sh.h (TARGET_VERSION): Remove.
22673 * config/sh/sh64.h (TARGET_VERSION): Remove.
22674 * config/sh/superh.h (TARGET_VERSION): Remove.
22675 * config/sh/vxworks.h (TARGET_VERSION): Remove.
22676 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
22677 * config/sparc/linux.h (TARGET_VERSION): Remove.
22678 * config/sparc/linux64.h (TARGET_VERSION): Remove.
22679 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
22680 TARGET_NAME32, TARGET_NAME): Remove.
22681 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
22682 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
22683 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
22684 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
22685 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
22686 * config/spu/spu.h (TARGET_VERSION): Remove.
22687 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
22688 * config/v850/v850.h (TARGET_VERSION): Remove.
22689 * config/vax/linux.h (TARGET_VERSION): Remove.
22690 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
22691 * config/xtensa/elf.h (TARGET_VERSION): Remove.
22692 * config/xtensa/linux.h (TARGET_VERSION): Remove.
22693
22694 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
22695
22696 PR target/48142
22697 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
22698 frame-related from frame-unrelated adjustments to the stack pointer.
22699
22700 2011-03-31 Jakub Jelinek <jakub@redhat.com>
22701
22702 * common.opt (fdebug-types-section): Move earlier.
22703 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
22704
22705 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
22706
22707 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
22708 var.
22709
22710 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
22711
22712 * tree.h (CASE_CHAIN): Define.
22713 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
22714 (gimple_redirect_edge_and_branch): Likewise.
22715
22716 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
22717
22718 PR middle-end/48367
22719 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
22720 calculation.
22721
22722 2011-03-30 Jeff Law <law@redhat.com>
22723
22724 * PR bootstrap/48371
22725 * reload1.c (reload): Fix botch in last change.
22726
22727 * reload.h (struct reload): Fix typo introduced in last change.
22728
22729 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22730
22731 * config/arm/arm.opt (mhard-float, msoft-float): Mark
22732 Undocumented. Remove help text.
22733 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
22734 -mhard-float.
22735
22736 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22737
22738 * doc/options.texi (NegativeAlias): Document.
22739 (Alias): Mention NegativeAlias.
22740 * opt-functions.awk: Handle NegativeAlias.
22741 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
22742 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
22743 * opts.h (CL_NEGATIVE_ALIAS): Define.
22744 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
22745 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
22746 OPT_mspe_.
22747 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
22748 Alias entries.
22749 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
22750 mno-spe and mno-isel instead of mspe=no and -misel=no.
22751
22752 2011-03-29 Mark Wielaard <mjw@redhat.com>
22753
22754 * common.opt (fdebug-types-section): New flag.
22755 * doc/invoke.texi: Document new -fno-debug-types-section flag.
22756 * dwarf2out.c (use_debug_types): New define.
22757 (struct die_struct): Mark die_id with GTY desc use_debug_types.
22758 (print_die): Guard output of type unit signatures using
22759 use_debug_types.
22760 (build_abbrev_table): Replace assert of dwarf_version >= 4
22761 with assert on use_debug_types.
22762 (size_of_die): Likewise.
22763 (unmark_dies): Likewise.
22764 (value_format): Decide AT_ref_external form on use_debug_types.
22765 (output_die): Replace dwarf_version version check guard with
22766 use_debug_types where appropriate.
22767 (modified_type_die): Likewise.
22768 (gen_reference_type_die): Likewise.
22769 (dwarf2out_start_source_file): Likewise.
22770 (dwarf2out_end_source_file): Likewise.
22771 (prune_unused_types_walk_attribs): Likewise.
22772 (dwarf2out_finish): Likewise.
22773
22774 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
22775
22776 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
22777
22778 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22779
22780 PR rtl-optimization/48332
22781 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
22782 mode of input operand N and modeN to its actual mode.
22783
22784 2011-03-30 Jeff Law <law@redhat.com>
22785
22786 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
22787 define accessor macro.
22788 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
22789 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
22790 (reg_equiv_init): Likewise.
22791 (reg_equivs_size): New variable.
22792 (reg_equiv_init_size): Remove.
22793 (allocate_initial_values): Move prototype to here from....
22794 * integrate.h (allocate_initial_values): Remove prototype.
22795 * integrate.c: Include reload.h.
22796 (allocate_initial_values): Corresponding changes.
22797 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
22798 (fix_reg_equiv_init, no_equiv): Corresponding changes.
22799 (update_equiv_regs): Corresponding changes.
22800 (ira): Corresponding changes.
22801 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
22802 (push_secondary_reload): Corresponding changes.
22803 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
22804 (make_memloc, find_reloads_address): Corresponding changes.
22805 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
22806 (find_reloads_address_1): Corresponding changes.
22807 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
22808 (refers_to_regno_for_reload_p): Corresponding changes.
22809 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
22810 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
22811 * reload1.c: Include ggc.h.
22812 (grow_reg_equivs): New function.
22813 (replace_pseudos_in, reload): Corresponding changes.
22814 (calculate_needs_all_insns, alter_regs): Corresponding changes.
22815 (eliminate_regs_1, elimination_effects): Corresponding changes.
22816 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
22817 (delete_output_reload): Likewise.
22818 * caller-save.c (mark_referenced_regs): Corresponding changes.
22819 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
22820 * frv/predicates.md (frv_load_operand): Corresponding changes.
22821 * microblaze/microblaze.c (double_memory_operand): Corresponding
22822 changes.
22823 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
22824 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
22825 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
22826 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
22827 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
22828 changes.
22829 * pa/pa.c (emit_move_sequence): Corresponding changes.
22830 * vax/vax.c (nonindexed_address_p): Corresponding changes.
22831
22832 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22833
22834 PR target/47551
22835 * config/arm/arm.c (coproc_secondary_reload_class): Handle
22836 structure modes. Don't check neon_vector_mem_operand for
22837 vector or structure modes.
22838
22839 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22840 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22841
22842 PR target/43590
22843 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
22844 operand 1 and reshuffle the operands to match.
22845 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
22846
22847 2011-03-30 Christian Schüler <cschueler@gmx.de>
22848
22849 PR driver/48208
22850 * config/c.opt (F): Added 'Driver' to -F option.
22851
22852 PR driver/48260
22853 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
22854 handler function.
22855 * config/darwin.opt: Added '-arch' option.
22856
22857 2011-03-30 Nick Clifton <nickc@redhat.com>
22858
22859 * config/rx/rx.md: Add peepholes and patterns to combine
22860 extending loads and simple arithmetic instructions.
22861 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
22862 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
22863 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
22864 modes to use pre-decrement and post-increment addressing.
22865 (rx_is_restricted_memory_address): Add range checking of REG+INT
22866 addresses.
22867 (rx_print_operand): Add support for %Q. Fix handling of %Q.
22868 (rx_memory_move_cost): Adjust cost of stores.
22869 (rx_adjust_insn_length): New function.
22870
22871 2011-03-30 Jakub Jelinek <jakub@redhat.com>
22872
22873 PR c/48305
22874 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
22875 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
22876 matching arg00/arg01 types.
22877
22878 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
22879
22880 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
22881 last_location to UNKNOWN_LOCATION.
22882
22883 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
22884
22885 PR target/48349
22886 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
22887 FLOAT_SSE_REGS.
22888
22889 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22890 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22891
22892 PR bootstrap/48337
22893 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
22894 Init(PROCESSOR_V7).
22895 (sparc_cpu): Likewise.
22896 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
22897 PROCESSOR_V7.
22898
22899 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22900
22901 PR target/48336
22902 PR middle-end/48342
22903 PR rtl-optimization/48345
22904 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
22905 hard regs for given mode from profitable regs when doing secondary
22906 allocation.
22907
22908 2011-03-29 Jeff Law <law@redhat.com>
22909
22910 PR bootstrap/48327
22911 * tree-ssa-threadupdate.c (struct redirection_data): Remove
22912 do_not_duplicate field.
22913 (lookup_redirection_data): Corresponding changes.
22914 (create_duplicates): Always create a template block.
22915 (redirect_edges): Remove code which reused the original block
22916 when it was going to become unreachable code.
22917 (thread_block): Don't set do_not_duplicate field.
22918
22919 2011-03-29 Joseph Myers <joseph@codesourcery.com>
22920
22921 * lto-opts.c (register_user_option_p, lto_register_user_option):
22922 Make type argument unsigned.
22923 * lto-streamer.h (lto_register_user_option): Make type argument
22924 unsigned.
22925 * opth-gen.awk: Make CL_* macros unsigned.
22926 * opts-common.c (find_opt): Make lang_mask argument unsigned.
22927 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
22928 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
22929 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
22930 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
22931 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
22932 (find_opt): Make lang_mask argument unsigned.
22933
22934 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22935
22936 PR rtl-optimization/48331
22937 PR rtl-optimization/48334
22938 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
22939 for any used algorithm.
22940
22941 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22942
22943 * ira-conflicts.c (build_object_conflicts): Add unused attribute
22944 to parent_max.
22945
22946 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
22947
22948 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
22949 (alpha_option_override): Don't set alpha_sr_alias_set.
22950 (emit_frame_store_1): Use gen_frame_mem rather than calling
22951 set_mem_alias_set.
22952 (alpha_expand_epilogue): Ditto.
22953
22954 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
22955
22956 PR tree-optimization/48290
22957 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
22958 vectorization, check that relevant phis in the basic block after
22959 the inner loop are really inner loop's exit phis.
22960
22961 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
22962
22963 PR debug/48190
22964 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
22965 (cached_dw_loc_list_def): New structure.
22966 (cached_dw_loc_list): New typedef.
22967 (cached_dw_loc_list_table): New variable.
22968 (cached_dw_loc_list_table_hash): New function.
22969 (cached_dw_loc_list_table_eq): Likewise.
22970 (add_location_or_const_value_attribute): Take a bool cache_p.
22971 Cache the list when the parameter is true.
22972 (gen_formal_parameter_die): Update caller.
22973 (gen_variable_die): Likewise.
22974 (dwarf2out_finish): Likewise.
22975 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
22976 while generating debug info for the decl.
22977 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
22978 (dwarf2out_init): Initialize cached_dw_loc_list_table.
22979 (resolve_addr): Cache the result of resolving a chain of
22980 location lists.
22981
22982 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
22983
22984 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
22985 conflict object hard regset nodes have intersecting hard reg sets.
22986
22987 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
22988 after regstat_init_n_sets_and_refs.
22989
22990 * ira.c: Add more comments at the top.
22991 (setup_stack_reg_pressure_class, setup_pressure_classes):
22992 Add comments how we compute the register pressure classes.
22993 (setup_allocno_and_important_classes): Add more comments.
22994 (setup_class_translate_array, reorder_important_classes)
22995 (setup_reg_class_relations): Add comments.
22996
22997 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
22998 start of the file.
22999
23000 * ira-color.c: Add 2011 to the Copyright line.
23001 (assign_hard_reg): Add more comments.
23002 (improve_allocation): Ditto.
23003
23004 * ira-costs.c: Add 2011 to the Copyright line.
23005 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
23006 comments.
23007 (setup_regno_cost_classes_by_mode): Ditto.
23008
23009 Initial patches from ira-improv branch:
23010
23011 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
23012
23013 * ira-build.c (ira_create_object): Remove initialization of
23014 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
23015 (ira_create_allocno): Remove initialization of
23016 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
23017 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
23018 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
23019 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
23020 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
23021 Initialize ALLOCNO_ADD_DATA.
23022 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
23023 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
23024 ALLOCNO_REG.
23025 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
23026 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
23027
23028 * ira.c (ira_reallocate): Remove.
23029 (setup_pressure_classes): Call
23030 ira_init_register_move_cost_if_necessary. Use
23031 ira_register_move_cost instead of ira_get_register_move_cost.
23032 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
23033 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
23034
23035 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
23036 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
23037 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
23038 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
23039 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
23040 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
23041 Fix formatting.
23042 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
23043 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
23044 (struct allocno_color_data): New.
23045 (allocno_color_data_t): New typedef.
23046 (allocno_color_data): New definition.
23047 (ALLOCNO_COLOR_DATA): New macro.
23048 (struct object_color_data): New.
23049 (object_color_data_t): New typedef.
23050 (object_color_data): New definition.
23051 (OBJECT_COLOR_DATA): New macro.
23052 (update_copy_costs, calculate_allocno_spill_cost): Call
23053 ira_init_register_move_cost_if_necessary. Use
23054 ira_register_move_cost instead of ira_get_register_move_cost.
23055 (move_spill_restore, update_curr_costs): Ditto.
23056 (allocno_spill_priority): Make it inline.
23057 (color_pass): Allocate and free allocno_color_dat and object_color_data.
23058 (struct coalesce_data, coalesce_data_t): New.
23059 (allocno_coalesce_data): New definition.
23060 (ALLOCNO_COALESCE_DATA): New macro.
23061 (merge_allocnos, coalesced_allocno_conflict_p): Use
23062 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
23063 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
23064 (coalesce_allocnos): Ditto.
23065 (setup_coalesced_allocno_costs_and_nums): Ditto.
23066 (collect_spilled_coalesced_allocnos): Ditto.
23067 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
23068 (setup_slot_coalesced_allocno_live_ranges): Ditto.
23069 (coalesce_spill_slots): Ditto.
23070 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
23071 free allocno_coalesce_data.
23072
23073 * ira-conflicts.c: Fix formatting.
23074 (process_regs_for_copy): Call
23075 ira_init_register_move_cost_if_necessary. Use
23076 ira_register_move_cost instead of ira_get_register_move_cost.
23077 (build_object_conflicts): Optimize.
23078
23079 * ira-costs.c (record_reg_classes): Optimize. Call
23080 ira_init_register_move_cost_if_necessary. Use
23081 ira_register_move_cost, ira_may_move_in_cost, and
23082 ira_may_move_out_cost instead of ira_get_register_move_cost and
23083 ira_get_may_move_cost.
23084 (record_address_regs): Ditto.
23085 (scan_one_insn): Optimize.
23086 (find_costs_and_classes): Optimize.
23087 (process_bb_node_for_hard_reg_moves): Call
23088 ira_init_register_move_cost_if_necessary. Use
23089 ira_register_move_cost instead of ira_get_register_move_cost.
23090
23091 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
23092 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
23093 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
23094 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
23095 definitions.
23096 (ira_initiate_emit_data, ira_finish_emit_data)
23097 (create_new_allocno): New functions.
23098 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
23099 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
23100 Use ira_register_move_cost instead of ira_get_register_move_cost.
23101
23102 * ira-int.h: Fix some comments.
23103 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
23104 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
23105 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
23106 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
23107 add_data.
23108 (struct ira_allocno): Make mode and aclass a bitfield. Move other
23109 bitfield after mode. Make hard_regno a short int. Make
23110 hard_regno short. Remove first_coalesced_allocno and
23111 next_coalesced_allocno. Move mem_optimized_dest_p,
23112 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
23113 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
23114 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
23115 temp, colorable_p. Add new member add_data.
23116 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
23117 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
23118 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
23119 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
23120 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
23121 (ALLOCNO_ADD_DATA): New macro.
23122 (ira_emit_data_t): New typedef.
23123 (struct ira_emit_data): New. Move mem_optimized_dest_p,
23124 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
23125 from struct ira_allocno.
23126 (ALLOCNO_EMIT_DATA): New macro.
23127 (ira_allocno_emit_data, allocno_emit_reg): New.
23128 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
23129 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
23130 (OBJECT_ADD_DATA): New macro.
23131 (ira_reallocate): Remove.
23132 (ira_initiate_emit_data, ira_finish_emit_data): New.
23133 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
23134 (ira_init_register_move_cost_if_necessary): New.
23135 (ira_object_conflict_iter_next): Merge into
23136 ira_object_conflict_iter_cond.
23137 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
23138
23139 * ira-live.c (process_single_reg_class_operands): Call
23140 ira_init_register_move_cost_if_necessary. Use
23141 ira_register_move_cost instead of ira_get_register_move_cost.
23142
23143 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
23144
23145 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
23146
23147 * ira-costs.c: Fix formatting.
23148 (cost_classes, cost_classes_num): Remove.
23149 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
23150 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
23151 (cost_classes_del, cost_classes_htab): New.
23152 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
23153 (initiate_regno_cost_classes, setup_cost_classes): New.
23154 (setup_regno_cost_classes_by_aclass): New.
23155 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
23156 (record_reg_classes): Use regno_cost_classes instead of
23157 cost_classes. Move checking opposite operand up.
23158 (record_address_regs): Use regno_cost_classes
23159 instead of cost_classes.
23160 (scan_one_insn): Ditto. Use always general register.
23161 (print_allocno_costs): Use regno_cost_classes instead of
23162 cost_classes.
23163 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
23164 (find_costs_and_classes): Set up cost classes for each registers.
23165 Use also their mode for this. Use regno_cost_classes instead of
23166 cost_classes.
23167 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
23168 cost_classes.
23169 (free_ira_costs, ira_init_costs): Don't use cost_classes.
23170 (ira_costs, ira_set_pseudo_classes): Call
23171 initiate_regno_cost_classes and finish_regno_cost_classes.
23172
23173 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
23174
23175 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
23176
23177 * target.def (ira_cover_classes): Remove.
23178
23179 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
23180
23181 * doc/tm.texi.in: Ditto.
23182
23183 * ira-conflicts.c: Remove mentioning cover classes from the file.
23184 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
23185 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
23186
23187 * targhooks.c (default_ira_cover_classes): Remove.
23188
23189 * targhooks.h (default_ira_cover_classes): Ditto.
23190
23191 * haifa-sched.c: Remove mentioning cover classes from the file.
23192 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
23193 ira_pressure_classes and ira_pressure_classes_num instead of
23194 ira_reg_class_cover_size and ira_reg_class_cover. Use
23195 sched_regno_pressure_class instead of sched_regno_cover_class.
23196 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
23197 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
23198
23199 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
23200 classes from the file.
23201 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
23202 (struct object_hard_regs, struct object_hard_regs_node): New.
23203 (struct ira_object): New members profitable_hard_regs,
23204 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
23205 (struct ira_allocno): Rename cover_class to aclass. Rename
23206 cover_class_cost and updated_cover_class_cost to class_cost and
23207 updated_class_cost. Remove splay_removed_p and
23208 left_conflict_size. Add new members colorable_p.
23209 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
23210 (ALLOCNO_COLORABLE_P): New macro.
23211 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
23212 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
23213 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
23214 (OBJECT_...): Rename parameter C to O.
23215 (OBJECT_PROFITABLE_HARD_REGS): New macro.
23216 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
23217 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
23218 (struct target_ira_int): New members x_ira_max_memory_move_cost,
23219 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
23220 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
23221 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
23222 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
23223 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
23224 x_ira_reg_class_subunion.
23225 (ira_max_memory_move_cost, ira_max_register_move_cost)
23226 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
23227 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
23228 (ira_important_class_nums, ira_reg_class_superunion): New macros.
23229 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
23230 (ira_reg_class_union): Rename to ira_reg_class_subunion.
23231 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
23232 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
23233 (ira_tune_allocno_costs_and_cover_classes): Rename to
23234 ira_tune_allocno_costs.
23235 (ira_debug_hard_regs_forest): New.
23236 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
23237 (ira_object_conflict_iter_next): Fix comments.
23238 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
23239 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
23240 cover_class to aclass.
23241 (ira_allocate_and_accumulate_costs): Ditto.
23242 (ira_allocate_and_set_or_copy_costs): Ditto.
23243
23244 * opts.c (decode_options): Remove ira_cover_class check.
23245
23246 * ira-color.c: Remove mentioning cover classes from the file. Use
23247 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
23248 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
23249 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
23250 (splay-tree.h): Remove include.
23251 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
23252 before copy_freq_compare_func.
23253 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
23254 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
23255 New definitions.
23256 (hard_regs_roots, hard_regs_node_vec): Ditto.
23257 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
23258 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
23259 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
23260 (create_new_object_hard_regs_node): Ditto.
23261 (add_new_object_hard_regs_node_to_forest): Ditto.
23262 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
23263 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
23264 Ditto.
23265 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
23266 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
23267 (remove_unused_object_hard_regs_nodes): Ditto.
23268 (enumerate_object_hard_regs_nodes): Ditto.
23269 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
23270 (object_hard_regs_subnode_t): Ditto.
23271 (struct object_hard_regs_subnode): Ditto.
23272 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
23273 (setup_object_hard_regs_subnode_index): Ditto.
23274 (get_object_hard_regs_subnodes_num): Ditto.
23275 (form_object_hard_regs_nodes_forest): Ditto.
23276 (finish_object_hard_regs_nodes_tree): Ditto.
23277 (finish_object_hard_regs_nodes_forest): Ditto.
23278 (allocnos_have_intersected_live_ranges_p): Rename to
23279 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
23280 (pseudos_have_intersected_live_ranges_p): Rename to
23281 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
23282 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
23283 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
23284 (update_copy_costs): Remove assert. Skip cost update if the hard
23285 reg does not belong the class.
23286 (assign_hard_reg): Process only profitable hard regs.
23287 (uncolorable_allocnos_num): Make it scalar.
23288 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
23289 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
23290 and ira_reg_class_max_nregs.
23291 (bucket_allocno_compare_func): Check frequency first.
23292 (sort_bucket): Add compare function as a parameter.
23293 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
23294 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
23295 (push_allocno_to_stack): Rewrite for checking new allocno
23296 colorability.
23297 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
23298 (push_only_colorable): Pass new parameter to sort_bucket.
23299 (push_allocno_to_spill): Remove.
23300 (allocno_spill_priority_compare): Make it inline and rewrite.
23301 (splay_tree_allocate, splay_tree_free): Remove.
23302 (allocno_spill_sort_compare): New function.
23303 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
23304 build and use splay tree. Choose first allocno in uncolorable
23305 allocno bucket to spill. Remove setting spill cost.
23306 (all_conflicting_hard_regs): Remove.
23307 (setup_allocno_available_regs_num): Check only profitable hard
23308 regs. Print info about hard regs nodes.
23309 (setup_allocno_left_conflicts_size): Remove.
23310 (put_allocno_into_bucket): Don't call
23311 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
23312 (improve_allocation): New.
23313 (color_allocnos): Call setup_profitable_hard_regs,
23314 form_object_hard_regs_nodes_forest, improve_allocation,
23315 finish_object_hard_regs_nodes_forest. Setup spill cost.
23316 (print_loop_title): Use pressure classes.
23317 (color_allocnso): Ditto.
23318 (do_coloring): Remove allocation and freeing splay_tree_node_pool
23319 and allocnos_for_spilling.
23320 (ira_sort_regnos_for_alter_reg): Don't setup members
23321 {first,next}_coalesced_allocno.
23322 (color): Remove allocating and freeing removed_splay_allocno_vec.
23323 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
23324 prohibited_class_mode_regs.
23325
23326 * ira-lives.c: Remove mentioning cover classes from the file. Fix
23327 formatting.
23328 (update_allocno_pressure_excess_length): Use pressure classes.
23329 (inc_register_pressure, dec_register_pressure): Check for pressure
23330 class.
23331 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
23332 pressure class. Use ira_reg_class_nregs instead of
23333 ira_reg_class_max_nregs.
23334 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
23335 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
23336 (single_reg_class): Use ira_reg_class_nregs instead of
23337 ira_reg_class_max_nregs.
23338 (process_bb_node_lives): Use pressure classes.
23339
23340 * ira-emit.c: Remove mentioning cover classes from the file. Use
23341 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
23342 (change_loop): Use pressure classes.
23343 (modify_move_list): Call ira_set_allocno_class instead of
23344 ira_set_allocno_cover_class.
23345
23346 * ira-build.c: Remove mentioning cover classes from the file. Use
23347 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
23348 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
23349 ALLOCNO_UPDATED_CLASS_COST instead of
23350 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
23351 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
23352 (ira_create_allocno): Remove initialization of
23353 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
23354 ALLOCNO_COLORABLE_P.
23355 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
23356 Update conflict regs for the objects.
23357 (create_cap_allocno): Remove assert. Don't propagate
23358 ALLOCNO_AVAILABLE_REGS_NUM.
23359 (ira_free_allocno_costs): New function.
23360 (finish_allocno): Change a part of code into call of
23361 ira_free_allocno_costs.
23362 (low_pressure_loop_node_p): Use pressure classes.
23363 (object_range_compare_func): Don't compare classes.
23364 (setup_min_max_conflict_allocno_ids): Ditto.
23365
23366 * loop-invariant.c: Remove mentioning cover classes from the file.
23367 Use ira_pressure_classes and ira_pressure_classes_num instead of
23368 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
23369 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
23370 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
23371 Use reg_allocno_class instead of reg_cover_class.
23372 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
23373 STACK_REG_COVER_CLASS.
23374 (get_regno_cover_class): Rename to get_regno_pressure_class.
23375 (move_loop_invariants): Initialize and finalize regstat.
23376
23377 * ira.c: Remove mentioning cover classes from the file. Add
23378 comments about coloring without cover classes. Use ALLOCNO_CLASS
23379 instead of ALLOCNO_COVER_CLASS. Fix formatting.
23380 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
23381 setup_class_subset_and_memory_move_costs.
23382 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
23383 (setup_cover_and_important_classes): Rename to
23384 setup_allocno_and_important_classes.
23385 (setup_class_translate_array): New.
23386 (setup_class_translate): Call it for allocno and pressure classes.
23387 (cover_class_order): Rename to allocno_class_order.
23388 (comp_reg_classes_func): Use ira_allocno_class_translate instead
23389 of ira_class_translate.
23390 (reorder_important_classes): Set up ira_important_class_nums.
23391 (setup_reg_class_relations): Set up ira_reg_class_superunion.
23392 (print_class_cover): Rename to print_classes. Add parameter.
23393 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
23394 Print pressure classes too.
23395 (find_reg_class_closure): Rename to find_reg_classes. Don't call
23396 setup_reg_subclasses.
23397 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
23398 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
23399 (setup_prohibited_class_mode_regs): Use
23400 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
23401 (clarify_prohibited_class_mode_regs): New function.
23402 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
23403 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
23404 (ira_init_once): Initialize them.
23405 (free_register_move_costs): Process them.
23406 (ira_init): Move calls of find_reg_classes and
23407 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
23408 Call clarify_prohibited_class_mode_regs.
23409 (ira_no_alloc_reg): Remove.
23410 (too_high_register_pressure_p): Use pressure classes.
23411
23412 * sched-deps.c: Remove mentioning cover classes from the file.
23413 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
23414 ira_pressure_classes and ira_pressure_classes_num instead of
23415 ira_reg_class_cover_size and ira_reg_class_cover.
23416 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
23417 sched_regno_pressure_class instead of sched_regno_cover_class.
23418 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
23419 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
23420
23421 * ira.h: Add 2010 to Copyright.
23422 (ira_no_alloc_reg): Remove external.
23423 (struct target_ira): Rename x_ira_hard_regno_cover_class,
23424 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
23425 x_ira_class_translate to x_ira_hard_regno_allocno_class,
23426 x_ira_allocno_classes_num, x_ira_allocno_classes, and
23427 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
23428 x_ira_pressure_classes, x_ira_pressure_class_translate, and
23429 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
23430 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
23431 x_ira_no_alloc_regs.
23432 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
23433 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
23434 ira_allocno_classes_num and ira_allocno_classes.
23435 (ira_class_translate): Rename to ira_allocno_class_translate.
23436 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
23437 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
23438 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
23439 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
23440 (ira_no_alloc_regs): New.
23441
23442 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
23443 classes from the file. Use ALLOCNO_CLASS instead of
23444 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
23445 ALLOCNO_COVER_CLASS_COST.
23446 (regno_cover_class): Rename to regno_aclass.
23447 (record_reg_classes): Use ira_reg_class_subunion instead of
23448 ira_reg_class_union.
23449 (record_address_regs): Check overflow.
23450 (scan_one_insn): Ditto.
23451 (print_allocno_costs): Print total mem cost fore regional allocation.
23452 (print_pseudo_costs): Use REG_N_REFS.
23453 (find_costs_and_classes): Use classes intersected with them on the
23454 1st pass. Check overflow. Use ira_reg_class_subunion instead of
23455 ira_reg_class_union. Use ira_allocno_class_translate and
23456 regno_aclass instead of ira_class_translate and regno_cover_class.
23457 Modify code for finding regno_aclass. Setup preferred classes for
23458 the next pass.
23459 (setup_allocno_cover_class_and_costs): Rename to
23460 setup_allocno_class_and_costs. Use regno_aclass instead of
23461 regno_cover_class. Use ira_set_allocno_class instead of
23462 ira_set_allocno_cover_class.
23463 (init_costs, finish_costs): Use regno_aclass instead of
23464 regno_cover_class.
23465 (ira_costs): Use setup_allocno_class_and_costs instead of
23466 setup_allocno_cover_class_and_costs.
23467 (ira_tune_allocno_costs_and_cover_classes): Rename to
23468 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
23469 by processing objects. Use ira_reg_class_max_nregs instead of
23470 ira_reg_class_nregs.
23471
23472 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
23473
23474 * sched-int.h: Remove mentioning cover classes from the file.
23475 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
23476
23477 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
23478 classes from the file.
23479 (struct reg_pref): Rename coverclass into allocnoclass.
23480 (reg_cover_class): Rename to reg_allocno_class.
23481
23482 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
23483
23484 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
23485
23486 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
23487
23488 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
23489
23490 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
23491
23492 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
23493
23494 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
23495
23496 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
23497
23498 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
23499
23500 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
23501
23502 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
23503 (i386_ira_cover_classes): Ditto.
23504
23505 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
23506
23507 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
23508
23509 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
23510
23511 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
23512
23513 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
23514
23515 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
23516
23517 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
23518 (mips_ira_cover_classes): Ditto.
23519
23520 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
23521
23522 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
23523
23524 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
23525
23526 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
23527
23528 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
23529
23530 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
23531 (IRA_COVER_CLASSES_VSX): Ditto.
23532
23533 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
23534 (rs6000_ira_cover_classes): Ditto.
23535
23536 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
23537
23538 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
23539
23540 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
23541
23542 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
23543
23544 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
23545
23546 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
23547
23548 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
23549
23550 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
23551
23552 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
23553
23554 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
23555
23556 2011-03-29 Jakub Jelinek <jakub@redhat.com>
23557
23558 PR debug/48253
23559 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
23560 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
23561 dw_fde_unlikely_section_end_label, cold_in_std_section,
23562 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
23563 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
23564 fields.
23565 (output_fde): Use dw_fde_second_{begin,end} if second is
23566 true, otherwise dw_fde_{begin,end}.
23567 (output_call_frame_info): Test dw_fde_second_begin != NULL
23568 instead of dw_fde_switched_sections.
23569 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
23570 fields, initialize new fields. Initialize in_std_section
23571 unconditionally from the first partition.
23572 (dwarf2out_end_epilogue): Don't override dw_fde_end when
23573 dw_fde_second_begin is non-NULL.
23574 (dwarf2out_switch_text_section): Stop initializing removed
23575 dw_fde_struct fields, initialize new fields, initialize
23576 also dw_fde_end here. Set dw_fde_switch_cfi even when
23577 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
23578 (struct var_loc_list_def): Add last_before_switch field.
23579 (arange_table, arange_table_allocated, arange_table_in_use,
23580 ARANGE_TABLE_INCREMENT, add_arange): Removed.
23581 (size_of_aranges): Count !in_std_section and !second_in_std_section
23582 hunks in fdes, instead of looking at arange_table_in_use.
23583 (output_aranges): Add aranges_length argument, don't call
23584 size_of_aranges here. Instead of using aranges_table*
23585 emit ranges for fdes when !in_std_section resp.
23586 !second_in_std_section.
23587 (dw_loc_list): Break ranges crossing section switch.
23588 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
23589 use dw_fde_second_end instead of dw_fde_end as end of last range.
23590 (gen_subprogram_die): Don't call add_arange. Use
23591 dw_fde_{begin,end} for first partition and if switched
23592 section dw_fde_second_{begin,end} for the second.
23593 (var_location_switch_text_section_1,
23594 var_location_switch_text_section): New functions.
23595 (dwarf2out_begin_function): Initialize cold_text_section even
23596 when function_section () isn't text_section.
23597 (prune_unused_types): Don't walk arange_table.
23598 (dwarf2out_finish): Don't needlessly test
23599 flag_reorder_blocks_and_partition when testing cold_text_section_used.
23600 If info_section_emitted, call size_of_aranges and if it indicates
23601 non-empty .debug_aranges, call output_aranges with the computed
23602 size. Stop using removed dw_fde_struct fields, use
23603 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
23604 for second.
23605
23606 PR debug/48203
23607 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
23608 create ENTRY_VALUE if incoming or address of incoming's MEM
23609 is a hard REG.
23610 * dwarf2out.c (mem_loc_descriptor): Don't emit
23611 DW_OP_GNU_entry_value of DW_OP_fbreg.
23612 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
23613 on ENTRY_VALUE is able to find the canonical parameter VALUE.
23614 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
23615 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
23616 ENTRY_VALUE_EXPs.
23617 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
23618 is a REG_P or MEM_P with REG_P address, compute hash directly
23619 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
23620 (preserve_only_constants): Don't clear VALUES forwaring
23621 ENTRY_VALUE to some other VALUE.
23622
23623 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
23624
23625 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
23626 instead of GEN_INT.
23627
23628 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
23629
23630 * cfgexpand.c (expand_gimple_cond): Always set the source location and
23631 block before expanding the statement.
23632 (expand_gimple_stmt_1): Likewise. Set them here...
23633 (expand_gimple_stmt): ...and not here. Tidy.
23634 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
23635 unknown.
23636
23637 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
23638
23639 * Makefile.in: New rule for cprop.o.
23640 * gcse.c: Move constant/copy propagation to cprop.c.
23641 (compute_local_properties): Only handle expression tables.
23642 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
23643 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
23644 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
23645 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
23646 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
23647 compute_cprop_data, find_used_regs, try_replace_reg,
23648 find_avail_set, cprop_jump, constprop_register, cprop_insn,
23649 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
23650 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
23651 find_bypass_set, reg_killed_on_edge, bypass_block,
23652 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
23653 execute_rtl_cprop, pass_rtl_cprop): Move to...
23654 * cprop.c: ...here. New file, constant/copy propagation for RTL
23655 moved from gcse.c to here with minor cleanups in duplicated code.
23656
23657 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
23658
23659 * config/i386/i386.c (flag_opts): Fix a typo in
23660 -mavx256-split-unaligned-store.
23661
23662 2011-03-28 Anatoly Sokolov <aesok@post.ru>
23663
23664 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
23665 LIBCALL_VALUE): Remove macros.
23666 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23667 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23668 (h8300_function_value, h8300_libcall_value,
23669 h8300_function_value_regno_p): New functions.
23670
23671 2011-03-28 Anatoly Sokolov <aesok@post.ru>
23672
23673 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
23674
23675 2011-03-28 Jeff Law <law@redhat.com>
23676
23677 * tree-ssa-threadupdate.c (redirect_edges): Call
23678 create_edge_and_update_destination_phis as needed.
23679 (create_edge_and_update_destination_phis): Accept new BB argument.
23680 All callers updated.
23681 (thread_block): Do not update the profile when threading around
23682 intermediate blocks.
23683 (thread_single_edge): Likewise.
23684 (determine_bb_domination_status): If BB is not a successor of the
23685 loop header, return NONDOMINATING.
23686 (register_jump_thread): Note when we register a jump thread around
23687 an intermediate block.
23688 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
23689 (thread_across_edge): Use it.
23690
23691 2011-03-28 Tristan Gingold <gingold@adacore.com>
23692
23693 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
23694 when for_return is 2.
23695
23696 2011-03-28 Jeff Law <law@redhat.com>
23697
23698 * var-tracking.c (canonicalize_values_mark): Delete unused
23699 lhs assignment.
23700 (canonicalize_values_star, set_variable_part): Likewise.
23701 (clobber_variable_part, delete_variable_part): Likewise.
23702
23703 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
23704
23705 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
23706
23707 2011-03-28 Martin Jambor <mjambor@suse.cz>
23708
23709 * tree-inline.c (expand_call_inline): Do not check that destination
23710 node is analyzed.
23711 (optimize_inline_calls): Assert that destination node is analyzed.
23712 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
23713 not call tree_lowering_passes.
23714 * cgraph.h (cgraph_analyze_function): Declare.
23715 * cgraphunit.c (cgraph_analyze_function): Make public.
23716
23717 2011-03-28 Joseph Myers <joseph@codesourcery.com>
23718
23719 * config/sparc/sparc-opts.h: New.
23720 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
23721 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
23722 (sparc_option_override): Store processor_type enumeration rather
23723 than string in cpu_default. Remove name and enumeration from
23724 cpu_table. Directly default -mcpu then default -mtune from -mcpu
23725 without using sparc_select. Use target_flags_explicit instead of
23726 fpu_option_set.
23727 * config/sparc/sparc.h (enum processor_type): Move to
23728 sparc-opts.h.
23729 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
23730 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
23731 HeaderInclude entry.
23732 (mcpu=, mtune=): Use Var and Enum.
23733 (sparc_processor_type): New Enum and EnumValue entries.
23734
23735 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23736 Iain Sandoe <iains@gcc.gnu.org>
23737
23738 PR target/48245
23739 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
23740
23741 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
23742
23743 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
23744 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
23745 Insert new statements at it in lieu of STMT.
23746 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
23747 * tree-vect-stmts.c (vectorizable_store): Likewise.
23748 (vectorizable_load): Likewise.
23749
23750 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
23751
23752 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
23753 (divtf3): Ditto.
23754 (multf3): Ditto.
23755 (subtf3): Ditto.
23756
23757 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
23758
23759 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
23760 unaligned 256bit load/store.
23761 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
23762 (*avx_movdqu<avxmodesuffix>): Likewise.
23763
23764 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23765
23766 PR target/48288
23767 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
23768 * config/pa/pa.md (iordi3): Use new predicate in expander.
23769 (iorsi3): Likewise.
23770
23771 2011-03-27 Anatoly Sokolov <aesok@post.ru>
23772
23773 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
23774 FUNCTION_VALUE_REGNO_P): Remove macros.
23775 * config/mips/mips-protos.h (mips_function_value): Remove.
23776 * config/mips/mips.c (mips_function_value): Rename to...
23777 (mips_function_value_1): ... this. Make static. Handle receiving
23778 the function type in 'fn_decl_or_type' argument.
23779 (mips_function_value, mips_libcall_value,
23780 mips_function_value_regno_p): New function.
23781 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23782 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23783
23784 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
23785
23786 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
23787 and -mavx256-split-unaligned-store.
23788 (ix86_option_override_internal): Split 32-byte AVX unaligned
23789 load/store by default.
23790 (ix86_avx256_split_vector_move_misalign): New.
23791 (ix86_expand_vector_move_misalign): Use it.
23792
23793 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
23794 -mavx256-split-unaligned-store.
23795
23796 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
23797 256bit load/store. Generate unaligned store on misaligned memory
23798 operand.
23799 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
23800 256bit load/store.
23801 (*avx_movdqu<avxmodesuffix>): Likewise.
23802
23803 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
23804 -mavx256-split-unaligned-store.
23805
23806 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
23807
23808 PR target/38598
23809 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
23810 Update commentary.
23811
23812 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
23813
23814 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
23815 opno arguments with an expand_operand. Use create_input_operand.
23816 (mips_prepare_builtin_target): Delete.
23817 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
23818 functions.
23819 (mips_expand_builtin_direct): Use create_output_operand and
23820 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
23821 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
23822 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
23823
23824 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
23825
23826 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
23827 function.
23828 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
23829
23830 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
23831
23832 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
23833 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
23834 basic blocks and call commit_edge_insertions directly.
23835 (fixup_abnormal_edges): Move from here to...
23836 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
23837 on the edges and return whether some have actually been inserted.
23838 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
23839 compensation code.
23840
23841 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
23842
23843 PR rtl-optimization/48144
23844 * sel-sched-ir.c (merge_history_vect): Factor out from ...
23845 (merge_expr_data): ... here.
23846 (av_set_intersect): Rename to av_set_code_motion_filter.
23847 Update all callers. Call merge_history_vect when an expression
23848 is found in both sets.
23849 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
23850
23851 2011-03-26 Alan Modra <amodra@gmail.com>
23852
23853 * config/rs6000/predicates.md (word_offset_memref_op): Handle
23854 cmodel medium addresses.
23855 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
23856 64-bit gpr loads and stores.
23857 (rs6000_secondary_reload_ppc64): New function.
23858 * config/rs6000/rs6000-protos.h: Declare it.
23859 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
23860
23861 2011-03-26 Alan Modra <amodra@gmail.com>
23862
23863 PR target/47487
23864 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
23865 GNU Go in traceback table.
23866
23867 2011-03-25 Richard Henderson <rth@redhat.com>
23868
23869 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
23870 if there are exactly 6 operands.
23871 (set_storage_via_setmem): Similarly.
23872
23873 2011-03-25 Kai Tietz <ktietz@redhat.com>
23874
23875 * collect2.c (write_c_file_stat): Handle backslash
23876 as right-hand directory separator.
23877 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
23878 checking just for slash.
23879 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
23880 instead of checking for trailing slash.
23881 * gcc.c (record_temp_file): Use filename_cmp instead
23882 of strcmp.
23883 (do_spec_1): Likewise.
23884 (replace_outfile_spec_function): Likewise.
23885 (is_directory): Use filename_ncmp instead of strncmp.
23886 (print_multilib_info): Likewise.
23887 * gcov.c (find_source): Use filename_cmp instead
23888 instead of strcmp.
23889 (make_gcov_file_name): Fix order of slash/backslash
23890 checks.
23891 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
23892 (add_standard_paths): Likewise.
23893 * mips-tfile.c (saber_stop): Handle backslash.
23894 * prefix.c (update_path): Use filename_ncmp instead of
23895 strncmp.
23896 * profile.c (output_location): Use filename_cmp instead
23897 of strcmp.
23898 * read-md.c (handle_toplevel_file): Handle backslash.
23899 * tlink.c (frob_extension): Likewise.
23900 * tree-cfg.c (same_line_p): Use filename_cmp instead of
23901 strcmp.
23902 * tree-dump.c (dequeue_and_dump): Handle backslash.
23903 * tree.c (get_file_function_name): Likewise.
23904 * gengtype.c (read_input_list): Likewise.
23905 (get_file_realbasename): Likewise.
23906 (get_output_file_with_visibility): Use filename_cmp
23907 instead of strcmp.
23908
23909 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
23910
23911 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
23912 case to VFPv1.
23913
23914 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
23915
23916 * fold-const.c (expr_location_or): New function.
23917 (fold_truth_not_expr): Call it.
23918
23919 2011-03-25 Jeff Law <law@redhat.com>
23920
23921 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
23922 va_end.
23923 * c-family/c-common.c (def_fn_type): Likewise.
23924 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
23925 * emit-rtl.c (gen_rtvec): Likewise.
23926 * lto/lto-lang.c (def_fn_type): Likewise.
23927
23928 2011-03-25 Richard Guenther <rguenther@suse.de>
23929
23930 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
23931 also generate copies.
23932 (fini_copy_prop): Handle constant values properly.
23933
23934 2011-03-25 Jakub Jelinek <jakub@redhat.com>
23935
23936 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
23937 mode size instead of bitsize with DWARF2_ADDR_SIZE.
23938 (hash_loc_operands, compare_loc_operands): Handle
23939 DW_OP_GNU_entry_value.
23940
23941 2011-03-25 Kai Tietz <ktietz@redhat.com>
23942
23943 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
23944 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
23945 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
23946 comment and use macro TARGET_64BIT_MS_ABI instead.
23947 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
23948 and change default behavior for 32-bit MS_ABI.
23949 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
23950 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
23951 32-bit, too.
23952 (ix86_cfun_abi): Likewise.
23953 (ix86_maybe_switch_abi): Adjust comment.
23954 (init_cumulative_args): Check for bit-ness in MS_ABI case.
23955 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
23956 instead of checking for SYSV_ABI.
23957 (ix86_nsaved_sseregs): Likewise.
23958 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
23959 to 16 bytes.
23960 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
23961 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
23962 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
23963 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
23964 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
23965
23966 2011-03-25 Richard Guenther <rguenther@suse.de>
23967
23968 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
23969 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
23970 (verify_gimple): Remove.
23971 * tree-cfg.c (verify_gimple_call): Merge verification
23972 from verify_stmts.
23973 (verify_gimple_phi): Merge verification from verify_stmts.
23974 (verify_gimple_label): New function.
23975 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
23976 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
23977 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
23978 (verify_stmts): Rename to verify_gimple_in_cfg.
23979 (verify_gimple_in_cfg): New function.
23980 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
23981 * tree-ssa.c (verify_ssa): Likewise.
23982 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
23983
23984 2011-03-25 Richard Guenther <rguenther@suse.de>
23985
23986 * passes.c (init_optimization_passes): Add FRE pass after
23987 early SRA.
23988
23989 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
23990 Andrew Stubbs <ams@codesourcery.com>
23991
23992 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
23993 for Cortex-A8.
23994 (arm_movdi_vfp_cortexa8): New pattern.
23995 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
23996 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
23997 instructions when tuning for Cortex-A8. Set attribute "arch".
23998 * config/arm/arm.md: Move include arm-tune.md up a bit.
23999 (define_attr "arch"): Add "onlya8" and "nota8" values.
24000 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
24001
24002 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
24003
24004 PR bootstrap/48282
24005 Revert:
24006 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
24007
24008 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
24009 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
24010 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
24011 * passes.c (init_optimization_passes): Move
24012 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
24013
24014 2011-03-25 Kai Tietz <ktietz@redhat.com>
24015
24016 * c-typeck.c (comptypes_internal): Replace target
24017 hook call of comp_type_attributes by version in tree.c file.
24018 * gimple.c (gimple_types_compatible_p_1): Likewise.
24019 * tree-ssa.c (useless_type_conversion_p): Likewise.
24020 * tree.c (build_type_attribute_qual_variant): Likewise.
24021 (attribute_value_equal): New static helper function.
24022 (comp_type_attributes): New function.
24023 (merge_attributes): Use attribute_value_equal for comparison.
24024 (attribute_list_contained): Likewise.
24025 * tree.h (comp_type_attributes): New prototype.
24026
24027 2011-03-25 Richard Guenther <rguenther@suse.de>
24028
24029 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
24030 of complex types at -O0.
24031 (verify_gimple_assign_binary): Likewise.
24032 (verify_gimple_assign_ternary): Likewise.
24033
24034 2011-03-24 Mark Wielaard <mjw@redhat.com>
24035
24036 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
24037 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
24038
24039 2011-03-24 Mark Wielaard <mjw@redhat.com>
24040
24041 PR debug/48041
24042 * dwarf2out.c (output_abbrev_section): Only write table when
24043 abbrev_die_table_in_use > 1.
24044
24045 2011-02-24 Richard Henderson <rth@redhat.com>
24046
24047 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
24048 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
24049 (alpha_expand_unaligned_load_words): Use extql.
24050 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
24051 (emit_insxl): Handle all modes for consistency.
24052
24053 2011-02-24 Richard Henderson <rth@redhat.com>
24054
24055 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
24056 (alpha_expand_unaligned_load): Likewise.
24057 (alpha_expand_unaligned_store): Likewise.
24058 (alpha_expand_unaligned_load_words): Likewise.
24059 (alpha_expand_unaligned_store_words): Likewise.
24060 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
24061 (alpha_split_lock_test_and_set_12): Likewise.
24062 (print_operand, alpha_fold_builtin_extxx): Likewise.
24063 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
24064 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
24065 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
24066 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
24067 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
24068 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
24069 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
24070 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
24071 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
24072 (extwl, extll, extql): Similarly.
24073 (inswh, inslh, insqh): Similarly.
24074 (mskbl, mskwl, mskll, mskql): Similarly.
24075 (mskwh, msklh, mskqh): Similarly.
24076
24077 2011-02-24 Richard Henderson <rth@redhat.com>
24078
24079 * config/alpha/alpha.md (attribute isa): Add er, ner.
24080 (attribute enabled): Handle them.
24081 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
24082
24083 2011-02-24 Richard Henderson <rth@redhat.com>
24084
24085 * config/alpha/alpha.md (attribute isa): Add vms.
24086 (attribute enabled): Handle it.
24087 (*movsf): Merge *movsf_{nofix,fix,nofp}.
24088 (*movdf): Merge *movdf_{nofix,fix,nofp}.
24089 (*movtf): Rename from *movtf_internal for consistency.
24090 (*movsi): Merge with *movsi_nt_vms.
24091 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
24092 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
24093 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
24094 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
24095
24096 2011-02-24 Richard Henderson <rth@redhat.com>
24097
24098 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
24099 (extendqisi2, extendhisi2): Likewise.
24100 (extendqidi2): Simplify BWX/non-BWX expansions.
24101 (extendhidi2): Similarly.
24102
24103 2011-02-24 Richard Henderson <rth@redhat.com>
24104
24105 * config/alpha/alpha.md (attribute isa): New.
24106 (attribute enabled): New.
24107 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
24108 (zero_extendqisi2, zero_extendqidi2): Similarly.
24109 (zero_extendhisi2, zero_extendhidi2): Similarly.
24110 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
24111
24112 2011-02-24 Richard Henderson <rth@redhat.com>
24113
24114 * config/alpha/predicates.md (input_operand): Revert last change;
24115 update comment to mention 32-bit VMS rather than Windows.
24116
24117 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
24118
24119 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
24120 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
24121 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
24122 * passes.c (init_optimization_passes): Move
24123 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
24124
24125 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
24126
24127 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
24128
24129 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
24130
24131 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
24132 correctly.
24133
24134 2011-03-24 Jakub Jelinek <jakub@redhat.com>
24135
24136 PR debug/48204
24137 * simplify-rtx.c (simplify_const_unary_operation): Call
24138 real_convert when changing mode class with FLOAT_EXTEND.
24139
24140 2011-03-24 Nick Clifton <nickc@redhat.com>
24141
24142 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
24143 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
24144 * config/rx/rx.c (rx_option_override): Set align_jumps,
24145 align_loops and align_labels if not set by the user.
24146 (rx_align_for_label): New function.
24147 (rx_max_skip_for_label): New function.
24148 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
24149 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
24150 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
24151 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
24152 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
24153
24154 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
24155
24156 PR rtl-optimization/48263
24157 * optabs.c (expand_binop_directly): Reinstate convert_modes code
24158 and original commutative_p handling. Use maybe_gen_insn.
24159
24160 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24161
24162 * reload.c (find_reloads_subreg_address): Add address_reloaded
24163 parameter and return true there if the full address has been
24164 reloaded.
24165 (find_reloads_toplev): Pass address_reloaded flag.
24166 (find_reloads_address_1): Don't use address_reloaded parameter.
24167
24168 2011-03-24 Jeff Law <law@redhat.com>
24169
24170 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
24171 unused variable "ann".
24172 (remove_unused_locals): Likewise.
24173
24174 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
24175 statement.
24176
24177 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
24178 after it is freed.
24179
24180 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24181
24182 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
24183 for invalid symbolic addresses.
24184 (s390_secondary_reload): Don't use s390_check_symref_alignment for
24185 larl operands.
24186
24187 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
24188
24189 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
24190 the argument in calls to fold_truth_not_expr.
24191
24192 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
24193
24194 * tree.c (record_node_allocation_statistics): New function.
24195 (make_node_stat, copy_node_stat, build_string): Call it.
24196 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
24197 (build1_stat, build_omp_clause): Likewise.
24198
24199 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
24200
24201 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
24202 last commit.
24203
24204 2011-03-24 Richard Guenther <rguenther@suse.de>
24205
24206 PR tree-optimization/48271
24207 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
24208 blocks that still exist.
24209
24210 2011-03-24 Richard Guenther <rguenther@suse.de>
24211
24212 PR tree-optimization/48270
24213 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
24214 not free datarefs before ddrs.
24215
24216 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
24217
24218 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
24219 from the address built for a reference with variable offset.
24220
24221 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
24222
24223 PR target/48237
24224 * config/i386/i386.md (*movdf_internal_rex64): Do not split
24225 alternatives that can be handled with movq or movabsq insn.
24226 (*movdf_internal): Disable for !TARGET_64BIT.
24227 (*movdf_internal_nointeger): Ditto.
24228 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
24229
24230 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
24231
24232 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
24233 (FUNCTION_ARG_ADVANCE): Likewise.
24234 * tm.texi.in: Change references to them to hook references.
24235 * tm.texi: Regenerate.
24236 * targhooks.c (default_function_arg): Eliminate check for target macro.
24237 (default_function_incoming_arg): Likewise.
24238 (default_function_arg_advance): Likewise.
24239 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
24240 (function_arg_advance): Likewise.
24241 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
24242
24243 2011-03-24 Richard Guenther <rguenther@suse.de>
24244
24245 PR middle-end/48269
24246 * tree-object-size.c (addr_object_size): Do not double-account
24247 for MEM_REF offsets.
24248
24249 2011-03-24 Diego Novillo <dnovillo@google.com>
24250
24251 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
24252 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
24253 (lto_input_data_block): Move from lto-opts.c. Make extern.
24254 Update all users.
24255 (lto_input_string): Rename from input_string. Make extern.
24256 Update all users.
24257 * lto-streamer-out.c (lto_output_string_with_length): Rename from
24258 output_string_with_length.
24259 Output 0 to indicate a non-NULL string. Update all callers to
24260 not emit 0.
24261 (lto_output_string): Rename from output_string. Make extern.
24262 Update all users.
24263 (lto_output_decl_state_streams): Make extern.
24264 (lto_output_decl_state_refs): Make extern.
24265 * lto-streamer.h (lto_input_string): Declare.
24266 (lto_input_data_block): Declare.
24267 (lto_output_string): Declare.
24268 (lto_output_string_with_length): Declare.
24269 (lto_output_decl_state_streams): Declare.
24270 (lto_output_decl_state_refs): Declare.
24271
24272 2011-03-24 Richard Guenther <rguenther@suse.de>
24273
24274 PR tree-optimization/46562
24275 * tree.c (build_invariant_address): New function.
24276 * tree.h (build_invariant_address): Declare.
24277 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
24278 a renamed function moved ...
24279 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
24280 Take valueization callback parameter.
24281 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
24282 * gimple-fold.h: New file.
24283 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
24284 (ccp_fold, fold_const_aggregate_ref,
24285 fold_ctor_reference, fold_nonarray_ctor_reference,
24286 fold_array_ctor_reference, fold_string_cst_ctor_reference,
24287 get_base_constructor): Move ...
24288 * gimple-fold.c: ... here.
24289 (gimple_fold_stmt_to_constant_1): New function
24290 split out from ccp_fold. Take a valueization callback parameter.
24291 Valueize all operands.
24292 (gimple_fold_stmt_to_constant): New wrapper function.
24293 (fold_const_aggregate_ref_1): New function split out from
24294 fold_const_aggregate_ref. Take a valueization callback parameter.
24295 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
24296 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
24297 invariant POINTER_PLUS_EXPRs to invariant form.
24298 (vn_valueize): New function.
24299 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
24300 * tree-vrp.c (vrp_valueize): New function.
24301 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
24302 to fold statements to constants.
24303 * tree-ssa-pre.c (eliminate): Properly guard propagation of
24304 function declarations.
24305 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
24306 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
24307
24308 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
24309
24310 * config/h8300/predicates.md (jump_address_operand): Fix register
24311 mode check.
24312
24313 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
24314
24315 * doc/invoke.texi (max-stores-to-sink): Document.
24316 * params.h (MAX_STORES_TO_SINK): Define.
24317 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
24318 if either vectorization or if-conversion is disabled.
24319 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
24320 tree-vect-data-refs.c vect_equal_offsets.
24321 (dr_equal_offsets_p): New function.
24322 (find_data_references_in_bb): Remove static.
24323 * tree-data-ref.h (find_data_references_in_bb): Declare.
24324 (dr_equal_offsets_p): Likewise.
24325 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
24326 (vect_drs_dependent_in_basic_block): Update calls to
24327 vect_equal_offsets.
24328 (vect_check_interleaving): Likewise.
24329 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
24330 (cond_if_else_store_replacement): Rename to...
24331 (cond_if_else_store_replacement_1): ... this. Change arguments and
24332 documentation.
24333 (cond_if_else_store_replacement): New function.
24334 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
24335 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
24336
24337 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
24338
24339 PR target/46934
24340 * config/arm/arm.md (casesi): Use the gen_int_mode() function
24341 to subtract lower bound instead of GEN_INT().
24342
24343 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
24344
24345 PR other/48179
24346 PR other/48221
24347 PR other/48234
24348 * doc/extend.texi (Alignment): Move section to match order in TOC.
24349 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
24350 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
24351
24352 2011-03-23 Jeff Law <law@redhat.com>
24353
24354 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
24355 before removing the edge.
24356
24357 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
24358 it may have been freed by redirect_branch_edge or
24359 redirect_edge_succ_nodup.
24360
24361 2011-03-23 Richard Guenther <rguenther@suse.de>
24362
24363 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
24364 (check_va_list_escapes): Likewise.
24365 (check_all_va_list_escapes): Likewise.
24366
24367 2011-03-23 Richard Guenther <rguenther@suse.de>
24368
24369 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
24370 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
24371 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
24372 (alias.o): Likewise.
24373 (ipa-type-escape.o): Remove.
24374 (ipa-struct-reorg.o): Likewise.
24375 (GTFILES): Remove ipa-struct-reorg.c.
24376 * alias.c: Do not include ipa-type-escape.h.
24377 * tree-ssa-alias.c: Likewise.
24378 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
24379 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
24380 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
24381 and ipa-type-escape passes.
24382 * tree-pass.h (pass_ipa_type_escape): Remove.
24383 (pass_ipa_struct_reorg): Likewise.
24384 * ipa-struct-reorg.h: Remove.
24385 * ipa-struct-reorg.c: Likewise.
24386 * ipa-type-escape.h: Likewise.
24387 * ipa-type-escape.c: Likewise.
24388 * doc/invoke.texi (-fipa-struct-reorg): Remove.
24389 (--param struct-reorg-cold-struct-ratio): Likewise.
24390 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
24391 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
24392 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
24393
24394 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24395
24396 * config/s390/2084.md: Enable all insn reservations also for z9_ec
24397 cpu attribute value.
24398 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
24399 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
24400 * config/s390/s390.c (processor_flags_table): New constant array.
24401 (s390_handle_arch_option): Remove.
24402 (s390_handle_option): Remove s390_handle_arch_option invocations
24403 and OPT_mwarn_framesize_ handling.
24404 (s390_option_override): Remove s390_handle_arch_option invocation.
24405 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
24406 warnings.
24407 * config/s390/s390.md (cpu attribute): Add z9_ec value.
24408 * config/s390/s390.opt (s390_tune, s390_arch)
24409 (march=): Replace s390_arch_option enum and values with
24410 processor_type. Set variable name to s390_arch. Set
24411 initialization value.
24412 (mtune=): Replace s390_arch_option with processor_type. Set
24413 variable name to s390_tune. Set initialization value.
24414
24415 2011-03-23 Julian Brown <julian@codesourcery.com>
24416
24417 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
24418 accesses which are not naturally aligned.
24419
24420 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
24421
24422 PR target/47553
24423 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
24424
24425 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
24426
24427 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
24428 parameter from "int" to "enum insn_code".
24429 (expand_operand_type): New enum.
24430 (expand_operand): New structure.
24431 (create_expand_operand): New function.
24432 (create_fixed_operand, create_output_operand): Likewise
24433 (create_input_operand, create_convert_operand_to): Likewise.
24434 (create_convert_operand_from, create_address_operand): Likewise.
24435 (create_integer_operand): Likewise.
24436 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
24437 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
24438 (expand_insn, expand_jump_insn): Likewise.
24439 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
24440 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
24441 (expand_movstr, expand_builtin___clear_cache): Likewise.
24442 (expand_builtin_lock_release): Likewise.
24443 * explow.c (allocate_dynamic_stack_space): Likewise.
24444 (probe_stack_range): Likewise. Allow check_stack to FAIL,
24445 and use the default handling in that case.
24446 * expmed.c (check_predicate_volatile_ok): Delete.
24447 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
24448 (emit_cstore): Likewise.
24449 * expr.c (emit_block_move_via_movmem): Likewise.
24450 (set_storage_via_setmem, expand_assignment): Likewise.
24451 (emit_storent_insn, try_casesi): Likewise.
24452 (emit_single_push_insn): Likewise. Allow the expansion to fail.
24453 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
24454 (expand_vec_shift_expr, expand_binop_directly): Likewise.
24455 (expand_twoval_unop, expand_twoval_binop): Likewise.
24456 (expand_unop_direct, emit_indirect_jump): Likewise.
24457 (emit_conditional_move, vector_compare_rtx): Likewise.
24458 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
24459 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
24460 (expand_sync_lock_test_and_set): Likewise.
24461 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
24462 (emit_unop_insn): Likewise.
24463 (expand_copysign_absneg): Change icode to an insn_code.
24464 (create_convert_operand_from_type): New function.
24465 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
24466 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
24467 (expand_insn, expand_jump_insn): Likewise.
24468 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
24469 than const_int_operand for operand 2.
24470
24471 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24472
24473 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
24474 if possible.
24475
24476 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
24477
24478 * emit-rtl.c (emit_pattern_before_noloc): New function.
24479 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
24480 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
24481 (emit_pattern_after_noloc): New function.
24482 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
24483 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
24484
24485 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
24486
24487 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
24488 (__ffsDI2): Likewise.
24489
24490 2011-03-22 Richard Henderson <rth@redhat.com>
24491
24492 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
24493 of !TARGET_ABI_OPEN_VMS.
24494 (alpha_trampoline_init, alpha_start_function): Likewise.
24495 (alpha_expand_epilogue, alpha_file_start): Likewise.
24496 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
24497 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
24498 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
24499 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
24500 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
24501
24502 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24503
24504 * config/s390/s390-opts.h: New.
24505 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
24506 s390_arch_flags, s390_warn_framesize, s390_stack_size,
24507 s390_stack_guard): Remove.
24508 (s390_handle_arch_option): Return void. Take enum
24509 s390_arch_option value instead of string and searching array.
24510 (s390_handle_option): Don't assert that global structures are in
24511 use. Access variables via opts pointer. Use error_at. Don't use
24512 sscanf for -mstack-guard= or -mstack-size=. Update call to
24513 s390_handle_arch_option.
24514 (s390_option_override): Update call to s390_handle_arch_option.
24515 (s390_emit_prologue): Use %d format for s390_stack_size in
24516 diagnostic. Use %wd for HOST_WIDE_INT.
24517 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
24518 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
24519 * config/s390/s390.opt (config/s390/s390-opts.h): New
24520 HeaderInclude entry.
24521 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
24522 s390_arch_flags, s390_warn_framesize): New Variable entries.
24523 (s390_arch_option): New Enum and EnumValue entries.
24524 (march=): Use Enum instead of Var.
24525 (mstack-guard=, mstack-size=): Use UInteger and Var.
24526 (mtune=): Use Enum.
24527
24528 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24529
24530 * config/score/score.c (score_handle_option): Don't assert that
24531 global structures are in use. Access target_flags via opts
24532 pointer. Use value of -march= option to determine target_flags
24533 settings.
24534 * config/score/score.opt (march=): Use Enum.
24535 (score_arch): New Enum and EnumValue entries.
24536
24537 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24538
24539 * config/mep/mep.c (option_mtiny_specified): Remove.
24540 (mep_option_override): Move register handling for -mivc2 from
24541 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
24542 instead of option_mtiny_specified.
24543 (mep_handle_option): Access target_flags via opts pointer. Don't
24544 assert that global structures are in use. Defer part of -mivc2
24545 handling and move it to mep_option_override.
24546 * config/mep/mep.opt (IVC2): New Mask entry.
24547 (mivc2): Use Var and Defer instead of Mask.
24548
24549 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24550
24551 * config/v850/v850-opts.h: New.
24552 * config/v850/v850.c (small_memory): Replace with
24553 small_memory_physical_max array. Make that array static const.
24554 (v850_handle_memory_option): Take integer value of argument. Take
24555 gcc_options pointer, option text and location. Return void.
24556 Update for changes to small memory structures.
24557 (v850_handle_option): Access target_flags via opts pointer. Don't
24558 assert that global structures are in use. Update calls to
24559 v850_handle_memory_option.
24560 (v850_encode_data_area): Update references to small memory settings.
24561 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
24562 (enum small_memory_type): Move to v850-opts.h.
24563 * config/v850/v850.opt (config/v850/v850-opts.h): New
24564 HeaderInclude entry.
24565 (small_memory_max): New Variable entry.
24566 (msda): Replace by pair of options msda= and msda-. Use UInteger.
24567 (mtda, mzda): Likewise.
24568
24569 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24570
24571 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
24572 pointer. Don't assert that global structures are in use.
24573
24574 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24575
24576 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
24577 via opts pointer. Don't assert that global structures are in use.
24578
24579 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24580
24581 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
24582 (munix=93): Use Var.
24583 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
24584 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
24585 * config/pa/pa-opts.h: New.
24586 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
24587 (pa_handle_option): Don't assert that global structures are in
24588 use. Access target_flags via opts pointer. Don't handle
24589 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
24590 OPT_munix_98 here.
24591 (pa_option_override): Handle deferred OPT_mfixed_range_.
24592
24593 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24594
24595 * config/mn10300/mn10300-opts.h: New.
24596 * config/mn10300/mn10300.c (mn10300_processor,
24597 mn10300_tune_string): Remove.
24598 (mn10300_handle_option): Don't assert that global structures are
24599 in use. Access mn10300_processor via opts pointer. Don't handle
24600 OPT_mtune_ here.
24601 * config/mn10300/mn10300.h (enum processor_type): Move to
24602 mn10300-opts.h.
24603 (mn10300_processor): Remove.
24604 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
24605 HeaderInclude entry.
24606 (mn10300_processor): New Variable entry.
24607 (mtune=): Use Var.
24608
24609 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24610
24611 * config/microblaze/microblaze.c: Don't include opts.h.
24612 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
24613 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
24614 (mno-clearbss): Use Var and Warn.
24615
24616 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24617
24618 * config/m32r/m32r-opts.h: New.
24619 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
24620 (m32r_handle_option): Don't assert that global structures are in
24621 use. Access target_flags and m32r_cache_flush_func via opts
24622 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
24623 OPT_mno_flush_trap here.
24624 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
24625 include of m32r-opts.h.
24626 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
24627 HeaderInclude entry.
24628 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
24629 (mmodel=): Use Enum and Var.
24630 (m32r_model): New Enum and EnumValue entries.
24631 (mno-flush-trap): Use Var.
24632 (msdata=): Use Enum and Var.
24633 (m32r_sdata): New Enum and EnumValue entries.
24634
24635 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24636
24637 * config/m32c/m32c.c: Don't include opts.h.
24638 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
24639 m32c_handle_option): Remove.
24640 (m32c_option_override): Check global_options_set.x_target_memregs
24641 instead of target_memregs_set.
24642 * config/m32c/m32c.h (target_memregs): Remove.
24643 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
24644 variable.
24645
24646 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24647
24648 * config/iq2000/iq2000-opts.h: New.
24649 * config/iq2000/iq2000.c: Don't include opts.h.
24650 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
24651 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
24652 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
24653 HeaderInclude entry.
24654 (iq2000_tune): New Variable entry.
24655 (march=): Add comment. Use Enum.
24656 (iq2000_arch): New Enum and EnumValue entries.
24657 (mcpu=): Use Enum and Var.
24658 (iq2000_tune): New Enum and EnumValue entries.
24659
24660 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24661
24662 * config/ia64/ia64-opts.h: New.
24663 * config/ia64/ia64.c (ia64_tune): Remove.
24664 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
24665 here. Use error_at.
24666 (ia64_option_override): Handle deferred OPT_mfixed_range_.
24667 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
24668 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
24669 HeaderInclude entry.
24670 (ia64_tune): New Variable entry.
24671 (mfixed-range=): Use Defer and Var.
24672 (mtune=): Use Enum and Var.
24673 (ia64_tune): New Enum and EnumValue entries.
24674
24675 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24676
24677 * config/frv/frv-opts.h: New.
24678 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
24679 frv-opts.h.
24680 (frv_cpu_type): Remove.
24681 * config/frv/frv.c: Don't include opts.h.
24682 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
24683 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
24684 (frv_cpu_type): New Variable entry.
24685 (frv_cpu): New Enum and EnumValue entries.
24686
24687 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24688
24689 * config/cris/cris.c (cris_handle_option): Access target_flags via
24690 opts pointer. Don't assert that global structures are in use.
24691 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
24692 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
24693
24694 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24695
24696 * config/bfin/bfin-opts.h: New.
24697 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
24698 bfin_si_revision, bfin_workarounds): Remove.
24699 (bfin_cpus): Make static const.
24700 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
24701 not bfin_lib_id_given.
24702 (bfin_handle_option): Don't set bfin_lib_id_given. Access
24703 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
24704 pointer. Use error_at. Don't assert that global structures are in use.
24705 * config/bfin/bfin.h: Include bfin-opts.h.
24706 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
24707 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
24708 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
24709 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
24710 entries.
24711
24712 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24713
24714 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
24715 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
24716 or -msoft-float here.
24717 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
24718 -msoft-float and -mhard-float.
24719 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
24720 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24721 msoft-float.
24722 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
24723 -msoft-float.
24724 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
24725 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
24726 not mhard-float.
24727 (LIBGCC_SPEC): Don't handle -msoft-float.
24728 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
24729 -mhard-float.
24730 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24731 msoft-float.
24732 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
24733 -mfloat-abi=*, not -msoft-float and -mhard-float.
24734 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
24735 -msoft-float.
24736 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
24737 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
24738 mhard-float and msoft-float.
24739 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
24740 mfloat-abi=soft in comments, not mhard-float and msoft-float.
24741 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
24742 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
24743 mhard-float.
24744 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
24745 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
24746 msoft-float.
24747 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
24748 not mhard-float.
24749 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
24750 not msoft-float.
24751
24752 2011-03-22 Richard Henderson <rth@redhat.com>
24753
24754 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
24755 TARGET_ABI_WINDOWS_NT.
24756 (alpha_output_function_end_prologue): Likewise.
24757 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
24758 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
24759 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
24760 (trap, *movsi_nt_vms): Likewise.
24761 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
24762 (*tablejump_osf_nt_internal): Remove.
24763 * config/alpha/predicates.md (input_operand): Only test Pmode.
24764
24765 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24766
24767 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
24768 via opts pointer. Use error_at. Don't assert that global
24769 structures are in use.
24770
24771 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24772
24773 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
24774 (ix86_handle_option): Access ix86_isa_flags and
24775 ix86_isa_flags_explicit via opts pointer. Don't assert that
24776 global structures are in use.
24777 (ix86_function_specific_save, ix86_function_specific_restore):
24778 Update ix86_isa_flags_explicit field name.
24779 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
24780 (ix86_isa_flags_explicit): Rename TargetSave entry to
24781 x_ix86_isa_flags_explicit.
24782
24783 2011-03-22 Richard Henderson <rth@redhat.com>
24784
24785 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
24786 (alpha_option_override, direct_return): Likewise.
24787 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
24788 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
24789 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
24790 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
24791 (alpha_expand_epilogue, alpha_end_function): Likewise.
24792 (alpha_init_libfuncs): Likewise.
24793 (struct machine_function): Remove unicosmk members.
24794 (print_operand) ['t']: Remove.
24795 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
24796 unicosmk_output_module_name, unicosmk_output_common,
24797 current_section_align, unicosmk_output_text_section_asm_op,
24798 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
24799 unicosmk_section_type_flags, unicosmk_unique_section,
24800 unicosmk_asm_named_section, unicosmk_insert_attributes,
24801 unicosmk_output_align, unicosmk_defer_case_vector,
24802 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
24803 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
24804 unicosmk_output_ssib, unicosmk_add_call_info_word,
24805 unicosmk_extern_head, unicosmk_output_default_externs,
24806 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
24807 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
24808 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
24809 * config/alpha/alpha-protos.h: Update.
24810 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
24811 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
24812 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
24813 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
24814 (*mulsi_se, mulvsi3): Likewise.
24815 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
24816 (*divmodsi_internal, call, call_value, realign): Likewise.
24817 (moddi3, umoddi3): Likewise; remove duplicate expander.
24818 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
24819 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
24820 (*movdi_nofix): Remove r/U alternative.
24821 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
24822 * config/alpha/constraints.md ("U"): Remove.
24823 * config/alpha/predicates.md (call_operand"): Don't test
24824 TARGET_ABI_UNICOSMK.
24825
24826 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24827
24828 * target.def (handle_option): Take gcc_options and
24829 cl_decoded_option pointers and location_t.
24830 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
24831 * doc/tm.texi: Regenerate.
24832 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
24833 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
24834 * lto-opts.c (lto_reissue_options): Generate option structure for
24835 targetm.handle_option call.
24836 * opts.c (target_handle_option): Update call to
24837 targetm.handle_option. Remove assertions about values now passed
24838 down to hook.
24839 * targhooks.c (default_target_handle_option): New.
24840 * targhooks.h (default_target_handle_option): Declare.
24841 * config/alpha/alpha.c: Include opts.h.
24842 (alpha_handle_option): Update to new hook interface.
24843 * config/arm/arm.c: Include opts.h.
24844 (arm_handle_option): Update to new hook interface.
24845 * config/arm/t-arm (arm.o): Update dependencies.
24846 * config/bfin/bfin.c: Include opts.h.
24847 (bfin_handle_option): Update to new hook interface.
24848 * config/cris/cris.c: Include opts.h.
24849 (cris_handle_option): Update to new hook interface.
24850 * config/frv/frv.c: Include opts.h.
24851 (frv_handle_option): Update to new hook interface.
24852 * config/i386/i386.c: Include opts.h.
24853 (ix86_handle_option): Update to new hook interface.
24854 (ix86_valid_target_attribute_inner_p): Generate option structure
24855 for call to ix86_handle_option.
24856 * config/i386/t-i386 (i386.o): Update dependencies.
24857 * config/ia64/ia64.c: Include opts.h.
24858 (ia64_handle_option): Update to new hook interface.
24859 * config/ia64/t-ia64 (ia64.o): Update dependencies.
24860 * config/iq2000/iq2000.c: Include opts.h.
24861 (iq2000_handle_option): Update to new hook interface.
24862 * config/m32c/m32c.c: Include opts.h.
24863 (m32c_handle_option): Update to new hook interface.
24864 * config/m32r/m32r.c: Include opts.h.
24865 (m32r_handle_option): Update to new hook interface.
24866 * config/m68k/m68k.c: Include opts.h.
24867 (m68k_handle_option): Update to new hook interface.
24868 * config/mep/mep.c: Include opts.h.
24869 (mep_handle_option): Update to new hook interface.
24870 * config/microblaze/microblaze.c: Include opts.h.
24871 (microblaze_handle_option): Update to new hook interface.
24872 * config/mips/mips.c: Include opts.h.
24873 (mips_handle_option): Update to new hook interface.
24874 * config/mn10300/mn10300.c: Include opts.h.
24875 (mn10300_handle_option): Update to new hook interface.
24876 * config/pa/pa.c: Include opts.h.
24877 (pa_handle_option): Update to new hook interface.
24878 * config/pdp11/pdp11.c: Include opts.h.
24879 (pdp11_handle_option): Update to new hook interface.
24880 * config/rs6000/rs6000.c: Include opts.h.
24881 (rs6000_handle_option): Update to new hook interface.
24882 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
24883 * config/rx/rx.c: Include opts.h.
24884 (rx_handle_option): Update to new hook interface.
24885 * config/s390/s390.c: Include opts.h.
24886 (s390_handle_option): Update to new hook interface.
24887 * config/score/score.c: Include opts.h.
24888 (score_handle_option): Update to new hook interface.
24889 * config/sh/sh.c: Include opts.h.
24890 (sh_handle_option): Update to new hook interface.
24891 * config/sparc/sparc.c: Include opts.h.
24892 (sparc_handle_option): Update to new hook interface.
24893 * config/v850/v850.c: Include opts.h.
24894 (v850_handle_option): Update to new hook interface.
24895
24896 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24897
24898 * gcc.c (driver_unknown_option_callback): Only permit and save
24899 unknown -Wno- options.
24900 (driver_wrong_lang_callback): Save options directly instead of via
24901 driver_unknown_option_callback.
24902
24903 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
24904
24905 * combine.c (simplify_set): Try harder to find the best CC mode when
24906 simplifying a nested COMPARE on the RHS.
24907
24908 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24909
24910 * config/alpha/gnu.h: Remove.
24911 * config/arc: Remove directory.
24912 * config/arm/netbsd.h: Remove.
24913 * config/arm/t-pe: Remove.
24914 * config/crx: Remove directory.
24915 * config/i386/netbsd.h: Remove.
24916 * config/m68hc11: Remove directory.
24917 * config/m68k/uclinux-oldabi.h: Remove.
24918 * config/mcore/mcore-pe.h: Remove.
24919 * config/mcore/t-mcore-pe: Remove.
24920 * config/netbsd-aout.h: Remove.
24921 * config/rs6000/gnu.h: Remove.
24922 * config/sh/sh-symbian.h: Remove.
24923 * config/sh/symbian-base.c: Remove.
24924 * config/sh/symbian-c.c: Remove.
24925 * config/sh/symbian-cxx.c: Remove.
24926 * config/sh/symbian-post.h: Remove.
24927 * config/sh/symbian-pre.h: Remove.
24928 * config/sh/t-symbian: Remove.
24929 * config/svr3.h: Remove.
24930 * config/vax/netbsd.h: Remove.
24931 * config.build: Don't handle i[34567]86-*-pe.
24932 * config.gcc: Remove handling of deprecations for most deprecated
24933 targets.
24934 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
24935 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
24936 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
24937 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
24938 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
24939 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
24940 Remove cases.
24941 * config.host: Don't handle i[34567]86-*-pe.
24942 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
24943 (ASM_SPEC32): Don't handle -mcall-gnu.
24944 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
24945 -mcall-gnu.
24946 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
24947 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
24948 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
24949 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
24950 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
24951 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
24952 conditional on SYMBIAN.
24953 * configure.ac: Don't handle powerpc*-*-gnu*.
24954 * configure: Regenerate.
24955 * doc/extend.texi (interrupt attribute): Don't mention CRX.
24956 * doc/install-old.texi (m6811, m6812): Don't mention.
24957 * doc/install.texi (arc-*-elf*): Don't document multilib option.
24958 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
24959 (m68k-uclinuxoldabi): Don't mention.
24960 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
24961 Remove.
24962 (-mcall-gnu): Remove.
24963 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
24964 families): Remove constraint documentation.
24965
24966 2011-03-22 Marius Strobl <marius@FreeBSD.org>
24967
24968 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
24969 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
24970 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
24971
24972 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
24973
24974 PR target/48226
24975 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
24976 vector when peeking at the next token for vector, don't expand the
24977 keywords.
24978
24979 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
24980
24981 * config/avr/avr-protos.h (expand_epilogue): Change prototype
24982 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
24983 * config/avr/avr.c (init_cumulative_args)
24984 (avr_function_arg_advance): Use it.
24985 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
24986 sibcall epilogues.
24987 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
24988 (avr_function_ok_for_sibcall): ...this new function.
24989 (avr_lookup_function_attribute1): New static Function.
24990 (avr_naked_function_p, interrupt_function_p)
24991 (signal_function_p, avr_OS_task_function_p)
24992 (avr_OS_main_function_p): Use it.
24993 * config/avr/avr.md ("sibcall", "sibcall_value")
24994 ("sibcall_epilogue"): New expander.
24995 ("*call_insn", "*call_value_insn"): New insn.
24996 ("call_insn", "call_value_insn"): Remove
24997 ("call", "call_value", "epilogue"): Change expander to handle
24998 sibling calls.
24999
25000 2011-03-21 Nick Clifton <nickc@redhat.com>
25001
25002 * doc/invoke.texi (Overall Options): Move closing brace to end of
25003 options list.
25004 (Optimization Options): Add missing @gol.
25005 (Directory Options): Likewise.
25006 (i386 and x86-64 Options): Likewise.
25007 (RS6000 and PowerPC Options): Likewise.
25008 (i386 and x86-64 Windows Options): Likewise.
25009 (V850 Options): Add text missing from descriptions.
25010
25011 2011-03-22 Richard Henderson <rth@redhat.com>
25012
25013 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
25014 (avr_incoming_return_addr_rtx): New.
25015 (emit_push_byte): New.
25016 (expand_prologue): Use it. Remove incorrect dwarf annotation for
25017 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
25018 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
25019 (emit_pop_byte): New.
25020 (expand_epilogue): Use it. Pop frame pointer by bytes.
25021 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
25022 (INCOMING_RETURN_ADDR_RTX): New.
25023 (INCOMING_FRAME_SP_OFFSET): New.
25024 (ARG_POINTER_CFA_OFFSET): New.
25025 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
25026 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
25027 (pophi): Remove.
25028
25029 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
25030
25031 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
25032
25033 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
25034 (FUNCTION_ARG_ADVANCE): Likewise.
25035 * tm.texi.in: Change references to them to hook references.
25036 * tm.texi: Regenerate.
25037 * targhooks.c (default_function_arg): Eliminate check for target
25038 macro.
25039 (default_function_incoming_arg): Likewise.
25040 (default_function_arg_advance): Likewise.
25041 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
25042 (function_arg_advance): Likewise.
25043 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
25044
25045 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
25046
25047 * tree.c (build_call_1): New function.
25048 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
25049
25050 2011-03-22 Richard Guenther <rguenther@suse.de>
25051
25052 PR tree-optimization/48228
25053 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
25054 for single-arg PHIs.
25055
25056 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
25057
25058 PR rtl-optimization/48143
25059 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
25060 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
25061 sse2_cvtps2pd): Likewise.
25062
25063 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25064
25065 * recog.c (canonicalize_change_group): Use validate_unshare_change.
25066
25067 2011-03-22 Richard Guenther <rguenther@suse.de>
25068
25069 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
25070 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
25071 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
25072 and REALIGN_LOAD_EXPR.
25073 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
25074 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
25075 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
25076 DOT_PROD_EXPR case ...
25077 (expand_expr_real_2): ... here.
25078 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
25079 and REALIGN_LOAD_EXPR.
25080 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
25081 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
25082 (vect_create_epilog_for_reduction): Likewise.
25083 (vectorizable_reduction): Likewise.
25084 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
25085 * tree-vect-stmts.c (vectorizable_load): Likewise.
25086
25087 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
25088
25089 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
25090
25091 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25092
25093 * config/s390/s390.c (s390_delegitimize_address): Fix offset
25094 handling for PLTOFF/GOTOFF.
25095
25096 2011-03-22 Nick Clifton <nickc@redhat.com>
25097
25098 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
25099 trailing backslash from the end of the macro definition.
25100
25101 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25102
25103 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
25104 and PLT unspecs.
25105
25106 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
25107
25108 * expr.h (prepare_operand): Move to...
25109 * optabs.h (prepare_operand): ...here and change the insn code
25110 parameter from "int" to "enum insn_code".
25111 (insn_operand_matches): Declare.
25112 * expr.c (init_expr_target): Use insn_operand_matches.
25113 (compress_float_constant): Likewise.
25114 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
25115 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
25116 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
25117 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
25118 Likewise.
25119 (gen_cond_trap): Likewise.
25120 (prepare_operand): Likewise. Change icode to an insn_code.
25121 (insn_operand_matches): New function.
25122 * reload.c (find_reloads_address_1): Use insn_operand_matches.
25123 * reload1.c (gen_reload): Likewise.
25124 * targhooks.c (default_secondary_reload): Likewise.
25125
25126 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
25127
25128 * config/alpha/alpha.md (unspec): New define_c_enum.
25129 (unspecv): Ditto.
25130
25131 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
25132
25133 PR debug/48214
25134 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
25135 between a call and its CALL_ARG_LOCATION note.
25136
25137 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
25138
25139 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
25140
25141 2011-03-21 Jakub Jelinek <jakub@redhat.com>
25142
25143 PR c/42544
25144 PR c/48197
25145 * c-common.c (shorten_compare): If primopN is first sign-extended
25146 to opN and then zero-extended to result type, set primopN to opN.
25147
25148 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
25149
25150 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
25151 for barrier handlers.
25152
25153 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
25154
25155 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
25156 UNSPEC constants to be in the unspec enumeration, and redefine
25157 all UNSPECV constants to be in the unspecv enumeration, so that
25158 dumps print which unspec/unspec_volatile this is.
25159 * config/rs6000/vector.md (UNSPEC_*): Ditto.
25160 * config/rs6000/paired.md (UNSPEC_*): Ditto.
25161 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
25162 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
25163 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
25164
25165 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
25166 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
25167 UNSPECV_LWSYNC, since these are used as unspec_volatile.
25168 * config/rs6000/sync.md (isync, lwsync): Ditto.
25169
25170 2011-03-21 Richard Guenther <rguenther@suse.de>
25171
25172 * params.def (lto-min-partition): Fix typo.
25173
25174 2011-03-21 Richard Guenther <rguenther@suse.de>
25175
25176 PR c/47939
25177 * c-decl.c (grokdeclarator): Drop to the main variant only
25178 for array types. Drop flag_gen_aux_info check.
25179
25180 2011-03-21 Richard Guenther <rguenther@suse.de>
25181
25182 PR translation/47911
25183 * params.def (lto-partitions): Fix typo.
25184 (lto-min-partition): Fix wording.
25185
25186 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
25187
25188 * config/rs6000/t-freebsd: Remove duplication from file.
25189
25190 2011-03-21 Richard Guenther <rguenther@suse.de>
25191
25192 PR middle-end/47661
25193 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
25194
25195 2011-03-21 Richard Guenther <rguenther@suse.de>
25196
25197 PR lto/48210
25198 * params.def (lto-partitions): Require at least 1 partition.
25199
25200 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25201
25202 * gthr-solaris.h: Remove.
25203 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
25204 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
25205 (LIB_SPEC): Likewise.
25206 * config/sol2.opt (threads): Remove.
25207 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
25208 (sparc*-*-solaris2*): Likewise.
25209 * configure.ac (enable_threads): Enable solaris support.
25210 * configure: Regenerate.
25211 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
25212 * doc/install.texi (Configuration, --enable-threads=lib): Remove
25213 solaris.
25214
25215 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25216
25217 * config.gcc: Obsolete *-*-solaris2.8*.
25218 * doc/install.texi (Specific, *-*-solaris2*): Document it.
25219
25220 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25221
25222 PR bootstrap/48135
25223 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
25224 reference. Solaris 8 perl works.
25225
25226 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25227
25228 PR bootstrap/48135
25229 * doc/install.texi (Prerequisites): Move jar etc. up.
25230 Explain support library version requirements.
25231
25232 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25233
25234 PR bootstrap/48135
25235 * doc/install.texi (Prerequisites): Move Perl to build
25236 requirements. Always necessary on Solaris 2 with Sun ld.
25237
25238 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25239
25240 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
25241 binutils 2.21.
25242 (Specific, i?86-*-solaris2.[89]): Likewise.
25243 (Specific, i?86-*-solaris2.10): Likewise.
25244 (Specific, mips-sgi-irix6): Likewise.
25245 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
25246 Update for binutils 2.21.
25247
25248 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25249
25250 * configure.ac (gcc_cv_lto_plugin): Fix typo.
25251 Allow -fuse-linker-plugin for non-default plugin linker.
25252 * configure: Regenerate.
25253
25254 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
25255
25256 PR bootstrap/48167
25257 * gengtype.c (files_rules): Added rule for cp/parser.h.
25258
25259 2011-03-21 Jakub Jelinek <jakub@redhat.com>
25260
25261 PR target/48213
25262 * config/s390/s390.c (s390_delegitimize_address): Don't call
25263 lowpart_subreg if orig_x has BLKmode.
25264
25265 2011-03-21 Kai Tietz <ktietz@redhat.com>
25266
25267 PR target/12171
25268 * doc/plugins.texi: Adjust documentation for plugin register_callback.
25269 * tree.h (attribute_spec): Add new member affects_type_identity.
25270 * attribs.c (empty_attribute_table): Adjust attribute_spec
25271 initializers.
25272 * config/alpha/alpha.c: Likewise.
25273 * config/arc/arc.c: Likewise.
25274 * config/arm/arm.c: Likewise.
25275 * config/avr/avr.c: Likewise.
25276 * config/bfin/bfin.c: Likewise.
25277 * config/crx/crx.c: Likewise.
25278 * config/darwin.h: Likewise.
25279 * config/h8300/h8300.c: Likewise.
25280 * config/i386/cygming.h: Likewise.
25281 * config/i386/i386.c: Likewise.
25282 * config/ia64/ia64.c: Likewise.
25283 * config/m32c/m32c.c: Likewise.
25284 * config/m32r/m32r.c: Likewise.
25285 * config/m68hc11/m68hc11.c: Likewise.
25286 * config/m68k/m68k.c: Likewise.
25287 * config/mcore/mcore.c: Likewise.
25288 * config/mep/mep.c: Likewise.
25289 * config/microblaze/microblaze.c: Likewise.
25290 * config/mips/mips.c: Likewise.
25291 * config/rs6000/rs6000.c: Likewise.
25292 * config/rx/rx.c: Likewise.
25293 * config/sh/sh.c: Likewise.
25294 * config/sol2.h: Likewise.
25295 * config/sparc/sparc.c: Likewise.
25296 * config/spu/spu.c: Likewise.
25297 * config/stormy16/stormy16.c: Likewise.
25298 * config/v850/v850.c: Likewise.
25299
25300 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
25301
25302 * simplify-rtx.c (simplify_binary_operation_1): Handle
25303 (xor (and A B) C) case when B and C are both constants.
25304
25305 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
25306
25307 * tree-dfa.c (add_referenced_var): Fix typo in comment.
25308
25309 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
25310
25311 PR bootstrap/48168
25312 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
25313
25314 2011-03-20 Jakub Jelinek <jakub@redhat.com>
25315
25316 PR rtl-optimization/48156
25317 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
25318 assume df and df_lr are not NULL.
25319
25320 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
25321
25322 PR debug/48023
25323 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
25324 between a call and its CALL_ARG_LOCATION note.
25325
25326 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
25327
25328 PR debug/48178
25329 * config/sh/sh.c (find_barrier): Don't emit a constant pool
25330 between a call and its corresponding CALL_ARG_LOCATION note.
25331
25332 2011-03-19 Anatoly Sokolov <aesok@post.ru>
25333
25334 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
25335 instead of loop. Use HARD_REGISTER_NUM_P predicate.
25336 * haifa-sched.c (setup_ref_regs): Ditto.
25337 * caller-save.c (add_used_regs_1): Ditto.
25338 * dse.c (look_for_hardregs): Ditto.
25339 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
25340 * sched-rgn.c (check_live_1): Ditto.
25341
25342 2011-03-18 Joseph Myers <joseph@codesourcery.com>
25343
25344 * c-decl.c (diagnose_mismatched_decls): Give an error for
25345 redefining a typedef with variably modified type.
25346
25347 2011-03-18 Joseph Myers <joseph@codesourcery.com>
25348
25349 * c-decl.c (grokfield): Don't allow typedefs for structures or
25350 unions with no tag by default.
25351 * doc/extend.texi (Unnamed Fields): Update.
25352
25353 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
25354
25355 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
25356 Rewrite using indirect functions.
25357 (lwp_slwpcb): Ditto.
25358 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
25359 (avx_vinsertf128<mode>): Ditto.
25360
25361 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25362
25363 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
25364 unspecs.
25365
25366 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25367
25368 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
25369 splitting between a call and its corresponding CALL_ARG_LOCATION note.
25370
25371 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
25372
25373 PR rtl-optimization/48170
25374 * gcse.c (hoist_code): Remove bogus asserts.
25375
25376 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
25377
25378 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
25379 computation for prologue/epilogue.
25380
25381 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25382
25383 * Makefile.in (check-consistency): Remove.
25384
25385 2011-03-18 Jakub Jelinek <jakub@redhat.com>
25386
25387 PR debug/48176
25388 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
25389 arange_table_in_use is 0, but either text_section_used or
25390 cold_text_section_used is true. Don't call it if
25391 !info_section_emitted.
25392
25393 2011-03-18 Anatoly Sokolov <aesok@post.ru>
25394
25395 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
25396 FUNCTION_VALUE_REGNO_P): Remove.
25397 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
25398 Remove.
25399 * config/avr/avr.c (avr_ret_register): Make static inline.
25400 (avr_function_value_regno_p): New function.
25401 (avr_libcall_value): Make static. Add 'func' argument.
25402 (avr_function_value): Make static. Rename 'func' argument to
25403 'fn_decl_or_type', forward it to avr_libcall_value. Call
25404 avr_ret_register function instead of RET_REGISTER macro.
25405 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
25406
25407 2011-03-18 Jason Merrill <jason@redhat.com>
25408
25409 PR c++/23372
25410 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
25411
25412 2011-03-18 Richard Guenther <rguenther@suse.de>
25413
25414 * doc/install.texi (--enable-gold): Remove.
25415 (--with-plugin-ld): Document.
25416 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
25417
25418 2011-03-18 Andrew Pinski <pinskia@gmail.com>
25419
25420 PR middle-end/47790
25421 * expr.c (optimize_bitfield_assignment_op): Revamp to work
25422 again after expansion changes.
25423
25424 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
25425
25426 * combine.c (try_combine): Do simplification only call of
25427 subst() on i2 even when i1 is present. Update comments.
25428
25429 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
25430
25431 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
25432 and UNSPEC_PCREL_SYMOFF.
25433
25434 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25435
25436 * config/s390/s390.md: Use define_c_enum for the unspec constant
25437 definitions.
25438
25439 2011-03-18 Richard Henderson <rth@redhat.com>
25440 Jakub Jelinek <jakub@redhat.com>
25441
25442 PR bootstrap/48161
25443 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
25444 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
25445
25446 2011-03-17 Anatoly Sokolov <aesok@post.ru>
25447
25448 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
25449 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
25450 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
25451 Change return type to bool.
25452 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
25453
25454 2011-03-17 Jakub Jelinek <jakub@redhat.com>
25455
25456 PR debug/48163
25457 * var-tracking.c (prepare_call_arguments): If CALL target
25458 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
25459 pc instead of looking it up using cselib_lookup and use
25460 Pmode for it if x has VOIDmode.
25461 * dwarf2out.c (gen_subprogram_die): If also both first and
25462 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
25463
25464 PR debug/48163
25465 * function.c (assign_parms): For data.passed_pointer parms
25466 use MEM of data.entry_parm instead of data.entry_parm itself
25467 as DECL_INCOMING_RTL.
25468 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
25469 also when passed and declared mode is the same, DECL_RTL
25470 is a MEM with pseudo as address and DECL_INCOMING_RTL is
25471 a MEM too.
25472
25473 2011-03-16 Jeff Law <law@redhat.com>
25474
25475 PR rtl-optimization/37273
25476 * ira-costs.c (scan_one_insn): Detect constants living in memory and
25477 handle them like argument loads from stack slots. Do not double
25478 count memory for memory constants and argument loads from stack slots.
25479
25480 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
25481
25482 PR debug/48160
25483 * var-tracking.c (prepare_call_arguments): Check SUBREG.
25484
25485 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
25486
25487 PR target/48171
25488 * config/i386/i386.opt: Add Save to -mavx and -mfma.
25489
25490 2011-03-17 Jakub Jelinek <jakub@redhat.com>
25491
25492 PR bootstrap/48153
25493 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
25494 if dwarf_strict.
25495 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
25496 Clear call_arg_locations and call_arg_loc_last always.
25497
25498 PR middle-end/48152
25499 * var-tracking.c (prepare_call_arguments): If argument needs to be
25500 passed by reference, adjust argtype and mode.
25501
25502 2011-03-17 Richard Guenther <rguenther@suse.de>
25503
25504 PR middle-end/48134
25505 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
25506 a value make sure to fold the statement.
25507
25508 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
25509
25510 PR target/43872
25511 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
25512 return condition with !cfun->calls_alloca.
25513
25514 2011-03-17 Richard Guenther <rguenther@suse.de>
25515
25516 PR bootstrap/48148
25517 * lto-cgraph.c (input_overwrite_node): Clear the abstract
25518 origin for decls in other ltrans units.
25519 (input_varpool_node): Likewise.
25520
25521 2011-03-17 Richard Guenther <rguenther@suse.de>
25522
25523 PR middle-end/48165
25524 * tree-object-size.c (compute_object_offset): Properly return
25525 the offset operand of MEM_REFs as sizetype.
25526
25527 2011-03-17 Jakub Jelinek <jakub@redhat.com>
25528
25529 PR rtl-optimization/48141
25530 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
25531 * dse.c: Include params.h.
25532 (active_local_stores_len): New variable.
25533 (add_wild_read, dse_step1): Clear it when setting active_local_stores
25534 to NULL.
25535 (record_store, check_mem_read_rtx): Decrease it when removing
25536 from the chain.
25537 (scan_insn): Likewise. Increase it when adding to chain, if it
25538 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
25539 set active_local_stores to NULL before the addition.
25540 * Makefile.in (dse.o): Depend on $(PARAMS_H).
25541
25542 PR rtl-optimization/48141
25543 * dse.c (record_store): If no positions are needed in an insn
25544 that cannot be deleted, at least unchain it from active_local_stores.
25545
25546 2011-03-16 Dodji Seketeli <dodji@redhat.com>
25547
25548 PR debug/47510
25549 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
25550 (lookup_type_die_strip_naming_typedef): ... here.
25551 (get_context_die): Use it.
25552 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
25553 the anonymous struct named by the naming typedef.
25554
25555 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
25556
25557 PR target/48154
25558 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
25559 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
25560
25561 2011-03-16 Jeff Law <law@redhat.com>
25562
25563 * tree-vrp.c (identify_jump_threads): Slightly simplify type
25564 check for operands of conditional. Allow type to be a pointer.
25565
25566 2011-03-16 Richard Guenther <rguenther@suse.de>
25567
25568 PR tree-optimization/48149
25569 * fold-const.c (fold_binary_loc): Fold
25570 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
25571
25572 2011-03-16 Richard Guenther <rguenther@suse.de>
25573
25574 PR tree-optimization/26134
25575 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
25576 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
25577 (non_rewritable_mem_ref_base): Handle complex type component
25578 accesses, constrain offsets for vector and complex extracts
25579 more properly.
25580
25581 2011-03-16 Richard Guenther <rguenther@suse.de>
25582
25583 PR tree-optimization/48146
25584 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
25585 operands avoiding the need for renaming.
25586
25587 2011-03-16 Richard Guenther <rguenther@suse.de>
25588
25589 * gimple-fold.c (maybe_fold_reference): Open-code relevant
25590 constant folding. Move MEM_REF canonicalization first.
25591 Rely on fold_const_aggregate_ref for initializer folding.
25592 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
25593
25594 2011-03-16 Jakub Jelinek <jakub@redhat.com>
25595
25596 PR middle-end/48136
25597 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
25598 arg0/arg1 or their arguments are always fold converted to matching
25599 types.
25600
25601 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
25602 to nargs.
25603
25604 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25605
25606 PR lto/46944
25607 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
25608 Handle in-tree gold.
25609 (ld_vers): Extract binutils version for gold.
25610 (gcc_cv_ld_hidden): Handle gold here.
25611 (gcc_cv_lto_plugin): Determine level of linker plugin support.
25612 * configure: Regenerate.
25613 * config.in: Regenerate.
25614 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
25615 -fuse-linker-plugin otherwise.
25616 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
25617 (LINK_COMMAND_SPEC): Use it.
25618 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
25619
25620 2011-03-16 Jakub Jelinek <jakub@redhat.com>
25621
25622 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
25623 * calls.c: Remove debug.h include.
25624 (emit_call_1): Don't call virtual_call_token debug hook.
25625 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
25626 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
25627 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
25628 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
25629 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
25630 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
25631 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
25632 dwarf2out_virtual_call): Remove.
25633 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
25634 copy_call_info and virtual_call hooks.
25635 (dwarf2out_init): Don't initialize vcall_insn_table,
25636 debug_dcall_section and debug_vcall_section.
25637 (prune_unused_types): Don't mark nodes from dcall_table.
25638 (dwarf2out_finish): Don't output dcall or vcall tables.
25639 * final.c (final_scan_insn): Don't call direct_call or
25640 virtual_call debug hooks.
25641 * debug.h (struct gcc_debug_hooks): Remove direct_call,
25642 virtual_call_token, copy_call_info and virtual_call hooks.
25643 (debug_nothing_uid): Remove prototype.
25644 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
25645 copy_call_info and virtual_call hooks.
25646 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
25647 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
25648 * debug.c (do_nothing_debug_hooks): Likewise.
25649 (debug_nothing_uid): Remove.
25650 * doc/invoke.texi (-fenable-icf-debug): Remove.
25651 * common.opt (-fenable-icf-debug): Likewise.
25652
25653 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
25654 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
25655 call's MEM. Handle functions returning aggregate through a hidden
25656 first pointer. For virtual calls add clobbered pc to call arguments
25657 chain.
25658 * dwarf2out.c (gen_subprogram_die): Emit
25659 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
25660 can't be emitted.
25661
25662 PR debug/45882
25663 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
25664 * rtl.h (ENTRY_VALUE_EXP): Define.
25665 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
25666 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
25667 * print-rtl.c (print_rtx): Likewise.
25668 * gengtype.c (adjust_field_rtx_def): Likewise.
25669 * var-tracking.c (vt_add_function_parameter): Adjust
25670 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
25671 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
25672 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
25673 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
25674 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
25675
25676 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
25677 Call var_location debug hook even on CALL_INSNs.
25678 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
25679 * rtl.def (ENTRY_VALUE): New.
25680 * dwarf2out.c: Include cfglayout.h.
25681 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
25682 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
25683 (struct call_arg_loc_node): New type.
25684 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
25685 tail_call_site_count): New variables.
25686 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
25687 DW_TAG_GNU_call_site_parameter.
25688 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
25689 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
25690 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
25691 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
25692 and DW_AT_GNU_all_source_call_sites.
25693 (mem_loc_descriptor): Handle ENTRY_VALUE.
25694 (add_src_coords_attributes): Don't add enything if
25695 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
25696 (dwarf2out_abstract_function): Save and clear call_arg_location,
25697 call_site_count and tail_call_site_count around dwarf2out_decl call.
25698 (gen_call_site_die): New function.
25699 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
25700 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
25701 (dwarf2out_function_decl): Clear call_arg_locations,
25702 call_arg_loc_last, set call_site_count and tail_call_site_count
25703 to -1 and free block_map.
25704 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
25705 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
25706 followed by any real instructions.
25707 (dwarf2out_begin_function): Set call_site_count and
25708 tail_call_site_count to 0.
25709 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
25710 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
25711 attempt to force a DIE for it and worst case remove the attribute.
25712 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
25713 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
25714 the decl itself.
25715 * var-tracking.c: Include tm_p.h.
25716 (vt_stack_adjustments): For calls call note_register_arguments.
25717 (argument_reg_set): New variable.
25718 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
25719 ensure the VALUE is resolved.
25720 (call_arguments): New variable.
25721 (prepare_call_arguments): New function.
25722 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
25723 (struct expand_loc_callback_data): Add ignore_cur_loc field.
25724 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
25725 always use the best expression.
25726 (vt_expand_loc): Add ignore_cur_loc argument.
25727 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
25728 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
25729 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
25730 note for all calls.
25731 (vt_add_function_parameter): Use cselib_lookup_from_insn.
25732 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
25733 argument. Don't call cselib_preserve_only_values and
25734 cselib_reset_table.
25735 (note_register_arguments): New function.
25736 (vt_initialize): Compute argument_reg_set. Call
25737 vt_add_function_parameters before processing basic blocks instead of
25738 afterwards. For calls call prepare_call_arguments before calling
25739 cselib_process_insn.
25740 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
25741 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
25742 (var-tracking.o): Depend on $(TM_P_H).
25743 * cfglayout.h (insn_scope): New prototype.
25744 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
25745 * cfglayout.c (insn_scope): No longer static.
25746 * insn-notes.def (CALL_ARG_LOCATION): New.
25747 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
25748 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
25749 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
25750 nothing for DECL_EXTERNAL BLOCK_VARS.
25751
25752 2011-03-16 Alan Modra <amodra@gmail.com>
25753
25754 PR target/45844
25755 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
25756 create invalid offset address for vsx splat insn.
25757 * config/rs6000/predicates.md (splat_input_operand): New.
25758 * config/rs6000/vsx.md (vsx_splat_*): Use it.
25759
25760 2011-03-15 Xinliang David Li <davidxl@google.com>
25761
25762 PR c/47837
25763 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
25764 (normalize_preds): New function.
25765 (is_use_properly_guarded): Normalize def predicates.
25766
25767 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
25768
25769 PR target/46788
25770 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
25771 in the output template.
25772
25773 2011-03-15 Richard Guenther <rguenther@suse.de>
25774
25775 PR middle-end/47650
25776 * tree-pretty-print.c (dump_function_declaration): Properly
25777 dump unprototyped and varargs function types.
25778
25779 2011-03-15 Richard Guenther <rguenther@suse.de>
25780
25781 PR tree-optimization/13954
25782 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
25783 and friends.
25784
25785 2011-03-15 Richard Guenther <rguenther@suse.de>
25786
25787 PR tree-optimization/48037
25788 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
25789 selects into BIT_FIELD_REFs.
25790 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
25791 vector select.
25792
25793 2011-03-15 Jakub Jelinek <jakub@redhat.com>
25794
25795 PR tree-optimization/48129
25796 * builtins.c (fold_builtin_snprintf): Convert to type of
25797 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
25798 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
25799
25800 2011-03-15 Richard Guenther <rguenther@suse.de>
25801
25802 PR tree-optimization/41490
25803 * tree-ssa-dce.c (propagate_necessity): Handle returns without
25804 value but with VUSE.
25805 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
25806 return statements.
25807 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
25808 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
25809 * tree-tailcall.c (find_tail_calls): Ignore returns.
25810
25811 2011-03-15 Richard Guenther <rguenther@suse.de>
25812
25813 PR middle-end/48031
25814 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
25815 or variable-indexed array accesses when in gimple form.
25816
25817 2011-03-15 Richard Guenther <rguenther@suse.de>
25818
25819 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
25820
25821 2011-03-15 Alan Modra <amodra@gmail.com>
25822
25823 PR target/48032
25824 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
25825 presume symbol_refs without a symbol_ref_decl are suitably
25826 aligned, nor other trees we may see here. Handle anchor symbols.
25827 (legitimate_constant_pool_address_p): Comment. Add mode param.
25828 Check cmodel=medium addresses. Adjust all calls.
25829 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
25830 creating cmodel=medium optimized access to locals.
25831 * config/rs6000/constraints.md (R): Pass QImode to
25832 legitimate_constant_pool_address_p.
25833 * config/rs6000/predicates.md (input_operand): Pass mode to
25834 legitimate_constant_pool_address_p.
25835 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
25836 Update prototype.
25837
25838 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
25839
25840 PR target/48053
25841 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
25842 64-bit constants being loaded into registers other than GPRs such
25843 as loading 0 into a VSX register.
25844
25845 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25846
25847 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
25848
25849 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25850
25851 PR middle-end/47917
25852 * builtins.c (fold_builtin_snprintf): New function.
25853 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
25854 (fold_builtin_4): Likewise.
25855
25856 PR middle-end/38878
25857 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
25858 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
25859 and C - X == X also strip nops from +/-/p+ operand.
25860 When optimizing -X == C, fold C to arg0's type.
25861
25862 PR debug/47946
25863 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
25864 emit it as add_AT_int instead of add_AT_unsigned.
25865
25866 2011-03-14 Tom Tromey <tromey@redhat.com>
25867
25868 * unwind-dw2.c: Include sys/sdt.h if it exists.
25869 (_Unwind_DebugHook): Use STAP_PROBE2.
25870 * config.in, configure: Rebuild.
25871 * configure.ac: Check for sys/sdt.h.
25872
25873 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
25874
25875 * config/i386/i386.md (ROUND_FLOOR): New constant.
25876 (ROUND_CEIL): Ditto.
25877 (ROUND_TRUNC): Ditto.
25878 (ROUND_MXCSR): Ditto.
25879 (ROUND_NO_EXC): Ditto.
25880 (rint<mode>2): Use new defines instead of numerical constants.
25881 (floor<mode>2): Ditto.
25882 (ceil<mode>2): Ditto.
25883 (btrunc<mode>2): Ditto.
25884 * config/i386/i386-builtin-types.def: Define ROUND function type
25885 aliases.
25886 * config/i386/i386.c (enum ix86_builtins): Add
25887 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
25888 (struct builtin_description): Add
25889 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
25890 (ix86_expand_sse_round): New static function.
25891 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
25892 function types.
25893 (ix86_builtin_vectorized_function): Handle
25894 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
25895
25896 2011-03-14 Tom Tromey <tromey@redhat.com>
25897
25898 * c-parser.c (c_parser_asm_string_literal): Clear
25899 warn_overlength_strings.
25900
25901 2011-03-14 Tom Tromey <tromey@redhat.com>
25902
25903 * c-parser.c (disable_extension_diagnostics): Save
25904 warn_overlength_strings.
25905 (restore_extension_diagnostics): Restore warn_overlength_strings.
25906
25907 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25908
25909 * BASE-VER: Change to 4.7.0.
25910
25911 2011-03-14 Richard Guenther <rguenther@suse.de>
25912
25913 PR middle-end/48098
25914 * tree.c (build_vector_from_val): Adjust assert to requirements
25915 and reality.
25916
25917 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25918
25919 PR bootstrap/48102
25920 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
25921
25922 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
25923
25924 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
25925 terms of target_flags_explicit. Adjust copyright year.
25926
25927 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
25928 * config/rs6000/t-freebsd: New file. Add override for
25929 LIB2FUNCS_EXTRA.
25930
25931 2011-03-13 Chris Demetriou <cgd@google.com>
25932
25933 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
25934 (-fno-diagnostics-show-option): this, to reflect current default.
25935 (-Werror=): Update text about -fno-diagnostics-show-option.
25936
25937 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
25938
25939 PR target/48053
25940 * config/rs6000/predicates.md (easy_vector_constant_add_self,
25941 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
25942 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
25943 mode is not V2DImode or V2DFmode.
25944 (vspltis_constant): Do not handle V2DImode and V2DFmode.
25945 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
25946 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
25947 registers to 0.
25948 (movdi_internal64): Likewise.
25949
25950 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
25951
25952 PR tree-optimization/47127
25953 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
25954 parameter.
25955 (set_cloog_options): Same.
25956 (scop_to_clast): Same.
25957 (print_clast_stmt): Do not call cloog_state_malloc and
25958 cloog_state_free.
25959 (print_generated_program): Same.
25960 (gloog): Same.
25961 * graphite-clast-to-gimple.h (cloog_state): Declared.
25962 (scop_to_clast): Adjust declaration.
25963 * graphite.c (cloog_state): Defined here.
25964 (graphite_initialize): Call cloog_state_malloc.
25965 (graphite_finalize): Call cloog_state_free.
25966
25967 2011-03-11 Jason Merrill <jason@redhat.com>
25968
25969 * attribs.c (lookup_attribute_spec): Take const_tree.
25970 * tree.h: Adjust.
25971
25972 2011-03-11 Joseph Myers <joseph@codesourcery.com>
25973
25974 * config/sparc/sparc.c (sparc_option_override): Use
25975 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
25976
25977 2011-03-11 Richard Guenther <rguenther@suse.de>
25978
25979 PR tree-optimization/48067
25980 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
25981 multiplication result will be only used once on the target
25982 stmt.
25983
25984 2011-03-11 Richard Guenther <rguenther@suse.de>
25985
25986 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
25987
25988 2011-03-11 Richard Guenther <rguenther@suse.de>
25989
25990 PR lto/48073
25991 * tree.c (find_decls_types_r): Do not walk types only reachable
25992 from IDENTIFIER_NODEs.
25993
25994 2011-03-11 Jakub Jelinek <jakub@redhat.com>
25995
25996 PR middle-end/48044
25997 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
25998 all vnode->force_output nodes as needed.
25999
26000 2011-03-11 Jason Merrill <jason@redhat.com>
26001
26002 PR c++/48069
26003 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
26004 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
26005
26006 2011-03-11 Martin Jambor <mjambor@suse.cz>
26007
26008 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
26009 cgraph_node.
26010
26011 2011-03-11 Jakub Jelinek <jakub@redhat.com>
26012
26013 PR tree-optimization/48063
26014 * ipa-inline.c (cgraph_decide_inlining): Don't try to
26015 inline functions called once if !tree_can_inline_p (node->callers).
26016
26017 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
26018
26019 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
26020 extra_objs.
26021 * config/score/score3.c: Delete.
26022 * config/score/score3.h: Delete.
26023 * config/score/mul-div.S: Delete.
26024 * config/score/sfp-machine.h: Add new file.
26025 * config/score/constraints.md: Add new file.
26026 * config/score/t-score-softfp: Add new file.
26027 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
26028 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
26029 (score7_extra_constraint): Delete.
26030 (score7_option_override): Remove unused code.
26031 * config/score/score.c: Remove score3 and score5 define and code.
26032 * config/score/score.h: Remove score3 and score5 define and code.
26033 * config/score/score.md: Remove score3 template and unusual insn.
26034 * config/score/score.opt: Remove score3 and score5 options.
26035
26036 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26037
26038 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
26039 when _HPUX_SOURCE is defined.
26040 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
26041
26042 2011-03-10 Jason Merrill <jason@redhat.com>
26043
26044 PR c++/48029
26045 * stor-layout.c (layout_type): Don't set structural equality
26046 on arrays of incomplete type.
26047 * tree.c (type_hash_eq): Handle comparing them properly.
26048
26049 2011-03-10 Jakub Jelinek <jakub@redhat.com>
26050
26051 PR debug/48043
26052 * config/s390/s390.c (s390_delegitimize_address): Make sure the
26053 result mode matches original rtl mode.
26054
26055 2011-03-10 Nick Clifton <nickc@redhat.com>
26056
26057 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
26058 (andsi3, andsi3_flags): Fix timings for three operand alternative.
26059
26060 2011-03-09 Jakub Jelinek <jakub@redhat.com>
26061
26062 PR rtl-optimization/47866
26063 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
26064 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
26065 if target wasn't scalar.
26066 * function.c (assign_stack_temp_for_type): Assert that neither
26067 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
26068 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
26069 macro.
26070 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
26071
26072 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26073
26074 * config/s390/s390-protos.h (s390_label_align): New prototype.
26075 * config/s390/s390.c (s390_label_align): New function.
26076 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
26077
26078 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
26079
26080 PR target/47755
26081 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
26082 V2DI/V2DF constants. Only all 0's or all 1's are easy.
26083 (output_vec_const_move): Ditto.
26084
26085 2011-03-08 Anatoly Sokolov <aesok@post.ru>
26086
26087 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
26088 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
26089 * config/mips/mips.c (mips_preferred_reload_class): Make static.
26090 Change 'rclass' argument and result type to reg_class_t.
26091 (TARGET_PREFERRED_RELOAD_CLASS): Define.
26092
26093 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
26094
26095 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
26096 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
26097 (TARGET_MEMORY_MOVE_COST): Define.
26098 (avr_register_move_cost, avr_memory_move_cost): New Functions.
26099
26100 2011-03-08 Jakub Jelinek <jakub@redhat.com>
26101
26102 PR debug/47881
26103 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
26104 removed anything.
26105
26106 PR tree-optimization/48022
26107 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
26108 for EQ/NE_EXPR.
26109
26110 2011-03-07 Jakub Jelinek <jakub@redhat.com>
26111
26112 PR debug/47991
26113 * var-tracking.c (find_use_val): Return NULL for
26114 cui->sets && cui->store_p BLKmode MEMs.
26115
26116 2011-03-07 Anatoly Sokolov <aesok@post.ru>
26117
26118 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
26119 Remove.
26120 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
26121 xstormy16_print_operand_address): Remove.
26122 * config/stormy16/stormy16.c (xstormy16_print_operand,
26123 xstormy16_print_operand_address): Make static.
26124 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
26125
26126 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
26127
26128 PR target/47862
26129 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
26130 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
26131 before definition.
26132
26133 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
26134
26135 PR bootstrap/48000
26136 * cfgloopmanip.c (fix_bb_placements): Return immediately
26137 if FROM is BASE_LOOP's header.
26138
26139 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
26140
26141 * gimplify.c (gimplify_function_tree): Fix building calls
26142 to __builtin_return_address.
26143
26144 2011-03-07 Alan Modra <amodra@gmail.com>
26145
26146 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
26147 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
26148 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
26149 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
26150 return_mode args.
26151 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
26152 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
26153 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
26154 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
26155 * config/rs6000/rs6000.c
26156 (rs6000_elf_end_indicate_exec_stack): Rename to..
26157 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
26158 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
26159 (rs6000_file_start): ..here.
26160 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
26161 file scope variables.
26162 (call_ABI_of_interest): New function.
26163 (init_cumulative_args): Set above vars when function return value
26164 is a float, vector, or small struct.
26165 (rs6000_function_arg_advance_1): Likewise for function args.
26166 (rs6000_va_start): Set rs6000_passes_float if variable arg function
26167 references float args.
26168
26169 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
26170
26171 * doc/cfg.texi: Remove "See" before @ref.
26172 * doc/invoke.texi: Likewise.
26173
26174 2011-03-05 Jason Merrill <jason@redhat.com>
26175
26176 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
26177
26178 2011-03-05 Anthony Green <green@moxielogic.com>
26179
26180 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
26181
26182 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
26183
26184 PR rtl-optimization/47899
26185 * cfgloopmanip.c (fix_bb_placements): Fix first argument
26186 to flow_loop_nested_p when moving the loop upward.
26187
26188 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
26189
26190 PR target/47719
26191 * arm.md (movhi_insn_arch4): Accept any immediate constant.
26192
26193 2011-03-05 Jakub Jelinek <jakub@redhat.com>
26194
26195 PR tree-optimization/47967
26196 * ipa-cp.c (build_const_val): Return NULL instead of creating
26197 VIEW_CONVERT_EXPR for mismatching sizes.
26198 (ipcp_create_replace_map): Return NULL if build_const_val failed.
26199 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
26200 give up on versioning.
26201
26202 2011-03-05 Alan Modra <amodra@gmail.com>
26203
26204 PR target/47986
26205 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
26206 full cmodel medium/large lo_sum + high addresses.
26207
26208 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26209
26210 * config/s390/s390.c (s390_decompose_address): Reject non-literal
26211 pool references in UNSPEC_LTREL_OFFSET.
26212
26213 2011-03-04 Jan Hubicka <jh@suse.cz>
26214
26215 PR lto/47497
26216 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
26217 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
26218 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
26219 Add node pointers.
26220 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
26221 cgraph_add_thunk): Add node pointers.
26222 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
26223 associated to right node.
26224 (input_node): Update use of cgraph_same_body_alias
26225 and cgraph_add_thunk.
26226
26227 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
26228
26229 * config/i386/i386.opt (mprefer-avx128): New flag.
26230 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
26231 modes when the flag -mprefer-avx128 is on.
26232
26233 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
26234
26235 * dwarf2out.c (compare_loc_operands): Fix address handling.
26236
26237 2011-03-04 Alan Modra <amodra@gmail.com>
26238
26239 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
26240
26241 2011-03-04 Richard Guenther <rguenther@suse.de>
26242
26243 PR middle-end/47968
26244 * expmed.c (extract_bit_field_1): Prefer vector modes that
26245 vec_extract patterns can handle.
26246
26247 2011-03-04 Richard Guenther <rguenther@suse.de>
26248
26249 PR middle-end/47975
26250 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
26251
26252 2011-03-04 Richard Henderson <rth@redhat.com>
26253
26254 * explow.c (emit_stack_save): Remove 'after' parameter.
26255 (emit_stack_restore): Likewise.
26256 * expr.h: Update to match.
26257 * builtins.c, calls.c, stmt.c: Likewise.
26258 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
26259 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
26260 * function.c (expand_function_end): Insert the emit_stack_save
26261 sequence before parm_birth_insn instead of after.
26262
26263 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
26264
26265 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
26266 (ssse3_pmaddubsw128): Ditto.
26267 (ssse3_pmaddubsw): Ditto.
26268
26269 2011-03-03 Steve Ellcey <sje@cup.hp.com>
26270
26271 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
26272
26273 2011-03-03 Jakub Jelinek <jakub@redhat.com>
26274
26275 PR c/47963
26276 * gimplify.c (omp_add_variable): Only call omp_notice_variable
26277 on TYPE_SIZE_UNIT if it is a DECL.
26278
26279 PR debug/47283
26280 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
26281 first operand is not is_gimple_mem_ref_addr, try to fold it.
26282 If the operand still isn't is_gimple_mem_ref_addr, clear
26283 MEM_EXPR on op0.
26284
26285 2011-03-03 Richard Guenther <rguenther@suse.de>
26286
26287 PR middle-end/47283
26288 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
26289 match comment.
26290 (refs_may_alias_p_1): For release branches return true if
26291 we are confused by our input.
26292
26293 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26294
26295 * config/s390/s390.c (s390_function_value): Rename to ...
26296 (s390_function_and_libcall_value): ... this.
26297 (s390_function_value): New function.
26298 (s390_libcall_value): New function.
26299 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
26300 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
26301 target macro definitions.
26302 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
26303
26304 2011-03-02 Joseph Myers <joseph@codesourcery.com>
26305
26306 * config/i386/freebsd64.h (CC1_SPEC): Define.
26307 * config/i386/linux64.h (CC1_SPEC): Define.
26308 * config/i386/x86-64.h (CC1_SPEC): Don't define.
26309
26310 2011-03-02 Anatoly Sokolov <aesok@post.ru>
26311
26312 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
26313 Remove.
26314 * config/stormy16/stormy16.c: Include reload.h.
26315 (xstormy16_memory_move_cost): New function.
26316 (TARGET_MEMORY_MOVE_COST): Define.
26317
26318 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
26319
26320 PR rtl-optimization/47925
26321 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
26322 with side effects. Remove the more-specific check for volatile asms.
26323
26324 2011-03-02 Alan Modra <amodra@gmail.com>
26325
26326 PR target/47935
26327 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
26328 toc relative addresses for valid offsets.
26329
26330 2011-03-01 Richard Guenther <rguenther@suse.de>
26331
26332 PR tree-optimization/47890
26333 * tree-vect-loop.c (get_initial_def_for_induction): Set
26334 related stmt properly.
26335
26336 2011-03-01 Richard Guenther <rguenther@suse.de>
26337
26338 PR lto/47924
26339 * lto-streamer.c (lto_record_common_node): Also register
26340 the canonical type.
26341
26342 2011-03-01 Richard Guenther <rguenther@suse.de>
26343
26344 PR lto/46911
26345 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
26346 Do not stream DECL_ABSTRACT_ORIGIN.
26347 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
26348 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
26349 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
26350 Do not stream DECL_ABSTRACT_ORIGIN.
26351 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
26352 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
26353
26354 2011-02-28 Anatoly Sokolov <aesok@post.ru>
26355
26356 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
26357 FUNCTION_VALUE_REGNO_P): Remove.
26358 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
26359 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
26360 Add 'outgoing' argument.
26361 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
26362 function.
26363 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
26364 TARGET_FUNCTION_VALUE_REGNO_P): Define.
26365
26366 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
26367
26368 PR debug/28047
26369 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
26370 (lookup_filename): Likewise.
26371 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
26372
26373 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
26374 Jakub Jelinek <jakub@redhat.com>
26375
26376 PR middle-end/47893
26377 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
26378 (assign_stack_local_1): Change last argument type to int.
26379 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
26380 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
26381 don't record padding space into frame_space_list nor use those areas.
26382 (assign_stack_local): Adjust caller.
26383 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
26384 of assign_stack_local, pass 0 as last argument.
26385 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
26386 callers.
26387
26388 2011-02-28 Jakub Jelinek <jakub@redhat.com>
26389
26390 PR debug/47283
26391 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
26392 Use target address_mode and pointer_mode hooks instead of hardcoded
26393 Pmode and ptr_mode. Handle some simple cases of extending if
26394 POINTERS_EXTEND_UNSIGNED < 0.
26395 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
26396 Call convert_debug_memory_address.
26397 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
26398 convert_debug_memory_address.
26399
26400 PR middle-end/46790
26401 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
26402 * configure: Regenerated.
26403 * config.in: Regenerated.
26404 * varasm.c (default_function_section): Return NULL
26405 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
26406
26407 2011-02-28 Martin Jambor <mjambor@suse.cz>
26408
26409 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
26410 the description to match the printed values.
26411
26412 2011-02-28 Richard Guenther <rguenther@suse.de>
26413
26414 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
26415 of the copied scope tree.
26416
26417 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26418
26419 * doc/extend.texi (Function Attributes): Avoid deeply (and
26420 wrongly) nested tables.
26421
26422 2011-02-27 Jakub Jelinek <jakub@redhat.com>
26423
26424 PR middle-end/47903
26425 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
26426 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
26427 r isn't op0 nor op1.
26428
26429 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
26430
26431 * config/avr/avr.md: Remove magic comment for emacs.
26432
26433 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
26434
26435 PR target/45261
26436 * config/avr/avr.c (avr_option_override): Use error on bad options.
26437 (avr_help): New function.
26438 (TARGET_HELP): Define.
26439
26440 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
26441
26442 PR target/42240
26443 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
26444 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
26445
26446 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
26447
26448 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
26449 (ARM Options): Ditto.
26450 (i386 and x86-64 Options): Ditto.
26451 (RX Options): Ditto.
26452 (SPARC Options): Ditto.
26453
26454 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
26455
26456 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
26457 FreeBSD 6 and later. Generally use cpu generic.
26458
26459 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
26460
26461 * doc/cpp.texi: Update copyright years.
26462
26463 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
26464
26465 PR target/46898
26466 * config/lm32/lm32.md (ashrsi3): Added needed variable.
26467
26468 2011-02-25 Jon Beniston <jon@beniston.com>
26469
26470 PR target/46898
26471 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
26472 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
26473 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
26474 (lm32_block_move_inline): Add type cast to remove warning.
26475 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
26476 (gen_int_relational): Move declarations to start of function.
26477
26478 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
26479
26480 PR tree-optimization/45470
26481 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
26482 can throw internally only.
26483 * tree-vect-stmts.c (vectorizable_call): Likewise.
26484
26485 2011-02-24 Anatoly Sokolov <aesok@post.ru>
26486
26487 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
26488 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
26489 * config/stormy16/stormy16-protos.h
26490 (xstormy16_preferred_reload_class): Remove.
26491 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
26492 static. Change 'rclass' argument and return type to reg_class_t.
26493 (TARGET_PREFERRED_RELOAD_CLASS,
26494 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
26495
26496 2011-02-24 Richard Guenther <rguenther@suse.de>
26497
26498 * lto-streamer-in.c (input_bb): Do not find referenced vars
26499 in debug statements.
26500
26501 2011-02-23 Jason Merrill <jason@redhat.com>
26502
26503 * common.opt (fabi-version): Document v5 and v6.
26504
26505 2011-02-23 Richard Guenther <rguenther@suse.de>
26506
26507 PR tree-optimization/47849
26508 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
26509
26510 2011-02-23 Jie Zhang <jie@codesourcery.com>
26511
26512 * opts-common.c (decode_cmdline_option): Print empty string
26513 argument as "" in decoded->orig_option_with_args_text.
26514 * gcc.c (execute): Print empty string argument as ""
26515 in the verbose output.
26516 (do_spec_1): Keep empty string argument.
26517
26518 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
26519
26520 * config.gcc: Declare score-* and crx-* obsolete.
26521
26522 2011-02-23 Jie Zhang <jie@codesourcery.com>
26523
26524 PR rtl-optimization/47763
26525 * web.c (web_main): Ignore naked clobber when replacing register.
26526
26527 2011-02-22 Anatoly Sokolov <aesok@post.ru>
26528
26529 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
26530 Remove.
26531
26532 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
26533
26534 PR doc/47848
26535 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
26536
26537 2011-02-22 Mike Stump <mikestump@comcast.net>
26538
26539 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
26540 assembler.
26541 * configure: Regenerate.
26542
26543 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
26544
26545 PR rtl-optimization/46002
26546 * ira-color.c (update_copy_costs): Change class intersection
26547 test to reg_class_contents[] test of 'hard_regno'.
26548
26549 2011-02-21 Joseph Myers <joseph@codesourcery.com>
26550
26551 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
26552 than Driver option.
26553 * config/hpux11.opt (mt): Likewise.
26554 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
26555 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
26556 * config/vax/elf.opt (mno-asm-pic): Likewise.
26557 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
26558
26559 2011-02-21 Mike Stump <mikestump@comcast.net>
26560
26561 PR target/47822
26562 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
26563 tree so we can get save the type.
26564 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
26565 for CFString instead of trying to use past the end of the builtins.
26566 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
26567 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
26568 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
26569 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
26570 Rename to darwin_builtin_cfstring.
26571 (darwin_init_cfstring_builtins): Return the built type.
26572
26573 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
26574
26575 PR target/47840
26576 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
26577 (_mm256_insert_epi64): Use _mm_insert_epi64.
26578
26579 2011-02-21 Anatoly Sokolov <aesok@post.ru>
26580
26581 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26582 * config/stormy16/stormy16-protos.h
26583 (xstormy16_mode_dependent_address_p): Remove.
26584 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
26585 Make static. Change return type to bool. Change argument type to
26586 const_rtx. Remove dead code.
26587 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26588
26589 2011-02-21 Richard Guenther <rguenther@suse.de>
26590
26591 PR lto/47820
26592 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
26593 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
26594 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
26595 TUs context.
26596 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
26597 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
26598
26599 2011-02-20 Richard Guenther <rguenther@suse.de>
26600
26601 PR lto/47822
26602 * tree.c (free_lang_data_in_decl): Clean builtins from
26603 the TU decl BLOCK_VARS.
26604
26605 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
26606
26607 PR debug/47620
26608 PR debug/47630
26609 * haifa-sched.c (fix_tick_ready): Skip tick computation
26610 for debug insns.
26611
26612 2011-02-19 Richard Guenther <rguenther@suse.de>
26613
26614 PR lto/47647
26615 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
26616 Remove lazy BLOCK_VARS streaming.
26617 (lto_input_ts_block_tree_pointers): Likewise.
26618 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
26619
26620 2011-02-19 Joseph Myers <joseph@codesourcery.com>
26621
26622 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
26623
26624 2011-02-19 Joseph Myers <joseph@codesourcery.com>
26625
26626 * config/i386/biarch32.h, config/i386/mach.h,
26627 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
26628
26629 2011-02-19 Jakub Jelinek <jakub@redhat.com>
26630
26631 PR target/47800
26632 * config/i386/i386.md (peephole2 for shift and plus): Use
26633 operands[1] original mode in the first insn.
26634
26635 2011-02-18 Mike Stump <mikestump@comcast.net>
26636
26637 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
26638
26639 2011-02-18 Jan Hubicka <jh@suse.cz>
26640
26641 PR middle-end/47788
26642 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
26643 to zero when the function is not inlinable at all.
26644
26645 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26646
26647 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
26648 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
26649 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
26650 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
26651 * config/pa/t-pa64: Likewise.
26652 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
26653
26654 2011-02-18 Jakub Jelinek <jakub@redhat.com>
26655
26656 PR driver/47787
26657 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
26658
26659 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26660
26661 PR target/47792
26662 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
26663
26664 2011-02-18 Anatoly Sokolov <aesok@post.ru>
26665
26666 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
26667 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
26668 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
26669 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
26670 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
26671 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
26672 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
26673 m32r_load_postinc_p, m32r_store_preinc_predec_p,
26674 m32r_legitimate_address_p): New functions.
26675 * config/m32r/constraints.md (constraint "S"): Don't use
26676 STORE_PREINC_PREDEC_P.
26677 (constraint "U"): Don't use LOAD_POSTINC_P.
26678
26679 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
26680
26681 PR rtl-optimization/46178
26682 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
26683 compute ira_hard_regno_cover_class[].
26684
26685 2011-02-18 Richard Guenther <rguenther@suse.de>
26686
26687 PR lto/47798
26688 * lto-streamer.h (lto_global_var_decls): Declare.
26689 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
26690 statics for global var processing.
26691
26692 2011-02-18 Richard Guenther <rguenther@suse.de>
26693
26694 PR tree-optimization/47737
26695 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
26696 edge dominance check.
26697
26698 2011-02-18 Jakub Jelinek <jakub@redhat.com>
26699
26700 PR debug/47780
26701 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
26702 avoid invalid rtx sharing.
26703
26704 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
26705
26706 * doc/cpp.texi (Obsolete Features): Add background on the
26707 origin of assertions.
26708
26709 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
26710
26711 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
26712 objc_abi == 2.
26713 * config/darwin.c (output_objc_section_asm_op): Added support for
26714 ABI v1 and v2.
26715 (is_objc_metadata): New.
26716 (darwin_objc2_section): New.
26717 (darwin_objc1_section): New.
26718 (machopic_select_section): Added support for ABI v1 and v2.
26719 (darwin_emit_objc_zeroed): New.
26720 (darwin_output_aligned_bss): Detect objc metadata and treat it
26721 appropriately.
26722 (darwin_asm_output_aligned_decl_common): Same.
26723 (darwin_asm_output_aligned_decl_local): Same.
26724 * config/darwin-sections.def: Updated for ABI v1 and v2.
26725 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
26726 compiling Objective-C code for the NeXT runtime, default to using
26727 ABI version 0 for 32-bit, and version 2 for 64-bit.
26728
26729 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26730
26731 * common.opt (optimize_fast): New Variable.
26732 * opts.c (default_options_optimization): Use opts->x_optimize_fast
26733 instead of local variable ofast.
26734
26735 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
26736
26737 * doc/invoke.texi (fobjc-abi-version): Documented.
26738 (fobjc-nilcheck): Documented.
26739 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
26740 version.
26741
26742 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26743
26744 PR driver/47390
26745 * common.opt (export-dynamic): New Driver option.
26746 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
26747
26748 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26749
26750 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
26751
26752 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
26753 Jan Hubicka <jh@suse.cz>
26754
26755 PR debug/47106
26756 PR debug/47402
26757 * cfgexpand.c (account_used_vars_for_block): Remove.
26758 (estimated_stack_frame_size): Use referenced vars.
26759 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
26760 that were referenced in the original function. Test src_fn
26761 rather than cfun. Drop redundant get_var_ann.
26762 (setup_one_parameter): Drop redundant get_var_ann.
26763 (declare_return_variable): Likewise.
26764 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
26765 (copy_arguments_for_versioning): Drop redundant get_var_ann.
26766 * ipa-inline.c (compute_inline_parameters): Do not compute
26767 disregard_inline_limits here.
26768 (compute_inlinable_for_current, pass_inlinable): New.
26769 (pass_inline_parameters): Require PROP_referenced_vars.
26770 * cgraphunit.c (cgraph_process_new_functions): Don't run
26771 compute_inline_parameters explicitly unless function is in SSA form.
26772 (cgraph_analyze_function): Set .disregard_inline_limits.
26773 * tree-sra.c (convert_callers): Compute inliner parameters
26774 only for functions already in SSA form.
26775
26776 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26777
26778 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
26779 -mlittle-endian-data.
26780
26781 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26782
26783 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
26784 -mno-fpu, not -fpu and -no-fpu.
26785 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
26786 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
26787
26788 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
26789
26790 PR target/43653
26791 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
26792 input reload with PLUS RTX.
26793
26794 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26795
26796 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
26797 of InverseVar(MDMX).
26798
26799 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26800
26801 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
26802 --m4-340.
26803
26804 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26805
26806 * config/mn10300/mn10300.opt (mno-crt0): New.
26807
26808 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26809
26810 * config/m68k/uclinux.opt (static-libc): New Driver option.
26811
26812 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26813
26814 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
26815
26816 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26817
26818 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
26819 %{muser-extend-enabled}.
26820
26821 2011-02-16 Richard Guenther <rguenther@suse.de>
26822
26823 PR tree-optimization/47738
26824 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
26825 the TODO from tree_predictive_commoning.
26826
26827 2011-02-15 Jeff Law <law@redhat.com>
26828
26829 Revert
26830 2011-01-25 Jeff Law <law@redhat.com>
26831
26832 PR rtl-optimization/37273
26833 * ira-costs.c (scan_one_insn): Detect constants living in memory and
26834 handle them like argument loads from stack slots. Do not double
26835 count memory for memory constants and argument loads from stack slots.
26836
26837 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
26838
26839 PR target/47755
26840 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
26841 mode for vector constants. Remove code that checks for TImode.
26842
26843 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26844
26845 PR debug/47106
26846 PR debug/47402
26847 * cgraph.h (compute_inline_parameters): Return void.
26848 * ipa-inline.c (compute_inline_parameters): Adjust.
26849
26850 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26851
26852 PR debug/47106
26853 PR debug/47402
26854 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
26855 rather than decl.
26856 * cfgexpand.c (estimated_stack_frame_size): Likewise.
26857 * ipa-inline.c (compute_inline_parameters): Adjust.
26858
26859 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26860
26861 PR debug/47106
26862 PR debug/47402
26863 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
26864 Adjust all users. Pass FN to...
26865 * tree-flow-inline.h (first_referenced_var): ... this. Add
26866 fn argument.
26867 * ipa-struct-reorg.c: Adjust.
26868 * tree-dfa.c: Adjust.
26869 * tree-into-ssa.c: Adjust.
26870 * tree-sra.c: Adjust.
26871 * tree-ssa-alias.c: Adjust.
26872 * tree-ssa-live.c: Adjust.
26873 * tree-ssa.c: Adjust.
26874 * tree-ssanames.c: Adjust.
26875 * tree-tailcall.c: Adjust.
26876
26877 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26878
26879 PR debug/47106
26880 PR debug/47402
26881 * tree-flow.h (referenced_var_lookup): Add fn parameter.
26882 Adjust all callers.
26883 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
26884 * tree-flow-inline.h: Adjust.
26885 * gimple-pretty-print.c: Adjust.
26886 * tree-into-ssa.c: Adjust.
26887 * tree-ssa.c: Adjust.
26888 * cfgexpand.c: Adjust.
26889
26890 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26891
26892 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
26893 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26894 (EXTRA_CONSTRAINT): Delete.
26895 * config/iq2000/constraints.md: New file.
26896 * config/iq2000/iq2000.md: Include it.
26897 (define_insn ""): Delete.
26898 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
26899 unsupported constraint letters from patterns.
26900 (call_value, call_value_internal1): Likewise.
26901 (call_value_multiple_internal1): Likewise.
26902
26903 2011-02-15 Nick Clifton <nickc@redhat.com>
26904
26905 * config/mn10300/mn10300.c: Include tm-constrs.h.
26906 (struct liw_data): New data structure describing an LIW candidate
26907 instruction.
26908 (extract_bundle): Use struct liw_data. Allow small integer
26909 operands for some instructions.
26910 (check_liw_constraints): Use struct liw_data. Remove swapped
26911 parameter. Add comments describing the checks. Fix bug when
26912 assigning the source of liw1 to the source of liw2.
26913 (liw_candidate): Delete. Code moved into extract_bundle.
26914 (mn10300_bundle_liw): Use struct liw_data. Check constraints
26915 before swapping.
26916 * config/mn10300/predicates.md (liw_operand): New predicate.
26917 Allows registers and small integer constants.
26918 * config/mn10300/constraints.md (O): New constraint. Accetps
26919 integers in the range -8 to +7 inclusive.
26920 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
26921 for moving a small integer into a register. Give this alternative
26922 LIW attributes.
26923 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
26924 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
26925 using the J,K,L and M constraints,
26926 (liw): Remove SI mode on second operands to allow for HI and QI
26927 mode values.
26928 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
26929 instruction.
26930
26931 2011-02-15 Richard Guenther <rguenther@suse.de>
26932
26933 PR tree-optimization/47743
26934 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
26935 for a non-type-compatible VN lookup bail out.
26936
26937 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26938
26939 * config/fr30/constraints.md: New file.
26940 * config/fr30/fr30.md: Include it.
26941 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
26942 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26943 (EXTRA_CONSTRAINT): Delete.
26944
26945 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26946
26947 * config/frv/constraints.md: New file.
26948 * config/frv/predicates.md: Include it.
26949 * config/frv/frv.c (reg_class_from_letter): Delete.
26950 (frv_option_override): Don't initialize it.
26951 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
26952 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
26953 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
26954 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
26955 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
26956 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26957 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
26958 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
26959 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
26960 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
26961 (REG_CLASS_FROM_CONSTRAINT): Delete.
26962
26963 2011-02-15 Jakub Jelinek <jakub@redhat.com>
26964
26965 PR middle-end/47581
26966 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
26967 if frame size is 0 in a leaf function.
26968
26969 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26970
26971 PR pch/14940
26972 * config/alpha/host-osf.c: New file.
26973 * config/alpha/x-osf: New file.
26974 * config.host (alpha*-dec-osf*): Use it.
26975
26976 2011-02-14 Anatoly Sokolov <aesok@post.ru>
26977
26978 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26979 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
26980 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
26981 (rx_mode_dependent_address_p): ...this. Make static. Change argument
26982 type to const_rtx.
26983 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26984
26985 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
26986
26987 * config/stormy16/constraints.md: New file.
26988 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
26989 Use satisfies_constraint_Q and satisfies_constraint_R.
26990 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
26991 Delete.
26992 (xstormy16_legitiamte_address_p): Declare.
26993 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
26994 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26995 (EXTRA_CONSTRAINT): Delete.
26996 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
26997 Un-staticize.
26998 (xstormy16_extra_constraint_p): Delete.
26999
27000 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
27001
27002 PR tree-optimization/46494
27003 * loop-unroll.c (split_edge_and_insert): Adjust comment.
27004 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
27005 (pass_rtl_loop_done): Add TODO_verify_flow.
27006 * fwprop.c (pass_rtl_fwprop): Likewise.
27007 * modulo-sched.c (pass_sms): Likewise.
27008 * tree-ssa-dom.c (pass_dominator): Likewise.
27009 * tree-ssa-loop-ch.c (pass_ch): Likewise.
27010 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
27011 (pass_tree_loop_done): Likewise.
27012 * tree-ssa-pre.c (execute_pre): Likewise.
27013 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
27014 * tree-ssa-sink.c (pass_sink_code): Likewise.
27015 * tree-vrp.c (pass_vrp): Likewise.
27016
27017 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
27018
27019 * config/v850/constraints.md: New file.
27020 * config/v850/v850.md: Include it.
27021 * config/v850/predicates.md (reg_or_0_operand): Use
27022 satisfies_constraint_G.
27023 (special_symbolref_operand): Use satisfies_constraint_K.
27024 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
27025 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
27026 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
27027 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
27028 (EXTRA_CONSTRAINT): Delete.
27029 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
27030 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
27031 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
27032
27033 2011-02-14 Anatoly Sokolov <aesok@post.ru>
27034
27035 PR target/47696
27036 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
27037 description.
27038
27039 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
27040
27041 * config/mcore/constraints.md: New file.
27042 * config/mcore/mcore.md: Include it.
27043 * config/mcore/mcore.c (reg_class_from_letter): Delete.
27044 * config/mcore/mcore.h (reg_class_from_letter): Delete.
27045 (REG_CLASS_FROM_LETTER): Delete.
27046 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
27047 insn_const_int_ok_for_constraint.
27048 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
27049 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
27050 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27051 (EXTRA_CONSTRAINT): Delete.
27052
27053 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27054
27055 PR ada/41929
27056 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
27057 (IS_SIGHANDLER): Define.
27058 (sparc64_is_sighandler): New function, split off from
27059 sparc64_fallback_frame_state.
27060 (sparc_is_sighandler): New function, split off from
27061 sparc_fallback_frame_state.
27062 (sparc64_fallback_frame_state): Merge with ...
27063 (sparc_fallback_frame_state): ... this into ...
27064 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
27065 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
27066 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
27067 stack instead of hardcoded offsets.
27068
27069 2011-02-14 Andriy Gapon <avg@freebsd.org>
27070
27071 PR target/45808
27072 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
27073
27074 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27075
27076 * configure: Regenerate.
27077
27078 2011-02-12 Joseph Myers <joseph@codesourcery.com>
27079
27080 PR driver/45731
27081 * gcc.c (asm_options): Correct spec matching --target-help.
27082
27083 2011-02-12 Martin Jambor <mjambor@suse.cz>
27084
27085 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
27086 to gimple call error.
27087
27088 2011-02-12 Mike Stump <mikestump@comcast.net>
27089
27090 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
27091 comments in backslash regions.
27092
27093 2011-02-12 Mike Stump <mikestump@comcast.net>
27094 Jakub Jelinek <jakub@redhat.com>
27095 Iain Sandoe <iains@gcc.gnu.org>
27096
27097 PR target/47324
27098 * dwarf2out.c (output_cfa_loc): When required, apply the
27099 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
27100 (output_loc_sequence): Likewise.
27101 (output_loc_operands_raw): Likewise.
27102 (output_loc_sequence_raw): Likewise.
27103 (output_cfa_loc): Likewise.
27104 (output_loc_list): Suppress register number adjustment when
27105 calling output_loc_sequence()
27106 (output_die): Likewise.
27107
27108 2011-02-12 Anatoly Sokolov <aesok@post.ru>
27109
27110 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
27111 Remove macros.
27112 * config/xtensa/xtensa.c (xtensa_register_move_cost,
27113 xtensa_memory_move_cost): New functions.
27114 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
27115
27116 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
27117
27118 PR lto/47225
27119 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
27120 in the current directory.
27121 * configure: Rebuilt.
27122
27123 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
27124
27125 * config/darwin.c (darwin_override_options): Add a hunk missed
27126 from the commit of r168571. Trim comment line lengths and
27127 correct indents of the preceding block.
27128
27129 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
27130
27131 * gcc.c (driver_handle_option): Concatenate the argument to -F with
27132 the switch.
27133
27134 2011-02-11 Joseph Myers <joseph@codesourcery.com>
27135
27136 * common.opt (nostartfiles): New Driver option.
27137
27138 2011-02-11 Xinliang David Li <davidxl@google.com>
27139
27140 PR tree-optimization/47707
27141 * tree-chrec.c (convert_affine_scev): Keep type precision.
27142
27143 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
27144
27145 PR tree-optimization/47420
27146 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
27147
27148 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
27149
27150 PR rtl-optimization/47614
27151 * rtl.h (check_for_inc_dec): Declare.
27152 * dse.c (check_for_inc_dec): Externalize...
27153 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
27154 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
27155
27156 2011-02-11 Joseph Myers <joseph@codesourcery.com>
27157
27158 PR driver/47678
27159 * gcc.c (main): Do not compile inputs if there were errors in
27160 option handling.
27161 * opts-common.c (read_cmdline_option): Check for wrong language
27162 after other error checks.
27163
27164 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
27165
27166 * cgraph.c: Fix comment typos.
27167 * cgraph.h: Likewise.
27168 * cgraphunit.c: Likewise.
27169 * ipa-cp.c: Likewise.
27170 * ipa-inline.c: Likewise.
27171 * ipa-prop.c: Likewise.
27172 * ipa-pure-const.c: Likewise.
27173 * ipa-ref.c: Likewise.
27174 * ipa-reference.c: Likewise.
27175
27176 2011-02-11 Jakub Jelinek <jakub@redhat.com>
27177
27178 PR debug/47684
27179 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
27180
27181 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27182
27183 PR testsuite/47400
27184 * doc/sourcebuild.texi (Require Support): Document
27185 dg-require-ascii-locale.
27186
27187 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
27188
27189 * doc/lto.texi (Write summary): Fix missing parentheses.
27190
27191 2011-02-10 DJ Delorie <dj@redhat.com>
27192
27193 * config/m32c/m32c.c (m32c_option_override): Disable
27194 -fcombine-stack-adjustments until flag value tracking and compare
27195 optimization can be rewritten.
27196
27197 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
27198
27199 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
27200 PROCESSOR_POWER7.
27201 (PROCESSOR_DEFAULT64): Likewise.
27202
27203 2011-02-10 Richard Henderson <rth@redhat.com>
27204
27205 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
27206 change from 2011-02-03.
27207 * config/rx/rx.c (flags_from_code): Likewise.
27208 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
27209 is valid, n/pz otherwise.
27210 (rx_select_cc_mode): Return CCmode if Y is not zero.
27211
27212 2011-02-10 Richard Guenther <rguenther@suse.de>
27213
27214 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
27215
27216 2011-02-10 Richard Guenther <rguenther@suse.de>
27217
27218 PR tree-optimization/47677
27219 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
27220
27221 2011-02-10 Jakub Jelinek <jakub@redhat.com>
27222
27223 PR target/47665
27224 * combine.c (make_compound_operation): Only change shifts into
27225 multiplication for SCALAR_INT_MODE_P.
27226
27227 2011-02-10 Jie Zhang <jie@codesourcery.com>
27228
27229 PR testsuite/47622
27230 Revert
27231 2011-02-05 Jie Zhang <jie@codesourcery.com>
27232 PR debug/42631
27233 * web.c (entry_register): Don't clobber the number of the
27234 first uninitialized reference in used[].
27235
27236 2011-02-09 Richard Guenther <rguenther@suse.de>
27237
27238 PR tree-optimization/47664
27239 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
27240 all edges again.
27241
27242 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
27243
27244 PR target/46481
27245 PR target/47032
27246 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
27247 PROCESSOR_POWER7.
27248 (PROCESSOR_DEFAULT64): Same.
27249 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
27250
27251 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27252
27253 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
27254
27255 2011-02-09 Martin Jambor <mjambor@suse.cz>
27256
27257 PR middle-end/45505
27258 * tree-sra.c (struct access): New flags grp_scalar_read and
27259 grp_scalar_write. Changed description of assignment read and write
27260 flags.
27261 (dump_access): Dump new flags, reorder all of them.
27262 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
27263 to detect multiple scalar reads.
27264 (analyze_access_subtree): Use the new scalar read write flags instead
27265 of the old flags. Adjusted comments.
27266
27267 2011-02-08 DJ Delorie <dj@redhat.com>
27268
27269 PR target/47548
27270 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
27271 patterns.
27272
27273 2011-02-08 Joseph Myers <joseph@codesourcery.com>
27274
27275 * config/m68k/uclinux.opt: New.
27276 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
27277
27278 2011-02-08 Joseph Myers <joseph@codesourcery.com>
27279
27280 * config/cris/elf.opt (sim): New Driver option.
27281
27282 2011-02-08 Joseph Myers <joseph@codesourcery.com>
27283
27284 * config/xtensa/elf.opt: New.
27285 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
27286
27287 2011-02-08 Joseph Myers <joseph@codesourcery.com>
27288
27289 * config/vax/elf.opt: New.
27290 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
27291
27292 2011-02-08 Joseph Myers <joseph@codesourcery.com>
27293
27294 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
27295
27296 2011-02-08 Joseph Myers <joseph@codesourcery.com>
27297
27298 * config/gnu-user.opt: New.
27299 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
27300 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
27301 *-*-uclinux*): Use gnu-user.opt.
27302
27303 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
27304
27305 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
27306 * config/i386/gnu.h (CPP_SPEC): Likewise.
27307
27308 2011-02-08 Ian Lance Taylor <iant@google.com>
27309
27310 * common.opt (fcx-limited-range): Add SetByCombined flag.
27311 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
27312 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
27313 (fassociative-math, freciprocal-math): Likewise.
27314 (funsafe-math-optimizations): Likewise.
27315 * opth-gen.awk: Handle SetByCombined.
27316 * optc-gen.awk: Likewise.
27317 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
27318 (set_unsafe_math_optimizations_flags): Likewise.
27319 * doc/options.texi (Option properties): Document SetByCombined.
27320
27321 2011-02-08 Joseph Myers <joseph@codesourcery.com>
27322
27323 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
27324 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
27325 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
27326 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
27327 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
27328
27329 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
27330
27331 PR tree-optimization/46834
27332 PR tree-optimization/46994
27333 PR tree-optimization/46995
27334 * graphite-sese-to-poly.c (used_outside_reduction): New.
27335 (detect_commutative_reduction): Call used_outside_reduction.
27336 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
27337 translate_scalar_reduction_to_array only when at least one
27338 loop-phi/close-phi tuple has been detected.
27339
27340 2011-02-08 Richard Guenther <rguenther@suse.de>
27341
27342 PR middle-end/47639
27343 * tree-vect-generic.c (expand_vector_operations_1): Update
27344 stmts here ...
27345 (expand_vector_operations): ... not here. Cleanup EH info
27346 and the CFG if required.
27347
27348 2011-02-08 Richard Guenther <rguenther@suse.de>
27349
27350 PR tree-optimization/47641
27351 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
27352 require type compatibility.
27353
27354 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27355
27356 * gimple-low.c (lower_function_body): Don't remove the location of
27357 the return statement here.
27358 (lower_gimple_return): Do it here instead but only if the return
27359 statement is actually used twice.
27360
27361 2011-02-08 Richard Guenther <rguenther@suse.de>
27362
27363 PR tree-optimization/47632
27364 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
27365 unused up_to_stmt parameter, return whether cfg-cleanup is
27366 necessary, remove EH info properly.
27367 (forward_propagate_into_gimple_cond): Adjust caller.
27368 (forward_propagate_into_cond): Likewise.
27369 (forward_propagate_comparison): Likewise.
27370 (tree_ssa_forward_propagate_single_use_vars): Make
27371 forward_propagate_comparison case similar to the two others.
27372
27373 2011-02-08 Nick Clifton <nickc@redhat.com>
27374
27375 * config/mn10300/mn10300.opt (mliw): New command line option.
27376 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
27377 (liw_bundling): New automaton.
27378 (liw): New attribute.
27379 (liw_op): New attribute.
27380 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
27381 (movsi_internal): Add LIW attributes.
27382 (andsi3): Likewise.
27383 (iorsi3): Likewise.
27384 (xorsi3): Likewise.
27385 (addsi3): Separate register and immediate alternatives.
27386 Add LIW attributes.
27387 (subsi3): Likewise.
27388 (cmpsi): Likewise.
27389 (aslsi3): Likewise.
27390 (lshrsi3): Likewise.
27391 (ashrsi3): Likewise.
27392 (liw): New pattern.
27393 * config/mn10300/mn10300.c (liw_op_names): New
27394 (mn10300_print_operand): Handle 'W' operand descriptor.
27395 (extract_bundle): New function.
27396 (check_liw_constraints): New function.
27397 (liw_candidate): New function.
27398 (mn10300_bundle_liw): New function.
27399 (mn10300_reorg): New function.
27400 (TARGET_MACHINE_DEPENDENT_REORG): Define.
27401 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
27402 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
27403 __LIW__ or __NO_LIW__.
27404 * doc/invoke.texi: Describe the -mliw command line option.
27405
27406 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27407
27408 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
27409 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
27410 pthread_mutex_unlock): Remove.
27411 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
27412 * config/pa/t-pa64: Likewise.
27413 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
27414 shared libc if not linking against libpthread.
27415 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
27416
27417 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
27418
27419 PR target/47558
27420 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
27421 on 10.6 and later to ensure that we always use the unwinder from
27422 the system. Only add -no_compact_unwind when tarteting darwin
27423 10.6 or later.
27424
27425 2011-02-07 Steve Ellcey <sje@cup.hp.com>
27426
27427 PR target/46997
27428 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
27429 (vec_interleave_lowv2sf): Ditto.
27430 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
27431 (vec_extract_oddv2sf): Ditto.
27432
27433 2011-02-07 Mike Stump <mikestump@comcast.net>
27434
27435 PR target/42333
27436 Add __ieee_divdc3 entry point.
27437 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
27438 entry point.
27439 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
27440 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
27441 * config/darwin.c (darwin_rename_builtins): Add.
27442 * config/darwin-protos.h (darwin_rename_builtins): Add.
27443
27444 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
27445
27446 PR target/47636
27447 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
27448 for the condition.
27449
27450 2011-02-07 Mike Stump <mikestump@comcast.net>
27451
27452 * config/darwin.opt (mmacosx-version-min): Update default OS version.
27453
27454 2011-02-07 Denis Chertykov <chertykov@gmail.com>
27455
27456 PR target/47534
27457 * config/avr/libgcc.S (exit): Move .endfunc
27458
27459 2011-02-07 Richard Guenther <rguenther@suse.de>
27460
27461 PR tree-optimization/47615
27462 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
27463 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
27464 (run_scc_vn): Initialize it.
27465 (visit_reference_op_load): Use it.
27466 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
27467
27468 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27469
27470 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
27471 DImode trapping arithmetic libfuncs.
27472
27473 2011-02-07 Richard Guenther <rguenther@suse.de>
27474
27475 PR tree-optimization/47621
27476 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
27477 two duplicates ...
27478 (execute_update_addresses_taken): ... here. Make it more
27479 conservative in what we accept.
27480
27481 2011-02-06 Joseph Myers <joseph@codesourcery.com>
27482
27483 * config/sparc/freebsd.h (ASM_SPEC): Define.
27484 * config/sparc/vxworks.h (ASM_SPEC): Define.
27485
27486 2011-02-06 Joseph Myers <joseph@codesourcery.com>
27487
27488 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
27489
27490 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
27491
27492 * doc/invoke.texi: Remove reference to compiler internals from
27493 user documentation.
27494
27495 * reg-notes.def: Remove REG_VALUE_PROFILE.
27496 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
27497
27498 2011-02-05 Jakub Jelinek <jakub@redhat.com>
27499
27500 PR middle-end/47610
27501 * varasm.c (default_section_type_flags): If decl is NULL,
27502 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
27503
27504 2011-02-05 Jie Zhang <jie@codesourcery.com>
27505
27506 PR debug/42631
27507 * web.c (entry_register): Don't clobber the number of the
27508 first uninitialized reference in used[].
27509
27510 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
27511
27512 PR tree-optimization/46194
27513 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
27514 (build_classic_dist_vector_1): Do not represent classic distance
27515 vectors when the access functions are variating in different loops.
27516
27517 2011-02-04 Joseph Myers <joseph@codesourcery.com>
27518
27519 * config/mips/iris6.opt: New.
27520 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
27521
27522 2011-02-04 Richard Henderson <rth@redhat.com>
27523 Steve Ellcey <sje@cup.hp.com>
27524
27525 PR target/46997
27526 * config/ia64/predicates.md (mux1_brcst_element): New.
27527 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
27528 * config/ia64/ia64.c (ia64_unpack_assemble): New.
27529 (ia64_unpack_sign): New.
27530 (ia64_expand_unpack): Rewrite using new routines.
27531 (ia64_expand_widen_sum): Ditto.
27532 (ia64_expand_dot_prod_v8qi): Ditto.
27533 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
27534 routines, add endian check.
27535 (pmpy2_even): Rename from pmpy2_r, add endian check.
27536 (pmpy2_odd): Rename from pmpy2_l, add endian check.
27537 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
27538 (vec_widen_smult_hi_v4hi): Ditto.
27539 (vec_widen_umult_lo_v4hi): Ditto.
27540 (vec_widen_umult_hi_v4hi): Ditto.
27541 (mulv2si3): Change endian checks.
27542 (sdot_prodv4hi): Rewrite with new calls.
27543 (udot_prodv4hi): New.
27544 (vec_pack_ssat_v4hi): Add endian check.
27545 (vec_pack_usat_v4hi): Ditto.
27546 (vec_pack_ssat_v2si): Ditto.
27547 (max1_even): Rename from max1_r, add endian check.
27548 (max1_odd): Rename from max1_l, add endian check.
27549 (*mux1_rev): Format change.
27550 (*mux1_mix): Ditto.
27551 (*mux1_shuf): Ditto.
27552 (*mux1_alt): Ditto.
27553 (*mux1_brcst_v8qi): Use new predicate.
27554 (vec_extract_evenv8qi): Remove endian check.
27555 (vec_extract_oddv8qi): Ditto.
27556 (vec_interleave_lowv4hi): Format change.
27557 (vec_interleave_highv4hi): Ditto.
27558 (mix2_even): Rename from mix2_r, add endian check.
27559 (mix2_odd): Rename from mux2_l, add endian check.
27560 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
27561 (vec_extract_evenodd_helper): Format change.
27562 (vec_extract_evenv4hi): Remove endian check.
27563 (vec_extract_oddv4hi): Remove endian check.
27564 (vec_interleave_lowv2si): Format change.
27565 (vec_interleave_highv2si): Format change.
27566 (vec_initv2si): Remove endian check.
27567 (vecinit_v2si): Add endian check.
27568 (reduc_splus_v2sf): Add endian check.
27569 (reduc_smax_v2sf): Ditto.
27570 (reduc_smin_v2sf): Ditto.
27571 (vec_initv2sf): Remove endian check.
27572 (fpack): Add endian check.
27573 (fswap): Add endian check.
27574 (vec_interleave_highv2sf): Add endian check.
27575 (vec_interleave_lowv2sf): Add endian check.
27576 (fmix_lr): Add endian check.
27577 (vec_setv2sf): Format change.
27578 (*vec_extractv2sf_0_be): Use shift to extract operand.
27579 (*vec_extractv2sf_1_be): New.
27580 (vec_pack_trunc_v4hi): Add endian check.
27581 (vec_pack_trunc_v2si): Format change.
27582
27583 2011-02-04 Jakub Jelinek <jakub@redhat.com>
27584
27585 PR inline-asm/23200
27586 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
27587 do bb, locus and block comparison and disallow loads if it is not set.
27588 (stmt_is_replaceable_p): New function.
27589 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
27590 callers.
27591 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
27592 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
27593 SSA_NAME_DEF_STMT.
27594 * tree-flow.h (stmt_is_replaceable_p): New prototype.
27595
27596 2011-02-04 Joseph Myers <joseph@codesourcery.com>
27597
27598 * config/rs6000/xilinx.opt: New.
27599 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
27600
27601 2011-02-04 Joseph Myers <joseph@codesourcery.com>
27602
27603 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
27604
27605 2011-02-03 Anatoly Sokolov <aesok@post.ru>
27606
27607 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
27608 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
27609 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
27610 secondary_reload_info, xtensa_secondary_reload): Remove.
27611 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
27612 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
27613 (xtensa_preferred_reload_class): Make static. Change return and
27614 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
27615 Use CONST_DOUBLE_P predicate.
27616 (xtensa_preferred_output_reload_class): New function.
27617 (xtensa_secondary_reload): Make static.
27618
27619 2011-02-03 Joseph Myers <joseph@codesourcery.com>
27620
27621 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
27622 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
27623 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
27624
27625 2011-02-03 Jakub Jelinek <jakub@redhat.com>
27626
27627 PR middle-end/31490
27628 * output.h (SECTION_RELRO): Define.
27629 (SECTION_MACH_DEP): Adjust.
27630 (get_variable_section): New prototype.
27631 * varpool.c (varpool_finalize_named_section_flags): New function.
27632 (varpool_assemble_pending_decls): Call it.
27633 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
27634 * cgraphunit.c (cgraph_output_in_order): Call
27635 varpool_finalize_named_section_flags.
27636 * varasm.c (get_section): Allow section flags conflicts between
27637 relro and read-only sections if the section hasn't been declared yet.
27638 Set SECTION_OVERRIDE after diagnosing section type conflict.
27639 (get_variable_section): No longer static.
27640 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
27641 readonly sections that need relocations.
27642 (decl_readonly_section_1): New function.
27643 (decl_readonly_section): Use it.
27644
27645 Revert:
27646 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
27647 Steve Ellcey <sje@cup.hp.com>
27648
27649 PR middle-end/31490
27650 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
27651 if section attribute used.
27652
27653 2011-02-03 Jakub Jelinek <jakub@redhat.com>
27654
27655 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
27656 * config/darwin.c (SECTION_NO_ANCHOR): Define.
27657 (darwin_init_sections): Remove assertion.
27658
27659 2011-02-03 Nick Clifton <nickc@redhat.com>
27660
27661 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
27662 lt and ge.
27663 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
27664 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
27665 instead of "n" and "pz".
27666 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
27667 CC_FLAG_S.
27668
27669 2011-02-03 Jakub Jelinek <jakub@redhat.com>
27670
27671 PR target/47312
27672 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
27673 fma, expand FMA_EXPR as fma{,f,l} call.
27674
27675 PR lto/47274
27676 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
27677 copy them into a unsigned char variable and pass address of it to
27678 lto_output_data_stream.
27679
27680 PR target/47564
27681 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
27682 around backend_init_target and lang_dependent_init_target calls.
27683 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
27684 (verify_cgraph_node): Don't call set_cfun here. Use
27685 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
27686 Set error_found for incorrectly represented calls to thunks.
27687
27688 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
27689
27690 PR debug/43092
27691 PR rtl-optimization/43494
27692 * rtl.h (for_each_inc_dec_fn): New type.
27693 (for_each_inc_dec): Declare.
27694 * rtlanal.c (struct for_each_inc_dec_ops): New type.
27695 (for_each_inc_dec_find_inc_dec): New fn.
27696 (for_each_inc_dec_find_mem): New fn.
27697 (for_each_inc_dec): New fn.
27698 * dse.c (struct insn_size): Remove.
27699 (replace_inc_dec, replace_inc_dec_mem): Remove.
27700 (emit_inc_dec_insn_before): New fn.
27701 (check_for_inc_dec): Use it, along with for_each_inc_dec.
27702 (canon_address): Pass mem modes to cselib_lookup.
27703 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
27704 (cselib_lookup_from_insn): Likewise.
27705 (cselib_subst_to_values): Likewise.
27706 * cselib.c (find_slot_memmode): New var.
27707 (cselib_find_slot): New fn. Use it instead of
27708 htab_find_slot_with_hash everywhere.
27709 (entry_and_rtx_equal_p): Use find_slot_memmode.
27710 (autoinc_split): New fn.
27711 (rtx_equal_for_cselib_p): Rename and implement in terms of...
27712 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
27713 Deal with autoinc. Special-case recursion into MEMs.
27714 (cselib_hash_rtx): Likewise.
27715 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
27716 address and MEM modes.
27717 (cselib_subst_to_values): Add memmode, pass it on.
27718 Deal with autoinc.
27719 (cselib_lookup): Add memmode argument, pass it on.
27720 (cselib_lookup_from_insn): Add memmode.
27721 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
27722 (struct cselib_record_autoinc_data): New.
27723 (cselib_record_autoinc_cb): New fn.
27724 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
27725 mode to cselib_lookup. Reset autoinced REGs here instead of...
27726 (cselib_process_insn): ... here.
27727 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
27728 to cselib_lookup.
27729 (add_uses): Likewise, also to cselib_subst_to_values.
27730 (add_stores): Likewise.
27731 * sched-deps.c (add_insn_mem_dependence): Pass mode to
27732 cselib_subst_to_values.
27733 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
27734 * gcse.c (do_local_cprop): Adjusted.
27735 * postreload.c (reload_cse_simplify_set): Adjusted.
27736 (reload_cse_simplify_operands): Adjusted.
27737 * sel-sched-dump (debug_mem_addr_value): Pass mode.
27738
27739 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
27740
27741 PR tree-optimization/45122
27742 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
27743 unsafe assumptions when there's more than one loop exit.
27744
27745 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27746
27747 PR target/47272
27748 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27749 Document using vector double with the load/store builtins, and
27750 that the load/store builtins always use Altivec instructions.
27751
27752 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
27753 to use altivec memory instructions, even on VSX.
27754 (vector_altivec_store_<mode>): Ditto.
27755
27756 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
27757 function.
27758
27759 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27760 V2DF, V2DI support to load/store overloaded builtins.
27761
27762 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
27763 altivec load/store builtins for V2DF/V2DI types.
27764
27765 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27766 set avoid indexed addresses on power6 if -maltivec.
27767 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
27768 vector_altivec_load/vector_altivec_store builtins.
27769 (altivec_expand_st_builtin): Ditto.
27770 (altivec_expand_builtin): Add VSX memory builtins.
27771 (rs6000_init_builtins): Add V2DI types to internal types.
27772 (altivec_init_builtins): Add support for V2DF/V2DI altivec
27773 load/store builtins.
27774 (rs6000_address_for_altivec): Insure memory address is appropriate
27775 for Altivec.
27776
27777 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
27778 vec_vsx_ld and vec_vsx_st.
27779 (vsx_store_<mode>): Ditto.
27780
27781 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
27782 variables to hold long long types for VSX vector memory builtins.
27783 (RS6000_BTI_unsigned_long_long): Ditto.
27784 (long_long_integer_type_internal_node): Ditti.
27785 (long_long_unsigned_type_internal_node): Ditti.
27786
27787 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
27788 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
27789 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
27790
27791 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
27792 short cuts.
27793 (vec_vsx_st): Ditto.
27794
27795 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27796
27797 * config/pa/pa-hpux10.opt: New.
27798 * config/hpux11.opt (pthread): New Driver option.
27799 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
27800 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
27801
27802 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27803
27804 * config/ia64/vms.opt: New.
27805 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
27806
27807 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
27808
27809 PR target/47580
27810 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
27811 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
27812 generator functions.
27813 (vsx_floatuns<VSi><mode>2): Ditto.
27814 (vsx_fix_trunc<mode><VSi>2): Ditto.
27815 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
27816
27817 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27818
27819 * config/i386/djgpp.opt (posix): New Driver option.
27820
27821 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
27822
27823 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
27824 Move to the unsupported targets list.
27825
27826 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
27827
27828 PR rtl-optimization/47525
27829 * df-scan.c: Update copyright years.
27830 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
27831 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
27832
27833 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27834
27835 * config/i386/sysv4.h (TARGET_VERSION): Remove.
27836 (SUBTARGET_RETURN_IN_MEMORY): Remove.
27837 (ASM_OUTPUT_ASCII): Remove.
27838 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
27839
27840 2011-02-02 Jeff Law <law@redhat.com>
27841
27842 PR middle-end/47543
27843 * reload.c (find_reloads_address): Handle reg+d address where both
27844 components are invalid by reloading the entire address.
27845
27846 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
27847 Richard Guenther <rguenther@suse.de>
27848
27849 PR tree-optimization/40979
27850 PR bootstrap/47044
27851 * passes.c (init_optimization_passes): After LIM call copy_prop
27852 and DCE to clean up.
27853 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
27854
27855 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
27856
27857 PR tree-optimization/47576
27858 PR tree-optimization/47555
27859 * doc/invoke.texi (scev-max-expr-complexity): Documented.
27860 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27861 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
27862 * tree-scalar-evolution.c (follow_ssa_edge): Use
27863 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
27864
27865 2011-02-02 Richard Guenther <rguenther@suse.de>
27866
27867 PR tree-optimization/47566
27868 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
27869
27870 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
27871
27872 PR debug/47106
27873 PR debug/47402
27874 * tree-inline.c (declare_return_variable): Remove unused caller
27875 variable.
27876
27877 PR debug/47106
27878 PR debug/47402
27879 * tree-flow-inline.h (clear_is_used, is_used_p): New.
27880 * cfgexpand.c (account_used_vars_for_block): Use them.
27881 * tree-nrv.c (tree_nrv): Likewise.
27882 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
27883 (dump_scope_block): Likewise.
27884 (remove_unused_locals): Likewise.
27885
27886 PR debug/47106
27887 PR debug/47402
27888 * tree-inline.c (declare_return_variable): Add result decl to
27889 local decls only once.
27890 * gimple-low.c (record_vars_into): Mark newly-created variables
27891 as referenced.
27892
27893 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
27894
27895 PR debug/47498
27896 PR debug/47501
27897 PR debug/45136
27898 PR debug/45130
27899 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27900 debug insns.
27901 (no_real_insns_p, schedule_block, set_priorities): Drop special
27902 treatment of boundary debug insns.
27903 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27904 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
27905 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27906 (BOUNDARY_DEBUG_INSN_P): Likewise.
27907 (SCHEDULE_DEBUG_INSN_P): Likewise.
27908 * sched-rgn.c (init_ready_list): Drop special treatment of
27909 boundary debug insns.
27910 * final.c (rest_of_clean_state): Clear notes' BB.
27911
27912 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27913
27914 * config/openbsd.opt (assert=): New Driver option.
27915
27916 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27917
27918 * config/i386/nto.opt: New.
27919 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
27920
27921 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27922
27923 * config/i386/netware.opt: New.
27924 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
27925
27926 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27927
27928 * config/interix.opt (posix): New Driver option.
27929
27930 2011-02-01 DJ Delorie <dj@redhat.com>
27931
27932 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
27933
27934 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
27935 class for A0/A1.
27936
27937 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
27938
27939 PR tree-optimization/47561
27940 * toplev.c (process_options): Print the Graphite flags. Add
27941 flag_loop_flatten to the list of options requiring Graphite.
27942
27943 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27944
27945 * config/i386/cygming.opt (posix): New Driver option.
27946
27947 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27948
27949 * config/arm/vxworks.opt: New.
27950 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
27951
27952 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27953
27954 * config/alpha/elf.opt: New.
27955 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
27956 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
27957
27958 2011-02-01 Richard Guenther <rguenther@suse.de>
27959
27960 PR tree-optimization/47559
27961 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
27962 store-motion on references that can throw.
27963
27964 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
27965
27966 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
27967 * tree-pass.h (TDF_CSELIB): New macro.
27968 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
27969 cselib_lookup): Check for it rather than for TDF_DETAILS.
27970
27971 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
27972
27973 PR driver/47547
27974 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
27975 is HOST_BIT_BUCKET.
27976
27977 * opts.c (finish_options): Don't add x_aux_base_name if it is
27978 HOST_BIT_BUCKET.
27979
27980 2011-02-01 Richard Guenther <rguenther@suse.de>
27981
27982 PR tree-optimization/47555
27983 Revert
27984 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
27985
27986 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27987
27988 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
27989
27990 PR gcc/46692
27991 * config/lm32/t-lm32: Add multilib for all CPU options.
27992
27993 2011-02-01 Richard Guenther <rguenther@suse.de>
27994
27995 PR tree-optimization/47541
27996 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
27997 sure to have a field at offset zero.
27998
27999 2011-01-31 Joseph Myers <joseph@codesourcery.com>
28000
28001 * config/arc/arc.opt (EB, EL): New Driver options.
28002
28003 2011-01-31 Joseph Myers <joseph@codesourcery.com>
28004
28005 * config/alpha/osf5.opt: New.
28006 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
28007
28008 2011-01-31 Joseph Myers <joseph@codesourcery.com>
28009
28010 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
28011
28012 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
28013
28014 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
28015 -floop-interchange.
28016 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
28017 is an alias of -floop-interchange and that it requires the
28018 Graphite infrastructure.
28019 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
28020 flag_loop_interchange based on the value of flag_tree_loop_linear.
28021
28022 2011-01-31 Jakub Jelinek <jakub@redhat.com>
28023 Richard Guenther <rguenther@suse.de>
28024
28025 PR tree-optimization/47538
28026 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
28027 type instead of r1type, except for comparisons. For right
28028 shifts and comparisons punt if there are mismatches in
28029 sizetype vs. non-sizetype types.
28030
28031 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28032
28033 * doc/sourcebuild.texi (Effective-Target Keywords): Document
28034 avx_runtime.
28035
28036 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28037
28038 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
28039 version number.
28040 * configure: Regenerate.
28041
28042 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28043
28044 * configure.ac (gcc_cv_ld_static_option): Define.
28045 (gcc_cv_ld_dynamic_option): Define.
28046 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
28047 instead.
28048 (HAVE_LD_STATIC_DYNAMIC): Update message.
28049 (LD_STATIC_OPTION): Define.
28050 (LD_DYNAMIC_OPTION): Define.
28051 * configure: Regenerate.
28052 * config.in: Regenerate.
28053 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
28054 HAVE_LD_STATIC_DYNAMIC]: Use them.
28055
28056 2011-01-31 Nick Clifton <nickc@redhat.com>
28057
28058 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
28059 registers inside interrupt handlers if the handler is not a leaf
28060 function.
28061
28062 2011-01-31 Nick Clifton <nickc@redhat.com>
28063
28064 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
28065 reg_renumber returning an INVALID_REGNUM.
28066
28067 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
28068
28069 PR libgcj/44341
28070 * doc/install.texi: Document host options discarded when cross
28071 configuring target libraries.
28072
28073 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
28074
28075 Reverted:
28076 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
28077 PR debug/45136
28078 PR debug/45130
28079 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
28080 debug insns.
28081 (no_real_insns_p, schedule_block, set_priorities): Drop special
28082 treatment of boundary debug insns.
28083 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
28084 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
28085 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
28086 (BOUNDARY_DEBUG_INSN_P): Likewise.
28087 (SCHEDULE_DEBUG_INSN_P): Likewise.
28088 * sched-rgn.c (init_ready_list): Drop special treatment of
28089 boundary debug insns.
28090 * final.c (rest_of_clean-state): Clear notes' BB.
28091
28092 2011-01-31 Alan Modra <amodra@gmail.com>
28093
28094 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
28095 toc relative expressions as we do in print_operand_address.
28096
28097 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
28098
28099 * doc/extend.texi: Follow spelling conventions.
28100 * doc/invoke.texi: Fix a typo.
28101
28102 2011-01-30 Joseph Myers <joseph@codesourcery.com>
28103
28104 * config/hpux11.opt: New.
28105 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
28106 ia64*-*-hpux*): Use hpux11.opt.
28107
28108 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
28109
28110 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
28111 to tmake_file.
28112
28113 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
28114
28115 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
28116 support sites.
28117
28118 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
28119
28120 * doc/install.texi (Binaries): Remove outdated reference for
28121 Motorola 68HC11/68HC12 downloads.
28122
28123 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
28124
28125 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
28126 Drepper's paper.
28127
28128 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
28129
28130 PR bootstrap/47147
28131 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
28132 used by NetBSD.
28133
28134 2011-01-28 Ahmad Sharif <asharif@google.com>
28135
28136 * value-prof.c (check_counter): Corrected error message.
28137
28138 2011-01-29 Jie Zhang <jie@codesourcery.com>
28139
28140 * config/arm/arm.c (arm_legitimize_reload_address): New.
28141 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
28142 arm_legitimize_reload_address.
28143 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
28144
28145 2011-01-28 Ian Lance Taylor <iant@google.com>
28146
28147 * godump.c (go_define): Ignore macros whose definitions include
28148 two adjacent operands.
28149
28150 2011-01-28 Jakub Jelinek <jakub@redhat.com>
28151
28152 PR target/42894
28153 * varasm.c (force_const_mem): Store copy of x in desc->constant
28154 instead of x itself.
28155 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
28156 itself into REG_EQUAL note.
28157
28158 2011-01-28 Joseph Myers <joseph@codesourcery.com>
28159
28160 * config/freebsd.opt (posix, rdynamic): New Driver options.
28161
28162 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28163
28164 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
28165 -Bstatic/-Bdynamic.
28166 * configure: Regenerate.
28167
28168 2011-01-27 Joseph Myers <joseph@codesourcery.com>
28169
28170 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
28171 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
28172
28173 2011-01-27 Anatoly Sokolov <aesok@post.ru>
28174
28175 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
28176 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
28177 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
28178 (s390_preferred_reload_class): Make static. Change return and
28179 'rclass' argument type to reg_class_t.
28180
28181 2011-01-27 Jan Hubicka <jh@suse.cz>
28182
28183 PR middle-end/46949
28184 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
28185 (process_function_and_variable_attributes): Check defined weakrefs.
28186
28187 2011-01-27 Martin Jambor <mjambor@suse.cz>
28188
28189 PR tree-optimization/47228
28190 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
28191 build_ref_for_offset.
28192
28193 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28194
28195 * config/spu/spu-elf.h (ASM_SPEC): Remove.
28196
28197 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
28198
28199 PR rtl-optimization/46856
28200 * postreload.c (reload_combine_recognize_const_pattern): Do not
28201 separate cc0 setter and user on cc0 targets.
28202
28203 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
28204
28205 PR c/43082
28206 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
28207 passed a VOID_TYPE expression, immediately emit an error and
28208 return error_mark_node.
28209
28210 2011-01-26 Jeff Law <law@redhat.com>
28211
28212 PR rtl-optimization/47464
28213 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
28214 rather than may_trap_p as needed.
28215
28216 2011-01-26 DJ Delorie <dj@redhat.com>
28217
28218 PR rtl-optimization/46878
28219 * combine.c (insn_a_feeds_b): Check for the implicit cc0
28220 setter/user dependency as well.
28221
28222 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
28223
28224 PR rtl-optimization/44469
28225 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
28226 after removing trivially dead basic blocks.
28227
28228 2011-01-26 Joseph Myers <joseph@codesourcery.com>
28229
28230 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
28231 * config/frv/frv.h (LINK_SPEC): Likewise.
28232 * config/i386/netware.h (LINK_SPEC): Likewise.
28233 * config/m68k/linux.h (ASM_SPEC): Likewise.
28234 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
28235 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
28236 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28237 * config/sparc/linux.h (ASM_SPEC): Likewise.
28238 * config/sparc/linux64.h (ASM_SPEC): Likewise.
28239 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28240
28241 2011-01-26 Joseph Myers <joseph@codesourcery.com>
28242
28243 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
28244 * config/frv/frv.h (ASM_SPEC): Likewise.
28245 * config/m68k/linux.h (ASM_SPEC): Likewise.
28246 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
28247 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
28248 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28249 * config/sparc/linux.h (ASM_SPEC): Likewise.
28250 * config/sparc/linux64.h (ASM_SPEC): Likewise.
28251 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28252
28253 2011-01-26 Joseph Myers <joseph@codesourcery.com>
28254
28255 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
28256 * config/frv/frv.h (LINK_SPEC): Likewise.
28257 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
28258
28259 2011-01-26 Joseph Myers <joseph@codesourcery.com>
28260
28261 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
28262 * config/frv/frv.h (ASM_SPEC): Likewise.
28263 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
28264 * config/m68k/linux.h (ASM_SPEC): Likewise.
28265 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
28266 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
28267 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28268 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
28269 * config/sparc/linux.h (ASM_SPEC): Likewise.
28270 * config/sparc/linux64.h (ASM_SPEC): Likewise.
28271 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28272 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
28273
28274 2011-01-26 Steve Ellcey <sje@cup.hp.com>
28275
28276 PR target/46997
28277 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
28278 (*mux2): Ditto.
28279 (vec_extract_evenodd_help): Ditto.
28280 (vec_extract_evenv4hi): Ditto.
28281 (vec_extract_oddv4hi): Ditto.
28282 (vec_interleave_lowv2si): Ditto.
28283 (vec_interleave_highv2si): Ditto.
28284 (vec_extract_evenv2si): Ditto.
28285 (vec_extract_oddv2si: Ditto.
28286 (vec_pack_trunc_v2si): Ditto.
28287
28288 2011-01-22 Jan Hubicka <jh@suse.cz>
28289
28290 PR target/47237
28291 * cgraph.h (cgraph_local_info): New field can_change_signature.
28292 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
28293 signature can change.
28294 (ipcp_estimate_growth): Call sequence simplify only if calle signature
28295 can change.
28296 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
28297 (cgraph_function_versioning): We can not change signature of functions
28298 that don't allow that.
28299 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
28300 (lto_input_node): Likewise.
28301 * ipa-inline.c (compute_inline_parameters): Compute
28302 local.can_change_signature.
28303 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
28304 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
28305 functions that can not change signature.
28306 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
28307 init_cumulative_args): Do not use local calling conventions
28308 for functions that can not change signature.
28309
28310 2011-01-22 Jan Hubicka <jh@suse.cz>
28311
28312 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
28313
28314 2011-01-26 Richard Guenther <rguenther@suse.de>
28315
28316 PR tree-optimization/47190
28317 * cgraphunit.c (process_common_attributes): New function.
28318 (process_function_and_variable_attributes): Use it.
28319
28320 2011-01-26 Richard Guenther <rguenther@suse.de>
28321
28322 PR lto/47423
28323 * cgraphbuild.c (record_eh_tables): Record reference to personality
28324 function.
28325
28326 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
28327
28328 PR debug/45454
28329 * sel-sched.c (moveup_expr): Don't let debug insns prevent
28330 non-debug insns from moving up.
28331
28332 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
28333
28334 PR target/40125
28335 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
28336 t-dlldir{,-x} fragment for build and add it to tmake_file.
28337 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
28338 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
28339 * config/i386/t-dlldir: New file.
28340 (SHLIB_DLLDIR): Define.
28341 * config/i386/t-dlldir-x: New file.
28342 (SHLIB_DLLDIR): Define.
28343 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
28344 (SHLIB_INSTALL): Use it.
28345
28346 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
28347
28348 PR target/47246
28349 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
28350 lower bound of the allowed Thumb-2 coprocessor load/store
28351 index range to -256. Add explaining comment.
28352
28353 2011-01-25 Ian Lance Taylor <iant@google.com>
28354
28355 * godump.c (go_define): Improve lexing of macro expansion to only
28356 accept expressions which match Go spec.
28357
28358 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
28359
28360 PR c++/43601
28361 * tree.c (handle_dll_attribute): Handle it.
28362 * doc/extend.texi (@item dllexport): Mention it.
28363 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
28364
28365 2011-01-25 Ian Lance Taylor <iant@google.com>
28366
28367 PR tree-optimization/26854
28368 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
28369 (decl_jump_unsafe): Move higher in file, with no other change.
28370 (bind): Set has_jump_unsafe_decl if appropriate.
28371 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
28372 (check_earlier_gotos): Likewise.
28373 (c_check_switch_jump_warnings): Likewise.
28374
28375 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
28376
28377 * doc/invoke.texi (Warning Options): Add missing hyphen.
28378 (-fprofile-dir): Minor grammatical fixes.
28379 (-fbranch-probabilities): Likewise.
28380
28381 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
28382
28383 PR debug/45136
28384 PR debug/45130
28385 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
28386 debug insns.
28387 (no_real_insns_p, schedule_block, set_priorities): Drop special
28388 treatment of boundary debug insns.
28389 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
28390 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
28391 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
28392 (BOUNDARY_DEBUG_INSN_P): Likewise.
28393 (SCHEDULE_DEBUG_INSN_P): Likewise.
28394 * sched-rgn.c (init_ready_list): Drop special treatment of
28395 boundary debug insns.
28396 * final.c (rest_of_clean-state): Clear notes' BB.
28397
28398 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28399
28400 * Makefile.in (LAMBDA_H): Removed.
28401 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
28402 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
28403 lambda-trans.o, and tree-loop-linear.o.
28404 (lto-symtab.o): Remove dependence on LAMBDA_H.
28405 (tree-loop-linear.o): Remove rule.
28406 (lambda-mat.o): Same.
28407 (lambda-trans.o): Same.
28408 (lambda-code.o): Same.
28409 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
28410 (tree-vect-slp.o): Same.
28411 * hwint.h (gcd): Moved here.
28412 (least_common_multiple): Same.
28413 * lambda-code.c: Removed.
28414 * lambda-mat.c: Removed.
28415 * lambda-trans.c: Removed.
28416 * lambda.h: Removed.
28417 * tree-loop-linear.c: Removed.
28418 * lto-symtab.c: Do not include lambda.h.
28419 * omega.c (gcd): Removed.
28420 * passes.c (init_optimization_passes): Remove pass_linear_transform.
28421 * tree-data-ref.c (print_lambda_vector): Moved here.
28422 (lambda_vector_copy): Same.
28423 (lambda_matrix_copy): Same.
28424 (lambda_matrix_id): Same.
28425 (lambda_vector_first_nz): Same.
28426 (lambda_matrix_row_add): Same.
28427 (lambda_matrix_row_exchange): Same.
28428 (lambda_vector_mult_const): Same.
28429 (lambda_vector_negate): Same.
28430 (lambda_matrix_row_negate): Same.
28431 (lambda_vector_equal): Same.
28432 (lambda_matrix_right_hermite): Same.
28433 * tree-data-ref.h: Do not include lambda.h.
28434 (lambda_vector): Moved here.
28435 (lambda_matrix): Same.
28436 (dependence_level): Same.
28437 (lambda_transform_legal_p): Removed declaration.
28438 (lambda_collect_parameters): Same.
28439 (lambda_compute_access_matrices): Same.
28440 (lambda_vector_gcd): Same.
28441 (lambda_vector_new): Same.
28442 (lambda_vector_clear): Same.
28443 (lambda_vector_lexico_pos): Same.
28444 (lambda_vector_zerop): Same.
28445 (lambda_matrix_new): Same.
28446 * tree-flow.h (least_common_multiple): Removed declaration.
28447 * tree-parloops.c (lambda_trans_matrix): Moved here.
28448 (LTM_MATRIX): Same.
28449 (LTM_ROWSIZE): Same.
28450 (LTM_COLSIZE): Same.
28451 (LTM_DENOMINATOR): Same.
28452 (lambda_trans_matrix_new): Same.
28453 (lambda_matrix_vector_mult): Same.
28454 (lambda_transform_legal_p): Same.
28455 * tree-pass.h (pass_linear_transform): Removed declaration.
28456 * tree-ssa-loop.c (tree_linear_transform): Removed.
28457 (gate_tree_linear_transform): Removed.
28458 (pass_linear_transform): Removed.
28459 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
28460 flag_loop_interchange.
28461
28462 2011-01-25 Jakub Jelinek <jakub@redhat.com>
28463
28464 PR tree-optimization/47265
28465 PR tree-optimization/47443
28466 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
28467 if name still has some uses.
28468
28469 2011-01-25 Martin Jambor <mjambor@suse.cz>
28470
28471 PR tree-optimization/47382
28472 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
28473 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
28474
28475 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
28476
28477 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
28478 sjlj_except_unwind_info.
28479
28480 2011-01-25 Richard Guenther <rguenther@suse.de>
28481
28482 PR tree-optimization/47426
28483 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
28484 visible functions results escape.
28485
28486 2011-01-25 Jakub Jelinek <jakub@redhat.com>
28487
28488 PR target/45701
28489 * config/arm/arm.c (any_sibcall_uses_r3): New function.
28490 (arm_get_frame_offsets): Use it.
28491
28492 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28493 Jakub Jelinek <jakub@redhat.com>
28494
28495 PR tree-optimization/47271
28496 * tree-if-conv.c (bb_postdominates_preds): New.
28497 (if_convertible_bb_p): Call bb_postdominates_preds.
28498 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
28499 (predicate_scalar_phi): Call bb_postdominates_preds.
28500
28501 2011-01-25 Nick Clifton <nickc@redhat.com>
28502
28503 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
28504 * config/rx/rx.c (rx_function_value): Likewise.
28505 (rx_promote_function_mode): Likewise.
28506 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
28507 in order to make it legitimate.
28508 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
28509 make sure that the first operand is the same as the result register.
28510 (addsi3_unspec): Delete.
28511 (subdi3): Do not accept immediate operands.
28512 (subdi3_internal): Likewise.
28513
28514 2011-01-25 Jeff Law <law@redhat.com>
28515
28516 PR rtl-optimization/37273
28517 * ira-costs.c (scan_one_insn): Detect constants living in memory and
28518 handle them like argument loads from stack slots. Do not double
28519 count memory for memory constants and argument loads from stack slots.
28520
28521 2011-01-25 Jakub Jelinek <jakub@redhat.com>
28522
28523 PR tree-optimization/47427
28524 PR tree-optimization/47428
28525 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
28526 coalesce if the new root var would be TREE_READONLY.
28527
28528 2011-01-25 Richard Guenther <rguenther@suse.de>
28529
28530 PR middle-end/47414
28531 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
28532 correct type for TBAA.
28533
28534 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28535
28536 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
28537 (close_phi_written_to_memory): Call for_each_index with
28538 dr_indices_valid_in_loop.
28539
28540 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28541
28542 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
28543 when it is initialized.
28544
28545 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28546
28547 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
28548 call to graphite_find_data_references_in_stmt.
28549 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
28550 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
28551 call to graphite_find_data_references_in_stmt.
28552 (analyze_drs_in_stmts): Same.
28553 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
28554 in which the scalar analysis of indices is performed.
28555 (create_data_ref): Same. Update call to dr_analyze_indices.
28556 (find_data_references_in_stmt): Update call to create_data_ref.
28557 (graphite_find_data_references_in_stmt): Same.
28558 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
28559 declaration.
28560 (create_data_ref): Same.
28561 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
28562 call to create_data_ref.
28563
28564 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28565
28566 * graphite-sese-to-poly.c (build_poly_scop): Move
28567 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
28568
28569 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28570
28571 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
28572 VAR_DECL, PARM_DECL, and RESULT_DECL.
28573
28574 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28575
28576 * graphite-dependences.c (reduction_dr_1): Allow several reductions
28577 in a reduction PBB.
28578 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
28579 that have already been marked as PBB_IS_REDUCTION.
28580
28581 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28582
28583 * graphite-scop-detection.c (same_close_phi_node): New.
28584 (remove_duplicate_close_phi): New.
28585 (make_close_phi_nodes_unique): New.
28586 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
28587
28588 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28589
28590 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
28591 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
28592 of both data references to be the same.
28593
28594 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28595
28596 * graphite-dependences.c (build_lexicographical_constraint): Remove
28597 the gdim parameter.
28598 (build_lexicographical_constraint): Adjust call to
28599 ppl_powerset_is_empty.
28600 (dependence_polyhedron): Same.
28601 (graphite_legal_transform_dr): Same.
28602 (graphite_carried_dependence_level_k): Same.
28603 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
28604 parameter.
28605 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
28606
28607 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28608
28609 * graphite-sese-to-poly.c
28610 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
28611 (close_phi_written_to_memory): New.
28612 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
28613 and unshare_expr.
28614
28615 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28616
28617 * doc/install.texi: Update the expected version number of PPL to 0.11.
28618 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
28619 #if PPL_VERSION_MINOR < 11.
28620
28621 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28622
28623 * graphite-dependences.c: Include graphite-cloog-util.h.
28624 (new_poly_ddr): Inlined into dependence_polyhedron.
28625 (free_poly_ddr): Moved close by new_poly_ddr.
28626 (dependence_polyhedron_1): Renamed dependence_polyhedron.
28627 Early return NULL when ppl_powerset_is_empty returns true.
28628 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
28629 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
28630 (graphite_legal_transform_dr): Call new_poly_ddr.
28631 (graphite_carried_dependence_level_k): Same.
28632 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
28633 (dot_transformed_deps_stmt_1): Removed.
28634 (dot_deps_stmt_1): Call dot_deps_stmt_2.
28635 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
28636 (dot_deps_1): Call dot_deps_2.
28637 * Makefile.in (graphite-dependences.o): Add missing dependence on
28638 graphite-cloog-util.h.
28639
28640 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28641
28642 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
28643 (build_lexicographical_constraint): Same.
28644 (dependence_polyhedron_1): Same.
28645 (graphite_legal_transform_dr): Same.
28646 (graphite_carried_dependence_level_k): Same.
28647 * graphite-ppl.c (ppl_powerset_is_empty): New.
28648 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
28649 * tree-data-ref.c (dump_data_reference): Print the basic block index.
28650
28651 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28652
28653 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
28654 the "a followed by b" relation and document it.
28655
28656 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28657
28658 * graphite-dependences.c (build_lexicographical_constraint): Stop the
28659 iteration when the bag of constraints is empty.
28660
28661 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28662
28663 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
28664
28665 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28666
28667 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
28668 nest and two loop depths as parameters.
28669 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
28670 lst_perfect_nestify.
28671
28672 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28673
28674 * graphite-dependences.c (print_pddr): Call
28675 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
28676
28677 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28678
28679 * graphite-ppl.c (debug_gmp_value): New.
28680 * graphite-ppl.h (debug_gmp_value): Declared.
28681
28682 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
28683
28684 * doc/install.texi: Document availability of cloog-0.16.
28685
28686 2011-01-25 Vladimir Kargov <kargov@gmail.com>
28687
28688 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
28689 invalid postdominance info.
28690
28691 2011-01-24 Jan Hubicka <jh@suse.cz>
28692
28693 PR c/21659
28694 * doc/extend.texi (weak pragma): Drop claim that it must
28695 appear before definition.
28696 * varasm.c (merge_weak, declare_weak): Only sanity check
28697 that DECL is not output at a time it is declared weak.
28698
28699 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
28700
28701 * machmode.def: Fixed comments.
28702
28703 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
28704
28705 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
28706
28707 2011-01-24 Paul Koning <ni1d@arrl.net>
28708
28709 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
28710 WORDS_BIG_ENDIAN.
28711
28712 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
28713
28714 PR target/46519
28715 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
28716 (block_info): Add scanned and prev.
28717 (move_or_delete_vzeroupper_2): Return if the basic block
28718 has been scanned and the upper 128bit state is unchanged
28719 from the last scan.
28720 (move_or_delete_vzeroupper_1): Return true if the exit
28721 state is changed.
28722 (move_or_delete_vzeroupper): Visit basic blocks using the
28723 work-list based algorithm based on vt_find_locations in
28724 var-tracking.c.
28725
28726 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
28727
28728 2011-01-24 Nick Clifton <nickc@redhat.com>
28729
28730 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
28731 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
28732 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
28733 then define __v850e1__.
28734 * doc/invoke.texi: Document -mv850es.
28735
28736 2011-01-24 Richard Henderson <rth@redhat.com>
28737
28738 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
28739 compound unordered comparisons.
28740 * config/rx/rx.c (rx_split_fp_compare): Remove.
28741 * config/rx/rx-protos.h: Update.
28742 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
28743 (cbranchsf4): Don't call rx_split_fp_compare.
28744 (*cbranchsf4): Use rx_split_cbranch.
28745 (*cmpsf): Don't accept "i" constraint.
28746 (*conditional_branch): Only valid after reload.
28747 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
28748
28749 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
28750
28751 PR target/47385
28752 * config/rs6000/altivec.md (vector constant splitters): Add
28753 support for creating vector single precision constants if -mvsx is
28754 used and we would create the constant using Altivec primitives.
28755
28756 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
28757 Richard Sandiford <rdsandiford@googlemail.com>
28758
28759 PR rtl-optimization/47166
28760 * reload1.c (emit_reload_insns): Disable the spill_reg_store
28761 mechanism for PRE_MODIFY and POST_MODIFY.
28762 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
28763 reloadreg.
28764
28765 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
28766
28767 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
28768
28769 2011-01-22 Jan Hubicka <jh@suse.cz>
28770
28771 PR lto/47333
28772 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
28773
28774 2011-01-22 Jan Hubicka <jh@suse.cz>
28775
28776 PR tree-optimization/43884
28777 PR lto/44334
28778 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
28779 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
28780
28781 2011-01-22 Anatoly Sokolov <aesok@post.ru>
28782
28783 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
28784 * config/s390/s390.c (s390_register_move_cost,
28785 s390_memory_move_cost): New.
28786 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
28787
28788 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28789
28790 PR middle-end/47401
28791 * except.c (sjlj_assign_call_site_values): Move setting the
28792 crtl->uses_eh_lsda flag to ...
28793 (sjlj_mark_call_sites): ... here.
28794 (sjlj_emit_function_enter): Support NULL dispatch label.
28795 (sjlj_build_landing_pads): In a function with no landing pads
28796 that still has must-not-throw regions, generate code to register
28797 a personality function with empty LSDA.
28798
28799 2011-01-21 Richard Henderson <rth@redhat.com>
28800
28801 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
28802
28803 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
28804
28805 * compare-elim.c: New file.
28806 * Makefile.in (OBJS-common): Add it.
28807 (compare-elim.o): New.
28808 * common.opt (fcompare-elim): New.
28809 * opts.c (default_options_table): Add OPT_fcompare_elim.
28810 * tree-pass.h (pass_compare_elim_after_reload): New.
28811 * passes.c (init_optimization_passes): Add it.
28812 * recog.h: Protect against re-inclusion.
28813 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
28814 * doc/invoke.texi (-fcompare-elim): Document it.
28815 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
28816 * doc/tm.texi: Rebuild.
28817
28818 2011-01-22 Nick Clifton <nickc@redhat.com>
28819
28820 * config/rx/rx.md (cstoresf4): Pass comparison operator to
28821 rx_split_fp_compare.
28822
28823 2011-01-22 Nick Clifton <nickc@redhat.com>
28824
28825 * config/rx/rx.md (UNSPEC_CONST): New.
28826 (deallocate_and_return): Wrap the amount popped off the stack in
28827 an UNSPEC_CONST in order to stop it being rejected by
28828 -mmax-constant-size.
28829 (pop_and_return): Add a "(return)" rtx.
28830 (call): Drop the immediate operand.
28831 (call_internal): Likewise.
28832 (call_value): Likewise.
28833 (call_value_internal): Likewise.
28834 (sibcall_internal): Likewise.
28835 (sibcall_value_internal): Likewise.
28836 (sibcall): Likewise. Generate an explicit call using
28837 sibcall_internal.
28838 (sibcall_value): Likewise.
28839 (mov<>): FAIL if a constant operand is not legitimate.
28840 (addsi3_unpsec): New pattern.
28841
28842 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
28843 (ok_for_max_constant): New function.
28844 (gen_safe_add): New function.
28845 (rx_expand_prologue): Use gen_safe_add.
28846 (rx_expand_epilogue): Likewise.
28847 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
28848 UNSPEC CONSTs.
28849
28850 2011-01-21 Jeff Law <law@redhat.com>
28851
28852 PR tree-optimization/47053
28853 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
28854 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
28855 statements are deleted.
28856 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
28857 is nonempty, then purge dead edges and cleanup the CFG.
28858
28859 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28860
28861 PR debug/47402
28862 Temporarily revert:
28863 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28864 PR debug/47106
28865 * tree-dfa.c (create_var_ann): Mark variable as used.
28866
28867 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28868
28869 PR middle-end/45566
28870 * except.c (convert_to_eh_region_ranges): Emit queued no-region
28871 notes from other section in hot/cold partitioning even if
28872 last_action is -3. Increment call_site_base.
28873
28874 PR rtl-optimization/47366
28875 * fwprop.c (forward_propagate_into): Return bool. If
28876 any changes are made, -fnon-call-exceptions is used and
28877 REG_EH_REGION note is present, call purge_dead_edges
28878 and return true if it purged anything.
28879 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
28880 any EH edges were purged.
28881
28882 2011-01-21 Jeff Law <law@redhat.com>
28883
28884 PR rtl-optimization/41619
28885 * caller-save.c (setup_save_areas): Break out code to determine
28886 which hard regs are live across calls by examining the reload chains
28887 so that it is always used.
28888 Eliminate code which checked REG_N_CALLS_CROSSED.
28889
28890 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28891
28892 PR tree-optimization/47355
28893 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
28894 NOP has non-debug uses beyond PHIs in new_bb.
28895
28896 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28897
28898 PR debug/47106
28899 * cfgexpand.c (account_used_vars_for_block): Only account vars
28900 that are annotated as used.
28901 (estimated_stack_frame_size): Don't set TREE_USED.
28902 * tree-dfa.c (create_var_ann): Mark variable as used.
28903
28904 2011-01-21 Richard Guenther <rguenther@suse.de>
28905
28906 PR middle-end/47395
28907 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
28908
28909 2011-01-21 Richard Guenther <rguenther@suse.de>
28910
28911 PR tree-optimization/47365
28912 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
28913 (vn_reference_lookup_pieces): Adjust.
28914 (vn_reference_lookup): Likewise.
28915 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
28916 (vn_reference_lookup_3): Only look through kills if in
28917 VN_WALKREWRITE mode.
28918 (vn_reference_lookup_pieces): Adjust.
28919 (vn_reference_lookup): Likewise.
28920 (visit_reference_op_load): Likewise.
28921 (visit_reference_op_store): Likewise.
28922 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
28923 (compute_avail): Likewise.
28924 (eliminate): Likewise.
28925
28926 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28927
28928 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
28929 DECL_IGNORED_P non-reg vars if they are used.
28930
28931 PR tree-optimization/47391
28932 * varpool.c (const_value_known_p): Return false if
28933 decl is volatile.
28934
28935 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
28936
28937 PR bootstrap/47215
28938 * config/i386/i386.c (ix86_local_alignment): Handle
28939 case for va_list_type_node is nil.
28940 (ix86_canonical_va_list_type): Likewise.
28941
28942 2011-01-21 Alan Modra <amodra@gmail.com>
28943
28944 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
28945 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
28946
28947 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28948
28949 * config/arm/arm.md (define_attr type): Rename f_load
28950 and f_store to f_fpa_load and f_fpa_store. Update.
28951 (write_conflict): Deal with rename fallout.
28952 (*push_fp_multi): Likewise.
28953 * config/arm/fpa.md (f_load): Use f_fpa_load.
28954 (f_store): Use f_fpa_store.
28955 (*movsf_fpa): Likewise.
28956 (*movdf_fpa): Likewise.
28957 (*movxf_fpa): Likewise.
28958 (*thumb2_movsf_fpa): Likewise.
28959 (*thumb2_movdf_fpa): Likewise.
28960 (*thumb2_movxf_fpa): Likewise.
28961 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
28962 f_loadd and f_stored.
28963 (*thumb2_movdi_vfp): Likewise.
28964 (*thumb2_movsf_vfp): Fix attribute to f_loads.
28965 (*thumb2_movsi_vfp): Likewise.
28966 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
28967 Use f_loads instead of f_load.
28968 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
28969
28970 2011-01-20 Anatoly Sokolov <aesok@post.ru>
28971
28972 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28973 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
28974 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28975 (xtensa_mode_dependent_address_p): New function.
28976 (constantpool_address_p): Make static. Change return type to bool.
28977 Change argument type to const_rtx. Use CONST_INT_P predicate.
28978
28979 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
28980
28981 PR debug/46583
28982 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
28983
28984 2011-01-20 Jakub Jelinek <jakub@redhat.com>
28985
28986 PR debug/47283
28987 * cfgexpand.c (expand_debug_expr): Instead of generating
28988 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
28989 etc. handling.
28990
28991 2011-01-20 Richard Guenther <rguenther@suse.de>
28992
28993 PR middle-end/47370
28994 * tree-inline.c (remap_gimple_op_r): Recurse manually for
28995 the pointer operand of MEM_REFs.
28996
28997 2011-01-20 Jakub Jelinek <jakub@redhat.com>
28998
28999 PR tree-optimization/46130
29000 * ipa-split.c (consider_split): If return_bb contains non-virtual
29001 PHIs other than for retval or if split_function would not adjust it,
29002 refuse to split.
29003
29004 2011-01-20 Richard Guenther <rguenther@suse.de>
29005
29006 PR tree-optimization/47167
29007 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
29008 Revert previous change, only avoid enumeral type changes.
29009
29010 2011-01-19 Mike Stump <mikestump@comcast.net>
29011
29012 * doc/tm.texi.in (BRANCH_COST): Englishify.
29013 * doc/tm.texi (BRANCH_COST): Likewise.
29014
29015 2011-01-19 Dodji Seketeli <dodji@redhat.com>
29016
29017 PR c++/47291
29018 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
29019 (gen_scheduled_generic_parms_dies): New functions.
29020 (gen_struct_or_union_type_die): Schedule template parameters DIEs
29021 generation for the end of CU compilation.
29022 (dwarf2out_finish): Generate template parameters DIEs here.
29023
29024 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
29025
29026 PR debug/46240
29027 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
29028 debug bind stmt on merge edges.
29029
29030 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
29031
29032 PR debug/47079
29033 PR debug/46724
29034 * function.c (instantiate_expr): Instantiate incoming rtl of
29035 implicit arguments, and recurse on VALUE_EXPRs.
29036 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
29037 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
29038
29039 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
29040
29041 * c-parser.c (c_parser_for_statement): Initialize
29042 collection_expression.
29043
29044 2011-01-19 Joseph Myers <joseph@codesourcery.com>
29045
29046 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
29047
29048 2011-01-19 Joseph Myers <joseph@codesourcery.com>
29049
29050 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
29051 (LINK_SHLIB_SPEC): Don't use %(link_path).
29052 (SUBTARGET_EXTRA_SPECS): Remove link_path.
29053
29054 2011-01-19 Joseph Myers <joseph@codesourcery.com>
29055
29056 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
29057 (NO_SHARED_LIB_SUPPORT): Remove.
29058 (LINK_SHLIB_SPEC): Remove one conditional definition.
29059
29060 2011-01-19 Joseph Myers <joseph@codesourcery.com>
29061
29062 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
29063 %{call_shared}.
29064 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
29065 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
29066 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
29067 %{call_shared} and conditionals on these options not being passed.
29068 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
29069 %{call_shared}.
29070
29071 2011-01-19 Jakub Jelinek <jakub@redhat.com>
29072
29073 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
29074 simplify.
29075
29076 * ipa-split.c: Spelling fixes.
29077
29078 2011-01-19 Richard Henderson <rth@redhat.com>
29079
29080 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
29081 (*mulsi3): Likewise.
29082
29083 * longlong.h [__mn10300__] (count_leading_zeros): New.
29084 [__mn10300__] (umul_ppmm, smul_ppmm): New.
29085 [__mn10300__] (add_ssaaaa, subddmmss): New.
29086 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
29087 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
29088
29089 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29090
29091 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
29092
29093 2011-01-19 Richard Henderson <rth@redhat.com>
29094
29095 * config/mn10300/mn10300.md (addsi3_flags): New.
29096 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
29097 (subsi3_flags, subc_internal, subdi3): New.
29098 (subdi3_internal, *subdi3_degenerate): New.
29099 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
29100
29101 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
29102 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
29103 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
29104 * config/mn10300/mn10300-protos.h: Update.
29105 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
29106 (return_ret): Likewise. Rename from return_internal_regs.
29107 (return_internal): Remove.
29108
29109 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
29110 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
29111 (mn10300_legitimate_constant_p): Likewise.
29112 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
29113 (mn10300_frame_size): New.
29114 (mn10300_expand_prologue): Use it.
29115 (mn10300_expand_epilogue): Likewise.
29116 (mn10300_initial_offset): Likewise.
29117 * config/mn10300/mn10300-protos.h: Update.
29118 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
29119 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
29120 (prologue, epilogue, return_internal): Tidy output code.
29121 (mn10300_store_multiple_operation, return): Likewise.
29122 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
29123 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
29124 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
29125 (load_pic, am33_load_pic): New.
29126 (mn10300_load_pic0, mn10300_load_pic1): New.
29127
29128 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
29129 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
29130 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
29131 (cc_flags_for_mode, cc_flags_for_code): New.
29132 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
29133 overflow flag is not valid. Validate that the flags we need
29134 for the comparison are valid.
29135 (mn10300_output_cmp): Remove.
29136 (mn10300_output_add): New.
29137 (mn10300_select_cc_mode): Use cc_flags_for_code.
29138 (mn10300_split_cbranch): New.
29139 (mn10300_match_ccmode): New.
29140 (mn10300_split_and_operand_count): New.
29141 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
29142 to the function.
29143 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
29144 (addsi3): ... here. Use mn10300_output_add.
29145 (*addsi3_flags): New.
29146 (*am33_subsi3, *mn10300_subsi3): Merge...
29147 (subsi3): ... here. Use attribute isa.
29148 (*subsi3_flags): New.
29149 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
29150 when possible.
29151 (*am33_andsi3, *mn10300_andsi3): Merge...
29152 (andsi3): ... here.
29153 (*andsi3_flags): New.
29154 (andsi3 splitters): New.
29155 (*am33_iorsi3, *mn10300_iorsi3): Merge...
29156 (iorsi3): ... here.
29157 (*iorsi3_flags): New.
29158 (*am33_xorsi3, *mn10300_xorsi3): Merge...
29159 (xorsi3): ... here.
29160 (*xorsi3_flags): New.
29161 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
29162 (one_cmplsi2): ... here.
29163 (*one_cmplsi2_flags): New.
29164 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
29165 instead of "dax" in constraints. Use mn10300_split_cbranch.
29166 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
29167 use matching constraints to eliminate a self-comparison.
29168 (*integer_conditional_branch): Rename from integer_conditional_branch.
29169 Use int_mode_flags to match CC_REG.
29170 (*cbranchsi4_btst, *btstsi): New.
29171 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
29172 mn10300_split_cbranch.
29173 (*am33_cmpsf): Rename from am33_cmpsf.
29174 (*float_conditional_branch): Rename from float_conditional_branch.
29175 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
29176 (zero_extendqisi2): ... here.
29177 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
29178 (zero_extendhisi2): ... here.
29179 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
29180 (extendqisi2): ... here.
29181 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
29182 (extendhisi2): ... here.
29183 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
29184 (ashlsi3): ... here.
29185 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
29186 (lshrsi3): ... here.
29187 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
29188 (ashrsi3): ... here.
29189 (consecutive add peephole): Remove.
29190 * config/mn10300/predicates.md (label_ref_operand): New.
29191 (int_mode_flags): New.
29192 (CCZN_comparison_operator): New.
29193
29194 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
29195 (throughput_42_latency_43): New reservation.
29196 (mulsidi3, umulsidi3): New expanders.
29197 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
29198 the MDR register to allocation; separately allocate the low and
29199 high parts of the DImode result.
29200 (umulsidi3_internal): Similarly.
29201 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
29202 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
29203 (udivsi3, umodsi3): Remove.
29204 (udivmodsi4, divmodsi4): New expanders.
29205 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
29206 (*divmodsi4): Simiarly.
29207 (ext_internal): New.
29208
29209 * config/mn10300/constraints.md ("z"): New constraint.
29210 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
29211 (FIXED_REGISTERS): Don't fix MDR.
29212 (CALL_USED_REGSITERS): Reformat nicely.
29213 (REG_ALLOC_ORDER): Add MDR.
29214 (enum regclass): Add MDR_REGS.
29215 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
29216 (IRA_COVER_CLASSES): Add MDR_REGS.
29217 (REGNO_REG_CLASS): Handle MDR_REG.
29218 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
29219 (mn10300_register_move_cost): Likewise.
29220 * config/mn10300/mn10300.md (MDR_REG): New.
29221 (*movsi_internal): Handle moves to/from MDR_REGS.
29222
29223 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
29224 POST_MODIFY.
29225 (mn10300_secondary_reload): Tidy combination reload classes.
29226 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
29227 addresses for AM33. Allow symbolic offsets for reg+imm.
29228 (mn10300_regno_in_class_p): New.
29229 (mn10300_legitimize_reload_address): New.
29230 * config/mn10300/mn10300.h (enum reg_class): Remove
29231 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
29232 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
29233 SP_OR_GENERAL_REGS.
29234 (REG_CLASS_NAMES): Update to match.
29235 (REG_CLASS_CONTENTS): Likewise.
29236 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
29237 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
29238 (REGNO_IN_RANGE_P): Remove.
29239 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
29240 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
29241 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
29242 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
29243 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
29244 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
29245 (REGNO_GENERAL_P): New.
29246 (HAVE_POST_MODIFY_DISP): New.
29247 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
29248 (LEGITIMIZE_RELOAD_ADDRESS): New.
29249 * config/mn10300/mn10300-protos.h: Update.
29250
29251 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
29252 DATA_REGS for AM33 stack-pointer destination.
29253 (mn10300_preferred_output_reload_class): Likewise.
29254 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
29255 into a form appropriate for ...
29256 (TARGET_SECONDARY_RELOAD): New.
29257 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
29258 * config/mn10300/mn10300-protos.h: Update.
29259 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
29260 reload_insi; use the "A" constraint for the scratch; handle AM33
29261 moves of sp to non-address registers.
29262
29263 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
29264 (*movqi_internal): ... here.
29265 (*am33_movhi, *mn10300_movhi): Merge into...
29266 (*movhi_internal): ... here.
29267 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
29268 as the source/destination of moves from/to SP.
29269 (movsf): Only allow for AM33-2.
29270 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
29271 any integer constant constraint. Only allow for AM33-2. Tidy
29272 all of the alternative outputs.
29273 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
29274 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
29275 for MN103.
29276 (udivsi3, umodsi3): New patterns for MN103 only.
29277
29278 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
29279
29280 * doc/tm.texi.in: Spell out that a lack of register class unions
29281 can lead to ICEs.
29282 * doc/tm.texi: Regenerate.
29283
29284 2011-01-19 Jakub Jelinek <jakub@redhat.com>
29285
29286 PR rtl-optimization/47337
29287 * dce.c (check_argument_store): New function.
29288 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
29289
29290 PR tree-optimization/47290
29291 * tree-eh.c (infinite_empty_loop_p): New function.
29292 (cleanup_empty_eh): Use it.
29293
29294 2011-01-18 Steve Ellcey <sje@cup.hp.com>
29295
29296 PR target/46997
29297 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
29298 (a64_expand_widen_sum): Ditto.
29299 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
29300 (vec_extract_evenodd_help): Ditto.
29301 (vec_extract_evenv4hi): Ditto.
29302 (vec_extract_oddv4hi): Ditto.
29303 (vec_extract_evenv2si): Ditto.
29304 (vec_extract_oddv2si): Ditto.
29305 (vec_extract_evenv2sf): Ditto.
29306 (vec_extract_oddv2sf): Ditto.
29307 (vec_pack_trunc_v4hi: Ditto.
29308 (vec_pack_trunc_v2si): Ditto.
29309 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
29310 (vec_interleave_highv8qi): Ditto.
29311 (mix1_r): Ditto.
29312 (vec_extract_oddv8qi): Ditto.
29313 (vec_interleave_lowv4hi): Ditto.
29314 (vec_interleave_highv4hi): Ditto.
29315 (vec_interleave_lowv2si): Ditto.
29316 (vec_interleave_highv2si): Ditto.
29317
29318 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29319
29320 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
29321 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
29322 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
29323 (pa_c_mode_for_suffix): New.
29324 (TARGET_EXPAND_BUILTIN): Define.
29325 (TARGET_C_MODE_FOR_SUFFIX): Define.
29326 (pa_builtins): Define.
29327 (pa_init_builtins): Register __float128 type and init new support
29328 builtins.
29329 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
29330 * config/pa/quadlib.c (_U_Qfcopysign): New.
29331
29332 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
29333
29334 PR middle-end/46894
29335 * explow.c (allocate_dynamic_stack_space): Do not assume more than
29336 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
29337 are defined.
29338
29339 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29340
29341 PR tree-optimization/47179
29342 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
29343 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
29344
29345 2011-01-18 Richard Guenther <rguenther@suse.de>
29346
29347 PR rtl-optimization/47216
29348 * emit-rtl.c: Include tree-flow.h.
29349 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
29350 of replicating it with different semantics.
29351 * Makefile.in (emit-rtl.o): Adjust.
29352
29353 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29354
29355 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
29356 (cortex_a9_dp): Handle neon types correctly.
29357
29358 2011-01-18 Jakub Jelinek <jakub@redhat.com>
29359
29360 PR rtl-optimization/47299
29361 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
29362 subtarget. Use normal multiplication if both operands are constants.
29363 * expmed.c (expand_widening_mult): Don't try to optimize constant
29364 multiplication if op0 has VOIDmode. Convert op1 constant to mode
29365 before using it.
29366
29367 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29368
29369 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
29370 spacing after 'e.g.', typos, comma, hyphenation.
29371
29372 2011-01-17 Richard Henderson <rth@redhat.com>
29373
29374 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
29375 (rx_restricted_mem_operand): New.
29376 (rx_shift_operand): Use register_operand.
29377 (rx_source_operand, rx_compare_operand): Likewise.
29378 * config/rx/rx.md (addsi3_flags): New expander.
29379 (adddi3): Rewrite as expander.
29380 (adc_internal, *adc_flags, adddi3_internal): New patterns.
29381 (subsi3_flags): New expander.
29382 (subdi3): Rewrite as expander.
29383 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
29384
29385 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
29386 (rx_init_builtins): Remove sat builtin.
29387 (rx_expand_builtin): Likewise.
29388 * config/rx/rx.md (ssaddsi3): New.
29389 (*sat): Rename from sat. Represent the CC_REG input.
29390
29391 * config/rx/predicates.md (rshift_operator): New.
29392 * config/rx/rx.c (rx_expand_insv): Remove.
29393 * config/rx/rx-protos.h: Update.
29394 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
29395 operand to the canonical position.
29396 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
29397 (*bitclr, *bitclr_in_memory): Similarly.
29398 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
29399 (insv): Retain the zero_extract in the expansion.
29400
29401 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
29402 (bswaphi2, bitinvert, revw): Likewise.
29403
29404 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
29405 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
29406 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
29407 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
29408 (bitset, bitset_in_memory): Likewise.
29409 (bitinvert, bitinvert_in_memory): Likewise.
29410 (bitclr, bitclr_in_memory): Likewise.
29411 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
29412 (rx_strend, rx_cmpstrn): Likewise.
29413 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
29414 (bitop peep2 patterns): Remove.
29415
29416 * config/rx/rx.c (rx_match_ccmode): New.
29417 * config/rx/rx-protos.h: Update.
29418 * config/rx/rx.md (abssi2): Clobber, don't set flags.
29419 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
29420 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
29421 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
29422 (fix_truncsfsi2, floatsisf2): Likewise.
29423 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
29424 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
29425 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
29426 (*subsi3_flags, *xorsi3_flags): New.
29427
29428 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
29429
29430 * config/rx/rx.c (rx_print_operand): Remove workaround for
29431 unsplit comparison operations.
29432
29433 * config/rx/rx.md (movsicc): Split after reload.
29434 (*movsicc): Merge *movsieq and *movsine via match_operator.
29435 (*stcc): New pattern.
29436
29437 * config/rx/rx.c (rx_float_compare_mode): Remove.
29438 * config/rx/rx.h (rx_float_compare_mode): Remove.
29439 * config/rx/rx.md (cstoresi4): Split after reload.
29440 (*sccc): New pattern.
29441
29442 * config/rx/predicates.md (label_ref_operand): New.
29443 (rx_z_comparison_operator): New.
29444 (rx_zs_comparison_operator): New.
29445 (rx_fp_comparison_operator): New.
29446 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
29447 Validate that the flags are set properly for the comparison.
29448 (rx_gen_cond_branch_template): Remove.
29449 (rx_cc_modes_compatible): Remove.
29450 (mode_from_flags): New.
29451 (flags_from_code): Rename from flags_needed_for_conditional.
29452 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
29453 (rx_select_cc_mode): Likewise.
29454 (rx_split_fp_compare): New.
29455 (rx_split_cbranch): New.
29456 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
29457 (*cbranchsi4): Use match_operator and rx_split_cbranch.
29458 (*cbranchsf4): Similarly.
29459 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
29460 match_operator and rx_split_cbranch.
29461 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
29462 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
29463 (*cmpsi): Rename from cmpsi.
29464 (*tstsi): Rename from tstsi.
29465 (*cmpsf): Rename from cmpsf; use CC_Fmode.
29466 (*conditional_branch): Rename from conditional_branch.
29467 (*reveresed_conditional_branch): Remove.
29468 (b<code>): Remove expander.
29469 * config/rx/rx-protos.h: Update.
29470
29471 * config/rx/rx.c (rx_compare_redundant): Remove.
29472 * config/rx/rx.md (cmpsi): Don't use it.
29473 * config/rx/rx-protos.h: Update.
29474
29475 * config/rx/rx-modes.def (CC_F): New mode.
29476 * config/rx/rx.c (rx_select_cc_mode): New.
29477 * config/rx/rx.h (SELECT_CC_MODE): Use it.
29478 * config/rx/rx-protos.h: Update.
29479
29480 2011-01-17 Richard Henderson <rth@redhat.com>
29481
29482 * except.c (dump_eh_tree): Fix stray ; after for statement.
29483
29484 2011-01-17 Richard Guenther <rguenther@suse.de>
29485
29486 PR tree-optimization/47313
29487 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
29488 handling before copying the body. Properly deal with
29489 by-reference result in SSA form.
29490
29491 2011-01-17 Ian Lance Taylor <iant@google.com>
29492
29493 PR target/47219
29494 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
29495 (struct_value_alias_set): Don't define.
29496 (sparc_option_override): Don't set sparc_sr_alias_set and
29497 struct_value_alias_set.
29498 (save_or_restore_regs): Use gen_frame_mem rather than calling
29499 set_mem_alias_set.
29500 (sparc_struct_value_rtx): Likewise.
29501
29502 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
29503
29504 PR target/47318
29505 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
29506 (_mm_maskstore_pd): Likewise.
29507 (_mm_maskload_ps): Likewise.
29508 (_mm_maskstore_ps): Likewise.
29509 (_mm256_maskload_pd): Change mask to __m256i.
29510 (_mm256_maskstore_pd): Likewise.
29511 (_mm256_maskload_ps): Likewise.
29512 (_mm256_maskstore_ps): Likewise.
29513
29514 * config/i386/i386-builtin-types.def: Updated.
29515 (ix86_expand_special_args_builtin): Likewise.
29516
29517 * config/i386/i386.c (bdesc_special_args): Update
29518 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
29519 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
29520 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
29521 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
29522
29523 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
29524 Use <avxpermvecmode> on mask register.
29525 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
29526
29527 2011-01-17 Olivier Hainque <hainque@adacore.com>
29528 Michael Haubenwallner <michael.haubenwallner@salomon.at>
29529 Eric Botcazou <ebotcazou@adacore.com>
29530
29531 PR target/46655
29532 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
29533 if <= USHRT_MAX in 32-bit mode.
29534
29535 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29536
29537 * doc/install.texi (Configuration, Specific): Wrap long
29538 lines in examples. Allow line wrapping in long options
29539 and URLs where beneficial for PDF output.
29540
29541 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
29542
29543 * config/mips/mips.c (mips_classify_symbol): Don't return
29544 SYMBOL_PC_RELATIVE for nonlocal labels.
29545
29546 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
29547
29548 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
29549
29550 2011-01-15 Jan Hubicka <jh@suse.cz>
29551
29552 PR tree-optimization/47276
29553 * ipa.c (function_and_variable_visibility): Do not try to mark alias
29554 declarations as needed.
29555
29556 2011-01-15 Martin Jambor <mjambor@suse.cz>
29557
29558 * common.opt (fdevirtualize): New flag.
29559 * doc/invoke.texi (Option Summary): Document it.
29560 * opts.c (default_options_table): Add devirtualize flag.
29561 * ipa-prop.c (detect_type_change): Return immediately if
29562 devirtualize flag is not set.
29563 (detect_type_change_ssa): Likewise.
29564 (compute_known_type_jump_func): Likewise.
29565 (ipa_analyze_virtual_call_uses): Likewise.
29566
29567 2011-01-14 Martin Jambor <mjambor@suse.cz>
29568
29569 PR tree-optimization/45934
29570 PR tree-optimization/46302
29571 * ipa-prop.c (type_change_info): New type.
29572 (stmt_may_be_vtbl_ptr_store): New function.
29573 (check_stmt_for_type_change): Likewise.
29574 (detect_type_change): Likewise.
29575 (detect_type_change_ssa): Likewise.
29576 (compute_complex_assign_jump_func): Check for dynamic type change.
29577 (compute_complex_ancestor_jump_func): Likewise.
29578 (compute_known_type_jump_func): Likewise.
29579 (compute_scalar_jump_functions): Likewise.
29580 (ipa_analyze_virtual_call_uses): Likewise.
29581 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
29582
29583 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29584
29585 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
29586 * config/i386/i386.opt (msse5): New Alias.
29587
29588 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29589
29590 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
29591 * config/sparc/linux64.h (CC1_SPEC): Likewise.
29592 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
29593 * config/sparc/sparc.h (CC1_SPEC): Likewise.
29594
29595 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29596
29597 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
29598 -mcpu options.
29599 * config/sparc/linux64.h (CC1_SPEC): Likewise.
29600 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
29601 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
29602 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
29603 Likewise.
29604 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
29605
29606 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29607
29608 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
29609
29610 2011-01-14 Mike Stump <mikestump@comcast.net>
29611
29612 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
29613 * config/fr30/fr30.md: Likweise
29614 (movsi_push): Likewise.
29615 (movsi_pop): Likewise.
29616 (enter_func): Likewise.
29617 * config/moxie/moxie.md (movsi_push): Likewise.
29618 (movsi_pop): Likewise.
29619
29620 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29621
29622 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
29623 %{no_archive} %{exact_version}.
29624 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
29625 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
29626 %{no_archive} %{exact_version}.
29627 * config/mips/openbsd.h (LINK_SPEC): Likewise.
29628 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
29629 * config/mips/vxworks.h: Likewise.
29630
29631 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29632
29633 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
29634
29635 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29636
29637 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
29638 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
29639
29640 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29641
29642 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
29643 -nodefaultlib.
29644
29645 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29646
29647 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
29648 for mcpu not cpu.
29649 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
29650 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
29651 not cpu.
29652 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
29653 Don't handle -shlib.
29654
29655 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29656
29657 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
29658 (CC1_SPEC): Don't handle -profile.
29659
29660 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29661
29662 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
29663 * config/mips/mips.h (CC1_SPEC): Likewise.
29664
29665 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29666
29667 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
29668 * config/mips/mips.h (CC1_SPEC): Likewise.
29669
29670 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29671
29672 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
29673 * config/m32r/linux.h (LINK_SPEC): Likewise.
29674 * config/mips/linux.h (LINK_SPEC): Likewise.
29675 * config/mips/linux64.h (LINK_SPEC): Likewise.
29676 * config/sparc/linux.h (LINK_SPEC): Likewise.
29677 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
29678 LINK_SPEC): Likewise.
29679 * config/xtensa/linux.h (LINK_SPEC): Likewise.
29680
29681 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29682
29683 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
29684 %{version:-v}.
29685 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
29686
29687 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29688
29689 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
29690 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
29691
29692 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29693
29694 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
29695
29696 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29697
29698 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
29699 supports -Bstatic/-Bdynamic.
29700 * configure: Regenerate.
29701
29702 2011-01-14 Jan Hubicka <jh@suse.cz>
29703 Jack Howarth <howarth@bromo.med.uc.edu>
29704
29705 PR target/46037
29706 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
29707 when checking debug_info_level. Test write_symbols instead of
29708 debug_hooks->var_location when setting flag_var_tracking_uninit.
29709
29710 2011-01-14 Richard Guenther <rguenther@suse.de>
29711
29712 PR tree-optimization/47179
29713 * target.def (ref_may_alias_errno): New target hook.
29714 * targhooks.h (default_ref_may_alias_errno): Declare.
29715 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
29716 (default_ref_may_alias_errno): New function.
29717 * target.h (struct ao_ref_s): Declare.
29718 * tree-ssa-alias.c: Include target.h.
29719 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
29720 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
29721 (targhooks.o): Likewise.
29722 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
29723 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
29724
29725 2011-01-14 Richard Guenther <rguenther@suse.de>
29726
29727 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
29728
29729 2011-01-14 Richard Guenther <rguenther@suse.de>
29730
29731 PR tree-optimization/47280
29732 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
29733 return CFG changes.
29734 (tree_ssa_forward_propagate_single_use_vars): Deal with
29735 CFG changes from associate_plusminus.
29736
29737 2011-01-14 Richard Guenther <rguenther@suse.de>
29738
29739 PR middle-end/47281
29740 Revert
29741 2011-01-11 Richard Guenther <rguenther@suse.de>
29742
29743 PR tree-optimization/46076
29744 * tree-ssa.c (useless_type_conversion_p): Conversions from
29745 unprototyped to empty argument list function types are useless.
29746
29747 2011-01-14 Richard Guenther <rguenther@suse.de>
29748
29749 PR tree-optimization/47286
29750 * tree-ssa-structalias.c (new_var_info): Register variables are global.
29751
29752 2011-01-14 Martin Jambor <mjambor@suse.cz>
29753
29754 PR middle-end/46823
29755 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
29756
29757 2011-01-13 Anatoly Sokolov <aesok@post.ru>
29758
29759 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
29760 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
29761 * config/xtensa/xtensa.c (xtensa_libcall_value,
29762 xtensa_function_value_regno_p): New functions.
29763 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
29764
29765 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
29766
29767 PR c++/47213
29768 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
29769 PE specific hook.
29770 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
29771 New function prototype.
29772 * config/i386/winnt.c (i386_pe_assemble_visibility):
29773 Warn only if attribute was specified by user.
29774
29775 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
29776
29777 PR target/47251
29778 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
29779 floating point.
29780 (floatunsdidf2_fcfidu): Ditto.
29781
29782 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29783
29784 * config/s390/s390.c (print_operand_address): Replace 'error' with
29785 'output_operand_lossage'.
29786 (print_operand): Likewise.
29787
29788 2011-01-13 Jeff Law <law@redhat.com>
29789
29790 PR rtl-optimization/39077
29791 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
29792 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
29793 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
29794 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
29795 * gcse.c (prune_insertions_deletions): New function.
29796 (compute_pre_data): Use it.
29797
29798 2011-01-13 Dodji Seketeli <dodji@redhat.com>
29799
29800 PR debug/PR46973
29801 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
29802 static function.
29803 (prune_unused_types_mark): Use it.
29804
29805 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
29806
29807 PR rtl-optimization/45352
29808 * sel-sched.c: Update copyright years.
29809 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
29810 in the advancing loop when we have issued issue_rate insns.
29811
29812 2011-01-12 Richard Henderson <rth@redhat.com>
29813
29814 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
29815 (TARGET_MD_ASM_CLOBBERS): New.
29816
29817 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
29818 (TARGET_DELEGITIMIZE_ADDRESS): New.
29819
29820 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
29821 (clzsi2, *bsch): New patterns.
29822
29823 * config/mn10300/mn10300.md (INT): New mode iterator.
29824 (*mov<INT>_clr): New pattern, and peep2 to generate it.
29825
29826 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
29827 flag_split_wide_types.
29828
29829 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
29830 (mn10300_trampoline_init): Rewrite without a template, an immediate
29831 load and a direct branch.
29832 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
29833
29834 2011-01-12 Anatoly Sokolov <aesok@post.ru>
29835
29836 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
29837 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
29838 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
29839 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
29840
29841 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
29842
29843 PR debug/47209
29844 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
29845 of type.
29846
29847 2011-01-12 Jan Hubicka <jh@suse.cz>
29848
29849 PR driver/47244
29850 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
29851 (PLUGIN_COND_CLOSE): New macro.
29852 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
29853
29854 2011-01-12 Richard Guenther <rguenther@suse.de>
29855
29856 PR lto/47259
29857 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
29858 register variables in a MEM_REF.
29859
29860 2011-01-12 Joseph Myers <joseph@codesourcery.com>
29861
29862 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
29863 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
29864 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
29865 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
29866 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
29867 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
29868 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
29869 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
29870 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
29871 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
29872 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
29873 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
29874 * config/gnu-user.h: New. Copied from linux.h.
29875 (LINUX_TARGET_STARTFILE_SPEC): Rename to
29876 GNU_USER_TARGET_STARTFILE_SPEC.
29877 (LINUX_TARGET_ENDFILE_SPEC): Rename to
29878 GNU_USER_TARGET_ENDFILE_SPEC.
29879 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
29880 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
29881 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
29882 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
29883 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
29884 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
29885 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
29886 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
29887 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
29888 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
29889 * config/arm/linux-eabi.h (CC1_SPEC): Use
29890 GNU_USER_TARGET_CC1_SPEC.
29891 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
29892 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
29893 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
29894 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
29895 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
29896 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
29897 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
29898 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
29899
29900 2011-01-12 Richard Guenther <rguenther@suse.de>
29901
29902 PR other/46946
29903 * doc/invoke.texi (ffast-math): Document it is turned on
29904 with -Ofast.
29905
29906 2011-01-12 Jan Hubicka <jh@suse.cz>
29907
29908 PR tree-optimization/47233
29909 * opts.c (common_handle_option): Disable ipa-reference with profile
29910 feedback.
29911
29912 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
29913
29914 * c-parser.c (c_parser_objc_at_property_declaration): Improved
29915 error message.
29916
29917 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
29918
29919 * c-parser.c (c_lex_one_token): Updated and reindented some
29920 comments. No changes in code.
29921
29922 2011-01-11 Ian Lance Taylor <iant@google.com>
29923
29924 * godump.c (go_output_var): Don't output the variable if there is
29925 already a type with the same name.
29926
29927 2011-01-11 Ian Lance Taylor <iant@google.com>
29928
29929 * godump.c (go_format_type): Don't generate float80.
29930
29931 2011-01-11 Richard Henderson <rth@redhat.com>
29932
29933 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
29934 declaration. Rewrite for both speed and size.
29935 (mn10300_address_cost_1): Remove.
29936 (mn10300_register_move_cost): New.
29937 (mn10300_memory_move_cost): New.
29938 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
29939 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
29940 extensions, shifts, BSWAP, CLZ.
29941 (mn10300_wide_const_load_uses_clr): Remove.
29942 (TARGET_REGISTER_MOVE_COST): New.
29943 (TARGET_MEMORY_MOVE_COST): New.
29944 * config/mn10300/mn10300-protos.h: Update.
29945 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
29946
29947 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
29948 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
29949 * config/mn10300/mn10300-protos.h: Update.
29950 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
29951 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
29952 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
29953 (*test_int_bitfield, *test_byte_bitfield): Remove.
29954 (*bit_test, *subreg_bit_test): Remove.
29955 * config/mn10300/predicates.md (const_8bit_operand): Remove.
29956
29957 * config/mn10300/constraints.md ("c"): Rename from "A".
29958 ("A", "D"): New constraint letters.
29959 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
29960 (fmssf4, fnmasf4, fnmssf4): Likewise.
29961
29962 * config/mn10300/mn10300.md (isa): New attribute.
29963 (enabled): New attribute.
29964
29965 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
29966 (abssf2, negsf2): Define only for hardware fp.
29967 (sqrtsf2): Reformat.
29968 (addsf3, subsf3, mulsf3): Merge expander and insn.
29969
29970 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
29971 (DEBUGGER_AUTO_OFFSET): Remove.
29972 (DEBUGGER_ARG_OFFSET): Remove.
29973
29974 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
29975 Emit register stores with the same offsets as the hardware.
29976 (mn10300_store_multiple_operation): Don't check that the register
29977 save offsets are monotonic.
29978 * config/mn10300/mn10300-protos.h: Update.
29979
29980 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
29981
29982 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
29983 in terms of the value on the stack, not the MDR register.
29984
29985 2011-01-11 Jan Hubicka <jh@suse.cz>
29986
29987 PR lto/45721
29988 PR lto/45375
29989 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
29990 (symbol_alias_set_destroy, symbol_alias_set_contains,
29991 propagate_aliases_backward): Declare.
29992 * lto-streamer-out.c (struct sets): New sturcture.
29993 (trivally_defined_alias): New function.
29994 (output_alias_pair_p): Rewrite.
29995 (output_unreferenced_globals): Fix output of alias pairs.
29996 (produce_symtab): Likewise.
29997 * ipa.c (function_and_variable_visibility): Set weak alias destination
29998 as needed in lto.
29999 * varasm.c (symbol_alias_set_t): Remove.
30000 (symbol_alias_set_destroy): Export.
30001 (propagate_aliases_forward, propagate_aliases_backward): New functions
30002 based on ...
30003 (compute_visible_aliases): ... this one; remove.
30004 (trivially_visible_alias): New
30005 (trivially_defined_alias): New.
30006 (remove_unreachable_alias_pairs): Rewrite.
30007 (finish_aliases_1): Reorganize code checking if alias is defined.
30008 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
30009 in LTO mode.
30010
30011 2011-01-11 Richard Guenther <rguenther@suse.de>
30012
30013 PR tree-optimization/46076
30014 * tree-ssa.c (useless_type_conversion_p): Conversions from
30015 unprototyped to empty argument list function types are useless.
30016
30017 2011-01-11 Richard Guenther <rguenther@suse.de>
30018
30019 PR middle-end/45235
30020 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
30021 volatile MEMs as MEM_READONLY_P.
30022
30023 2011-01-11 Richard Guenther <rguenther@suse.de>
30024
30025 PR tree-optimization/47239
30026 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
30027
30028 2011-01-11 Jeff Law <law@redhat.com>
30029
30030 PR tree-optimization/47086
30031 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
30032 IVs from statements that might throw.
30033
30034 2011-01-10 Jan Hubicka <jh@suse.cz>
30035
30036 PR lto/45375
30037 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
30038
30039 2011-01-10 Jan Hubicka <jh@suse.cz>
30040
30041 PR lto/45375
30042 * profile.c (read_profile_edge_counts): Ignore profile inconistency
30043 when correcting profile.
30044
30045 2011-01-10 Jan Hubicka <jh@suse.cz>
30046
30047 PR lto/46083
30048 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
30049 DECL_FINI_PRIORITY.
30050 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
30051 Restore DECL_FINI_PRIORITY.
30052
30053 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30054
30055 * doc/gimple.texi: Fix quoting of multi-word return values in
30056 @deftypefn statements. Ensure presence of return value. Wrap
30057 overlong @deftypefn lines.
30058 (is_gimple_operand, is_gimple_min_invariant_address): Remove
30059 descriptions of removed functions.
30060 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
30061 of multi-word return value in @deftypefn statement.
30062
30063 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30064
30065 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
30066 (Conditional Expressions, Logical Operators)
30067 (Statement and operand traversals): Do not indent smallexample
30068 code. Fix duplicate function argument in example.
30069
30070 2011-01-10 Jeff Law <law@redhat.com>
30071
30072 PR tree-optimization/47141
30073 * ipa-split.c (split_function): Handle case where we are
30074 returning a value and the return block has a virtual operand phi.
30075
30076 2011-01-10 Jan Hubicka <jh@suse.cz>
30077
30078 PR tree-optimization/47234
30079 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
30080 (pass_feedback_split_functions): Declare.
30081 * passes.c (init_optimization_passes): Add ipa-split as subpass of
30082 tree-profile.
30083 * ipa-split.c (gate_split_functions): Update comments; disable
30084 split-functions for profile_arc_flag and branch_probabilities.
30085 (gate_feedback_split_functions): New function.
30086 (execute_feedback_split_functions): New function.
30087 (pass_feedback_split_functions): New global var.
30088
30089 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
30090
30091 PR lto/46760
30092 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
30093 calling gimple_call_set_cannot_inline.
30094
30095 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
30096
30097 * config/darwin-sections.def: Remove unused section.
30098
30099 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
30100
30101 PR c++/47218
30102 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
30103
30104 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
30105
30106 PR objc/47232
30107 * c-parser.c (c_parser_declaration_or_fndef): Improved
30108 error message.
30109
30110 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
30111
30112 * config/i386/winnt.c (i386_pe_start_function): Make sure
30113 to switch back to function's section.
30114
30115 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
30116
30117 PR gcc/46902
30118 PR testsuite/46912
30119 * plugin.c: Move include of dlfcn.h from here...
30120 * system.h: ... to here.
30121
30122 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30123
30124 * doc/cpp.texi (C++ Named Operators): Fix markup for header
30125 file name.
30126 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
30127 two extra empty pages in PDF output.
30128
30129 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
30130
30131 PR objc/47078
30132 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
30133 for error recovery purposes behave as if it was not specified so
30134 that the default type is usd.
30135
30136 2011-01-07 Jan Hubicka <jh@suse.cz>
30137
30138 PR tree-optmization/46469
30139 * ipa.c (function_and_variable_visibility): Clear needed flags on
30140 nodes with external decls; handle weakrefs merging correctly.
30141
30142 2011-01-07 Joseph Myers <joseph@codesourcery.com>
30143
30144 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
30145 not false.
30146
30147 2011-01-07 Jan Hubicka <jh@suse.cz>
30148
30149 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
30150 and no longer claim that gold is required for linker plugin.
30151 * configure: Regenerate.
30152 * gcc.c (PLUGIN_COND): New macro.
30153 (LINK_COMMAND_SPEC): Use it.
30154 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
30155 * config.in (HAVE_LTO_PLUGIN): New.
30156 * configure.ac (--with-lto-plugin): New parameter; autodetect
30157 HAVE_LTO_PLUGIN.
30158
30159 2011-01-07 Jan Hubicka <jh@suse.cz>
30160
30161 PR tree-optimization/46367
30162 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
30163 when we can update original.
30164 (cgraph_mark_inline_edge): Sanity check.
30165 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
30166
30167 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30168
30169 * config/spu/spu.h (ASM_COMMENT_START): Define.
30170
30171 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
30172
30173 PR driver/42445
30174 * gcc.c (%>S): New.
30175 (SWITCH_KEEP_FOR_GCC): Likewise.
30176 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
30177 (do_spec_1): Handle "%>".
30178
30179 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
30180
30181 2011-01-07 Jakub Jelinek <jakub@redhat.com>
30182
30183 PR target/47201
30184 * config/i386/i386.c (ix86_delegitimize_address): If
30185 simplify_gen_subreg fails, return orig_x.
30186
30187 PR bootstrap/47187
30188 * value-prof.c (gimple_stringop_fixed_value): Handle
30189 lhs of the call properly.
30190
30191 2011-01-07 Jan Hubicka <jh@suse.cz>
30192
30193 PR lto/45375
30194 * lto-opt.c (lto_reissue_options): Set flag_shlib.
30195
30196 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
30197
30198 * target.def (function_switched_text_sections): New hook.
30199 * doc/tm.texi: Regenerated.
30200 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
30201 * final.c (default_function_switched_text_sections): New.
30202 (final_scan_insn): Call function_switched_text_sections when a
30203 mid-function section change occurs.
30204 * output.h (default_function_switched_text_sections): Declare.
30205 * config/darwin-protos.h (darwin_function_switched_text_sections):
30206 Likewise.
30207 * config/darwin.c (darwin_function_switched_text_sections): New.
30208 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
30209
30210 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
30211
30212 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
30213 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
30214 the secondary code fragment when outputting for DWARF == 2.
30215
30216 2011-01-07 Anatoly Sokolov <aesok@post.ru>
30217
30218 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
30219 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
30220 Remove.
30221 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
30222 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
30223
30224 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
30225
30226 PR debug/46704
30227 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
30228 when it is not empty.
30229
30230 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
30231
30232 Bobcat Enablement
30233 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
30234 (case ${target}): Add btver1.
30235 * config/i386/driver-i386.c (host_detect_local_cpu): Let
30236 -march=native recognize btver1 processors.
30237 * config/i386/i386-c.c (ix86_target_macros_internal): Add
30238 btver1 def_and_undef
30239 * config/i386/i386.c (struct processor_costs btver1_cost): New
30240 btver1 cost table.
30241 (m_BTVER1): New definition.
30242 (m_AMD_MULTIPLE): Includes m_BTVER1.
30243 (initial_ix86_tune_features): Add btver1 tune.
30244 (processor_target_table): Add btver1 entry.
30245 (static const char *const cpu_names): Add btver1 entry.
30246 (software_prefetching_beneficial_p): Add btver1.
30247 (ix86_option_override_internal): Add btver1 instruction sets.
30248 (ix86_issue_rate): Add btver1.
30249 (ix86_adjust_cost): Add btver1.
30250 * config/i386/i386.h (TARGET_BTVER1): New definition.
30251 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
30252 (enum processor_type): Add PROCESSOR_BTVER1.
30253 * config/i386/i386.md (define_attr "cpu"): Add btver1.
30254
30255 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30256
30257 PR target/43309
30258 * config/i386/i386.c (legitimize_tls_address)
30259 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
30260 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
30261 (tls_initial_exec_64_sun): New pattern.
30262
30263 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
30264
30265 * doc/invoke.texi (Overall Options): Improve wording and markup
30266 of the description of -wrapper.
30267
30268 2011-01-06 Joseph Myers <joseph@codesourcery.com>
30269
30270 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
30271 rdynamic, threads): New Driver options.
30272
30273 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30274
30275 PR target/38118
30276 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
30277 if coming from .tdata.
30278 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
30279
30280 2011-01-06 Jan Hubicka <jh@suse.cz>
30281
30282 PR lto/47188
30283 * collect2.c (main): Do not enable LTOmode when plugin is active.
30284
30285 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30286
30287 PR other/45915
30288 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
30289 --version output if supported.
30290 * configure: Regenerate.
30291
30292 2011-01-06 Joseph Myers <joseph@codesourcery.com>
30293
30294 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
30295 Driver options.
30296
30297 2011-01-06 Jakub Jelinek <jakub@redhat.com>
30298
30299 PR c/47150
30300 * c-convert.c (convert): When converting a complex expression
30301 other than COMPLEX_EXPR to a different complex type, ensure
30302 c_save_expr is called instead of save_expr, unless in_late_binary_op.
30303 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
30304 when converting COMPLEX_TYPE.
30305
30306 2011-01-06 Ira Rosen <irar@il.ibm.com>
30307
30308 PR tree-optimization/47139
30309 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
30310 only the last reduction value is used outside the loop. Update
30311 documentation.
30312
30313 2011-01-05 Joseph Myers <joseph@codesourcery.com>
30314
30315 * config/rtems.opt: New.
30316 * config.gcc (*-*-rtems*): Use rtems.opt.
30317
30318 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
30319
30320 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
30321 processors do not support 3DNow instructions.
30322
30323 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30324
30325 * config/spu/spu.c (spu_option_override): Set parameter
30326 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
30327
30328 2011-01-05 Jan Hubicka <jh@suse.cz>
30329
30330 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
30331 at the command line.
30332
30333 2011-01-05 Martin Jambor <mjambor@suse.cz>
30334
30335 PR lto/47162
30336 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
30337 deltas on streamed outgoing edges.
30338 (output_node_opt_summary): Output info for outgoing edges only when
30339 the node is in new parameter set.
30340 (output_cgraph_opt_summary): New parameter set, passed to the two
30341 aforementioned functions. Update its forward declaration and its
30342 callee too.
30343
30344 2011-01-05 Tom Tromey <tromey@redhat.com>
30345
30346 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
30347 operator to c_finish_omp_atomic.
30348 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
30349 (build_unary_op): Update.
30350 (build_modify_expr): Update.
30351 (build_asm_expr): Update.
30352
30353 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30354
30355 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
30356 newly inserted insns.
30357 (pad_bb): Likewise.
30358 (spu_emit_branch_hint): Likewise.
30359 (insert_hbrp_for_ilb_runout): Likewise.
30360 (spu_machine_dependent_reorg): Call df_finish_pass after
30361 schedule_insns returns.
30362
30363 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30364
30365 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
30366
30367 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
30368
30369 PR tree-optimization/47005
30370 * tree-sra.c (struct access): Add 'non_addressable' bit.
30371 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
30372 (decide_one_param_reduction): Return 0 if the parameter is passed by
30373 reference and one of the accesses in the group is non_addressable.
30374
30375 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
30376
30377 PR tree-optimization/47056
30378 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
30379 (mark_load): Likewise. Handle FUNCTION_DECL specially.
30380 (mark_store): Likewise. Pass STMT to ipa_record_reference.
30381
30382 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
30383
30384 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
30385 initializer. Skip view conversions from aggregate types.
30386
30387 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
30388
30389 PR bootstrap/47055
30390 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
30391
30392 2011-01-04 Philipp Thomas <pth@suse.de>
30393
30394 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
30395 obvious typo.
30396
30397 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30398
30399 * function.c (thread_prologue_and_epilogue_insns): Do not crash
30400 on empty epilogue sequences.
30401
30402 2011-01-04 Joseph Myers <joseph@codesourcery.com>
30403
30404 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
30405 non-static): New Driver options.
30406
30407 2011-01-04 Jie Zhang <jie@codesourcery.com>
30408
30409 PR driver/47137
30410 * gcc.c (default_compilers[]): Set combinable field to 0
30411 for all assembly languages.
30412
30413 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
30414
30415 * config/mips/loongson3a.md: New file.
30416 * config/mips/mips.md: Include loongson3a.md.
30417 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
30418 TUNE_LOONGSON_3A.
30419
30420 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
30421
30422 PR middle-end/47017
30423 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
30424 instead of convert_memory_address_addr_space on the base expression.
30425
30426 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30427
30428 * config/spu/spu.c (spu_option_override): Update error text
30429 for bad -march= / -mtune= values.
30430
30431 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30432
30433 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
30434 if branch-hint optimization will be performed.
30435
30436 2011-01-03 Jakub Jelinek <jakub@redhat.com>
30437
30438 PR tree-optimization/47148
30439 * ipa-split.c (split_function): Convert arguments to
30440 DECL_ARG_TYPE if possible.
30441
30442 PR tree-optimization/47155
30443 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
30444 when computing uns.
30445
30446 PR rtl-optimization/47157
30447 * combine.c (try_combine): If undobuf.other_insn becomes
30448 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
30449 and set *new_direct_jump_p too.
30450
30451 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
30452
30453 PR tree-optimization/47021
30454 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
30455
30456 2011-01-03 Jakub Jelinek <jakub@redhat.com>
30457
30458 * gcc.c (process_command): Update copyright notice dates.
30459 * gcov.c (print_version): Likewise.
30460 * gcov-dump.c (print_version): Likewise.
30461 * mips-tfile.c (main): Likewise.
30462 * mips-tdump.c (main): Likewise.
30463
30464 2011-01-03 Martin Jambor <mjambor@suse.cz>
30465
30466 PR tree-optimization/46801
30467 * tree-sra.c (type_internals_preclude_sra_p): Check whether
30468 aggregate fields start at byte boundary instead of the bit-field flag.
30469
30470 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
30471
30472 PR driver/47137
30473 * gcc.c (main): Revert revision 168407.
30474
30475 2011-01-03 Martin Jambor <mjambor@suse.cz>
30476
30477 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
30478
30479 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30480
30481 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
30482 vector optab to expand vector/scalar shift, update gimple to vector.
30483
30484 2011-01-03 Martin Jambor <mjambor@suse.cz>
30485
30486 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
30487 a thunk.
30488
30489 2011-01-03 Martin Jambor <mjambor@suse.cz>
30490
30491 PR tree-optimization/46984
30492 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
30493 HOST_WIDE_INT.
30494 (cgraph_create_indirect_edge): Fixed line length.
30495 (cgraph_indirect_call_info): Declare.
30496 (cgraph_make_edge_direct) Update declaration.
30497 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
30498 (cgraph_create_indirect_edge): Use it.
30499 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
30500 callees.
30501 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
30502 the new thunk_delta representation.
30503 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
30504 HOST_WIDE_INT.
30505 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
30506 (ipa_read_indirect_edge_info): Likewise.
30507 * lto-cgraph.c (output_edge_opt_summary): New function.
30508 (output_node_opt_summary): Call it on all outgoing edges.
30509 (input_edge_opt_summary): New function.
30510 (input_node_opt_summary): Call it on all outgoing edges.
30511
30512 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
30513
30514 PR driver/47137
30515 * gcc.c (main): Don't check have_o when settting combine_inputs.
30516
30517 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
30518
30519 * regrename.c: Add general comment describing the pass.
30520 (struct du_head): Remove 'length' field.
30521 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
30522 (regrename_optimize): Do not sort chains. Rework comments, add others.
30523 Force renaming to the preferred class (if any) in the first pass and do
30524 not consider registers that belong to it in the second pass.
30525 (create_new_chain): Do not set 'length' field.
30526 (scan_rtx_reg): Likewise.
30527
30528 2011-01-02 Jakub Jelinek <jakub@redhat.com>
30529
30530 PR tree-optimization/47140
30531 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
30532 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
30533 to bit_value_binop.
30534
30535 PR rtl-optimization/47028
30536 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
30537 parm_birth_insn instead of at the beginning of first bb.
30538
30539 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
30540
30541 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
30542 Remove the word "see" before "@pxref".
30543 * doc/rtl.texi: Remove the word "see" before "@pxref".
30544
30545 2011-01-01 Jan Hubicka <jh@suse.cz>
30546
30547 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
30548 memory.
30549
30550 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
30551
30552 PR target/38662
30553 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
30554
30555 \f
30556 Copyright (C) 2011 Free Software Foundation, Inc.
30557
30558 Copying and distribution of this file, with or without modification,
30559 are permitted in any medium without royalty provided the copyright
30560 notice and this notice are preserved.