445cf4affe0a2b6228adb73c94b4607370bd2c76
[gcc.git] / gcc / ChangeLog
1 2011-10-06 Jakub Jelinek <jakub@redhat.com>
2
3 * tree.h (avoid_folding_inline_builtin): New prototype.
4 * builtins.c (avoid_folding_inline_builtin): No longer static.
5 * gimple-fold.c (gimple_fold_builtin): Give up if
6 avoid_folding_inline_builtin returns true.
7
8 2011-10-06 Richard Guenther <rguenther@suse.de>
9
10 * tree-vect-generic.c (vector_element): Look at previous
11 generated results.
12
13 2011-10-06 David Edelsohn <dje.gcc@gmail.com>
14
15 PR target/39950
16 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
17 __powerpc__, __PPC__, __unix__.
18
19 2011-10-06 Michael Matz <matz@suse.de>
20
21 * i386/i386.opt (recip_mask, recip_mask_explicit,
22 x_recip_mask_explicit): New variables and cl_target member.
23 (mrecip=): New option.
24 * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
25 RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
26 (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
27 TARGET_RECIP_VEC_SQRT): New tests.
28 * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
29 (sqrt<mode>2): Check TARGET_RECIP_SQRT.
30 * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
31 (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
32 * i386/i386.c (ix86_option_override_internal): Set recip_mask
33 for -mrecip and -mrecip=options.
34 (ix86_function_specific_save): Save recip_mask_explicit.
35 (ix86_function_specific_restore): Restore recip_mask_explicit.
36
37 * doc/invoke.texi (ix86 Options): Document the new option.
38
39 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
40
41 PR target/49049
42 * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
43
44 2011-10-06 Ulrich Weigand <ulrich.weigand@linaro.org>
45
46 PR target/50305
47 * config/arm/arm.c (arm_legitimize_reload_address): Recognize
48 output of a previous pass through legitimize_reload_address.
49 Do not attempt to optimize addresses if the base register is
50 equivalent to a constant.
51
52 2011-10-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
53
54 * function.c (thread_prologue_and_epilogue_insns): Mark
55 last_bb_active as possibly unused. It is unused for targets which
56 do neither have "return" nor "simple_return" expanders.
57
58 2011-10-06 Richard Guenther <rguenther@suse.de>
59
60 * fold-const.c (fold_ternary_loc): Also fold non-constant
61 vector CONSTRUCTORs. Make more efficient.
62 * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
63 (cprop_into_stmt): Don't propagate into virtual operands.
64 (optimize_stmt): Really dump original statement.
65
66 2011-10-06 Nick Clifton <nickc@redhat.com>
67
68 * config/rx/rx.md (smin3): Revert previous delta.
69
70 2011-10-06 Richard Guenther <rguenther@suse.de>
71
72 PR tree-optimization/38884
73 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
74 reads from aggregate SSA names.
75
76 2011-10-05 Jakub Jelinek <jakub@redhat.com>
77
78 * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
79 argument, truncate it at the beginning instead of allocating there
80 and freeing at the end.
81 (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
82 pass its address to vect_pattern_recog_1.
83
84 2011-10-05 David S. Miller <davem@davemloft.net>
85
86 * config/sparc/sparc.opt (POPC): New option.
87 * doc/invoke.texi: Document it.
88 * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
89 default on Niagara-2 and later.
90 * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
91 * config/sparc/sparc.md (SIDI): New mode iterator.
92 (ffsdi2): Delete commented out pattern and comments.
93 (popcount<mode>2, clz<mode>2): New expanders.
94 (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
95 *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
96
97 2011-10-06 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
98
99 PR middle-end/50607
100 * c-tree.h (c_expr_t): New typedef for struct c_expr.
101 (C_EXPR_APPEND): New macro.
102 * c-parser.c (c_parser_get_builtin_args): Preserve
103 original_tree_code of c_expr structure.
104 (c_parser_postfix_expression): Adjust to the new function.
105
106 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
107
108 * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
109 if profiling after the prologue.
110
111 2011-10-05 Jakub Jelinek <jakub@redhat.com>
112
113 PR tree-optimization/50613
114 * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
115 operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
116 and if it is neither that not SSA_NAME, give up.
117
118 2011-10-05 Richard Henderson <rth@redhat.com>
119
120 * tree-vect-generic.c (vector_element): Never fail. Use
121 build_zero_cst. Tidy up type references.
122 (lower_vec_shuffle): Never fail. Mask shuffle indicies. Reduce
123 code duplication. Do update_stmt here ...
124 (expand_vector_operations_1): ... not here.
125
126 * config/i386/i386.c (ix86_expand_vshuffle): Never fail. Handle
127 TARGET_XOP. Fix pshufb constant vector creation. Reduce code
128 duplication. Handle V2DI without SSE4.1.
129 * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
130 * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
131
132 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
133
134 * config/i386/i386.c (distance_non_agu_define): Simplify calculation
135 of "found". Simplify return value calculation.
136 (distance_agu_use): Ditto.
137
138 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
139
140 PR bootstrap/50621
141 * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
142 if the function was not shrink-wrapped.
143 (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
144 to an insn.
145 * function.c (thread_prologue_and_epilogue_insns): Make sure the
146 shrink_wrapped flag is set even if there is no dump file.
147
148 2011-10-05 DJ Delorie <dj@redhat.com>
149 Nick Clifton <nickc@redhat.com>
150
151 * config/rx/rx.opt (mpid): Define.
152 * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
153 (MULTILIB_DIRNAMES): Add pid.
154 * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
155 (rx_num_interrupt_regs): New variable.
156 (rx_gp_base_regnum): New function. Returns the number of the
157 small data area register.
158 (rx_pid_base_regnum): New function. Returns the number of the pid
159 base register.
160 (rx_decl_for_addr): New function. Returns the symbolic part of a MEM.
161 (rx_pid_data_operand): New function. Returns whether an object is
162 in the position independent data area.
163 (rx_legitimize_address): New function. Puts undecided PID
164 objects in the PID data area.
165 (rx_is_legitimate_address): Add support for PID operands.
166 (rx_print_operand_address): Likewise.
167 (rx_print_operand): Likewise.
168 (rx_maybe_pidify_operand): New function. Determine if an operand
169 is suitable for PID addressing.
170 (rx_gen_move_template): Add PID support.
171 (rx_conditional_register_usage): Likewise.
172 (rx_option_override): Initialise rx_num_interrupt_regs.
173 (rx_is_legitimate_constant): Add support for PID constants.
174 (TARGET_LEGITIMIZE_ADDRESS): Define.
175 * config/rx/constraints.md (Rpid): Define.
176 (Rpda): Define.
177 * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
178 (tablejump): Add PID support.
179 (mov<>): Likewise.
180 (mov<>_internal): Likewise.
181 (addsi3): Convert to an expander. Add PID support.
182 (pid_addr): New pattern.
183 * config/rx/rx.h (CPP_SPEC): Define.
184 (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
185 (CASE_VECTOR_PC_RELATIVE): Define.
186 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
187 * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
188 * doc/invoke.texi (RX Options): Document -mpid command line option.
189
190 2011-10-05 Richard Guenther <rguenther@suse.de>
191
192 PR tree-optimization/38885
193 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
194 from constants.
195
196 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
197
198 * doc/invoke.texi (-fshrink-wrap): Document.
199 * opts.c (default_options_table): Add it.
200 * common.opt (fshrink-wrap): Add.
201 * function.c (emit_return_into_block): Remove useless declaration.
202 (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
203 requires_stack_frame_p, gen_return_pattern): New static functions.
204 (emit_return_into_block): New arg simple_p. All callers changed.
205 Use gen_return_pattern.
206 (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
207 * config/i386/i386.md (return): Expand into a simple_return.
208 (simple_return): New expander):
209 (simple_return_internal, simple_return_internal_long,
210 simple_return_pop_internal_long, simple_return_indirect_internal):
211 Renamed from return_internal, return_internal_long,
212 return_pop_internal_long and return_indirect_internal; changed to use
213 simple_return.
214 * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
215 simple returns.
216 (ix86_pad_returns): Likewise.
217 * function.h (struct rtl_data): Add member shrink_wrapped.
218 * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
219 are not jumps or sibcalls can't be compared.
220
221 2011-10-05 Richard Guenther <rguenther@suse.de>
222
223 * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
224 vector type.
225 (simplify_unary_expression): Handle BIT_FIELD_REFs.
226 (try_to_simplify): Handle BIT_FIELD_REFs.
227
228 2011-10-05 Georg-Johann Lay <avr@gjlay.de>
229
230 * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
231 * config/avr/avr.c (avr_out_addto_sp): New function.
232 (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
233 * config/avr/avr.md (adjust_len): Add "addto_sp".
234 (*movhi_sp): Remove insn.
235 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
236
237 2011-10-05 Richard Guenther <rguenther@suse.de>
238
239 * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
240 with an embedded expression valueize and fold that as well.
241 * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
242 results from gimple_fold_stmt_to_constant_1.
243
244 2011-10-05 Nick Clifton <nickc@redhat.com>
245
246 * config/rx/rx.md (tablejump): Add missing label.
247 (adddi3_internal): Mark operand 0 as early-clobbered.
248 (smaxsi3): Revert previous delta.
249 (adc_internal): Fix whitespace in generated asm.
250 (adc_flags): Likewise.
251
252 2011-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
253
254 * expmed.c (expand_mult_highpart_optab): Replace optab_handler
255 with the new widening_optab_handler.
256
257 2011-10-05 Richard Guenther <rguenther@suse.de>
258
259 PR tree-optimization/50609
260 * gimple-fold.c (fold_array_ctor_reference): Also handle
261 vector typed constructors.
262 (fold_ctor_reference): Dispatch to fold_array_ctor_reference
263 for vector typed constructors.
264
265 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
266
267 * config/i386/i386.c (ix86_emit_binop): New static function.
268 (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
269 instructions.
270 (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
271
272 2011-10-04 David S. Miller <davem@davemloft.net>
273
274 * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
275 UNSPEC_XMUL): New unspecs.
276 (muldi3_v8plus): Use output_v8plus_mult.
277 (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
278 New VIS 3.0 combiner patterns.
279 (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
280 fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
281 umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
282 xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
283 builtins patterns.
284 * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
285 (output_v8plus_mult): New function.
286 * config/sparc/sparc-protos.h: Declare it.
287 * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
288 __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
289 __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
290 * doc/extend.texi: Document new builtins.
291
292 2011-10-04 Richard Henderson <rth@redhat.com>
293
294 * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
295 Avoid save_expr unless two_arguments.
296
297 2011-10-04 Ozkan Sezer <sezeroz@gmail.com>
298
299 * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
300 * config/i386/mingw32.h (CPP_SPEC): Likewise.
301
302 2011-10-04 David S. Miller <davem@davemloft.net>
303
304 * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
305 under Linux.
306
307 2011-10-04 Jakub Jelinek <jakub@redhat.com>
308
309 PR tree-optimization/50604
310 * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
311 fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
312 last argument to memcpy has size_type_node type instead of ssizetype.
313 * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
314 instead of TREE_TYPE (len) as type for newlen.
315
316 PR tree-optimization/50522
317 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
318 TYPE_RESTRICT.
319 (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
320 unconditionally.
321
322 * fold-const.c (fold_unary_loc): Don't optimize
323 POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
324 casting the inner pointer if it isn't TYPE_RESTRICT.
325 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
326 casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
327
328 2011-10-04 Joseph Myers <joseph@codesourcery.com>
329
330 * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
331
332 2011-10-04 Jan Hubicka <jh@suse.cz>
333
334 * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
335 * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
336 * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
337 * lto-cgraph.c (order_base): New static var.
338 (lto_output_node): Stream in order.
339 (lto_output_varpool_node): Stream out order.
340 (input_node): Stream in order.
341 (input_varpool_node): Stream out order.
342 (input_cgraph_1): Initialize order base; update call of
343 lto_input_toplevel_asms.
344
345 2011-10-04 Georg-Johann Lay <avr@gjlay.de>
346
347 PR target/50566
348 * config/avr/avr-protos.h (avr_legitimize_reload_address): New
349 prototype.
350 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
351 from here...
352 * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
353 function. Log if avr_log.legitimize_reload_address.
354
355 2011-10-04 Eric Botcazou <ebotcazou@adacore.com>
356
357 * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
358
359 2011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
360
361 * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
362 variables. Fix second operand of DR. Swap inputs for sdiv_qrnnd.
363
364 2011-10-03 David S. Miller <davem@davemloft.net>
365
366 * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
367 GSR_REG an input operand to UNSPEC instead of a parallel USE.
368 (faligndata<V64I:mode>_vis): Likewise and use DI mode.
369 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
370 Reference GSR_REG in DI mode, simplify convoluted expressions by using
371 zero_extract.
372 (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
373
374 2011-10-03 Maxim Kuvyrkov <maxim@codesourcery.com>
375
376 * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
377
378 2011-10-03 Jakub Jelinek <jakub@redhat.com>
379 Ian Lance Taylor <iant@google.com>
380
381 * godump.c (go_output_typedef): Support printing enum values that
382 don't fit in a signed HOST_WIDE_INT.
383
384 2011-10-03 Anatoly Sokolov <aesok@post.ru>
385
386 * config/cris/cris.c (cris_output_addr_const_extra): Make static.
387 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
388 * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
389 * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
390
391 2011-10-03 Anatoly Sokolov <aesok@post.ru>
392
393 * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
394 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
395 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
396 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
397
398 2011-10-03 Steve Ellcey <sje@cup.hp.com>
399
400 PR target/49967
401 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
402 (gcc_cv_ld_static_option): Ditto.
403 (gcc_cv_ld_dynamic_option): Ditto.
404 * configure: Regenerate.
405
406 2011-10-03 David S. Miller <davem@davemloft.net>
407
408 * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
409 and 'si' patterns which describe the GSR changes explicitly in the
410 RTL using zero_extract.
411 (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
412
413 * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
414 GSR_REG in a USE, since it's now a true arg to the UNSPEC.
415
416 2011-10-03 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
417
418 * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
419 if given expression can be expanded by the target.
420 (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
421 using target vector instructions.
422 * optabs.h: New optab vshuffle.
423 (expand_vec_shuffle_expr_p): New prototype.
424 (expand_vec_shuffle_expr): New prototype.
425 (vshuffle_optab): New optab.
426 * genopinit.c: Adjust to support vecshuffle.
427 * c-tree.h (c_build_vec_shuffle_expr): New prototype.
428 * expr.c (expand_expr_real_2): Adjust.
429 * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
430 recognizing the cases of two and three arguments.
431 (convert_arguments) (build_binary_op)
432 (scalar_to_vector) (build_array_ref): Spurious whitespace.
433 * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
434 * tree.def: New tree code VEC_SHUFFLE_EXPR.
435 * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
436 * tree-vect-generic.c (vector_element): New function. Returns an
437 element of the vector at the given position.
438 (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
439 by the backend or expand an expression piecewise.
440 (expand_vector_operations_1): Adjusted.
441 (gate_expand_vector_operations_noop): New gate function.
442 * Makefile.in (tree-vect-generic.o): New include.
443 * gimple.c (get_gimple_rhs_num_ops): Adjust.
444 * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
445 * passes.c: Move veclower down.
446 * tree-pretty-print.c (dump_generic_node): Recognize
447 VEC_SHUFFLE_EXPR as valid expression.
448 * c-parser.c (c_parser_get_builtin_args): Helper function for the
449 builtins with variable number of arguments.
450 (c_parser_postfix_expression): Use a new helper function for
451 RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
452 * tree-ssa-operands: Adjust.
453 * c-family/c-common.c: New __builtin_shuffle keyword.
454 * c-family/c-common.h: New __builtin_shuffle keyword.
455 * gcc/doc/extend.texi: Adjust.
456
457 * gcc/config/i386/sse.md: (sseshuffint) New mode_attr. Correspondence
458 between the vector and the type of the mask when shuffling.
459 (vecshuffle<mode>): New expansion.
460 * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
461 * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
462 (ix86_vectorize_builtin_vec_perm_ok): Adjust.
463
464 2011-10-03 Jakub Jelinek <jakub@redhat.com>
465
466 PR tree-optimization/50587
467 * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
468 arg0 is not a SSA_NAME.
469
470 2011-10-03 Richard Sandiford <rdsandiford@googlemail.com>
471
472 * ipa-inline-analysis.c (MAX_TIME): Update comment.
473
474 2011-10-02 Richard Henderson <rth@redhat.com>
475 David S. Miller <davem@davemloft.net>
476
477 * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
478 conditional insn type setting, we always emit a shift.
479 (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
480 (*lshrsi3_extend): Rename to *lshrsi3_extend1.
481 * config/sparc/predicates.md (const_one_operand): Delete.
482
483 2011-10-02 Gerald Pfeifer <gerald@pfeifer.com>
484
485 * invoke.texi (SPARC Options): Refer to GNU/Linux.
486
487 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
488
489 * config/mips/mips.c (mips_frame_barrier): New function.
490 (mips_expand_prologue): Call it after allocating stack space.
491 (mips_deallocate_stack): New function.
492 (mips_expand_epilogue): Call mips_frame_barrier and
493 mips_deallocate_stack.
494
495 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
496
497 PR target/49696
498 * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
499 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
500 (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
501
502 2011-10-02 Jan Hubicka <jh@suse.cz>
503
504 * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
505
506 * cgraphunit.c (ipa_passes): Remove unrechable nodes.
507 * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
508 * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
509 functions are reachable when address is taken.
510 * tree-sra.c (modify_function): Free dominance info.
511
512 2011-10-02 Jan Hubicka <jh@suse.cz>
513
514 * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
515
516 * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
517 (reset_inline_summary): New function.
518 (compute_inline_parameters, inline_node_removal_hook,
519 inline_edge_removal_hook): Use it.
520 (inline_free_summary): Reset holders correctly.
521 (inline_generate_summary): Free summary before computing it.
522
523 2011-10-02 Paolo Carlini <paolo.carlini@oracle.com>
524
525 PR preprocessor/36819
526 * incpath.c (merge_include_chains): Call free_path on
527 heads[QUOTE] and tails[QUOTE].
528
529 2011-10-02 Jan Hubicka <jh@suse.cz>
530
531 PR lto/47247
532 * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
533 when resolution is already availbale from plugin.
534 (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
535 * cgraph.c (ld_plugin_symbol_resolution): Add
536 prevailing_def_ironly_exp.
537 * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
538 * ipa.c (varpool_externally_visible_p): IRONLY variables are never
539 externally visible.
540 * varasm.c (resolution_to_local_definition_p): Add
541 LDPR_PREVAILING_DEF_IRONLY_EXP.
542 (resolution_local_p): Likewise.
543
544 2011-10-01 David S. Miller <davem@davemloft.net>
545
546 * config/sparc/sparc.opt (VIS3): New option.
547 * doc/invoke.texi: Document it.
548 * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
549 not capable of such instructions.
550 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
551 to 0x300 when TARGET_VIS3.
552 * config/sparc/sparc-modes.def: Create 16-byte vector modes.
553 * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
554 UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
555 (V64N8, VASS): New mode iterators.
556 (vis3_shift, vis3_addsub_ss): New code iterators.
557 (vbits, vconstr): New mode attributes.
558 (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
559 (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
560 fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
561 fmean16_vis, fpadd64_vis, fpsub64_vis,
562 <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
563 VIS 3.0 instruction patterns.
564 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
565 default when targetting capable cpus. TARGET_VIS3 implies
566 TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
567 (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
568 (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
569 is ignored.
570 * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
571 __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
572 __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
573 __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
574 __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
575 __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
576 __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
577 __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
578 * doc/extend.texi: Document new VIS 3.0 builtins.
579
580 2011-10-01 Eric Botcazou <ebotcazou@adacore.com>
581
582 * ira-color.c (assign_hard_reg): Fix typo.
583
584 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
585
586 * doc/extend.texi: Add missing ','.
587
588 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
589
590 * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
591 Enable -fmodulo-sched at -O2 and above.
592 * config/c6x/c6x.md (doloop_end): New expander.
593 (mvilc, sploop, spkernel, loop_end): New patterns.
594 (loop_end with memory destination splitter): New.
595 * config/c6x/c6x.c: Include "hw-doloop.h".
596 (enum unitreqs): New.
597 (unit_req_table): New typedef.
598 (unit_reqs): New static variable.
599 (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
600 res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
601 hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
602 hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
603 (struct c6x_sched_context): New member last_scheduled_iter0.
604 (init_sched_state): Initialize it.
605 (c6x_variable_issue): Update it.
606 (sploop_max_uid_iter0): New static variable.
607 (c6x_sched_reorder_1): Be careful about issuing sploop.
608 (c6x_reorg): Call c6x_hwlooops before the final schedule.
609
610 2011-09-30 Georg-Johann Lay <avr@gjlay.de>
611
612 PR target/50566
613 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
614 * config/avr/avr.c (avr_address_cost): Use it.
615 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
616 (avr_log_vadump): Unknown %-codes finish printing.
617
618 2011-09-30 Jakub Jelinek <jakub@redhat.com>
619
620 PR inline-asm/50571
621 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
622 input constraints allow mem and not reg, pass true instead of
623 false as second argument to maybe_fold_reference.
624
625 PR tree-optimization/46309
626 * fold-const.c (make_range, merge_ranges): Remove prototypes.
627 (make_range_step): New function.
628 (make_range): Use it.
629 * tree.h (make_range_step): New prototypes.
630 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
631 * tree-ssa-reassoc.c: Include diagnostic-core.h.
632 (struct range_entry): New type.
633 (init_range_entry, range_entry_cmp, update_range_test,
634 optimize_range_tests): New functions.
635 (reassociate_bb): Call optimize_range_tests.
636
637 2011-09-30 Jakub Jelinek <jakub@redhat.com>
638 Richard Guenther <rguenther@suse.de>
639
640 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
641 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
642 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
643 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
644 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
645 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
646
647 2011-09-30 Jan Beulich <jbeulich@suse.com>
648
649 * lto-cgraph.c (output_cgraph): Remove processing of
650 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
651 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
652 lto_input_toplevel_asms() instead.
653 * lto-section-in.c (lto_section_name): Add "asm" entry.
654 * lto-streamer-in.c (lto_input_toplevel_asms): New.
655 * lto-streamer-out.c (lto_output_toplevel_asms): New.
656 * lto-streamer.h (LTO_minor_version): Bump.
657 (enum lto_section_type): Add LTO_section_asm.
658 (struct lto_asm_header): New.
659 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
660 * tree-streamer.h (streamer_write_string_cst): Declare.
661 * tree-streamer-out.c (write_string_cst): Rename to
662 streamer_write_string_cst and make global. Handle incoming string
663 being NULL.
664 (streamer_write_tree_header): Adjust call to renamed function.
665
666 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
667
668 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
669 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
670 modulo_last_stage): New static variables.
671 (set_modulo_params, discard_delay_pairs_above): New functions.
672 (struct delay_pair): New member stages.
673 (htab_i2_traverse, htab_i1_traverse): New static functions.
674 (record_delay_slot_pair): New arg stages. All callers changed.
675 Record it.
676 (pair_delay): Take stages into account.
677 (add_delay_dependencies): Don't do so for stage pairs.
678 (struct sched_block_state): New member modulo_epilogue.
679 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
680 (unschedule_insns_until): Decrease modulo_insns_scheduled.
681 Set HARD_DEP without using or.
682 (resolve_dependencies): New static function.
683 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
684 If it is true, allow only insns with INSN_EXACT_TICK set.
685 (schedule_block): Return bool, always true for normal scheduling,
686 true or false depending on modulo scheduling success otherwise.
687 Add bookkeeping for modulo scheduling, and call resolve_dependencies
688 on everything left over after a modulo schedule.
689 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
690 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
691 declarations.
692 (set_modulo_params, discard_delay_pairs_above): Declare.
693 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
694 * doc/invoke.texi (--param): Document it.
695
696 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
697 New arg modulo_scheduling. All callers changed. Move note handling
698 code here from schedule_ebbs.
699 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
700 out of schedule_ebbs.
701 (schedule_ebbs): Call them. Remove note handling code moved to
702 schedule_ebb.
703 * sched-int.h (schedule_ebb, schedule_ebbs_init,
704 schedule_ebbs_finish): Declare.
705
706 2011-09-30 Richard Guenther <rguenther@suse.de>
707
708 PR middle-end/50574
709 * tree-cfg.c (verify_gimple_comparison): Compare component
710 mode sizes for vector comparisons.
711
712 2011-09-30 Revital Eres <revital.eres@linaro.org>
713
714 * ddg.c (autoinc_var_is_used_p): New function.
715 (create_ddg_dep_from_intra_loop_link,
716 add_cross_iteration_register_deps): Call it.
717 * ddg.h (autoinc_var_is_used_p): Declare.
718 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
719 (sms_schedule): Handle instructions with REG_INC.
720
721 2011-09-30 Revital Eres <revital.eres@linaro.org>
722
723 * modulo-sched.c (generate_reg_moves): Skip instructions that
724 do not set a register and verify no regmoves are created for
725 !single_set instructions.
726
727 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
728
729 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
730 insns.
731
732 2011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
733
734 PR target/50099
735 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
736 (qhs_zextenddi_op): New.
737 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
738 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
739 Distinguish between ARM and Thumb2 states.
740
741 2011-09-30 David S. Miller <davem@davemloft.net>
742
743 * config/sparc/sparc.opt (VIS2): New option.
744 * doc/invoke.texi: Document it.
745 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
746 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
747 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
748 (define_attr type): New insn type 'edgen'.
749 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
750 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
751 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
752 patterns.
753 * niagara.md: Handle edgen.
754 * niagara2.md: Likewise.
755 * ultra1_2.md: Likewise.
756 * ultra3.md: Likewise.
757 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
758 to 0x200 when TARGET_VIS2.
759 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
760 default when targetting capable cpus. TARGET_VIS2 implies
761 TARGET_VIS, clear and it when TARGET_FPU is disabled.
762 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
763 (sparc_expand_builtin): Fix predicate indexing when builtin returns
764 void.
765 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
766 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
767 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
768 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
769 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
770 * doc/extend.texi: Document new VIS 2.0 builtins.
771
772 2011-09-29 Nick Clifton <nickc@redhat.com>
773 Bernd Schmidt <bernds@codesourcery.com>
774
775 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
776 * config/frv/frvend.c: Likewise.
777 * config/frv/frv.c (frv_function_prologue): Move misplaced
778 CALL_ARG_LOCATION notes back to their proper locations.
779
780 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
781
782 PR target/50566
783 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
784 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
785 from avr_rtx_costs.
786 (avr_legitimate_address_p): Use avr_edump to print log information
787 filtered by avr_log.
788 (extra_constraint_Q): Ditto.
789 (avr_legitimize_address): Ditto.
790 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
791 (final_prescan_insn): Use avr_log.rtx_costs as filter.
792
793 2011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
794
795 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
796 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
797 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
798 NEON vector and structure modes to be tied.
799
800 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
801
802 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
803 forward declaration.
804 (remove_duplicate_close_phi): Detect and repair creation of
805 duplicate close-phis for a containing loop.
806
807 2011-09-27 Andi Kleen <ak@linux.intel.com>
808
809 * gcc.c (get_local_tick). Rename to get_random_number. Read from
810 /dev/urandom. Add getpid call.
811 (compare_debug_dump_opt_spec_function): Drop getpid call.
812
813 2011-09-26 Andi Kleen <ak@linux.intel.com>
814
815 * toplev.c (init_local_tick): Try reading random seed
816 from /dev/urandom.
817
818 2011-09-26 Andi Kleen <ak@linux.intel.com>
819
820 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
821 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
822 Handle numerical random seed.
823 * lto-streamer.h (lto_file_decl_data): Change id to
824 unsigned HOST_WIDE_INT.
825 * toplev.c (random_seed): Add.
826 (init_random_seed): Change for numerical random seed.
827 (get_random_seed): Return as HOST_WIDE_INT.
828 (set_random_seed): Crc32 existing string.
829 * toplev.h (get_random_seed): Change to numercal return.
830 * tree.c (get_file_function_name): Remove CRC. Handle
831 numerical random seed.
832
833 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
834
835 PR target/50566
836 * config.gcc (extra_objs): Add avr-log.o for $target in:
837 avr-*-rtems*, avr-*-*.
838 * config/avr/t-avr (avr-log.o): New rule to compile...
839 * config/avr/avr-log.c: ...this new file.
840 * config/avr/avr.opt (mlog=): New option.
841 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
842 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
843 (avr_log_set_avr_log): New prototype.
844 (avr_log_t): New typedef.
845 (avr_log): New declaration.
846 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
847
848 2011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
849
850 * expr.c (do_store_flag): Expand vector comparison by
851 building an appropriate VEC_COND_EXPR.
852 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
853 (c_objc_common_truthvalue_conversion): Adjust.
854 * tree-vect-generic.c (do_compare): Helper function.
855 (expand_vector_comparison): Check if hardware supports
856 vector comparison of the given type or expand vector piecewise.
857 (expand_vector_operation): Treat comparison as binary
858 operation of vector type.
859 (expand_vector_operations_1): Adjust.
860
861 2011-09-29 Richard Guenther <rguenther@suse.de>
862
863 * tree.c (build_opaque_vector_type): Make opaque vectors
864 variant types of the corresponding non-opaque type. Make
865 sure to share opaque vector types properly.
866
867 2011-09-29 David S. Miller <davem@davemloft.net>
868
869 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
870 UNSPEC_ARRAY32): New unspec.
871 (define_attr type): New type 'array'.
872 (array{8,16,32}<P:mode>_vis): New patterns.
873 * config/sparc/ultra1_2.md: Add reservations for 'array'.
874 * config/sparc/ultra3.md: Likewise.
875 * config/sparc/niagara.md: Likewise.
876 * config/sparc/niagara2.md: Likewise.
877 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
878 array builtins.
879 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
880 __vis_array32): New.
881 * doc/extend.texi: Document new VIS builtins.
882
883 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
884 (VIS pixel-compare insn): Just use <gcond:name>.
885
886 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
887 code iterator used, so just use <code>. There are two mode iterators
888 so explicitly use <GCM:gcm_name>.
889
890 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
891
892 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
893 Darwin >= 9.
894
895 2011-09-28 David S. Miller <davem@davemloft.net>
896
897 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
898 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
899 (UNSPEC_FCMP): New unspec.
900 (gcond): New code iterator.
901 (gcond_name): New code attr.
902 (GCM): New mode iterator.
903 (gcm_name): New mode attr.
904 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
905
906 2011-09-28 Oleg Endo <oleg.endo@t-online.de>
907
908 PR target/49486
909 * config/sh/sh.md (negdi2): Move expansion into split to
910 allow more combination options. Add T_REG clobber.
911 (abssi2): New expander.
912 (*negdi2, *abssi2, *negabssi2): New insns.
913 (cneg): Change from insn to insn_and_split. Rename to
914 negsi_cond. Add alternative for non-SH4.
915
916 2011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
917
918 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
919 (neon_move_hi_quad_<mode>): Likewise.
920 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
921
922 2011-09-28 Nick Clifton <nickc@redhat.com>
923
924 * config/rx/predicates.md (rx_minmax_operand): New predicate.
925 Accepts immediates and a restricted subset of MEMs.
926 * config/rx/rx.md (int_modes): New iterator.
927 (smaxsi3, sminsi3): Delete and replace with...
928 (smax<int_mode>3, smin<int_mode>3): New patterns.
929 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
930
931 2011-09-28 Richard Guenther <rguenther@suse.de>
932
933 PR middle-end/50460
934 * fold-const.c (try_move_mult_to_index): Handle &a.array the
935 same as &a.array[0].
936
937 2011-09-28 Kai Tietz <ktietz@redhat.com>
938
939 * configure.ac: Add test for new section attribute
940 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
941 * config.in: Regenerated.
942 * configure: Regenerated.
943 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
944 new section flag "e" for excluded sections, if supported.
945 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
946
947 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
948
949 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
950 throughout file.
951
952 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
953
954 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
955 throughout file.
956
957 2011-09-27 Sriraman Tallam <tmsriram@google.com>
958
959 * output.h (SECTION_EXCLUDE): New macro.
960 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
961
962 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
963
964 * fwprop.c (forward_propagate_and_simplify): After checking
965 reg/subreg combinations, check whether the modes are the same.
966
967 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
968 Richard Sandiford <rdsandiford@googlemail.com>
969
970 * config/mips/mips.c (mips_add_cfa_restore): New function.
971 (mips16e_save_restore_reg): Use it.
972 (mips_restore_reg): Likewise. Split double FPRs for
973 REG_CFA_RESTORE notes.
974
975 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
976
977 PR middle-end/50386
978 PR middle-end/50326
979 * tree-sra.c (build_ref_for_model): Use the type of the field as
980 the type of the COMPONENT_REF.
981
982 2011-09-27 Jeff Law <law@redhat.com>
983
984 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
985 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
986 (find_if_case_1): Use the probability of the THEN clause when
987 determining if speculation is profitable.
988 (find_if_case_2): Similarly for the ELSE clause.
989
990 2011-09-27 Jakub Jelinek <jakub@redhat.com>
991
992 * common.opt: Add -foptimize-strlen option.
993 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
994 (tree-sssa-strlen.o): Add dependencies.
995 * opts.c (default_options_table): Enable -foptimize-strlen
996 by default at -O2 if not -Os.
997 * passes.c (init_optimization_passes): Add pass_strlen
998 after pass_object_sizes.
999 * timevar.def (TV_TREE_STRLEN): New timevar.
1000 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
1001 * tree-pass.h (pass_strlen): Declare.
1002 * tree-ssa-strlen.c: New file.
1003 * c-decl.c (merge_decls): If compatible stpcpy prototype
1004 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
1005
1006 2011-09-27 Tom de Vries <tom@codesourcery.com>
1007
1008 PR middle-end/43864
1009 * tree-ssa-tail-merge.c: New file.
1010 (struct same_succ_def): Define.
1011 (same_succ, const_same_succ): New typedef.
1012 (struct bb_cluster_def): Define.
1013 (bb_cluster, const_bb_cluster): New typedef.
1014 (struct aux_bb_info): Define.
1015 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
1016 (gvn_uses_equal): New function.
1017 (same_succ_print, same_succ_print_traverse, update_dep_bb)
1018 (stmt_update_dep_bb, local_def, same_succ_hash)
1019 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
1020 (same_succ_reset): New function.
1021 (same_succ_htab, same_succ_edge_flags)
1022 (deleted_bbs, deleted_bb_preds): New var.
1023 (debug_same_succ): New function.
1024 (worklist): New var.
1025 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
1026 (init_worklist, delete_worklist, delete_basic_block_same_succ)
1027 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
1028 (print_cluster, debug_cluster, update_rep_bb)
1029 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
1030 (all_clusters): New var.
1031 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
1032 (merge_clusters, set_cluster): New function.
1033 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
1034 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
1035 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
1036 (find_clusters_1, find_clusters): New function.
1037 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
1038 (update_bbs): New var.
1039 (apply_clusters): New function.
1040 (update_debug_stmt, update_debug_stmts): New function.
1041 (tail_merge_optimize): New function.
1042 tree-pass.h (tail_merge_optimize): Declare.
1043 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
1044 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
1045 (tree-ssa-tail-merge.o): New rule.
1046 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
1047 default at OPT_LEVELS_2_PLUS.
1048 * tree-ssa-sccvn.c (vn_valueize): Move to ...
1049 * tree-ssa-sccvn.h (vn_valueize): Here.
1050 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
1051 * common.opt (ftree-tail-merge): New switch.
1052 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
1053 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
1054 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
1055 (-ftree-tail-merge, max-tail-merge-comparisons)
1056 (max-tail-merge-iterations): New item.
1057
1058 2011-09-27 Jan Hubicka <jh@suse.cz>
1059
1060 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
1061
1062 2011-09-27 Jan Hubicka <jh@suse.cz>
1063
1064 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
1065 parameters passed by reference; handle loads from non-SSA scalars
1066 and update comments.
1067
1068 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
1069
1070 PR rtl-optimization/50249
1071 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
1072 instead of opnum and type. All callers changed. Remove useless
1073 declaration.
1074 Search forward for other reloads of the same type for the same operand
1075 using the same register; if any are found, return false.
1076 (reload_regs_reach_end_p): Same argument changes; all callers changed.
1077
1078 2011-09-27 Andi Kleen <ak@linux.intel.com>
1079 Jan Hubicka <jh@suse.cz>
1080
1081 * doc/invoke.texi (ffat-lto-objects): Document.
1082 * toplev.c (compile_file): Do not output assembly when doing slim lto;
1083 Output __gnu_slim_lto when doing slim lto.
1084 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
1085 (cgraph_optimize): Return early when doing slim lto.
1086 * opts.c (finish_options): Complain about lack of linker plugin
1087 when doing slim lto.
1088 * common.opt (ffat-lto-objects): New.
1089
1090 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
1091
1092 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
1093 between signed and unsigned.
1094
1095 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
1096
1097 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
1098 vectorization.
1099 (vectorizable_type_promotion): Likewise.
1100 (vect_analyze_stmt): Call vectorizable_type_demotion and
1101 vectorizable_type_promotion for basic blocks.
1102 (supportable_widening_operation): Don't assume loop vectorization.
1103 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
1104 basic blocks. Update vectorization factor for basic block
1105 vectorization.
1106 (vect_analyze_slp_instance): Allow multiple types for basic block
1107 vectorization. Recheck unrolling factor after construction of SLP
1108 instance.
1109
1110 2011-09-27 Richard Guenther <rguenther@suse.de>
1111
1112 * tree-object-size.c (compute_object_sizes): Fix dumping of
1113 folded statement.
1114
1115 2011-09-27 Richard Guenther <rguenther@suse.de>
1116
1117 PR tree-optimization/50363
1118 * tree-ssa-pre.c (create_expression_by_pieces): Handle
1119 pointer conversions in POINTER_PLUS_EXPRs properly.
1120
1121 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
1122
1123 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
1124 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
1125 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
1126 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
1127 that produce subreg moves. Define using VQX iterators.
1128
1129 2011-09-27 Georg-Johann Lay <avr@gjlay.de>
1130
1131 * config/avr/avr.md (ashrqi3): Split alternative "n"
1132 into its remaining parts C03, C04, C05, C06, C07 and describe
1133 impact in CC by attribute "cc" appropriately.
1134 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
1135 by digging RTX.
1136
1137 2011-09-27 Jakub Jelinek <jakub@redhat.com>
1138
1139 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
1140 from 3 x MAX_MACHINE_MODE.
1141 (CONSTM1_RTX): Define.
1142 * emit-rtl.c (const_tiny_rtx): Change into array of
1143 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
1144 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
1145 CONSTM1_RTX.
1146 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
1147 MODE_VECTOR_INT modes.
1148 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
1149 Optimize if one operand is CONSTM1_RTX.
1150 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
1151 into mask | x.
1152
1153 2011-09-26 David S. Miller <davem@davemloft.net>
1154
1155 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
1156 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
1157 * config/sparc/visintrin.h: Update edge and pixel-compare
1158 intrinsics to return 'long' instead of 'int'.
1159 * doc/extend.texi: Update documentation to match.
1160 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
1161 flat, allow any instruction. Otherwise, when V9 allow parallels
1162 which consist only of sets to registers outside of %o0 to %o5.
1163 (sparc_vis_init_builtins): Update VIS builtin types for edge
1164 and pixel-compare.
1165
1166 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
1167 is enabled, mark %gsr as global.
1168 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
1169 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
1170
1171 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
1172 which will now define __VIS and __VIS__ when -mvis is enabled.
1173 * config/sparc/t-sparc: Likewise.
1174 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
1175 and add t-sparc to tmake_file for all sparc targets.
1176 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
1177 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
1178
1179 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
1180 builtins for VIS vector addition and subtraction.
1181 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
1182 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
1183 __vis_fpsub32, __vis_fpsub32s): New.
1184 * doc/extend.texi: Document new VIS intrinsics.
1185
1186 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
1187
1188 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
1189 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
1190 EQ/NE comparisons against +/-1 in the case of unused-after,
1191 non-ld-regs target.
1192
1193 2011-09-26 Jakub Jelinek <jakub@redhat.com>
1194
1195 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
1196 gctx.into_ssa after push_gimplify_context.
1197
1198 * gimple.c (gimple_build_call_valist): New function.
1199 * gimple.h (gimple_build_call_valist): New prototype.
1200 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
1201 (update_gimple_call): Likewise.
1202 (update_call_from_tree): Use finish_update_gimple_call.
1203 * tree-ssa-propagate.h (update_gimple_call): New prototype.
1204
1205 2011-09-26 Richard Guenther <rguenther@suse.de>
1206
1207 PR tree-optimization/50472
1208 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
1209 volatile references.
1210
1211 2011-09-26 Bingfeng Mei <bmei@broadcom.com>
1212
1213 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
1214 * target.def: (addr_space_subset_p): Likewise.
1215
1216 2011-09-26 Tom de Vries <tom@codesourcery.com>
1217
1218 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
1219 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
1220 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
1221 of new var.
1222
1223 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
1224
1225 PR target/50465
1226 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
1227 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
1228 output_reload_insisf.
1229 (adjust_len): Set default to "no".
1230 Remove alternative "yes". Add alternatives: "mov8", "mov16",
1231 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
1232 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
1233 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
1234 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
1235 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
1236 *lshrsi3_const): Set attribute "adjust_len".
1237 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
1238 (output_movsisf): Don't pass insn to output_reload_insisf.
1239 (adjust_insn_length): Handle new alternatives to adjust_len.
1240 Remove handling of ADJUST_LEN_YES. Clean-up code.
1241
1242 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
1243
1244 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
1245 may_trap_p to detect loads that may trap of fault.
1246
1247 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
1248
1249 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
1250 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
1251 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
1252 prototype.
1253 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
1254 * config/avr/avr.c: Rename output_reload_insisf_1 to
1255 output_reload_in_const.
1256 (avr_popcount_each_byte): Handle SFmode, too.
1257 (output_reload_in_const): Change so it can handle HI loads, too.
1258 Use avr_popcount_each_byte to work out if scratch register must be
1259 created on the fly.
1260 (output_reload_inhi): Rewrite using output_reload_in_const and...
1261 (output_movhi): ...use it to print constants' loads.
1262 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
1263
1264 2011-09-25 David S. Miller <davem@davemloft.net>
1265
1266 * config/sparc/constraints.md (C, P, Z): New constraints for
1267 const_doube, const_int, and const_vector "all ones" values.
1268 Make unused constraint letters comment match reality.
1269 * config/sparc/predicates.md (const_all_ones_operand,
1270 register_or_zero_or_all_ones_operand): New predicates.
1271 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
1272 as well as zero constants when VIS.
1273 (sparc_legitimate_constant_p): Likewise.
1274 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
1275 (movsf_insn): Likewise
1276 (movdi_insn_sp64): Add fone alternative.
1277 (movdf_insn_sp32_v9): Likewise.
1278 (movdf_insn_sp64): Likewise.
1279
1280 * configure.ac: Add feature check to make sure the assembler
1281 supports the FMAF, HPC, and VIS 3.0 instructions found on
1282 Niagara-3 and later cpus.
1283 * configure: Rebuild.
1284 * config.in: Likewise.
1285 * config/sparc/sparc.opt: New option '-mfmaf'.
1286 * config/sparc/sparc.md: Add float fused multiply-add patterns.
1287 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
1288 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
1289 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
1290 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
1291 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
1292 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
1293 disabled.
1294 (sparc_rtx_costs): Handle 'FMA'.
1295 * doc/invoke.texi: Document -mfmaf.
1296
1297 2011-09-25 Jakub Jelinek <jakub@redhat.com>
1298
1299 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
1300 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
1301 DECL_BY_REFERENCE parameters.
1302
1303 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
1304
1305 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
1306 if there is no outgoing edge.
1307
1308 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
1309 integral types.
1310
1311 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
1312
1313 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
1314 of vect_analyze_bb here.
1315 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
1316
1317 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
1318
1319 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
1320 Allow not simple iv if analyzing basic block.
1321 (create_data_ref): Update call to dr_analyze_innermost.
1322 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
1323 * tree-loop-distribution.c (generate_memset_zero): Likewise.
1324 * tree-predcom.c (find_looparound_phi): Likewise.
1325 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
1326
1327 2011-09-24 David S. Miller <davem@davemloft.net>
1328
1329 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
1330 (SPARC_GSR_REG): Define.
1331 (FIXED_REGISTERS): Mark GSR as fixed.
1332 (CALL_USED_REGISTERS): Mark GSR as call used.
1333 (HARD_REGNO_NREGS): GSR is always 1 register.
1334 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
1335 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
1336 (REGISTER_NAMES): Add "%gsr".
1337 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
1338 (UNSPEC_WRGSR): New unspec.
1339 (GSR_REG): New constant.
1340 (type): Add new insn type 'gsr'.
1341 (fpack16_vis, fpackfix_vis, fpack32_vis,
1342 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
1343 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
1344 rdgsr_v8plus): New expanders and insns.
1345 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
1346 using patterns which show that this is a plus in addition to a
1347 modification of GSR_REG, instead of an unspec.
1348 * config/sparc/ultra1_2.md: Handle 'gsr'.
1349 * config/sparc/ultra3.md: Likewise.
1350 * config/sparc/niagara.md: Likewise.
1351 * config/sparc/niagara2.md: Likewise.
1352 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
1353 end of table.
1354 (sparc_option_override): Make -mvis imply -mv8plus.
1355 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
1356 for %gsr.
1357 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
1358 __builtin_vis_read_gsr.
1359 (sparc_expand_buildin): Handle builtins that take one argument and
1360 return void.
1361 (sparc_fold_builtin): Never fold writes to %gsr.
1362 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
1363 * doc/extend.texi: Document new VIS intrinsics.
1364
1365 2011-09-23 Jan Hubicka <jh@suse.cz>
1366
1367 * ipa-inline-transform.c (inline_call): Add comment.
1368 * ipa-inline.h (inline_param_summary): New structure and vector.
1369 (struct inline_edge_summary): Add param field.
1370 * ipa-inline-analysis.c (CHANGED): New constant.
1371 (add_clause): Handle CHANGED and NOT_CONSTANT.
1372 (predicate_probability): New function.
1373 (dump_condition): Dump CHANGED predicate.
1374 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
1375 of unknown function wide invariant.
1376 (evaluate_conditions_for_edge): Handle change probabilities.
1377 (inline_edge_duplication_hook): Copy param summaries.
1378 (inline_edge_removal_hook): Free param summaries.
1379 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
1380 sizes; dump param summaries.
1381 (will_be_nonconstant_predicate): Use CHANGED predicate.
1382 (record_modified_bb_info): New structure.
1383 (record_modified): New function.
1384 (param_change_prob): New function.
1385 (estimate_function_body_sizes): Compute param summaries.
1386 (estimate_edge_size_and_time): Add probability argument.
1387 (estimate_node_size_and_time): Add inline_param_summary argument;
1388 handle predicate probabilities.
1389 (remap_predicate): Fix formating.
1390 (remap_edge_change_prob): New function.
1391 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
1392 (remap_edge_predicates): ... this one.
1393 (inline_merge_summary): Remap edge summaries; handle predicate
1394 probabilities; remove param summaries after we are done.
1395 (do_estimate_edge_time): Update.
1396 (do_estimate_edge_growth): Update.
1397 (read_inline_edge_summary): Read param info.
1398 (inline_read_summary): Fix formating.
1399 (write_inline_edge_summary): Write param summaries.
1400
1401 2011-09-23 Jakub Jelinek <jakub@redhat.com>
1402
1403 * config/i386/i386.c (ix86_print_operand): Handle %~.
1404 (ix86_print_operand_punct_valid_p): Return true also for '~'.
1405 * config/i386/sse.md (i128): New mode_attr.
1406 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
1407 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
1408 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
1409 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
1410 patterns, use "<sseinsnmode>" for "mode" attribute.
1411 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
1412 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
1413 %~128 in the patterns, use "OI" for "mode" attribute.
1414
1415 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
1416
1417 PR target/50447
1418 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
1419 "tstsi", "compare".
1420 (*cmpqi_sign_extend): Use s8_operand.
1421 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
1422 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
1423 prototypes.
1424 (out_tsthi, out_tstsi): Remove prototypes.
1425 (avr_out_tsthi, avr_out_tstsi): New prototypes.
1426 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
1427 (avr_asm_len): Negative length now sets *plen to -length.
1428 (compare_sign_p): Return bool instead of int.
1429 (compare_diff_p, compare_eq_p): Ditto and make static.
1430 (avr_out_tsthi): New function.
1431 (avr_out_tstsi): New function.
1432 (avr_out_compare): New function.
1433 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
1434 ADJUST_LEN_COMPARE.
1435
1436 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
1437
1438 PR target/50447
1439 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
1440 (addsi3): Rewrite using QI scratch register. Adjust text
1441 peepholes using plus:SI.
1442 (*addsi3_zero_extend.hi): New insn.
1443 (*subsi3_zero_extend.hi): New insn.
1444 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
1445 (*subsi3_zero_extend): Ditto.
1446 (subsi3): Change predicate #2 to register_operand.
1447 * config/avr/avr-protos.h (avr_out_plus): New prototype.
1448 (avr_out_plus_1): New static function.
1449 (avr_out_plus): New function.
1450 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
1451
1452 2011-09-23 Jakub Jelinek <jakub@redhat.com>
1453
1454 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
1455 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
1456
1457 2011-09-23 Ian Lance Taylor <iant@google.com>
1458
1459 * godump.c (go_define): Treat a single character in single quotes,
1460 or a string, as an operand.
1461
1462 2011-09-23 Martin Jambor <mjambor@suse.cz>
1463
1464 * ipa-prop.h (jump_func_type): Updated comments.
1465 (ipa_known_type_data): New type.
1466 (ipa_jump_func): Use it to describe known type jump functions.
1467 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
1468 reflect the new known type jump function contents.
1469 (compute_known_type_jump_func): Likewise.
1470 (combine_known_type_and_ancestor_jfs): Likewise.
1471 (try_make_edge_direct_virtual_call): Likewise.
1472 (ipa_write_jump_function): Likewise.
1473 (ipa_read_jump_function): Likewise.
1474 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
1475 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
1476 (propagate_accross_jump_function): Likewise.
1477
1478 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
1479
1480 PR target/50446
1481 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
1482 (rotlqi3_4): Turn insn into expander.
1483 (*rotlqi3): New insn.
1484 (rotlhi3, rotlsi3): Support rotate left/right by 1.
1485 (*rotlhi2.1, *rotlhi2.15): New insns.
1486 (*rotlsi2.1, *rotlsi2.31): New insns.
1487 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
1488
1489 2011-09-23 Bin Cheng <bin.cheng@arm.com>
1490
1491 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
1492
1493 2011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
1494
1495 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
1496
1497 2011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1498
1499 * reload.c (find_reloads): Set operand_mode to Pmode for address
1500 operands consisting of just a CONST_INT.
1501
1502 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
1503
1504 PR target/50482
1505 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
1506 blendv, force op_true to register if it doesn't satisfy
1507 nonimmediate_operand predicate.
1508
1509 2011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
1510
1511 PR middle-end/50113
1512 PR middle-end/50061
1513 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
1514 get the locate.where_pad value for register-only arguments.
1515 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
1516 (arm_pad_reg_upward): Handle null types.
1517
1518 2011-09-22 Jan Hubicka <jh@suse.cz>
1519
1520 * ipa-inline-analysis.c: Fix overly long lines.
1521
1522 2011-09-22 Jan Hubicka <jh@suse.cz>
1523
1524 * ipa-inline-transform.c (inline_call): Always update jump functions
1525 after inlining.
1526 * ipa-inline.c (ipa_inline): Likewise; do not call
1527 ipa_create_all_structures_for_iinln.
1528 (ipa_inline): Always free jump functions.
1529 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
1530 (remap_edge_predicates): Fix pasto.
1531 (inline_merge_summary): Remove nlined edge predicate; remove hack.
1532 (inline_analyze_function): Always initialize jump functions.
1533 (inline_generate_summary): Likewise.
1534 (inline_write_summary): Always write jump functions when ipa-cp
1535 is not doing that.
1536 (inline_read_summary): Always read jump functions when ipa-cp
1537 is not doing that.
1538 * ipa-prop.c (iinlining_processed_edges): Remove.
1539 (update_indirect_edges_after_inlining): Do not use
1540 iinlining_processed_edges; instead set param_index to -1.
1541 (propagate_info_to_inlined_callees): Only try to indirect inlining
1542 when asked to do so; update jump functions of indirect calls, too;
1543 remove jump functions of the inlined edge.
1544 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
1545 (ipa_create_all_structures_for_iinln): Remove.
1546 (ipa_free_all_structures_after_iinln): Do not free
1547 iinlining_processed_edges.
1548 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
1549
1550 2011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
1551
1552 * config/arm/predicates.md (expandable_comparison_operator): New
1553 predicate, extracted from...
1554 (arm_comparison_operator): ...here.
1555 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
1556 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
1557 (movdfcc): Use expandable_comparison_operator.
1558
1559 2011-09-22 Georg-Johann Lay <avr@gjlay.de>
1560
1561 PR target/50447
1562 PR target/50465
1563 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
1564 (avr_popcount_each_byte): New prototype.
1565 * config/avr/avr.c (avr_popcount): New static function.
1566 (avr_popcount_each_byte): New function.
1567 (avr_out_bitop): New function.
1568 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
1569 avr_out_bitop. Cleanup code.
1570 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
1571 (Ca4, Co4, Cx4): New constraints.
1572 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
1573 alternative.
1574 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
1575 (andsi3, iorsi3, xorsi3): Ditto.
1576 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
1577
1578 2011-09-22 Ira Rosen <ira.rosen@linaro.org>
1579
1580 PR tree-optimization/50451
1581 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
1582 constant operands in reduction.
1583 (vect_get_slp_defs): Don't create vector operand for NULL scalar
1584 operand.
1585
1586 2011-09-22 David S. Miller <davem@davemloft.net>
1587
1588 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
1589 fpack16, fpack32, fpackfix as const.
1590
1591 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
1592 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
1593 constants. Use them everywhere.
1594
1595 2011-09-22 Oleg Endo <oleg.endo@t-online.de>
1596
1597 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
1598 Added AND special case. Adapted comments.
1599 (sh_rtx_costs): Added XOR and IOR case.
1600
1601 2011-09-21 Jan Hubicka <jh@suse.cz>
1602
1603 * ipa-inline-analsis.c (compute_inline_parameters): Set
1604 cfun and current_function_decl.
1605
1606 2011-09-21 Jan Hubicka <jh@suse.cz>
1607
1608 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
1609 handled components in parameter of builtin_constant_p.
1610 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
1611
1612 2011-09-21 Jan Hubicka <jh@suse.cz>
1613
1614 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
1615 * ipa-inline.h (estimate_edge_time): Fix pasto.
1616 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
1617
1618 2011-09-21 Jakub Jelinek <jakub@redhat.com>
1619
1620 * config/i386/i386.c (ix86_expand_sse_movcc): Use
1621 blendvps, blendvpd and pblendvb if possible.
1622
1623 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
1624
1625 PR target/50464
1626 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
1627 operand 1 predicate to register_operand and operand 2 predicate
1628 to nonimmediate_operand.
1629 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
1630 xop_pcmov, force op_true to register. Also, force op_false to
1631 register if it doesn't satisfy nonimmediate_operand predicate.
1632
1633 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
1634
1635 * config/i386/bmi2intrin.h (_mulx_u64): New.
1636 (_mulx_u32): Ditto.
1637
1638 2011-09-21 Jan Hubicka <jh@suse.cz>
1639
1640 PR tree-optimization/50433
1641 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
1642 Use get_base_address.
1643
1644 2011-09-21 Jakub Jelinek <jakub@redhat.com>
1645
1646 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
1647 nonimmediate_operand instead of register_operand predicate for operands
1648 1 and 2, force them into registers if expanding them as comparison.
1649 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
1650 V8HImode force into register just operand 1.
1651
1652 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
1653
1654 PR target/45099
1655 * config/avr/avr.c (avr_function_arg_advance): Change error to
1656 warning if a fixed register is needed as function argument.
1657
1658 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
1659
1660 PR target/50449
1661 PR target/50465
1662 * config/avr/avr.md (adjust_len): New insn attribute.
1663 (*reload_insi, *reload_insf): Use it.
1664 (*movsi, *movsf): Use new interface of output_movsisf.
1665 * config/avr/avr-protos.h (output_movsisf): Change prototype.
1666 * config/avr/avr.c (output_movsisf): Ditto.
1667 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
1668 lengths of insns *reload_insi, *reload_insf.
1669 (output_reload_insisf_1): New static function.
1670 (output_reload_insisf): Use it.
1671
1672 2011-09-21 David S. Miller <davem@davemloft.net>
1673
1674 * config/sparc/sparc.c (def_builtin): Change from macro into function.
1675 (def_builtin_const): New.
1676 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
1677 other than alignaddr and falignaddr.
1678
1679 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
1680 UNSPEC_FCMPEQ): New unspec codes.
1681 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
1682 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
1683 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
1684 new pixel compare VIS patterns.
1685 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
1686 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
1687 __vis_fcmpeq16, __vis_fcmpeq32): New.
1688 * doc/extend.texi: Document new pixel compare VIS intrinsics.
1689
1690 2011-09-21 Tom de Vries <tom@codesourcery.com>
1691
1692 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
1693
1694 2011-09-20 David S. Miller <davem@davemloft.net>
1695
1696 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
1697 (aligneddrl<P:mode>_vis): New pattern.
1698 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1699 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
1700 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
1701 alignaddrl insn, and adjust edge operations for updated types.
1702 * config/sparc/visintrin.h: Likewise.
1703 * doc/extend.texi: Make typing in VIS documentation match reality.
1704
1705 2011-09-20 Terry Guo <terry.guo@arm.com>
1706
1707 * config/arm/arm-arches.def: Add armv6s-m.
1708 * config/arm/arm-tables.opt: Regenerate.
1709
1710 2011-09-20 Wei Guozhi <carrot@google.com>
1711
1712 PR rtl-optimization/49452
1713 * postreload.c (reload_combine): Invalidate use information when across
1714 volatile insn.
1715
1716 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
1717
1718 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
1719 Remove maintenance overhead.
1720 (haifa_sched_init, sched_finish): Update.
1721
1722 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
1723
1724 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
1725 to calculate unit, prefix_rep and prefix_data16 attributes.
1726 (*mov<mode>_internal): Ditto for unit attribute.
1727 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
1728 (*movv2sf_internal): Ditto.
1729 * config/i386/sse.md (VI1248_256): Remove mode iterator.
1730 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
1731 (*avx2_eq<mode>3): Ditto.
1732 (avx2_gt<mode>3): Ditto.
1733
1734 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
1735
1736 * config/i386/i386.md (maxmin): New code iterator.
1737 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
1738 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
1739 code iterator.
1740 (*avx2_<maxmin:code><mode>3): Macroize isn from
1741 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
1742 maxmin code iterator.
1743 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
1744 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
1745 <umaxmin:code>v16qi3.
1746
1747 2011-09-19 Alan Modra <amodra@gmail.com>
1748 Michael Meissner <meissner@linux.vnet.ibm.com>
1749
1750 PR target/50341
1751 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
1752 split the load of the indirect function's TOC from the call to
1753 prevent the compiler from moving the load of the new TOC above
1754 code that references the current function's TOC.
1755 (call_indirect_aix<ptrsize>_internal): Ditto.
1756 (call_indirect_aix<ptrsize>_nor11): Ditto.
1757 (call_indirect_aix<ptrsize>_internal2): Ditto.
1758 (call_value_indirect_aix<ptrsize>): Ditto.
1759 (call_value_indirect_aix<ptrsize>_internal): Ditto.
1760 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
1761 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
1762
1763 2011-09-19 Jakub Jelinek <jakub@redhat.com>
1764
1765 * config/i386/sse.md (*sse4_1_extractps): Change into
1766 define_insn_and_split, add =x 0 n and =x x n alternatives
1767 and split them after reload.
1768
1769 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
1770
1771 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
1772
1773 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
1774
1775 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
1776
1777 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
1778
1779 PR tree-optimization/50413
1780 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
1781 a basic block if one of its data-refs can't be analyzed.
1782
1783 2011-09-19 Paul Brook <paul@codesourcery.com>
1784
1785 * config/arm/predicates.md (shift_amount_operand): Check constant
1786 shift count is in range.
1787 (const_shift_operand): Remove.
1788
1789 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
1790 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1791
1792 PR target/50091
1793 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
1794 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
1795
1796 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
1797
1798 * config/i386/bmiintrin.h: Remove tmp.
1799 * config/i386/tbmintrin.h: Likewise.
1800
1801 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
1802
1803 PR tree-optimization/50414
1804 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
1805 MIN_EXPR.
1806
1807 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
1808
1809 PR tree-optimization/50412
1810 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
1811 acceses that require epilogue loop if vectorizing outer loop.
1812
1813 2011-09-17 David S. Miller <davem@davemloft.net>
1814
1815 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
1816 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
1817 New unspecs.
1818 (define_attr type): New type 'edge'.
1819 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1820 edge32l_vis): New patterns.
1821 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
1822 * config/sparc/ultra3.md: Likewise.
1823 * config/sparc/niagara.md: Likewise.
1824 * config/sparc/niagara2.md: Likewise.
1825 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
1826 builtins for VIS edge instructions.
1827 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
1828 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
1829 intrinsics.
1830 (__v8qi, __v4qi): Make unsigned.
1831 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
1832 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
1833 __vis_fpack32): Fix types.
1834 * doc/extend.texi: Document new 'edge' VIS intrinsics.
1835
1836 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
1837 divide costs.
1838 (niagara3_costs): New.
1839 (sparc_option_override): Use it.
1840 * gcc/config/sparc/niagara2.md: Adjust with more accurate
1841 Niagara-3 reservations.
1842
1843 2011-09-17 Jakub Jelinek <jakub@redhat.com>
1844
1845 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
1846 (sse2_avx, sseinsnmode): Add V2TI.
1847 (REDUC_SMINMAX_MODE): New mode iterator.
1848 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
1849 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
1850 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
1851 (sse2_lshrv1ti3): Rename to...
1852 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
1853 iterator. Move before umaxmin expanders.
1854 * config/i386/i386.h (VALID_AVX256_REG_MODE,
1855 SSE_REG_MODE_P): Accept V2TImode.
1856 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
1857 V16HImode, V8SImode and V4DImode.
1858
1859 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
1860 and V4DImode.
1861 (ix86_build_signbit_mask): Likewise.
1862 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
1863 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
1864 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
1865 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
1866 (<code><mode>3) ... this.
1867 (avx2_<code><mode>3 smaxmin expand): Rename to...
1868 (<code><mode>3) ... this.
1869 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
1870 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
1871 VI8_AVX2 mode iterator.
1872 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
1873 VI8_AVX2 mode iterator.
1874 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
1875 New expanders.
1876
1877 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
1878
1879 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
1880 throughout file.
1881
1882 2011-09-16 David S. Miller <davem@davemloft.net>
1883
1884 * config/sparc/visintrin.h: New file.
1885 * config.gcc: Add it to extra_headers on sparc.
1886
1887 2011-09-16 Jakub Jelinek <jakub@redhat.com>
1888
1889 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
1890 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
1891 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
1892 reduc_smin_v4sf): Adjust callers.
1893 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
1894 New expanders.
1895
1896 * config/i386/sse.md (vec_extract_hi_<mode>,
1897 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
1898 vextracti128 instead of vextractf128 for -mavx2 and
1899 integer vectors. For V4DFmode fix up mode attribute.
1900 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
1901 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
1902 instead of V8SF mode attribute.
1903 (avx2_extracti128): Change into define_expand.
1904 * config/i386/i386.c (ix86_expand_vector_extract): Handle
1905 32-byte vector modes if TARGET_AVX.
1906
1907 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
1908
1909 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
1910 (umulqi3_highpart, smulqi3_highpart): Ditto.
1911 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
1912 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
1913 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
1914
1915 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
1916
1917 PR target/50358
1918 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
1919 (*maddqi4, *maddqi4.const): New insns.
1920 (*msubqi4, *msubqi4.const): New insns.
1921 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
1922 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
1923 HImode by 1 in the case of multiplying with a CONST_INT.
1924 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
1925
1926 2011-09-15 Jan Hubicka <jh@suse.cz>
1927
1928 PR lto/50430
1929 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
1930 error_mark_node in the DECL_INITIAL of vtable.
1931
1932 2011-09-15 Diego Novillo <dnovillo@google.com>
1933
1934 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
1935 @SYSROOT_CFLAGS_FOR_TARGET@.
1936 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
1937 * configure: Regenerate.
1938 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
1939 Remove setting of GCC_UNDER_TEST.
1940
1941 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
1942
1943 * config/i386/i386.c (output_fp_compare): Return %v prefixed
1944 instruction mnemonics for TARGET_AVX.
1945
1946 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
1947 "type" attribute calculation.
1948 (*movdf_internal): Ditto.
1949 (*movsf_internal): Ditto.
1950
1951 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
1952
1953 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
1954
1955 2011-09-15 Jason Merrill <jason@redhat.com>
1956
1957 PR c++/50361
1958 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
1959
1960 2011-09-15 Jan Hubicka <jh@suse.cz>
1961
1962 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
1963 simplify obviously true clauses.
1964 (and_predicates, or_predicates): Add conditions parameter.
1965 (inline_duplication_hoook): Update.
1966 (mark_modified): New function.
1967 (unmodified_parm): New function.
1968 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
1969 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
1970 Use unmodified_parm.
1971 (estimate_function_body_sizes): Update.
1972 (remap_predicate): Update.
1973
1974 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
1975
1976 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
1977 read-after-read dependencies in basic block SLP.
1978
1979 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1980
1981 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
1982 throughout file.
1983
1984 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1985
1986 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
1987 throughout file.
1988
1989 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1990
1991 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
1992 throughout file.
1993
1994 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1995
1996 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
1997 throughout file.
1998 * config/rs6000/constraints.md: Likewise.
1999
2000 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
2001
2002 * config/microblaze/microblaze.md: Use match_test rather than
2003 eq/ne symbol_ref throughout file.
2004
2005 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
2006
2007 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
2008 throughout file.
2009
2010 2011-09-14 Tom de Vries <tom@codesourcery.com>
2011
2012 PR middle-end/50251
2013 * explow.c (emit_stack_restore): Set crtl->need_drap if
2014 stack_restore is emitted.
2015
2016 2011-09-14 Julian Brown <julian@codesourcery.com>
2017
2018 * config/arm/arm.c (arm_override_options): Add unaligned_access
2019 support.
2020 (arm_file_start): Emit attribute for unaligned access as appropriate.
2021 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
2022 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
2023 (insv, extzv): Add unaligned-access support.
2024 (extv): Change to expander. Likewise.
2025 (extzv_t1, extv_regsi): Add helpers.
2026 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
2027 (unaligned_storesi, unaligned_storehi): New.
2028 (*extv_reg): New (previous extv implementation).
2029 * config/arm/arm.opt (munaligned_access): Add option.
2030 * config/arm/constraints.md (Uw): New constraint.
2031 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
2032 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
2033 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
2034 volatile accesses when -fstrict-volatile-bitfields is in effect.
2035 (extract_bit_field_1): Likewise.
2036
2037 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
2038
2039 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
2040 a scalar integer before applying integer-only optimisations to
2041 inner arithmetic.
2042
2043 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
2044
2045 * config/mips/mips.c (mips_expand_epilogue): Generate a
2046 simple_return only if the return address is in r31.
2047
2048 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
2049
2050 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
2051 NULL for a jump that is a cc0 insn, pick the previous insn for
2052 move_before.
2053
2054 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
2055
2056 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
2057 throughout file.
2058
2059 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
2060
2061 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
2062 throughout file.
2063
2064 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
2065
2066 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
2067 symbol_ref throughout file.
2068
2069 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
2070
2071 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
2072 throughout file.
2073
2074 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
2075
2076 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
2077 throughout file.
2078
2079 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
2080
2081 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
2082 throughout file.
2083 * config/arm/neon.md: Likewise.
2084 * config/arm/vfp.md: Likewise.
2085 * config/arm/thumb2.md: Likewise.
2086 * config/arm/cortex-m4.md: Likewise.
2087
2088 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
2089
2090 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
2091 define_insn patterns for combine.
2092
2093 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
2094
2095 * reorg.c: Always define make_return_insns.
2096
2097 2011-09-13 Jan Hubicka <jh@suse.cz>
2098
2099 PR other/49533
2100 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
2101
2102 2011-09-13 Jan Hubicka <jh@suse.cz>
2103
2104 PR other/49533
2105 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
2106
2107 2011-09-13 Paul Brook <paul@codesourcery.com>
2108
2109 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2110 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
2111 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
2112 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
2113 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
2114 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
2115 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
2116 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
2117 enabling unwind tables.
2118 (c6x_debug_unwind_info): New function.
2119 (TARGET_ARM_EABI_UNWINDER): Define.
2120 (TARGET_DEBUG_UNWIND_INFO): Define.
2121 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
2122 (TARGET_EXTRA_CFI_SECTION): Remove.
2123 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
2124 * ginclude/unwind-arm-common.h: New file.
2125
2126 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
2127
2128 PR target/50358
2129 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
2130 * config/avr/avr.md: (extend_s): New code attribute.
2131 (mul_r_d): New code attribute.
2132 (*maddqihi4, *umaddqihi4): New insns.
2133 (*msubqihi4, *umsubqihi4): New insns.
2134 (*usmaddqihi4, *sumaddqihi4): New insns.
2135 (*usmsubqihi4, *susubdqihi4): New insns.
2136 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
2137 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
2138 (*umsubqihi4.uconst.ashift): New insn-and-split.
2139 (*msubqihi4.sconst.ashift): New insn-and-split.
2140 (*sumaddqihi4.uconst): New insn-and-split.
2141 (*sumsubqihi4.uconst): New insn-and-split.
2142 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
2143 PLUS:HI and MINUS:HI.
2144
2145 2011-09-13 Revital Eres <revital.eres@linaro.org>
2146
2147 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
2148 (optimize_sc): Adjust call to remove_node_from_ps.
2149 (sms_schedule): Add print info.
2150
2151 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
2152
2153 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
2154 flags specially.
2155
2156 2011-09-12 Jakub Jelinek <jakub@redhat.com>
2157
2158 PR bootstrap/50010
2159 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
2160 NOTE_INSN_CFI notes, with the exception of
2161 NOTE_INSN_SWITCH_TEXT_SECTIONS.
2162
2163 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
2164 Richard Sandiford <rdsandiford@googlemail.com>
2165
2166 * config/mips/mips.c (mips_epilogue): New structure.
2167 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
2168 restoring registers.
2169 (mips_epilogue_emit_cfa_restores): New function.
2170 (mips_epilogue_set_cfa): Likewise.
2171 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
2172 the current CFA register from the stack, redefine the CFA in terms
2173 of the stack pointer.
2174 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
2175 to the epilogue instructions.
2176
2177 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
2178
2179 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
2180 argument.
2181 (mips16e_build_save_restore): Update accordingly.
2182
2183 2011-09-12 Jakub Jelinek <jakub@redhat.com>
2184
2185 PR rtl-optimization/50212
2186 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
2187 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
2188
2189 PR debug/50299
2190 * calls.c (load_register_parameters): Use use_reg_mode instead
2191 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
2192 entry.
2193 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
2194 for stack CALL_INSN_FUNCTION_USAGE uses.
2195 * expr.h (use_reg_mode): New prototype.
2196 (use_reg): Changed into inline around use_reg_mode.
2197 * expr.c (use_reg): Renamed to...
2198 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
2199 mode to that mode instead of VOIDmode.
2200 * var-tracking.c (prepare_call_arguments): Don't track parameters
2201 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
2202 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
2203 EXPR_LIST mode.
2204
2205 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
2206
2207 PR target/43746
2208 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
2209 (progmem_section): New Variable.
2210 (avr_asm_init_sections): Initialize it.
2211 (TARGET_ASM_SELECT_SECTION): Define to...
2212 (avr_asm_select_section): ... this new Function.
2213 (avr_replace_prefix): New Function.
2214 (avr_asm_function_rodata_section): Use it.
2215 (avr_insert_attributes): Don't add section attribute for PROGMEM.
2216 (avr_section_type_flags): Use avr_progmem_p instead of section
2217 name to detect if object is in PROGMEM.
2218 (avr_asm_named_section): Set section name prefix for objects in
2219 PROGMEM.
2220
2221 2011-09-12 Jakub Jelinek <jakub@redhat.com>
2222
2223 PR bootstrap/50352
2224 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
2225 sprintf format string.
2226
2227 2011-09-12 Richard Guenther <rguenther@suse.de>
2228
2229 PR tree-optimization/50343
2230 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
2231 that the reduction is over an SSA name before checking its definition.
2232
2233 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
2234
2235 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
2236 throughout file.
2237
2238 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
2239
2240 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
2241 throughout file.
2242 * config/mips/sb1.md: Likewise.
2243 * config/mips/predicates.md: Replace (match_test "!...")
2244 with (not (match_test "..."))
2245 * config/mips/constraints.md: Likewise.
2246
2247 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
2248
2249 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
2250 * config/arm/arm-tables.opt: Regenerate.
2251 * config/arm/arm-tune.md: Regenerate.
2252 * config/arm/arm.c (arm_file_start): Output .arch directive when
2253 user passes -mcpu=generic-*.
2254 (arm_issue_rate): Add genericv7a support.
2255 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
2256 (ASM_CPU_SPEC): New define.
2257 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
2258 * config/arm/semi.h (ASM_SPEC): Likewise.
2259 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
2260 and -mtune=generic-*.
2261
2262 2011-09-09 Richard Guenther <rguenther@suse.de>
2263
2264 PR tree-optimization/50328
2265 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
2266 constant or default-def operand.
2267
2268 2011-09-09 Richard Guenther <rguenther@suse.de>
2269
2270 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
2271 last statement.
2272
2273 2011-09-09 Richard Guenther <rguenther@suse.de>
2274
2275 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
2276 instead of a statement.
2277 * gimple-fold.c (fold_stmt_inplace): Likewise.
2278 * sese.c (graphite_copy_stmts_from_block): Adjust.
2279 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
2280 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
2281 fold_stmt.
2282 (forward_propagate_addr_into_variable_array_index): Likewise.
2283 (forward_propagate_addr_expr_1): adjust.
2284 (associate_plusminus): Likewise.
2285 (ssa_forward_propagate_and_combine): Likewise.
2286 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
2287 (execute_cse_reciprocals): Likewise.
2288 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
2289
2290 2011-09-09 Nick Clifton <nickc@redhat.com>
2291
2292 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
2293 Return a positive value to indicate that the bits at the
2294 bottom of the register should be cleared.
2295
2296 2011-09-09 Richard Guenther <rguenther@suse.de>
2297
2298 * tree-ssa-operands.c (swap_tree_operands): Always adjust
2299 existing operand positions.
2300
2301 2011-09-09 Richard Guenther <rguenther@suse.de>
2302
2303 PR middle-end/50333
2304 * tree-data-ref.c (split_constant_offset): Do not try to handle
2305 ternary ops.
2306
2307 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
2308
2309 PR tree-optimization/50318
2310 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
2311 typo in use of mult_rhs1 and mult_rhs2.
2312
2313 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
2314
2315 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
2316 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
2317
2318 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
2319
2320 * config/arm/arm.md (push_multi): Emit predicates.
2321 (push_fp_multi): Likewise.
2322 * config/arm/arm.c (vfp_output_fstmd): Likewise.
2323
2324 2011-09-08 Dodji Seketeli <dodji@redhat.com>
2325
2326 PR c++/33255 - Support -Wunused-local-typedefs warning
2327 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
2328 (pushdecl): Use the new record_locally_defined_typedef.
2329 (store_parm_decls): Allocate cfun->language.
2330 (finish_function): Use the new maybe_warn_unused_local_typedefs,
2331 and free cfun->language.
2332 (c_push_function_context): Allocate cfun->language here only if needed.
2333 (c_pop_function_context): Likewise, mark cfun->language
2334 for collection only when it should be done.
2335 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
2336 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
2337 maybe_record_local_typedef_use.
2338 * doc/invoke.texi: Update documentation for
2339 -Wunused-local-typedefs.
2340
2341 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
2342
2343 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
2344 (ix86_avoid_lea_for_add): Likewise.
2345 (ix86_avoid_lea_for_addr): Likewise.
2346 (ix86_split_lea_for_addr): Likewise.
2347
2348 * config/i386/i386.c (LEA_MAX_STALL): New.
2349 (increase_distance): Likewise.
2350 (insn_defines_reg): Likewise.
2351 (insn_uses_reg_mem): Likewise.
2352 (distance_non_agu_define_in_bb): Likewise.
2353 (distance_agu_use_in_bb): Likewise.
2354 (ix86_lea_outperforms): Likewise.
2355 (ix86_ok_to_clobber_flags): Likewise.
2356 (ix86_avoid_lea_for_add): Likewise.
2357 (ix86_avoid_lea_for_addr): Likewise.
2358 (ix86_split_lea_for_addr): Likewise.
2359 (distance_non_agu_define): Search in pred BBs added.
2360 (distance_agu_use): Search in succ BBs added.
2361 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
2362 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
2363 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
2364
2365 * config/i386/i386.md: Split added to transform non destructive
2366 add into move and add.
2367 (lea_1): transformed into insn_and_split to avoid AGU stalls.
2368 (lea<mode>_2): Likewise.
2369
2370 2011-09-08 Martin Jambor <mjambor@suse.cz>
2371
2372 PR tree-optimization/50287
2373 * ipa-split.c (split_function): Do not create SSA names for
2374 non-gimple-registers.
2375
2376 2011-09-08 Richard Guenther <rguenther@suse.de>
2377
2378 PR tree-optimization/19831
2379 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
2380 skip builtins with vdefs that do not really store something.
2381 (propagate_necessity): For calls to free that we can associate
2382 with an allocation function do not mark the freed pointer
2383 definition necessary.
2384 (eliminate_unnecessary_stmts): Remove a call to free if
2385 the associated call to an allocation function is not necessary.
2386
2387 2011-09-08 Richard Guenther <rguenther@suse.de>
2388
2389 PR tree-optimization/19831
2390 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
2391 allocation functions as necessary.
2392
2393 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
2394
2395 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
2396 cut from ...
2397 (darwin_default_min_version): Amended to provide defaults
2398 for the cross directory case.
2399 (darwin_driver_init): call darwin_default_min_version unconditionally.
2400 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
2401 * config/darwin9.h: Likewise.
2402 * config/darwin10.h: Likewise.
2403 * config/rs6000/darwin7.h: Likewise.
2404
2405 2011-09-08 Jakub Jelinek <jakub@redhat.com>
2406
2407 PR target/50310
2408 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
2409 code early if TARGET_AVX.
2410 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
2411
2412 2011-09-07 Jakub Jelinek <jakub@redhat.com>
2413
2414 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
2415 duplicates.
2416
2417 PR target/50310
2418 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
2419 "mode" attribute computation.
2420
2421 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
2422
2423 * regrename.c (struct du_head): Make nregs signed.
2424 (closed_chains): Remove.
2425 (create_new_chain): Return the new chain.
2426 (chain_from_id): New static function.
2427 (dump_def_use_chain): Change argument to be an int, indicating
2428 the first ID to print. All callers changed.
2429 (merge_overlapping_regs): Use chain_from_id. Assert that
2430 chains don't conflict with themselves.
2431 (rename_chains): Take no argument. Iterate over id_to_chain
2432 rather to find chains to rename. Clear tick before the main loop.
2433 (struct incoming_reg_info): New struct.
2434 (struct bb_rename_info): New struct.
2435 (init_rename_info, set_incoming_from_chain, merge_chains): New
2436 static functions.
2437 (regrename_analyze): New static function, broken out of
2438 regrename_optimize. Record and make use of open chain information
2439 at basic block boundaries, and merge chains where possible.
2440 (scan_rtx_reg): Make this_nregs signed. Don't update
2441 closed_chains.
2442 (build_def_use): Return a bool to indicate success. All callers
2443 changed. Don't initialize global data here.
2444 (regrename_optimize): Move most code out of here into
2445 regrename_analyze.
2446 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
2447 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
2448 static inline functions.
2449 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
2450
2451 * bb-reorder.c (insert_section_boundary_note): Don't check
2452 optimize_function_for_speed_p.
2453 (gate_handle_partition_blocks): Do it here instead.
2454 (gate_handle_reorder_blocks): Move preliminary checks here ...
2455 (rest_of_handle_reorder_blocks): ... from here.
2456
2457 2011-09-07 Martin Jambor <mjambor@suse.cz>
2458
2459 PR middle-end/50301
2460 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
2461 function index bounds.
2462 (perhaps_add_new_callers): Likewise.
2463
2464 2011-09-07 Martin Jambor <mjambor@suse.cz>
2465
2466 PR tree-optimization/49911
2467 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
2468 enumerations to the corresponding plain integer type.
2469
2470 2011-09-07 Richard Guenther <rguenther@suse.de>
2471
2472 PR tree-optimization/50319
2473 * tree-if-conv.c (set_bb_predicate): Assert we only set
2474 canonical predicates.
2475 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
2476 around canonical predicates.
2477 (predicate_bbs): Do not re-gimplify already canonical
2478 predicates. Properly unshare them though.
2479 (find_phi_replacement_condition): Simplify.
2480
2481 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
2482
2483 PR target/49030
2484 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
2485 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
2486 reusing the old code from get_arm_condition_code. Return ARM_NV
2487 for invalid comparison codes.
2488 (get_arm_condition_code): Redefine in terms of
2489 maybe_get_arm_condition_code.
2490 * config/arm/predicates.md (arm_comparison_operator): Use
2491 maybe_get_arm_condition_code.
2492
2493 2011-09-07 Richard Guenther <rguenther@suse.de>
2494
2495 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
2496 Canonicalize negated predicates by swapping edges.
2497 (forward_propagate_into_cond): Likewise.
2498
2499 2011-09-07 Richard Guenther <rguenther@suse.de>
2500
2501 PR tree-optimization/50213
2502 * tree-flow.h (simple_iv_increment_p): Declare.
2503 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
2504 POINTER_PLUS_EXPR.
2505 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
2506 not propagate simple IV counter increments.
2507
2508 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
2509 Iain Sandoe <iains@gcc.gnu.org>
2510
2511 * config/rs6000/rs6000.c (compute_save_world_info): Test
2512 cfun->has_nonlocal_label to determine if the out-of-line save
2513 world call may be used.
2514
2515 2011-09-07 Nick Clifton <nickc@redhat.com>
2516
2517 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
2518 label on the parallel part of the insn.
2519
2520 2011-09-07 Jakub Jelinek <jakub@redhat.com>
2521
2522 PR debug/50191
2523 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
2524 avoid_constant_pool_reference first instead of last.
2525
2526 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2527
2528 * doc/configfiles.texi (Configuration Files): Update documentation
2529 about tm_p.h and remove FIXME comment.
2530
2531 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
2532
2533 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
2534 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
2535
2536 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
2537
2538 * config/darwin10.h Remove duplicate LIB_SPEC.
2539
2540 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
2541
2542 PR middle-end/44382
2543 * target.def (reassociation_width): New hook.
2544
2545 * doc/tm.texi.in (reassociation_width): Likewise.
2546
2547 * doc/tm.texi (reassociation_width): Likewise.
2548
2549 * doc/invoke.texi (tree-reassoc-width): New param documented.
2550
2551 * hooks.h (hook_int_uint_mode_1): New default hook.
2552
2553 * hooks.c (hook_int_uint_mode_1): Likewise.
2554
2555 * config/i386/i386.h (ix86_tune_indices): Add
2556 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
2557
2558 (TARGET_REASSOC_INT_TO_PARALLEL): New.
2559 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
2560
2561 * config/i386/i386.c (initial_ix86_tune_features): Add
2562 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
2563
2564 (ix86_reassociation_width): New function.
2565
2566 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
2567
2568 * tree-ssa-reassoc.c (get_required_cycles): New function.
2569 (get_reassociation_width): Likewise.
2570 (swap_ops_for_binary_stmt): Likewise.
2571 (rewrite_expr_tree_parallel): Likewise.
2572
2573 (rewrite_expr_tree): Refactored. Part of code moved into
2574 swap_ops_for_binary_stmt.
2575
2576 (reassociate_bb): Now checks reassociation width to be used and
2577 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
2578
2579 2011-09-06 Richard Guenther <rguenther@suse.de>
2580
2581 PR tree-optimization/47025
2582 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
2583 uses nothing.
2584 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
2585 BUILT_IN_FREE.
2586 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
2587 definitely points to.
2588 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2589 BUILT_IN_VA_START doesn't let its va_list argument escape.
2590 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
2591 not make any previous stores necessary.
2592
2593 2011-09-06 Martin Jambor <mjambor@suse.cz>
2594
2595 * ipa-inline.h (struct inline_summary): Move versionable flag...
2596 * cgraph.h (struct cgraph_local_info): ...here
2597 * ipa-cp.c (determine_versionability): Use the new versionable flag.
2598 (determine_versionability): Likewise.
2599 (ipcp_versionable_function_p): Likewise.
2600 (ipcp_generate_summary): Likewise.
2601 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
2602 versionable flag.
2603 (compute_inline_parameters): Do not clear the versionable flag.
2604 (inline_read_section): Do not stream the versionable flag.
2605 (inline_write_summary): Likewise.
2606 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
2607 (input_overwrite_node): Likewise.
2608
2609 2011-09-06 Richard Guenther <rguenther@suse.de>
2610
2611 PR tree-optimization/48149
2612 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
2613 (vn_valueize): Move earlier.
2614 (valueize_expr): Use vn_valueize.
2615 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
2616 operands.
2617 (simplify_unary_expression): Simplify.
2618
2619 2011-09-06 Richard Guenther <rguenther@suse.de>
2620
2621 PR tree-optimization/48317
2622 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
2623 trailing array.
2624 (sizeof_vn_nary_op): New inline function.
2625 (vn_nary_op_lookup_pieces): Adjust.
2626 (vn_nary_op_insert_pieces): Likewise.
2627 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
2628 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
2629 any number of operands.
2630 (vn_nary_length_from_stmt): New function.
2631 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
2632 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
2633 sized temporary.
2634 (vn_nary_op_lookup): Likewise.
2635 (vn_nary_op_lookup_stmt): Likewise.
2636 (vn_nary_op_insert_into): Likewise.
2637 (vn_nary_op_insert_stmt): Likewise.
2638 (visit_use): Handle CONSTRUCTOR as nary.
2639 * tree-ssa-pre.c (phi_translate_1): Adjust.
2640 (create_expression_by_pieces): Likewise.
2641 (compute_avail): Likewise.
2642
2643 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
2644
2645 * config/arm/arm.c (arm_preferred_simd_mode): Check
2646 TARGET_NEON_VECTORIZE_DOUBLE instead of
2647 TARGET_NEON_VECTORIZE_QUAD.
2648 (arm_autovectorize_vector_sizes): Likewise.
2649 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
2650 mask of mvectorize-with-neon-double. Add RejectNegative.
2651 (mvectorize-with-neon-double): New.
2652
2653 2011-09-06 Richard Guenther <rguenther@suse.de>
2654
2655 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
2656
2657 2011-09-06 Tom de Vries <tom@codesourcery.com>
2658
2659 * recog.c (asm_labels_ok): New function.
2660 (check_asm_operands): Use asm_labels_ok.
2661
2662 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
2663
2664 PR target/49606
2665 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
2666 (PMODE_INSN): New macro.
2667 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
2668 (mips_got_load, mips_expand_synci_loop): Likewise.
2669 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
2670 cprestore patterns.
2671 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
2672 copygp_mips16 patterns.
2673 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
2674 and use_cprestore patterns.
2675 (mips_override_options): Check for incompatible -mabi and -mlong
2676 combinations.
2677 * config/mips/mips.md (unspec_got<mode>): Rename to...
2678 (unspec_got_<mode>): ...this.
2679 (copygp_mips16): Use the Pmode iterator.
2680 (potential_cprestore, cprestore, use_cprestore): Likewise.
2681 (clear_cache, indirect_jump): Use PMODE_INSN.
2682 (indirect_jump<mode>): Rename to...
2683 (indirect_jump_<mode>): ...this.
2684 (tablejump): Use PMODE_INSN.
2685 (tablejump<mode>): Rename to...
2686 (tablejump_<mode>): ...this.
2687 (exception_receiver): Handle restore_gp_si and restore_gp_di.
2688 (restore_gp): Use the Pmode iterator.
2689 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
2690 PMODE_INSN.
2691
2692 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
2693
2694 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
2695 Fix the type of the BIT_AND_EXPR.
2696
2697 2011-09-05 David S. Miller <davem@davemloft.net>
2698
2699 * config.host: Add driver-sparc.o and sparc/x-sparc on
2700 native sparc*-*-linux* builds.
2701 * config/sparc/driver-sparc.c: Correct Linux strings.
2702 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
2703 * config/sparc/linux64.h: Likewise.
2704 * doc/invoke.texi: Document that Linux also supports
2705 -mcpu=native and -mtune=native on sparc.
2706
2707 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
2708 PROCESSOR_NIAGARA4): New.
2709 * config/sparc/sparc.opt: Handle new processor types.
2710 * config/sparc/sparc.md: Add to "cpu" attribute.
2711 * config/sparc/sparc.h (TARGET_CPU_niagara3,
2712 TARGET_CPU_niagara4): New, treat as niagara2.
2713 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
2714 * config/sparc/sol2.h: Likewise.
2715 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
2716 * config/sparc/sparc.c (sparc_option_override): Add
2717 niagara3 and niagara4 handling.
2718 (sparc32_initialize_trampoline): Likewise.
2719 (sparc64_initialize_trampoline): Likewise.
2720 (sparc_use_sched_lookahead): Likewise.
2721 (sparc_issue_rate): Likewise.
2722 (sparc_register_move_cost): Likewise.
2723 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
2724 and niagara4 as appropriate.
2725 * doc/invoke.texi: Document new processor types.
2726 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
2727 and --with-tune options.
2728
2729 * config/sparc/sol2-64.h: Move ...
2730 * config/sparc/default-64.h: ... to here. Update comment.
2731 * config.gcc: Update Solaris sparc to use default-64.h, also
2732 prefix this header into the list on sparc64-*-linux.
2733 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
2734 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
2735 to MASK_HARD_QUAD.
2736
2737 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
2738
2739 PR target/50289
2740 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
2741 that contain global register variable.
2742
2743 2011-09-05 Richard Guenther <rguenther@suse.de>
2744
2745 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
2746
2747 2011-09-05 Richard Guenther <rguenther@suse.de>
2748
2749 * stor-layout.c (layout_type): Use size_binop for array size
2750 calculations.
2751
2752 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
2753
2754 * config/avr/avr.h (progmem_section): Remove Declaration.
2755 * config/avr/avr.c (progmem_section): Make static and rename to
2756 progmem_swtable_section.
2757 (avr_output_addr_vec_elt): No need to switch sections.
2758 (avr_asm_init_sections): Use output_section_asm_op as section
2759 callback for progmem_swtable_section.
2760 (avr_output_progmem_section_asm_op): Remove Function.
2761 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
2762 (avr_asm_function_rodata_section): New static Function.
2763 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
2764 alignment 2**1 for jump tables.
2765
2766 2011-09-04 Jan Hubicka <jh@suse.cz>
2767
2768 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
2769 parameter is SSA name.
2770
2771 2011-09-04 Richard Guenther <rguenther@suse.de>
2772
2773 Revert
2774 2011-08-31 Richard Guenther <rguenther@suse.de>
2775
2776 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
2777 special-casing.
2778
2779 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
2780
2781 PR debug/49901
2782 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
2783
2784 2011-09-04 Jakub Jelinek <jakub@redhat.com>
2785 Ira Rosen <ira.rosen@linaro.org>
2786
2787 PR tree-optimization/50208
2788 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
2789 argument. Check that def_stmt is inside the loop.
2790 (vect_recog_widen_mult_pattern): Update calls to
2791 vect_handle_widen_mult_by_cons.
2792 (vect_operation_fits_smaller_type): Check that def_stmt is
2793 inside the loop.
2794
2795 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
2796
2797 * tree-vectorizer.c (vect_print_dump_info): Print line
2798 number when dumping to a file.
2799 (vectorize_loops): Add new messages to dump file.
2800
2801 2011-09-03 Martin Jambor <mjambor@suse.cz>
2802
2803 * ipa-prop.h (ipa_jump_func_t): New typedef.
2804 (struct ipa_edge_args): Removed field argument_count, field
2805 jump_functions turned into a vector.
2806 (ipa_set_cs_argument_count): Removed.
2807 (ipa_get_cs_argument_count): Updated to work on vectors.
2808 (ipa_get_ith_jump_func): Likewise.
2809 * ipa-prop.c (ipa_count_arguments): Removed.
2810 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
2811 jump functions. Update caller.
2812 (compute_pass_through_member_ptrs): Likewise.
2813 (compute_cst_member_ptr_arguments): Likewise.
2814 (ipa_compute_jump_functions_for_edge): Get number of arguments from
2815 the statement, allocate vector.
2816 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
2817 (duplicate_ipa_jump_func_array): Removed.
2818 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
2819 (ipa_read_node_info): Allocate vector.
2820
2821 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2822
2823 PR middle-end/50232
2824 * config/pa/pa.md (return): Define "return" insn pattern.
2825 (epilogue): Use it when no epilogue is needed.
2826 * config/pa/pa.c (pa_can_use_return_insn): New function.
2827 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
2828
2829 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
2830
2831 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
2832 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
2833 Force at least BITS_PER_UNIT alignment on the new variable.
2834
2835 2011-09-02 Gary Funck <gary@intrepid.com>
2836
2837 * opts.c (print_specific_help): Fix off-by-one compare in
2838 assertion check.
2839 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
2840 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
2841 Increase by +5 to allow for more languages.
2842 * optc-gen.awk: Generate #if that ensures that the number of
2843 languages is within the implementation-defined limit.
2844
2845 2011-09-02 Michael Matz <matz@suse.de>
2846
2847 PR middle-end/50260
2848 * ipa-split.c (split_function): Call add_referenced_var.
2849
2850 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
2851 (cond_if_else_store_replacement_1): Ditto.
2852 * tree-ssa-pre.c (get_representative_for): Ditto.
2853 (create_expression_by_pieces): Ditto.
2854 (insert_into_preds_of_block): Ditto.
2855 * tree-sra.c (create_access_replacement): Ditto.
2856 (get_replaced_param_substitute): Ditto.
2857
2858 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
2859
2860 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
2861 automata_options.
2862 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
2863 (l1w, s1w, l2w, s2w): Define in the main automaton.
2864 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
2865 units.
2866 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
2867 (c6x_unit_names): Add the new units.
2868 (c6x_unit_codes): New static array.
2869 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
2870 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
2871 UNIT_QID_SIDE_OFFSET): New macros.
2872 (RESERVATION_S2): Adjust value.
2873 (c6x_option_override): Compute c6x_unit_codes.
2874 (assign_reservations): Take the unit_mask of the last instruction
2875 into account. Detect floating point reservations by looking for
2876 the new units. Don't assign reservations if the field is already
2877 nonzero.
2878 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
2879 (init_sched_state): Initialize it.
2880 (c6x_clear_sched_context): Free it.
2881 (insn_set_clock): Clear reservation.
2882 (prev_cycle_state): New static variable.
2883 (c6x_init_sched_context): Save it.
2884 (c6x_sched_init): Allocate space for it and clear it.
2885 (c6x_sched_dfa_pre_cycle_insn): New static function.
2886 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
2887 (c6x_variable_issue): Only record units in the unit_mask that
2888 were not set at the start of the cycle.
2889 (c6x_variable_issue): Compute and store the unit_mask from the
2890 current state.
2891 (reorg_split_calls): Ensure the new information remains correct.
2892 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
2893 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
2894 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
2895 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
2896 Add special reservations.
2897 * config/c6x/c6x-sched.md: Regenerate.
2898
2899 2011-09-02 Martin Jambor <mjambor@suse.cz>
2900
2901 * ipa-prop.h (ipa_node_params): Removed fields
2902 called_with_var_arguments and node_versionable.
2903 (ipa_set_called_with_variable_arg): Removed.
2904 (ipa_is_called_with_var_arguments): Likewise.
2905 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
2906 (determine_versionability): Do not check for type attributes and va
2907 builtins. Record versionability into inline summary.
2908 (initialize_node_lattices): Do not check
2909 ipa_is_called_with_var_arguments.
2910 (propagate_constants_accross_call): Likewise, ignore arguments we do
2911 not have PARM_DECLs for, set variable flag for parameters that were
2912 not passed a value.
2913 (create_specialized_node): Dump info that we cannot change signature.
2914 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
2915 number of arguments.
2916 (ipa_make_edge_direct_to_target): Likewise.
2917 (ipa_update_after_lto_read): Likewise.
2918 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
2919 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
2920 they were remapped.
2921
2922 2011-09-02 Richard Guenther <rguenther@suse.de>
2923
2924 PR tree-optimization/27460
2925 PR middle-end/29269
2926 * doc/md.texi (vcond): Document.
2927 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
2928 optab with two modes.
2929 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
2930 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
2931 (vcond_optab): Adjust.
2932 (vcondu_optab): Likewise.
2933 (expand_vec_cond_expr_p): Adjust prototype.
2934 * optabs.c (get_vcond_icode): Adjust.
2935 (expand_vec_cond_expr_p): Likewise.
2936 (expand_vec_cond_expr): Likewise.
2937 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
2938 vector type.
2939 (vectorizable_condition): Allow differing types for comparison
2940 and result.
2941 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
2942 for the comparison.
2943 * config/i386/sse.md (vcond<mode>): Split to
2944 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
2945 vcond<V_128:mode><VI124_128:mode> and
2946 vcondu<V_128:mode><VI124_128:mode>.
2947 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
2948 (vconduv2di): Likewise.
2949 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
2950 (vcondu<mode>): Likewise.
2951 * config/ia64/vect.md (vcond<mode>): Likewise.
2952 (vcondu<mode>): Likewise.
2953 (vcondv2sf): Likewise.
2954 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
2955 * config/rs6000/paired.md (vcondv2sf): Likewise.
2956 * config/rs6000/vector.md (vcond<mode>): Likewise.
2957 (vcondu<mode>): Likewise.
2958 * config/spu/spu.md (vcond<mode>): Likewise.
2959 (vcondu<mode>): Likewise.
2960
2961 2011-09-02 Richard Guenther <rguenther@suse.de>
2962
2963 * pretty-print.h (pp_unsigned_wide_integer): New.
2964 * tree-pretty-print.c (dump_generic_node): Print unsigned
2965 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
2966
2967 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
2968
2969 PR target/49987
2970 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
2971 valid CONST_VECTOR operands.
2972 (rs6000_expand_vector_init): Likewise.
2973
2974 2011-09-02 Martin Jambor <mjambor@suse.cz>
2975
2976 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
2977 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
2978 BINFO_VTABLE. Parameter delta removed, all callers updated.
2979 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
2980 BINFO_VTABLE.
2981 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
2982 all calls.
2983 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
2984 handling of thunk_delta.
2985 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
2986 (devirtualization_time_bonus): Do not handle thunk deltas.
2987 (ipcp_discover_new_direct_edges): Likewise.
2988 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2989 (try_make_edge_direct_simple_call): Likewise.
2990 (try_make_edge_direct_virtual_call): Likewise.
2991 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
2992 parameter set as unused.
2993 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
2994 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
2995 parameter set as unused.
2996 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
2997 (input_edge_opt_summary): Likewise.
2998 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
2999 BINFO_VIRTUALS at all.
3000 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
3001
3002 2011-09-02 Richard Guenther <rguenther@suse.de>
3003
3004 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
3005 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
3006
3007 2011-08-31 Richard Guenther <rguenther@suse.de>
3008
3009 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
3010 handling here, from ...
3011 (expand_expr_real_1): ... here.
3012 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
3013 and VEC_COND_EXPR.
3014 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
3015 a GIMPLE_TERNARY_RHS.
3016 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
3017 and VEC_COND_EXPR here ...
3018 (verify_gimple_assign_single): ... not here.
3019 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
3020 * tree-object-size.c (cond_expr_object_size): Adjust.
3021 (collect_object_sizes_for): Likewise.
3022 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
3023 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
3024 (ssa_forward_propagate_and_combine): Adjust.
3025 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
3026 as ternary.
3027 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
3028 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
3029 * tree-vect-stmt.c (vectorizable_condition): Likewise.
3030 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
3031 (extract_range_from_assignment): Likewise.
3032
3033 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
3034
3035 * config/i386/i386.md: Use (match_test ...) for attribute tests.
3036 * config/i386/mmx.md: Likewise.
3037 * config/i386/sse.md: Likewise.
3038 * config/i386/predicates.md (call_insn_operand): Use
3039 (not (match_test "...")) instead of (match_test "!...")
3040 * config/i386/constraints.md (w): Likewise.
3041
3042 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
3043
3044 * doc/md.texi: Describe the use of match_tests in attribute tests.
3045 * rtl.def (MATCH_TEST): Update commentary.
3046 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
3047 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
3048
3049 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
3050
3051 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
3052 (attr_string): Use copy_md_ptr_loc.
3053
3054 2011-08-31 Martin Jambor <mjambor@suse.cz>
3055
3056 PR middle-end/49886
3057 * ipa-inline-analysis.c (compute_inline_parameters): Set
3058 can_change_signature of noes with typde attributes.
3059 * ipa-split.c (split_function): Do not skip any arguments if
3060 can_change_signature is set.
3061
3062 2011-08-31 Martin Jambor <mjambor@suse.cz>
3063
3064 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
3065 check removed.
3066
3067 2011-08-31 Richard Guenther <rguenther@suse.de>
3068
3069 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
3070 special-casing.
3071
3072 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
3073
3074 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
3075
3076 2011-08-31 Tom de Vries <tom@codesourcery.com>
3077
3078 PR middle-end/43513
3079 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
3080 * tree-ssa-ccp.c (params.h): Include.
3081 (fold_builtin_alloca_for_var): New function.
3082 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
3083
3084 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
3085
3086 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3087 Handle FMA option.
3088
3089 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
3090
3091 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
3092 b3 and b4 unsigned.
3093
3094 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
3095
3096 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
3097 when code is SET.
3098
3099 2011-08-30 Richard Guenther <rguenther@suse.de>
3100
3101 PR middle-end/48571
3102 * gimple.h (maybe_fold_offset_to_address): Remove.
3103 (maybe_fold_offset_to_reference): Likewise.
3104 (maybe_fold_stmt_addition): Likewise.
3105 (may_propagate_address_into_dereference): Likewise.
3106 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
3107 array references.
3108 * gimple-fold.c (canonicalize_constructor_val): Likewise.
3109 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
3110 addresses instead.
3111 (may_propagate_address_into_dereference): Remove.
3112 (maybe_fold_offset_to_array_ref): Likewise.
3113 (maybe_fold_offset_to_reference): Likewise.
3114 (maybe_fold_offset_to_address): Likewise.
3115 (maybe_fold_stmt_addition): Likewise.
3116 (fold_gimple_assign): Do not reconstruct array references but
3117 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
3118 MEM_REF addresses.
3119 (gimple_fold_stmt_to_constant_1): Likewise.
3120 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3121 * gimplify.c (gimplify_conversion): Likewise.
3122 (gimplify_expr): Likewise.
3123
3124 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
3125
3126 * config/i386/fmaintrin.h: New.
3127 * config.gcc: Add fmaintrin.h.
3128 * config/i386/i386.c
3129 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
3130 <IX86_BUILTIN_VFMADDSD3>: Likewise.
3131 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
3132 (*fmai_fmadd_<mode>): Likewise.
3133 (*fmai_fmsub_<mode>): Likewise.
3134 (*fmai_fnmadd_<mode>): Likewise.
3135 (*fmai_fnmsub_<mode>): Likewise.
3136 * config/i386/immintrin.h: Add fmaintrin.h.
3137
3138 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
3139
3140 * genautomata.c (NO_COMB_OPTION): New macro.
3141 (no_comb_flag): New static variable.
3142 (gen_automata_option): Handle NO_COMB_OPTION.
3143 (comb_vect_p): False if no_comb_flag.
3144 (add_vect): Move computation of min/max values. Return early if
3145 no_comb_flag.
3146 * doc/md.texi (automata_option): Document no-comb-vect.
3147
3148 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
3149 "__x86.get_pc_thunk".
3150
3151 * bb-reorder.c (insert_section_boundary_note): Only do it if
3152 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
3153
3154 2011-08-30 Christian Bruel <christian.bruel@st.com>
3155
3156 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
3157 flag_profile_use.
3158
3159 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
3160
3161 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
3162 to off. Document switch.
3163 * doc/invoke.texi (-msave-toc-indirect): Ditto.
3164
3165 2011-08-29 Jakub Jelinek <jakub@redhat.com>
3166
3167 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
3168 conditionals and comments inside macro arguments.
3169
3170 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
3171 Richard Guenther <rguenther@suse.de>
3172
3173 * tree.h (constant_boolean_node): Adjust prototype.
3174 * fold-const.c (fold_convert_loc): Move aggregate conversion
3175 leeway down.
3176 (constant_boolean_node): Make value parameter boolean, add
3177 vector type handling.
3178 (fold_unary_loc): Use constant_boolean_node.
3179 (fold_binary_loc): Preserve types properly when folding
3180 COMPLEX_EXPR <__real x, __imag x>.
3181 * gimplify.c (gimplify_expr): Handle vector comparison.
3182 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
3183 comparison.
3184 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
3185 comparisons.
3186
3187 2011-08-29 Jakub Jelinek <jakub@redhat.com>
3188
3189 PR middle-end/48722
3190 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
3191 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
3192 (verify_rtl_sharing): Likewise and verify_rtx_sharing
3193 in there too.
3194 (unshare_all_rtl_in_chain): For CALL_INSNs
3195 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
3196
3197 2011-08-29 Richard Guenther <rguenther@suse.de>
3198
3199 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
3200 on the built ADDR_EXPR.
3201
3202 2011-08-29 Jakub Jelinek <jakub@redhat.com>
3203
3204 PR debug/50215
3205 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
3206 before adding ENTRY_VALUE to val->locs.
3207
3208 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
3209
3210 PR bootstrap/50218
3211 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
3212 comp.
3213
3214 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
3215
3216 * doc/rtl.texi (simple_return): Document.
3217 (parallel, PATTERN): Here too.
3218 * doc/md.texi (return): Mention it's allowed to expand to simple_return
3219 in some cases.
3220 (simple_return): Document standard pattern.
3221 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
3222 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
3223 * reorg.c (function_return_label, function_simple_return_label):
3224 New static variables, replacing...
3225 (end_of_function_label): ... this.
3226 (simplejump_or_return_p): New static function.
3227 (optimize_skip, steal_delay_list_from_fallthrough,
3228 fill_slots_from_thread): Use it.
3229 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
3230 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
3231 (find_end_label): Take a new arg which is one of the two return
3232 rtxs. Depending on which, set either function_return_label or
3233 function_simple_return_label. All callers changed.
3234 (make_return_insns): Make both kinds.
3235 (dbr_schedule): Adjust for two kinds of end labels.
3236 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
3237 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
3238 (gen_expand, gen_split): Use ANY_RETURN_P.
3239 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
3240 * rtl.def (SIMPLE_RETURN): New code.
3241 * ifcvt.c (find_if_case_1): Be more careful about
3242 redirecting jumps to the EXIT_BLOCK.
3243 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
3244 returnjump_p_1): Handle SIMPLE_RETURNs.
3245 * print-rtl.c (print_rtx): Likewise.
3246 * rtl.c (copy_rtx): Likewise.
3247 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
3248 * combine.c (simplify_set): Likewise.
3249 * resource.c (find_dead_or_set_registers, mark_set_resources):
3250 Likewise.
3251 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
3252 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
3253 (init_emit_regs): Initialize simple_return_rtx.
3254 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
3255 force_nonfallthru_and_redirect.
3256 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
3257 (GR_SIMPLE_RETURN): New enum value.
3258 (simple_return_rtx): New macro.
3259 * basic-block.h (force_nonfallthru_and_redirect): Adjust
3260 declaration.
3261 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
3262 argument. All callers changed. Be careful about what kinds of
3263 returnjumps to generate.
3264 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
3265 ix86_pad_short_function): Likewise.
3266 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
3267 of return.
3268 * config/mips/mips.md (any_return): New code_iterator.
3269 (optab): Add cases for return and simple_return.
3270 (return): Expand to a simple_return.
3271 (simple_return): New pattern.
3272 (*<optab>, *<optab>_internal for any_return): New patterns.
3273 (return_internal): Remove.
3274 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
3275 a simple_return_internal.
3276
3277 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
3278
3279 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
3280 (vec_extract_lo_<mode>): Prevent both operands in memory.
3281 (vec_extract_lo_v16hi): Ditto.
3282 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
3283
3284 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
3285
3286 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
3287 (*sse2_mulv4si3): Ditto.
3288 (mulv2di3): Ditto.
3289 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
3290 notes to REG_EQUAL.
3291
3292 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
3293
3294 PR target/50202
3295 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
3296 when all outputs are unused.
3297 (sse4_2_pcmpistr): Ditto.
3298
3299 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
3300
3301 * config/i386/i386.md (round<mode>2): New expander.
3302 * config/i386/i386.c (enum ix86_builtins): Add
3303 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
3304 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
3305 descriptions.
3306 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
3307 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
3308
3309 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
3310
3311 PR middle-end/50083
3312 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
3313 only when TARGET_C99_FUNCTIONS.
3314 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
3315 <BUILT_IN_RINT{,F,L}>: Ditto.
3316
3317 2011-08-26 Michael Matz <matz@suse.de>
3318 Jakub Jelinek <jakub@redhat.com>
3319
3320 PR lto/50165
3321 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
3322 don't call strlen twice, use memcpy.
3323
3324 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
3325
3326 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
3327 * config/i386/bmiintrin.h: Likewise.
3328 * config/i386/lzcntintrin.h: Likewise.
3329
3330 * config/i386/immintrin.h: Include <lzcntintrin.h>,
3331 <bmiintrin.h> and <bmi2intrin.h>.
3332
3333 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3334
3335 PR target/50166
3336 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
3337 * configure: Regenerate.
3338
3339 2011-08-26 Jakub Jelinek <jakub@redhat.com>
3340
3341 PR c/50179
3342 * c-typeck.c (c_process_expr_stmt): Skip over nops and
3343 call mark_exp_read even if exprv is ADDR_EXPR.
3344
3345 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
3346
3347 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
3348 to df_set_dead_notes_for_mw.
3349
3350 2011-08-26 Richard Guenther <rguenther@suse.de>
3351
3352 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
3353
3354 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
3355 Tom de Vries <tom@codesourcery.com>
3356
3357 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
3358 (struct ivopts_data): Add loop_single_exit_p field.
3359 (niter_for_exit): Change parameter desc_p into return value. Return
3360 desc if desc->may_be_zero. Free desc if unused.
3361 (niter_for_single_dom_exit): Change return type.
3362 (find_induction_variables): Handle changed return type of
3363 niter_for_single_dom_exit. Dump may_be_zero.
3364 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
3365 (set_use_iv_cost): Add and handle comp parameter.
3366 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
3367 comp argument to set_use_iv_cost.
3368 (strip_wrap_conserving_type_conversions, expr_equal_p)
3369 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
3370 (may_eliminate_iv): Add comp parameter. Handle new return type of
3371 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
3372 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
3373 and may_eliminate_iv.
3374 (rewrite_use_compare): Move call to iv_elimination_compare to ...
3375 (may_eliminate_iv): Here.
3376 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
3377
3378 2011-08-26 Tom de Vries <tom@codesourcery.com>
3379
3380 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
3381 accessing TREE_TYPE.
3382
3383 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
3384
3385 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
3386 (*ior_scc_scc_cmp): Likewise
3387 (*and_scc_scc): Likewise.
3388 (*and_scc_scc_cmp): Likewise.
3389 (*and_scc_scc_nodom): Likewise.
3390 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
3391
3392 2011-08-26 Jakub Jelinek <jakub@redhat.com>
3393
3394 * rtlanal.c (nonzero_bits1): Handle CLRSB.
3395
3396 2011-08-26 Richard Guenther <rguenther@suse.de>
3397
3398 * expr.c (string_constant): Handle &MEM_REF.
3399
3400 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
3401
3402 * config/arm/arm.c (struct four_ints): New type.
3403 (count_insns_for_constant): Delete function.
3404 (find_best_start): Delete function.
3405 (optimal_immediate_sequence): New function.
3406 (optimal_immediate_sequence_1): New function.
3407 (arm_gen_constant): Move constant splitting code to
3408 optimal_immediate_sequence.
3409 Rewrite constant negation/invertion code.
3410
3411 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
3412
3413 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
3414 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
3415 Remove prototype. Remove static function type.
3416 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
3417 Add arch attribute.
3418 * config/arm/constraints.md (Pj, PJ): New constraints.
3419
3420 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3421
3422 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
3423 ("cortex_a9_multiply_long"): New and use above. Handle all
3424 long multiply cases.
3425 ("cortex_a9_multiply"): Handle smmul and smmulr.
3426 ("cortex_a9_mac"): Handle smmla.
3427
3428 2011-08-25 Richard Henderson <rth@redhat.com>
3429
3430 PR 50132
3431 PR 49864
3432 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
3433 non-constant stack adjutment.
3434 * expr.c (find_args_size_adjust): Break out from ...
3435 (fixup_args_size_notes): ... here.
3436 * rtl.h (find_args_size_adjust): Declare.
3437
3438 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
3439
3440 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
3441 sse4 and sse4_noavx.
3442 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
3443 (*pushdf_rex64): Change Y2 register constraint to x.
3444 (*movdf_internal_rex64): Ditto.
3445 (*zero_extendsidi2_rex64): Ditto.
3446 (*movdi_internal): Change Y2 register constraint to x
3447 and update "isa" attribute.
3448 (*pushdf): Ditto.
3449 (*movdf internal): Ditto.
3450 (zero_extendsidi2_1): Ditto.
3451 (*truncdfdf_mixed): Ditto.
3452 (*truncxfdf2_mixed): Ditto.
3453 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
3454 register constraint to x.
3455 (*movv2sf_internal_rex64): Ditto.
3456 (*mov<mode>_internal): Change Y2 register constraint to x
3457 and add "isa" attribute.
3458 (*movv2sf_internal): Ditto.
3459 (*vec_extractv2si_1): Ditto.
3460 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
3461 constraints to x and update "isa" attribute.
3462 (*vec_interleave_highv2df): Change Y3 registerconstraint
3463 to x and update "isa" attribute.
3464 (*vec_interleave_lowv2df): Ditto.
3465 (*vec_concatv2df): Change Y2 register constraint to x and
3466 update "isa" attribute.
3467 (sse2_loadld): Ditto.
3468 (*vec_extractv2di_1): Ditto.
3469 (*vec_dupv4si): Ditto.
3470 (*vec_dupv2di): Ditto.
3471 (*vec_concatv4si): Ditto.
3472 (vec_concatv2di): Ditto.
3473 * config/i386/constraints.md (Y2): Remove.
3474 (Y3): Ditto.
3475 (Y4): Ditto.
3476
3477 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
3478
3479 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
3480 dump_def_use_chain): Don't declare.
3481 (mark_conflict, create_new_chain): Move before users.
3482 (regrename_optimize): Move to near end of file.
3483
3484 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3485
3486 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
3487 (secondary_input_reload_class): Remove Prototype.
3488 * config/avr/avr.c (byte_immediate_operand): Remove Function.
3489 * config/avr/avr.md (setmemhi): Use u8_operand.
3490 (strlenhi): Use const0_rtx for comparison.
3491 * config/avr/avr.h (avr_reg_order): Remove Declaration.
3492
3493 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3494
3495 * config/avr/avr.c (reg_class_tab): Make local to
3496 avr_regno_reg_class. Return smallest register class available.
3497
3498 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3499
3500 * config/avr/avr.c (STR_PREFIX_P): New Define.
3501 (avr_asm_declare_function_name): Use it.
3502 (avr_asm_named_section): Use it.
3503 (avr_section_type_flags): Use it.
3504
3505 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
3506
3507 * doc/md.texi (automata_option): Document collapse-ndfa.
3508 * genautomata.c (COLLAPSE_OPTION): New macro.
3509 (collapse_flag): New static variable.
3510 (struct description): New member normal_decls_num.
3511 (struct automaton): New members advance_ainsn and collapse_ainsn.
3512 (gen_automata_option): Check for COLLAPSE_OPTION.
3513 (collapse_ndfa_insn_decl): New static variable.
3514 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
3515 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
3516 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
3517 necessary. Use normal_decls_num rather than decls_num, remove
3518 test for special decls.
3519 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
3520 (make_automaton); Likewise. Use the new advance_cycle_insn member
3521 of struct automaton.
3522 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
3523 is set.
3524 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
3525 transition. Create the necessary transitions for it.
3526 (create_ainsns): Return void. Take an automaton_t argument, and
3527 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
3528 callers changed.
3529 (COLLAPSE_NDFA_VALUE_NAME): New macro.
3530 (output_tables): Output code to define it.
3531 (output_internal_insn_code_evaluation): Output code to accept
3532 const0_rtx as collapse-ndfa transition.
3533 (output_default_latencies, output_print_reservation_func,
3534 output_print_description): Reorganize loops to use normal_decls_num
3535 as loop bound; remove special case for advance_cycle_insn_decl.
3536 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
3537 (check_automata_insn_issues): Check for collapse_ainsn.
3538 (expand_automate): Allocate sufficient space. Initialize
3539 normal_decls_num.
3540
3541 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3542
3543 * config/avr/avr.md: Fix indentation from r177991.
3544
3545 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
3546
3547 * regrename.c (struct du_head): Remove member terminated.
3548 (create_new_chain): Don't initialize it.
3549 (scan_rtx_reg): Don't set or test it, test the open_chains_set
3550 bitmap instead.
3551 (tick, this_tick): New global variables, moved out of
3552 regrename_optimize.
3553 (current_id, open_chains, closed_chains, open_chains_set,
3554 live_in_chains, live_hard_regs): Reorder declarations.
3555 (dump_def_use_chain): Move function earlier in the file.
3556 (rename_chains): New static function, broken out of
3557 regrename_optimize.
3558 (regrename_optimize): Use it. Remove #if 0'ed code.
3559
3560 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3561
3562 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
3563
3564 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
3565
3566 PR target/50172
3567 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
3568
3569 2011-08-24 Richard Guenther <rguenther@suse.de>
3570
3571 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
3572 ref in the basic-block case. Move stripping array-refs
3573 to the place we create an access-function for it. Remove
3574 bogus stripping down a MEM_REF to its base.
3575
3576 2011-08-24 Richard Guenther <rguenther@suse.de>
3577
3578 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
3579 with -fno-strict-overflow.
3580
3581 2011-08-24 Richard Guenther <rguenther@suse.de>
3582
3583 * tree-vectorizer.c (vect_print_dump_info): Avoid the
3584 file and location clutter when dumping to dump files.
3585
3586 2011-08-24 Simon Baldwin <simonb@google.com>
3587
3588 * gengtype-state.c (write_state): Remove timestamped header line.
3589
3590 2011-08-24 Joseph Myers <joseph@codesourcery.com>
3591
3592 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
3593 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
3594 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
3595 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
3596 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
3597 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
3598 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
3599 rules.
3600 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
3601
3602 2011-08-24 Joseph Myers <joseph@codesourcery.com>
3603
3604 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
3605
3606 2011-08-24 Richard Guenther <rguenther@suse.de>
3607
3608 PR tree-optimization/50067
3609 * tree-data-ref.c (dr_analyze_indices): Do not add an access
3610 function for a MEM_REF base that has no evolution in the loop
3611 nest or that is not analyzable.
3612
3613 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
3614
3615 * ira.c (ira_init_register_move_cost): Check small subclasses
3616 through ira_reg_class_max_nregs and ira_available_class_regs.
3617
3618 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
3619
3620 * config/i386/constraints.md (Yp): New register constraint.
3621 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
3622 Yp register constraint.
3623 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
3624 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
3625 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
3626
3627 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
3628
3629 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
3630
3631 2011-08-23 Mark Heffernan <meheff@google.com>
3632
3633 PR middle-end/38509
3634 * common.opt (Wfree-nonheap-object): New option.
3635 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
3636 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
3637 to warning.
3638 (expand_builtin): Make warning conditional.
3639
3640 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
3641
3642 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
3643 (length_immediate): Handle imulx, ishiftx and rotatex.
3644 (imm_disp): Ditto.
3645 (isa): Add bmi2.
3646 (enabled): Handle bmi2.
3647 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
3648 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
3649 (*bmi2_umulditi3_1): New insn pattern.
3650 (*bmi2_umulsidi3_1): Ditto.
3651 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
3652 (*bmi2_ashl<mode>3_1): New insn pattern.
3653 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
3654 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
3655 (*bmi2_ashlsi3_1_zext): New insn pattern.
3656 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
3657 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
3658 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
3659 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
3660 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
3661 flags dependency.
3662 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
3663 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
3664 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
3665 flags dependency.
3666 (*bmi2_rorx<mode>3_1): New insn pattern.
3667 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
3668 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
3669 (*rotatert<mode>3_1 splitter): Ditto.
3670 (*bmi2_rorxsi3_1_zext): New insn pattern.
3671 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
3672 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
3673 (*rotatertsi3_1_zext splitter): Ditto.
3674
3675 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
3676
3677 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
3678 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
3679 (ix86_handle_option): Handle OPT_mbmi2 case.
3680 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
3681 (x86_64-*-*): Likewise.
3682 * config/i386/bmi2intrin.h: New file.
3683 * config/i386/cpuid.h (bit_BMI2): New.
3684 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3685 BMI2 feature.
3686 * config/i386/i386-c.c (ix86_target_macros_internal):
3687 Conditionally define __BMI2__.
3688 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
3689 Handle BMI2 option.
3690 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
3691 (print_reg): New code.
3692 (ix86_print_operand): Likewise.
3693 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3694 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3695 IX86_BUILTIN_PEXT64.
3696 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3697 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3698 IX86_BUILTIN_PEXT64.
3699 * config/i386/i386.h (TARGET_BMI2): New.
3700 * config/i386/i386.md (UNSPEC_PDEP): New.
3701 (UNSPEC_PEXT): Likewise.
3702 (*bmi2_bzhi_<mode>3): Likewise.
3703 (*bmi2_pdep_<mode>3): Likewise.
3704 (*bmi2_pext_<mode>3): Likewise.
3705 * config/i386/i386.opt (mbmi2): New.
3706 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
3707 is defined.
3708 * doc/extend.texi: Document BMI2 built-in functions.
3709 * doc/invoke.texi: Document -mbmi2.
3710
3711 2011-08-23 Jakub Jelinek <jakub@redhat.com>
3712
3713 PR middle-end/50161
3714 * simplify-rtx.c (simplify_const_unary_operation): If
3715 op is CONST_INT, don't look at op_mode, but use instead mode.
3716 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
3717 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
3718 operation and TRUNCATE/ZERO_EXTEND if needed.
3719 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
3720 Document that operand mode must be same as operation mode,
3721 or VOIDmode.
3722 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
3723 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
3724 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
3725 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
3726 use the mode of operand for the operation and add truncate
3727 or zero_extend around if needed.
3728 * config/c6x/c6x.md (ctzdi2): Likewise.
3729 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
3730
3731 2011-08-12 Michael Matz <matz@suse.de>
3732
3733 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
3734 (gimple_expand_cfg): Merge alignment info for coalesced pointer
3735 SSA names.
3736
3737 2011-08-23 Richard Guenther <rguenther@suse.de>
3738
3739 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
3740 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
3741 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
3742 from ...
3743 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
3744 (mem_refs_may_alias_p): Adjust.
3745 * tree-data-ref.h (dr_may_alias_p): Adjust.
3746 * tree-data-ref.c: Include tree-affine.h.
3747 (dr_analyze_indices): Do nothing for the non-loop case.
3748 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
3749 more cases in the non-loop case.
3750 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
3751 calls to dr_may_alias_p.
3752 (write_alias_graph_to_ascii_ecc): Likewise.
3753 (write_alias_graph_to_ascii_dot): Likewise.
3754 (build_alias_set_optimal_p): Likewise.
3755
3756 2011-08-23 Richard Guenther <rguenther@suse.de>
3757
3758 PR tree-optimization/50162
3759 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
3760
3761 2011-08-23 Richard Guenther <rguenther@suse.de>
3762
3763 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
3764 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
3765 (create_data_ref): Also dump access functions for the created data-ref.
3766
3767 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
3768 Kirill Yukhin <kirill.yukhin@intel.com>
3769
3770 PR target/50155
3771 * config/i386/sse.md (VI_AVX2): New.
3772 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
3773 (*<plusminus_insn><mode>3): Ditto.
3774 (<sse2_avx2>_andnot<mode>3): Ditto.
3775 (*andnot<mode>3): Fix order of cond operands.
3776 Add asserts for correct TARGET_xxx.
3777 (*<any_logic:code><mode>3): Ditto.
3778
3779 2011-08-22 Anatoly Sokolov <aesok@post.ru>
3780
3781 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
3782 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
3783 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
3784 regclass argument type to reg_class_t. Change 'max' and 'v' vars
3785 and return types to unsigned char. Use reg_class_contents instead
3786 of class_contents.
3787 (TARGET_CLASS_MAX_NREGS): Define.
3788
3789 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
3790
3791 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
3792 to make computed_jump_p return true.
3793
3794 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3795
3796 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
3797 (PICFLAG_FOR_TARGET): Substitute.
3798 * aclocal.m4: Regenerate.
3799 * configure: Regenerate.
3800
3801 2011-08-22 Dodji Seketeli <dodji@redhat.com>
3802
3803 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
3804 after reading in the pch.
3805
3806 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
3807
3808 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
3809 * configure: Regenerated.
3810
3811 2011-08-22 Jakub Jelinek <jakub@redhat.com>
3812
3813 PR tree-optimization/50133
3814 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
3815 from stmt instead of some statement around gsi.
3816
3817 PR middle-end/50141
3818 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
3819 innerdecl is a VAR_DECL.
3820
3821 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
3822
3823 * config/i386/avx2intrin.h: New file.
3824 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
3825 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
3826 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
3827 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
3828 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
3829 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
3830 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
3831 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
3832 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
3833 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
3834 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
3835 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
3836 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
3837 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
3838 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
3839 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
3840 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
3841 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
3842 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
3843 VOID_FTYPE_PV8SI_V8SI_V8SI,
3844 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
3845 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
3846 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
3847 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
3848 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
3849 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
3850 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
3851 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
3852 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
3853 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
3854 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
3855 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
3856 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
3857 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
3858 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
3859 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
3860 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
3861 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
3862 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
3863 V4DI_FTYPE_V4DI_INT_CONVERT,
3864 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
3865 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
3866 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
3867 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
3868 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
3869 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
3870 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
3871 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
3872 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
3873 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
3874 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
3875 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
3876 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
3877 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
3878 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
3879 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
3880 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
3881 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
3882 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
3883 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
3884 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
3885 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
3886 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
3887 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
3888 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
3889 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
3890 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
3891 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
3892 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
3893 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
3894 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
3895 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
3896 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
3897 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
3898 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
3899 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
3900 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
3901 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
3902 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
3903 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
3904 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
3905 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
3906 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
3907 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
3908 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
3909 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
3910 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
3911 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
3912 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
3913 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
3914 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
3915 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
3916 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
3917 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
3918 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
3919 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
3920 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
3921 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
3922 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
3923 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
3924 IX86_BUILTIN_VBROADCASTSS_PS256,
3925 IX86_BUILTIN_VBROADCASTSD_PD256,
3926 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
3927 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
3928 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
3929 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
3930 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
3931 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
3932 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
3933 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
3934 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
3935 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
3936 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
3937 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
3938 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
3939 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
3940 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
3941 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
3942 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
3943 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
3944 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
3945 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
3946 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
3947 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
3948 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
3949 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
3950 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
3951 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
3952 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
3953 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
3954 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
3955 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
3956 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
3957 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
3958 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
3959 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
3960 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
3961 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
3962 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
3963 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
3964 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
3965 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
3966 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
3967 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
3968 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
3969 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
3970 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
3971 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
3972 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
3973 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
3974 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
3975 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
3976 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
3977 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
3978 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
3979 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
3980 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
3981 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
3982 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
3983 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
3984 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
3985 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
3986 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
3987 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
3988 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
3989 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
3990 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
3991 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
3992 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
3993 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
3994 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
3995 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
3996 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
3997 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
3998 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
3999 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
4000 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
4001 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
4002 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
4003 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
4004 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
4005 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
4006 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
4007 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
4008 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
4009 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
4010 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
4011 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
4012 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
4013 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
4014 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
4015 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
4016 IX86_BUILTIN_VBROADCASTSD_PD256,
4017 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
4018 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
4019 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
4020 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
4021 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
4022 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
4023 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
4024 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
4025 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
4026 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
4027 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
4028 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
4029 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
4030 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
4031 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
4032 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
4033 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
4034 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
4035 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
4036 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
4037 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
4038 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
4039 IX86_BUILTIN_GATHERDIV8SI.
4040 (ix86_preferred_simd_mode): Support AVX2 modes.
4041 (ix86_expand_args_builtin): Support AVX2 builtins.
4042 (ix86_expand_special_args_builtin): Likewise.
4043 (ix86_expand_builtin): Likewise.
4044 * config/i386/i386.md (UNSPEC_VPERMSI): New.
4045 (UNSPEC_VPERMDF): Likewise.
4046 (UNSPEC_VPERMSF): Likewise.
4047 (UNSPEC_VPERMDI): Likewise.
4048 (UNSPEC_VPERMTI): Likewise.
4049 (UNSPEC_GATHER): Likewise.
4050 (ssemodesuffix): Extend.
4051 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
4052 is defined.
4053 * config/i386/predicates.md (const1248_operand): New.
4054 * config/i386/sse.md (VI1_AVX2): New mode iterator.
4055 (VI2_AVX2): Likewise.
4056 (VI4_AVX2): Likewise.
4057 (VI8_AVX2): Likewise.
4058 (VIMAX_AVX2): Likewise.
4059 (SSESCALARMODE): Likewise.
4060 (VI12_AVX2): Likewise.
4061 (VI24_AVX2): Likewise.
4062 (VI124_AVX2): Likewise.
4063 (VI248_AVX2): Likewise.
4064 (VI48_AVX2): Likewise.
4065 (VI4SD_AVX2): Likewise.
4066 (V48_AVX2): Likewise.
4067 (AVX256MODE2P): Likewise.
4068 (AVXMODE48P_DI): Likewise.
4069 (sse2_avx2): New mode attribute.
4070 (ssse3_avx2): Likewise.
4071 (sse4_1_avx2): Likewise.
4072 (avx_avx2): Likewise.
4073 (ssebytemode): Likewise.
4074 (AVXTOSSEMODE): Likewise.
4075 (AVXMODE48P_DI): Likewise.
4076 (gthrfirstp): Likewise.
4077 (gthrlastp): Likewise.
4078 (lshift): New code_iterator
4079 (lshift): New code attribute.
4080 (lshift): Likewise.
4081 (ssescalarmodesuffix): Update.
4082 (sseunpackmode): Likewise.
4083 (ssepackmode): Likewise.
4084 (avx2_vec_dupv4sf): New insn pattern.
4085 (avx2_vec_dupv8sf): Likewise.
4086 (avx2_interleave_highv4di): Likewise.
4087 (avx2_interleave_lowv4di): Likewise.
4088 (avx2_umulv4siv4di3): Likewise
4089 (*avx2_umulv4siv4di3): Likewise
4090 (avx2_pmaddwd): Likewise.
4091 (*avx2_pmaddwd): Likewise.
4092 (avx2_lshrqv4di3): Likewise.
4093 (avx2_lshlqv4di3): Likewise.
4094 (avx2_lshl<mode>3): Likewise.
4095 (avx2_<umaxmin:code><mode>3): Likewise.
4096 (*avx2_<umaxmin:code><mode>3): Likewise.
4097 (avx2_<smaxmin:code><mode>3): Likewise.
4098 (*avx2_<smaxmin:code><mode>3): Likewise.
4099 (avx2_eq<mode>3): Likewise.
4100 (*avx2_eq<mode>3): Likewise.
4101 (avx2_gt<mode>3): Likewise.
4102 (avx2_interleave_highv32qi): New.
4103 (avx2_interleave_lowv32qi): Likewise.
4104 (avx2_interleave_highv16hi): Likewise.
4105 (avx2_interleave_lowv16hi): Likewise.
4106 (avx2_interleave_highv8si): Likewise.
4107 (avx2_interleave_lowv8si): Likewise.
4108 (avx2_pshufd): Likewise.
4109 (avx2_pshufd_1): Likewise.
4110 (avx2_pshuflwv3): Likewise.
4111 (avx2_pshuflw_1): Likewise.
4112 (avx2_pshufhwv3): Likewise.
4113 (avx2_pshufhw_1): Likewise.
4114 (avx2_uavgv32qi3): Likewise.
4115 (*avx2_uavgv32qi3): Likewise.
4116 (avx2_uavgv16hi3): Likewise.
4117 (*avx2_uavgv16hi3): Likewise.
4118 (avx2_pmovmskb): Likewise.
4119 (avx2_phaddwv16hi3): Likewise.
4120 (avx2_phadddv8si3): Likewise.
4121 (avx2_phaddswv16hi3): Likewise.
4122 (avx2_phsubwv16hi3): Likewise.
4123 (avx2_phsubdv8si3): Likewise.
4124 (avx2_phsubswv16hi3): Likewise.
4125 (avx2_pmaddubsw256): Likewise.
4126 (avx2_umulhrswv16hi3): Likewise.
4127 (*avx2_umulhrswv16hi3): Likewise.
4128 (avx2_packusdw): Likewise.
4129 (avx2_pblendd<mode>): Likewise.
4130 (avx2_<code>v16qiv16hi2): Likewise.
4131 (avx2_<code>v8qiv8si2): Likewise.
4132 (avx2_<code>v8hiv8si2): Likewise.
4133 (avx2_<code>v4qiv4di2): Likewise.
4134 (avx2_<code>v4hiv4di2): Likewise.
4135 (avx2_<code>v4siv4di2): Likewise.
4136 (avx2_pbroadcast<mode>): Likewise.
4137 (avx2_permvarv8si): Likewise.
4138 (avx2_permv4df): Likewise.
4139 (avx2_permvarv8sf): Likewise.
4140 (avx2_permv4di): Likewise.
4141 (avx2_permv2ti): Likewise.
4142 (avx2_vec_dupv4df): Likewise.
4143 (avx2_vbroadcasti128_<mode>): Likewise.
4144 (avx2_vec_set_lo_v4di): Likewise.
4145 (avx2_vec_set_hi_v4di): Likewise.
4146 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
4147 (avx2_extracti128): Likewise.
4148 (avx2_inserti128): Likewise.
4149 (avx2_ashrvv8si): Likewise.
4150 (avx2_ashrvv4si): Likewise.
4151 (avx2_<lshift>vv8si): Likewise.
4152 (avx2_<lshift>v<mode>): Likewise.
4153 (avx2_<lshift>vv2di): Likewise.
4154 (avx2_gathersi<mode>): Likewise.
4155 (*avx2_gathersi<mode>): Likewise.
4156 (avx2_gatherdi<mode>): Likewise.
4157 (*avx2_gatherdi<mode>): Likewise.
4158 (avx2_gatherdi<mode>256): Likewise.
4159 (*avx2_gatherdi<mode>256): Likewise.
4160 (<plusminus_insn><mode>3): Use VI mode iterator.
4161 (*<plusminus_insn><mode>3): Use VI mode iterator.
4162 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
4163 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
4164 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
4165 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
4166 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
4167 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
4168 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
4169 Use VI2_AVX2 mode iterator.
4170 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
4171 Use VI2_AVX2 mode iterator.
4172 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
4173 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
4174 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
4175 Use VI4_AVX2 mode iterator.
4176 (ashr<mode>3): Use VI24_AVX2 mode iterator.
4177 (lshr<mode>3): Use VI248_AVX2 mode iterator.
4178 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
4179 Use VIMAX_AVX2 mode iterator.
4180 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
4181 Use VI mode iterator.
4182 (*andnot<mode>3): Update for AVX2.
4183 (*<any_logic:code><mode>3): Likewise.
4184 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
4185 Use VI1_AVX mode iterator.
4186 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
4187 Use VI2_AVX mode iterator.
4188 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
4189 Use VI1_AVX mode iterator.
4190 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
4191 Use VI8_AVX2 mode iterator.
4192 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
4193 Use VI1_AVX2 mode iterator.
4194 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
4195 Use VI124_AVX2 mode iterator.
4196 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
4197 Use SSESCALARMODE mode iterator.
4198 (abs<mode>2): Use VI124_AVX2 mode iterator.
4199 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
4200 Use VI8_AVX2 mode iterator.
4201 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
4202 Use VI1_AVX2 mode iterator.
4203 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
4204 Use VI1_AVX2 mode iterator.
4205 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
4206 Use VI2_AVX2 mode iterator.
4207 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
4208 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
4209 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
4210 avx_maskstore<ssemodesuffix><avxsizesuffix>.
4211 Use V48_AVX2 mode iterator.
4212 * doc/extend.texi: Document AVX2 built-in functions.
4213 * doc/invoke.texi: Document -mavx2.
4214
4215 2011-08-22 Matthias Klose <doko@debian.org>
4216
4217 Revert:
4218 2011-07-11 Arthur Loiret <aloiret@debian.org>
4219 Matthias Klose <doko@debian.org>
4220 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
4221 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
4222 convention.
4223 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
4224
4225 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
4226
4227 PR bootstrap/50146
4228 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
4229 to #ifndef HONOR_REG_ALLOC_ORDER block.
4230
4231 2011-08-21 Richard Henderson <rth@redhat.com>
4232
4233 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
4234 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
4235 * resource.c (next_insn_no_annul): Likewise.
4236 (mark_set_resources): Likewise.
4237 * reorg.c (delete_from_delay_slot): Likewise.
4238 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
4239 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
4240
4241 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
4242
4243 * config/i386/i386.md (any_div): Remove.
4244 (sgnprefix): Update for removal.
4245 (u): Ditto.
4246
4247 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
4248
4249 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
4250 for ira_reg_class_max_nregs. Increase pressure by 1.
4251 (mark_pseudo_regno_subword_dead): Use allocno class
4252 for ira_reg_class_max_nregs.
4253
4254 2011-08-20 Richard Henderson <rth@redhat.com>
4255
4256 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
4257 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
4258 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
4259 config/c6x/ltf.c: Adjust include path for soft-fp.
4260
4261 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
4262
4263 PR other/46770
4264 * config.gcc (tm_file): Add initfini-array.h if
4265 .init_arrary/.fini_array are supported.
4266
4267 * crtstuff.c: Don't generate .ctors nor .dtors sections if
4268 USE_INITFINI_ARRAY is defined.
4269
4270 * output.h (default_elf_init_array_asm_out_constructor): New.
4271 (default_elf_fini_array_asm_out_destructor): Likewise.
4272 * varasm.c (elf_init_array_section): Likewise.
4273 (elf_fini_array_section): Likewise.
4274 (get_elf_initfini_array_priority_section): Likewise.
4275 (default_elf_init_array_asm_out_constructor): Likewise.
4276 (default_elf_fini_array_asm_out_destructor): Likewise.
4277
4278 * config/initfini-array.h: New.
4279
4280 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
4281
4282 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
4283 OK for ST_REGS and FP_REGS before taking those classes into account.
4284
4285 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
4286
4287 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
4288 before checking for annulled branches.
4289
4290 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
4291
4292 * config/i386/i386.c (ix86_binary_operator_ok): Use
4293 satisfies_constraint_L.
4294
4295 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
4296 Michael Matz <matz@suse.de>
4297
4298 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
4299 trunc (a + copysign (nextafter (0.5, 0.0), a)).
4300
4301 2011-08-20 Anatoly Sokolov <aesok@post.ru>
4302
4303 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4304 * doc/tm.texi: Regenerate.
4305 * targhooks.c (default_preferred_output_reload_class): Don't use
4306 PREFERRED_OUTPUT_RELOAD_CLASS macro.
4307 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
4308
4309 2011-08-20 Jakub Jelinek <jakub@redhat.com>
4310
4311 PR tree-optimization/48739
4312 * tree-ssa.c: Include cfgloop.h.
4313 (execute_update_addresses_taken): When updating ssa, if in loop closed
4314 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
4315 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
4316
4317 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
4318
4319 PR rtl-optimization/49936
4320 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
4321 for calculation of max register move costs.
4322
4323 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4324
4325 * c-parser.c (c_parser_postfix_expression): Convert operands of
4326 __builtin_complex to their semantic types.
4327
4328 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
4329
4330 PR middle-end/49721
4331 * explow.c (convert_memory_address_addr_space): Also permute the
4332 conversion and addition of constant for zero-extend.
4333
4334 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4335
4336 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
4337 * doc/extend.texi (__builtin_complex): Document.
4338
4339 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4340
4341 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
4342 beyond conversions.
4343 (convert_mult_to_widen): Convert constant inputs to the right type.
4344 (convert_plusminus_to_widen): Don't automatically reject inputs that
4345 are not an SSA_NAME.
4346 Convert constant inputs to the right type.
4347
4348 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4349
4350 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
4351 to the correct type.
4352
4353 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4354
4355 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
4356 unsigned inputs of different modes.
4357 (convert_plusminus_to_widen): Likewise.
4358
4359 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4360
4361 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
4362 'type'.
4363 Use 'type' from caller, not inferred from 'rhs'.
4364 Don't reject non-conversion statements. Do return lhs in this case.
4365 (is_widening_mult_p): Add new argument 'type'.
4366 Use 'type' from caller, not inferred from 'stmt'.
4367 Pass type to is_widening_mult_rhs_p.
4368 (convert_mult_to_widen): Pass type to is_widening_mult_p.
4369 (convert_plusminus_to_widen): Likewise.
4370
4371 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4372
4373 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
4374 Ensure the the larger type is the first operand.
4375
4376 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4377
4378 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
4379 unsupported unsigned multiplies to signed.
4380 (convert_plusminus_to_widen): Likewise.
4381
4382 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4383
4384 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
4385 conversion statement separating multiply-and-accumulate.
4386
4387 2011-08-19 Richard Guenther <rguenther@suse.de>
4388
4389 PR tree-optimization/50067
4390 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
4391 offset only if we accounted for it.
4392
4393 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4394
4395 * config/arm/arm.md (maddhidi4): Remove '*' from name.
4396 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
4397 * optabs.c (find_widening_optab_handler_and_mode): New function.
4398 (expand_widen_pattern_expr): Use find_widening_optab_handler.
4399 (expand_binop_directly): Likewise.
4400 (expand_binop): Likewise.
4401 * optabs.h (find_widening_optab_handler): New macro define.
4402 (find_widening_optab_handler_and_mode): New prototype.
4403 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
4404 type precision rules.
4405 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
4406 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
4407 (is_widening_mult_rhs_p): Allow widening by more than one mode.
4408 Explicitly disallow mis-matched input types.
4409 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
4410 input types to fit the new handler.
4411 (convert_plusminus_to_widen): Likewise.
4412
4413 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4414
4415 * expr.c (expand_expr_real_2): Use widening_optab_handler.
4416 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
4417 (gen_insn): $N now means $a must be wider than $b, not consecutive.
4418 * optabs.c (widened_mode): New function.
4419 (expand_widen_pattern_expr): Use widening_optab_handler.
4420 (expand_binop_directly): Likewise.
4421 (expand_binop): Likewise.
4422 * optabs.h (widening_optab_handlers): New struct.
4423 (optab_d): New member, 'widening'.
4424 (widening_optab_handler): New function.
4425 (set_widening_optab_handler): New function.
4426 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
4427 widening_optab_handler.
4428 (convert_plusminus_to_widen): Likewise.
4429
4430 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4431
4432 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
4433 pedantic.
4434 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
4435 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
4436
4437 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4438
4439 * opth-gen.awk: Do not declare target save/restore structures and
4440 functions if IN_RTS defined.
4441
4442 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4443
4444 PR target/49437
4445 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
4446 when stack was realigned in interrupt handler prologue.
4447
4448 2011-08-18 Joseph Myers <joseph@codesourcery.com>
4449
4450 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
4451 (quals_from_declspecs): Assert _Noreturn not present.
4452 (grokdeclarator): Handle _Noreturn.
4453 (build_null_declspecs): Initialize noreturn_p.
4454 (declspecs_add_scspec): Handle RID_NORETURN.
4455 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
4456 (c_parser_attributes): Handle RID_NORETURN.
4457 * c-tree.h (struct c_declspecs): Add noreturn_p.
4458 * ginclude/stdnoreturn.h: New.
4459 * Makefile.in (USER_H): Add stdnoreturn.h.
4460
4461 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
4462
4463 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
4464 (OPTION_MASK_ISA_AVX_UNSET): Update.
4465 (OPTION_MASK_ISA_AVX2_UNSET): New.
4466 (ix86_handle_option): Handle OPT_mavx2 case.
4467 * config/i386/cpuid.h (bit_AVX2): New.
4468 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4469 AVX2 feature.
4470 * config/i386/i386-c.c (ix86_target_macros_internal):
4471 Conditionally define __AVX2__.
4472 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
4473 Define "core-avx2" processor alias. Handle avx2 option.
4474 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
4475 * config/i386/i386.h (TARGET_AVX2): New.
4476 * config/i386/i386.opt (mavx2): New.
4477 * doc/invoke.texi: Document -mavx2.
4478
4479 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
4480
4481 PR rtl-optimization/49890
4482 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
4483 subclasses of class which is superset of a pressure class.
4484
4485 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
4486 Igor Zamyatin <igor.zamyatin@intel.com>
4487
4488 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
4489 with HOST_WIDE_INT for isa_flag.
4490 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
4491 isa variables.
4492
4493 * config/i386/i386.c (ix86_target_string): Replace int with
4494 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
4495 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
4496 (pta_flags): Removed.
4497 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
4498 (pta): Use HOST_WIDE_INT on flags.
4499 (builtin_isa): Use HOST_WIDE_INT on isa.
4500 (ix86_add_new_builtins): Likewise.
4501 (def_builtin): Use HOST_WIDE_INT on mask.
4502 (def_builtin_const): Likewise.
4503 (builtin_description): Likewise.
4504
4505 * config/i386/i386.opt (ix86_isa_flags): Replace int with
4506 HOST_WIDE_INT.
4507 (ix86_isa_flags_explicit): Likewise.
4508 (x_ix86_isa_flags_explicit): Likewise.
4509
4510 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
4511
4512 PR rtl-optimization/50107
4513 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
4514 (ira_hard_reg_in_set_p): New.
4515
4516 * ira-color.c (calculate_saved_nregs): New.
4517 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
4518 hard regs.
4519 (allocno_reload_assign, fast_allocation): Use
4520 ira_hard_reg_set_intersection_p instead of
4521 ira_hard_reg_not_in_set_p.
4522
4523 * ira.c (setup_reg_renumber): Use
4524 ira_hard_reg_set_intersection_p instead of
4525 ira_hard_reg_not_in_set_p.
4526 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
4527 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
4528
4529 * ira-costs.c (ira_tune_allocno_costs): Use
4530 ira_hard_reg_set_intersection_p instead of
4531 ira_hard_reg_not_in_set_p.
4532
4533 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
4534 Igor Zamyatin <igor.zamyatin@intel.com>
4535
4536 * hwint.h (HOST_WIDE_INT_1): New.
4537
4538 * opt-functions.awk (switch_bit_fields): Initialize the
4539 host_wide_int field.
4540 (host_wide_int_var_name): New.
4541 (var_type_struct): Check and return HOST_WIDE_INT.
4542
4543 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
4544
4545 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
4546
4547 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
4548 check masks for HOST_WIDE_INT.
4549
4550 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
4551 (option_enabled): Likewise.
4552 (get_option_state): Likewise.
4553
4554 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
4555 to HOST_WIDE_INT.
4556
4557 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4558 Marc Glisse <marc.glisse@normalesup.org>
4559
4560 PR libstdc++-v3/1773
4561 * target.def (decl_mangling_context): New C++ hook.
4562 * doc/tm.texi: Regenerate.
4563 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
4564 * config/sol2-protos.h: Group by source file.
4565 (solaris_cxx_decl_mangling_context): Declare.
4566 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
4567 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
4568 Use $<.
4569 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
4570 Add sol2-stubs.o to extra_objs.
4571
4572 2011-08-18 Jakub Jelinek <jakub@redhat.com>
4573
4574 PR target/50009
4575 * stor-layout.c (update_alignment_for_field): Don't ICE on
4576 packed flexible array members if ms_bitfield_layout_p.
4577
4578 PR target/50092
4579 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
4580 on the result before returning it.
4581
4582 PR debug/50017
4583 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
4584 is a debug stmt, use location of the first non-debug stmt after it.
4585
4586 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4587
4588 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
4589 (arm_size_rtx_costs): Likewise.
4590
4591 2011-08-18 Richard Guenther <rguenther@suse.de>
4592
4593 * tree.h (tree_int_cst_msb): Remove.
4594 * tree.c (tree_int_cst_msb): Likewise.
4595 (tree_int_cst_sign_bit): Move from ...
4596 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
4597
4598 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4599
4600 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
4601 * doc/tm.texi: Regenerate.
4602 * target.def (rtx_costs): Add an opno parameter.
4603 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
4604 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
4605 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
4606 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
4607 * cse.c (COST_IN): Add an opno parameter.
4608 (notreg_cost): Likewise. Update call to rtx_cost.
4609 (COST, fold_rtx): Update accordingly.
4610 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
4611 * expmed.c (emit_store_flag): Likewise.
4612 * optabs.c (avoid_expensive_constant): Add an opno parameter.
4613 Update call to rtx_cost.
4614 (expand_binop_directly, expand_binop): Likewise.
4615 (expand_twoval_binop, prepare_cmp_insn): Likewise.
4616 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
4617 (set_src_cost, get_full_set_src_cost): Update accordingly.
4618 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
4619 to target hook.
4620 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
4621 (default_adress_cost): Update calls to rtx_cost.
4622
4623 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
4624 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
4625 (arm_rtx_costs): Add an opno parameter.
4626 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
4627 adjust any recursive rtx-cost calls.
4628 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
4629 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4630 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
4631 * config/cris/cris.c (cris_rtx_costs): Likewise.
4632 * config/frv/frv.c (frv_rtx_costs): Likewise.
4633 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
4634 * config/i386/i386.c (ix86_rtx_costs): Likewise.
4635 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
4636 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
4637 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
4638 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
4639 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
4640 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
4641 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
4642 * config/mep/mep.c (mep_rtx_cost): Likewise.
4643 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
4644 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
4645 (mips_zero_extend_cost): Add an opno parameter.
4646 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
4647 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
4648 to rtx_cost.
4649 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
4650 rtx-cost calls.
4651 * config/pa/pa.c (hppa_rtx_costs): Likewise.
4652 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
4653 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
4654 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
4655 (rs6000_debug_rtx_costs): Likewise.
4656 * config/s390/s390.c (s390_rtx_costs): Likewise.
4657 * config/score/score-protos.h (score_rtx_costs): Likewise.
4658 * config/score/score.c (score_rtx_costs): Likewise.
4659 * config/sh/sh.c (andcosts): Update call to rtx_cost.
4660 (sh_rtx_costs): Add an opno parameter.
4661 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
4662 * config/spu/spu.c (spu_rtx_costs): Likewise.
4663 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
4664 * config/v850/v850.c (v850_rtx_costs): Likewise.
4665 * config/vax/vax.c (vax_rtx_costs): Likewise.
4666 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
4667
4668 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4669
4670 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
4671 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
4672 rtx_cost.
4673 * calls.c (precompute_register_parameters): Likewise.
4674 * combine.c (expand_compound_operation, make_extraction): Likewise.
4675 (force_to_mode, distribute_and_simplify_rtx): Likewise.
4676 * dse.c (find_shift_sequence): Likewise.
4677 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
4678 * expr.c (compress_float_constant): Likewise.
4679 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
4680 * gcse.c (want_to_gcse_p): Likewise.
4681 * ifcvt.c (noce_try_sign_mask): Likewise.
4682 * loop-doloop.c (doloop_optimize): Likewise.
4683 * loop-invariant.c (create_new_invariant): Likewise.
4684 * optabs.c (avoid_expensive_constant): Likewise.
4685 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
4686 (try_replace_in_use, reload_cse_move2add): Likewise.
4687 * reload1.c (calculate_elim_costs_all_insns): Likewise.
4688 (note_reg_elim_costly): Likewise.
4689 * rtlanal.c (insn_rtx_cost): Likewise.
4690 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4691 * stmt.c (lshift_cheap_p): Likewise.
4692 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
4693 * config/avr/avr.c (final_prescan_insn): Likewise.
4694 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4695 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
4696
4697 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4698
4699 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
4700 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
4701 * cfgloopanal.c (seq_cost): Likewise.
4702 * loop-invariant.c (create_new_invariant): Likewise.
4703 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
4704 (reload_cse_move2add): Use get_full_set_rtx_cost.
4705
4706 2011-08-18 Richard Guenther <rguenther@suse.de>
4707
4708 * expr.c (get_inner_reference): Fix typo in last change.
4709
4710 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
4711 Joseph Myers <joseph@codesourcery.com>
4712
4713 PR tree-optimization/49963
4714 * hwint.c (absu_hwi): Define.
4715 * hwint.h (absu_hwi): Declare.
4716 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
4717 of abs_hwi.
4718 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4719 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
4720
4721 2011-08-18 Richard Guenther <rguenther@suse.de>
4722
4723 * expr.c (get_inner_reference): Sign-extend the constant
4724 twos-complement offset before doing arbitrary precision
4725 arithmetic on it.
4726 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
4727 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
4728 to get_constraint_for_ptr_offset.
4729
4730 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
4731
4732 PR target/50068
4733 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
4734
4735 2011-08-17 Richard Guenther <rguenther@suse.de>
4736
4737 * tree.h (convert_to_ptrofftype_loc): New function.
4738 (convert_to_ptrofftype): Define.
4739 * builtins.c (expand_builtin_bzero): Use size_type_node.
4740 (fold_builtin_bzero): Likewise.
4741 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
4742 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
4743 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
4744 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
4745 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
4746 * fold-const.c (build_range_check): Negate using the original type.
4747 (fold_unary_loc): Use fold_build_pointer_plus_loc.
4748 * gimple-fold.c (gimple_adjust_this_by_delta): Use
4749 convert_to_ptrofftype.
4750 * gimplify.c (gimplify_self_mod_expr): Likewise.
4751 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
4752 (graphite_create_new_loop_guard): Likewise.
4753 * graphite-sese-to-poly.c (my_long_long): Remove.
4754 (scop_ivs_can_be_represented): Adjust.
4755 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
4756 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
4757 * tree-loop-distribution.c (build_size_arg_loc): Use
4758 size_type_node.
4759 (generate_memset_zero): Simplify.
4760 * tree-mudflap.c: Use fold_convert, not convert.
4761 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
4762 its own type.
4763 (determine_offset): Likewise for DR_STEP.
4764 (valid_initializer_p): Likewise.
4765 * tree-profile.c (prepare_instrumented_value): Convert the pointer
4766 to an integer type of same size.
4767 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
4768 to sizetype without need.
4769 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
4770 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
4771 * tree-ssa-loop-manip.c (create_iv): Likewise.
4772 (determine_exit_conditions): Adjust comment.
4773 * tree-ssa-pre.c (create_expression_by_pieces): Use
4774 convert_to_ptrofftype.
4775 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
4776 * varasm.c (array_size_for_constructor): Compute using double_ints.
4777
4778 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4779
4780 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
4781 when generating an integer result where possible. Short-cut
4782 comparison against 0 also for QImode.
4783
4784 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4785
4786 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
4787 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
4788 prototype.
4789 * config/spu/spu.c (spu_legitimize_reload_address): New function.
4790 (spu_legitimate_address_p): Do not check displacement if the base
4791 is an eliminable stack register.
4792
4793 2011-08-16 Anatoly Sokolov <aesok@post.ru>
4794
4795 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
4796 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
4797 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
4798 m32c_preferred_output_reload_class): Remove.
4799 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
4800 Change rclass argument and return types to reg_class_t. Use
4801 reg_class_subset_p instead of class_sizes.
4802 (m32c_preferred_output_reload_class): Make static. Change rclass
4803 argument and return types to reg_class_t.
4804 (TARGET_PREFERRED_RELOAD_CLASS,
4805 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4806
4807 2011-08-16 Kai Tietz <ktietz@redhat.com>
4808
4809 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
4810
4811 2011-08-16 Richard GUenther <rguenther@suse.de>
4812
4813 PR tree-optimization/50082
4814 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
4815 warnings here, instead of ...
4816 (ssa_forward_propagate_and_combine): ... here.
4817 (forward_propagate_into_comparison_1): Adjust.
4818 (forward_propagate_into_comparison): Likewise.
4819 (forward_propagate_into_gimple_cond): Likewise.
4820 (forward_propagate_into_cond): Likewise.
4821
4822 2011-08-16 Andreas Schwab <schwab@redhat.com>
4823
4824 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
4825 instead of ggc_alloc_zone_vec_rtvec_def.
4826
4827 2011-08-16 Richard Guenther <rguenther@suse.de>
4828
4829 * tree.h (ptrofftype_p): New helper function.
4830 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
4831 offset verification.
4832 (verify_gimple_assign_binary): Likewise.
4833 * tree.c (build2_stat): Likewise.
4834 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
4835 (reset_evolution_in_loop): Likewise.
4836 * tree-chrec.h (build_polynomial_chrec): Likewise.
4837
4838 2011-08-16 Liang Wang <lwang1@marvell.com>
4839
4840 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
4841 ggc_alloc_zone_vec_rtvec_def.
4842
4843 2011-08-16 Richard Guenther <rguenther@suse.de>
4844
4845 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
4846 helper factored out from ...
4847 (extract_range_from_binary_expr_1): ... here. Re-structure
4848 to not glob handling too different tree codes.
4849
4850 2011-08-15 Richard Henderson <rth@redhat.com>
4851
4852 PR middle-end/50006
4853 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
4854 setting out to include allocate_stack named pattern as well.
4855 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
4856 * stmt.c (expand_stack_restore): Likewise.
4857
4858 2011-08-15 Richard Guenther <rguenther@suse.de>
4859
4860 PR middle-end/50082
4861 * fold-const.c (maybe_canonicalize_comparison_1): Properly
4862 convert the modified operand to the other operand type.
4863 (fold_comparison): Call maybe_canonicalize_comparison_1 with
4864 useless conversions stripped from comparison operands.
4865
4866 2011-08-15 Richard Guenther <rguenther@suse.de>
4867
4868 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
4869 (extract_range_from_unary_expr_1): Restructure.
4870
4871 2011-08-15 Richard Guenther <rguenther@suse.de>
4872
4873 PR tree-optimization/50058
4874 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
4875 copy matching.
4876
4877 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4878
4879 PR target/50022
4880 * config/arm/arm.c (output_move_double): Add 2 parameters
4881 to count the number of insns emitted and whether to emit or not.
4882 Use the flag to decide when to emit and count number of instructions
4883 that will be emitted.
4884 Handle case where output_move_double might be called for calculating
4885 lengths with an invalid constant.
4886 (arm_count_output_move_double_insns): Define.
4887 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
4888 (output_move_double): Adjust prototype.
4889 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
4890 output_move_double.
4891 ("*movdi_vfp_cortexa8"): Likewise and add attribute
4892 for ce_count.
4893 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
4894 ("*movdf_soft_insn"): Likewise.
4895 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
4896 ("*cirrus_thumb2_movdi"): Likewise.
4897 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
4898 ("*cirrus_movdf_hard_insn"): Likewise.
4899 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
4900 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
4901 ("mov<mode>_internal VMMX"): Likewise.
4902 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
4903
4904 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
4905
4906 * config/i386/i386.c (ix86_expand_round_sse4): New function.
4907 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
4908 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
4909 for TARGET_ROUND.
4910
4911 (rint<mode>2): Simplify TARGET_ROUND check.
4912 (floor<mode>2): Ditto.
4913 (ceil<mode>2): Ditto.
4914 (btrunc<mode>2): Ditto.
4915
4916 2011-08-14 Anatoly Sokolov <aesok@post.ru>
4917
4918 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
4919 as mmix_preferred_output_reload_class.
4920
4921 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
4922
4923 * PR target/49903
4924 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
4925 (branch_unspec): New insn.
4926 (branch): Beauty farm.
4927 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
4928 to be IF_THEN_ELSE.
4929 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
4930 New static functions.
4931 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
4932 Use CONST_INT_P. Beauty.
4933
4934 2011-08-12 Richard Henderson <rth@redhat.com>
4935
4936 PR rtl-opt/49994
4937 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
4938 * sched-deps.c (init_deps): Clear it.
4939 (deps_analyze_insn): Consume it.
4940 (sched_analyze_insn): Fill it.
4941
4942 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4943
4944 PR target/48328
4945 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
4946 for tbh instructions.
4947
4948 2011-08-12 Diego Novillo <dnovillo@google.com>
4949
4950 * data-streamer.h (streamer_write_zero): Rename from output_zero.
4951 (streamer_write_uhwi): Rename from lto_output_uleb128.
4952 (streamer_write_hwi): Rename from output_sleb128.
4953 (streamer_write_string): Rename from lto_output_string.
4954 (streamer_string_index): Rename from lto_string_index.
4955 (streamer_write_string_with_length): Rename from
4956 lto_output_string_with_length.
4957 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
4958 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
4959 (streamer_read_string): Rename from lto_input_string.
4960 (streamer_read_indexed_string): Rename from input_string_internal.
4961 (streamer_read_uhwi): Rename from lto_input_uleb128.
4962 (streamer_read_hwi): Rename from lto_input_sleb128.
4963 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
4964 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
4965 (streamer_write_enum): Rename from lto_output_enum.
4966 (streamer_read_enum): Rename from lto_input_enum.
4967 (streamer_write_record_start): Rename from output_record_start.
4968 (streamer_read_record_start): Rename from input_record_start.
4969 (streamer_write_bitpack): Rename from lto_output_bitpack.
4970 (streamer_read_bitpack): Rename from lto_input_bitpack.
4971 (streamer_write_char_stream): Rename from lto_output_1_stream.
4972 (streamer_read_uchar): Rename from lto_input_1_unsigned.
4973 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
4974 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
4975 (streamer_read_string_cst): Rename from input_string_cst.
4976 (streamer_read_chain): Rename from lto_input_chain.
4977 (streamer_alloc_tree): Rename from lto_materialize_tree.
4978 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
4979 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
4980 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
4981 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
4982 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
4983 (streamer_write_chain): Rename from lto_output_chain.
4984 (streamer_write_tree_header): Rename from lto_output_tree_header.
4985 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
4986 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
4987 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
4988 (streamer_write_builtin): Rename from lto_output_builtin_tree.
4989 (streamer_check_handled_ts_structures): Rename from
4990 check_handled_ts_structures.
4991 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
4992 (streamer_tree_cache_insert_at): Rename from
4993 lto_streamer_cache_insert_at.
4994 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
4995 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
4996 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
4997 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
4998 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
4999 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
5000 (write_identifier): Rename from output_identifier.
5001 (write_ts_common_tree_pointers): Rename from
5002 lto_output_ts_common_tree_pointers.
5003 (write_ts_vector_tree_pointers): Rename from
5004 lto_output_ts_vector_tree_pointers.
5005 (write_ts_complex_tree_pointers): Rename from
5006 lto_output_ts_complex_tree_pointers.
5007 (write_ts_decl_minimal_tree_pointers): Rename from
5008 lto_output_ts_decl_minimal_tree_pointers.
5009 (write_ts_decl_common_tree_pointers): Rename from
5010 lto_output_ts_decl_common_tree_pointers.
5011 (write_ts_decl_non_common_tree_pointers): Rename from
5012 lto_output_ts_decl_non_common_tree_pointers.
5013 (write_ts_decl_with_vis_tree_pointers): Rename from
5014 lto_output_ts_decl_with_vis_tree_pointers.
5015 (write_ts_field_decl_tree_pointers): Rename from
5016 lto_output_ts_field_decl_tree_pointers.
5017 (write_ts_function_decl_tree_pointers): Rename from
5018 lto_output_ts_function_decl_tree_pointers.
5019 (write_ts_type_common_tree_pointers): Rename from
5020 lto_output_ts_type_common_tree_pointers.
5021 (write_ts_type_non_common_tree_pointers): Rename from
5022 lto_output_ts_type_non_common_tree_pointers.
5023 (write_ts_list_tree_pointers): Rename from
5024 lto_output_ts_list_tree_pointers.
5025 (write_ts_vec_tree_pointers): Rename from
5026 lto_output_ts_vec_tree_pointers.
5027 (write_ts_exp_tree_pointers): Rename from
5028 lto_output_ts_exp_tree_pointers.
5029 (write_ts_block_tree_pointers): Rename from
5030 lto_output_ts_block_tree_pointers.
5031 (write_ts_binfo_tree_pointers): Rename from
5032 lto_output_ts_binfo_tree_pointers.
5033 (write_ts_constructor_tree_pointers): Rename from
5034 lto_output_ts_constructor_tree_pointers.
5035 (write_ts_target_option): Rename from lto_output_ts_target_option.
5036 (write_ts_translation_unit_decl_tree_pointers): Rename from
5037 lto_output_ts_translation_unit_decl_tree_pointers.
5038 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
5039 Rename from lto_streamer_cache_add_to_node_array.
5040 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
5041 (record_common_node): Rename from lto_record_common_node.
5042
5043 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
5044 declarations.
5045 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
5046 function.
5047 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
5048 unused function.
5049 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
5050 (ipa-reference.o): Likewise.
5051 * lto-section-out.c: Include data-streamer.h.
5052 * ipa-reference.c: Include data-streamer.h.
5053
5054 2011-08-12 Nick Clifton <nickc@redhat.com>
5055
5056 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
5057 * doc/md.texi (cmpstrn): Note that the comparison stops if both
5058 fetched bytes are zero.
5059 (cmpstr): Likewise.
5060 (cmpmem): Note that the comparison does not stop if both of the
5061 fetched bytes are zero.
5062
5063 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
5064
5065 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
5066 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
5067 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
5068 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
5069 to integer_type_node.
5070 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
5071 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
5072 * builtins.c (expand_builtin_in): Ditto.
5073 (mathfn_built_in_1): Ditto.
5074 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
5075 BUILT_IN_IFLOOR.
5076 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
5077 BUILT_IN_IROUND.
5078 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
5079 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
5080 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
5081
5082 2011-08-12 Richard Guenther <rguenther@suse.de>
5083
5084 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
5085
5086 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
5087
5088 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
5089
5090 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
5091
5092 * config/arm/arm.c (get_label_padding): New function.
5093 (create_fix_barrier, arm_reorg): Use it.
5094
5095 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
5096
5097 PR target/49781
5098 * config/i386/i386.md (*lea_5_zext): New.
5099 (*lea_6_zext): Ditto.
5100 * config/i386/predicates.md (const_32bit_mask): New predicate.
5101 (lea_address_operand): Reject AND.
5102 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
5103 const_32bit_mask immediate.
5104 (ix86_print_operand_address): Handle AND.
5105 (memory_address_length): Ditto.
5106
5107 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
5108 Brian Hackett <bhackett1024@gmail.com>
5109
5110 * plugin.def: Add event for finish_decl.
5111 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
5112 * c-decl.c (finish_decl): Invoke callbacks on above event.
5113 * doc/plugins.texi: Document above event.
5114
5115 2011-08-11 Richard Guenther <rguenther@suse.de>
5116
5117 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
5118 lookups, make looking through aggregate copies stronger.
5119
5120 2011-08-11 Richard Henderson <rth@redhat.com>
5121
5122 PR bootstrap/50018
5123 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
5124
5125 2011-08-11 Richard Guenther <rguenther@suse.de>
5126
5127 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
5128 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
5129 (vrp_visit_stmt): Likewise.
5130
5131 2011-08-11 Richard Guenther <rguenther@suse.de>
5132
5133 PR middle-end/50040
5134 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
5135 load of the other piece with TREE_NO_WARNING.
5136 * tree-flow.h (warn_uninit): Adjust prototype.
5137 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
5138 the base variable and the expression that is used separately.
5139 Properly query all TREE_NO_WARNING flags.
5140 (struct walk_data): Remove.
5141 (warn_uninitialized_var): Likewise.
5142 (warn_uninitialized_vars): Do not walk gimple pieces but simply
5143 look at all SSA uses of the statement. Handle unused memory
5144 separately.
5145 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
5146
5147 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
5148
5149 * config/rx/rx.md (movsicc): Allow register to register transfers.
5150 (*movsicc): Likewise.
5151 (*stcc): Restrict this pattern to EQ and NE compares.
5152 (*stcc_reg): New pattern. Works for any comparison but only for
5153 register transfers.
5154
5155 2011-08-11 Diego Novillo <dnovillo@google.com>
5156
5157 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
5158 Call stream_write_tree instead of output_record_start.
5159 (lto_output_ts_binfo_tree_pointers): Likewise.
5160
5161 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
5162 Convert it to a macro.
5163 (stream_read_tree): Likewise.
5164
5165 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
5166 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
5167
5168 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
5169 and tree_read_bitfields.
5170 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
5171 (lto_write_tree): Call it.
5172 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
5173 * streamer-hooks.h (struct streamer_hooks): Remove fields
5174 name, is_streamable and alloc_tree. Update all users.
5175 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
5176 (lto_materialize_tree): ... here.
5177 Handle CALL_EXPR codes.
5178 Remove call to lto_streamer_cache_append.
5179 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
5180 * tree-streamer.h (tree_read_bitfields): Declare.
5181
5182 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
5183 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
5184 * tree-streamer.h (stream_read_tree): New. Replace all calls
5185 to lto_input_tree with it.
5186 (stream_write_tree): New. Replace all calls to lto_output_tree,
5187 lto_output_tree_ref and lto_output_tree_or_ref with it.
5188 * lto-streamer-in.c (lto_read_tree): Inline code from
5189 lto_streamer_read_tree.
5190 (lto_input_tree): Move from tree-streamer-in.c.
5191 * lto-streamer-out.c (lto_output_tree_ref): Make static.
5192 Remove handling of NULL values for EXPR.
5193 Do not handle EXPRs that are not indexable.
5194 (lto_write_tree): Move from tree-streamer-out.c.
5195 Inline lto_streamer_write_tree.
5196 (lto_output_tree): Move from tree-streamer-out.c.
5197 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
5198 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
5199 (lto_preload_common_nodes): Likewise.
5200 Remove assertions and adjustments for nodes
5201 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
5202 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
5203 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
5204 * lto-streamer.h (lto_input_tree): Declare.
5205 (lto_output_tree_ref): Remove.
5206 * streamer-hooks.h (struct streamer_hooks): Remove fields
5207 preload_common_nodes, indexable_with_decls_p,
5208 pack_value_fields, unpack_value_fields and output_tree_header.
5209 Update all users.
5210 * tree-streamer-in.c (lto_materialize_tree): Make extern.
5211 (lto_input_tree_pointers): Likewise.
5212 (lto_read_tree): Move to lto-streamer-in.c.
5213 (lto_input_integer_cst): Make extern.
5214 (lto_get_pickled_tree): Likewise.
5215 (lto_get_builtin_tree): Likewise.
5216 (lto_input_tree): Move to lto-streamer-in.c.
5217 * tree-streamer-out.c (pack_value_fields): Make extern.
5218 (lto_output_tree_or_ref): Remove. Replace all callers with
5219 calls to stream_write_tree.
5220 (lto_output_builtin_tree): Make extern.
5221 (lto_streamer_write_tree): Inline into lto_write_tree.
5222 (lto_output_tree_pointers): Make extern.
5223 (lto_output_tree_header): Likewise.
5224 (lto_output_integer_cst): Likewise.
5225 (lto_write_tree): Move to lto-streamer-out.c.
5226 (lto_output_tree): Likewise.
5227 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
5228 (preload_common_nodes): Likewise.
5229 (lto_streamer_cache_create): Call it.
5230 * tree-streamer.h: Include streamer-hooks.h.
5231 (stream_write_tree): New.
5232 (stream_read_tree): New.
5233 (lto_input_tree): Remove.
5234 (lto_materialize_tree): Declare.
5235 (lto_input_tree_pointers): Declare.
5236 (lto_get_pickled_tree): Declare.
5237 (lto_get_builtin_tree): Declare.
5238 (lto_input_integer_cst): Declare.
5239 (lto_output_tree_header): Declare.
5240 (pack_value_fields): Declare.
5241 (lto_output_tree_pointers): Declare.
5242 (lto_output_integer_cst): Declare.
5243 (lto_output_builtin_tree): Declare.
5244
5245 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
5246
5247 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
5248 only if producer writes to the register given by regno.
5249
5250 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
5251 Alexander Monakov <amonakov@ispras.ru>
5252
5253 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
5254 (sched_get_condition_with_rev_uncached): ... this. Factor out
5255 condition caching logic into ...
5256 (sched_get_condition_with_rev): ... this. Reimplement. Do not
5257 attempt to use cache for instructions with zero luid.
5258 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
5259 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
5260
5261 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
5262
5263 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
5264 get_seqno_for_a_jump. Update the caller.
5265 (get_seqno_by_succs): New. Use it ...
5266 (get_seqno_for_a_jump): ... here to find a seqno if looking at
5267 predecessors was not sufficient.
5268 (get_seqno_by_preds): Include head in iteration range, exclude insn.
5269
5270 2011-08-11 Dmitry Melnik <dm@ispras.ru>
5271
5272 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
5273
5274 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
5275
5276 * sel-sched-ir.h (register_unavailable_p): Declare.
5277 * sel-sched-ir.c (register_unavailable_p): New. Use it...
5278 (set_unavailable_target_for_expr): ... here to properly test
5279 availability of a register.
5280 (speculate_expr): Ditto.
5281 * sel-sched.c (substitute_reg_in_expr): Ditto.
5282 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
5283
5284 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
5285
5286 * sel-sched.c (verify_target_availability): Fix usage of
5287 hard_regno_nregs.
5288
5289 2011-08-11 Dmitry Melnik <dm@ispras.ru>
5290
5291 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
5292 recognized by cannot_copy_insn_p hook and volatile instructions.
5293
5294 2011-08-11 Dmitry Melnik <dm@ispras.ru>
5295
5296 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
5297
5298 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
5299
5300 * doc/md.texi (define_bypass): Say that the instruction names can
5301 be filename-style globs.
5302 * Makefile.in (FNMATCH_H): Define.
5303 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
5304 * genattrtab.c: Include fnmatch.h.
5305 (bypass_list): Change field name from "insn" to "pattern".
5306 (gen_bypass_1): Update accordingly.
5307 (process_bypasses): Use fnmatch to check for matches between
5308 insn reservations and define_bypasses.
5309 * genautomata.c: Include fnmatch.h.
5310 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
5311 and out_pattern respectively.
5312 (gen_bypass, insert_bypass): Update accordingly.
5313 (for_each_matching_insn, process_bypass_2, process_bypass_1)
5314 (process_bypass): New functions.
5315 (process_decls): Use process_bypass. Update after field name changes.
5316
5317 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
5318
5319 PR target/49687
5320 * config/avr/avr.md (smulqi3_highpart): New insn.
5321 (umulqi3_highpart): New insn.
5322 (*subqi3.ashiftrt7): New insn.
5323 (smulhi3_highpart): New expander.
5324 (umulhi3_highpart): Nex expander.
5325 (*smulhi3_highpart_call): New insn.
5326 (*umulhi3_highpart_call): New insn.
5327 (extend_u): New code attribute.
5328 (extend_prefix): Rename code attribute to extend_su.
5329 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
5330 widening QI/HI multiply.
5331
5332 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
5333
5334 PR tree-optimization/50039
5335 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
5336 that DEF_STMT has a stmt_vec_info.
5337
5338 2011-08-10 Richard Guenther <rguenther@suse.de>
5339
5340 * tree.h (can_trust_pointer_alignment): Remove.
5341 * builtins.c (can_trust_pointer_alignment): Remove.
5342
5343 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5344
5345 * c-typeck.c (scalar_to_vector): New function. Try scalar to
5346 vector conversion.
5347 (stv_conv): New enum for scalar_to_vector return type.
5348 (build_binary_op): Adjust.
5349 * doc/extend.texi: Description of scalar to vector expansion.
5350
5351 2011-08-10 Richard Guenther <rguenther@suse.de>
5352
5353 * tree.h (get_pointer_alignment): Remove max-align argument.
5354 (get_object_alignment): Likewise.
5355 * builtins.c (get_object_alignment_1): Adjust.
5356 (get_object_alignment): Remove max-align argument.
5357 (get_pointer_alignment): Likewise.
5358 (expand_builtin_strlen): Adjust.
5359 (expand_builtin_memcpy): Likewise.
5360 (expand_builtin_mempcpy_args): Likewise.
5361 (expand_builtin_strncpy): Likewise.
5362 (expand_builtin_memset_args): Likewise.
5363 (expand_builtin_memcmp): Likewise.
5364 (expand_builtin_strcmp): Likewise.
5365 (expand_builtin_strncmp): Likewise.
5366 (get_builtin_sync_mem): Likewise.
5367 (fold_builtin_memset): Likewise.
5368 (fold_builtin_memory_op): Likewise.
5369 (expand_builtin_memory_chk): Likewise.
5370 * emit-rtl.c (get_mem_align_offset): Likewise.
5371 (set_mem_attributes_minus_bitpos): Likewise.
5372 * expr.c (expand_assignment): Likewise.
5373 (expand_expr_real_1): Likewise.
5374 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
5375 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
5376 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
5377 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
5378 * value-prof.c (gimple_stringops_transform): Likewise.
5379
5380 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
5381
5382 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
5383 * doc/tm.texi: Regenerate.
5384
5385 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
5386
5387 PR target/29560
5388 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
5389 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
5390 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
5391 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
5392 shift target is unused.
5393
5394 2011-08-10 Richard Guenther <rguenther@suse.de>
5395
5396 PR tree-optimization/49937
5397 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
5398 using get_object_alignment_1.
5399
5400 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
5401
5402 * config/i386/i386.c (ix86_emit_i387_round): New function.
5403 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
5404 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
5405 Use ix86_emit_i387_round to expand round function for i387 math.
5406 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
5407 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
5408
5409 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5410
5411 * config/sync.c: Move to ../libgcc.
5412 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
5413 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
5414 Remove.
5415
5416 2011-08-09 Anatoly Sokolov <aesok@post.ru>
5417
5418 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
5419 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
5420 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
5421 Change 'from' and 'to' arguments type to reg_class_t.
5422 (TARGET_REGISTER_MOVE_COST): Define.
5423
5424 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
5425
5426 PR target/50026
5427 Revert:
5428 PR rtl-optimization/49990
5429 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
5430 ignore classes which can not change mode.
5431 (find_costs_and_classes): Ditto.
5432
5433 2011-08-09 Richard Guenther <rguenther@suse.de>
5434
5435 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
5436 information for ranges with only negative values.
5437 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
5438 BIT_AND_EXPR handling to handle ranges with negative values.
5439
5440 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
5441
5442 * config/i386/i386.c: Remove traling spaces.
5443 * config/i386/sse.md: Likewise.
5444 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
5445 (*fma_fmsub_<mode>): Likewise.
5446 (*fma_fnmadd_<mode>): Likewise.
5447 (*fma_fnmsub_<mode>): Likewise.
5448
5449 2011-08-09 Nick Clifton <nickc@redhat.com>
5450
5451 * config/rx/rx.md: Disable extender peepholes at -O3.
5452
5453 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
5454
5455 PR target/49781
5456 * config/i386/i386.md (reload_noff_load): New.
5457 (reload_noff_store): Ditto.
5458 * config/i386/i386.c (ix86_secondary_reload): Use
5459 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
5460 double-word moves from/to non-offsetable addresses instead of
5461 generating XMM temporary.
5462
5463 2011-08-09 Anatoly Sokolov <aesok@post.ru>
5464
5465 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
5466
5467 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
5468
5469 PR tree-optimization/50014
5470 * tree-vect-loop.c (vectorizable_reduction): Get def type before
5471 calling vect_get_vec_def_for_stmt_copy ().
5472
5473 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
5474
5475 PR rtl-optimization/49990
5476 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
5477 ignore classes which can not change mode.
5478 (find_costs_and_classes): Ditto.
5479
5480 2011-08-08 Richard Henderson <rth@redhat.com>
5481
5482 PR middle-end/49990
5483 * config/i386/i386.c (ix86_expand_prologue): Call
5484 for SEH target gen_prologue_use instead of gen_blockage
5485 at prologue's end.
5486
5487 2011-08-08 Martin Jambor <mjambor@suse.cz>
5488
5489 PR middle-end/49923
5490 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
5491 memory alignment.
5492
5493 2011-08-08 Diego Novillo <dnovillo@google.com>
5494
5495 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
5496 (DATA_STREAMER_H): New.
5497 (GIMPLE_STREAMER_H): New.
5498 (TREE_STREAMER_H): New.
5499 (STREAMER_HOOKS_H): New.
5500 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
5501 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
5502 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
5503 (data-streamer.o): New.
5504 (data-streamer-in.o): New.
5505 (data-streamer-out.o): New.
5506 (gimple-streamer-in.o): New.
5507 (gimple-streamer-out.o): New.
5508 (streamer-hooks.o): New.
5509 (tree-streamer.o): New.
5510 (tree-streamer-in.o): New.
5511 (tree-streamer-out.o): New.
5512 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
5513 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
5514 GIMPLE_STREAMER_H and TREE_STREAMER_H.
5515 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
5516 GIMPLE_STREAMER_H and TREE_STREAMER_H.
5517 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
5518 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
5519 (ipa-inline-analysis.o): Likewise.
5520 (ipa-pure-const.o): Likewise.
5521 * data-streamer-in.c: New.
5522 * data-streamer-out.c: New.
5523 * data-streamer.c: New.
5524 * data-streamer.h: New.
5525 * gimple-streamer-in.c: New.
5526 * gimple-streamer-out.c: New.
5527 * gimple-streamer.h: New.
5528 * ipa-inline-analysis.c: Include data-streamer.h.
5529 * ipa-prop.c: Include data-streamer.h.
5530 * ipa-pure-const.c: Include data-streamer.h.
5531 * lto-cgraph.c: Include data-streamer.h.
5532 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
5533 (lto_input_widest_uint_uleb128): Likewise.
5534 (lto_input_sleb128): Likewise.
5535 (bp_unpack_var_len_unsigned): Likewise.
5536 (bp_unpack_var_len_int): Likewise.
5537 * lto-section-out.c (lto_output_uleb128_stream): Move to
5538 data-streamer-out.c.
5539 (lto_output_widest_uint_uleb128_stream): Likewise.
5540 (lto_output_sleb128_stream): Likewise.
5541 (bp_pack_var_len_unsigned): Likewise.
5542 (bp_pack_var_len_int): Likewise.
5543 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
5544 (struct string_slot): Remove. Update all users.
5545 (lto_tag_check_set): Make extern.
5546 (lto_tag_check_range): Move to lto-streamer.h.
5547 (lto_tag_check): Likewise.
5548 (hash_string_slot_node): Remove. Update all users.
5549 (eq_string_slot_node): Remove. Update all users.
5550 (string_for_index): Move to data-streamer-in.c
5551 (input_string_internal): Likewise.
5552 (input_string_cst): Move to tree-streamer-in.c.
5553 (input_identifier): Likewise.
5554 (lto_input_string): Move to data-streamer-in.c
5555 (input_record_start): Move to data-streamer.h
5556 (canon_file_name): Use new definition of struct string_slot
5557 from data-streamer.h. Set S_SLOT.LEN.
5558 (lto_input_location): Make extern.
5559 (lto_input_chain): Move to tree-streamer-in.c.
5560 (lto_init_eh): Make extern.
5561 (input_phi): Move to gimple-streamer-in.c.
5562 (input_gimple_stmt): Likewise.
5563 (input_bb): Likewise.
5564 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
5565 (unpack_ts_real_cst_value_fields): Likewise.
5566 (unpack_ts_fixed_cst_value_fields): Likewise.
5567 (unpack_ts_decl_common_value_fields): Likewise.
5568 (unpack_ts_decl_wrtl_value_fields): Likewise.
5569 (unpack_ts_decl_with_vis_value_fields): Likewise.
5570 (unpack_ts_function_decl_value_fields): Likewise.
5571 (unpack_ts_type_common_value_fields): Likewise.
5572 (unpack_ts_block_value_fields): Likewise.
5573 (unpack_ts_translation_unit_decl_value_fields): Likewise.
5574 (unpack_value_fields): Likewise.
5575 (lto_materialize_tree): Likewise.
5576 (lto_input_ts_common_tree_pointers): Likewise.
5577 (lto_input_ts_vector_tree_pointers): Likewise.
5578 (lto_input_ts_complex_tree_pointers): Likewise.
5579 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
5580 (lto_input_ts_decl_common_tree_pointers): Likewise.
5581 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
5582 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
5583 (lto_input_ts_field_decl_tree_pointers): Likewise.
5584 (lto_input_ts_function_decl_tree_pointers): Likewise.
5585 (lto_input_ts_type_common_tree_pointers): Likewise.
5586 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5587 (lto_input_ts_list_tree_pointers): Likewise.
5588 (lto_input_ts_vec_tree_pointers): Likewise.
5589 (lto_input_ts_exp_tree_pointers): Likewise.
5590 (lto_input_ts_block_tree_pointers): Likewise.
5591 (lto_input_ts_binfo_tree_pointers): Likewise.
5592 (lto_input_ts_constructor_tree_pointers): Likewise.
5593 (lto_input_ts_target_option): Likewise.
5594 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
5595 (lto_input_tree_pointers): Likewise.
5596 (lto_get_pickled_tree): Likewise.
5597 (lto_get_builtin_tree): Likewise.
5598 (lto_read_tree): Likewise.
5599 (lto_input_integer_cst): Likewise.
5600 (lto_input_tree): Likewise.
5601 * lto-streamer-out.c: Include data-streamer.h,
5602 gimple-streamer.h and streamer-hooks.h.
5603 (struct string_slot): Move to data-streamer.h.
5604 (hash_string_slot_node): Likewise.
5605 (eq_string_slot_node): Likewise.
5606 (lto_string_index): Move to data-streamer-out.c.
5607 (lto_output_string_with_length): Likewise.
5608 (lto_output_string): Likewise.
5609 (output_string_cst): Move to tree-streamer-out.c.
5610 (output_identifier): Likewise.
5611 (output_zero): Move to data-streamer-out.c
5612 (output_uleb128): Likewise.
5613 (output_sleb128): Likewise.
5614 (output_record_start): Move to data-streamer.h
5615 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
5616 (pack_ts_real_cst_value_fields): Likewise.
5617 (pack_ts_fixed_cst_value_fields): Likewise.
5618 (pack_ts_decl_common_value_fields): Likewise.
5619 (pack_ts_decl_wrtl_value_fields): Likewise.
5620 (pack_ts_decl_with_vis_value_fields): Likewise.
5621 (pack_ts_function_decl_value_fields): Likewise.
5622 (pack_ts_type_common_value_fields): Likewise.
5623 (pack_ts_block_value_fields): Likewise.
5624 (pack_ts_translation_unit_decl_value_fields): Likewise.
5625 (pack_value_fields): Likewise.
5626 (lto_output_chain): Likewise.
5627 (lto_output_ts_common_tree_pointers): Likewise.
5628 (lto_output_ts_vector_tree_pointers): Likewise.
5629 (lto_output_ts_complex_tree_pointers): Likewise.
5630 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
5631 (lto_output_ts_decl_common_tree_pointers): Likewise.
5632 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
5633 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
5634 (lto_output_ts_field_decl_tree_pointers): Likewise.
5635 (lto_output_ts_function_decl_tree_pointers): Likewise.
5636 (lto_output_ts_type_common_tree_pointers): Likewise.
5637 (lto_output_ts_type_non_common_tree_pointers): Likewise.
5638 (lto_output_ts_list_tree_pointers): Likewise.
5639 (lto_output_ts_vec_tree_pointers): Likewise.
5640 (lto_output_ts_exp_tree_pointers): Likewise.
5641 (lto_output_ts_block_tree_pointers): Likewise.
5642 (lto_output_ts_binfo_tree_pointers): Likewise.
5643 (lto_output_ts_constructor_tree_pointers): Likewise.
5644 (lto_output_ts_target_option): Likewise.
5645 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
5646 (lto_output_tree_pointers): Likewise.
5647 (lto_output_tree_header): Likewise.
5648 (lto_output_builtin_tree): Likewise.
5649 (lto_write_tree): Likewise.
5650 (lto_output_integer_cst): Likewise.
5651 (lto_output_tree): Likewise.
5652 (output_phi): Move to gimple-streamer-out.c.
5653 (output_gimple_stmt): Likewise.
5654 (output_bb): Likewise.
5655 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
5656 (streamer_hooks): Move to streamer-hooks.c.
5657 (check_handled_ts_structures): Move to tree-streamer.c
5658 (lto_streamer_cache_add_to_node_array): Likewise.
5659 (lto_streamer_cache_insert_1): Likewise.
5660 (lto_streamer_cache_insert): Likewise.
5661 (lto_streamer_cache_insert_at): Likewise.
5662 (lto_streamer_cache_append): Likewise.
5663 (lto_streamer_cache_lookup): Likewise.
5664 (lto_streamer_cache_get): Likewise.
5665 (lto_record_common_node): Likewise.
5666 (lto_preload_common_nodes): Likewise.
5667 (lto_streamer_cache_create): Likewise.
5668 (lto_streamer_cache_delete): Likewise.
5669 (streamer_hooks_init): Move to streamer-hooks.c.
5670 * lto-streamer.h: Include diagnostic.h
5671 (struct output_block, struct lto_input_block,
5672 struct data_in, struct bitpack_d): Remove forward declarations.
5673 (struct bitpack_d): Move to data-streamer.h.
5674 (struct lto_streamer_cache_d): Move to tree-streamer.h.
5675 (struct streamer_hooks): Move to streamer-hooks.h.
5676 (bp_pack_var_len_unsigned): Move to data-streamer.h.
5677 (bp_pack_var_len_int): Likewise.
5678 (bp_unpack_var_len_unsigned): Likewise.
5679 (bp_unpack_var_len_int): Likewise.
5680 (lto_input_location): Declare.
5681 (lto_tag_check_set): Declare.
5682 (lto_init_eh): Declare.
5683 (lto_output_tree_ref): Declare.
5684 (lto_output_location): Declare.
5685 (bitpack_create): Move to data-streamer.h.
5686 (bp_pack_value): Likewise.
5687 (lto_output_bitpack): Likewise.
5688 (lto_input_bitpack): Likewise.
5689 (bp_unpack_value): Likewise.
5690 (lto_output_1_stream): Likewise.
5691 (lto_input_1_unsigned): Likewise.
5692 (lto_output_int_in_range): Likewise.
5693 (lto_input_int_in_range): Likewise.
5694 (bp_pack_int_in_range): Likewise.
5695 (bp_unpack_int_in_range): Likewise.
5696 (lto_output_enum): Likewise.
5697 (lto_input_enum): Likewise.
5698 (bp_pack_enum): Likewise.
5699 (bp_unpack_enum): Likewise.
5700 * streamer-hooks.c: New.
5701 * streamer-hooks.h: New.
5702 * tree-streamer-in.c: New.
5703 * tree-streamer-out.c: New.
5704 * tree-streamer.c: New.
5705 * tree-streamer.h: New.
5706
5707 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5708
5709 * gthr-posix95.h: Remove.
5710 * gthr.h [_PTHREADS95]: Remove.
5711 * configure.ac (enable_threads): Remove posix95.
5712 * configure: Regenerate.
5713 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
5714
5715 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
5716
5717 PR target/49781
5718 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
5719 SImode addresses.
5720 (ix86_print_operand_address): Handle zero-extended addresses.
5721 (memory_address_length): Add length of addr32 prefix for
5722 zero-extended addresses.
5723 (ix86_secondary_reload): Handle moves to/from double-word general
5724 registers from/to zero-extended addresses.
5725 * config/i386/predicates.md (lea_address_operand): Reject
5726 zero-extended operands.
5727
5728 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
5729
5730 PR other/48007
5731 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
5732
5733 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
5734 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
5735
5736 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
5737 (_Unwind_Context_Reg_Val): Likewise.
5738 (_Unwind_Get_Unwind_Word): Likewise.
5739 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
5740 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
5741 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
5742 for EXTENDED_CONTEXT_BIT.
5743 (__frame_state_for): Likewise.
5744 (uw_init_context_1): Likewise.
5745 (_Unwind_GetGR): Updated.
5746 (_Unwind_SetGR): Likewise.
5747 (_Unwind_GetGRPtr): Likewise.
5748 (_Unwind_SetGRPtr): Likewise.
5749 (_Unwind_SetGRValue): Likewise.
5750 (_Unwind_GRByValue): Likewise.
5751 (uw_install_context_1): Likewise.
5752
5753 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
5754 ASSUME_EXTENDED_UNWIND_CONTEXT.
5755 * doc/tm.texi: Regenerated.
5756
5757 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5758
5759 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
5760
5761 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5762
5763 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
5764 Linux/GNU-specific.
5765 (DEC Alpha Options, -mtune): Likewise.
5766 (MIPS Options, -march): native is supported on IRIX.
5767
5768 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5769
5770 * config/sparc/driver-sparc.c: New file.
5771 * config/sparc/x-sparc: New file.
5772 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
5773 * config/sparc/sparc.opt (native): New value for enum processor_type.
5774 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
5775 * config/sparc/sparc.c (sparc_option_override): Abort if
5776 PROCESSOR_NATIVE gets here.
5777 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
5778 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
5779 DRIVER_SELF_SPECS): Define.
5780 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
5781 (SPARC Options, -mtune): Likewise.
5782 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
5783 Substitute result.
5784 * configure: Regenerate.
5785 * Makefile.in (EXTRA_GCC_LIBS): Set.
5786 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
5787 (cpp$(exeext)): Likewise.
5788
5789 2011-08-08 Richard Guenther <rguenther@suse.de>
5790
5791 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
5792 split out from ...
5793 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
5794 by composition.
5795
5796 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
5797
5798 PR tree-optimization/50005
5799 * ipa-inline-analysis (remap_predicate): Add cast to
5800 silence signed/unsigned comparison warning.
5801
5802 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
5803
5804 * modulo-sched.c (get_sched_window): Use a table for the debug output.
5805 Print the current ii.
5806 (sms_schedule_by_order): Reduce whitespace in dump line.
5807
5808 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
5809
5810 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
5811 and one loop for successors. Fix upper bound of memory range.
5812
5813 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5814
5815 PR target/50001
5816 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
5817 (TARGET_INSTANTIATE_DECLS): New define.
5818
5819 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
5820 Mikael Morin <mikael.morin@sfr.fr>
5821
5822 * Makefile.in (INCLUDES_FOR_TARGET): New.
5823 (LIBGCC2_CFLAGS): Use it.
5824 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
5825
5826 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5827
5828 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
5829 frame->save_regs_using_mov calculation.
5830
5831 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5832
5833 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
5834 * config/i386/sse.md (castmode): New mode attribute.
5835 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
5836 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
5837
5838 2011-08-05 Jan Hubicka <jh@suse.cz>
5839
5840 PR middle-end/49494
5841 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
5842
5843 2011-08-05 Jan Hubicka <jh@suse.cz>
5844
5845 PR middle-end/49500
5846 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
5847 handle aliases.
5848 (create_emultls_var):New function.
5849 (ipa_lower_emutls): Handle aliases correctly.
5850
5851 2011-08-05 Jan Hubicka <jh@suse.cz>
5852
5853 PR middle-end/49735
5854 * ipa-inline.c (recursive_inlining): Look through aliases.
5855
5856 2011-08-05 Jason Merrill <jason@redhat.com>
5857
5858 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
5859 declarations to beginning of function.
5860
5861 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
5862
5863 PR rtl-optimization/49900
5864 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
5865 ensure basic blocks stay in the same order.
5866
5867 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
5868
5869 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
5870 store_bit_field.
5871 (s390_expand_atomic): Same.
5872
5873 2011-08-05 Richard Henderson <rth@redhat.com>
5874
5875 PR rtl-opt/49977
5876 * dwarf2cfi.c (scan_insn_after): Split out of ...
5877 (scan_trace): ... here. Correctly place notes wrt sequences.
5878
5879 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
5880 Richard Henderson <rth@redhat.com>
5881
5882 PR rtl-opt/49982
5883 * expr.c (fixup_args_size_notes): Look through no-op moves.
5884
5885 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5886
5887 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
5888 of "m" for operand 0. Add type and mode attribute.
5889 (*pushxf_nointeger"): Use "<" constraint for operand 0.
5890 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
5891 constraint instead of "o" for opreand 1.
5892 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
5893 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
5894 operand 0, alternative 4.
5895 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
5896
5897 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5898
5899 * config/i386/predicates.md (lea_address_operand): Rename from
5900 no_seg_address_operand.
5901 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
5902 (*lea_1_zext): Ditto.
5903 (*lea_2): Ditto.
5904 (*lea_2_zext): Ditto.
5905
5906 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5907
5908 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
5909 parts.base and parts.index.
5910 * config/i386/predicates.md (aligned_operand): Ditto.
5911 (cmpxchg8b_pic_memory_operand): Ditto.
5912
5913 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5914
5915 * config/soft-fp: Move to ../libgcc.
5916 * Makefile.in (SFP_MACHINE): Remove.
5917 (libgcc-support): Remove $(SFP_MACHINE) dependency.
5918 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
5919 * config/arm/t-arm-softfp: Move to
5920 ../libgcc/config/arm/t-softfp.
5921 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
5922 * config/c6x/t-c6x-softfp: Remove.
5923 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
5924 * config/i386/t-fprules-softfp: Move to
5925 ../libgcc/config/t-softfp-tf.
5926 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
5927 * config/ia64/t-fprules-softfp: Remove.
5928 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
5929 * config/lm32/t-fprules-softfp: Remove.
5930 * config/moxie/sfp-machine.h: Remove.
5931 * config/moxie/t-moxie-softfp: Remove.
5932 * config/rs6000/darwin-ldouble-format: Move to
5933 ../libgcc/config/rs6000/ibm-ldouble-format.
5934 * config/rs6000/darwin-ldouble.c: Move to
5935 ../libgcc/config/rs6000/ibm-ldouble.c
5936 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
5937 * config/rs6000/libgcc-ppc64.ver: Likewise.
5938 * config/rs6000/sfp-machine.h: Likewise.
5939 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
5940 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
5941 (LIB2FUNCS_EXTRA): Remove.
5942 (TARGET_LIBGCC2_CFLAGS): Remove.
5943 * config/rs6000/t-aix52: Likewise
5944 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
5945 $(srcdir)/config/rs6000/darwin-ldouble.c.
5946 (SHLIB_MAPFILES): Remove.
5947 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
5948 $(srcdir)/config/rs6000/darwin-ldouble.c.
5949 * config/rs6000/t-fprules-softfp: Move to
5950 ../libgcc/config/t-softfp-sfdf.
5951 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
5952 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
5953 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
5954 $(srcdir)/config/rs6000/darwin-ldouble.c.
5955 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
5956 * config/score/t-score-softfp: Remove.
5957 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
5958 soft-fp/t-softfp from tmake_file.
5959 (arm*-*-uclinux*): Likewise.
5960 (arm*-*-ecos-elf): Likewise.
5961 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
5962 (arm*-*-rtems*): Likewise.
5963 (arm*-*-elf): Likewise.
5964 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
5965 tmake_file.
5966 (moxie-*-uclinux*): Likewise.
5967 (moxie-*-rtems*): Likewise.
5968 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
5969 tmake_file.
5970 (lm32-*-rtems*): Likewise.
5971 (lm32-*-uclinux*): Likewise.
5972 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
5973 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
5974 (powerpc-*-linux*, powerpc64-*-linux*): Remove
5975 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
5976 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
5977 tmake_file.
5978 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
5979 tmake_file.
5980 (tic6x-*-uclinux): Likewise.
5981 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
5982 soft-fp/t-softfp from tmake_file.
5983 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
5984 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
5985 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
5986 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
5987 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
5988
5989 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5990
5991 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
5992 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
5993 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
5994 TPBIT, TPBIT_FUNCS.
5995 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
5996 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
5997 Remove.
5998 * config/arm/t-vxworks: Likewise.
5999 * config/arm/t-wince-pe: Likewise.
6000 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
6001 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6002 * config/bfin/t-bfin-elf: Likewise.
6003 * config/bfin/t-bfin-linux: Likewise.
6004 * config/bfin/t-bfin-uclinux: Likewise.
6005 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
6006 Remove.
6007 * config/fr30/t-fr30: Likewise.
6008 * config/frv/t-frv: Likewise.
6009 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
6010 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6011 * config/m32c/t-m32c: Likewise.
6012 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
6013 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6014 * config/mcore/t-mcore: Likewise.
6015 * config/mep/t-mep: Likewise.
6016 * config/microblaze/t-microblaze: Likewise.
6017 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
6018 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6019 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
6020 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6021 * config/mn10300/t-linux: Remove.
6022 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6023 * config/pdp11/t-pdp11: Likewise.
6024 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
6025 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
6026 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6027 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
6028 * config/rs6000/t-aix52: Likewise.
6029 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
6030 $(srcdir)/config/rs6000/ppc64-fp.c.
6031 * config/rs6000/t-fprules-fpbit: Remove.
6032 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
6033 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6034 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
6035 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6036 * config/sparc/t-elf: Likewise.
6037 * config/sparc/t-leon: Likewise.
6038 * config/sparc/t-leon3: Likewise.
6039 * config/spu/t-spu-elf: Likewise.
6040 (DPBIT_FUNCS): Remove.
6041 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6042 * config/v850/t-v850: Likewise.
6043 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
6044 (avr-*-*): Likewise.
6045 (h8300-*-rtems*): Set libgcc_tm_file.
6046 (h8300-*-elf*): Likewise.
6047 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
6048 tmake_file.
6049 (powerpc-*-eabisim*): Likewise.
6050 (powerpc-*-elf*): Likewise.
6051 (powerpc-*-eabialtivec*): Likewise.
6052 (powerpc-xilinx-eabi*): Likewise.
6053 (powerpc-*-eabi*): Likewise.
6054 (powerpc-*-rtems*): Likewise.
6055 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
6056 (powerpcle-*-elf*): Likewise.
6057 (powerpcle-*-eabisim*): Likewise.
6058 (powerpcle-*-eabi*): Likewise.
6059 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
6060 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
6061 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
6062 Remove.
6063
6064 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6065
6066 * Makefile.in (UNWIND_H): Remove.
6067 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
6068 ../libgcc/Makefile.in.
6069 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
6070 (LIBUNWINDDEP): Remove.
6071 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
6072 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
6073 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
6074 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
6075 Don't copy $(UNWIND_H).
6076 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
6077 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
6078 * aclocal.m4: Regenerate.
6079 * configure: Regenerate.
6080 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
6081 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
6082 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
6083 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
6084 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
6085 * config/arm/libunwind.S, config/arm/pr-support.c,
6086 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
6087 ../libgcc/config/arm.
6088 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
6089 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
6090 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
6091 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
6092 ($(T)frvend$(objext)): Likewise.
6093 * config/ia64/t-glibc (LIB2ADDEH): Remove.
6094 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
6095 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
6096 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
6097 ../libgcc/config/ia64.
6098 * config/ia64/t-hpux (LIB2ADDEH): Remove.
6099 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
6100 * config/ia64/t-vms (LIB2ADDEH): Remove.
6101 * config/ia64/vms.h (UNW_IVMS_MODE,
6102 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
6103 * config/picochip/t-picochip (LIB2ADDEH): Remove.
6104 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
6105 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
6106 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
6107 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
6108 $(srcdir)/../libgcc to refer to unwinder sources.
6109 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
6110 * config/t-darwin (LIB2ADDEH): Remove.
6111 * config/t-freebsd (LIB2ADDEH): Remove.
6112 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
6113 * config/t-libunwind-elf: Move to ../libgcc/config.
6114 * config/t-linux (LIB2ADDEH): Remove.
6115 * config/t-sol2 (LIB2ADDEH): Remove.
6116 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
6117 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
6118
6119 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
6120
6121 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
6122
6123 * doc/invoke.texi: Document core-avx-i.
6124
6125 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6126
6127 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
6128
6129 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
6130
6131 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
6132 result of multiple results reduction when extracting the final
6133 value using scalar code.
6134
6135 2011-08-05 Richard Guenther <rguenther@suse.de>
6136
6137 PR tree-optimization/49984
6138 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
6139
6140 2011-08-05 Richard Guenther <rguenther@suse.de>
6141
6142 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
6143 return true for constant integer ranges.
6144 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
6145 BIT_IOR_EXPR handling.
6146
6147 2011-08-04 Kai Tietz <ktietz@redhat.com>
6148
6149 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
6150 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
6151
6152 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
6153
6154 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
6155 pattern def statement, and its access macro.
6156 (NUM_PATTERNS): Set to 5.
6157 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
6158 pattern def statement.
6159 (vect_transform_loop): Likewise.
6160 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
6161 function vect_recog_over_widening_pattern ().
6162 (vect_operation_fits_smaller_type): New function.
6163 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
6164 Likewise.
6165 (vect_pattern_recog_1): Move the code that marks pattern
6166 statements to vect_mark_pattern_stmts (), and call it. Update
6167 documentation.
6168 * tree-vect-stmts.c (vect_supportable_shift): New function.
6169 (vect_analyze_stmt): Handle pattern def statement.
6170 (new_stmt_vec_info): Initialize pattern def statement.
6171
6172 2011-08-04 Richard Henderson <rth@redhat.com>
6173
6174 PR target/49964
6175 * config/i386/i386.c (ix86_expand_call): Don't create nested
6176 PARALLELs for TARGET_VZEROUPPER.
6177 (ix86_split_call_vzeroupper): Fix extraction of the original call.
6178 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
6179 recognize nested PARALLELs.
6180 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
6181 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
6182 *sibcall_value_pop_vzeroupper): Likewise.
6183
6184 2011-08-04 Richard Henderson <rth@redhat.com>
6185
6186 PR middle-end/49968
6187 * calls.c (expand_call): Use fixup_args_size_notes for
6188 emit_stack_restore.
6189 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
6190 in non-standard modes.
6191
6192 2011-08-04 Jakub Jelinek <jakub@redhat.com>
6193
6194 * gcc.c (self_spec): New variable.
6195 (static_specs): Add self_spec.
6196 (main): Call do_self_spec on "self_spec" specs after reading
6197 user specs files. Move compare_debug handling right after that.
6198
6199 2011-08-04 Richard Guenther <rguenther@suse.de>
6200
6201 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
6202 (value_range_nonnegative_p): New function.
6203 (ssa_name_nonnegative_p): Use it.
6204 (value_range_constant_singleton): New function.
6205 (op_with_constant_singleton_value_range): Use it.
6206 (extract_range_from_binary_expr_1): New function, split out from ...
6207 (extract_range_from_binary_expr): ... this. Remove fallback
6208 constant folding done here.
6209
6210 2011-08-04 Richard Guenther <rguenther@suse.de>
6211
6212 PR tree-optimization/49806
6213 * tree-vrp.c (op_with_boolean_value_range_p): New function.
6214 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
6215 a new statement for a final conversion to bool.
6216
6217 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
6218
6219 * gengtype-state.c: Include "bconfig.h" if
6220 GENERATOR_FILE is defined, "config.h" otherwise.
6221 * gengtype.c: Likewise.
6222 * gengtype-lex.l: Likewise.
6223 * gengtype-parse.c: Likewise.
6224 * Makefile.in (gengtype-lex.o-warn): New variable.
6225 (plugin_resourcesdir): Likewise.
6226 (plugin_bindir): Likewise.
6227 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
6228 (MOSTLYCLEANFILES): Add gengtype$(exeext).
6229 (native): Depend on gengtype$(exeext) is $enable_plugin
6230 is set to "yes".
6231 (gtype.state): Depend on s-gtype. Use temporary file.
6232 (gengtype-lex.o): New rule.
6233 (gengtype-parse.o): Likewise.
6234 (gengtype-state.o): Likewise.
6235 (gengtype$(exeext)): Likewise.
6236 (install-gengtype): Likewise.
6237 (gengtype.o): Likewise.
6238 (build/gengtype.o): Depend on version.h.
6239 (build/gengtype-state): Depend on double-int.h, version.h,
6240 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
6241 (install-plugin): Depend on install-gengtype.
6242
6243 2011-08-04 Jakub Jelinek <jakub@redhat.com>
6244
6245 PR middle-end/49905
6246 * tree.h (init_attributes): New prototype.
6247 * attribs.c (init_attributes): No longer static.
6248
6249 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6250
6251 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
6252 maybe_suffix.
6253
6254 2011-08-03 David Li <davidxl@google.com>
6255
6256 * tree-optimize.c (execute_fixup_cfg): Fix up entry
6257 outgoing edge counts after inlining.
6258
6259 2011-08-03 David Li <davidxl@google.com>
6260
6261 * profile.c (compute_branch_probabilities): Compute
6262 function frequency after profile annotation.
6263
6264 2011-08-04 Alan Modra <amodra@gmail.com>
6265
6266 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
6267 use_backchain_to_restore_sp initialisation.
6268 (rs6000_legitimate_offset_address_p): Simplify offset test.
6269
6270 2011-08-03 Richard Henderson <rth@redhat.com>
6271
6272 * config/spu/spu.md: Use define_c_enum instead of define_constants.
6273 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
6274 (UNSPECV_NOP): New.
6275
6276 2011-08-03 Richard Henderson <rth@redhat.com>
6277
6278 PR target/34888
6279 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
6280
6281 2011-08-03 Jakub Jelinek <jakub@redhat.com>
6282
6283 PR tree-optimization/49948
6284 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
6285
6286 2011-08-03 Anatoly Sokolov <aesok@post.ru>
6287
6288 * config/m32c/m32c.c (class_sizes): Remove.
6289 (reduce_class): Change arguments and return type to reg_class_t.
6290 Change type cc var to HARD_REG_SET. Change type best var to
6291 reg_class_t. Change type best_size var to unsigned int. Remove
6292 initialization class_sizes var. Use reg_class_size array instead
6293 of class_sizes. Use reg_class_contents array instead
6294 of class_contents.
6295
6296 2011-08-03 Richard Guenther <rguenther@suse.de>
6297
6298 PR middle-end/49958
6299 * fold-const.c (fold_binary_loc): Only associate
6300 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
6301 overflow wraps.
6302
6303 2011-08-03 Alan Modra <amodra@gmail.com>
6304
6305 PR rtl-optimization/49941
6306 * jump.c (mark_jump_label): Comment.
6307 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
6308 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
6309 (mark_used_flags): Don't mark RETURN.
6310
6311 2011-08-03 Richard Guenther <rguenther@suse.de>
6312
6313 PR tree-optimization/49938
6314 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
6315 deal with a POLYNOMIAL_CHREC.
6316
6317 2011-08-03 Revital Eres <revital.eres@linaro.org>
6318
6319 * modulo-sched.c (calculate_stage_count,
6320 calculate_must_precede_follow, get_sched_window,
6321 try_scheduling_node_in_cycle, remove_node_from_ps): Add
6322 declaration.
6323 (update_node_sched_params, set_must_precede_follow, optimize_sc):
6324 New functions.
6325 (reset_sched_times): Call update_node_sched_params.
6326 (sms_schedule): Call optimize_sc.
6327 (get_sched_window): Change function arguments.
6328 (sms_schedule_by_order): Update call to get_sched_window.
6329 Call set_must_precede_follow.
6330 (calculate_stage_count): Add function argument.
6331
6332 2011-08-02 Richard Henderson <rth@redhat.com>
6333
6334 PR target/49864
6335 PR target/49879
6336 * reg-notes.def (REG_ARGS_SIZE): New.
6337 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
6338 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
6339 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
6340 different stack levels.
6341 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
6342 (maybe_move_args_size_note): New.
6343 (combine_stack_adjustments_for_block): Use it.
6344 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
6345 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
6346 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
6347 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
6348 (cur_cfa): New.
6349 (queued_args_size): Remove.
6350 (add_cfi_args_size): Assert size is non-negative.
6351 (stack_adjust_offset, dwarf2out_args_size): Remove.
6352 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
6353 (notice_args_size, notice_eh_throw): New.
6354 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
6355 (dwarf2out_frame_debug_adjust_cfa): Likewise.
6356 (dwarf2out_frame_debug_cfa_offset): Likewise.
6357 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
6358 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
6359 (change_cfi_row): Don't emit args_size.
6360 (maybe_record_trace_start_abnormal): Split out from ...
6361 (maybe_record_trace_start): Here. Set args_size_undefined.
6362 (create_trace_edges): Update to match.
6363 (scan_trace): Handle REG_ARGS_SIZE.
6364 (connect_traces): Connect args_size between EH insns.
6365 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
6366 * explow.c (suppress_reg_args_size): New.
6367 (adjust_stack_1): Split out from ...
6368 (adjust_stack): ... here.
6369 (anti_adjust_stack): Use it.
6370 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
6371 * expr.c (mem_autoinc_base): New.
6372 (fixup_args_size_notes): New.
6373 (emit_single_push_insn_1): Rename from emit_single_push_insn.
6374 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
6375 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
6376 * reload1.c (reload_as_needed): Likewise.
6377 * rtl.h (fixup_args_size_notes): Declare.
6378
6379 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
6380
6381 PR bootstrap/49914
6382 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
6383 of abs.
6384 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
6385 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
6386
6387 2011-08-02 Richard Henderson <rth@redhat.com>
6388
6389 * config/h8300/h8300.c (push, pop): Return the insn.
6390 (h8300_swap_into_er6): Generate correct unwind info.
6391 (h8300_swap_out_of_er6): Likewise.
6392 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
6393 complex cfa expression.
6394 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
6395
6396 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
6397
6398 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
6399
6400 2011-08-02 Richard Henderson <rth@redhat.com>
6401
6402 PR target/49878
6403 * config/h8300/h8300.c (h8300_move_ok): New.
6404 * config/h8300/h8300-protos.h: Declare it.
6405 * config/h8300/h8300.md (P): New mode iterator.
6406 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
6407 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
6408 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
6409 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
6410 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
6411 and pushqi1_h8300hs_normal; use PRE_MODIFY and
6412 register_no_sp_elim_operand.
6413 (*pushhi1_h8300hs_<P>): Similarly.
6414 (pushqi1, pushhi1, pushhi1_h8300): Remove.
6415 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
6416
6417 2011-08-02 Richard Henderson <rth@redhat.com>
6418
6419 PR target/49881
6420 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
6421
6422 2011-08-02 Jakub Jelinek <jakub@redhat.com>
6423
6424 * c-parser.c (enum c_parser_prec): New enum, moved from within
6425 c_parser_binary_expression.
6426 (c_parser_binary_expression): Add PREC argument. Stop parsing
6427 if operator has lower or equal precedence than PREC.
6428 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
6429 callers.
6430 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
6431 Adjust c_finish_omp_atomic caller.
6432 (c_parser_omp_taskyield): New function.
6433 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
6434 (c_parser_omp_clause_name): Handle final and mergeable clauses.
6435 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
6436 functions.
6437 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
6438 and PRAGMA_OMP_CLAUSE_MERGEABLE.
6439 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
6440 (c_parser_omp_clause_reduction): Handle min and max.
6441 * c-typeck.c (c_finish_omp_clauses): Don't complain about
6442 const qualified predetermined vars in firstprivate clause.
6443 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6444 Handle MIN_EXPR and MAX_EXPR.
6445 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
6446 and OMP_CLAUSE_MERGEABLE.
6447 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
6448 and OMP_ATOMIC_CAPTURE_NEW.
6449 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
6450 OMP_CLAUSE_MERGEABLE.
6451 (omp_clause_code_name): Likewise.
6452 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6453 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
6454 and OMP_CLAUSE_MERGEABLE.
6455 (OMP_CLAUSE_FINAL_EXPR): Define.
6456 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
6457 OMP_CLAUSE_MERGEABLE.
6458 (expand_task_call): Likewise.
6459 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
6460 (expand_omp_atomic_fetch_op): Handle cases where old or new
6461 value is needed afterwards.
6462 (expand_omp_atomic): Call expand_omp_atomic_load resp.
6463 expand_omp_atomic_store.
6464 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
6465 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
6466 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
6467 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6468 * tree-nested.c (convert_nonlocal_omp_clauses,
6469 convert_local_omp_clauses): Likewise.
6470 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
6471 OMP_ATOMIC_CAPTURE_NEW): New.
6472 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
6473 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
6474 New inlines.
6475 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
6476 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
6477 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6478
6479 2011-08-02 Kai Tietz <ktietz@redhat.com>
6480
6481 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
6482 boolean-type.
6483 (ssa_forward_propagate_and_combine): Interprete result of
6484 forward_propagate_comparison.
6485 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
6486 boolean-typed operands for comparisons.
6487
6488 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
6489
6490 * config/avr/libgcc.S: Gather related function in the
6491 same input section.
6492 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
6493 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
6494 references.
6495 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
6496 __udivmodsi4, __divmodsi4, __prologue_saves__,
6497 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
6498 __do_copy_data, __do_clear_bss, __do_global_ctors,
6499 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
6500
6501 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
6502
6503 PR target/47766
6504 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
6505 (stack_protect_test): The pattern compares ptr_mode value.
6506
6507 2011-08-02 Alan Modra <amodra@gmail.com>
6508
6509 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
6510 note for save_LR_around_toc_setup sequence.
6511
6512 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
6513
6514 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
6515
6516 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
6517 Joseph Myers <joseph@codesourcery.com>
6518
6519 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
6520 * hwint.c: Include diagnostic-core.h.
6521 (abs_hwi): New.
6522 (gcd): Moved here...
6523 (pos_mul_hwi): New.
6524 (mul_hwi): New.
6525 (least_common_multiple): Moved here...
6526 * hwint.h (gcd): ... from here.
6527 (least_common_multiple): ... from here.
6528 (HOST_WIDE_INT_MIN): New.
6529 (HOST_WIDE_INT_MAX): New.
6530 (abs_hwi): Declared.
6531 (gcd): Declared.
6532 (pos_mul_hwi): Declared.
6533 (mul_hwi): Declared.
6534 (least_common_multiple): Declared.
6535 * omega.c (check_pos_mul): Removed.
6536 (check_mul): Removed.
6537 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
6538 mul_hwi instead of check_mul.
6539
6540 2011-08-01 Richard Henderson <rth@redhat.com>
6541
6542 PR target/49881
6543 * config/avr/avr.h (PUSH_ROUNDING): New.
6544 * config/avr/avr.md (pushqi1): Rename from *pushqi.
6545 (*pushhi, *pushsi, *pushsf): Remove.
6546 (MPUSH): New mode iterator.
6547 (push<MPUSH>1): New expander.
6548
6549 2011-08-01 Anatoly Sokolov <aesok@post.ru>
6550
6551 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
6552 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
6553 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
6554 mmix_preferred_output_reload_class): Remove.
6555 * config/mmix/mmix.c (mmix_preferred_reload_class,
6556 mmix_preferred_output_reload_class): Make static. Change rclass
6557 argument and return type to reg_class_t.
6558 (TARGET_PREFERRED_RELOAD_CLASS,
6559 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6560
6561 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
6562
6563 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
6564 handling.
6565
6566 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
6567
6568 PR target/47766
6569 * config/i386/i386.md (PTR): New.
6570 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
6571 (stack_protect_test): Likewise.
6572 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
6573 (stack_tls_protect_set_<mode>): Likewise.
6574 (stack_tls_protect_test_<mode>): Likewise.
6575
6576 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
6577
6578 PR target/49927
6579 * config/i386/i386.c (ix86_address_subreg_operand): New.
6580 (ix86_decompose_address): Use ix86_address_subreg_operand.
6581 (ix86_legitimate_address_p): Do not assert that subregs satisfy
6582 register_no_elim_operand in DImode.
6583
6584 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
6585
6586 PR tree-optimization/49926
6587 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
6588 in a chain doesn't have uses both inside and outside the loop.
6589
6590 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
6591
6592 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
6593 * config/avr/avr-devices.c (avr_mcu_types): Use it.
6594 * config/avr/avr-mcus.def (AVR_MCU): Use it.
6595 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
6596 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
6597 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
6598 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
6599 to detect if XJMP must not be skipped.
6600
6601 2011-08-02 Alan Modra <amodra@gmail.com>
6602
6603 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
6604 Delete.
6605 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
6606 (rs6000_emit_prologue): Don't prematurely return when
6607 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
6608 save_toc_in_prologue case.
6609 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
6610 calls_alloca.
6611
6612 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
6613
6614 * config/avr/avr-devices.c: Delete SVN property svn:executable.
6615 * config/avr/predicates.md: Ditto.
6616 * config/avr/driver-avr.c: Ditto.
6617 * config/avr/genopt.sh: Set SVN property svn:executable to *.
6618
6619 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
6620
6621 * calls.c (emit_library_call_value_1): Declare size only if
6622 BLOCK_REG_PADDING is defined.
6623
6624 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
6625
6626 PR target/49547
6627 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
6628 (x86_64-*-*): Likewise.
6629 * config/i386/i386.opt (mlzcnt): New.
6630 * config/i386/abmintrin.h: File removed.
6631 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
6632 * config/i386/lzcntintrin.h: ... here. New file.
6633 (__lzcnt): Rename to ...
6634 (__lzcnt32): ... this.
6635 * config/i386/bmiintrin.h (head): Update copyright year.
6636 (__lzcnt_u16): Removed.
6637 (__lzcnt_u32): Likewise.
6638 (__lzcnt_u64): Likewise.
6639 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
6640 is defined, remove abmintrin.h.
6641 * config/i386/cpuid.h (bit_LZCNT): New.
6642 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6643 LZCNT feature.
6644 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6645 __LZCNT__ if needed.
6646 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
6647 (ix86_option_override_internal): Handle LZCNT option.
6648 (ix86_valid_target_attribute_inner_p): Likewise.
6649 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
6650 * config/i386/i386.h (TARGET_LZCNT): New.
6651 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
6652 * config/i386/i386.md (clz<mode>2): Update insn constraint.
6653 (clz<mode>2_lzcnt): Likewise.
6654 * doc/invoke.texi: Mention -mlzcnt option.
6655 * doc/extend.texi: Likewise.
6656
6657 2011-08-01 Julian Brown <julian@codesourcery.com>
6658
6659 * configure.ac (fixed-point): Add ARM support.
6660 * configure: Regenerate.
6661 * config/arm/arm.c (arm_fixed_mode_set): New struct.
6662 (arm_set_fixed_optab_libfunc): New.
6663 (arm_set_fixed_conv_libfunc): New.
6664 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
6665 ARM-specific names.
6666 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
6667 return values in SImode.
6668 (arm_return_in_msb): Return fixed-point types in the msb.
6669 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
6670 upwards.
6671 (arm_scalar_mode_supported_p): Support fixed-point modes.
6672 (arm_vector_mode_supported_p): Support vector fixed-point modes.
6673 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
6674 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
6675 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
6676 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
6677 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
6678 New mode iterators.
6679 (qaddsub_suf): New mode attribute.
6680 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
6681 vector modes.
6682 * config/arm/predicates.md (sat_shift_operator): New predicate.
6683 * config/arm/arm-fixed.md: New.
6684 * config/arm/arm.md: Include arm-fixed.md.
6685 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
6686
6687 2011-08-01 Julian Brown <julian@codesourcery.com>
6688
6689 * calls.c (emit_library_call_value_1): Support padding for libcall
6690 arguments and return values.
6691 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
6692 downwards in big-endian mode.
6693
6694 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6695
6696 PR debug/49887
6697 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
6698 * config/sol2-protos.h: Likewise.
6699 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
6700 solaris_code_end.
6701 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
6702 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
6703 solaris_file_end.
6704 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
6705
6706 2011-08-01 Julian Brown <julian@codesourcery.com>
6707
6708 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
6709
6710 2011-08-01 Julian Brown <julian@codesourcery.com>
6711
6712 * final.c (output_addr_const): Print fixed-point constants as
6713 decimal not hex.
6714
6715 2011-08-01 Richard Guenther <rguenther@suse.de>
6716
6717 * stor-layout.c (initialize_sizetypes): Properly sign-extend
6718 bitsiztype TYPE_MAX_VALUE.
6719
6720 2011-08-01 Julian Brown <julian@codesourcery.com>
6721
6722 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
6723 comparison helpers.
6724
6725 2011-07-31 Richard Henderson <rth@redhat.com>
6726
6727 * config/h8300/crti.asm: Add flags to .section directive.
6728 * config/h8300/crtn.asm: Likewise.
6729
6730 2011-07-31 Richard Henderson <rth@redhat.com>
6731
6732 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
6733 * tree.c (build_common_tree_nodes): Likewise.
6734
6735 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
6736
6737 PR target/49880
6738 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
6739 (divsi3_i1): Likewise.
6740
6741 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6742
6743 PR tree-optimization/49749
6744 * tree-ssa-reassoc.c (get_rank): New forward declaration.
6745 (PHI_LOOP_BIAS): New macro.
6746 (phi_rank): New function.
6747 (loop_carried_phi): Likewise.
6748 (propagate_rank): Likewise.
6749 (get_rank): Add calls to phi_rank and propagate_rank.
6750
6751 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
6752
6753 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
6754 of TARGET_64BIT.
6755 (PTRDIFF_TYPE): Likewise.
6756
6757 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
6758
6759 PR target/49920
6760 * config/i386/i386.md (strset): Do not expand strset_singleop
6761 when %eax or $edi are fixed.
6762 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
6763 (*strsetsi_1): Ditto.
6764 (*strsethi_1): Ditto.
6765 (*strsetqi_1): Ditto.
6766 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
6767 (*rep_stossi): Ditto.
6768 (*rep_stosqi): Ditto.
6769 (*strlenqi_1): Ditto.
6770 (cmpstrnsi): Also fail when %ecx is fixed.
6771 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
6772 (*cmpstrnqi_1): Ditto.
6773 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
6774 (*strmovsi_1): Ditto.
6775 (*strmovhi_1): Ditto.
6776 (*strmovqi_1): Ditto.
6777 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
6778 (*rep_movsi): Ditto.
6779 (*rep_movqi): Ditto.
6780
6781 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
6782
6783 PR target/47908
6784 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
6785 Disable instruction scheduling for non-ColdFire targets.
6786 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
6787
6788 2011-07-31 Revital Eres <revital.eres@linaro.org>
6789
6790 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
6791 of anti-dep edge from a branch.
6792 (add_cross_iteration_register_deps): Create anti-dep edge from
6793 a branch.
6794
6795 2011-07-31 Revital Eres <revital.eres@linaro.org>
6796
6797 * modulo-sched.c: Change comment.
6798 (reset_sched_times): Fix print message.
6799 (print_partial_schedule): Add print info.
6800
6801 2011-07-31 Tom de Vries <tom@codesourcery.com>
6802
6803 PR middle-end/43513
6804 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
6805 get_object_alignment and TYPE_ALIGN.
6806
6807 2011-07-30 Tom de Vries <tom@codesourcery.com>
6808
6809 PR middle-end/43513
6810 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
6811 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
6812
6813 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6814
6815 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
6816 <sys/sbd.h>.
6817 (cpu_types): New array.
6818 (cputype): New function.
6819 (host_detect_local_cpu): Only define buf, f if !__sgi__.
6820 Use scaninvent instead of /proc/cpuinfo if __sgi__.
6821 * config.host: Also use driver-native.o, mips/x-native on
6822 mips-sgi-irix*.
6823 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
6824 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
6825 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
6826
6827 2011-07-29 Jakub Jelinek <jakub@redhat.com>
6828
6829 PR middle-end/49897
6830 PR middle-end/49898
6831 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
6832 in nested parallel and outer is a gimple_reg, mark it as addressable
6833 and set its bit in task_shared_vars bitmap too.
6834
6835 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
6836
6837 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
6838
6839 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6840
6841 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
6842 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
6843 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
6844 AMASK_LOCKPFTCHOK): Define.
6845 (host_detect_local_cpu): Remove buf, f, cpu_names.
6846 Define cpu_types, implver, amask.
6847 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
6848 native CPU.
6849 * config.host: Also use driver-alpha.o, alpha/x-alpha on
6850 alpha*-dec-osf*.
6851 * config/alpha/osf5.h [__alpha__ || __alpha]
6852 (host_detect_local_cpu): Declare.
6853 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
6854 (DRIVER_SELF_SPECS): Define.
6855
6856 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
6857
6858 PR target/47715
6859 * config/i386/i386.md (*load_tp_x32): New.
6860 (*load_tp_x32_zext): Ditto.
6861 (*add_tp_x32): Ditto.
6862 (*add_tp_x32_zext): Ditto.
6863 (*load_tp_<mode>): Disable for TARGET_X32 targets.
6864 (*add_tp_<mode>): Ditto.
6865 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
6866 ptr_mode and convert to Pmode if needed.
6867
6868 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
6869
6870 PR target/49687
6871 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
6872 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
6873 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
6874 Add X to register footprint: Clobber r26/r27.
6875
6876 2011-07-29 Richard Guenther <rguenther@suse.de>
6877
6878 * builtins.c (fold_builtin_signbit): Build the comparison
6879 with a proper type.
6880
6881 2011-07-29 Richard Guenther <rguenther@suse.de>
6882
6883 PR tree-optimization/49893
6884 * tree-predcom.c (suitable_reference_p): Volatile references
6885 are not suitable.
6886
6887 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
6888
6889 PR target/49313
6890 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
6891 (__ctzsi2): Result for 0 may be undefined.
6892 (__ctzhi2): Result for 0 may be undefined.
6893 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
6894 (__popcountsi2): Ditto. And don't clobber r26.
6895 (__popcountdi2): Ditto. And don't clobber r27.
6896 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
6897 (parityhi2): New expand.
6898 (paritysi2): New expand.
6899 (popcounthi2): New expand.
6900 (popcountsi2): New expand.
6901 (clzhi2): New expand.
6902 (clzsi2): New expand.
6903 (ctzhi2): New expand.
6904 (ctzsi2): New expand.
6905 (ffshi2): New expand.
6906 (ffssi2): New expand.
6907 (copysignsf3): New insn.
6908 (bswapsi2): New expand.
6909 (*parityhi2.libgcc): New insn.
6910 (*parityqihi2.libgcc): New insn.
6911 (*paritysihi2.libgcc): New insn.
6912 (*popcounthi2.libgcc): New insn.
6913 (*popcountsi2.libgcc): New insn.
6914 (*popcountqi2.libgcc): New insn.
6915 (*popcountqihi2.libgcc): New insn-and-split.
6916 (*clzhi2.libgcc): New insn.
6917 (*clzsihi2.libgcc): New insn.
6918 (*ctzhi2.libgcc): New insn.
6919 (*ctzsihi2.libgcc): New insn.
6920 (*ffshi2.libgcc): New insn.
6921 (*ffssihi2.libgcc): New insn.
6922 (*bswapsi2.libgcc): New insn.
6923
6924 2011-07-29 Richard Guenther <rguenther@suse.de>
6925
6926 * tree-vrp.c (get_value_range): Only set parameter default
6927 definitions to varying, leave others at undefined.
6928 (extract_range_from_binary_expr): Fix undefined handling.
6929 (vrp_visit_phi_node): Handle merged undefined state.
6930
6931 2011-07-29 Wei Guozhi <carrot@google.com>
6932
6933 PR rtl-optimization/49799
6934 * combine.c (make_compound_operation): Check if the bit field is valid
6935 before change it to bit field extraction.
6936
6937 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
6938
6939 PR rtl-optimization/49891
6940 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
6941 newly created returnjumps.
6942
6943 2011-07-28 DJ Delorie <dj@redhat.com>
6944
6945 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
6946 local frame in a naked function, and produce a suitable error for
6947 that specific case.
6948
6949 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
6950 registers to be reloaded in HI classes when the target is HI.
6951
6952 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
6953
6954 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
6955 bound_one, bound_two.
6956
6957 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
6958
6959 PR middle-end/48648
6960 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
6961 CLAST assignments.
6962 (translate_clast): Same.
6963 (translate_clast_assignment): New.
6964
6965 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
6966
6967 PR tree-optimization/49876
6968 * sese.c (rename_uses): Do not return false on gloog_error: set
6969 the new_expr to integer_zero_node and continue code generation.
6970 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
6971
6972 2011-07-28 Jakub Jelinek <jakub@redhat.com>
6973
6974 PR debug/49846
6975 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
6976 arguments also check if they aren't initialized with a MODE_INT
6977 mode of the same size.
6978
6979 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
6980
6981 * expr.c (get_bit_range): Handle *MEM_REF's.
6982
6983 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
6984
6985 * rtlanal.c (tablejump_p): False for returns.
6986 * reorg.c (first_active_target_insn): New static function.
6987 (find_end_label): Set JUMP_LABEL for a new returnjump.
6988 (optimize_skip, get_jump_flags, rare_destination,
6989 mostly_true_jump, get_branch_condition,
6990 steal_delay_list_from_target, own_thread_p,
6991 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
6992 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
6993 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
6994 * jump.c (delete_related_insns): Likewise.
6995 (jump_to_label_p): New function.
6996 (redirect_target): New static function.
6997 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
6998 (redirect_jump_1): Assert that the new label is nonnull.
6999 (redirect_jump): Likewise.
7000 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
7001 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
7002 exit block.
7003 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
7004 changed. Ensure that the right label is passed to redirect_jump.
7005 * function.c (emit_return_into_block,
7006 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
7007 ret_rtx in their JUMP_LABEL.
7008 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
7009 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
7010 pass ret_rtx as label.
7011 * cfglayout.c (fixup_reorder_chain): Use
7012 force_nonfallthru_and_redirect rather than force_nonfallthru.
7013 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
7014 * rtl.h (ANY_RETURN_P): New macro.
7015 (jump_to_label_p): Declare.
7016 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
7017 JUMP_LABELs.
7018 (mark_target_live_regs): Likewise.
7019 * basic-block.h (force_nonfallthru_and_redirect): Declare.
7020 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
7021 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
7022 alpha_tablejump_best_label): Remove functions.
7023 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
7024 alpha_tablejump_best_label): Remove declarations.
7025 * config/sh/sh.c (barrier_align, split_branches): Adjust for
7026 ret_rtx in JUMP_LABELs.
7027 * config/arm/arm.c (is_jump_table): Likewise.
7028
7029 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
7030
7031 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
7032 special predicate. Remove explicit mode checks.
7033
7034 2011-07-28 Jakub Jelinek <jakub@redhat.com>
7035
7036 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
7037 DW_AT_data_member_location containing just DW_OP_plus_uconst.
7038
7039 PR debug/49871
7040 * dwarf2out.c (size_of_die, value_format, output_die): Use
7041 DW_FORM_udata instead of DW_FORM_data[48] for
7042 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
7043
7044 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
7045
7046 * config/i386/i386.md (*tls_global_dynamic_64): Update
7047 length attribute.
7048
7049 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
7050
7051 PR target/47715
7052 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
7053 tls_symbolic_operand check. Update code sequence for TARGET_X32.
7054 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
7055 (tls_dynamic_gnu2_64): Ditto.
7056 (*tls_dynamic_gnu2_lea_64): Ditto.
7057 (*tls_dynamic_gnu2_call_64): Ditto.
7058 (*tls_dynamic_gnu2_combine_64): Ditto.
7059
7060 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
7061
7062 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
7063
7064 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
7065
7066 PR target/47364
7067 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
7068
7069 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7070
7071 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
7072 before the core constraints. Adjust attributes.
7073 ("*thumb2_movdf_vfp"): Likewise.
7074
7075 2011-07-28 Kai Tietz <ktietz@redhat.com>
7076
7077 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
7078 (simplify_truth_ops_using_ranges): Likewise.
7079 (build_assert_expr_for): Likewise.
7080 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
7081 and handle BIT_NOT_EXPR for truth-operation.
7082
7083 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
7084
7085 PR target/49313
7086 Undo r176835 from trunk
7087 2011-07-27 Georg-Johann Lay
7088
7089 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
7090
7091 PR target/49687
7092 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
7093 Add _muluhisi3, _mulshisi3, _usmulhisi3.
7094 * config/avr/libgcc.S (__mulsi3): Rewrite.
7095 (__mulhisi3): Rewrite.
7096 (__umulhisi3): Rewrite.
7097 (__usmulhisi3): New.
7098 (__muluhisi3): New.
7099 (__mulshisi3): New.
7100 (__mulohisi3): New.
7101 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
7102 declare.
7103 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
7104 (pseudo_register_or_const_int_operand): New.
7105 (combine_pseudo_register_operand): New.
7106 (u16_operand): New.
7107 (s16_operand): New.
7108 (o16_operand): New.
7109 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
7110 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
7111 (any_extend, any_extend2): New code iterators.
7112 (extend_prefix): New code attribute.
7113 (mulsi3): Rewrite. Turn insn to expander.
7114 (mulhisi3): Ditto.
7115 (umulhisi3): Ditto.
7116 (usmulhisi3): New expander.
7117 (*mulsi3): New insn-and-split.
7118 (mulu<mode>si3): New insn-and-split.
7119 (muls<mode>si3): New insn-and-split.
7120 (mulohisi3): New insn-and-split.
7121 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
7122 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
7123 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
7124 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
7125 insn-and-split.
7126 (*mulsi3_call): Rewrite.
7127 (*mulhisi3_call): Rewrite.
7128 (*umulhisi3_call): Rewrite.
7129 (*usmulhisi3_call): New insn.
7130 (*muluhisi3_call): New insn.
7131 (*mulshisi3_call): New insn.
7132 (*mulohisi3_call): New insn.
7133 (extendqihi2): Use combine_pseudo_register_operand as predicate
7134 for operand 1.
7135 (extendqisi2): Ditto.
7136 (zero_extendqihi2): Ditto.
7137 (zero_extendqisi2): Ditto.
7138 (zero_extendhisi2): Ditto.
7139 (extendhisi2): Ditto. Don't early-clobber operand 0.
7140
7141 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
7142
7143 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
7144
7145 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
7146
7147 PR tree-optimization/49471
7148 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
7149 iv only when the largest type is unsigned. Do not call
7150 lang_hooks.types.type_for_size.
7151
7152 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
7153
7154 PR middle-end/45450
7155 * graphite-poly.c (apply_poly_transforms): Disable legality check
7156 after an openscop read.
7157
7158 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
7159
7160 PR middle-end/47691
7161 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
7162 copy_bb_and_scalar_dependences.
7163 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
7164 (graphite_copy_stmts_from_block): Update call to rename_uses.
7165 (copy_bb_and_scalar_dependences): Update call to
7166 graphite_copy_stmts_from_block.
7167 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
7168
7169 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
7170
7171 PR target/49313
7172 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
7173 (__ctzsi2): Result for 0 may be undefined.
7174 (__ctzhi2): Result for 0 may be undefined.
7175 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
7176 (__popcountsi2): Ditto. And don't clobber r26.
7177 (__popcountdi2): Ditto. And don't clobber r27.
7178 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
7179 (parityhi2): New expand.
7180 (paritysi2): New expand.
7181 (popcounthi2): New expand.
7182 (popcountsi2): New expand.
7183 (clzhi2): New expand.
7184 (clzsi2): New expand.
7185 (ctzhi2): New expand.
7186 (ctzsi2): New expand.
7187 (ffshi2): New expand.
7188 (ffssi2): New expand.
7189 (copysignsf3): New insn.
7190 (bswapsi2): New expand.
7191 (*parityhi2.libgcc): New insn.
7192 (*parityqihi2.libgcc): New insn.
7193 (*paritysihi2.libgcc): New insn.
7194 (*popcounthi2.libgcc): New insn.
7195 (*popcountsi2.libgcc): New insn.
7196 (*popcountqi2.libgcc): New insn.
7197 (*popcountqihi2.libgcc): New insn-and-split.
7198 (*clzhi2.libgcc): New insn.
7199 (*clzsihi2.libgcc): New insn.
7200 (*ctzhi2.libgcc): New insn.
7201 (*ctzsihi2.libgcc): New insn.
7202 (*ffshi2.libgcc): New insn.
7203 (*ffssihi2.libgcc): New insn.
7204 (*bswapsi2.libgcc): New insn.
7205
7206 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
7207
7208 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
7209 the mode of symbolic_opreand RTXes.
7210
7211 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
7212
7213 * config/i386/predicates.md (x86_64_movabs_operand): Return false
7214 for pic_32bit_operand RTXes.
7215 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
7216 in DImode.
7217
7218 2011-07-27 Kai Tietz <ktietz@redhat.com>
7219
7220 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
7221 for 32-bit, too.
7222 (ix86_handle_abi_attribute): Allow function attributes
7223 ms_abi/sysv_abi in 32-bit mode, too.
7224 * doc/extend.texi: Adjust attribute documentation.
7225
7226 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
7227 expression handling.
7228 (and_var_with_comparison_1): Likewise.
7229
7230 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
7231
7232 * params.h (ALLOW_STORE_DATA_RACES): New.
7233 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
7234 * Makefile.in (expr.o): Depend on PARAMS_H.
7235 * machmode.h (get_best_mode): Add argument.
7236 * fold-const.c (optimize_bit_field_compare): Add argument to
7237 get_best_mode.
7238 (fold_truthop): Same.
7239 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
7240 * expr.c (emit_group_store): Same.
7241 (copy_blkmode_from_reg): Same.
7242 (write_complex_part): Same.
7243 (optimize_bitfield_assignment_op): Add argument.
7244 Add argument to get_best_mode.
7245 (get_bit_range): New.
7246 (expand_assignment): Calculate maxbits and pass it down accordingly.
7247 (store_field): New argument.
7248 (expand_expr_real_2): New argument to store_field. Include params.h.
7249 * expr.h (store_bit_field): New argument.
7250 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
7251 into account maxbits.
7252 * calls.c (store_unaligned_arguments_into_pseudos): New argument
7253 to store_bit_field.
7254 * expmed.c (store_bit_field_1): New argument. Use it.
7255 (store_bit_field): Same.
7256 (store_fixed_bit_field): Same.
7257 (store_split_bit_field): Same.
7258 (extract_bit_field_1): Pass new argument to get_best_mode.
7259 (extract_bit_field): Same.
7260 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
7261 * doc/invoke.texi: Document parameter allow-store-data-races.
7262
7263 2011-07-27 Jakub Jelinek <jakub@redhat.com>
7264
7265 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
7266
7267 2011-07-27 Kai Tietz <ktietz@redhat.com>
7268
7269 * tree-vrp.c (extract_range_from_binary_expr): Remove
7270 TRUTH-binary cases and add new bitwise-cases.
7271 (extract_range_from_assignment): Likewise.
7272 (register_edge_assert_for_1): Likeiwise.
7273 (register_edge_assert_for): Likewise.
7274 (simplify_truth_ops_using_ranges): Likewise.
7275 (simplify_stmt_using_ranges): Likewise.
7276
7277 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
7278
7279 PR target/47372
7280 * config/i386/i386.c (ix86_delegitimize_address): Call
7281 simplify_gen_subreg for PIC with mode of x only if modes of
7282 x and orig_x are different.
7283
7284 2011-07-26 Jakub Jelinek <jakub@redhat.com>
7285
7286 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
7287 to GC allocated copy of the string.
7288 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
7289 before .debug_line, not after it.
7290
7291 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
7292
7293 PR middle-end/47046
7294 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
7295 evolution_function_is_affine_p on CHREC_RIGHT.
7296
7297 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
7298
7299 * tree-data-ref.c (max_stmt_executions_tree): Do not call
7300 lang_hooks.types.type_for_size.
7301
7302 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
7303
7304 PR middle-end/47653
7305 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
7306 loops using wrapping semantics.
7307
7308 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
7309
7310 PR middle-end/48805
7311 * tree-scalar-evolution.c (instantiate_scev_r): Return
7312 chrec_dont_know for ADDR_EXPR.
7313
7314 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
7315 H.J. Lu <hongjiu.lu@intel.com>
7316
7317 PR target/47369
7318 PR target/49853
7319 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
7320 if legitimize_tls_address returned operand in wrong mode. Allow
7321 SImode and DImode symbolic operand for PIC. Call convert_to_mode
7322 if legitimize_pic_address returned operand in wrong mode.
7323
7324 2011-07-26 Martin Jambor <mjambor@suse.cz>
7325
7326 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
7327 return false for invariants.
7328
7329 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
7330
7331 * config/i386/i386.md (add->lea splitter): Implement using SWI
7332 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
7333 (add->lea zext splitter): Change operand 2 predicate to
7334 x86_64_nonmemory_operand.
7335
7336 2011-07-26 Richard Guenther <rguenther@suse.de>
7337
7338 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
7339 frequency makes everything hot.
7340
7341 2011-07-26 Richard Guenther <rguenther@suse.de>
7342
7343 PR tree-optimization/49840
7344 * tree-vrp.c (range_fits_type_p): Properly handle full
7345 double-int precision.
7346
7347 2011-07-26 Martin Jambor <mjambor@suse.cz>
7348
7349 PR bootstrap/49786
7350 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
7351 counts.
7352 (update_specialized_profile): Likewise.
7353
7354 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
7355 H.J. Lu <hongjiu.lu@intel.com>
7356
7357 PR target/47381
7358 PR target/49832
7359 PR target/49833
7360 * config/i386/i386.md (i): Change SImode attribute to "e".
7361 (g): Change SImode attribute to "rme".
7362 (di): Change SImode attribute to "nF".
7363 (general_operand): Change SImode attribute to x86_64_general_operand.
7364 (general_szext_operand): Change SImode attribute to
7365 x86_64_szext_general_operand.
7366 (immediate_operand): Change SImode attribute to
7367 x86_64_immediate_operand.
7368 (nonmemory_operand): Change SImode attribute to
7369 x86_64_nonmemory_operand.
7370 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
7371 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
7372 (*lea_1): Use SWI48 mode iterator.
7373 (*lea_1_zext): New insn pattern.
7374 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
7375 (*bt<mode>): Ditto.
7376 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
7377 Update operand constraints.
7378 (addsi_1_zext): Ditto.
7379 (*add<mode>2): Ditto.
7380 (*addsi_3_zext): Ditto.
7381 (*subsi_1_zext): Ditto.
7382 (*subsi_2_zext): Ditto.
7383 (*subsi_3_zext): Ditto.
7384 (*addsi3_carry_zext): Ditto.
7385 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
7386 (*mulsi3_1_zext): Ditto.
7387 (*andsi_1): Ditto.
7388 (*andsi_1_zext): Ditto.
7389 (*andsi_2_zext): Ditto.
7390 (*<any_or:code>si_1_zext): Ditto.
7391 (*<any_or:code>si_2_zext): Ditto.
7392 (*test<mode>_1): Use <general_operand> predicate for operand 1.
7393 (*and<mode>_2): Ditto.
7394 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
7395 (add->lea splitter): Check operand modes in insn constraint. Extend
7396 operands less than SImode wide to SImode.
7397 (add->lea zext splitter): Do not extend input operands to DImode.
7398 (*lea_general_1): Handle only QImode and HImode operands.
7399 (*lea_general_2): Ditto.
7400 (*lea_general_3): Ditto.
7401 (*lea_general_1_zext): Remove.
7402 (*lea_general_2_zext): Ditto.
7403 (*lea_general_3_zext): Ditto.
7404 (*lea_general_4): Check operand modes in insn constraint. Extend
7405 operands less than SImode wide to SImode.
7406 (ashift->lea splitter): Ditto.
7407 * config/i386/i386.c (ix86_print_operand_address): Print address
7408 registers with 'q' modifier on 64bit targets.
7409 * config/i386/predicates.md (pic_32bit_opreand): Define as special
7410 predicate. Reject non-SI and non-DI modes.
7411
7412 2011-07-25 Andrew Pinski <apinski@cavium.com>
7413
7414 PR tree-opt/49671
7415 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
7416 TREE_THIS_NOTRAP into the inner most MEM_REF.
7417 Always copy TREE_THIS_VOLATILE.
7418 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
7419 arguments are not volatile references.
7420
7421 2011-07-25 Richard Henderson <rth@redhat.com>
7422
7423 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
7424 * final.c (final_scan_insn): Don't test for it.
7425 (rest_of_clean_state): Likewise.
7426
7427 2011-07-25 Richard Henderson <rth@redhat.com>
7428
7429 PR debug/49841
7430 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
7431 (emit_frame_save): Likewise.
7432 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
7433 insn onto a dummy blockage insn after the join label.
7434
7435 2011-07-25 Richard Henderson <rth@redhat.com>
7436
7437 * dwarf2cfi.c (dw_trace_info): Add ID member.
7438 (get_trace_index): Remove. Change users to use ID member.
7439 (before_next_cfi_note): New.
7440 (connect_traces): Remove unreachable traces before the main loop.
7441 Look across one trace and generate remember/restore_state if needed.
7442
7443 2011-07-25 Richard Henderson <rth@redhat.com>
7444
7445 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
7446
7447 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
7448
7449 * genattr.c (write_upcase, gen_attr <enum definition writing>):
7450 Move to ...
7451 * genattr-common.c ... here.
7452 (main): Call gen_attr.
7453 * optc-gen.awk: Make generated program include insn-attr-common.h .
7454 * Makefile.in (oprions.o): Depend on insn-attr-common.h
7455
7456 2011-07-25 Anatoly Sokolov <aesok@post.ru>
7457
7458 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7459 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
7460 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
7461 m32c_print_operand, m32c_print_operand_address): Remove.
7462 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
7463 Change return type to bool. Change argument type to bool.
7464 (m32c_print_operand, m32c_print_operand_address): Make static.
7465 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
7466 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7467
7468 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7469
7470 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
7471 attributes): Document mmap.
7472
7473 2011-07-25 Anatoly Sokolov <aesok@post.ru>
7474
7475 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7476 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
7477 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
7478 mmix_print_operand, mmix_print_operand_address): Remove.
7479 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
7480 Change return type to bool. Change argument type to bool.
7481 (mmix_print_operand, mmix_print_operand_address): Make static.
7482 (mmix_intval, mmix_output_condition): Change 'x' argument type
7483 to const_rtx.
7484 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
7485 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7486
7487 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
7488
7489 PR target/39386
7490 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
7491 shift counter for x << x and x >> x shifts.
7492
7493 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7494
7495 PR target/47124
7496 * config.gcc: Reject *-*-solaris2 configuration.
7497
7498 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
7499
7500 PR tree-optimization/49809
7501 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
7502 gimple_get_lhs instead of gimple_assign_lhs.
7503
7504 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7505
7506 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
7507
7508 2011-07-25 Richard Guenther <rguenther@suse.de>
7509
7510 PR tree-optimization/49822
7511 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
7512 more. Make sure to preserve stmts with side-effects. Properly
7513 handle virtual defs, follow a longer def chain.
7514
7515 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
7516
7517 PR plugins/45348
7518 PR plugins/48425
7519 PR plugins/46577
7520 * Makefile.in: Do not flatten c-family directory when installing
7521 plugin headers.
7522
7523 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
7524
7525 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
7526 original nodes if we are dealing with virtual clones.
7527
7528 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
7529
7530 * common/config/c6x/c6x-common.c: New file.
7531
7532 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
7533
7534 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
7535
7536 2011-07-25 Richard Guenther <rguenther@suse.de>
7537
7538 PR tree-optimization/49715
7539 * tree-vrp.c: Include expr.h and optabs.h.
7540 (range_fits_type_): New function.
7541 (simplify_float_conversion_using_ranges): Likewise.
7542 (simplify_stmt_using_ranges): Call it.
7543 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
7544 * optabs.c (can_float_p): Export.
7545 * optabs.h (can_float_p): Declare.
7546
7547 2011-07-25 Richard Guenther <rguenther@suse.de>
7548
7549 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
7550 (get_value_range): For out-of-range SSA names or names created
7551 after propagation return a read-only varying range.
7552 (dump_all_value_ranges): Adjust.
7553 (vrp_initialize): Likewise.
7554 (vrp_finalize): Likewise.
7555
7556 2011-07-24 Richard Henderson <rth@redhat.com>
7557
7558 PR debug/49831
7559 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
7560 them entirely.
7561
7562 2011-07-24 Richard Henderson <rth@redhat.com>
7563
7564 PR debug/49825
7565 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
7566 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
7567
7568 2011-07-24 Richard Henderson <rth@redhat.com>
7569
7570 PR debug/49827
7571 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
7572
7573 2011-07-24 Richard Henderson <rth@redhat.com>
7574
7575 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
7576 Zero args_size for abnormal edges. Adjust all callers.
7577
7578 2011-07-24 Richard Henderson <rth@redhat.com>
7579
7580 PR debug/49825
7581 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
7582
7583 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
7584
7585 PR bootstrap/49835
7586 * collect2.c (demangle_flag): Removed.
7587
7588 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
7589
7590 * configure.ac (demangler_in_ld): Default to yes.
7591 * configure: Regenerated.
7592 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
7593 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
7594 --no-demangle options straight through to ld. When
7595 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
7596 way that has the intended effect on Windows.
7597
7598 2011-07-23 Richard Henderson <rth@redhat.com>
7599
7600 * dwarf2cfi.c: Include basic-block.h.
7601 (dw_label_info): Remove.
7602 (trace_work_list, trace_index): New.
7603 (remember_row, emit_cfa_remember): Remove.
7604 (dw_trace_info_hash, dw_trace_info_eq): New.
7605 (get_trace_index, get_trace_info): New.
7606 (save_point_p): New.
7607 (free_cfi_row): Remove.
7608 (add_cfi): Do not emit DW_CFA_remember_state.
7609 (cfa_row_equal_p): New.
7610 (barrier_args_size): Remove.
7611 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
7612 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
7613 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
7614 (dwarf2out_cfi_begin_epilogue): Remove.
7615 (dwarf2out_frame_debug_restore_state): Remove.
7616 (connect_traces, create_pseudo_cfg): New.
7617 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
7618 * Makefile.in (dwarf2cfi.o): Update.
7619
7620 2011-07-23 Richard Henderson <rth@redhat.com>
7621
7622 * dwarf2cfi.c (dw_trace_info): New.
7623 (dw_label_info): New.
7624 (cie_return_save): New.
7625 (cur_trace): New.
7626 (queued_args_size): Rename from args_size. Update all users.
7627 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
7628 (def_cfa_1): Use cur_trace instead of cfa_*.
7629 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
7630 (clobbers_queued_reg_save, reg_saved_in): Likewise.
7631 (dwarf2out_frame_debug_expr): Likewise.
7632 (create_cie_data): Split out from ...
7633 (execute_dwarf2_frame): ... here. Initialize cur_trace.
7634
7635 2011-07-23 Richard Henderson <rth@redhat.com>
7636
7637 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
7638 Update all users to match.
7639 (execute_dwarf2_frame): Free reg_saved_in_data.
7640
7641 2011-07-23 Richard Henderson <rth@redhat.com>
7642
7643 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
7644 (queued_reg_saves): Don't GTY. Change to a VEC.
7645 (queue_reg_save): Update to match.
7646 (dwarf2out_flush_queued_reg_saves): Likewise.
7647 (clobbers_queued_reg_save): Likewise.
7648 (reg_saved_in): Likewise.
7649 (execute_dwarf2_frame): Free queued_reg_saves.
7650
7651 2011-07-23 Richard Henderson <rth@redhat.com>
7652
7653 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
7654
7655 2011-07-23 Richard Henderson <rth@redhat.com>
7656
7657 * dwarf2cfi.c (add_cfi_args_size): Split out from...
7658 (dwarf2out_args_size): ... here.
7659 (add_cfi_restore): Split out from ...
7660 (dwarf2out_frame_debug_cfa_restore): ... here.
7661 (def_cfa_0): Split out from ...
7662 (def_cfa_1): ... here.
7663 (cfi_oprnd_equal_p, cfi_equal_p): New.
7664 (change_cfi_row): New.
7665 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
7666 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
7667 (output_cfis): Remove.
7668 * dwarf2out.c (output_fde): Simplify output_cfi loop.
7669 (dwarf2out_switch_text_section): Don't call output_cfis.
7670 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
7671 * dwarf2out.h: Update decls.
7672 (enum dw_val_class): Add dw_val_class_none.
7673
7674 2011-07-23 Richard Henderson <rth@redhat.com>
7675
7676 * dwarf2cfi.c (update_row_reg_save): New.
7677 (dwarf2out_frame_debug_cfa_expression): Use it.
7678 (dwarf2out_frame_debug_cfa_restore): Likewise.
7679 (reg_save): Likewise. Do not emit DW_CFA_same_value.
7680
7681 2011-07-23 Richard Henderson <rth@redhat.com>
7682
7683 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
7684
7685 2011-07-23 Richard Henderson <rth@redhat.com>
7686
7687 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
7688 (cie_cfi_row): New.
7689 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
7690 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
7691 (cur_row, remember_row): New.
7692 (def_cfa_1): Use cur_row instead of the old_* variables.
7693 (dwarf2out_frame_debug_restore_state): Similarly.
7694 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
7695 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
7696 (dwarf2out_frame_debug_adjust_cfa): Likewise.
7697 (dwarf2out_frame_debug_cfa_offset): Likewise.
7698 (dwarf2out_frame_debug_expr): Likewise.
7699 (execute_dwarf2_frame): Set up cur_row.
7700 * dwarf2out.h (struct cfa_loc): Mark for GTY.
7701
7702 2011-07-23 Richard Henderson <rth@redhat.com>
7703
7704 * basic-block.h (EDGE_PRESERVE): New.
7705 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
7706 * bb-reorder.c: Include except.h.
7707 (fix_up_crossing_landing_pad): New.
7708 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
7709 landing pads in the right partition. Duplicate as necessary.
7710 (partition_hot_cold_basic_blocks): Fix up DF info after
7711 duplicating landing pads.
7712 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
7713 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
7714 is set properly. Validate that EH edges are not CROSSING.
7715 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
7716 (dw2_build_landing_pads): ... here.
7717 (convert_to_eh_region_ranges): Remove code to fixup crossing
7718 landing pads.
7719 * except.h (expand_dw2_landing_pad_for_region): Declare.
7720 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
7721
7722 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
7723
7724 PR target/49816
7725 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
7726
7727 2011-07-22 Jason Merrill <jason@redhat.com>
7728
7729 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
7730
7731 2011-07-22 Richard Henderson <rth@redhat.com>
7732
7733 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
7734
7735 2011-07-22 Richard Henderson <rth@redhat.com>
7736
7737 * jump.c (maybe_propagate_label_ref): Split out of...
7738 (mark_all_labels): ... here. Do not attempt label_ref
7739 propagation while in cfglayout mode.
7740
7741 2011-07-22 Jakub Jelinek <jakub@redhat.com>
7742
7743 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
7744 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
7745 (dwarf_attr_name): Handle DW_AT_GNU_macros.
7746 (dwarf2out_define): If the vector is empty and
7747 lineno is 0, emit a dummy entry first.
7748 (dwarf2out_undef): Likewise. Remove redundant semicolon.
7749 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
7750 optimize_macinfo_range): New functions.
7751 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
7752 mergeable, optimize longer strings using
7753 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
7754 optimize longer sequences of define/undef ops from headers
7755 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
7756 emit a section headers.
7757 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
7758 and macinfo_section_label to DEBUG_MACRO_SECTION
7759 resp. DEBUG_MACRO_SECTION_LABEL.
7760 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
7761 instead of DW_AT_macro_info.
7762
7763 PR other/32998
7764 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
7765 options.
7766 * dwarf2out.c: Include opts.h.
7767 (dchar_p): New typedef. Define heap VEC for it.
7768 (producer_string): New variable.
7769 (gen_producer_string): New function.
7770 (gen_compile_unit_die): Use it.
7771 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
7772 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
7773 * doc/invoke.texi: Document -grecord-gcc-switches and
7774 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
7775 to -frecord-gcc-switches description.
7776
7777 2011-07-22 Jason Merrill <jason@redhat.com>
7778
7779 PR c++/30112
7780 * c-decl.c (c_linkage_bindings): Define.
7781
7782 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
7783
7784 PR debug/49815
7785 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
7786
7787 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
7788
7789 * config/i386/i386.c (ix86_option_override_internal): Disallow
7790 MS ABI in x32 mode.
7791 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
7792 only for TARGET_LP64.
7793 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
7794
7795 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7796
7797 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
7798 avoid warnings when GCC is built with a C++ compiler.
7799
7800 2011-07-22 Martin Jambor <mjambor@suse.cz>
7801
7802 PR lto/49796
7803 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
7804 if decl node is in another partition, call cgraph_get_node only once.
7805
7806 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
7807
7808 * config.gcc (x86_64-*-linux*): Set
7809 default_gnu_indirect_function to yes.
7810
7811 2011-07-22 Richard Guenther <rguenther@suse.de>
7812
7813 PR tree-optimization/45819
7814 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
7815 preserve volatile and notrap flags.
7816
7817 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7818 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7819
7820 PR bootstrap/49794
7821 * configure.ac: Test AM_ICONV with CXX.
7822 * configure: Regenerate.
7823 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
7824
7825 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7826
7827 PR bootstrap/49797
7828 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
7829 (set_cloog_options): Use it.
7830
7831 2011-07-22 Jakub Jelinek <jakub@redhat.com>
7832
7833 PR c++/49756
7834 * gcc.c (main): Call stack_limit_increase (64MB).
7835 * toplev.c (toplev_main): Likewise.
7836
7837 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7838
7839 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
7840 instead of force_reg.
7841
7842 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7843
7844 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
7845 needed and use force_reg after convert.
7846 (ix86_expand_call): Likewise.
7847 (ix86_expand_special_args_builtin): Likewise.
7848 (ix86_expand_builtin): Likewise.
7849
7850 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7851
7852 PR middle-end/47654
7853 PR middle-end/49649
7854 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
7855 in parameter. Initialize v1 and v2 based on the values returned
7856 by clast_name_to_lb_ub.
7857 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
7858 values.
7859 (type_for_clast_bin): Same.
7860 (type_for_clast_expr): Same.
7861 (type_for_clast_eq): Update calls to type_for_clast_expr.
7862 (type_for_clast_for): Same.
7863 (build_iv_mapping): Same.
7864 * graphite-ppl.h (value_min): New.
7865
7866 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7867
7868 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
7869 types whenever possible.
7870
7871 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7872
7873 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
7874 and ub fields.
7875 (new_clast_name_index): Add lb and ub parameters.
7876 (free_clast_name_index): New.
7877 (clast_name_to_lb_ub): New.
7878 (save_clast_name_index): Add lb and ub parameters.
7879 (compute_bounds_for_param): New.
7880 (type_for_level): Removed.
7881 (type_for_clast_for): Removed level parameter. Do not call
7882 type_for_level.
7883 (graphite_create_new_loop): Store the lb and ub for the clast_name
7884 of the iterator of the loop that has been generated.
7885 (graphite_create_new_loop_guard): Remove parameter level.
7886 (create_params_index): Store the lb and ub of each parameter.
7887 (gloog): Use free_clast_name_index. Pass to create_params_index
7888 the current scop.
7889
7890 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7891
7892 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
7893 (max_precision_type): Inline max_signed_precision_type.
7894 (type_for_clast_red): Use max_precision_type.
7895 (type_for_clast_bin): Same.
7896 (type_for_clast_for): Same.
7897
7898 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7899
7900 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
7901 type_for_interval.
7902 (gcc_type_for_value): Renamed type_for_value.
7903 (gcc_type_for_clast_term): Renamed type_for_clast_term.
7904 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
7905 (gcc_type_for_clast_red): Renamed type_for_clast_red.
7906 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
7907 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
7908 (graphite_translate_clast_equation): Update calls.
7909 (compute_type_for_level): Renamed type_for_level.
7910 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
7911 (build_iv_mapping): Update calls.
7912 (graphite_create_new_loop_guard): Same.
7913
7914 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7915
7916 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
7917 comment.
7918
7919 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7920
7921 * graphite-clast-to-gimple.c (struct ivs_params): New.
7922 (clast_name_to_gcc): Use ivs_params to pass around parameters.
7923 (clast_to_gcc_expression): Same.
7924 (clast_to_gcc_expression_red): Same.
7925 (gcc_type_for_clast_term): Same.
7926 (gcc_type_for_clast_expr): Same.
7927 (gcc_type_for_clast_red): Same.
7928 (gcc_type_for_clast_bin): Same.
7929 (gcc_type_for_clast_eq): Same.
7930 (graphite_translate_clast_equation): Same.
7931 (graphite_create_guard_cond_expr): Same.
7932 (graphite_create_new_guard): Same.
7933 (graphite_create_new_loop): Same.
7934 (build_iv_mapping): Same.
7935 (translate_clast_user): Same.
7936 (graphite_create_new_loop_guard): Same.
7937 (translate_clast): Same.
7938 (translate_clast_for_loop): Same.
7939 (translate_clast_for): Same.
7940 (translate_clast_guard): Same.
7941 (initialize_cloog_names): Fix typo.
7942 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
7943
7944 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7945
7946 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
7947 (new_clast_name_index): Add level parameter.
7948 (clast_name_to_level): New.
7949 (save_clast_name_index): Add level parameter.
7950 (newivs_to_depth_to_newiv): Removed.
7951 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
7952 (graphite_create_new_loop): Add level parameter. Pass level to
7953 save_clast_name_index.
7954 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
7955 (create_params_index): Pass level to save_clast_name_index.
7956
7957 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7958
7959 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
7960 recompute type, lb, and ub. Get them from...
7961 (graphite_create_new_loop_guard): ...here. Pass in parameter
7962 pointers to type, lb, and ub.
7963 (translate_clast_for_loop): Update function calls.
7964 (translate_clast_for): Same.
7965
7966 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7967
7968 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
7969 psct_dynamic_dim.
7970 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
7971 (gcc_type_for_iv_of_clast_loop): Update use of level.
7972 (gloog): Start counting nesting level from 0.
7973 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
7974 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
7975 psct_dynamic_dim on level.
7976
7977 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7978
7979 * config/i386/i386.c (ix86_legitimize_address): Convert to
7980 Pmode if needed.
7981
7982 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7983
7984 * config/i386/i386.c (function_value_64): Always return pointers
7985 in Pmode.
7986 (ix86_promote_function_mode): New.
7987 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
7988
7989 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7990
7991 PR tree-optimization/49749
7992 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
7993 remove no-longer-used maxrank variable.
7994
7995 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
7996
7997 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
7998
7999 2011-07-21 Jason Merrill <jason@redhat.com>
8000
8001 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
8002 * recog.h (struct insn_data_d): Check it instead of
8003 HAVE_DESIGNATED_INITIALIZERS.
8004 * genoutput.c (output_insn_data): Likewise.
8005
8006 2011-07-21 Richard Guenther <rguenther@suse.de>
8007
8008 PR tree-optimization/49770
8009 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
8010 valueized any operand. Renamed from ...
8011 (valueize_refs): ... this. New wrapper around valueize_refs_1.
8012 (valueize_shared_reference_ops_from_ref): Return whether we
8013 valueized any operand.
8014 (vn_reference_lookup): Only when we valueized any operand
8015 use the valueized reference for alias analysis. Do not preserve
8016 the original reference tree in this case.
8017
8018 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
8019
8020 * config/i386/i386.c (ix86_decompose_address): Reject all but
8021 register operands and subregs of DImode hard registers in index.
8022
8023 2011-07-21 Kai Tietz <ktietz@redhat.com>
8024
8025 * fold-const.c (fold_unary_loc): Preserve indirect
8026 comparison cast to none-boolean type.
8027 * tree-ssa.c (useless_type_conversion_p): Preserve cast
8028 from/to boolean-type.
8029 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
8030 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
8031 * tree-cfg.c (verify_gimple_comparison): Check result
8032 type of comparison expression.
8033 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
8034 of condition result and disallow type-cast sinking into comparison.
8035
8036 2011-07-21 Richard Guenther <rguenther@suse.de>
8037
8038 * tree-ssa-forwprop.c (combine_conversions): Return whether
8039 we have to run cfg-cleanup. Properly remove dead stmts.
8040 (ssa_forward_propagate_and_combine): Adjust.
8041
8042 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
8043
8044 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
8045
8046 2011-07-21 Kai Tietz <ktietz@redhat.com>
8047
8048 * tree-ssa-propagate.c (substitute_and_fold): Use
8049 do_dce flag to deside, if BB's statements are scanned
8050 in last to first, or first to last order.
8051
8052 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
8053
8054 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
8055
8056 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
8057 Uros Bizjak <ubizjak@gmail.com>
8058 Richard Henderson <rth@redhat.com>
8059
8060 * config/i386/constraints.md (w): New.
8061
8062 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
8063 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
8064
8065 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
8066 instead of TARGET_64BIT.
8067
8068 * config/i386/i386.md (indirect_jump): Replace
8069 nonimmediate_operand with indirect_branch_operand.
8070 (*indirect_jump): Likewise. Replace constraint "m" with "w".
8071 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
8072 Convert operand 0 to Pmode for x32 if not PIC.
8073 (*tablejump_1): Replace nonimmediate_operand with
8074 indirect_branch_operand. Replace constraint "m" with "w".
8075 (*call_vzeroupper): Replace constraint "m" with "w".
8076 (*call): Likewise.
8077 (*call_rex64_ms_sysv_vzeroupper): Likewise.
8078 (*call_rex64_ms_sysv): Likewise.
8079 (*call_value_vzeroupper): Likewise.
8080 (*call_value): Likewise.
8081 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
8082 (*call_value_rex64_ms_sysv): Likewise.
8083 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
8084
8085 * config/i386/predicates.md (indirect_branch_operand): New.
8086 (call_insn_operand): Support x32.
8087
8088 2011-07-20 Michael Eager <eager@eagercon.com>
8089
8090 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
8091
8092 2011-07-20 Richard Henderson <rth@redhat.com>
8093
8094 * cfg.c (dump_bb_info): Dump basic_block->flags.
8095 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
8096
8097 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
8098
8099 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8100 of DImode hard registers in index.
8101 (ix86_legitimate_address_p): Allow subregs of base and index to span
8102 more than a word. Assert that subregs of base and index satisfy
8103 register_no_elim_operand predicates. Reject addresses where
8104 base and index have different modes.
8105
8106 2011-07-20 Robert Millan <rmh@gnu.org>
8107
8108 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
8109
8110 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8111
8112 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
8113 removing now-unnecessary assignment.
8114
8115 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8116
8117 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
8118 memory address space to the type's address space.
8119
8120 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
8121
8122 PR target/36467
8123 PR target/49687
8124 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
8125 and expand appropriately if there is a CONST_INT in operand2.
8126 (usmulqihi3): New insn.
8127 (*sumulqihi3): New insn.
8128 (*osmulqihi3): New insn.
8129 (*oumulqihi3): New insn.
8130 (*muluqihi3.uconst): New insn_and_split.
8131 (*muluqihi3.sconst): New insn_and_split.
8132 (*mulsqihi3.sconst): New insn_and_split.
8133 (*mulsqihi3.uconst): New insn_and_split.
8134 (*mulsqihi3.oconst): New insn_and_split.
8135 (*ashifthi3.signx.const): New insn_and_split.
8136 (*ashifthi3.signx.const7): New insn_and_split.
8137 (*ashifthi3.zerox.const): New insn_and_split.
8138 (mulsqihi3): New insn.
8139 (muluqihi3): New insn.
8140 (muloqihi3): New insn.
8141 * config/avr/predicates.md (const_2_to_7_operand): New.
8142 (const_2_to_6_operand): New.
8143 (u8_operand): New.
8144 (s8_operand): New.
8145 (o8_operand): New.
8146 (s9_operand): New.
8147 (register_or_s9_operand): New.
8148
8149 2011-07-20 Kai Tietz <ktietz@redhat.com>
8150
8151 * builtins.c (fold_builtin_expect): See through the cast
8152 from truthvalue_type_node to long.
8153
8154 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
8155
8156 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
8157 where we can use them from the standard and altivec instruction
8158 sets, instead of always using the 3 operand VSX forms that require
8159 the destination to overlap one of the inputs.
8160 (vsx_fms*): Ditto.
8161 (vsx_fnma*): Ditto.
8162 (vsx_fnms*): Ditto.
8163
8164 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
8165 for DF types.
8166 (fmsdf4_fpr): Ditto.
8167 (nfmadf4_fpr): Ditto.
8168 (nfmsdf4_fpr): Ditto.
8169
8170 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
8171
8172 * genrecog.c (make_insn_sequence): Correct position numbering
8173 when filtering out match_scratch and match_dup.
8174
8175 2011-07-20 Richard Guenther <rguenther@suse.de>
8176
8177 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
8178 against already removed statements.
8179 (forward_propagate_into_comparison): Remove dead defining stmts.
8180 (forward_propagate_into_gimple_cond): Likewise.
8181 (forward_propagate_into_cond): Simplify.
8182 (ssa_forward_propagate_and_combine): Handle changed cfg from
8183 forward_propagate_into_comparison.
8184 * tree-ssa-phiopt.c (conditional_replacement): Use proper
8185 locations for newly built statements.
8186
8187 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
8188
8189 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
8190
8191 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8192
8193 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
8194 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
8195
8196 2011-07-20 Richard Guenther <rguenther@suse.de>
8197
8198 PR middle-end/18908
8199 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
8200 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
8201 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
8202
8203 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
8204
8205 * config/frv/frv.c (frv_register_move_cost): Define explicitly
8206 costs for subclasses of GR_REGS.
8207
8208 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
8209
8210 PR target/49780
8211 * config/i386/predicates.md (no_seg_addres_operand): No more special.
8212 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8213 of DImode hard registers in base.
8214 (ix86_legitimate_address_p): Allow SImode and DImode base and index
8215 registers.
8216
8217 2011-07-20 Richard Guenther <rguenther@suse.de>
8218
8219 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
8220 (unify_nodes): Deal with that.
8221 (solve_graph): Likewise.
8222
8223 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
8224
8225 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
8226 canonicalize left operand from ZERO_EXTEND to AND.
8227
8228 2011-07-20 Anatoly Sokolov <aesok@post.ru>
8229
8230 * target.def (class_max_nregs): New hook.
8231 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
8232 * doc/tm.texi: Regenerate.
8233 * targhooks.c (default_class_max_nregs): New function.
8234 * targhooks.h (default_class_max_nregs): Declare.
8235 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
8236 x_ira_reg_class_min_nregs arrays to unsigned char.
8237 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
8238 hook instead of CLASS_MAX_NREGS macro.
8239 * reginfo.c (restore_register_info): Ditto.
8240 * ira-conflicts.c (process_regs_for_copy): Use
8241 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
8242 Change type rclass and aclass vars to reg_class_t.
8243 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
8244 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
8245 reg_class_t.
8246 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
8247 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
8248
8249 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
8250 * config/i386/i386.c (ix86_class_max_nregs): New function.
8251 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
8252 instead of CLASS_MAX_NREGS macro.
8253 (TARGET_CLASS_MAX_NREGS): Define.
8254 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
8255 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
8256 * config/avr/avr.c (class_max_nregs): Remove function.
8257 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
8258 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
8259 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
8260 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
8261 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
8262 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
8263 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
8264 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
8265 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
8266 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
8267 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
8268 * config/score/score.h (CLASS_MAX_NREGS): Remove.
8269 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
8270 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
8271 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
8272
8273 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
8274
8275 * cif-code.def (OVERWRITABLE): Fix typo and move around.
8276 (TARGET_OPTIMIZATION_MISMATCH): Delete.
8277 (EH_PERSONALITY): Fix typo.
8278 (NON_CALL_EXCEPTIONS): Fix message.
8279 (OPTIMIZATION_MISMATCH): Adjust message.
8280 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
8281
8282 2011-07-19 Ian Lance Taylor <iant@google.com>
8283
8284 * doc/install.texi (Configuration): Document
8285 --enable-build-poststage1-with-cxx.
8286
8287 2011-07-19 Robert Millan <rmh@gnu.org>
8288
8289 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
8290 (GLIBC_DYNAMIC_LINKER): Remove.
8291
8292 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
8293 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
8294 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
8295 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
8296 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
8297 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
8298
8299 * config/mips/linux.h: Remove everything except for ...
8300 (GLIBC_DYNAMIC_LINKER): ... this macro.
8301
8302 * config/mips/linux64.h: Remove everything except for ...
8303 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
8304 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
8305 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
8306 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
8307 (GNU_USER_LINK_EMULATIONN32): New macros.
8308
8309 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
8310 Use the new headers.
8311
8312 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
8313
8314 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
8315 Add offset_known_p and size_known_p fields.
8316 (MEM_OFFSET_KNOWN_P): Update accordingly.
8317 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
8318 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
8319 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
8320 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
8321 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
8322 (init_emit_regs): Likewise.
8323
8324 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
8325
8326 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
8327 (MEM_OFFSET): Change from returning an rtx to returning a
8328 HOST_WIDE_INT.
8329 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
8330 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
8331 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
8332 (clear_mem_offset): Declare.
8333 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
8334 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
8335 MEM_OFFSET to get a HOST_WIDE_INT offset.
8336 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
8337 (adjust_offset_for_component_ref): Take a bool "known_p"
8338 parameter and a HOST_WIDE_INT "offset" parameter.
8339 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
8340 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
8341 than an rtx. Use clear_mem_offset to clear the offset.
8342 * cfgcleanup.c (merge_memattrs): Likewise.
8343 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
8344 * function.c (assign_parm_find_stack_rtl): Likewise.
8345 (assign_parm_setup_stack): Likewise.
8346 * print-rtl.c (print_rtx): Likewise.
8347 * reload.c (find_reloads_subreg_address): Likewise.
8348 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
8349 * var-tracking.c (INT_MEM_OFFSET): Likewise.
8350 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
8351 (get_mem_align_offset): Likewise.
8352 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
8353 (clear_mem_offset): New function.
8354 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
8355 offset rather than an rtx. Assume both the expressio and offset
8356 are available.
8357 (r10k_needs_protection_p_1): Update accordingly, checking the
8358 expression and offset availability here instead.
8359
8360 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
8361
8362 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
8363 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
8364 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
8365 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
8366 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
8367 (clear_mem_size): Declare.
8368 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
8369 (clear_mem_size): New function.
8370 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
8371 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
8372 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
8373 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
8374 to clear the size.
8375 (nonoverlapping_memrefs_p): Likewise.
8376 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
8377 (expand_builtin_init_trampoline): Likewise.
8378 * calls.c (compute_argument_addresses): Likewise.
8379 * cfgcleanup.c (merge_memattrs): Likewise.
8380 * dce.c (find_call_stack_args): Likewise.
8381 * dse.c (record_store, scan_insn): Likewise.
8382 * dwarf2out.c (dw_sra_loc_expr): Likewise.
8383 * expr.c (emit_block_move_hints): Likewise.
8384 * function.c (assign_parm_find_stack_rtl): Likewise.
8385 * print-rtl.c (print_rtx): Likewise.
8386 * reload.c (find_reloads_subreg_address): Likewise.
8387 * rtlanal.c (may_trap_p_1): Likewise.
8388 * var-tracking.c (track_expr_p): Likewise.
8389 * varasm.c (assemble_trampoline_template): Likewise.
8390 * config/arm/arm.c (arm_print_operand): Likewise.
8391 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
8392 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
8393 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
8394 (expand_constant_setmem_prologue): Likewise.
8395 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
8396 * config/rs6000/rs6000.c (expand_block_move): Likewise.
8397 (adjacent_mem_locations): Likewise.
8398 * config/s390/s390.c (s390_expand_setmem): Likewise.
8399 (s390_expand_insv): Likewise.
8400 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
8401 (*extendqi<mode>2_short_displ): Likewise.
8402 * config/sh/sh.c (expand_block_move): Likewise.
8403 * config/sh/sh.md (extv, extzv): Likewise.
8404
8405 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
8406
8407 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
8408 (mem_attrs_htab_eq): ...here.
8409 (find_mem_attrs): Replace with...
8410 (set_mem_attrs): ...this function. Take a mem_attrs structure
8411 rather than individual fields.
8412 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
8413 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
8414 (set_mem_size, change_address, adjust_address_1, offset_address)
8415 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
8416 Update accordingly.
8417
8418 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
8419
8420 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
8421 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
8422 Provide a dummy definition of MEM_ADDR_SPACE for generators.
8423 (target_rtl): Add x_mode_mem_attrs.
8424 (mode_mem_attrs): New macro.
8425 (get_mem_attrs): New function.
8426 * emit-rtl.c (get_mem_attrs): Rename to...
8427 (find_mem_attrs): ...this.
8428 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
8429 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
8430 (set_mem_size, change_address, adjust_address_1, offset_address)
8431 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
8432 Update accordingly.
8433 (init_emit_regs): Initialize mode_mem_attrs.
8434
8435 2011-07-19 Richard Guenther <rguenther@suse.de>
8436
8437 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
8438 TRUTH_*_EXPR handling.
8439 * tree-ssa-operands.c (get_expr_operands): Likewise.
8440 * tree-ssa-pre.c (fully_constant_expression): Likewise.
8441 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
8442 Likewise.
8443 (is_and_or_or): Likewise.
8444 (is_norm_cond_subset_of): Likewise.
8445
8446 2011-07-19 Richard Guenther <rguenther@suse.de>
8447
8448 * tree.h (fold_build_pointer_plus_loc): New helper function.
8449 (fold_build_pointer_plus_hwi_loc): Likewise.
8450 (fold_build_pointer_plus): Define.
8451 (fold_build_pointer_plus_hwi): Likewise.
8452 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
8453 (fold_builtin_memory_op): Likewise.
8454 (fold_builtin_stpcpy): Likewise.
8455 (fold_builtin_memchr): Likewise.
8456 (fold_builtin_strstr): Likewise.
8457 (fold_builtin_strchr): Likewise.
8458 (fold_builtin_strrchr): Likewise.
8459 (fold_builtin_strpbrk): Likewise.
8460 (fold_builtin_strcat): Likewise.
8461 (expand_builtin_memory_chk): Likewise.
8462 (fold_builtin_memory_chk): Likewise.
8463 * c-typeck.c (build_unary_op): Likewise.
8464 * cgraphunit.c (thunk_adjust): Likewise.
8465 * fold-const.c (build_range_check): Likewise.
8466 (fold_binary_loc): Likewise.
8467 * omp-low.c (extract_omp_for_data): Likewise.
8468 (expand_omp_for_generic): Likewise.
8469 (expand_omp_for_static_nochunk): Likewise.
8470 (expand_omp_for_static_chunk): Likewise.
8471 * tree-affine.c (add_elt_to_tree): Likewise.
8472 * tree-data-ref.c (split_constant_offset_1): Likewise.
8473 * tree-loop-distribution.c (generate_memset_zero): Likewise.
8474 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
8475 * tree-predcom.c (ref_at_iteration): Likewise.
8476 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
8477 (add_to_parts): Likewise.
8478 (create_mem_ref): Likewise.
8479 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
8480 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
8481 (number_of_iterations_le): Likewise.
8482 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
8483 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8484 (vect_create_addr_base_for_vector_ref): Likewise.
8485 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
8486 (vect_create_cond_for_alias_checks): Likewise.
8487 * tree-vrp.c (extract_range_from_assert): Likewise.
8488 * config/alpha/alpha.c (alpha_va_start): Likewise.
8489 (alpha_gimplify_va_arg_1): Likewise.
8490 * config/i386/i386.c (ix86_va_start): Likewise.
8491 (ix86_gimplify_va_arg): Likewise.
8492 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
8493 * config/mep/mep.c (mep_expand_va_start): Likewise.
8494 (mep_gimplify_va_arg_expr): Likewise.
8495 * config/mips/mips.c (mips_va_start): Likewise.
8496 (mips_gimplify_va_arg_expr): Likewise.
8497 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
8498 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
8499 (rs6000_gimplify_va_arg): Likewise.
8500 * config/s390/s390.c (s390_va_start): Likewise.
8501 (s390_gimplify_va_arg): Likewise.
8502 * config/sh/sh.c (sh_va_start): Likewise.
8503 (sh_gimplify_va_arg_expr): Likewise.
8504 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
8505 * config/spu/spu.c (spu_va_start): Likewise.
8506 (spu_gimplify_va_arg_expr): Likewise.
8507 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
8508 Likewise.
8509 (xstormy16_gimplify_va_arg_expr): Likewise.
8510 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
8511 (xtensa_gimplify_va_arg_expr): Likewise.
8512
8513 2011-07-19 Richard Guenther <rguenther@suse.de>
8514
8515 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
8516 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
8517 handling.
8518
8519 PR middle-end/18908
8520 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
8521 result of BIT_*_EXPR to bitfield precision.
8522
8523 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
8524
8525 PR tree-optimization/49742
8526 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
8527 as a potential write.
8528
8529 2011-07-19 Richard Guenther <rguenther@suse.de>
8530
8531 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
8532 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
8533 (forward_propagate_comparison): Simplify, remove obsolete code.
8534
8535 2011-07-19 Richard Guenther <rguenther@suse.de>
8536
8537 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
8538 BIT_XOR_EXPR, same as the RTL expander does.
8539 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
8540 (verify_gimple_assign_unary): Likewise.
8541 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
8542 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
8543 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
8544
8545 2011-07-19 Jakub Jelinek <jakub@redhat.com>
8546
8547 PR tree-optimization/49768
8548 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
8549 if offset is smaller than bitoffset, but offset+size is bigger
8550 than bitoffset.
8551
8552 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
8553
8554 PR tree-optimization/49771
8555 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
8556 zero step, set segment length to the size of the data-ref's type.
8557
8558 2011-07-18 Martin Jambor <mjambor@suse.cz>
8559
8560 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
8561 comments.
8562 (ipcp_values_pool): Declare.
8563 (ipcp_sources_pool): Likewise.
8564 (ipcp_lattice): Changed to forward declaration.
8565 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
8566 cannot_devirtualize.
8567 (ipa_node_params): New fields descriptors, lattices, known_vals,
8568 clone_for_all_contexts and node dead, removed fields params and
8569 count_scale.
8570 (ipa_set_param_count): Removed.
8571 (ipa_get_param_count): Made to work with descriptors vector.
8572 (ipa_get_param): Updated.
8573 (ipa_param_cannot_devirtualize_p): Removed.
8574 (ipa_param_types_vec_empty): Likewise.
8575 (ipa_set_param_used): New function.
8576 (ipa_get_param_used): Updated to use descriptors vector.
8577 (ipa_func_list): Removed.
8578 (ipa_init_func_list): Removed declaration.
8579 (ipa_push_func_to_list_1): Likewise.
8580 (ipa_pop_func_from_list): Likewise.
8581 (ipa_push_func_to_list): Removed.
8582 (ipa_lattice_from_jfunc): Remove declaration.
8583 (ipa_get_jf_pass_through_result): Declare.
8584 (ipa_get_jf_ancestor_result): Likewise.
8585 (ipa_value_from_jfunc): Likewise.
8586 (ipa_get_lattice): Update.
8587 (ipa_lat_is_single_const): New function.
8588 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
8589 (ipa_init_func_list): Likewise.
8590 (ipa_pop_func_from_list): Likewise.
8591 (ipa_get_param_decl_index): Fix coding style.
8592 (count_formal_params): Removed.
8593 (count_formal_params_1): Renamed to count_formal_params.
8594 (ipa_populate_param_decls): Update to use descriptors vector.
8595 (ipa_initialize_node_params): Likewise.
8596 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
8597 (ipa_analyze_params_uses): Likewise.
8598 (ipa_free_node_params_substructures): Likewise and free also lattices
8599 and known values.
8600 (duplicate_array): Removed.
8601 (ipa_edge_duplication_hook): Add the new edge to the list of edge
8602 clones.
8603 (ipa_node_duplication_hook): Update to use new lattices.
8604 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
8605 (ipa_free_all_structures_after_iinln): Likewise.
8606 (ipa_write_node_info): Update to use new lattices.
8607 (ipa_read_node_info): Likewise.
8608 (ipa_get_jf_pass_through_result): New function.
8609 (ipa_get_jf_ancestor_result): Likewise.
8610 (ipa_value_from_jfunc): Likewise.
8611 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
8612 * ipa-cp.c: Reimplemented.
8613 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
8614 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
8615 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
8616 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
8617 * doc/invoke.texi (devirt-type-list-size): Removed description.
8618 (ipa-cp-value-list-size): Added description.
8619
8620 2011-07-18 Richard Henderson <rth@redhat.com>
8621
8622 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
8623 before calling create_basic_block.
8624
8625 2011-07-18 Jakub Jelinek <jakub@redhat.com>
8626
8627 PR middle-end/49675
8628 * tree.c (build_common_builtin_nodes): Register
8629 __builtin_return_address, __cyg_profile_func_enter
8630 and __cyg_profile_func_exit.
8631
8632 2011-07-18 Richard Henderson <rth@redhat.com>
8633
8634 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
8635 (add_labels_and_missing_jumps): ... here.
8636 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
8637
8638 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
8639
8640 PR target/47744
8641 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8642 of DImode hard registers in PLUS address chains.
8643
8644 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8645
8646 PR bootstrap/49769
8647 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
8648 (alpha*-*-freebsd*): Likewise.
8649 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
8650 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
8651 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
8652 crtprec80.o, crtfastmath.o to extra_parts for all targets.
8653 (ia64*-*-elf*): Remove extra_parts.
8654 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
8655 (sparc64-*-linux*): Likewise.
8656 (sparc64-*-freebsd*): Likewise.
8657
8658 Revert:
8659 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
8660 (ia64*-*-linux*): Likewise.
8661 (mips64*-*-linux*): Likewise.
8662 (mips*-*-linux*): Likewise.
8663
8664 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
8665
8666 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
8667
8668 2011-07-18 Richard Guenther <rguenther@suse.de>
8669
8670 * gimplify.c (gimplify_expr): Use input_location, not saved_location
8671 when building new trees.
8672
8673 2011-07-18 Richard Guenther <rguenther@suse.de>
8674
8675 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
8676 expansion result to bitfield precision if required.
8677
8678 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8679
8680 * config.gcc (i[3456x]86-*-netware*): Remove.
8681
8682 * gthr-nks.h: Remove.
8683 * configure.ac (enable_threads): Remove nks.
8684 * configure: Regenerate.
8685
8686 * config/i386/i386.c (ix86_encode_section_info): Remove netware
8687 reference.
8688 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
8689 <netware.h> reference.
8690
8691 * config/i386/netware-libgcc.c,
8692 gcc/config/i386/netware-libgcc.def,
8693 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
8694 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
8695 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
8696 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
8697
8698 * doc/extend.texi (Function Attributes,
8699 callee_pop_aggregate_return): Remove i?86-netware reference.
8700 * doc/install.texi (Configuration, --enable-threads): Remove nks.
8701
8702 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8703
8704 PR target/49746
8705 Revert:
8706 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8707
8708 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
8709 patterns.
8710
8711 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
8712
8713 PR middle-end/49732
8714 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
8715
8716 2011-07-16 Matthias Klose <doko@ubuntu.com>
8717
8718 * doc/install.texi: Document --enable-static-libjava.
8719
8720 2011-07-15 Richard Henderson <rth@redhat.com>
8721
8722 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
8723 Replace all three arguments by returning a VEC of edges.
8724 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
8725 pointers and counts.
8726 (fix_edges_for_rarely_executed_code): Merge ...
8727 (rest_of_handle_partition_blocks): ... into...
8728 (partition_hot_cold_basic_blocks): ... here. Return todo items if
8729 any work was performed.
8730 (pass_partition_blocks): Clear todo_flags_finish.
8731
8732 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
8733 Jakub Jelinek <jakub@redhat.com>
8734 Jonathan Wakely <jwakely.gcc@gmail.com>
8735
8736 PR libstdc++/49745
8737 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
8738 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
8739
8740 2011-07-15 Jason Merrill <jason@redhat.com>
8741
8742 PR testsuite/49741
8743 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
8744 rather than --tool_opts.
8745
8746 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
8747
8748 * doc/plugins.texi (Building GCC plugins): gengtype needs its
8749 corresponding gtype.state.
8750
8751 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8752
8753 PR target/49723
8754 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
8755
8756 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
8757
8758 PR target/48220
8759 * doc/md.texi (Standard Names): Document window_save.
8760 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
8761 expand_debug_expr and expand_debug_source_expr. If the target has
8762 a window_save instruction, adjust the ENTRY_VALUE_EXP.
8763 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
8764 SSA_NAME_VAR is a parameter.
8765 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
8766 * var-tracking.c (parm_reg_t): New type and associated vector type.
8767 (windowed_parm_regs): New variable.
8768 (adjust_insn): If the target has a window_save instruction and this
8769 is the instruction, make its effect on parameter registers explicit.
8770 (next_non_note_insn_var_location): New function.
8771 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
8772 (vt_add_function_parameter): If the target has a window_save insn,
8773 adjust the incoming RTL and record that in windowed_parm_regs.
8774 (vt_finalize): Free windowed_parm_regs.
8775
8776 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
8777
8778 * doc/invoke.texi (C6X Options): New section.
8779 * doc/md.texi (TI C6X family): New section.
8780 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
8781 tic6x-*-uclinux.
8782 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
8783 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
8784 Provide C6X definitions.
8785 * config/c6x/c6x.md: New file.
8786 * config/c6x/constraints.md: New file.
8787 * config/c6x/predicates.md: New file.
8788 * config/c6x/c6x-sched.md.in: New file.
8789 * config/c6x/c6x-sched.md: New file.
8790 * config/c6x/gensched.sh: New file.
8791 * config/c6x/c6x-mult.md.in: New file.
8792 * config/c6x/genmult.sh: New file.
8793 * config/c6x/c6x-mult.md: New file.
8794 * config/c6x/sync.md: New file.
8795 * config/c6x/c6x-protos.h: New file.
8796 * config/c6x/sfp-machine.h: New file.
8797 * config/c6x/c6x.c: New file.
8798 * config/c6x/c6x.h: New file.
8799 * config/c6x/crti.s: New file.
8800 * config/c6x/crtn.s: New file.
8801 * config/c6x/lib1funcs.asm: New file.
8802 * config/c6x/c6x-modes.def: New file.
8803 * config/c6x/genopt.sh: New file.
8804 * config/c6x/c6x.opt: New file.
8805 * config/c6x/c6x-tables.opt: New file.
8806 * config/c6x/c6x-opts.h: New file.
8807 * config/c6x/c6x-isas.def: New file.
8808 * config/c6x/elf.h: New file.
8809 * config/c6x/elf-common.h: New file.
8810 * config/c6x/uclinux-elf.h: New file.
8811 * config/c6x/t-c6x: New file.
8812 * config/c6x/t-c6x-elf: New file.
8813 * config/c6x/t-c6x-uclinux: New file.
8814 * config/c6x/t-c6x-softfp: New file.
8815 * config/c6x/gtd.c: New file.
8816 * config/c6x/gtf.c: New file.
8817 * config/c6x/ltd.c: New file.
8818 * config/c6x/ltf.c: New file.
8819 * config/c6x/ged.c: New file.
8820 * config/c6x/gef.c: New file.
8821 * config/c6x/led.c: New file.
8822 * config/c6x/lef.c: New file.
8823 * config/c6x/eqd.c: New file.
8824 * config/c6x/eqf.c: New file.
8825 * config/c6x/libgcc-c6xeabi.ver: New file.
8826
8827 Revert
8828 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
8829 PR rtl-optimization/11320
8830 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
8831 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
8832 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
8833 current_sched_info->compute_jump_reg_dependencies. Record which
8834 registers are used and which registers are set by the jump.
8835 Clear deps->reg_conditional_sets after a barrier.
8836 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
8837 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
8838 (init_deps): Initialize reg_conditional_sets.
8839 (free_deps): Clear reg_conditional_sets.
8840 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
8841 Mark registers live on entry of the fallthrough block and conditionally
8842 set as set by the jump. Mark registers live on entry of non-fallthrough
8843 blocks as used by the jump.
8844 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
8845 Mark new parameters as unused.
8846
8847 2011-07-14 Andrew Pinski <pinskia@gmail.com>
8848
8849 PR tree-opt/49309
8850 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
8851 Use fold_build2_loc instead of build2.
8852 Use the correct type for the new tree.
8853
8854 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
8855
8856 PR rtl-optimization/11320
8857 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
8858 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
8859
8860 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
8861
8862 PR target/49487
8863 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
8864 of REG.
8865 (*rotw<mode>): Use const_int_operand for operand2.
8866 Use match_scatch for operand3.
8867 (*rotb<mode>): Ditto
8868 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
8869
8870 2011-07-14 Richard Guenther <rguenther@suse.de>
8871
8872 PR tree-optimization/49651
8873 * tree-ssa-structalias.c (get_constraint_for_1): Properly
8874 handle dereferences with subvariables.
8875
8876 2011-07-14 Richard Guenther <rguenther@suse.de>
8877
8878 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
8879 (fold_stmt_1): Do it here directly on gimple and as a first thing.
8880
8881 2011-07-14 Richard Guenther <rguenther@suse.de>
8882
8883 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
8884 not bool_var when folding bool_var != 1 or bool_var == 0.
8885
8886 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
8887
8888 * haifa-sched.c (schedule_insns): Remove outdated comment.
8889 (schedule_block): When computing a known value for TODO_SPEC,
8890 just set it rather than using logical operations.
8891 (try_ready): Likewise. Use a local variable rather than a
8892 pointer to TODO_SPEC. Reorder an if statement to move the
8893 easy case to the then block.
8894 * sched-deps.c (dep_spec_p): New static function.
8895 (update_dep): Use it to decide whether to call
8896 change_spec_dep_to_hard.
8897 (get_back_and_forw_lists): Use it.
8898 (sd_resolve_dep): Likewise.
8899 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
8900 (haifa_note_mem_dep): Likewise.
8901 (check_dep): Likewise.
8902 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
8903 (sched_free_deps): Free in two passes.
8904
8905 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
8906
8907 PR middle-end/49736
8908 * expr.c (all_zeros_p): Undo bogus part of last change.
8909
8910 2011-07-14 Matthias Klose <doko@ubuntu.com>
8911
8912 * doc/extend.texi (optimize attribute): Fix typo.
8913
8914 2011-07-14 Richard Guenther <rguenther@suse.de>
8915
8916 * gimplify.c (gimplify_expr): Only do required conversions.
8917
8918 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
8919
8920 PR target/43746
8921 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
8922 i.e. use default_elf_select_section.
8923 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
8924 (READONLY_DATA_SECTION_ASM_OP): Remove.
8925 (TARGET_ASM_NAMED_SECTION): Move from here...
8926 * config/avr/avr.c: ...to here.
8927 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
8928 (avr_asm_named_section): Make static.
8929
8930 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8931
8932 PR bootstrap/49739
8933 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
8934 and crtfastmath.o for Linux/x86.
8935
8936 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
8937
8938 * haifa-sched.c: Include "hashtab.h"
8939 (sched_no_dce): New global variable.
8940 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
8941 SHADOW_P): New macros.
8942 (last_clock_var, cycle_issued_insns): Move declarations.
8943 (must_backtrack): New static variable.
8944 (struct delay_pair): New structure.
8945 (delay_htab, delay_htab_i2): New static variables.
8946 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
8947 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
8948 functions.
8949 (dep_cost_1): If delay pairs exist, try to look up the insns and
8950 use the correct pair delay if we find them.
8951 (rank-for_schedule): Tweak priority for insns that must be scheduled
8952 soon to avoid backtracking.
8953 (queue_insn): Detect conditions which force backtracking.
8954 (ready_add): Likewise.
8955 (struct sched_block_state): Add member shadows_only_p.
8956 (struct haifa_save_data): New structure.
8957 (backtrack_queue): New static variable.
8958 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
8959 unschedule_insns_until, restore_last_backtrack_point,
8960 free_topmost_backtrack_point, free_backtrack_queue,
8961 estimate_insn_tick, estimate_shadow_tick): New functions.
8962 (prune_ready_list): New arg shadows_only_p. All callers changed.
8963 If true, remove everything that isn't SHADOW_P. Look up delay
8964 pairs and estimate ticks to avoid scheduling the first insn too early.
8965 (verify_shadows): New function.
8966 (schedule_block): Add machinery to enable backtracking.
8967 (sched_init): Take sched_no_dce into account when setting
8968 DF_LR_RUN_DCE.
8969 (free_delay_pairs): New function.
8970 (init_h_i_d): Initialize INSN_EXACT_TICK.
8971 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
8972 * sched-deps.c (sd_unresolve_dep): New function.
8973 * sched-int. (struct haifa_sched_info): New fields save_state
8974 and restore_state.
8975 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
8976 feeds_backtrack_insn and shadow_p.
8977 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
8978 (sched_no_dce): Declare variable.
8979 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
8980 sd_unresolve_dep): Declare functions.
8981 * modulo-sched.c (sms_sched_info): Clear the two new fields.
8982 * sched-rgn.c (rgn_const_sched_info): Likewise.
8983 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8984 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
8985 (ebb_sched_info): Add them for the two new fields.
8986 (add_deps_for_risky_insns): Call add_delay_dependencies.
8987
8988 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
8989
8990 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
8991 Rename -mr11.
8992 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
8993 (rs6000_call_indirect_aix): Ditto.
8994 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
8995 (call_indirect_aix<ptrsize>_internal): Ditto.
8996 (call_indirect_aix<ptrsize>_nor11): Ditto.
8997 (call_indirect_aix<ptrsize>_internal2): Ditto.
8998 (call_value_indirect_aix<ptrsize>): Ditto.
8999 (call_value_indirect_aix<ptrsize>_internal): Ditto.
9000 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
9001 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
9002 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
9003
9004 2011-07-13 Jason Merrill <jason@redhat.com>
9005
9006 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
9007
9008 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9009
9010 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
9011 * config/spu/spu.md ("clrsb<mode>2"): New expander.
9012
9013 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
9014
9015 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
9016 * configure: Regenerate.
9017
9018 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9019
9020 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
9021 (asm_file_start): Remove.
9022 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
9023 free_bb_for_insn around code that modifies insns before
9024 restarting df analysis.
9025
9026 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9027
9028 PR target/49541
9029 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
9030 (LINK_SPEC): ... here.
9031
9032 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
9033
9034 * haifa-sched.c (struct sched_block_state): New.
9035 (schedule_block): Move some local variables into such a structure.
9036
9037 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9038
9039 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
9040 * config/i386/t-crtpc: Remove.
9041 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
9042 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
9043 tmake_file.
9044 (x86_64-*-darwin*): Likewise.
9045 (i[34567]86-*-linux*): Likewise.
9046 (x86_64-*-linux*): Likewise.
9047
9048 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
9049 Handle -mpc32, -mpc64, -mpc80.
9050
9051 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9052
9053 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
9054 * config/alpha/t-crtfm: Remove.
9055 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
9056 * config/i386/t-crtfm: Remove.
9057 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
9058 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
9059 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
9060 * config/sparc/t-crtfm: Remove.
9061
9062 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
9063 (alpha*-*-freebsd*): Likewise.
9064 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
9065 (x86_64-*-darwin*): Likewise.
9066 (i[34567]86-*-linux*): Likewise.
9067 (x86_64-*-linux*): Likewise.
9068 (x86_64-*-mingw*): Likewise.
9069 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
9070 (ia64*-*-freebsd*): Likewise.
9071 (ia64*-*-linux*): Likewise.
9072 (mips64*-*-linux*): Likewise.
9073 (mips*-*-linux*): Likewise.
9074 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
9075 (sparc64-*-linux*): Likewise.
9076 (sparc64-*-freebsd*): Likewise.
9077
9078 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9079
9080 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
9081 * config/darwin-crt3.c: Move to ../libgcc/config.
9082 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
9083 ($(T)crt3$(objext)): Remove.
9084 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
9085 ($(T)crt2$(objext)): Remove.
9086 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
9087 (powerpc64-*-darwin*): Likewise.
9088
9089 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
9090
9091 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
9092
9093 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
9094 (addsi_1_zext): This.
9095
9096 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
9097
9098 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
9099 * doc/tm.texi: Regenerate.
9100 * target.def (mergeable_rodata_prefix): New defhookpod.
9101 * varasm.c (mergeable_string_section, mergeable_constant_section):
9102 Use it. Allocate name with alloca.
9103
9104 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
9105
9106 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
9107
9108 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
9109
9110 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
9111 overlap check.
9112
9113 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
9114
9115 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
9116 (count_type_elements): Delete.
9117 (complete_ctor_at_level_p): Declare.
9118 * expr.c (flexible_array_member_p): New function, split out from...
9119 (count_type_elements): ...here. Make static. Replace allow_flexarr
9120 parameter with for_ctor_p. When for_ctor_p is true, return the
9121 number of elements that should appear in the top-level constructor,
9122 otherwise return an estimate of the number of scalars.
9123 (categorize_ctor_elements): Replace p_must_clear with p_complete.
9124 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
9125 (complete_ctor_at_level_p): New function, borrowing union logic
9126 from old categorize_ctor_elements_1.
9127 (mostly_zeros_p): Return true if the constructor is not complete.
9128 (all_zeros_p): Update call to categorize_ctor_elements.
9129 * gimplify.c (gimplify_init_constructor): Update call to
9130 categorize_ctor_elements. Don't call count_type_elements.
9131 Unconditionally prevent clearing for variable-sized types,
9132 otherwise rely on categorize_ctor_elements to detect
9133 incomplete initializers.
9134
9135 2011-07-13 Richard Guenther <rguenther@suse.de>
9136
9137 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
9138 the final type is integral.
9139
9140 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
9141
9142 * sched-int.h (struct _dep): Add member cost.
9143 (DEP_COST, UNKNOWN_DEP_COST): New macros.
9144 * sched-deps.c (init_dep_1): Initialize DEP_COST.
9145 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
9146 (sched_change_pattern): Reset it for dependent insns.
9147
9148 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9149
9150 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
9151 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
9152 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
9153 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
9154 (CRT0_S, MCRT0_S): Remove.
9155 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
9156 Remove.
9157 (s-crt0): Remove.
9158 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
9159
9160 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
9161
9162 * cse.c (insert_with_costs): Put semi-colon after empty loop body
9163 on the next line.
9164 * emit-rtl.c (push_to_sequence): Likewise.
9165 * haifa-sched.c (max_issue): Likewise.
9166 * matrix-reorg.c (add_allocation_site): Likewise.
9167 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
9168 * reload.c (alternative_allows_const_pool_ref): Likewise.
9169 * sched-rgn.c (rgn_add_block): Likewise.
9170 (rgn_fix_recovery_cfg): Likewise.
9171 * tree.c (attribute_list_contained): Likewise.
9172
9173 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
9174
9175 * config/i386/i386.c: Tidy processor feature bitmasks.
9176 (m_P4_NOCONA): New.
9177
9178 2011-07-12 Andrew Pinski <pinskia@gmail.com>
9179
9180 PR rtl-opt/49474
9181 * cprop.c (find_implicit_sets): Correct the condition.
9182
9183 2011-07-12 Richard Henderson <rth@redhat.com>
9184
9185 PR target/49713
9186 * dwarf2out.h (dwarf_frame_regnum): Remove.
9187 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
9188 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
9189 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
9190 (execute_dwarf2_frame): Initialize them.
9191 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
9192 users of the macros with the variables.
9193 (expand_builtin_dwarf_sp_column): Revert last change.
9194 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
9195 result of DWARF_FRAME_REGNUM into a local variable.
9196
9197 2011-07-12 Richard Henderson <rth@redhat.com>
9198
9199 PR target/49714
9200 * config/i386/i386.c (x86_output_mi_thunk): Use
9201 machopic_indirect_call_target instead of machopic_indirection_name
9202 directly.
9203
9204 2011-07-12 Laurent GUERBY <laurent@guerby.net>
9205 Eric Botcazou <ebotcazou@adacore.com>
9206
9207 * prefix.h: Wrap up in extern "C" block.
9208
9209 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
9210
9211 AMD bdver2 Enablement
9212 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
9213 (case ${target}): Add bdver2.
9214 * config/i386/driver-i386.c (host_detect_local_cpu): Let
9215 -march=native recognize bdver2 processors.
9216 * config/i386/i386-c.c (ix86_target_macros_internal): Add
9217 bdver2 def_and_undef
9218 * config/i386/i386.c (struct processor_costs bdver2_cost): New
9219 bdver2 cost table.
9220 (m_BDVER2): New definition.
9221 (m_AMD_MULTIPLE): Includes m_BDVER2.
9222 (initial_ix86_tune_features): Add bdver2 tuning.
9223 (processor_target_table): Add bdver2 entry.
9224 (static const char *const cpu_names): Add bdver2 entry.
9225 (ix86_option_override_internal): Add bdver2 instruction sets.
9226 (ix86_issue_rate): Add bdver2.
9227 (ix86_adjust_cost): Add bdver2.
9228 (has_dispatch): Add bdver2.
9229 * config/i386/i386.h (TARGET_BDVER2): New definition.
9230 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
9231 (enum processor_type): Add PROCESSOR_BDVER2.
9232 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
9233 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
9234 description.
9235
9236 2011-07-12 Richard Henderson <rth@redhat.com>
9237
9238 PR target/49714
9239 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
9240 destination address in memory on some paths.
9241
9242 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
9243
9244 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
9245 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
9246 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
9247 * function.c (locate_and_pad_parm): Take it into account.
9248 * target.def (function_arg_round_boundary): New hook.
9249 * targhooks.c (default_function_arg_round_boundary): New function.
9250 * targhooks.h (default_function_arg_round_boundary): Declare.
9251 * doc/tm.texi: Regenerate.
9252
9253 2011-07-12 Richard Guenther <rguenther@suse.de>
9254
9255 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
9256 Do not perform no-op changes.
9257
9258 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
9259
9260 * config/arm/predicates.md (neon_struct_operand): Make a normal
9261 predicate.
9262 (neon_struct_or_register_operand): New predicate.
9263 * config/arm/neon.md (movmisalign<mode>): Replace predicates
9264 with neon_struct_or_register_operand.
9265 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
9266 neon_struct_operand instead of memory_operand.
9267
9268 2011-07-12 Martin Jambor <mjambor@suse.cz>
9269
9270 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
9271 * cgraph.c (cgraph_get_node_or_alias): Removed.
9272 (change_decl_assembler_name): Changed all calls to
9273 cgraph_get_node_or_alias to a call to cgraph_get_node.
9274 (cgraph_make_decl_local): Likewise.
9275 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
9276 * varasm.c (default_binds_local_p_1): Likewise.
9277 (decl_binds_to_current_def_p): Likewise.
9278
9279 2011-07-12 Jakub Jelinek <jakub@redhat.com>
9280
9281 PR tree-optimization/49712
9282 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
9283
9284 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
9285
9286 * genautomata.c (add_arc): Return void. All callers changed.
9287 (make_automaton): Remove dead code.
9288
9289 2011-07-11 Richard Henderson <rth@redhat.com>
9290
9291 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
9292 (DW_FRAME_POINTER_REGNUM): New.
9293 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
9294 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
9295 (dwf_regno): New.
9296 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
9297 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
9298 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
9299 Use it.
9300 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
9301 * dwarf2out.h (dwarf_frame_regnum): New.
9302 (struct cfa_loc): Document the domain of the reg member.
9303
9304 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
9305
9306 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
9307 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
9308
9309 2011-07-11 Jakub Jelinek <jakub@redhat.com>
9310
9311 PR debug/49676
9312 * dwarf2out.c (int_shift_loc_descriptor): New function.
9313 (int_loc_descriptor): If shorter, emit i as
9314 (i >> shift), shift, DW_OP_shl for suitable shift value.
9315 Similarly, try to optimize large negative values using
9316 DW_OP_neg of a positive value if shorter.
9317 (size_of_int_shift_loc_descriptor): New function.
9318 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
9319 changes.
9320 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
9321 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
9322 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
9323 is shorter.
9324 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
9325 addend as added DW_OP_plus if it is shorter.
9326
9327 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9328
9329 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
9330 (DTORS_SECTION_ASM_OP): Define.
9331
9332 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9333
9334 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
9335 * config/t-dfprules: Move to ../libgcc/config.
9336 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
9337 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
9338 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
9339 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
9340 Likewise.
9341 (i[34567]86-*-cygwin*): Likewise.
9342 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
9343 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
9344 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
9345 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
9346 D64PBIT_FUNCS, D128PBIT_FUNCS.
9347
9348 2011-07-11 Richard Guenther <rguenther@suse.de>
9349
9350 * tree-vrp.c (simplify_conversion_using_ranges): Manually
9351 translate the source value-range through the conversion chain.
9352
9353 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
9354
9355 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
9356
9357 2011-07-11 Arthur Loiret <aloiret@debian.org>
9358
9359 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
9360 a bi-arch compiler defaulting to 31-bit. In this case:
9361 (tmake_file): Add s390/t-linux64.
9362 * doc/install.texi: Add s390-linux to the list of targets supporting
9363 --enable-targets=all.
9364
9365 2011-07-11 Arthur Loiret <aloiret@debian.org>
9366 Matthias Klose <doko@debian.org>
9367
9368 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
9369 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
9370 (tm_file): Add mips/linux64.h.
9371 (tmake_file): Add mips/t-linux64.
9372 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
9373 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
9374 instead of hardcoded mabi=n32.
9375 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
9376 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
9377 convention.
9378
9379 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9380
9381 * passes.c (init_optimization_passes): Add invariant motion pass
9382 after induction variable optimization.
9383
9384 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
9385
9386 PR target/39633
9387 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
9388 offsets 1..5 set cc0 in a usable way.
9389
9390 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
9391
9392 * tree.h (call_expr_arg): Remove.
9393 (call_expr_argp): Likewise.
9394
9395 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
9396
9397 * config/sparc/sparc.md (save_register_window_1): Rename to...
9398 (window_save): ...this.
9399 * config/sparc/sparc.c (emit_save_register_window): Rename to...
9400 (emit_window_save): ...this.
9401 (sparc_expand_prologue): Adjust to above renaming.
9402
9403 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
9404
9405 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
9406 of movabs for x32.
9407
9408 2011-07-10 Richard Henderson <rth@redhat.com>
9409
9410 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
9411 run final, instead of emitting text directly.
9412
9413 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
9414
9415 * config/i386/i386.c (ix86_option_override_internal): Turn on
9416 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
9417 small PIC models for TARGET_X32.
9418
9419 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
9420
9421 PR target/49684
9422 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
9423 $(LIBGCC2_CFLAGS).
9424
9425 PR bootstrap/49680
9426 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
9427 stray notes and debug insns by using prev_nonnote_nondebug_insn
9428 instead of PREV_INSN.
9429
9430 2011-07-09 Richard Henderson <rth@redhat.com>
9431
9432 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
9433 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
9434 * dwarf2out.c: ... here.
9435 (output_all_cfis): Remove.
9436 (dwarf2out_switch_text_section): Use output_cfis directly.
9437 (size_of_locs): Export.
9438 (output_loc_sequence, output_loc_sequence_raw): Export.
9439 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
9440 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
9441 output_cfa_loc_raw): Move to ...
9442 * dwarfcfi.c: ... here.
9443 * dwarf2out.h: Update decls.
9444
9445 2011-07-09 Richard Henderson <rth@redhat.com>
9446
9447 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
9448 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
9449 * dwarf2cfi.c: ... here.
9450 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
9451 (DWARF_ROUND, DWARF_CIE_ID): Remove.
9452 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
9453 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
9454 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
9455
9456 2011-07-09 Richard Henderson <rth@redhat.com>
9457
9458 * dwarf2cfi.c (cie_return_save): New.
9459 (queue_reg_save): Use compare_reg_or_pc.
9460 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
9461 (dwarf2out_frame_debug_expr): Likewise.
9462 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
9463 (initial_return_save): Likewise.
9464 (execute_dwarf2_frame): Save and restore initial return save from
9465 the cie to the fde.
9466 * config/mips/mips.c (mips_frame_set): Remove special case for
9467 DWARF_FRAME_RETURN_COLUMN.
9468
9469 2011-07-09 Richard Henderson <rth@redhat.com>
9470
9471 * dwarf2cfi.c (lookup_cfa): Remove.
9472 (execute_dwarf2_frame): Assert queues are empty on entry.
9473 Setup initial cfa directly, not via lookup_cfa.
9474 Don't clear args_size state here.
9475
9476 2011-07-09 Richard Henderson <rth@redhat.com>
9477
9478 * dwarf2cfi.c (add_cfi_vec): New.
9479 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
9480 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
9481 (execute_dwarf2_frame): Set add_cfi_vec.
9482
9483 2011-07-09 Richard Henderson <rth@redhat.com>
9484
9485 * defaults.h (ASM_COMMENT_START): Move here...
9486 * dwarf2asm.c: ... from here.
9487 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
9488 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
9489 * varasm.c: Likewise.
9490
9491 2011-07-09 Richard Henderson <rth@redhat.com>
9492
9493 PR debug/49686
9494 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
9495 (create_cfi_notes): ... do it here instead.
9496
9497 2011-07-09 Jakub Jelinek <jakub@redhat.com>
9498
9499 PR debug/49676
9500 * dwarf2out.c (size_of_int_loc_descriptor): New function.
9501 (address_of_int_loc_descriptor): Use it.
9502 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
9503
9504 2011-07-09 Richard Henderson <rth@redhat.com>
9505
9506 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
9507 (prologue, epilogue): New.
9508 (return, *rts): New.
9509 (blockage, setd, seti): New.
9510 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
9511 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
9512 (pdp11_saved_regno): New.
9513 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
9514 generate rtl instead of text.
9515 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
9516 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
9517 * config/pdp11/pdp11-protos.h: Update.
9518
9519 2011-07-09 Richard Henderson <rth@redhat.com>
9520
9521 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
9522 try to insert an rtl prologue here.
9523 (rs6000_output_function_epilogue): Similarly.
9524 * config/rs6000/rs6000.md (prologue): Emit a barrier to
9525 satisfy !TARGET_SCHED_PROLOG.
9526 (epilogue, sibcall_epilogue): Likewise.
9527
9528 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
9529
9530 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
9531 (FP_REG_P): Delete.
9532 (IN_OR_GLOBAL_P): Likewise.
9533
9534 2011-07-08 Jason Merrill <jason@redhat.com>
9535
9536 PR c++/45437
9537 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
9538 compound assignment.
9539
9540 * cgraph.c (cgraph_add_to_same_comdat_group): New.
9541 * cgraph.h: Declare it.
9542 * ipa.c (function_and_variable_visibility): Make sure thunks
9543 have the right visibility.
9544
9545 2011-07-08 Richard Henderson <rth@redhat.com>
9546
9547 PR bootstrap/49680
9548 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
9549 any tablejump vector.
9550
9551 PR bootstrap/49680
9552 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
9553 end of the prologue.
9554
9555 2011-07-08 Jakub Jelinek <jakub@redhat.com>
9556
9557 PR target/49621
9558 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
9559 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
9560 * config/rs6000/vector.md (vector_select_<mode>,
9561 vector_select_<mode>_uns): Change second operand of NE to
9562 CONST0_RTX (<MODE>mode) instead of const0_rtx.
9563 * config/rs6000/altivec.md (*altivec_vsel<mode>,
9564 *altivec_vsel<mode>_uns): Expect second operand of NE to be
9565 zero_constant of the corresponding vector mode.
9566 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
9567 Likewise.
9568
9569 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
9570
9571 * graphite-dependences.c (build_alias_set_powerset): Remove
9572 continue from loop, add one more assert.
9573
9574 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
9575
9576 PR target/46779
9577 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
9578 In particular, allow 8-bit values in r28 and r29.
9579 (avr_hard_regno_scratch_ok): Disallow any register that might be
9580 part of the frame pointer.
9581 (avr_hard_regno_rename_ok): Same.
9582 (avr_legitimate_address_p): Don't allow SUBREGs.
9583
9584 2011-07-08 Julian Brown <julian@codesourcery.com>
9585
9586 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
9587 big-endian mode.
9588 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
9589 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
9590 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
9591 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
9592 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
9593 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
9594 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
9595 registers in big-endian mode.
9596
9597 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
9598
9599 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
9600 in terms of another.
9601 (write_attr_value): Write a cast if necessary.
9602
9603 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
9604 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
9605 (REG_WORDS_BIG_ENDIAN): Document.
9606 * doc/tm.texi: Regenerate.
9607 * reload.c (operands_match_p): Take it into account.
9608 (reload_adjust_reg_for_mode): Likewise.
9609 * rtlanal.c (subreg_get_info): Likewise.
9610
9611 2011-07-08 Richard Guenther <rguenther@suse.de>
9612
9613 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
9614 folding.
9615
9616 2011-07-08 Kai Tietz <ktietz@redhat.com>
9617
9618 * fold-const.c (fold_truth_andor): Factored out truth_andor
9619 label from fold_binary as function.
9620 (fold_binary_loc): Replace truth_andor lable
9621 by function fold_truth_andor.
9622
9623 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
9624
9625 PR middle-end/49519
9626 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
9627 check if address is stored in register. If so - give up.
9628 (check_sibcall_argument_overlap_1): Do not perform check of
9629 overlapping when it is call to address.
9630
9631 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
9632
9633 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
9634 of magic '31'.
9635
9636 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
9637
9638 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
9639 GET_MODE_BITSIZE where appropriate.
9640 (widen_leading, expand_parity, expand_ctz, expand_ffs,
9641 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
9642 expand_float, expand_fix): Likewise.
9643 * expr.c (convert_move, convert_modes, expand_expr_real_2,
9644 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
9645 * stor-layout.c (get_mode_bounds): Likewise.
9646 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
9647 Likewise.
9648 * convert.c (convert_to_integer): Likewise.
9649 * expmed.c (expand_shift_1): Likewise.
9650
9651 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
9652 a bitsize.
9653
9654 * optabs.c (expand_binop): Tighten conditions for doubleword
9655 expansions.
9656 (widen_bswap): Assert that mode bitsize and precision are the same.
9657 * stor-layout.c (get_best_mode): Skip modes that have lower
9658 precision than bitsize.
9659 * recog.c (simplify_while_replacing): Assert that bitsize and
9660 precision are the same.
9661
9662 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9663
9664 * Makefile.in (LIBGCOV): Remove.
9665 (libgcc.mvars): Remove LIBGCOV.
9666 * libgov.c: Move to ../libgcc.
9667
9668 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9669
9670 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
9671
9672 2011-07-08 Martin Jambor <mjambor@suse.cz>
9673
9674 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
9675 is too big for total scalarization.
9676
9677 2011-07-07 Richard Henderson <rth@redhat.com>
9678
9679 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
9680 (DBX_DEBUGGING_INFO): Undef.
9681
9682 2011-07-07 Richard Henderson <rth@redhat.com>
9683
9684 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
9685 Handle some opcodes specially for debugging.
9686 * print-rtl.c: Include dwarf2out.h
9687 (print_rtx): Handle NOTE_INSN_CFI.
9688 * Makefile.in (print-rtl.o): Update.
9689
9690 2011-07-07 Richard Henderson <rth@redhat.com>
9691
9692 * tree-pass.h (pass_dwarf2_frame): Declare.
9693 * passes.c (init_optimization_passes): Add it.
9694 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
9695 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
9696 make static, do not call add_cfis_to_fde.
9697 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
9698 dwarf2out_frame_init): Merge into...
9699 (execute_dwarf2_frame): ... here. New function.
9700 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
9701 saved_do_cfi_asm to a tri-state variable.
9702 (gate_dwarf2_frame, pass_dwarf2_frame): New.
9703 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
9704 if it has yet to be done. Don't call dwarf2cfi_function_init.
9705 * dwarf2out.h, debug.h: Update decls.
9706 * final.c (final_start_function): Don't call
9707 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
9708 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
9709 * toplev.c (lang_dependent_init): Likewise.
9710
9711 2011-07-07 Richard Henderson <rth@redhat.com>
9712
9713 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
9714 FDE_TABLE_INCREMENT): Replace with...
9715 (fde_vec): ... this, a new vector.
9716 (current_fde): Remove. Replace all users with cfun->fde.
9717 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
9718 (size_of_aranges, dwarf2out_finish): Likewise.
9719 (dwarf2out_alloc_current_fde): Break out from ...
9720 (dwarf2out_begin_prologue): ... here.
9721 (dwarf2out_frame_init): Remove.
9722 * dwarf2cfi.c: Update all users of current_fde.
9723 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
9724 * dwarf2out.h: Update decls.
9725 (dw_fde_node): Add fde_index member.
9726 * function.h (struct function): Add fde member.
9727
9728 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9729 Richard Henderson <rth@redhat.com>
9730
9731 * dwarf2cfi.c (add_cfi): Remove.
9732 (dwarf2out_cfi_label): Remove force argument. Only generate the
9733 label name.
9734 (add_fde_cfi): Simplify the different code paths.
9735 (add_cie_cfi): New.
9736 (old_cfa, old_cfa_remember): New.
9737 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
9738 (last_reg_save_label): Remove.
9739 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
9740 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9741 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9742 dwarf2out_frame_debug_cfa_expression,
9743 dwarf2out_frame_debug_cfa_restore,
9744 dwarf2out_frame_debug_cfa_window_save,
9745 dwarf2out_frame_debug_expr): Remove label parameter.
9746 (cfi_label_required_p, add_cfis_to_fde): New.
9747 (dwarf2out_frame_debug_after_prologue): New.
9748 (dwarf2cfi_frame_init): Initialize old_cfa.
9749 (dwarf2out_frame_debug_restore_state): Likewise.
9750 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
9751 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
9752 * final.c (final_start_function): Call
9753 dwarf2out_frame_debug_after_prologue.
9754
9755 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9756 Richard Henderson <rth@redhat.com>
9757
9758 * dwarf2cfi.c (cfi_insn): New.
9759 (dwarf2out_cfi_label): Don't emit cfi label here.
9760 (add_fde_cfi): Create a NOTE_INSN_CFI.
9761 (dwarf2out_frame_debug): Setup cfi_insn.
9762 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
9763 (dwarf2out_cfi_begin_epilogue): Make static.
9764 (dwarf2out_frame_debug_restore_state): Make static.
9765 * dwarf2out.c (output_cfi_directive): Make static.
9766 (dwarf2out_emit_cfi): New.
9767 * dwarf2out.h: Update.
9768 * final.c (final): Remove CFI notes.
9769 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
9770 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
9771 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
9772 * insn-notes.def (NOTE_INSN_CFI): New.
9773 (NOTE_INSN_CFI_LABEL): New.
9774 * rtl.h (union rtunion_def): Add rt_cfi member.
9775 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
9776
9777 2011-07-07 Richard Henderson <rth@redhat.com>
9778
9779 * dwarf2cfi.c: New file.
9780 * Makefile.in (OBJS): Add it.
9781 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
9782 * gengtype.c (open_base_files): Include dwarf2out.h.
9783 * coretypes.h (enum var_init_status): Move from ...
9784 * rtl.h: ... here.
9785 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
9786 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
9787 expand_builtin_dwarf_sp_column, init_return_column_size,
9788 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
9789 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
9790 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
9791 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
9792 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
9793 compute_barrier_args_size, dwarf2out_args_size,
9794 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
9795 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
9796 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
9797 queue_reg_save, dwarf2out_flush_queued_reg_saves,
9798 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
9799 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9800 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9801 dwarf2out_frame_debug_cfa_expression,
9802 dwarf2out_frame_debug_cfa_restore,
9803 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
9804 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
9805 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
9806 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
9807 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
9808 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
9809 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
9810 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
9811 dw_loc_descr_node): Move to dwarf2out.h.
9812 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
9813 mem_loc_descriptor): Export.
9814 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
9815 (dwarf2out_frame_init): Extract CIE generation code to
9816 dwarf2cfi_frame_init.
9817
9818 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
9819
9820 PR target/49660
9821 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
9822 MASK_V8PLUS, remove commented out flag and reorder.
9823
9824 2011-07-07 Jakub Jelinek <jakub@redhat.com>
9825
9826 PR c/49644
9827 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
9828 one non-complex and one complex argument, call c_save_expr on both
9829 operands.
9830
9831 2011-07-07 Martin Jambor <mjambor@suse.cz>
9832
9833 PR middle-end/49495
9834 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
9835 (verify_cgraph_node): Some functinality moved to
9836 verify_edge_corresponds_to_fndecl, call it.
9837
9838 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9839
9840 * config.gcc (*local*): Remove.
9841 * doc/install-old.texi: Don't mention local configurations.
9842
9843 2011-07-07 Jakub Jelinek <jakub@redhat.com>
9844
9845 PR debug/49522
9846 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
9847 referencing debug insns that have been reset.
9848 (dead_debug_insert_before): Don't assert reg is non-NULL,
9849 instead return immediately if it is NULL.
9850
9851 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9852
9853 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
9854
9855 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9856
9857 * hw-doloop.c: New file.
9858 * hw-doloop.h: New file.
9859 * Makefile.in (OBJS): Add hw-doloop.o.
9860 (hw-doloop.o): New rule.
9861 ($(obj_out_file)): Add hw-doloop.h dependency.
9862 * config/bfin/bfin.c: Include "hw-doloop.h".
9863 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
9864 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
9865 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
9866 type changed to hwloop_info. Return bool, true if the loop was
9867 successfully optimized. Remove code that was moved to
9868 hw-doloop.c, and adjust other parts.
9869 (hwloop_fail): New static function, containing parts that used
9870 to be in bfin_optimize_loop.
9871 (bfin_discover_loop, bfin_discover_loops, free_loops,
9872 bfin_reorder_loops): Remove.
9873 (hwloop_pattern_reg): New static function.
9874 (bfin_doloop_hooks): New variable.
9875 (bfin_reorg_loops): Remove most code, call reorg_loops.
9876 * config/bfin/bfin.md (doloop_end splitter): Also enable if
9877 loop counter is a memory_operand.
9878
9879 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
9880
9881 * config.gcc: Support --with-multilib-list for x86 Linux targets.
9882
9883 * configure.ac: Mention x86-64 for --with-multilib-list.
9884 * configure: Regenerated.
9885
9886 * config/i386/gnu-user64.h (SPEC_64): Support x32.
9887 (SPEC_32): Likewise.
9888 (ASM_SPEC): Likewise.
9889 (LINK_SPEC): Likewise.
9890 (TARGET_THREAD_SSP_OFFSET): Likewise.
9891 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
9892 (SPEC_X32): New.
9893
9894 * config/i386/i386.h (TARGET_X32): New.
9895 (TARGET_LP64): New.
9896 (LONG_TYPE_SIZE): Likewise.
9897 (POINTER_SIZE): Likewise.
9898 (POINTERS_EXTEND_UNSIGNED): Likewise.
9899 (OPT_ARCH64): Support x32.
9900 (OPT_ARCH32): Likewise.
9901
9902 * config/i386/i386.opt (mx32): New.
9903
9904 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
9905 (GLIBC_DYNAMIC_LINKERX32): Likewise.
9906 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
9907 (GLIBC_DYNAMIC_LINKERX32): Likewise.
9908
9909 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
9910 (BIONIC_DYNAMIC_LINKERX32): Likewise.
9911 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
9912
9913 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
9914
9915 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
9916
9917 * doc/invoke.texi: Document -mx32.
9918
9919 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
9920
9921 * doc/invoke.texi (mwords-little-endian): Deprecate.
9922 * config/arm/arm.opt (mwords-little-endian): Likewise.
9923 * config/arm/arm.c (arm_option_override): Warn about the deprecation
9924 of -mwords-little-endian.
9925
9926 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
9927
9928 * reload1.c (choose_reload_regs): Use mode sizes to check whether
9929 an old reload register completely defines the required value.
9930
9931 2011-07-07 Richard Guenther <rguenther@suse.de>
9932
9933 * fold-const.c (fold_unary_loc): Do not strip sign-changes
9934 for NEGATE_EXPR.
9935
9936 2011-07-07 Richard Guenther <rguenther@suse.de>
9937
9938 * tree-vrp.c (simplify_conversion_using_ranges): New function.
9939 (simplify_stmt_using_ranges): Call it.
9940
9941 2011-07-07 Kai Tietz <ktietz@redhat.com>
9942
9943 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
9944 (lookup_logical_inverted_value): Likewise.
9945 (simplify_bitwise_binary_1): Likewise.
9946 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
9947
9948 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9949
9950 * gcc.c (%[Spec]): Don't document.
9951 (struct spec_list): Update comment.
9952 (do_spec_1): Don't handle %[Spec].
9953 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
9954
9955 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9956
9957 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
9958 default based on TARGET_ASM_NAMED_SECTION.
9959 * common/common-target.def (have_named_sections): Default to true.
9960 * common/config/default-common.c: Don't include tm.h.
9961 * common/config/picochip/picochip-common.c
9962 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
9963 * common/config/m32c/m32c-common.c: Remove.
9964 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
9965 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9966 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9967 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9968 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9969 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9970 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9971
9972 2011-07-07 Jakub Jelinek <jakub@redhat.com>
9973
9974 PR middle-end/49640
9975 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
9976 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
9977
9978 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9979
9980 PR libmudflap/49550
9981 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
9982
9983 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9984
9985 PR target/39150
9986 * configure.ac (gcc_cv_as_hidden): Also accept
9987 x86_64-*-solaris2.1[0-9]*.
9988 (gcc_cv_as_cfi_directive): Likewise.
9989 (gcc_cv_as_comdat_group_group): Likewise.
9990 (set_have_as_tls): Likewise.
9991 * configure: Regenerate.
9992 * config.gcc (i[34567]86-*-solaris2*): Also handle
9993 x86_64-*-solaris2.1[0-9]*.
9994 * config.host (i[34567]86-*-solaris2*): Likewise.
9995 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
9996 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
9997 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
9998 (TARGET_LD_EMULATION): Use it.
9999 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
10000 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
10001 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
10002 (ASM_CPU64_DEFAULT_SPEC): Define.
10003 (ASM_CPU_SPEC): Use %(asm_cpu_default).
10004 (ASM_SPEC): Redefine.
10005 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
10006 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
10007 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
10008 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
10009 configuration.
10010 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
10011
10012 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10013
10014 * config/sol2.h (ASM_SPEC): Split into ...
10015 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
10016 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
10017 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
10018 (ASM_SPEC): Use ASM_SPEC_BASE.
10019 * config/sparc/sol2.h (ASM_SPEC): Redefine.
10020
10021 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
10022
10023 * config/avr/avr.md (*reload_insi): Change predicate #1 to
10024 const_int_operand. Ditto for peep2 producing this insn.
10025 Add argument to output_reload_insisf call.
10026 (*movsi,*movsf): Add argument to output_movsisf call.
10027 (*reload_insf): New insn and new peep2 to produce it.
10028 * config/avr/avr-protos.h (output_movsisf): Change prototype.
10029 (output_reload_insisf): Change prototype.
10030 * config/avr/avr.c (avr_asm_len): New function.
10031 (output_reload_insisf): Rewrite.
10032 (output_movsisf): Change prototype. output_reload_insisf for
10033 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
10034 (adjust_insn_length): Add argument to output_movsisf and
10035 output_reload_insisf call.
10036
10037 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
10038
10039 * emit-rtl.c (paradoxical_subreg_p): New function.
10040 * rtl.h (paradoxical_subreg_p): Declare.
10041 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
10042 apply_distributive_law, simplify_comparison, simplify_set): Use it.
10043 * cse.c (record_jump_cond, cse_insn): Likewise.
10044 * expr.c (force_operand): Likewise.
10045 * rtlanal.c (num_sign_bit_copies1): Likewise.
10046 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
10047 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
10048 (push_reload): Use precision to check for paradoxical subregs.
10049 * expmed.c (extract_bit_field_1): Likewise.
10050
10051 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
10052 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
10053 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
10054 simplify_set, simplify_logical, expand_compound_operation,
10055 make_extraction, force_to_mode, if_then_else_cond, extended_count,
10056 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
10057 record_value_for_reg): Likewise.
10058 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
10059 * simplify-rtx. c (simplify_unary_operation_1,
10060 simplify_binary_operation_1, simplify_const_relational_operation):
10061 Likewise.
10062
10063 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
10064 instead of GET_MODE_BITSIZE where appropriate.
10065 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
10066 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
10067 init_num_sign_bit_copies_in_rep): Likewise.
10068 * cse.c (fold_rtx, cse_insn): Likewise.
10069 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
10070 * simplify-rtx.c (simplify_unary_operation_1,
10071 simplify_const_unary_operation, simplify_binary_operation_1,
10072 simplify_const_binary_operation, simplify_ternary_operation,
10073 simplify_const_relational_operation, simplify_subreg): Likewise.
10074 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
10075 simplify_if_then_else, simplify_set, expand_compound_operation,
10076 expand_field_assignment, make_extraction, if_then_else_cond,
10077 make_compound_operation, force_to_mode, make_field_assignment,
10078 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
10079 extended_count, try_widen_shift_mode, simplify_shift_const_1,
10080 simplify_comparison, record_promoted_value, simplify_compare_const,
10081 record_dead_and_set_regs_1): Likewise.
10082
10083 Revert:
10084 * simplify-rtx.c (simplify_const_binary_operation): Use the
10085 shift_truncation_mask hook instead of performing modulo by width.
10086 Compare against mode precision, not bitsize.
10087 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
10088 Use shift_truncation_mask instead of constructing the value manually.
10089
10090 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
10091
10092 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
10093 declaration.
10094 (rs6000_save_toc_in_prologue_p): Ditto.
10095
10096 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
10097 up the static chain (r11) during indirect function calls.
10098 (-msave-toc-indirect): New undocumented debug switch.
10099
10100 * config/rs6000/rs6000.c (struct machine_function): Add
10101 save_toc_in_prologue field to note whether the prologue needs to
10102 save the TOC value in the reserved stack location.
10103 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
10104 to save the TOC in the prologue, do so.
10105 (rs6000_trampoline_init): Don't allow creating AIX style
10106 trampolines if -mno-r11 is in effect.
10107 (rs6000_call_indirect_aix): New function to create AIX style
10108 indirect calls, adding support for -mno-r11 to suppress loading
10109 the static chain, and saving the TOC in the prologue instead of
10110 the call body.
10111 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
10112 TOC in the prologue.
10113
10114 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
10115 register numbers.
10116 (TOC_REGNUM): Ditto.
10117 (STATIC_CHAIN_REGNUM): Ditto.
10118 (ARG_POINTER_REGNUM): Ditto.
10119 (SFP_REGNO): Delete, unused.
10120 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
10121 function descriptor offsets.
10122 (TOC_SAVE_OFFSET_64BIT): Ditto.
10123 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
10124 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
10125 (AIX_FUNC_DESC_SC_32BIT): Ditto.
10126 (AIX_FUNC_DESC_SC_64BIT): Ditto.
10127 (ptrload): New mode attribute for the appropriate load of a pointer.
10128 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
10129 (call_indirect_aix64): Ditto.
10130 (call_value_indirect_aix32): Ditto.
10131 (call_value_indirect_aix64): Ditto.
10132 (call_indirect_nonlocal_aix32_internal): Ditto.
10133 (call_indirect_nonlocal_aix32): Ditto.
10134 (call_indirect_nonlocal_aix64_internal): Ditto.
10135 (call_indirect_nonlocal_aix64): Ditto.
10136 (call): Rewrite AIX indirect function calls. Add support for
10137 eliminating the static chain, and for moving the save of the TOC
10138 to the function prologue.
10139 (call_value): Ditto.
10140 (call_indirect_aix<ptrsize>): Ditto.
10141 (call_indirect_aix<ptrsize>_internal): Ditto.
10142 (call_indirect_aix<ptrsize>_internal2): Ditto.
10143 (call_indirect_aix<ptrsize>_nor11): Ditto.
10144 (call_value_indirect_aix<ptrsize>): Ditto.
10145 (call_value_indirect_aix<ptrsize>_internal): Ditto.
10146 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
10147 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
10148 (call_nonlocal_aix32): Relocate in the rs6000.md file.
10149 (call_nonlocal_aix64): Ditto.
10150
10151 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
10152 -mno-r11 documentation.
10153
10154 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
10155
10156 PR other/49658
10157 * doc/extend.texi (Compound Literals): Fix typo.
10158
10159 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
10160
10161 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
10162
10163 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
10164
10165 * configure.ac (plugin-version.h): Generate
10166 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
10167 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
10168 macros.
10169
10170 * configure: Regenerate.
10171
10172 * doc/plugins.texi (Building GCC plugins): Mention
10173 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
10174
10175 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
10176
10177 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
10178 * combine.c (make_extraction, gen_lowpart_or_truncate,
10179 apply_distributive_law, simplify_comparison,
10180 reg_truncated_to_mode, record_truncated_value): Use it.
10181 * cse.c (notreg_cost): Likewise.
10182 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
10183 * expr.c (convert_move, convert_modes): Likewise.
10184 * optabs.c (expand_binop, expand_unop): Likewise.
10185 * postreload.c (move2add_last_label): Likewise.
10186 * regmove.c (optimize_reg_copy_3): Likewise.
10187 * rtlhooks.c (gen_lowpart_general): Likewise.
10188 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
10189
10190 2011-07-06 Joseph Myers <joseph@codesourcery.com>
10191
10192 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
10193
10194 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
10195
10196 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
10197 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
10198 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
10199 (simplify_const_unary_operation, simplify_binary_operation_1,
10200 simplify_const_binary_operation, simplify_const_relational_operation):
10201 Use them. Use GET_MODE_MASK for masking and sign-extensions.
10202 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
10203 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
10204 simplify_shift_const_1, simplify_comparison): Likewise.
10205 * expr.c (convert_modes): Likewise.
10206 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
10207 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
10208 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
10209
10210 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
10211
10212 2011-07-06 Richard Guenther <rguenther@suse.de>
10213
10214 PR tree-optimization/49645
10215 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
10216 register variables.
10217 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
10218 in type qualification here ...
10219 (copy_reference_ops_from_ref): ... not here.
10220 (vn_reference_lookup_3): ... or here.
10221 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
10222 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
10223
10224 2011-07-06 Ian Lance Taylor <iant@google.com>
10225
10226 * doc/install.texi (Configuration): It's
10227 --enable-gnu-indirect-function, not --enable-indirect-function.
10228
10229 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
10230
10231 * simplify-rtx.c (simplify_const_binary_operation): Use the
10232 shift_truncation_mask hook instead of performing modulo by width.
10233 Compare against mode precision, not bitsize.
10234 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
10235 Use shift_truncation_mask instead of constructing the value manually.
10236
10237 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
10238
10239 PR middle-end/47383
10240 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
10241 address computation and convert to address_mode if needed.
10242
10243 2011-07-06 Richard Guenther <rguenther@suse.de>
10244
10245 * tree.c (build_common_tree_nodes_2): Merge with
10246 build_common_tree_nodes.
10247 * tree.h (build_common_tree_nodes): Adjust prototype.
10248 (build_common_tree_nodes_2): Remove.
10249 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
10250 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
10251
10252 2011-07-05 Jakub Jelinek <jakub@redhat.com>
10253
10254 PR tree-optimization/49618
10255 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
10256 t recurse on the decl.
10257 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
10258 return true if expr isn't known to be defined in current
10259 TU or some other LTO partition.
10260
10261 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
10262
10263 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
10264 override CASE_VALUES_THRESHOLD.
10265
10266 * stmt.c (toplevel): Include params.h.
10267 (case_values_threshold): Use the --param case-values-threshold
10268 value if non-zero, otherwise use machine dependent value.
10269 (expand_case): Use case_values_threshold.
10270
10271 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
10272
10273 * doc/invoke.texi (--param case-values-threshold): Document.
10274
10275 2011-07-05 Richard Henderson <rth@redhat.com>
10276
10277 * dwarf2out.c (dwarf2out_cfi_label): Make static.
10278 (dwarf2out_flush_queued_reg_saves): Make static.
10279 (dwarf2out_reg_save): Remove.
10280 (dwarf2out_return_save): Remove.
10281 (dwarf2out_return_reg): Remove.
10282 (dwarf2out_reg_save_reg): Remove.
10283 (dwarf2out_def_cfa): Merge into ...
10284 (dwarf2out_frame_init): ... here.
10285 * dwarf2out.h, tree.h: Remove declarations as necessary.
10286
10287 2011-07-05 Richard Henderson <rth@redhat.com>
10288
10289 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
10290 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
10291 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
10292 the alloc insn.
10293
10294 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
10295 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
10296 (process_epilogue): Don't call dwarf2out_def_cfa.
10297
10298 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
10299 indicate the return address save.
10300 (process_cfa_register): Likewise.
10301
10302 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
10303 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
10304
10305 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
10306 for ar.pfs save at alloc insn.
10307
10308 2011-07-05 Richard Henderson <rth@redhat.com>
10309
10310 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
10311 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
10312 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
10313 stack pointer save.
10314 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
10315 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
10316 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
10317 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
10318
10319 2011-07-05 Richard Henderson <rth@redhat.com>
10320
10321 * config/vax/vax.md (define_c_enum unspecv): New. Define the
10322 VUNSPEC_* constants here instead of via define_constants.
10323 (VUNSPEC_PEM): New constant.
10324 (procedure_entry_mask): New insn.
10325 (prologue): New expander.
10326 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
10327 (vax_expand_prologue): Rename from vax_output_function_prologue;
10328 emit rtl instead of text.
10329 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
10330 (print_operand): Add 'x' prefix.
10331
10332 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
10333
10334 PR middle-end/47715
10335 * calls.c (precompute_register_parameters): Promote the function
10336 argument before checking non-legitimate constant.
10337
10338 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
10339
10340 PR tree-optimization/47654
10341 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
10342 (lst_do_strip_mine_loop): Return an int.
10343 (lst_do_strip_mine): Same.
10344 (scop_do_strip_mine): Same.
10345 (scop_do_block): Loop blocking should strip-mine at least two loops.
10346 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
10347 (scop_do_interchange): Same.
10348 * graphite-poly.h (scop_do_interchange): Update declaration.
10349 (scop_do_strip_mine): Same.
10350
10351 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
10352
10353 * graphite-clast-to-gimple.c (precision_for_value): Removed.
10354 (precision_for_interval): Removed.
10355 (gcc_type_for_interval): Use mpz_sizeinbase.
10356
10357 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
10358
10359 * graphite-ppl.h (value_max): Correct computation of max.
10360
10361 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
10362
10363 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
10364
10365 2011-07-05 Richard Guenther <rguenther@suse.de>
10366
10367 * c-decl.c (c_init_decl_processing): Defer building common
10368 tree nodes to c_common_nodes_and_builtins.
10369
10370 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
10371
10372 PR tree-optimization/49580
10373 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
10374 the loop's number of iterations.
10375 * tree-parloops.c (transform_to_exit_first_loop): Add the
10376 handling of the loop's number of iterations before the call
10377 to gimple_duplicate_sese_tail.
10378 Insert the stmt caclculating the new rhs of the loop's
10379 condition stmt to the preheader instead of iters_bb.
10380
10381 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
10382
10383 PR rtl-optimization/47449
10384 * fwprop.c (forward_propagate_subreg): Don't propagate hard
10385 register nor zero/sign extended hard register.
10386
10387 2011-07-05 Richard Guenther <rguenther@suse.de>
10388
10389 PR tree-optimization/49518
10390 PR tree-optimization/49628
10391 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
10392 irrelevant and invariant data-references.
10393 (vect_analyze_data_ref_access): For invariant loads clear the
10394 group association.
10395
10396 2011-07-04 Jakub Jelinek <jakub@redhat.com>
10397
10398 PR rtl-optimization/49619
10399 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
10400 pass VOIDmode as op0_mode to recursive call, and return temp even
10401 when different from tor, just if it is not IOR of the original
10402 PLUS arguments.
10403
10404 PR rtl-optimization/49472
10405 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
10406 negating MULT, negate the second operand instead of first.
10407 (simplify_binary_operation_1) <case MULT>: If one operand is
10408 a NEG and the other is MULT, don't attempt to optimize by negation
10409 of the MULT operand if it only moves the NEG operation around.
10410
10411 PR debug/49602
10412 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
10413 get_current_def return value if it can't be trusted to be
10414 the current value of the variable in the current bb.
10415
10416 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
10417
10418 PR target/49600
10419 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
10420 general register to memory for !TARGET_INTER_UNIT_MOVES.
10421
10422 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
10423
10424 PR target/44643
10425 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
10426 instead of TREE_READONLY.
10427
10428 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
10429
10430 * doc/extend.texi (AVR Built-in Functions): Update documentation
10431 of __builtin_avr_fmul*.
10432 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
10433 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
10434 * config/avr/avr.md (fmul): Rename to fmul_insn.
10435 (fmuls): Rename to fmuls_insn.
10436 (fmulsu): Rename to fmulsu_insn.
10437 (fmul,fmuls,fmulsu): New expander.
10438 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
10439 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
10440 * config/avr/libgcc.S (__fmul): New function.
10441 (__fmuls): New function.
10442 (__fmulsu,__fmulsu_exit): New function.
10443
10444 2011-07-04 Richard Guenther <rguenther@suse.de>
10445
10446 PR tree-optimization/49615
10447 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
10448 basic-block index check.
10449
10450 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
10451
10452 * longlong.h (count_leading_zeros, count_trailing_zeros,
10453 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
10454 resp. 64.
10455
10456 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
10457
10458 PR tree-optimization/49610
10459 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
10460 a basic block.
10461
10462 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
10463 Olivier Hainque <hainque@adacore.com>
10464 Nicolas Setton <setton@adacore.com>
10465
10466 * tree.h (TYPE_ARTIFICIAL): New flag.
10467 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
10468 the DIE of the type if it is artificial.
10469 (gen_array_type_die): Likewise.
10470 (gen_enumeration_type_die): Likewise.
10471 (gen_struct_or_union_type_die): Likewise.
10472 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
10473 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
10474
10475 2011-07-01 Jakub Jelinek <jakub@redhat.com>
10476
10477 * tree-object-size.c (pass_through_call): Handle
10478 BUILT_IN_ASSUME_ALIGNED.
10479
10480 2011-07-01 Martin Jambor <mjambor@suse.cz>
10481
10482 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
10483
10484 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
10485
10486 PR middle-end/48016
10487 * explow.c (update_nonlocal_goto_save_area): Use proper mode
10488 for stack save area.
10489 * function.c (expand_function_start): Likewise.
10490
10491 2011-07-01 Richard Guenther <rguenther@suse.de>
10492
10493 PR middle-end/49596
10494 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
10495 may have unknown refs.
10496
10497 2011-07-01 Kai Tietz <ktietz@redhat.com>
10498
10499 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
10500
10501 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10502
10503 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
10504 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
10505 (Specific, mips-sgi-irix6): Likewise.
10506
10507 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10508
10509 PR libmudflap/49549
10510 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
10511
10512 2011-07-01 Jakub Jelinek <jakub@redhat.com>
10513
10514 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
10515 [idx]= and [idx1 ... idx2]= before initializers if needed for
10516 array initializers.
10517
10518 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
10519
10520 * config.gcc (score-*-elf): Remove score7.o.
10521 * config/score/t-score-elf: Likewise.
10522 * config/score/score.c: Merge score7 to score.c and
10523 remove forwarding functions.
10524 * config/score/score7.c: Deleted.
10525 * config/score/score7.h: Deleted.
10526
10527 2011-07-01 Richard Guenther <rguenther@suse.de>
10528
10529 PR tree-optimization/49603
10530 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
10531
10532 2011-06-30 Martin Jambor <mjambor@suse.cz>
10533
10534 * tree-sra.c (struct access): Rename total_scalarization to
10535 grp_total_scalarization
10536 (completely_scalarize_var): New function.
10537 (sort_and_splice_var_accesses): Set total_scalarization in the
10538 representative access.
10539 (analyze_access_subtree): Propagate total scalarization accross the
10540 tree, no holes in totally scalarized trees, simplify coverage
10541 computation.
10542 (analyze_all_variable_accesses): Call completely_scalarize_var instead
10543 of completely_scalarize_record.
10544
10545 2011-06-30 Richard Henderson <rth@redhat.com>
10546
10547 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
10548 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
10549 * config/i386/i386.c: Don't include dwarf2out.h.
10550 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
10551 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
10552 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
10553 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
10554 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
10555
10556 2011-06-30 Richard Henderson <rth@redhat.com>
10557
10558 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
10559 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
10560 * final.c (final_scan_insn): Look for it, and invoke
10561 dwarf2out_frame_debug before the insn if found.
10562
10563 2011-06-30 Richard Henderson <rth@redhat.com>
10564
10565 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
10566 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
10567
10568 2011-06-30 Richard Henderson <rth@redhat.com>
10569
10570 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
10571 Define a vector of this type.
10572 (regs_saved_in_regs): Use a VEC.
10573 (num_regs_saved_in_regs): Remove.
10574 (compare_reg_or_pc): New.
10575 (record_reg_saved_in_reg): Split out from...
10576 (dwarf2out_flush_queued_reg_saves): ... here.
10577 (clobbers_queued_reg_save): Update for VEC.
10578 (reg_saved_in): Likewise.
10579 (dwarf2out_frame_debug_init): Likewise.
10580 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
10581 (dwarf2out_frame_debug_cfa_register): Likewise.
10582
10583 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
10584
10585 PR tree-optimization/49572
10586 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
10587 type of the RHS instead of that of the LHS for the expression type.
10588
10589 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
10590
10591 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
10592 unconditionally.
10593
10594 2011-06-30 Richard Guenther <rguenther@suse.de>
10595
10596 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
10597 * tree-ssa-structalias.c (create_variable_info_for): Do not
10598 add initial constraints for non-var-decls. Properly handle
10599 globals in other ltrans partitions.
10600 (intra_create_variable_infos): Manually create constraints for
10601 the fake no-alias parameter.
10602 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
10603 and assert there are no clones.
10604
10605 2011-06-30 Richard Guenther <rguenther@suse.de>
10606
10607 PR tree-optimization/46787
10608 * tree-data-ref.c (dr_address_invariant_p): Remove.
10609 (find_data_references_in_stmt): Invariant accesses are ok now.
10610 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
10611 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
10612 invariant loads.
10613
10614 2011-06-30 Martin Jambor <mjambor@suse.cz>
10615
10616 PR tree-optimization/49094
10617 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
10618 (build_accesses_from_assign): Use it.
10619
10620 2011-06-30 Jakub Jelinek <jakub@redhat.com>
10621
10622 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10623 handling of BUILT_IN_ASSUME_ALIGNED.
10624
10625 PR debug/49364
10626 * dwarf2out.c (output_abbrev_section): Don't return early
10627 if abbrev_die_table_in_use is 1.
10628 (dwarf2out_finish): Instead don't call output_abbrev_section
10629 nor emit abbrev_section_label in that case.
10630
10631 2011-06-30 Nick Clifton <nickc@redhat.com>
10632
10633 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
10634 for the V850E.
10635
10636 2011-06-30 Jakub Jelinek <jakub@redhat.com>
10637
10638 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10639 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
10640
10641 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
10642
10643 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
10644 both pattern and original statements if necessary.
10645 (vect_transform_loop): Likewise.
10646 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
10647 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
10648 Mark the pattern statement only if the original statement doesn't
10649 have its own uses.
10650 (process_use): Call vect_mark_relevant with additional parameter.
10651 (vect_mark_stmts_to_be_vectorized): Likewise.
10652 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
10653 (vect_analyze_stmt): Handle both pattern and original statements
10654 if necessary.
10655 (vect_transform_stmt): Don't store vectorized pattern statement
10656 in the original statement.
10657 (vect_is_simple_use_1): Use related pattern statement only if the
10658 original statement is irrelevant.
10659 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
10660
10661 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
10662
10663 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
10664 option.
10665 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
10666 entry.
10667 (TARGET_AVX128_OPTIMAL): New definition.
10668 * config/i386/i386.c (initial_ix86_tune_features): Initialize
10669 X86_TUNE_AVX128_OPTIMAL entry.
10670 (ix86_option_override_internal): Enable the generation
10671 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
10672 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
10673 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
10674
10675 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
10676
10677 PR tree-optimization/49539
10678 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
10679 names by means of stmt_references_abnormal_ssa_name.
10680 (associate_plusminus): Call can_propagate_from before propagating
10681 from definition statements.
10682 (ssa_forward_propagate_and_combine): Remove superfluous newline.
10683
10684 2011-06-29 Richard Guenther <rguenther@suse.de>
10685
10686 * doc/invoke.texi: Document -scev dump modifier.
10687 * tree-pass.h (TDF_SCEV): New dump flag.
10688 * tree-dump.c (dump_option_value_in): Add scev.
10689 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
10690 * tree-scalar-evolution.c: Likewise.
10691
10692 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
10693
10694 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
10695 (cxa_type_match): Correct declaration.
10696 (__gnu_unwind_pr_common): Reconstruct additional indirection
10697 when __cxa_type_match returns succeeded_with_ptr_to_base.
10698
10699 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10700
10701 PR rtl-optimization/49114
10702 * reload.c (struct replacement): Remove SUBREG_LOC member.
10703 (push_reload): Do not set it.
10704 (push_replacement): Likewise.
10705 (subst_reload): Remove dead code.
10706 (copy_replacements): Remove assertion.
10707 (copy_replacements_1): Do not handle SUBREG_LOC.
10708 (move_replacements): Likewise.
10709 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
10710 Detect subregs via recursive descent instead of via SUBREG_LOC.
10711
10712 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10713
10714 * config/avr/avr.c (avr_encode_section_info): Dispatch to
10715 default_encode_section_info.
10716
10717 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
10718
10719 PR tree-optimization/49545
10720 * builtins.c (get_object_alignment_1): Update function comment.
10721 Do not use DECL_ALIGN for functions, but test
10722 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
10723 * fold-const.c (get_pointer_modulus_and_residue): Don't check
10724 for functions here.
10725 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
10726
10727 2011-06-29 Jakub Jelinek <jakub@redhat.com>
10728
10729 PR debug/49567
10730 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
10731 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
10732
10733 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10734
10735 PR target/34734
10736 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
10737 about uninitialized data attributed 'progmem' from here...
10738 (avr_encode_section_info): ...to this new function.
10739 (TARGET_ENCODE_SECTION_INFO): New define.
10740 (avr_section_type_flags): For data in ".progmem.data", remove
10741 section flag SECTION_WRITE.
10742
10743 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10744
10745 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
10746 _xmulhisi3_exit.
10747 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
10748 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
10749 (__umulhisi3): Ditto.
10750 * config/avr/avr.md (mulhisi3): New insn expender.
10751 (umulhisi3): New insn expender.
10752 (*mulhisi3_call): New insn.
10753 (*umulhisi3_call): New insn.
10754
10755 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10756
10757 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
10758
10759 2011-06-28 Richard Henderson <rth@redhat.com>
10760
10761 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
10762 all code and arguments that handled pushes. Update all callers.
10763
10764 2011-06-28 Richard Henderson <rth@redhat.com>
10765
10766 * config/arm/arm.c (arm_output_function_prologue): Don't call
10767 thumb1_output_function_prologue.
10768 (arm_expand_prologue): Avoid dead store.
10769 (number_of_first_bit_set): Use ctz_hwi.
10770 (thumb1_emit_multi_reg_push): New.
10771 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
10772 to emit the entire prologue as rtl.
10773 (thumb1_output_interwork): Split out from
10774 thumb1_output_function_prologue.
10775 (thumb1_output_function_prologue): Remove.
10776 (arm_attr_length_push_multi): Handle thumb1.
10777 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
10778 (prologue_thumb1_interwork): New.
10779 (*push_multi): Allow thumb1; use push_mult_memory_operand.
10780 * config/arm/predicates.md (push_mult_memory_operand): New.
10781
10782 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
10783
10784 * config/sparc/sync.md (*stbar): Delete.
10785 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
10786
10787 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
10788
10789 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
10790
10791 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10792
10793 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
10794 (TARGET_64BIT_DEFAULT): Define.
10795 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
10796 of tm_file.
10797 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
10798
10799 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10800
10801 * common.opt (in_lto_p): New Variable entry.
10802 * flags.h (in_lto_p): Move to common.opt.
10803 * gcc.c: Include params.h.
10804 (set_option_handlers): Also use common_handle_option and
10805 target_handle_option.
10806 (main): Call global_init_params, finish_params and init_options_struct.
10807 * opts.c (debug_type_names): Move from toplev.c.
10808 (print_filtered_help): Access quiet_flag through opts pointer.
10809 (common_handle_option): Return early in the driver for some options.
10810 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
10811 opts pointer.
10812 * toplev.c (in_lto_p): Move to common.opt.
10813 (debug_type_names): Move to opts.c.
10814 * Makefile.in (OBJS): Remove opts.o.
10815 (OBJS-libcommon-target): Add opts.o.
10816 (gcc.o): Update dependencies.
10817
10818 2011-06-28 Kai Tietz <ktietz@redhat.com>
10819
10820 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
10821
10822 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10823
10824 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
10825 with '=' constraint modifier.
10826 (*divdf3_vfp): Likewise.
10827 ("*mulsf3_vfp"): Likewise.
10828 ("*muldf3_vfp"): Likewise.
10829 ("*mulsf3negsf_vfp"): Likewise.
10830 ("*muldf3negdf_vfp"): Likewise.
10831
10832 2011-06-28 Nick Clifton <nickc@redhat.com>
10833
10834 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
10835 relaxation when performing an incremental link.
10836
10837 2011-06-28 Kai Tietz <ktietz@redhat.com>
10838
10839 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
10840 within BB from last to first.
10841
10842 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10843
10844 * genattr-common.c: New. Based on genattr.c.
10845 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
10846 (MOSTLYCLEANFILES): Add insn-attr-common.h.
10847 (opts.o): Update dependencies.
10848 (.PRECIOUS): Add insn-attr-common.h.
10849 (simple_rtl_generated_h): Add insn-attr-common.h.
10850 (build/genattr-common.o): New.
10851 (genprogrtl): Add attr-common.
10852 * genattr.c (main): Include insn-attr-common.h. Don't generate
10853 definitions of DELAY_SLOTS or INSN_SCHEDULING.
10854 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
10855
10856 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
10857
10858 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
10859 avr-*-* and avr-*-rtems* targets.
10860
10861 * config/avr/elf.h: New file.
10862 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
10863 (TARGET_ASM_SELECT_SECTION): Define.
10864 (INIT_SECTION_ASM_OP): Undefine.
10865 (FINI_SECTION_ASM_OP): Undefine.
10866 (READONLY_DATA_SECTION_ASM_OP): Undefine.
10867 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
10868 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
10869 * config/avr/avr.h:
10870 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
10871 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
10872 (MAX_OFILE_ALIGNMENT): Move to elf.h.
10873 (STRING_LIMIT): Move to elf.h.
10874 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
10875 (ASM_DECLARE_OBJECT_NAME): Remove.
10876 (ESCAPES): Remove.
10877 (ASM_OUTPUT_SKIP): Remove.
10878 (DWARF2_DEBUGGING_INFO): Remove.
10879 (OBJECT_FORMAT_ELF): Remove.
10880 (USER_LABEL_PREFIX): Remove.
10881 (ASM_OUTPUT_EXTERNAL): Remove.
10882 (ASM_OUTPUT_ASCII): Remove.
10883 (TYPE_ASM_OP): Remove.
10884 (SIZE_ASM_OP): Remove.
10885 (WEAK_ASM_OP): Remove.
10886 (STRING_ASM_OP): Remove.
10887 (SET_ASM_OP): Remove.
10888 (ASM_WEAKEN_LABEL): Remove.
10889 (TYPE_OPERAND_FMT): Remove.
10890 (ASM_DECLARE_FUNCTION_SIZE): Remove.
10891 (ASM_FINISH_DECLARE_OBJECT): Remove.
10892 (NO_DOLLAR_IN_LABEL): Remove.
10893 (ASM_GENERATE_INTERNAL_LABEL): Remove.
10894 (ASM_OUTPUT_CASE_LABEL): Remove.
10895 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
10896 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
10897 (gas_output_ascii): Remove.
10898 (gas_output_limited_string): Remove.
10899 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
10900 * config/avr/avr-protos.h
10901 (gas_output_ascii): Remove prototye.
10902 (gas_output_limited_string): Remove prototype.
10903
10904 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
10905
10906 PR target/48637
10907 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
10908 asm operands.
10909
10910 2011-06-27 Jan Hubicka <jh@suse.cz>
10911
10912 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
10913 node instead of references in node.
10914
10915 2011-06-27 Richard Henderson <rth@redhat.com>
10916
10917 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
10918 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
10919 inside ifdef.
10920
10921 2011-06-27 Jakub Jelinek <jakub@redhat.com>
10922
10923 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
10924
10925 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
10926 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
10927 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
10928 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
10929 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
10930 (evaluate_stmt, execute_fold_all_builtins): Handle
10931 BUILT_IN_ASSUME_ALIGNED.
10932 * tree-ssa-dce.c (propagate_necessity): Likewise.
10933 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10934 call_may_clobber_ref_p_1): Likewise.
10935 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
10936 (expand_builtin_assume_aligned): New function.
10937 * doc/extend.texi (__builtin_assume_aligned): Document.
10938
10939 PR debug/49544
10940 * cselib.c (promote_debug_loc): If cselib_preserve_constants
10941 and l has two DEBUG_INSN owned locs instead of just one, adjust
10942 the second location's setting_insn too.
10943
10944 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10945
10946 PR libmudflap/38738
10947 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
10948
10949 2011-06-27 Nick Clifton <nickc@redhat.com>
10950
10951 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
10952 bit position of highest bit set into a count of the high zero bits.
10953
10954 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10955
10956 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
10957
10958 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10959
10960 PR lto/48492
10961 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
10962 to a NULL parent.
10963
10964 2011-06-27 Richard Guenther <rguenther@suse.de>
10965
10966 PR tree-optimization/49394
10967 * passes.c (execute_one_pass): Restore current_pass after
10968 applying IPA transforms.
10969
10970 2011-06-27 Kai Tietz <ktietz@redhat.com>
10971
10972 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
10973 out of type precision after operation.
10974 (find_bswap): Take for limit value the integer auto-promotion
10975 into account.
10976
10977 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10978
10979 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
10980 forward scan as well.
10981
10982 2011-06-27 Tristan Gingold <gingold@adacore.com>
10983
10984 PR target/44241
10985 * config/vms/vms-protos.h: New file.
10986 * config/vms/vms-crtlmap.map: New file.
10987 * config/vms/vms.c: New file.
10988 * config/vms/make-crtlmap.awk: New file.
10989 * config/vms/vms-crtl.h: File removed.
10990 * config/vms/vms-crtl-64.h: File removed.
10991 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
10992 * config/alpha/vms64.h: Do not include vms-crtl-64.h
10993 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
10994 clear some builtins on VMS. Calls vms_patch_builtins.
10995 (avms_asm_output_external): Remove.
10996 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
10997 (struct crtl_name_spec): Remove
10998 (DO_CTRL_NAMES): Remove.
10999 * config/ia64/vms.h (struct crtl_name_spec): Remove
11000 (DO_CTRL_NAMES): Remove.
11001 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
11002 clear some builtins on VMS. Calls vms_patch_builtins.
11003 (ia64_asm_output_external): Remove DO_CRTL_NAME.
11004 * config/ia64/vms64.h: Do not include vms-crtl-64.h
11005 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
11006
11007 2011-06-27 Tristan Gingold <gingold@adacore.com>
11008
11009 * config/alpha/alpha.c (alpha_end_function): Always generate .end
11010 directive on VMS.
11011
11012 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
11013
11014 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
11015 the function receives nonlocal gotos.
11016
11017 2011-06-27 Richard Guenther <rguenther@suse.de>
11018
11019 PR tree-optimization/49536
11020 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
11021 For non-scalar inner types use a scalar type according to
11022 the scalar inner mode.
11023
11024 2011-06-27 Richard Guenther <rguenther@suse.de>
11025
11026 PR tree-optimization/49365
11027 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
11028
11029 2011-06-27 Richard Guenther <rguenther@suse.de>
11030
11031 PR tree-optimization/49169
11032 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
11033 the alignment of function decls.
11034
11035 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
11036
11037 PR target/47997
11038 * config/darwin.c (darwin_mergeable_string_section): Place string
11039 constants in '.cstring' rather than '.const' when CF/NSStrings are
11040 active.
11041
11042 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
11043
11044 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
11045 (emit_save_register_window): Likewise.
11046 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
11047 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
11048 Swap back %o7/%i7 in register naming.
11049
11050 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
11051
11052 PR driver/49371
11053 * config/darwin.c (darwin_override_options): Improve warning when
11054 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
11055 is given with fpie/fPIE.
11056 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
11057 * config/darwin9.h (PIE_SPEC): New.
11058
11059 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
11060
11061 * timevar.c (timevar_print): Increase width for display of timevar
11062 name.
11063
11064 2011-06-24 Jakub Jelinek <jakub@redhat.com>
11065
11066 PR c++/46400
11067 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
11068 instead of TYPE_CHAIN for chain_next for types.
11069
11070 2011-06-24 Richard Henderson <rth@redhat.com>
11071
11072 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
11073 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
11074 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
11075 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
11076 (sparc_flat_expand_prologue): Emit individual instructions
11077 instead of one of the above.
11078
11079 2011-06-24 Easwaran Raman <eraman@google.com>
11080
11081 PR rtl-optimization/49429
11082 PR target/49454
11083 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
11084 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
11085 used to copy y into x.
11086 * calls.c (initialize_argument_information): Mark
11087 an argument addressable if it is passed by invisible reference.
11088 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
11089 if it is passed by reference.
11090
11091 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
11092
11093 PR rtl-optimization/49504
11094 * rtlanal.c (nonzero_bits1): Properly handle addition or
11095 subtraction of a pointer in Pmode if pointers extend unsigned.
11096 (num_sign_bit_copies1): Likewise.
11097
11098 2011-06-24 Martin Jambor <mjambor@suse.cz>
11099
11100 PR tree-optimizations/49516
11101 * tree-sra.c (sra_modify_assign): Choose the safe path for
11102 aggregate copies if we also did scalar replacements.
11103
11104 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11105
11106 PR target/49335
11107 * config/arm/predicates.md (add_operator): New.
11108 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
11109
11110 2011-06-24 Andi Kleen <ak@linux.intel.com>
11111
11112 * tree-sra.c (type_internals_preclude_sra_p): Add msg
11113 parameter. Split up ifs and report reason in *msg.
11114 (reject): Add.
11115 (find_var_candiate): Add msg variable.
11116 Split up ifs and report reason to reject.
11117 (find_param_candidates): Add msg variable.
11118 Pass msg to type_internals_preclude_sra_p.
11119
11120 2011-06-23 Jeff Law <law@redhat.com>
11121
11122 PR middle-end/48770
11123 * reload.h (reload): Change to return a bool.
11124 * ira.c (ira): If requested by reload, run a fast DCE pass after
11125 reload has completed. Fix comment typo.
11126 * reload1.c (need_dce): New file scoped static.
11127 (reload): Set reload_completed here. Return whether or not a DCE
11128 pass after reload is needed.
11129 (delete_dead_insn): Set need_dce as needed.
11130
11131 PR middle-end/49465
11132 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
11133 to detect threading through joiner block. If there was already
11134 an edge to the new target, then do not change the PHI nodes.
11135
11136 2011-06-23 Jakub Jelinek <jakub@redhat.com>
11137
11138 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
11139 get_pointer_alignment to see if base isn't sufficiently aligned.
11140
11141 2011-06-23 Jan Hubicka <jh@suse.cz>
11142
11143 PR tree-optimize/49373
11144 * tree-pass.h (all_late_ipa_passes): Declare.
11145 * cgraphunit.c (init_lowered_empty_function): Fix properties.
11146 (cgraph_optimize): Execute late passes; remove unreachable funcions
11147 after materialization.
11148 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
11149 LTOing.
11150 * passes.c (all_late_ipa_passes): Declare.
11151 (dump_passes, register_pass): Handle late ipa passes.
11152 (init_optimization_passes): Move ipa_pta to late passes; schedule
11153 fixup_cfg at beggining of all_passes.
11154 (apply_ipa_transforms): New function.
11155 (execute_one_pass): When doing simple ipa pass, apply all transforms.
11156
11157 2011-06-23 Joseph Myers <joseph@codesourcery.com>
11158
11159 * params.c: Include common/common-target.h. Don't include tm.h.
11160 (lang_independent_params): Move from toplev.c.
11161 (global_init_params): New.
11162 * params.h (global_init_params): Declare.
11163 * target.def (default_params): Move to common-target.def.
11164 * toplev.c (lang_independent_options): Remove.
11165 (lang_independent_params): Move to params.c.
11166 (general_init): Use global_init_params.
11167 * common/common-target.def (option_default_params): Move from
11168 target.def.
11169 * common/config/ia64/ia64-common.c: Include params.h.
11170 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11171 from ia64.c.
11172 * common/config/rs6000/rs6000-common.c: Include params.h.
11173 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11174 from rs6000.c.
11175 * common/config/sh/sh-common.c: Include params.h.
11176 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11177 from sh.c.
11178 * common/config/spu/spu-common.c: Include params.h.
11179 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11180 from spu.c.
11181 * config/ia64/ia64.c (ia64_option_default_params,
11182 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
11183 * config/rs6000/rs6000.c (rs6000_option_default_params,
11184 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
11185 * config/sh/sh.c (sh_option_default_params,
11186 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
11187 * config/spu/spu.c (spu_option_default_params,
11188 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
11189 * Makefile.in (OBJS): Remove params.o.
11190 (OBJS-libcommon-target): Add params.o.
11191 (params.o, $(common_out_object_file)): Update dependencies.
11192 * doc/tm.texi: Regenerate.
11193
11194 2011-06-23 Alan Modra <amodra@gmail.com>
11195
11196 PR bootstrap/49383
11197 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
11198 invocation for 2011-06-09 changes.
11199
11200 2011-06-22 Jakub Jelinek <jakub@redhat.com>
11201
11202 PR libgomp/49490
11203 * omp-low.c (expand_omp_for_static_nochunk): Only
11204 use n ceil/ nthreads size for the first n % nthreads threads in the
11205 team instead of all threads except for the last few ones which
11206 get less work or none at all.
11207
11208 PR debug/49496
11209 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
11210 uses.
11211
11212 2011-06-22 Richard Guenther <rguenther@suse.de>
11213
11214 PR tree-optimization/49493
11215 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
11216 Refer to the alias target of variables.
11217 (associate_varinfo_to_alias_1): Remove.
11218 (ipa_pta_execute): Do not associate aliases with anything.
11219 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
11220 (cgraph_function_node): Likewise.
11221 (cgraph_function_or_thunk_node): Likewise.
11222 (varpool_variable_node): Likewise.
11223
11224 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
11225
11226 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
11227 * config.gcc (arm*-*-linux*): Default to gnu tls.
11228 (arm*-*-*): Add --with-tls option.
11229 (all_defaults): Add 'tls'.
11230
11231 2011-06-22 Richard Henderson <rth@redhat.com>
11232
11233 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
11234 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
11235 (dwarf2out_frame_debug_cfa_window_save): Rename from
11236 dwarf2out_window_save; make static.
11237 * tree.h (dwarf2out_window_save): Don't declare.
11238
11239 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
11240 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
11241 (emit_save_register_window): Rename from gen_save_register_window;
11242 emit the insn and add REG_CFA_* notes.
11243 (sparc_expand_prologue): Update to match.
11244 * config/sparc/sparc.md (save_register_window_1): Simplify from
11245 save_register_window<P:mode>.
11246
11247 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
11248
11249 PR target/49497
11250 * config/i386/i386.md (*lea_general_2): Always allow SImode.
11251 (*lea_general_2_zext): Likewise.
11252 (imul to lea peepholes): Use const359_operand and check
11253 TARGET_PARTIAL_REG_STALL.
11254
11255 * config/i386/predicates.md (const359_operand): New.
11256
11257 2011-06-22 Michael Matz <matz@suse.de>
11258
11259 * cgraphunit.c (assemble_thunk): Use correct return type.
11260
11261 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
11262 Dmitry Melnik <dm@ispras.ru>
11263
11264 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
11265 (neon_output_shift_immediate): Ditto.
11266 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
11267 prototype.
11268 (neon_output_shift_immediate): Ditto.
11269 * config/arm/neon.md (vashl<mode>3): Modified constraint.
11270 (vashr<mode>3_imm): New insn pattern.
11271 (vlshr<mode>3_imm): Ditto.
11272 (vashr<mode>3): Modified constraint.
11273 (vlshr<mode>3): Ditto.
11274 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
11275 predicate.
11276 (imm_for_neon_rshift_operand): Ditto.
11277 (imm_lshift_or_reg_neon): Ditto.
11278 (imm_rshift_or_reg_neon): Ditto.
11279
11280 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
11281
11282 2011-06-22 Jakub Jelinek <jakub@redhat.com>
11283
11284 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
11285 builtin calls even if likelyvalue is not CONSTANT.
11286 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
11287 Return get_value_for_expr of first operand
11288 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
11289 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
11290 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
11291 their non-checking counterparts.
11292 (call_may_clobber_ref_p_1): Likewise.
11293 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
11294 like their non-checking counterparts.
11295 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11296 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
11297 like their non-checking counterparts.
11298 (find_func_clobbers): Likewise.
11299 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
11300 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
11301
11302 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
11303 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
11304 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
11305 of base type reference as argument.
11306 (resolve_addr_in_expr): Likewise. Fix keep computation.
11307 (convert_descriptor_to_signed): Renamed to...
11308 (convert_descriptor_to_mode): ... this. For wider types convert to
11309 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
11310 (typed_binop): New function.
11311 (scompare_loc_descriptor, ucompare_loc_descriptor,
11312 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
11313 default to unsigned type instead of signed.
11314
11315 PR debug/47858
11316 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
11317 (gimple_build_debug_source_bind_stat): New prototype.
11318 (gimple_build_debug_source_bind): Define.
11319 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
11320 gimple_debug_source_bind_get_value,
11321 gimple_debug_source_bind_get_value_ptr,
11322 gimple_debug_source_bind_set_var,
11323 gimple_debug_source_bind_set_value): New inlines.
11324 * gimple.c (gimple_build_debug_source_bind_stat): New function.
11325 * gimple-pretty-print.c (dump_gimple_debug): Handle
11326 GIMPLE_DEBUG_SOURCE_BIND.
11327 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
11328 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
11329 * tree-parloops.c (eliminate_local_variables,
11330 separate_decls_in_region): Likewise.
11331 (separate_decls_in_region_debug): Renamed from
11332 separate_decls_in_region_debug_bind. Handle
11333 gimple_debug_source_bind_p.
11334 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
11335 prototypes.
11336 (DECL_HAS_DEBUG_ARGS_P): Define.
11337 (struct tree_function_decl): Add has_debug_args_flag field.
11338 * tree.c (debug_args_for_decl): New variable.
11339 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
11340 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
11341 (rewrite_debug_stmt_uses): New function.
11342 (rewrite_stmt): Use it to rewrite debug stmt uses.
11343 * rtl.def (DEBUG_PARAMETER_REF): New.
11344 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
11345 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
11346 DEBUG_PARAMETER_REF.
11347 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
11348 * print-rtl.c (print_rtx): Likewise.
11349 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
11350 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
11351 debug stmts in the first bb.
11352 * tree-inline.c (remap_ssa_name): If remapping default def
11353 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
11354 a source bind debug stmt.
11355 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
11356 (maybe_move_debug_stmts_to_successors): Likewise.
11357 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
11358 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
11359 debug args vector from old_decl to new_decl.
11360 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
11361 or modified parameters, add debug bind stmts before call
11362 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
11363 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
11364 on DECL_DEBUG_EXPRs from debug args vector.
11365 (expand_debug_source_expr): New function.
11366 (expand_debug_locations): Use it for source bind insns.
11367 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
11368 * var-tracking.c (prepare_call_arguments): Add debug args
11369 to call_arguments if any.
11370 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
11371 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
11372 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
11373 (get_ref_die_offset, parameter_ref_descriptor): New functions.
11374 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
11375 (gen_subprogram_die): Handle parameters identified by
11376 DEBUG_PARAMETER_REF.
11377
11378 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
11379
11380 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
11381 * doc/install.texi (Configuration): Document --with-tls.
11382 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
11383 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
11384 (arm_tls_descseq_addr): New.
11385 (legitimize_tls_address): Add tlsdesc support.
11386 (arm_cannot_copy_insn_p): Check for tlscall.
11387 (arm_emit_tls_decoration): Likewise.
11388 * config/arm/arm.h (TARGET_GNU2_TLS): New.
11389 (OPTION_DEFAULT_SPECS): Add with-tls support.
11390 * config/arm/arm.md (R1_REGNUM): Define.
11391 (tlscall): New.
11392 * config/arm/arm.opt (tls_type): New enumeration type and values.
11393 (mtls-dialect): New switch.
11394 * config/arm/arm-opts.h (enum tls_type): New.
11395
11396 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
11397
11398 * attribs.c (register_attribute): Added assert to check that all
11399 attribute specs are registered with a name that is not empty and
11400 does not start with '_'.
11401 (decl_attributes): Avoid the lookup of the "naked" attribute spec
11402 if the function has no attributes.
11403 * tree.c (is_attribute_with_length_p): Removed.
11404 (is_attribute_p): Removed.
11405 (private_is_attribute_p): New.
11406 (private_lookup_attribute): New.
11407 (lookup_attribute): Removed.
11408 (lookup_ident_attribute): New.
11409 (remove_attribute): Require the first argument to be in the form
11410 'text', not '__text__'. Updated asserts.
11411 (merge_attributes): Use lookup_ident_attributes instead of
11412 lookup_attribute.
11413 (merge_dllimport_decl_attributes): Use remove_attribute.
11414 (attribute_list_contained): Likewise.
11415 (attribute_list_equal): Immediately return 1 if the arguments are
11416 identical pointers.
11417 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
11418 'int'. Require the first argument to be in the form 'text', not
11419 '__text__'. Require the second argument to be an identifier.
11420 (lookup_attribute): Made inline. Require the first argument to be
11421 in the form 'text', not '__text__'.
11422 (private_is_attribute_p, private_lookup_attribute): New.
11423 Updated comments.
11424
11425 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
11426
11427 * builtins.c: Add sync_ or SYNC__ to builtin names.
11428 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
11429 * omp-low.c: Add sync_ or SYNC__ to builtin names.
11430
11431 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
11432
11433 PR target/33049
11434 * config/avr/avr.md (extzv): New expander.
11435 (*extzv): New insn.
11436 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
11437 * config/avr/constraints.md (C04): New constraint.
11438 * doc/md.texi (Machine Constraints): Document it.
11439
11440 2011-06-21 Jakub Jelinek <jakub@redhat.com>
11441
11442 PR middle-end/49489
11443 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
11444 unsignedp argument instead of 1 for clrsb_optab.
11445 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
11446 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
11447 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
11448 * optabs.c (widen_leading): Call widen_operand and expand_unop
11449 with 0 as unsignedp argument instead of 1 for clrsb_optab.
11450 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
11451
11452 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
11453
11454 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
11455
11456 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
11457
11458 * gensupport.c (add_define_attr): New static function.
11459 (is_predicable): Allow multi-alternative lists for the "predicable"
11460 attribute.
11461 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
11462 (process_one_cond_exec): Call alter_attrs_for_insn.
11463 * doc/md.texi (Defining Attributes): Mention some standard names.
11464 (Conditional Execution): Update documentation for "predicable".
11465
11466 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
11467 __builtin_clrsbll): Document.
11468 * doc/rtl.texi (clrsb): New entry.
11469 * optabs.c (widen_leading): Renamed from widen_clz. New argument
11470 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
11471 (expand_unop): Handle clrsb_optab.
11472 (init_optabs): Initialize it.
11473 * optabs.h (enum optab_index): New entry OTI_clrsb.
11474 (clrsb_optab): Define.
11475 * genopinit.c (optabs): Add an entry for it.
11476 * builtins.c (expand_builtin): Handle clrsb builtin functions.
11477 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
11478 BUILT_IN_CLRSBLL): New.
11479 * rtl.def (CLRSB): New code.
11480 * dwarf2out.c (mem_loc_descriptor): Handle it.
11481 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11482 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
11483 and popcount.
11484 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
11485 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
11486 (__ctzDI2): Move declaration.
11487 * config/bfin/bfin.md (clrsbsi2): New expander.
11488 (signbitssi2): Use the CLRSB rtx.
11489 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
11490 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
11491
11492 2011-06-21 Richard Guenther <rguenther@suse.de>
11493
11494 * ipa-inline-transform.c (inline_transform): Fix previous change.
11495
11496 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
11497
11498 PR tree-optimization/49478
11499 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
11500 with constant operand.
11501
11502 2011-06-21 Richard Guenther <rguenther@suse.de>
11503
11504 * ipa-inline-transform.c (inline_transform): Fix typo.
11505
11506 2011-06-21 Richard Guenther <rguenther@suse.de>
11507
11508 PR tree-optimization/49483
11509 * tree-vect-stmts.c (vectorizable_assignment): Also handle
11510 VIEW_CONVERT_EXPR conversions.
11511
11512 2011-06-21 Joseph Myers <joseph@codesourcery.com>
11513
11514 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
11515 * config/avr/avr-tables.opt: New file (generated).
11516 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
11517 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
11518 avr-mcus.def.
11519 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
11520 (avr_option_override): Don't process -mmcu= argument here. Set
11521 avr_current_device using avr_mcu_index.
11522 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
11523 * config/avr/avr.opt (mmcu=): Use Enum.
11524 * config/avr/t-avr (avr-devices.o): Update dependencies.
11525 ($(srcdir)/config/avr/avr-tables.opt): New.
11526 * target.def (help): Remove.
11527 * doc/tm.texi.in (TARGET_HELP): Remove.
11528 * doc/tm.texi: Regenerate.
11529 * opts.c: Don't include target.h.
11530 (common_handle_option): Don't call targetm.help.
11531 * system.h (TARGET_HELP): Poison.
11532 * Makefile.in (opts.o): Update dependencies.
11533
11534 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11535
11536 * config/usegld.h: New file.
11537 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
11538 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
11539 (LIB_SPEC): Likewise. Search /lib.
11540 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
11541 (RDYNAMIC_SPEC): Handle GNU ld.
11542 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
11543 Define.
11544 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
11545 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
11546 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
11547 (STACK_CHECK_STATIC_BUILTIN): Define.
11548 * config/sol2.opt (compat-bsd): Remove.
11549 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
11550 * config/sol2-bi.h: New file.
11551 * config/sol2-gld.h: Remove.
11552 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
11553 (NO_DBX_BNSYM_ENSYM): Remove.
11554 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
11555 (STACK_CHECK_STATIC_BUILTIN): Remove.
11556 Test USE_GLD instead of TARGET_GNU_LD.
11557 * config/i386/sol2-10.h: Rename to ...
11558 * config/i386/sol2-bi.h .. this.
11559 (SUBTARGET_EXTRA_SPECS): Redefine.
11560 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
11561 (MULTILIB_DEFAULTS): Remove.
11562 (DEFAULT_ARCH32_P): Define.
11563 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
11564 (ARCH64_SUBDIR): Define.
11565 Test USE_GLD instead of TARGET_GNU_LD.
11566 (I386_EMULATION): Rename to ...
11567 (ARCH32_EMULATION): ... this.
11568 (X86_64_EMULATION): Rename to ...
11569 (ARCH64_EMULATION): ... this.
11570 (TARGET_LD_EMULATION): Remove.
11571 (LINK_ARCH_SPEC): Remove.
11572 * config/i386/sol2-gas.h: Remove.
11573 * config/i386/t-sol2-10: Rename to ...
11574 * config/i386/t-sol2-64: ... this.
11575 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
11576 (AS_SPARC64_FLAG): Define.
11577 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
11578 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
11579 depending on TARGET_CPU_DEFAULT.
11580 (CPP_CPU_SPEC): Redefine.
11581 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
11582 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
11583 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
11584 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
11585 ASM_ARCH_DEFAULT_SPEC): Redefine.
11586 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
11587 LINK_ARCH_DEFAULT_SPEC.
11588 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
11589 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
11590 (ARCH64_SUBDIR): Define.
11591 (LINK_ARCH64_SPEC): Redefine.
11592 (CC1_SPEC): Redefine.
11593 (OPTION_DEFAULT_SPECS): Redefine.
11594 (MULTILIB_DEFAULTS): Define.
11595 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
11596 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
11597 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
11598 (NO_DBX_BNSYM_ENSYM): Remove.
11599 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
11600 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
11601 (TARGET_ASM_NAMED_SECTION): Likewise.
11602 (STACK_CHECK_STATIC_BUILTIN): Remove.
11603 * config/sparc/sol2-bi.h: Remove.
11604 * config/sparc/sol2-gas-bi.h: Remove.
11605 * config/sparc/sol2-gas.h: Remove.
11606 * config/sparc/sol2-gld-bi.h: Remove.
11607 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
11608 common parts ...
11609 (*-*-solaris2*): ... here.
11610
11611 2011-06-21 Christian Bruel <christian.bruel@st.com>
11612
11613 PR other/43564
11614 * ipa-inline.c (can_inline_edge_p): Check
11615 !DECL_DISREGARD_INLINE_LIMITS.
11616
11617 2011-06-21 Christian Bruel <christian.bruel@st.com>
11618
11619 PR middle-end/49139
11620 * cgraphunit.c (process_function_and_variable_attributes): warn when
11621 always_inline functions that are not inline.
11622 * ipa-inline-transform.c (inline_transform): Always call
11623 optimize_inline.
11624 * tree-inline.c (tree_inlinable_function_p): Use error instead
11625 of sorry.
11626 (expand_call_inline): Likewise.
11627
11628 2011-06-21 Jakub Jelinek <jakub@redhat.com>
11629
11630 * Makefile.in (dg_target_exps): Set.
11631 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
11632 instead of 7, try to divide it more evenly.
11633
11634 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
11635
11636 PR target/49089
11637 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
11638 (avx256_split_unaligned_store): New definition.
11639 (ix86_option_override_internal): Enable avx256 unaligned load/store
11640 splitting only when avx256_split_unaligned_load/store is set.
11641
11642 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
11643
11644 * regrename.c (scan_rtx_reg): Handle the case where we write to an
11645 open chain in a smaller mode without failing the entire block.
11646
11647 2011-06-21 Alan Modra <amodra@gmail.com>
11648
11649 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
11650 CONST high part large-toc address.
11651 (rs6000_tls_referenced_p): Make static.
11652 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
11653
11654 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11655
11656 PR target/49385
11657 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
11658 one of the operands is a register.
11659
11660 2011-06-20 Kai Tietz <ktietz@redhat.com>
11661
11662 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
11663 operations in combination with binary and.
11664
11665 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
11666
11667 * regrename.c (do_replace): Don't update notes.
11668
11669 2011-06-20 Alan Modra <amodra@gmail.com>
11670
11671 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
11672 of toc-relative address in CONST.
11673 (rs6000_delegitimize_address): Recognize changed address.
11674 (rs6000_legitimize_reload_address): Likewise.
11675 (rs6000_emit_move): Don't force these constants to memory.
11676 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
11677 toc-relative address in CONST.
11678 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
11679 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
11680
11681 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
11682
11683 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
11684 (count_trailing_zeros): Likewise.
11685
11686 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
11687
11688 PR other/49325
11689 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
11690 .init_array can be used with .ctors on targets.
11691 * configure: Regenerated.
11692
11693 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
11694
11695 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
11696 if the element type is volatile.
11697
11698 2011-06-18 Jan Hubicka <jh@suse.cz>
11699
11700 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
11701 extra name aliases.
11702 (lto_symtab_resolve_can_prevail_p): Likewise.
11703 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
11704 * cgraphbuild.c (record_reference): Remove extra body alias code.
11705 (mark_load): Likewise.
11706 (mark_store): Likewise.
11707 * cgraph.h (varpool_node): Remove extra_name filed;
11708 add alias_of and extraname_alias.
11709 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
11710 (varpool_alias_aliased_node): New inline function.
11711 (varpool_variable_node): New function.
11712 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
11713 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
11714 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
11715 (input_varpool_node): Likewise.
11716 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
11717 (varpool_externally_visible_p): Remove extra body alias code.
11718 (function_and_variable_visibility): Likewise.
11719 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
11720 (ipa_pta_execute): Use it.
11721 * varpool.c (varpool_remove_node): Remove extra name alias code.
11722 (varpool_mark_needed_node): Likewise.
11723 (varpool_analyze_pending_decls): Analyze aliases.
11724 (assemble_aliases): New functoin.
11725 (varpool_assemble_decl): Use it.
11726 (varpool_create_variable_alias): New function.
11727 (varpool_extra_name_alias): Rewrite.
11728 (varpool_for_node_and_aliases): New function.
11729
11730 2011-06-18 Jakub Jelinek <jakub@redhat.com>
11731
11732 PR target/49411
11733 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
11734 last_arg_constant and last argument doesn't match its predicate,
11735 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
11736 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
11737 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
11738 spelling of error message.
11739 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
11740 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
11741 const_0_to_255_operand instead of const_int_operand.
11742
11743 Revert:
11744 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
11745
11746 * config/i386/sse.md (blendbits): Remove mode attribute.
11747 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
11748 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
11749 Check integer value of operand 3 in insn constraint.
11750
11751 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
11752
11753 PR rtl-optimization/48542
11754 * reload.c (find_equiv_reg): Stop looking when finding a
11755 setjmp-type call.
11756 * reload1.c (reload_as_needed): Invalidate all reload
11757 registers when crossing a setjmp-type call.
11758
11759 2011-06-16 Jeff Law <law@redhat.com>
11760
11761 * tree-ssa-threadupdate.c (struct redirection_data): New field
11762 intermediate_edge.
11763 (THREAD_TARGET2): Define.
11764 (redirection_data_eq): Also check that the intermediate edge is equal.
11765 (lookup_redirection_data): Drop useless argument. Extract the
11766 outgoing_edge and intermediate edge from E. Callers updated.
11767 (copy_phi_args, update_destination_phis): New functions.
11768 (fix_duplicate_block_edges): Likewise.
11769 (create_edge_and_update_destination_phis): Duplicate all the edges
11770 hung off e->aux. Use copy_phi_args.
11771 (create_duplicates): Use fix_duplicate_block_edges.
11772 (fixup_template_block): Likewise.
11773 (redirect_edges): If necessary, redirect the joiner block's incoming
11774 edge to the duplicate of the joiner block.
11775 (thread_block): Don't muck up loops when threading through a joiner
11776 block.
11777 (thread_through_loop_header): Handle threading through a joiner block.
11778 (mark_threaded_blocks, register_jump_thread): Likewise.
11779 * tree-flow.h (register_jump_thread): Add new argument. Callers
11780 updated.
11781 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
11782 (thread_across_edge): Handle threading through a joiner block.
11783
11784 2011-06-16 Martin Jambor <mjambor@suse.cz>
11785
11786 PR tree-optimization/49343
11787 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
11788 calculate offset, provide 2nd operand for the new COMPONENT_REF.
11789
11790 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
11791
11792 * config/darwin-protos.h (machopic_select_rtx_section): Move to
11793 inside RTX_CODE ifdef.
11794
11795 2011-06-16 Tom de Vries <tom@codesourcery.com>
11796
11797 PR target/45098
11798 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
11799 Disallow NULL pointer for pointer arithmetic.
11800
11801 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11802
11803 PR target/49398
11804 Revert.
11805 2011-06-10 Wei Guozhi <carrot@google.com>
11806
11807 PR target/45335
11808 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
11809 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
11810 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
11811 related peephole2.
11812 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
11813 related peephole2.
11814 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
11815 (arm_legitimate_ldrd_p): New prototype.
11816 (arm_output_ldrd): New prototype.
11817 * config/arm/arm.c (arm_check_ldrd_operands): New function.
11818 (arm_legitimate_ldrd_p): New function.
11819 (arm_output_ldrd): New function.
11820
11821 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
11822
11823 PR middle-end/46500
11824 * doc/tm.texi.in: Update Copyright date.
11825 * doc/tm.texi: Regenerate.
11826 * targhooks.c (default_setup_incoming_varargs): Replace
11827 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11828 (default_pretend_outgoing_varargs_named): Likewise.
11829 (hook_pass_by_reference_must_pass_in_stack): Likewise.
11830 (hook_callee_copies_named): Likewise.
11831 (default_function_arg_advance): Likewise.
11832 (default_function_arg): Likewise.
11833 (default_function_incoming_arg): Likewise.
11834 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
11835 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
11836 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
11837 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11838 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
11839 * targhooks.h (default_setup_incoming_varargs): Likewise.
11840 (default_pretend_outgoing_varargs_named): Likewise.
11841 (hook_pass_by_reference_must_pass_in_stack): Likewise.
11842 (hook_callee_copies_named): Likewise.
11843 (default_function_arg_advance): Likewise.
11844 (default_function_arg): Likewise.
11845 (default_function_incoming_arg): Likewise.
11846 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
11847 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
11848 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
11849 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11850 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
11851 * target.def (pass_by_reference): Likewise.
11852 (setup_incoming_varargs, strict_argument_naming): Likewise.
11853 (pretend_outgoing_varargs_named, callee_copies): Likewise.
11854 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
11855 (function_incoming_arg): Likewise.
11856 * target.h: Don't include "tm.h" .
11857 (cumulative_args_t): New typedef.
11858 [GCC_TM_H] (get_cumulative_args): New static inline function.
11859 [GCC_TM_H] (pack_cumulative_args): Likewise.
11860 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
11861 argument type with cumulative_args_t.
11862 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
11863 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
11864 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
11865 (frv_arg_partial_bytes, frv_function_arg): Likewise.
11866 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
11867 (frv_function_arg_1): Likewise.
11868 * config/s390/s390.c (s390_pass_by_reference): Likewise.
11869 (s390_function_arg_advance, s390_function_arg): Likewise.
11870 * config/m32c/m32c.c (m32c_function_arg): Likewise.
11871 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
11872 (m32c_strict_argument_naming): Likewise.
11873 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
11874 (spu_function_arg_advance): Likewise.
11875 (spu_setup_incoming_varargs): Likewise. Make static.
11876 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
11877 Remove prototype.
11878 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
11879 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11880 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
11881 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
11882 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
11883 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
11884 (mep_pass_by_reference, mep_function_arg): Likewise.
11885 (mep_function_arg_advance): Likewise.
11886 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
11887 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
11888 (m32r_function_arg, m32r_function_arg_advance): Likewise.
11889 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
11890 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
11891 (ix86_function_arg, ix86_pass_by_reference): Likewise.
11892 (ix86_setup_incoming_varargs): Likewise.
11893 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
11894 (sh_strict_argument_naming): Likewise.
11895 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
11896 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
11897 (sh_function_arg_advance, sh_function_arg): Likewise.
11898 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
11899 (pdp11_function_arg_advance): Likewise.
11900 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
11901 Likewise.
11902 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
11903 * config/avr/avr.c (avr_function_arg): Likewise.
11904 (avr_function_arg_advance): Likewise.
11905 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
11906 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
11907 (xtensa_function_arg_1): Likewise.
11908 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
11909 Likewise.
11910 (xstormy16_function_arg): Likewise.
11911 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
11912 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
11913 (fr30_function_arg_advance): Likewise.
11914 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
11915 (lm32_function_arg, lm32_function_arg_advance): Likewise.
11916 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
11917 (moxie_function_arg, moxie_function_arg_advance): Likewise.
11918 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
11919 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
11920 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
11921 (cris_function_arg, cris_function_incoming_arg): Likewise.
11922 (cris_function_arg_advance, cris_function_arg_1): Likewise.
11923 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
11924 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
11925 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
11926 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
11927 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
11928 (mn10300_arg_partial_bytes): Likewise.
11929 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
11930 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
11931 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
11932 (ia64_function_arg_1): Likewise.
11933 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
11934 (m68k_function_arg): Likewise.
11935 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
11936 (rs6000_function_arg, setup_incoming_varargs): Likewise.
11937 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
11938 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
11939 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
11940 (picochip_arg_advance): Likewise.
11941 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
11942 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
11943 (mcore_function_arg_advance): Likewise.
11944 * config/score/score.c (score_pass_by_reference): Likewise.
11945 (score_function_arg_advance): Likewise.
11946 (score_arg_partial_bytes): Likewise. Make static.
11947 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
11948 * config/arm/arm.c (arm_arg_partial_bytes): Replace
11949 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11950 (arm_function_arg, arm_function_arg_advance): Likewise.
11951 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
11952 * config/pa/pa.c (pa_pass_by_reference): Likewise.
11953 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
11954 (pa_function_arg): Likewise.
11955 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
11956 (mips_function_arg, mips_function_arg_advance): Likewise.
11957 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
11958 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
11959 * config/vax/vax.c (vax_function_arg): Likewise.
11960 (vax_function_arg_advance): Likewise.
11961 * config/h8300/h8300.c (h8300_function_arg): Likewise.
11962 (h8300_function_arg_advance): Likewise.
11963 * config/v850/v850.c (v850_pass_by_reference): Likewise.
11964 (v850_strict_argument_naming, v850_function_arg): Likewise.
11965 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
11966 (v850_setup_incoming_varargs): Likewise.
11967 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
11968 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
11969 (mmix_function_arg, mmix_pass_by_reference): Likewise.
11970 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
11971 with const void *.
11972 * config/bfin/bfin.c (setup_incoming_varargs): Replace
11973 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11974 (bfin_function_arg_advance, bfin_function_arg): Likewise.
11975 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
11976 * calls.c (emit_call_1): Change type of args_so_far to
11977 cumulative_args_t. Changed all callers.
11978 (initialize_argument_information): Likewise.
11979 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
11980 * dse.c (get_call_args): Likewise.
11981 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
11982 * function.c (pass_by_reference, reference_callee_copied): Likewise.
11983 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
11984 New member args_so_far_v. Changed all users.
11985 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
11986 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11987 * config/mips/mips.c (mips_output_args_xfer): Likewise.
11988 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
11989 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
11990 * config/microblaze/microblaze.c (microblaze_expand_prologue):
11991 Likewise.
11992 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
11993 m32r_pass_by_reference.
11994
11995 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
11996
11997 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
11998 argument to be a VEC of statements.
11999 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
12000 assert that pattern statements have to have their vector type set.
12001 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
12002 Change the first argument to be a VEC of statements. Update
12003 documentation.
12004 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
12005 (vect_handle_widen_mult_by_const): New function.
12006 (vect_recog_widen_mult_pattern): Change the first argument to be a
12007 VEC of statements. Update documentation. Check that the constant is
12008 INTEGER_CST. Support multiplication by a constant that fits an
12009 intermediate type - call vect_handle_widen_mult_by_const.
12010 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
12011 call. Handle additional pattern statements if necessary.
12012
12013 2011-06-16 Nick Clifton <nickc@redhat.com>
12014
12015 PR target/49427
12016 * config.gcc: Set cpu_type to v850 for any V850 architecture.
12017 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
12018 md_file, extra_modes, out_file and extra_options are these are all
12019 deduced from cpu_type.
12020
12021 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
12022
12023 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
12024 truncation mask to 63.
12025
12026 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
12027
12028 PR target/49313
12029 PR target/29524
12030 * longlong.h: Add AVR support:
12031 (count_leading_zeros): New macro.
12032 (count_trailing_zeros): New macro.
12033 (COUNT_LEADING_ZEROS_0): New macro.
12034 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
12035 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
12036 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
12037 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
12038 (LIB2FUNCS_EXCLUDE): Add _clz.
12039 * config/avr/libgcc.S (XCALL): Move up in file.
12040 (XJMP): New C Macro.
12041 (DEFUN): New asm macro.
12042 (ENDF): New asm macro.
12043 (__ffssi2): New function.
12044 (__ffshi2): New function.
12045 (__loop_ffsqi2): New function.
12046 (__ctzsi2): New function.
12047 (__ctzhi2): New function.
12048 (__clzdi2): New function.
12049 (__clzsi2): New function.
12050 (__clzhi2): New function.
12051 (__paritydi2): New function.
12052 (__paritysi2): New function.
12053 (__parityhi2): New function.
12054 (__parityqi2): New function.
12055 (__popcounthi2): New function.
12056 (__popcountsi2): New function.
12057 (__popcountdi2): New function.
12058 (__popcountqi2): New function.
12059 (__bswapsi2): New function.
12060 (__bswapdi2): New function.
12061 (__ashldi3): New function.
12062 (__ashrdi3): New function.
12063 (__lshrdi3): New function.
12064 Fix suspicous lines.
12065
12066 2011-06-16 Richard Guenther <rguenther@suse.de>
12067
12068 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
12069 the same as x != 0.
12070 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
12071 to (bool) X & 1.
12072 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
12073 equality compares against zero for the lower bit.
12074
12075 2011-06-16 Jakub Jelinek <jakub@redhat.com>
12076
12077 PR tree-optimization/49419
12078 * tree-vrp.c (execute_vrp): Call init_range_assertions
12079 before estimate_numbers_of_iterations, call
12080 free_number_of_iterations_estimates before calling
12081 remove_range_assertions.
12082
12083 2011-06-16 Revital Eres <revital.eres@linaro.org>
12084
12085 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
12086 (struct partial_schedule): Add rows_length field.
12087 (verify_partial_schedule): Check rows_length.
12088 (ps_insert_empty_row): Handle rows_length.
12089 (create_partial_schedule): Likewise.
12090 (free_partial_schedule): Likewise.
12091 (reset_partial_schedule): Likewise.
12092 (create_ps_insn): Remove rest_count argument.
12093 (remove_node_from_ps): Update rows_length.
12094 (add_node_to_ps): Update rows_length and call create_ps_insn
12095 without passing row_rest_count.
12096 (rotate_partial_schedule): Update rows_length.
12097
12098 2011-06-16 Revital Eres <revital.eres@linaro.org>
12099
12100 * ddg.c (add_intra_loop_mem_dep): New function.
12101 (build_intra_loop_deps): Call it.
12102
12103 2011-06-13 Jeff Law <law@redhat.com>
12104
12105 * df-problems.c (df_lr_local_compute): Manually CSE
12106 PIC_OFFSET_TABLE_REGNUM.
12107 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
12108 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
12109
12110 2011-06-13 Jan Hubicka <jh@suse.cz>
12111
12112 * cgraphunit.c (handle_alias_pairs): New function.
12113 (cgraph_finalize_compilation_unit): Use it.
12114 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
12115 as externally visible.
12116
12117 2011-06-15 Richard Guenther <rguenther@suse.de>
12118
12119 * expr.c (expand_expr_real_2): Reduce all integral types to
12120 bitfield precision.
12121 (expand_expr_real_1): Likewise.
12122
12123 2011-06-15 Martin Jambor <mjambor@suse.cz>
12124
12125 PR tree-optimization/48613
12126 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
12127 ipa_node_params_vector is NULL.
12128
12129 2011-06-15 Jakub Jelinek <jakub@redhat.com>
12130
12131 PR debug/49382
12132 * dwarf2out.c (dw_loc_list_node): Add force field.
12133 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
12134 location in the list, even if it is modified before first real insn.
12135 (output_loc_list): Emit empty ranges with force flag set.
12136 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
12137
12138 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
12139
12140 PR target/49349
12141 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
12142 (fence_to_rewind). Use it to notice when bookkeeping will be placed
12143 above a fence. Update comments.
12144 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
12145 placed just above it. Do not allow NULL place_to_insert.
12146
12147 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
12148
12149 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
12150 (slpeel_tree_peel_loop_to_edge): Don't call
12151 remove_dead_stmts_from_loop.
12152 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
12153 remove irrelevant pattern statements. For irrelevant statements
12154 check if it is the last statement of a detected pattern, use
12155 corresponding pattern statement instead.
12156 (destroy_loop_vec_info): No need to remove pattern statements,
12157 only free stmt_vec_info.
12158 (vect_transform_loop): For irrelevant statements check if it is
12159 the last statement of a detected pattern, use corresponding
12160 pattern statement instead.
12161 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
12162 pattern statements. Set basic block for the new statement.
12163 (vect_pattern_recog): Update documentation.
12164 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
12165 operands of pattern statements.
12166 (vectorizable_call): Fix printing. In case of a pattern statement
12167 use the lhs of the original statement when creating a dummy
12168 statement to replace the original call.
12169 (vect_analyze_stmt): For irrelevant statements check if it is
12170 the last statement of a detected pattern, use corresponding
12171 pattern statement instead.
12172 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
12173 statements use gsi of the original statement.
12174
12175 2011-06-14 Joseph Myers <joseph@codesourcery.com>
12176
12177 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
12178 common/common-target-def.h.
12179 * target.def (default_target_flags, handle_option,
12180 supports_split_stack, optimization_table, init_struct,
12181 except_unwind_info, unwind_tables_default, have_named_sections):
12182 Move to common/common-target.def.
12183 * target.h (enum opt_levels, struct default_options): Move to
12184 common/common-target.h.
12185 * targhooks.c (default_except_unwind_info,
12186 dwarf2_except_unwind_info, sjlj_except_unwind_info,
12187 default_target_handle_option, empty_optimization_table): Move to
12188 common/common-targhooks.c.
12189 * targhooks.h (default_except_unwind_info,
12190 dwarf2_except_unwind_info, sjlj_except_unwind_info,
12191 default_target_handle_option, empty_optimization_table): Move to
12192 common/common-targhooks.h.
12193 * common/common-target-def.h: Include common/common-targhooks.h.
12194 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
12195 defined.
12196 * common/common-target.def (handle_option, option_init_struct,
12197 option_optimization_table, default_target_flags,
12198 except_unwind_info, supports_split_stack, unwind_tables_default,
12199 have_named_sections): Move from target.def.
12200 (HOOK_PREFIX): Undefine at end of file.
12201 * common/common-target.h: Include input.h.
12202 (enum opt_levels, struct default_options): Move from target.h.
12203 * common/common-targhooks.c, common/common-targhooks.h: New.
12204 * config.gcc (target_has_targetm_common): Default to yes.
12205 (moxie*): Set target_has_targetm_common=no.
12206 (hppa*-*-*): Don't set target_has_targetm_common=yes.
12207 * doc/tm.texi: Regenerate.
12208 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
12209 (C_TARGET_DEF_H): Add common/common-targhooks.h.
12210 (GCC_OBJS): Remove vec.o.
12211 (OBJS): Remove hooks.o and vec.o.
12212 (OBJS-libcommon-target): Add vec.o, hooks.o and
12213 common/common-targhooks.o.
12214 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
12215 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
12216 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
12217 cfglayout.o, $(out_object_file), $(common_out_object_file)):
12218 Update dependencies.
12219 (common/common-targhooks.o): New.
12220 * common/config/default-common.c: Include tm.h. Add FIXME comment.
12221 * common/config/pa/pa-common.c: Include more headers. Take
12222 copyright dates from pa.c.
12223 (pa_option_optimization_table, pa_handle_option,
12224 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
12225 TARGET_HANDLE_OPTION): Move from pa.c.
12226 * common/config/alpha/alpha-common.c,
12227 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
12228 common/config/bfin/bfin-common.c,
12229 common/config/cris/cris-common.c,
12230 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
12231 common/config/h8300/h8300-common.c,
12232 common/config/i386/i386-common.c,
12233 common/config/ia64/ia64-common.c,
12234 common/config/iq2000/iq2000-common.c,
12235 common/config/lm32/lm32-common.c,
12236 common/config/m32c/m32c-common.c,
12237 common/config/m32r/m32r-common.c,
12238 common/config/m68k/m68k-common.c,
12239 common/config/mcore/mcore-common.c,
12240 common/config/mep/mep-common.c,
12241 common/config/microblaze/microblaze-common.c,
12242 common/config/mips/mips-common.c,
12243 common/config/mmix/mmix-common.c,
12244 common/config/mn10300/mn10300-common.c,
12245 common/config/pdp11/pdp11-common.c,
12246 common/config/picochip/picochip-common.c,
12247 common/config/rs6000/rs6000-common.c,
12248 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
12249 common/config/score/score-common.c, common/config/sh/sh-common.c,
12250 common/config/sparc/sparc-common.c,
12251 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
12252 common/config/vax/vax-common.c,
12253 common/config/xstormy16/xstormy16-common.c,
12254 common/config/xtensa/xtensa-common.c: New.
12255 * config/alpha/alpha.c: Include common/common-target.h.
12256 (alpha_option_optimization_table, alpha_handle_option,
12257 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12258 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
12259 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
12260 * config/arm/arm.c (arm_option_optimization_table,
12261 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12262 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
12263 arm-common.c.
12264 * config/avr/avr.c (avr_option_optimization_table,
12265 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
12266 to avr-common.c.
12267 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
12268 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
12269 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
12270 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
12271 * config/cris/cris.c (cris_option_optimization_table,
12272 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12273 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
12274 cris-common.c.
12275 * config/fr30/fr30.c (fr30_option_optimization_table,
12276 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
12277 to fr30-common.c.
12278 * config/frv/frv.c (frv_option_optimization_table,
12279 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
12280 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
12281 * config/h8300/h8300.c (h8300_option_optimization_table,
12282 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12283 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
12284 * config/i386/i386-protos.h (ix86_handle_option): Declare.
12285 * config/i386/i386.c: Include common/common-target.h.
12286 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
12287 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
12288 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
12289 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
12290 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
12291 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
12292 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
12293 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
12294 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
12295 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
12296 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
12297 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
12298 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
12299 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
12300 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
12301 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
12302 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
12303 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
12304 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
12305 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
12306 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
12307 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
12308 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
12309 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
12310 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
12311 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
12312 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
12313 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
12314 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
12315 ix86_option_optimization_table, ix86_option_init_struct,
12316 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
12317 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
12318 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
12319 i386-common.c.
12320 * config/i386/t-i386 (i386.o): Update dependencies.
12321 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
12322 * config/ia64/ia64.c (ia64_option_optimization_table,
12323 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
12324 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12325 ia64_handle_option): Move to ia64-common.c.
12326 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
12327 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
12328 * config/lm32/lm32.c (lm32_option_optimization_table,
12329 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
12330 to lm32-common.c.
12331 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
12332 m32c-common.c.
12333 * config/m32r/m32r.c (m32r_option_optimization_table,
12334 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12335 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
12336 m32r_handle_option): Move to m32r-common.c.
12337 (m32r_memory_move_cost): Remove comment referring to
12338 TARGET_HANDLE_OPTION.
12339 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
12340 Move to m68k-common.c.
12341 * config/mcore/mcore.c (mcore_option_optimization_table,
12342 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12343 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
12344 * config/mep/mep.c (mep_option_optimization_table,
12345 mep_handle_option, TARGET_HANDLE_OPTION,
12346 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
12347 Move to mep-common.c.
12348 * config/microblaze/microblaze.c
12349 (microblaze_option_optimization_table,
12350 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12351 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
12352 * config/mips/mips.c (mips_handle_option,
12353 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
12354 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
12355 mips-common.c.
12356 * config/mmix/mmix.c (mmix_option_optimization_table,
12357 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
12358 Move to mmix-common.c.
12359 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
12360 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
12361 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12362 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
12363 * config/pa/pa.c: Include common/common-target.h.
12364 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
12365 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12366 pa_handle_option): Move to pa-common.c.
12367 (pa_option_override): Use targetm_common.except_unwind_info.
12368 (pa_asm_output_mi_thunk, pa_function_section): Use
12369 targetm_common.have_named_sections.
12370 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
12371 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12372 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
12373 pdp11_handle_option, pdp11_option_init_struct): Move to
12374 pdp11-common.c.
12375 * config/picochip/picochip.c (picochip_option_optimization_table,
12376 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
12377 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
12378 * config/rs6000/rs6000.c: Include common/common-target.h.
12379 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
12380 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
12381 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
12382 rs6000_handle_option): Move to rs6000-common.c.
12383 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
12384 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
12385 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
12386 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
12387 * config/s390/s390.c (processor_flags_table,
12388 s390_option_optimization_table, s390_option_init_struct,
12389 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
12390 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
12391 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
12392 * config/s390/s390.h (processor_flags_table): Declare.
12393 * config/score/score.c (score_option_optimization_table,
12394 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12395 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
12396 score_handle_option): Move to score-common.c.
12397 * config/sh/sh.c (sh_option_optimization_table,
12398 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
12399 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12400 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
12401 * config/sparc/sparc.c: Include common/common-target.h.
12402 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
12403 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
12404 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
12405 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
12406 spu_option_init_struct): Move to spu-common.c.
12407 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
12408 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
12409 * config/v850/v850.c (small_memory_physical_max,
12410 v850_handle_memory_optionn v850_handle_option,
12411 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
12412 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
12413 v850-common.c.
12414 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
12415 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
12416 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
12417 Move to xtensa-common.c.
12418 * cfglayout.c: Include common/common-target.h.
12419 (fixup_reorder_chain): Use targetm_common.have_named_sections.
12420 * cfgrtl.c: Include common/common-target.h.
12421 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
12422 targetm_common.have_named_sections.
12423 * dbxout.c: Include common/common-target.h.
12424 (dbxout_function_end): Use targetm_common.have_named_sections.
12425 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
12426 targetm_common.except_unwind_info.
12427 * dwarf2out.c: Include common/common-target.h.
12428 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
12429 dwarf2out_begin_prologue, dwarf2out_frame_init,
12430 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
12431 targetm_common.except_unwind_info.
12432 * except.c: Include common/common-target.h.
12433 (init_eh, finish_eh_generation,
12434 output_one_function_exception_table): Use
12435 targetm_common.except_unwind_info.
12436 (switch_to_exception_section): Use targetm_common.have_named_sections.
12437 * explow.c: Include common/common-target.h.
12438 * expr.c: Include common/common-target.h.
12439 (build_personality_function): Use targetm_common.except_unwind_info.
12440 * function.c: Include common/common-target.h.
12441 (expand_function_end): Use targetm_common.except_unwind_info.
12442 * haifa-sched.c: Include common/common-target.h.
12443 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
12444 * lto-opts.c: Include common/common-target.h instead of target.h.
12445 (lto_reissue_options): Use targetm_common.handle_option.
12446 * opts.c: Include common/common-target.h.
12447 (target_handle_option): Use targetm_common.handle_option.
12448 (init_options_struct): Update comment referring to
12449 targetm.target_option.optimization. Use
12450 targetm_common.default_target_flags,
12451 targetm_common.unwind_tables_default and
12452 targetm_common.option_init_struct.
12453 (default_options_optimization): Use
12454 targetm_common.option_optimization_table.
12455 (finish_options): Use targetm_common.except_unwind_info,
12456 targetm_common.unwind_tables_default,
12457 targetm_common.have_named_sections and
12458 targetm_common.supports_split_stack.
12459 * toplev.c: Include common/common-target.h.
12460 (process_options): Use targetm_common.have_named_sections.
12461 * tree-tailcall.c: Include common/common-target.h.
12462 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
12463 * tree.c: Include common/common-target.h.
12464 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
12465 * varasm.c: Include common/common-target.h.
12466 (resolve_unique_section, hot_function_section,
12467 default_function_section): Use targetm_common.have_named_sections.
12468
12469 2011-06-14 Easwaran Raman <eraman@google.com>
12470
12471 PR rtl-optimization/44194
12472 * dse.c: Include tree-flow.h
12473 (insn_info): Add new field non_frame_wild_read.
12474 (group_info): Add new fields escaped_n and escaped_p.
12475 (kill_on_calls): New variable.
12476 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
12477 (dse_step0): Initialize kill_on_calls.
12478 (can_escape): New function.
12479 (set_usage_bits): Add additional parameter; record information
12480 about escaped locations.
12481 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
12482 (dse_step2_nospill): Set kill_on_calls based on
12483 group->escaped_n and group->escaped_n.
12484 (add_wild_read): Refactor into...
12485 (reset_active_stores): ... New function, and
12486 (free_read_records): ... New function.
12487 (add_non_frame_wild_read): New function.
12488 (scan_insn): Call add_non_frame_wild_read on non-const calls.
12489 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
12490 (dse_step5_nospill): Call scan_reads_nospill for instructions
12491 marked as non_frame_wild_read.
12492 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
12493
12494 2011-06-14 Joseph Myers <joseph@codesourcery.com>
12495
12496 * common/common-target-def.h, common/common-target.def,
12497 common/common-target.h, common/config/default-common.c,
12498 common/config/pa/pa-common.c: New files.
12499 * Makefile.in (common_out_file, common_out_object_file,
12500 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
12501 (OBJS-libcommon-target): Include $(common_out_object_file).
12502 (prefix.o): Update dependencies.
12503 ($(common_out_object_file), common/common-target-hooks-def.h,
12504 s-common-target-hooks-def-h): New.
12505 (s-tm-texi): Also check timestamp on common-target.def.
12506 (build/genhooks.o): Update dependencies.
12507 * config.gcc (common_out_file, target_has_targetm_common): Define.
12508 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
12509 TARGET_ALWAYS_STRIP_DOTDOT.
12510 * configure.ac (common_out_object_file): Define.
12511 (common_out_file, common_out_object_file): Substitute.
12512 (common): Create directory.
12513 * configure: Regenerate.
12514 * doc/tm.texi.in (targetm_common): Document.
12515 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
12516 * doc/tm.texi: Regenerate.
12517 * genhooks.c (hook_array): Also include common/common-target.def.
12518 * prefix.c (tm.h): Don't include.
12519 (common/common-target.h): Include.
12520 (ALWAYS_STRIP_DOTDOT): Don't define.
12521 (update_path): Use targetm_common.always_strip_dotdot instead of
12522 ALWAYS_STRIP_DOTDOT.
12523 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
12524
12525 2011-06-14 David Li <davidxl@google.com>
12526
12527 * passes.c (execute_function_todo): Remove TODO_dump_func.
12528 (execute_one_pass): Remove TODO_dump_func.
12529 (execute_function_dump): New function.
12530 * tree-vrp.c: Remove TODO_dump_func.
12531 * regrename.c: Remove TODO_dump_func.
12532 * fwprop.c: Remove TODO_dump_func.
12533 * tree-into-ssa.c: Remove TODO_dump_func.
12534 * tree-complex.c: Remove TODO_dump_func.
12535 * tracer.c: Remove TODO_dump_func.
12536 * tree-loop-distribution.c: Remove TODO_dump_func.
12537 * postreload-gcse.c: Remove TODO_dump_func.
12538 * postreload.c: Remove TODO_dump_func.
12539 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
12540 * tree-tailcall.c: Remove TODO_dump_func.
12541 * ipa-cp.c: Remove TODO_dump_func.
12542 * final.c: Remove TODO_dump_func.
12543 * tree-emutls.c: Remove TODO_dump_func.
12544 * omp-low.c: Remove TODO_dump_func.
12545 * tree-ssa-dse.c: Remove TODO_dump_func.
12546 * tree-ssa-uncprop.c: Remove TODO_dump_func.
12547 * auto-inc-dec.c: Remove TODO_dump_func.
12548 * reorg.c: Remove TODO_dump_func.
12549 * tree-ssa-copyrename.c: Remove TODO_dump_func.
12550 * tree-ssa-ccp.c: Remove TODO_dump_func.
12551 * compare-elim.c: Remove TODO_dump_func.
12552 * mode-switching.c: Remove TODO_dump_func.
12553 * modulo-sched.c: Remove TODO_dump_func.
12554 * tree-call-cdce.c: Remove TODO_dump_func.
12555 * cse.c: Remove TODO_dump_func.
12556 * web.c: Remove TODO_dump_func.
12557 * tree-stdarg.c: Remove TODO_dump_func.
12558 * lto-streamer-out.c: Remove TODO_dump_func.
12559 * tree-ssa-math-opts.c: Remove TODO_dump_func.
12560 * tree-ssa-dom.c: Remove TODO_dump_func.
12561 * tree-nrv.c: Remove TODO_dump_func.
12562 * loop-init.c: Remove TODO_dump_func.
12563 * gimple-low.c: Remove TODO_dump_func.
12564 * ipa-inline.c: Remove TODO_dump_func.
12565 * tree-ssa-sink.c: Remove TODO_dump_func.
12566 * jump.c: Remove TODO_dump_func.
12567 * ifcvt.c: Remove TODO_dump_func.
12568 * tree-ssa-loop.c: Remove TODO_dump_func.
12569 * recog.c: Remove TODO_dump_func.
12570 * dse.c: Remove TODO_dump_func.
12571 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
12572 * matrix-reorg.c: Remove TODO_dump_func.
12573 * tree-eh.c: Remove TODO_dump_func.
12574 * regmove.c: Remove TODO_dump_func.
12575 * function.c: Remove TODO_dump_func.
12576 * tree-vectorizer.c: Remove TODO_dump_func.
12577 * ipa-split.c: Remove TODO_dump_func.
12578 * gcse.c: Remove TODO_dump_func.
12579 * tree-if-conv.c: Remove TODO_dump_func.
12580 * init-regs.c: Remove TODO_dump_func.
12581 * tree-ssa-phiopt.c: Remove TODO_dump_func.
12582 * implicit-zee.c: Remove TODO_dump_func.
12583 * lower-subreg.c: Remove TODO_dump_func.
12584 * bt-load.c: Remove TODO_dump_func.
12585 * tree-dfa.c: Remove TODO_dump_func.
12586 * except.c: Remove TODO_dump_func.
12587 * emit-rtl.c: Remove TODO_dump_func.
12588 * store-motion.c: Remove TODO_dump_func.
12589 * cfgexpand.c: Remove TODO_dump_func.
12590 * tree-cfgcleanup.c: Remove TODO_dump_func.
12591 * cfgcleanup.c: Remove TODO_dump_func.
12592 * tree-ssa-pre.c: Remove TODO_dump_func.
12593 * tree-sra.c: Remove TODO_dump_func.
12594 * tree-mudflap.c: Remove TODO_dump_func.
12595 * tree-ssa-copy.c: Remove TODO_dump_func.
12596 * cfglayout.c: Remove TODO_dump_func.
12597 * tree-ssa-forwprop.c: Remove TODO_dump_func.
12598 * tree-ssa-dce.c: Remove TODO_dump_func.
12599 * ira.c: Remove TODO_dump_func.
12600 * tree-ssa.c: Remove TODO_dump_func.
12601 * integrate.c: Remove TODO_dump_func.
12602 * tree-optimize.c: Remove TODO_dump_func.
12603 * tree-ssa-phiprop.c: Remove TODO_dump_func.
12604 * tree-object-size.c: Remove TODO_dump_func.
12605 * combine.c: Remove TODO_dump_func.
12606 * bb-reorder.c: Remove TODO_dump_func.
12607 * cprop.c: Remove TODO_dump_func.
12608 * var-tracking.c: Remove TODO_dump_func.
12609 * tree-profile.c: Remove TODO_dump_func.
12610 * tree-vect-generic.c: Remove TODO_dump_func.
12611 * reg-stack.c: Remove TODO_dump_func.
12612 * sched-rgn.c: Remove TODO_dump_func.
12613 * tree-ssa-structalias.c: Remove TODO_dump_func.
12614 * tree-switch-conversion.c: Remove TODO_dump_func.
12615 * tree-cfg.c: Remove TODO_dump_func.
12616 * tree-ssa-reassoc.c: Remove TODO_dump_func.
12617 * combine-stack-adj.c: Remove TODO_dump_func.
12618 * dce.c: Remove TODO_dump_func.
12619 * tree-ssanames.c: Remove TODO_dump_func.
12620 * regcprop.c: Remove TODO_dump_func.
12621
12622 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
12623
12624 PR middle-end/47364
12625 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
12626 and properly handle result not in Pmode.
12627
12628 2011-06-14 Robert Millan <rmh@gnu.org>
12629
12630 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
12631 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
12632 `config/linux.h'.
12633
12634 * config/i386/kfreebsd-gnu64.h: New file.
12635 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
12636 with `i386/kfreebsd-gnu64.h'.
12637
12638 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
12639 (GNU_USER_LINK_EMULATION64): New macros.
12640 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
12641 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
12642 of hardcoding `elf_i386' and `elf_x86_64'.
12643
12644 2011-06-14 Nick Clifton <nickc@redhat.com>
12645
12646 PR target/49403
12647 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
12648
12649 PR target/49402
12650 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
12651
12652 2011-06-14 Jakub Jelinek <jakub@redhat.com>
12653
12654 PR fortran/49103
12655 * tree.h (DECL_NONSHAREABLE): Define.
12656 (struct tree_decl_common): Change decl_common_unused to
12657 decl_nonshareable_flag.
12658 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
12659 Ignore vars with DECL_NONSHAREABLE bit set.
12660 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
12661 on stores to automatic aggregate vars.
12662
12663 PR rtl-optimization/49390
12664 Revert:
12665 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
12666
12667 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
12668 MEM_ALIAS_SET.
12669
12670 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
12671 Tom de Vries <tom@codesourcery.com>
12672
12673 PR target/45098
12674 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
12675 Document changed semantics.
12676 (max_stmt_executions, max_stmt_executions_int): Declare.
12677 * tree-data-ref.c (estimated_loop_iterations)
12678 (estimated_loop_iterations_int): Move functions...
12679 * tree-ssa-loop-niter.c (estimated_loop_iterations)
12680 (estimated_loop_iterations_int): here.
12681 (record_estimate): Change nb_iterations_upper_bound and
12682 nb_iterations_estimate semantics.
12683 (max_stmt_executions, max_stmt_executions_int): New function.
12684 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
12685 (max_stmt_executions_tree): this.
12686 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
12687 estimated_loop_iterations_tree.
12688 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
12689 max_stmt_executions_int instead of estimated_loop_iterations_int.
12690 * predict.c (predict_loops): Idem.
12691 * tree-parloops.c (parallelize_loops): Idem.
12692 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
12693 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
12694 (init_omega_for_ddr_1): Idem.
12695 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
12696 (loop_prefetch_arrays): Idem
12697 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
12698 max_stmt_executions instead of estimated_loop_iterations.
12699 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
12700 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
12701 instead of nb_iterations_upper_bound.
12702
12703 2011-06-13 Jan Hubicka <jh@suse.cz>
12704
12705 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
12706
12707 2011-06-14 Richard Henderson <rth@redhat.com>
12708
12709 PR debug/48459
12710 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
12711 (based_loc_descr): Assert it's true.
12712 (compute_frame_pointer_to_fb_displacement): Set it, rather than
12713 aborting immediately.
12714
12715 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
12716 Mingfeng Wu <mingfeng@faraday-tech.com>
12717
12718 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
12719
12720 2011-06-13 Jan Hubicka <jh@suse.cz>
12721
12722 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
12723
12724 2011-06-13 Jan Hubicka <jh@suse.cz>
12725
12726 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
12727 similarly to DECL_COMDAT.
12728 * cgraphunit.c (cgraph_analyze_function): Likewise.
12729 * ipa.c (function_and_variable_visibility): Likewise.
12730
12731 2011-06-13 Jan Hubicka <jh@suse.cz>
12732
12733 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
12734 BINFO_VIRTUALS when streaming for ltrans unit.
12735
12736 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
12737
12738 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
12739 (movdi_internal64): Same.
12740
12741 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
12742
12743 PR target/44618
12744 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
12745 a set of similar patterns, where the MATCH_OPERAND for the function
12746 argument is replaced with individual references to hardware registers.
12747 (save_fpregs_<mode>): Ditto
12748 (restore_gpregs_<mode>): Ditto
12749 (return_and_restore_gpregs_<mode>): Ditto
12750 (return_and_restore_fpregs_<mode>): Ditto
12751 (return_and_restore_fpregs_aix_<mode>): Ditto
12752
12753 2011-06-13 Jan Hubicka <jh@suse.cz>
12754
12755 * ipa-utils.c (postorder_stack): New structure.
12756 (ipa_reverse_postorder): Handle aliases.
12757
12758 2011-06-13 Jan Hubicka <jh@suse.cz>
12759
12760 * ipa-inline.c (reset_edge_caches): Walk aliases.
12761 (update_caller_keys): Do not test inlinability of aliases.
12762 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
12763 (do_estimate_growth): Fix typo.
12764
12765 2011-06-13 Jan Hubicka <jh@suse.cz>
12766
12767 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
12768 (can_remove_node_now_p): ... here; handle same comdat groups.
12769 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
12770 (inline_call): Update use of can_remove_node_now_p.
12771
12772 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12773
12774 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
12775 condition to disallow non-identical memory locations.
12776 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
12777 preference to bit manipulation instructions.
12778
12779 2011-06-13 Jan Hubicka <jh@suse.cz>
12780
12781 * cgraph.c (cgraph_for_node_thunks_and_aliases,
12782 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
12783 (nonremovable_p): New function.
12784 (cgraph_can_remove_if_no_direct_calls_p): New function.
12785 (used_from_object_file_p): New functoin.
12786 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
12787 references from aliases.
12788 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
12789 * ipa-inline.c (check_caller_edge): New function.
12790 (want_inline_function_called_once_p): Use it; accept aliases called
12791 once, too.
12792 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
12793
12794 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12795
12796 PR target/48454
12797 * config/arm/neon.md (vec_pack_trunc): Set the lengths
12798 correctly for the case with Quad vectors.
12799
12800 2011-06-13 Jakub Jelinek <jakub@redhat.com>
12801 Ira Rosen <ira.rosen@linaro.org>
12802
12803 PR tree-optimization/49352
12804 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
12805 all, make sure loop_use_stmt after the loop is a def stmt of a used
12806 SSA_NAME that is the only one defined inside of the loop. Don't
12807 check for COND_EXPR and GIMPLE_BINARY_RHS.
12808 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
12809 check_reduction is true.
12810
12811 2011-06-11 Jan Hubicka <jh@suse.cz>
12812
12813 PR middle-end/49373
12814 * ipa.c (cgraph_externally_visible_p): Check resolution info.
12815
12816 2011-06-11 Jan Hubicka <jh@suse.cz>
12817
12818 PR middle-end/48836
12819 * ipa-inline-transform.c: Include tree-pass.h
12820 (inline_transform): Set TODO_update_ssa_only_virtuals.
12821 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
12822
12823 2011-06-11 Jan Hubicka <jh@suse.cz>
12824
12825 PR middle-end/49378
12826 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
12827 aliases and thunks.
12828
12829 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
12830
12831 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
12832 Take number of iterations to peel into account for equally frequent
12833 misalignment values.
12834
12835 2011-06-11 Jan Hubicka <jh@suse.cz>
12836
12837 * lto-streamer-out.c (produce_symtab): Stream out the newly
12838 represented aliases.
12839
12840 2011-06-11 Jan Hubicka <jh@suse.cz>
12841
12842 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
12843 varying args.
12844 (ipa_update_after_lto_read): Likewise.
12845 (ipa_write_node_info): Do not sream call_with_var_arguments.
12846 (ipa_read_node_info): Likewise.
12847
12848 2011-06-11 Jan Hubicka <jh@suse.cz>
12849
12850 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
12851
12852 2011-06-11 Jan Hubicka <jh@suse.cz>
12853
12854 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
12855 (lto_symtab_resolve_can_prevail_p): Likewise.
12856 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
12857 * cgraph.c (same_body_aliases_done): New global var.
12858 (cgraph_same_body_alias_1): Rename to ...
12859 (cgraph_create_function_alias): ... this one; reorg to new
12860 representation.
12861 (cgraph_same_body_alias): Use cgraph_create_function_alias;
12862 record references when asked to.
12863 (cgraph_add_thunk): Fix formating.
12864 (cgraph_get_node): Kill same body alias code.
12865 (cgraph_node_for_asm): Likewise.
12866 (cgraph_remove_same_body_alias): Remove.
12867 (cgraph_remove_node): Kill same body alias code.
12868 (cgraph_mark_address_taken_node): Mark also the aliased function
12869 as having address taken.
12870 (dump_cgraph_node): Dump same body aliases.
12871 (cgraph_for_node_thunks_and_aliases): Update for new alias
12872 representation.
12873 (cgraph_for_node_and_aliases): Likewise.
12874 * cgraph.h (same_body): Kll pointer.
12875 (same_body_alias): Update comment.
12876 (same_body_aliases_done): Declare.
12877 (cgraph_remove_same_body_alias): Remove declaration.
12878 (cgraph_create_function_alias): Declare.
12879 (cgraph_process_same_body_aliases): Declare.
12880 (cgraph_function_with_gimple_body_p): Check for alias.
12881 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
12882 (cgraph_alias_aliased_node): New function.
12883 (cgraph_function_node): Update for new aliases.
12884 (cgraph_function_or_thunk_node): Likewise.
12885 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
12886 (inline_call): Remove dead aliases.
12887 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
12888 name hack for same body aliases.
12889 (clone_of_p): Look through aliases.
12890 (verify_cgraph_node): Verify aliases.
12891 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
12892 (cgraph_process_same_body_aliases): New function.
12893 (process_function_and_variable_attributes): Disable weakref warning on
12894 alias.
12895 (cgraph_analyze_functions): Handle aliases.
12896 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
12897 (assemble_thunks): Rename to ...
12898 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
12899 (cgraph_expand_function): Remove alias output code.
12900 (cgraph_output_in_order): Skip aliases.
12901 (cgraph_preserve_function_body_p): Aliases don't need preserving.
12902 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
12903 (ipa_record_reference): Do not assert on alias references.
12904 (ipa_ref_has_aliases_p): New function.
12905 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
12906 (ipa_ref_has_aliases_p): Declare.
12907 * lto-cgraph.c (lto_output_node): Handle aliases.
12908 (input_node): Likewise.
12909 * lto-streamer-out.c (lto_output): Skip aliases.
12910 (produce_symtab): Kill same_body_alias code.
12911 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
12912 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
12913 * ipa-inline.c (update_caller_keys): Walk aliases.
12914 (inline_small_functions): Fix thinko in previous patch.
12915 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
12916 (function_and_variable_visibility): Do not walk same body aliases.
12917 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
12918 (ipa_pta_execute): Use it.
12919
12920 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
12921
12922 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
12923 (*vec_dupv2df): Rename from vec_dupv2df.
12924 (vec_dupv2df): New expander.
12925
12926 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
12927
12928 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
12929
12930 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
12931
12932 * config/i386/i386.md: Use default value in "isa" attribute.
12933 * config/i386/sse.md: Ditto.
12934 * config/i386/mmx.md: Ditto.
12935
12936 2011-06-10 Wei Guozhi <carrot@google.com>
12937
12938 PR target/45335
12939 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
12940 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
12941 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
12942 related peephole2.
12943 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
12944 related peephole2.
12945 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
12946 (arm_legitimate_ldrd_p): New prototype.
12947 (arm_output_ldrd): New prototype.
12948 * config/arm/arm.c (arm_check_ldrd_operands): New function.
12949 (arm_legitimate_ldrd_p): New function.
12950 (arm_output_ldrd): New function.
12951
12952 2011-06-10 David Li <davidxl@google.com>
12953
12954 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
12955 * passes.c (passr_eq): New function.
12956 (create_pass_tab): New function.
12957 (pass_traverse): New function.
12958 (dump_one_pass): New function.
12959 (dump_pass_list): New function.
12960 (dump_passes): New function.
12961
12962 2011-06-10 Jan Hubicka <jh@suse.cz>
12963
12964 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
12965 setting the nothrow flag.
12966 * ipa-reference.c (propagate): Skip aliases.
12967 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
12968 (propagate_nothrow): Skip aliases; do not update cgraph.
12969 (local_pure_const): Do not update cgraph.
12970 * tree-profile.c (tree_profiling): Do fixup_cfg.
12971
12972 2011-06-10 Jan Hubicka <jh@suse.cz>
12973
12974 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
12975 (cgraph_local_node_p): ... here; handle aliases.
12976 (has_addr_references_p): Break out from ...;
12977 (cgraph_remove_unreachable_nodes) ... here.
12978
12979 2011-06-10 Jan Hubicka <jh@suse.cz>
12980
12981 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
12982 * common.opt (flag_inline_functions_called_once): Do not
12983 initialize to 1.
12984
12985 2011-06-10 Jan Hubicka <jh@suse.cz>
12986
12987 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
12988 (ipcp_initialize_node_lattices): Do not deal with aliases;
12989 Do not try to propagate through thunks.
12990 (ipcp_change_tops_to_bottom): Do not deal with aliases.
12991
12992 2011-06-10 Jan Hubicka <jh@suse.cz>
12993
12994 * ipa-prop.c (ipa_write_node_info): Stream jump functions
12995 for indirect calls.
12996 (ipa_read_node_info): Likewise.
12997
12998 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12999
13000 PR lto/49302
13001 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
13002 (build_and_insert_call): Likewise.
13003 (build_and_insert_ref): New.
13004 (gimple_expand_builtin_pow): Minor cleanup.
13005 (gimple_expand_builtin_cabs): New.
13006 (execute_cse_sincos): Add case for BUILT_IN_CABS.
13007
13008 2011-06-10 Jan Hubicka <jh@suse.cz>
13009
13010 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
13011 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
13012 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
13013 (ipcp_propagate_stage): Skip aliases when propagating.
13014 (ipcp_need_redirect_p): Skip aliases.
13015 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
13016 collect_callers_of_node.
13017 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
13018 for aliases.
13019 (ipa_compute_jump_functions): Look through aliases.
13020
13021 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13022
13023 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
13024
13025 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
13026
13027 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
13028 Adjust comments.
13029 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
13030
13031 2011-06-10 Jan Hubicka <jh@suse.cz>
13032
13033 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
13034 Update call of gimple_get_virt_method_for_binfo.
13035 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
13036 refuse_thunks parameter.
13037 (gimple_fold_call): Update.
13038 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
13039
13040 2011-06-10 Jan Hubicka <jh@suse.cz>
13041
13042 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
13043 (not_all_callers_have_enough_arguments_p): ... this one; turn into
13044 worker for cgraph_for_node_and_aliases.
13045 (convert_callers_for_node): Break out from ...
13046 (convert_callers): ... here.
13047 (modify_function): Use collect_callers_of_node.
13048 (ipa_early_sra): Use cgraph_for_node_and_aliases.
13049
13050 2011-06-10 Richard Guenther <rguenther@suse.de>
13051
13052 PR tree-optimization/49361
13053 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
13054 when not already in gimple form.
13055
13056 2011-06-10 Richard Guenther <rguenther@suse.de>
13057
13058 PR bootstrap/49344
13059 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
13060 FOR_EACH_PHI_OR_STMT_USE.
13061
13062 2011-06-10 Jan Hubicka <jh@suse.cz>
13063
13064 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
13065 (clone_inlined_nodes): ... here.
13066 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
13067 to real destination prior inlining.
13068 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
13069 can_early_inline_edge_p, want_early_inline_function_p,
13070 want_early_inline_function_p, want_inline_small_function_p,
13071 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
13072 edge_badness, update_all_callee_keys, lookup_recursive_calls,
13073 add_new_edges_to_heap, inline_small_functions, flatten_function,
13074 inline_always_inline_functions, early_inline_small_functions): Use
13075 cgraph_function_or_thunk_node.
13076 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
13077 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
13078 (do_estimate_edge_growth_1): Break out from ...
13079 (do_estimate_growth) ... here; walk aliases.
13080 (inline_generate_summary): Skip aliases.
13081
13082 2011-06-10 Richard Guenther <rguenther@suse.de>
13083
13084 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
13085 forward when combining, visit inserted stmts when a stmt was changed.
13086
13087 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
13088
13089 * tree.h (error_operand_p): Add.
13090 * dbxout.c (dbxout_type_fields): Use the latter.
13091 * c-decl.c (add_stmt): Likewise.
13092 * gimplify.c (omp_add_variable, omp_notice_variable,
13093 gimplify_scan_omp_clauses): Likewise.
13094
13095 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
13096
13097 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
13098 when a value is actually passed in regs.
13099
13100 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
13101 Laurent Rougé <laurent.rouge@menta.fr>
13102
13103 * doc/invoke.texi (SPARC options): Add -mflat.
13104 * config/sparc/sparc.opt: Likewise.
13105 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
13106 (sparc_flat_expand_prologue): Declare.
13107 (sparc_flat_expand_epilogue): Likewise.
13108 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
13109 (CPP_ENDIAN_SPEC): Replace with...
13110 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
13111 (CPP_SPEC): Adjust to above change.
13112 (EXTRA_SPECS): Likewise.
13113 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
13114 (INCOMING_REGNO): Likewise.
13115 (OUTGOING_REGNO): Likewise.
13116 (LOCAL_REGNO): Likewise.
13117 (SETUP_FRAME_ADDRESSES): Likewise.
13118 (FIXED_REGISTERS): Set 0 for %fp.
13119 (CALL_USED_REGISTERS): Likewise.
13120 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
13121 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
13122 (RETURN_ADDR_REGNUM): Define.
13123 (RETURN_ADDR_RTX): Use it.
13124 (INCOMING_RETURN_ADDR_REGNUM): Define.
13125 (INCOMING_RETURN_ADDR_RTX): Use it.
13126 (DWARF_FRAME_RETURN_COLUMN): Likewise.
13127 (EH_RETURN_REGNUM): Define.
13128 (EH_RETURN_STACKADJ_RTX): Use it.
13129 (EH_RETURN_HANDLER_RTX): Delete.
13130 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
13131 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
13132 Delete.
13133 (struct machine_function): Add frame_size, apparent_frame_size,
13134 frame_base_reg, frame_base_offset, n_global_fp_regs and
13135 save_local_in_regs_p fields.
13136 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
13137 sparc_frame_base_offset, sparc_n_global_fp_regs,
13138 sparc_save_local_in_regs_p): New macros.
13139 (sparc_option_override): Error out if -fcall-saved-REG is specified
13140 for Out registers.
13141 (eligible_for_restore_insn): Fix formatting.
13142 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
13143 (eligible_for_sibcall_delay): Likewise.
13144 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
13145 (sparc_legitimate_address_p): Adjust to above change.
13146 (save_global_or_fp_reg_p): New predicate.
13147 (return_addr_reg_needed_p): Likewise.
13148 (save_local_or_in_reg_p): Likewise.
13149 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
13150 (SORR_SAVE, SORR_RESTORE): Delete.
13151 (sorr_pred_t): New typedef.
13152 (sorr_act_t): New enum.
13153 (save_or_restore_regs): Rename to...
13154 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
13155 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
13156 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
13157 mechanism. Add CFI information for double-word saves in 32-bit mode.
13158 (emit_adjust_base_to_offset): New function extracted from...
13159 (emit_save_or_restore_regs): ...this. Rename the rest to...
13160 (emit_save_or_restore_regs_global_fp_regs): ...this.
13161 (emit_save_or_restore_regs_local_in_regs): New function.
13162 (gen_create_flat_frame_[123]): New functions.
13163 (sparc_expand_prologue): Use SIZE local variable. Adjust.
13164 (sparc_flat_expand_prologue): New function.
13165 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
13166 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
13167 (sparc_flat_expand_epilogue): New function.
13168 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
13169 (output_return): Likewise.
13170 (output_sibcall): Likewise.
13171 (sparc_output_mi_thunk): Likewise.
13172 (sparc_frame_pointer_required): Likewise.
13173 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
13174 function optimization.
13175 * config/sparc/sparc.md (flat): New attribute.
13176 (prologue): Add TARGET_FLAT handling.
13177 (save_register_window): Disable if TARGET_FLAT.
13178 (create_flat_frame_[123]): New patterns.
13179 (epilogue): Add TARGET_FLAT handling.
13180 (sibcall_epilogue): Likewise.
13181 (eh_return): New expander.
13182 (eh_return_internal): New insn and splitter.
13183 (return_internal): Add TARGET_FLAT handling.
13184 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
13185 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
13186 (nonlocal_goto): Add TARGET_FLAT handling.
13187 * config/sparc/t-elf: Add -mflat multilib.
13188 * config/sparc/t-leon: Likewise.
13189
13190 2011-06-10 Jan Hubicka <jh@suse.cz>
13191
13192 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
13193 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
13194 (self_recursive_p): Use cgraph_function_node.
13195 (propagate_pure_const): Likewise.
13196 (propagate_nothrow): Likewise.
13197 * ipa-reference.c (ipa_reference_get_not_read_global): Use
13198 cgraph_function_node.
13199 (propagate_bits): Likewise.
13200 (propagate): Likewise.
13201
13202 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13203 Richard Earnshaw <rearnsha@arm.com>
13204
13205 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
13206 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
13207 (*thumb2_movdi_vfp): Delete.
13208 (*arm_movdi_vfp_cortexa8): Delete.
13209 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
13210 (*movdi_vfp_cortexa8): Likewise.
13211
13212 2011-06-10 Richard Guenther <rguenther@suse.de>
13213
13214 * stor-layout.c (initialize_sizetypes): Give names to all
13215 sizetype kinds.
13216
13217 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
13218
13219 PR tree-optimization/49318
13220 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
13221 irrelevant pattern statements.
13222
13223 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
13224
13225 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
13226
13227 PR bootstrap/49354
13228 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
13229 to last assignment.
13230
13231 2011-06-09 Jan Hubicka <jh@suse.cz>
13232
13233 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
13234 do not recompute reachable flag.
13235 (cgraph_finalize_function, cgraph_analyze_functions): Set
13236 redefined_extern_inline here.
13237
13238 2011-06-09 Jan Hubicka <jh@suse.cz>
13239
13240 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
13241 (cgraph_only_called_directly_p): ... this one; bring offline.
13242 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
13243 varpool_used_from_object_file_p): Drop names from the declaratoin.
13244 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
13245 collect_callers_of_node): New.
13246 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
13247 (cgraph_edge_recursive_p): Use cgraph_function_node.
13248 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
13249 (cgraph_node_cannot_be_local_p_1): Break out from ...
13250 (cgraph_node_can_be_local_p): ... here; walk aliases.
13251 (cgraph_for_node_thunks_and_aliases): New function.
13252 (cgraph_for_node_and_aliases): New function.
13253 (cgraph_make_node_local_1): Break out from ...
13254 (cgraph_make_node_local) ... here; use
13255 cgraph_for_node_thunks_and_aliases.
13256 (cgraph_set_nothrow_flag_1): Break out from ...
13257 (cgraph_set_nothrow_flag) ... here;
13258 use cgraph_for_node_thunks_and_aliases.
13259 (cgraph_set_const_flag_1): Break out from ...
13260 (cgraph_set_const_flag) ... here;
13261 use cgraph_for_node_thunks_and_aliases.
13262 (cgraph_set_pure_flag_1): Break out from ...
13263 (cgraph_set_pure_flag) ... here;
13264 use cgraph_for_node_thunks_and_aliases.
13265 (cgraph_propagate_frequency_1): Break out from ...
13266 (cgraph_propagate_frequency) ... here; use
13267 cgraph_for_node_thunks_and_aliases.
13268 (cgraph_used_from_object_file_p): Do not care about aliases.
13269 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
13270 New functions.
13271 (collect_callers_of_node_1, collect_callers_of_node): New functions.
13272
13273 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
13274
13275 PR rtl-optimization/49154
13276 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
13277 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
13278 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
13279 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
13280 * config/cris/cris.h (cris_register_move_cost): Remove
13281 !TARGET_V32 code. Tweak comments.
13282
13283 2011-06-09 Jan Hubicka <jh@suse.cz>
13284
13285 * cgraphbuild.c (record_eh_tables): Mark personality function as having
13286 address taken.
13287
13288 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
13289
13290 PR rtl-optimization/49154
13291 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
13292 is a matching slot in the hashtable, assign it to classes_ptr.
13293
13294 PR rtl-optimization/49154
13295 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
13296 register classes.
13297 * doc/tm.texi: Regenerate.
13298
13299 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
13300
13301 PR target/49307
13302 * config/sh/sh.md (UNSPEC_CHKADD): New.
13303 (chk_guard_add): New define_insn_and_split.
13304 (symGOT_load): Use chk_guard_add instead of blockage.
13305
13306 2011-06-09 Kai Tietz <ktietz@redhat.com>
13307
13308 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
13309
13310 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
13311
13312 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
13313
13314 2011-06-09 Wei Guozhi <carrot@google.com>
13315
13316 PR target/46975
13317 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
13318 (peephole2 for conditional move): Generate 16 bit instructions.
13319
13320 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
13321
13322 * config/i386/i386.md (*movdi_internal_rex64): Merge
13323 alternatives 6 and 8.
13324
13325 2011-06-09 David Li <davidxl@google.com>
13326
13327 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
13328 * passes.c (passr_eq): New function.
13329 (create_pass_tab): New function.
13330 (pass_traverse): New function.
13331 (dump_one_pass): New function.
13332 (dump_pass_list): New function.
13333 (dump_passes): New function.
13334
13335 2011-06-09 David Li <davidxl@google.com>
13336
13337 * tree-complex.c (tree_lower_complex): Gate cleanup.
13338 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
13339 (execute_optimize_stdarg): Ditto.
13340 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
13341 (execute_cleanup_eh_1): Ditto.
13342 (execute_cleanup_eh): Ditto.
13343 * gcse.c (gate_rtl_pre): Ditto.
13344 (execute_rtl_pre): Ditto.
13345 * except.c (finish_eh_generation): Ditto.
13346 (convert_to_eh_region_ranges): Ditto.
13347 * cprop.c (one_cprop_pass): Ditto.
13348
13349 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
13350
13351 PR target/48673
13352 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
13353 in all basic blocks.
13354
13355 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13356
13357 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
13358 (HAVE_ENABLE_EXECUTE_STACK): Define.
13359 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
13360 (HAVE_ENABLE_EXECUTE_STACK): Define.
13361 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
13362 (HAVE_ENABLE_EXECUTE_STACK): Define.
13363 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
13364 (ENABLE_EXECUTE_STACK): Remove.
13365 (HAVE_ENABLE_EXECUTE_STACK): Define.
13366 [IN_LIBGCC2]: Don't include <windows.h>.
13367 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
13368 (HAVE_ENABLE_EXECUTE_STACK): Define.
13369 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
13370 (HAVE_ENABLE_EXECUTE_STACK): Define.
13371 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
13372 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
13373 (HAVE_ENABLE_EXECUTE_STACK): Define.
13374 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
13375 (HAVE_ENABLE_EXECUTE_STACK): Define.
13376 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
13377 (HAVE_ENABLE_EXECUTE_STACK): Define.
13378 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
13379 (HAVE_ENABLE_EXECUTE_STACK): Define.
13380 * config/alpha/alpha.c (alpha_trampoline_init): Test
13381 HAVE_ENABLE_EXECUTE_STACK.
13382 * config/i386/i386.c (ix86_trampoline_init): Likewise.
13383 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
13384 (sparc64_initialize_trampoline): Likewise.
13385 * libgcc2.c [L_enable_execute_stack]: Remove.
13386 * system.h (ENABLE_EXECUTE_STACK): Poison.
13387 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
13388 * doc/tm.texi: Regenerate.
13389 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
13390
13391 2011-06-09 Jakub Jelinek <jakub@redhat.com>
13392
13393 PR middle-end/49308
13394 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
13395 variable. After resetting and rescanning insn continue with previous
13396 statement.
13397
13398 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13399
13400 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
13401 (gcc_cv_ld_hidden): Likewise.
13402 * configure: Regenerate.
13403 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
13404 (ix86_stack_protect_fail): Mark unused.
13405 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
13406 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
13407 [TARGET_MACHO]: Don't define.
13408 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
13409 (TARGET_STACK_PROTECT_FAIL): Likewise.
13410 (rs6000_stack_protect_fail): Mark unused.
13411 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
13412 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
13413
13414 2011-06-08 Andi Kleen <ak@linux.intel.com>
13415
13416 * varasm.c (get_section): Print location of other conflict
13417 for section conflicts.
13418
13419 2011-06-08 Andi Kleen <ak@linux.intel.com>
13420
13421 * config/i386/driver-i386.c (host_detect_local_cpu):
13422 Add model 0x2d Intel CPU.
13423
13424 2011-06-08 Andi Kleen <ak@linux.intel.com>
13425
13426 * reginfo.c (global_regs_decl): Add.
13427 (globalize_reg): Add decl parameter. Compute location. Pass location
13428 to warnings and add inform. Store decl in global_regs_decl.
13429 * rtl.h (globalize_reg): Update prototype.
13430 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
13431
13432 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
13433
13434 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
13435
13436 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
13437
13438 PR target/49305
13439 * config/sh/predicates.md (general_movsrc_operand): Check
13440 mode for memory with indexed address for QI and HImode.
13441 (general_movdst_operand): Likewise.
13442
13443 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
13444
13445 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
13446
13447 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
13448
13449 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
13450 (num_ssa_operands): Likewise.
13451 (op_iter_init_phiuse): Forward-declare.
13452 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
13453
13454 2011-06-08 Nick Clifton <nickc@redhat.com>
13455
13456 * doc/invoke.texi (ARM Options): Update description of
13457 -mthumb-interwork.
13458
13459 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
13460
13461 * config/i386/driver-i386.c (host_detect_local_cpu): Support
13462 unknown Intel family 0x6 CPUs.
13463
13464 2011-06-08 Martin Jambor <mjambor@suse.cz>
13465
13466 * tree-sra.c (mark_rw_status): Removed.
13467 (analyze_access_subtree): New parameter parent instead of
13468 mark_read and mark_write, propagate from that.
13469
13470 2011-06-08 Julian Brown <julian@codesourcery.com>
13471
13472 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
13473 for double-precision helper functions in hard-float mode if only
13474 single-precision arithmetic is supported in hardware.
13475
13476 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
13477
13478 PR rtl-optimization/49303
13479 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
13480 code_motion_path_driver returned 0 or 1.
13481 (sel_region_finish): Clear h_d_i_d.
13482
13483 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
13484
13485 * config/sh/sh.c (prepare_move_operands): Set pic register
13486 appropriately for global and local dynamic tls models even
13487 if flag_pic is unset.
13488
13489 2011-06-07 Jason Merrill <jason@redhat.com>
13490
13491 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
13492
13493 2011-06-07 Xinliang David Li <davidxl@google.com>
13494 * passes.c (enable_disable_pass): Handle assembler name.
13495 (is_pass_explicitly_enabled_or_disabled): Ditto.
13496
13497 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13498
13499 PR tree-optimization/48497
13500 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
13501
13502 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13503
13504 PR tree-optimization/46728
13505 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
13506 to use gimple_val_nonnegative_real_p.
13507 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
13508 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
13509
13510 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
13511
13512 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
13513
13514 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
13515
13516 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
13517 constant vectors.
13518
13519 2011-06-07 Richard Guenther <rguenther@suse.de>
13520
13521 * stor-layout.c (initialize_sizetypes): Initialize all
13522 sizetypes based on target definitions.
13523 (set_sizetype): Remove.
13524 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
13525 * tree.h (set_sizetype): Remove.
13526
13527 2011-06-07 Nick Clifton <nickc@redhat.com>
13528
13529 * config.gcc: Unify V850 architecture options and add support for
13530 newer V850 architectures.
13531 * config/v850/t-v850e: Delete.
13532
13533 2011-06-07 Richard Guenther <rguenther@suse.de>
13534
13535 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
13536 Call set_sizetype from here.
13537
13538 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
13539
13540 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
13541 (*maddhisi4tb, *maddhisi4tt): New define_insns.
13542
13543 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
13544 Andrew Stubbs <ams@codesourcery.com>
13545
13546 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
13547 multiplies.
13548 * doc/md.texi (Canonicalization of Instructions): Document widening
13549 multiply canonicalization.
13550
13551 2011-06-07 Jakub Jelinek <jakub@redhat.com>
13552
13553 PR gcov-profile/49299
13554 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
13555
13556 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
13557
13558 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
13559 a pointer.
13560 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
13561 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
13562 vect_recog_pow_pattern): Likewise.
13563 (vect_pattern_recog_1): Remove declaration.
13564 (widened_name_p): Remove declaration. Add new argument to specify
13565 whether to check that both types are either signed or unsigned.
13566 (vect_recog_widen_mult_pattern): Update documentation. Handle
13567 unsigned patterns and multiplication by constants.
13568 (vect_pattern_recog_1): Update vect_recog_func references. Use
13569 statement information from the statement returned from pattern
13570 detection functions.
13571 (vect_pattern_recog): Update vect_recog_func reference.
13572 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
13573 multiplication by a constant use the type of the other operand.
13574
13575 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13576
13577 PR rtl-optimization/49145
13578 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
13579
13580 2011-06-06 Jakub Jelinek <jakub@redhat.com>
13581
13582 PR debug/49262
13583 * dwarf2out.c (native_encode_initializer): Decrement count in each
13584 iteration.
13585
13586 PR debug/49294
13587 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
13588 non-MODE_INT modes.
13589
13590 PR c++/49264
13591 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
13592 if stmt folded into nothing.
13593 * tree-inline.c (fold_marked_statements): If a builtin at the end of
13594 a bb folded into nothing, just update cgraph edges and move to next bb.
13595 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
13596 to be NULL. Don't compute count and frequency if new_call is NULL.
13597
13598 2011-06-04 Diego Novillo <dnovillo@google.com>
13599
13600 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
13601 (cgraph.o): Likewise.
13602 (cgraphunit.o): Likewise.
13603 * cgraphunit.c: Include lto-streamer.h
13604 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
13605 if LTO is enabled.
13606 * lto-streamer-in.c (unpack_value_fields): Call
13607 streamer_hooks.unpack_value_fields if set.
13608 (lto_materialize_tree): For unhandled nodes, first try to
13609 call lto_streamer_hooks.alloc_tree, if it exists.
13610 (lto_input_ts_decl_common_tree_pointers): Move reading of
13611 DECL_INITIAL to lto_streamer_read_tree.
13612 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
13613 (lto_streamer_read_tree): New.
13614 (lto_reader_init): Rename from lto_init_reader.
13615 Move initialization code to lto/lto.c.
13616 * lto-streamer-out.c (pack_value_fields): Call
13617 streamer_hooks.pack_value_fields if set.
13618 (lto_output_tree_ref): For tree nodes that are not normally indexable,
13619 call streamer_hooks.indexable_with_decls_p before giving up.
13620 (lto_output_ts_decl_common_tree_pointers): Move handling
13621 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
13622 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
13623 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
13624 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
13625 (lto_streamer_write_tree): New.
13626 (lto_output): Call lto_streamer_init directly.
13627 (lto_writer_init): Remove.
13628 * lto-streamer.c (streamer_hooks): New.
13629 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
13630 instead of lto_preload_common_nodes.
13631 (lto_is_streamable): Move from lto-streamer.h
13632 (lto_streamer_hooks_init): New.
13633 (streamer_hooks): New.
13634 (streamer_hooks_init): New.
13635 * lto-streamer.h (struct output_block): Forward declare.
13636 (struct lto_input_block): Likewise.
13637 (struct data_in): Likewise.
13638 (struct bitpack_d): Likewise.
13639 (struct streamer_hooks): Declare.
13640 (streamer_hooks): Declare.
13641 (lto_streamer_hooks_init): Declare.
13642 (lto_streamer_write_tree): Declare.
13643 (lto_streamer_read_tree): Declare.
13644 (streamer_hooks_init): Declare.
13645 (lto_is_streamable): Move to lto-streamer.c
13646
13647 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13648
13649 * longlong.h (smul_ppmm): The resulting register pair contains the
13650 higher order word first.
13651
13652 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13653
13654 PR tree-optimization/46728
13655 * builtins.c (powi_table): Remove.
13656 (powi_lookup_cost): Remove.
13657 (powi_cost): Remove.
13658 (expand_powi_1): Remove.
13659 (expand_powi): Remove.
13660 (expand_builtin_pow_root): Remove.
13661 (expand_builtin_pow): Remove.
13662 (expand_builtin_powi): Eliminate handling of constant exponent.
13663 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
13664
13665 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13666
13667 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
13668
13669 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13670
13671 * dce.c (reset_unmarked_insns_debug_uses): New.
13672 (delete_unmarked_insns): Skip debug insns.
13673 (prescan_insns_for_dce): Likewise.
13674 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
13675 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
13676 active reg can be found.
13677 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
13678 (convert_regs_1): Use it.
13679
13680 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13681
13682 * tree-pretty-print.c (dump_function_header): Add flags.
13683 Don't dump decl_uid with nouid.
13684 * tree-pretty-print.h (dump_function_header): Adjust.
13685 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
13686 * passes.c (pass_init_dump_file): Pass dump_flags on.
13687 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
13688
13689 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13690
13691 PR bootstrap/49270
13692 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
13693
13694 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
13695
13696 PR tree-optimization/49243
13697 * calls.c (setjmp_call_p): Also check if fndecl has the
13698 returns_twice attribute.
13699
13700 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13701
13702 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
13703 -ffast-math etc.
13704
13705 2011-06-06 Richard Henderson <rth@redhat.com>
13706 Georg-Johann Lay <avr@gjlay.de>
13707
13708 PR target/42210
13709 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
13710 New predicates.
13711 * config/avr/avr.md ("insv"): New insn expander.
13712 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
13713 "*insv.not.io", "*insv.reg"): New insns.
13714
13715 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
13716
13717 PR target/49285
13718 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
13719 to nonimmediate_operand from memory_operand for the operand that is to
13720 be forced to memory by the expander. Lose the constraints.
13721
13722 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
13723
13724 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
13725 EH return when delayed branches are disabled.
13726
13727 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
13728
13729 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
13730 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
13731 calculation.
13732 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
13733 Simplify MODE_V1DF and MODE_V2SF handling.
13734 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
13735 Simplify MODE_SF handling.
13736
13737 2011-06-04 Jan Hubicka <jh@suse.cz>
13738
13739 PR tree-optimization/48893
13740 PR tree-optimization/49091
13741 PR tree-optimization/49179
13742 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
13743 Bounds check.
13744
13745 2011-06-04 Jan Hubicka <jh@suse.cz>
13746
13747 PR lto/48954
13748 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
13749 bitmaps.
13750
13751 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
13752
13753 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
13754
13755 2011-06-04 Jakub Jelinek <jakub@redhat.com>
13756
13757 PR target/49281
13758 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
13759 to be strictly smaller than 1 << shiftcount.
13760
13761 2011-06-04 Jan Hubicka <jh@suse.cz>
13762
13763 PR tree-optimize/48929
13764 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
13765 of empty predicate.
13766
13767 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
13768
13769 PR debug/48333
13770 * calls.c (emit_call_1): Prefer the __builtin declaration of
13771 builtin functions.
13772
13773 2011-06-03 Diego Novillo <dnovillo@google.com>
13774
13775 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
13776 (lto_input_tree_pointers): Likewise.
13777 * lto-streamer-out.c (pack_value_fields): Likewise.
13778 (lto_output_tree_pointers): Likewise.
13779 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
13780 and OPTIMIZATION_NODE.
13781
13782 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13783
13784 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
13785 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
13786 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
13787 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
13788 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
13789 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
13790 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
13791 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
13792 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
13793 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
13794 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
13795 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
13796 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
13797 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
13798 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
13799 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
13800 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
13801 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
13802 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
13803 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
13804 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
13805 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
13806 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
13807 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
13808 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
13809 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
13810 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
13811 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
13812 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
13813 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
13814 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
13815 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
13816 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
13817 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
13818 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
13819 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
13820 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
13821 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
13822 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
13823 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
13824 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
13825 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
13826 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
13827 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
13828 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
13829 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
13830 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
13831 * system.h (MD_UNWIND_SUPPORT): Poison.
13832 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
13833 * doc/tm.texi: Regenerate.
13834 * unwind-dw2.c: Include md-unwind-support.h instead of
13835 MD_UNWIND_SUPPORT.
13836 * config/ia64/unwind-ia64.c: Likewise.
13837 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
13838
13839 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
13840
13841 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
13842
13843 2011-06-03 Richard Henderson <rth@redhat.com>
13844 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13845
13846 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
13847 (sigill_hdlr): Correct insn, insn size.
13848 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
13849
13850 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13851
13852 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
13853 t-slibgcc-dummy.
13854 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
13855 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
13856 * config/mips/t-iris: Remove.
13857 * config/mips/t-irix6: New file.
13858 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
13859
13860 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13861
13862 * Makefile.in (LIB2ADDEHDEP): Remove.
13863 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
13864 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
13865 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
13866 * config/t-darwin (LIB2ADDEHDEP): Remove.
13867 * config/t-freebsd (LIB2ADDEHDEP): Remove.
13868 * config/t-linux (LIB2ADDEHDEP): Remove.
13869
13870 2011-06-03 Diego Novillo <dnovillo@google.com>
13871
13872 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
13873 (lto_register_var_decl_in_symtab): Likewise.
13874 (lto_register_function_decl_in_symtab): Likewise.
13875 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
13876 logic to uniquify_nodes.
13877
13878 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13879
13880 * config/alpha/t-osf5: Remove.
13881 * config/alpha/t-osf-pthread: Remove.
13882 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
13883 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
13884
13885 2011-06-03 Julian Brown <julian@codesourcery.com>
13886
13887 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
13888 (strongarm1110): Use strongarm tuning.
13889 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
13890 * config/arm/arm.c (arm_strongarm_tune): New.
13891 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
13892 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
13893 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
13894 setting, using previous defaults or 1 for Cortex-A5.
13895 (arm_option_override): Set max_insns_skipped from current tuning.
13896
13897 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
13898
13899 * doc/install.texi (Options specification): Document --with-specs.
13900
13901 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13902
13903 * config/arm/neon.md (orndi3_neon): Actually split it.
13904
13905 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
13906
13907 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
13908 * var-tracking.c (reverse_op): Limite recurse depth to 5.
13909
13910 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
13911
13912 PR debug/47590
13913 * target.def (delay_sched2, delay_vartrack): New.
13914 * doc/tm.texi.in: Update.
13915 * doc/tm.texi: Rebuild.
13916 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
13917 * var-tracking.c (gate_handle_var_tracking): Likewise.
13918 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
13919 (bfin_flag_var_tracking): Drop.
13920 (output_file_start): Don't save and override flag_var_tracking.
13921 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
13922 (bfin_reorg): Test original variables.
13923 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13924 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
13925 (ia64_flag_var_tracking): Drop.
13926 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13927 (ia64_file_start): Don't save and override flag_var_tracking.
13928 (ia64_override_options_after_change): Ditto
13929 flag_schedule_insns_after_reload.
13930 (ia64_reorg): Test original variables.
13931 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
13932 (picochip_flag_var_tracking): Drop.
13933 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13934 (picochip_option_override): Don't save and override
13935 flag_schedule_insns_after_reload.
13936 (picochip_asm_file_start): Ditto flag_var_tracking.
13937 (picochip_reorg): Test original variables.
13938 * config/spu/spu.c (spu_flag_var_tracking): Drop.
13939 (TARGET_DELAY_VARTRACK): Define.
13940 (spu_var_tracking): New.
13941 (spu_machine_dependent_reorg): Call it.
13942 (asm_file_start): Don't save and override flag_var_tracking.
13943
13944 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
13945
13946 PR target/49163
13947 * config/sh/predicates.md (general_movsrc_operand): Return 0
13948 for memory and memory subreg of which address is an invalid
13949 indexed address for QI and HImode.
13950 (general_movdst_operand): Likewise.
13951
13952 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
13953
13954 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
13955 edges only, when there is a non-local label in the function.
13956 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
13957
13958 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
13959
13960 * config/i386/constraints.md (Y3): New register constraint.
13961 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
13962 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
13963 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
13964 *sse2_interleave_lowv2df.
13965
13966 2011-06-02 Julian Brown <julian@codesourcery.com>
13967
13968 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
13969 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
13970 (arm_cortex_a5_tune): New.
13971
13972 2011-06-02 Julian Brown <julian@codesourcery.com>
13973
13974 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
13975 * config/arm/arm.c (arm_default_branch_cost): New.
13976 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
13977 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
13978 (arm_fa726_tune): Set branch_cost field using
13979 arm_default_branch_cost.
13980 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
13981 current_tune structure.
13982 * dojump.c (tm_p.h): Include file.
13983
13984 2011-06-02 Julian Brown <julian@codesourcery.com>
13985
13986 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
13987 tuning.
13988 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
13989 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
13990 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
13991 field.
13992 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
13993 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
13994 (arm_fa726te_tune): Add prefer_constant_pool setting.
13995 (arm_v6t2_tune, arm_cortex_tune): New.
13996 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
13997 prefer_constant_pool setting.
13998
13999 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
14000
14001 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
14002 switch statement.
14003 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
14004 (*movdf_internal) <case 6,7,8>: Ditto.
14005
14006 * config/i386/constraints.md (Y4): New register constraint.
14007 * config/i386/sse.md (vec_set<mode>_0): Merge with
14008 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
14009 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
14010 *vec_extractv2di_1_sse.
14011 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
14012 and *vec_concatv2di_rex64_sse.
14013
14014 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
14015
14016 PR target/48807
14017 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
14018 of cgraph_local_info for null before attempting to use it.
14019
14020 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
14021
14022 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
14023 (current_function_dynamic_alloc_count): Delete.
14024 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
14025 (expand_builtin_nonlocal_goto): Remove obsolete comment.
14026 (expand_builtin_update_setjmp_buf): Remove dead code.
14027 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
14028 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
14029 support.
14030 * function.c (instantiate_virtual_regs): Likewise.
14031 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
14032 for a block with a single abnormal incoming edge.
14033 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
14034 (SETJMP_VIA_SAVE_AREA): Delete.
14035 * config/sparc/sparc-protos.h (load_got_register): Declare.
14036 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
14037 (load_got_register): Make global.
14038 (sparc_frame_pointer_required): Add 'static'.
14039 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
14040 (sparc_builtin_setjmp_frame_value): New function.
14041 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
14042 (save_stack_nonlocal): New expander.
14043 (restore_stack_nonlocal): Likewise.
14044 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
14045 (nonlocal_goto_internal): New insn.
14046 (goto_handler_and_restore): Delete.
14047 (builtin_setjmp_setup): Likewise.
14048 (do_builtin_setjmp_setup): Likewise.
14049 (setjmp): Likewise.
14050 (builtin_setjmp_receiver): New expander.
14051
14052 2011-06-01 David Li <davidxl@google.com>
14053
14054 PR middle-end/49261
14055 * tree-pretty-print.c (dump_function_header): Format cleanup.
14056
14057 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
14058
14059 PR target/49238
14060 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
14061 needed when original operands are used for msw_skip comparison.
14062
14063 2011-06-01 Jakub Jelinek <jakub@redhat.com>
14064
14065 PR debug/49250
14066 * var-tracking.c (add_uses, add_stores): Don't call
14067 cselib_subst_to_values on ENTRY_VALUE.
14068
14069 2011-06-01 Diego Novillo <dnovillo@google.com>
14070
14071 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
14072 output_record_start with LTO_null instead of output_zero.
14073 (lto_output_ts_binfo_tree_pointers): Likewise.
14074 (lto_output_tree): Likewise.
14075 (output_eh_try_list): Likewise.
14076 (output_eh_region): Likewise.
14077 (output_eh_lp): Likewise.
14078 (output_eh_regions): Likewise.
14079 (output_bb): Likewise.
14080 (output_function): Likewise.
14081 (output_unreferenced_globals): Likewise.
14082 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
14083 instead of NUM_TREE_CODES.
14084 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
14085 (lto_output_int_in_range): Change << to >> when shifting VAL.
14086
14087 2011-06-01 Diego Novillo <dnovillo@google.com>
14088
14089 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
14090 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
14091
14092 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
14093
14094 PR target/45074
14095 * optabs.h (valid_multiword_target_p): Declare.
14096 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
14097 doing multi-word operations.
14098 * optabs.c (expand_binop): Likewise.
14099 (expand_doubleword_bswap): Likewise.
14100 (expand_absneg_bit): Likewise.
14101 (expand_unop): Likewise.
14102 (expand_copysign_bit): Likewise.
14103 (multiword_target_p): New function.
14104
14105 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
14106
14107 PR rtl-optimization/48830
14108 PR rtl-optimization/48808
14109 PR rtl-optimization/48792
14110 * reload.c (push_reload): Check contains_reg_of_mode.
14111 * reload1.c (strip_paradoxical_subreg): New function.
14112 (gen_reload_chain_without_interm_reg_p): Use it to handle
14113 paradoxical subregs.
14114 (emit_output_reload_insns, gen_reload): Likewise.
14115
14116 2011-06-01 David Li <davidxl@google.com>
14117
14118 * predict.c : Change pass name
14119 * ipa.c: Ditto.
14120 * dce.c: Ditto.
14121 * tree-profile.c: Ditto.
14122 * except.c: Ditto.
14123
14124 2011-06-01 David Li <davidxl@google.com>
14125
14126 * tree-pretty-print.c (dump_function_header): New function.
14127 * final.c (rest_of_clean_state): Use header dumper.
14128 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
14129 * passes.c (pass_init_dump_file): Use header dumper.
14130
14131 2011-06-01 Jakub Jelinek <jakub@redhat.com>
14132
14133 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
14134 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
14135 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
14136 New functions.
14137 (mem_loc_descriptor): Use them.
14138
14139 * var-tracking.c (create_entry_value): New function.
14140 (vt_add_function_parameter): Use it.
14141
14142 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14143
14144 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
14145 Include <signal.h>, <ucontext.h>.
14146 (sigill_caught): Define.
14147 (sigill_hdlr): New function.
14148 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
14149 insns can be executed.
14150 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
14151 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
14152
14153 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14154
14155 * config/t-slibgcc-darwin: Move to ...
14156 * config/t-slibgcc-dummy: ... this. Clarify comments.
14157 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
14158 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
14159 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
14160 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
14161 Remove i386/t-crtstuff from tmake_file.
14162 (i[34567]86-*-solaris2*): Remove t-svr4,
14163 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
14164 t-slibgcc-dummy.
14165 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
14166 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
14167 sparc/t-crtfm from tmake_file.
14168 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
14169 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
14170 Remove extra_parts.
14171 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
14172 * config/i386/t-nwld (SHLIB_LINK): Remove.
14173 * config/i386/t-rtems-i386: Rename to ...
14174 * config/i386/t-rtems: ... this.
14175 ($(T)crti.o, $(T)crtn.o): Remove.
14176 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
14177 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
14178 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
14179 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
14180 EXTRA_MULTILIB_PARTS): Remove.
14181 * config/sparc/t-sol2-64: Likewise.
14182 * config/sparc/t-sol2: Remove.
14183 * config/sparc/t-crtin: Remove.
14184 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
14185 * config/i386/gmon-sol2.c: Remove.
14186 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
14187 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
14188 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
14189 * config/i386/sol2-gc1.asm: Remove.
14190 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
14191 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
14192 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
14193 * config/t-slibgcc-sld: Remove.
14194
14195 2011-06-01 Jakub Jelinek <jakub@redhat.com>
14196
14197 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
14198 base_type_for_mode with op_mode instead of mode.
14199
14200 2011-06-01 Paul Brook <paul@cpodesourcery.com>
14201
14202 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
14203 Cortex-A15.
14204 * config/arm/arm-tune.md: Regenerate.
14205 * config/arm/arm-tables.opt: Regenerate.
14206 * config/arm/arm.c (FL_DIV): Rename...
14207 (FL_THUMB_DIV): ... to this.
14208 (FL_ARM_DIV): Define.
14209 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
14210 (arm_arch_hwdiv): Remove.
14211 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
14212 (arm_issue_rate): Add cortexr5.
14213 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
14214 __ARM_ARCH_EXT_IDIV__.
14215 (TARGET_IDIV): Define.
14216 (arm_arch_hwdiv): Remove.
14217 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
14218 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
14219 (divsi3, udivsi3): New patterns.
14220 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
14221 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
14222
14223 2011-06-01 Martin Jambor <mjambor@suse.cz>
14224
14225 * ipa-utils.c (ipa_dfs_info): New field scc_no.
14226 * ipa-utils.c (searchc): Set scc_no.
14227
14228 2011-06-01 Martin Jambor <mjambor@suse.cz>
14229
14230 * ipa-utils.c (searchc_env): New field allow_overwritable.
14231 (searchc): do not ignore edges to overwritable nodes if indicated
14232 by env->allow_overwritable.
14233 (ipa_reduced_postorder): Set env.allow_overwritable.
14234
14235 2011-06-01 Richard Guenther <rguenther@suse.de>
14236
14237 * tree.c (free_lang_data): Do not reset boolean_type_node nor
14238 char_type_node.
14239 * lto-streamer.c (lto_record_common_node): Take node pointer,
14240 do not register types.
14241 (lto_preload_common_nodes): Explicitly skip preloading nodes
14242 that differ between frontends.
14243
14244 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
14245
14246 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
14247 NON_FLOAT_REGS.
14248
14249 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
14250
14251 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
14252 parameter value for dump. Dump cost on outermost call only.
14253 (rs6000_memory_move_cost): Dump cost on outermost call only.
14254
14255 2011-05-31 Jakub Jelinek <jakub@redhat.com>
14256
14257 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
14258 DW_OP_GNU_convert ops.
14259
14260 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
14261 cselib_preserve_constants.
14262 (cselib_lookup_1): If cselib_preserve_constants,
14263 a new VALUE is being created for REG and there is a VALUE for the
14264 same register in wider mode, add another loc with lowpart SUBREG of
14265 the wider VALUE.
14266 (cselib_subst_to_values): Handle ENTRY_VALUE.
14267 * var-tracking.c (replace_expr_with_values): Return NULL for
14268 ENTRY_VALUE too.
14269 * dwarf2out.c (convert_descriptor_to_signed): New function.
14270 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
14271 instead of two shifts.
14272 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
14273 the right mode if needed.
14274 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
14275 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
14276 convert_descriptor_to_signed.
14277 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
14278 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
14279
14280 PR target/48688
14281 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
14282
14283 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
14284
14285 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
14286 of X87MODEI12 and SWI48x instead of SSEMODEI24.
14287 (SWI248x): New mode iterator, rename from X87MODEI.
14288 (X87MODEI): Remove mode iterator.
14289 (X87MODEI12): Ditto.
14290 (SSEMODEI24): Ditto.
14291
14292 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
14293
14294 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
14295 * doc/invoke.texi: Document max-vartrack-expr-depth.
14296 * var-tracking.c (EXPR_DEPTH): New.
14297 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
14298
14299 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
14300
14301 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
14302 * config/i386/sse.md: Add n to negated FMA pattern names.
14303
14304 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
14305
14306 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
14307
14308 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
14309
14310 * gengtype-state.c (read_state_params_structs): Initialize previous.
14311
14312 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
14313
14314 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
14315 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
14316
14317 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
14318
14319 * config/i386/i386.md (*movtf_internal): Avoid allocating general
14320 registers. Penalize F*r->o alternative to prevent partial memory
14321 stalls. Slightly penalize *roF->*r alternative. Generate SSE
14322 CONST_DOUBLE immediates when optimizing function for size. Do not move
14323 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
14324 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
14325 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
14326 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
14327 alternatives.
14328 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
14329
14330 (fp_register_operand splitters): Use fp_register_operand
14331 constraint. Do not use FP_REG_P in insn condition.
14332 (any_fp_register_operand splitters): Use any_fp_register_operand
14333 constraint. Do not use ANY_FP_REG_P in insn condition.
14334
14335 2011-05-31 Jan Hubicka <jh@suse.cz>
14336
14337 * cgraph.h (cgraph_inline_failed_t): Give enum a name
14338 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
14339 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
14340 (lto_output_edge): Use output_enum and var_len_unsigned.
14341 (lto_output_varpool_node): Likewise.
14342 (input_overwrite_node): Do not take resolution parameter;
14343 extract it from a bitpack.
14344 (input_node): Do not read resolution; use input_enum and
14345 var_len_unsigned.
14346 (input_varpool_node): Likewise.
14347 (input_edge): Likewise.
14348 (input_cgraph_1): Likewise.
14349
14350 2011-05-31 Richard Guenther <rguenther@suse.de>
14351
14352 * gimple.c (gimple_register_canonical_type): Do not register
14353 any types via gimple_register_type.
14354
14355 2011-05-31 Jan Hubicka <jh@suse.cz>
14356
14357 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
14358 of thunks.
14359
14360 2011-05-31 Jakub Jelinek <jakub@redhat.com>
14361
14362 PR rtl-optimization/49235
14363 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
14364 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
14365
14366 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
14367
14368 PR tree-optimization/49093
14369 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
14370 data references.
14371
14372 2011-05-31 Dodji Seketeli <dodji@redhat.com>
14373
14374 PR debug/49047
14375 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
14376 for concrete functions containing the code of cloned functions.
14377
14378 2011-05-31 Richard Guenther <rguenther@suse.de>
14379
14380 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
14381 to ...
14382 (forward_propagate_into_comparison_1): ... this.
14383 (forward_propagate_comparison): Rename to ...
14384 (forward_propagate_into_comparison): ... this. Split out
14385 real forward propagation code to ...
14386 (forward_propagate_comparison): ... this.
14387 (forward_propagate_into_gimple_cond): Remove looping.
14388 (forward_propagate_into_cond): Likewise.
14389 (simplify_not_neg_expr): Return whether we have done something.
14390 (simplify_gimple_switch): Likewise.
14391 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
14392 (ssa_forward_propagate_and_combine): ... this. Re-structure
14393 to do a forward forward-propagation walk on BBs and a backward
14394 stmt combining walk on BBs. Consistently re-scan changed statements.
14395 (pass_forwprop): Adjust.
14396
14397 2011-05-30 Ian Lance Taylor <iant@google.com>
14398
14399 * godump.c (go_format_type): Correct length of name added to
14400 obstack for anonymous field.
14401
14402 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
14403
14404 PR target/49186
14405 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
14406 part of the second operand is 0.
14407
14408 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
14409
14410 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
14411 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
14412 to memory for !TARGET_MEMORY_MISMATCH_STALL.
14413 (*movdf_internal_rex64): Do not penalize F->r alternative.
14414 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
14415 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
14416 when optimizing function for size. Do not move CONST_DOUBLEs
14417 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
14418 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
14419 SUBREGs. Do not check for MEM_P operands in the insn condition,
14420 check for ANY_FP_REGNO_P instead.
14421 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
14422 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
14423 function for speed.
14424 * config/i386/i386.c (ix86_option_override_internal): Do not
14425 set TARGET_INTEGER_DFMODE_MOVES here.
14426
14427 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
14428
14429 PR target/49168
14430 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
14431
14432 2011-05-30 Jakub Jelinek <jakub@redhat.com>
14433
14434 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
14435 DW_TAG_rvalue_reference_type even for
14436 -gdwarf-4 -fno-debug-types-section.
14437
14438 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14439
14440 PR tree-optimization/46728
14441 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
14442 (build_and_insert_binop): New.
14443 (gimple_expand_builtin_pow): Reorder args for
14444 build_and_insert_call; use build_and_insert_binop; add more
14445 optimizations for fractional exponents.
14446
14447 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
14448
14449 PR bootstrap/49190
14450
14451 Revert:
14452 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
14453
14454 * tree.h (struct tree_identifier): Inherit from tree_typed, not
14455 tree_common.
14456 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
14457 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
14458 TS_BASE instead of TS_COMMON.
14459 * varasm.c (assemble_name): Remove assert.
14460
14461 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
14462
14463 * config.gcc: Keep obselete list sorted.
14464
14465 2011-05-30 Jakub Jelinek <jakub@redhat.com>
14466 Eric Botcazou <ebotcazou@adacore.com>
14467
14468 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
14469 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
14470 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
14471 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
14472 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
14473
14474 2011-05-30 Richard Guenther <rguenther@suse.de>
14475
14476 * gimple.c (gimple_types_compatible_p_1): Compare record
14477 and union type members properly.
14478
14479 2011-05-30 Richard Guenther <rguenther@suse.de>
14480
14481 PR tree-optimization/49210
14482 * ipa-split.c (split_function): Care for the case where the call
14483 result is not trivially convertible to the result holding variable.
14484
14485 2011-05-30 Richard Guenther <rguenther@suse.de>
14486
14487 PR tree-optimization/49218
14488 * tree-vrp.c (adjust_range_with_scev): Properly check whether
14489 overflow occured.
14490
14491 2011-05-30 Richard Guenther <rguenther@suse.de>
14492
14493 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
14494 New function split out from ...
14495 (forward_propagate_into_gimple_cond): ... here. Adjust.
14496 (forward_propagate_into_cond): Likewise.
14497 (forward_propagate_comparison): Also propagate into
14498 comparisons on assignment RHS. Change return value to
14499 behave similar to forward_propagate_into_cond.
14500 (tree_ssa_forward_propagate_single_use_vars): Handle
14501 strict-overflow warnings properly for forward_propagate_comparison.
14502
14503 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14504
14505 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
14506 from plugin linker.
14507 * configure: Regenerate.
14508
14509 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
14510
14511 PR tree-optimization/49199
14512 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
14513 non-reduction operands are either defined in the loop or by induction.
14514
14515 2011-05-29 Xinliang David Li <davidxl@google.com>
14516
14517 * opts-global.c (handle_common_deferred_options): Handle new options.
14518 * passes.c (register_one_dump_file): Call register_pass_name.
14519 (execute_one_pass): Check explicit enable/disable flag.
14520 (passr_hash): New function.
14521 (passr_eq): Ditto.
14522 (register_pass_name): Ditto.
14523 (get_pass_by_name): Ditto.
14524 (pass_hash): Ditto.
14525 (pass_eq): Ditto.
14526 (enable_pass): Ditto.
14527 (disable_pass): Ditto.
14528 (is_pass_explicitly_enabled_or_disabled): Ditto.
14529
14530 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
14531
14532 * config/i386/i386.md (*movoi_internal_avx): Use
14533 standard_sse_constant_opcode for alternative 0.
14534 (*movti_internal_sse): Ditto.
14535 (*movti_internal_rex64): Use standard_sse_constant_opcode for
14536 alternative 2.
14537 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
14538 sselog1 type moves.
14539 (*movsi_internal): Ditto.
14540 (*movdi_internal): Ditto. Add ssecvt type moves.
14541
14542 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
14543
14544 PR target/48830
14545 * rtlanal.c (simplify_subreg_regno): Adjust comment.
14546
14547 2011-05-29 Jakub Jelinek <jakub@redhat.com>
14548
14549 PR rtl-optimization/49095
14550 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
14551 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
14552
14553 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
14554
14555 PR target/43995
14556 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
14557 recurse_p argument. Only follow register copies if it is set,
14558 and prevent mips_find_pic_call_symbol from recursing.
14559 (mips_find_pic_call_symbol): Add a recurse_p argument.
14560 Pass it to mips_pic_call_symbol_from_set.
14561 (mips_annotate_pic_calls): Update accordingly.
14562
14563 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
14564
14565 * emit-rtl.c (try_split): Use a loop to search for
14566 NOTE_INSN_CALL_ARG_LOCATIONs.
14567
14568 2011-05-29 Richard Guenther <rguenther@suse.de>
14569
14570 PR tree-optimization/49217
14571 * ipa-pure-const.c (propagate_pure_const): Fix typos.
14572
14573 2011-05-28 Jan Hubicka <jh@suse.cz>
14574
14575 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
14576 length.
14577 (string_slot_free): Remove
14578 (create_output_block): Initialize obstack.
14579 (destroy_output_block): Free obstack.
14580 (lto_string_index): Add PERSISTENT parameter; do not duplicate
14581 the string unless it needs to be added into the hash.
14582 (lto_output_string_with_length): Add persistent attribute;
14583 handle NULL strings.
14584 (lto_output_string): Add PERSISTENT parameter.
14585 (output_string_cst, output_identifier): Simplify.
14586 (lto_output_location_bitpack): Update.
14587 (lto_output_builtin_tree): Update.
14588 * lto-streamer.h (struct output_block): Add obstack.
14589 (lto_output_string, lto_output_string_with_length): Remove
14590 declarations; functions are static now.
14591
14592 2011-05-28 Jan Hubicka <jh@suse.cz>
14593
14594 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
14595 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
14596 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
14597 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
14598 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
14599 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
14600 unpack_ts_decl_with_vis_value_fields,
14601 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
14602 lto_get_builtin_tree): Use enum and variable length i/o.
14603 * basic-block.h (profile_status_d): Add PROFILE_LAST.
14604 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
14605 New functions.
14606 (bp_pack_enum, bp_unpack_enum): New macros.
14607
14608 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14609
14610 * genrecog.c: Remove redundant forward declarations.
14611
14612 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14613
14614 * config.gcc: Deprecate mips*-*-openbsd*.
14615
14616 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14617
14618 PR bootstrap/49195
14619 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
14620 for match_op_dup.
14621
14622 2011-05-27 Andrew Pinski <pinskia@gmail.com>
14623
14624 PR middle-end/48981
14625 * gengtype.c (vec_prefix_type): New function.
14626 (note_def_vec): Use vec_prefix_type and change the length
14627 attribute to be based on the prefix.
14628 * vec.c: Include coretypes.h before vec.h.
14629 (struct vec_prefix): Remove.
14630 (vec_gc_p_reserve): Change the offsetof to sizeof.
14631 (vec_gc_p_reserve_exact): Likewise.
14632 (vec_heap_p_reserve): Likewise.
14633 (vec_heap_p_reserve_exact): Likewise.
14634 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
14635 (vec_stack_p_reserve): Change the offsetof to sizeof.
14636 (vec_stack_p_reserve_exact): Likewise.
14637 * vec.h (struct vec_prefix): New struct definition.
14638 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
14639 (VEC_T_GTY(T,B)): Likewise.
14640 (DEF_VEC_FUNC_P(T)): Use prefix field.
14641 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
14642 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
14643
14644 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14645
14646 PR tree-optimization/46728
14647 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
14648 (powi_as_mults): Add gimple_set_location.
14649 (build_and_insert_call): New.
14650 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
14651 0.5, 0.25, 0.75, 1./3., or 1./6.
14652
14653 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
14654
14655 * doc/contrib.texi: Update copyright years.
14656 (Contributors): Add Zdenek Sojka.
14657
14658 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
14659
14660 * c-decl.c (c_push_function_context): Copy the current statement
14661 list stack.
14662 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
14663 (finish_struct): Call building_stmt_list_p instead of checking
14664 cur_stmt_list.
14665 * c-parser.c (c_parser_postfix_expression): Likewise.
14666 * c-typeck.c (c_end_compound_stmt): Likewise.
14667 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
14668 * tree-iterator.c (stmt_list_cache): Change to a VEC.
14669 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
14670 (free_stmt_list): Likewise.
14671 * tree.h (struct tree_statement_list): Include typed_tree instead
14672 of tree_common.
14673 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
14674 as TS_TYPED instead of TS_COMMON.
14675
14676 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14677 Uros Bizjak <ubizjak@gmail.com>
14678
14679 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
14680 (HAVE_AS_IX86_TLSGDPTL): Define.
14681 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
14682 (HAVE_AS_IX86_TLSLDMPLT): Define.
14683 * configure: Regenerate.
14684 * config.in: Regenerate.
14685 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
14686 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
14687 TARGET_SUN_TLS, use @tlsgdplt or @plt.
14688 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
14689 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
14690 @tlsldmplt or @plt.
14691 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
14692
14693 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
14694
14695 * sched-int.h (struct _haifa_deps_insn_data): New members cond
14696 and reverse_cond.
14697 (INSN_COND, INSN_REVERSE_COND): New macros.
14698 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
14699 once.
14700 (sched_get_condition_with_rev): Cache the results, and look them up
14701 if possible.
14702 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
14703 are clobbered by the current insn.
14704 * target.def (exposed_pipline): New sched data hook.
14705 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
14706 * doc/tm.texi: Regenerate.
14707
14708 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14709
14710 PR tree-optimization/49170
14711 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
14712 sincos or cexp.
14713
14714 2011-05-27 Richard Guenther <rguenther@suse.de>
14715
14716 PR middle-end/49189
14717 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
14718 of comparisons.
14719
14720 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
14721
14722 * haifa-sched.c (sched_scan_info): Remove.
14723 (schedule_block): Call sched_extend_luids rather than sched_init_luids
14724 with NULL args.
14725 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
14726 Remove functions.
14727 (sched_scan): Remove.
14728 (sched_extend_luids): Renamed from luids_extend_insn and no longer
14729 static. All callers changed.
14730 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
14731 static. All callers changed.
14732 (sched_init_luids): Remove all arguments except the first. All
14733 callers changed. Don't use sched_scan.
14734 (haifa_init_h_i_d): Likewise.
14735 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
14736 manually rather than using sched_init_luids. Likewise with
14737 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
14738 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
14739 rather than sched_init_luids with NULL args.
14740 * sel-sched-ir.c (new_insns): Remove variable.
14741 (sched_scan): New static function, previously in haifa-sched.c. Remove
14742 all arguments but the first two; all callers changed.
14743 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
14744 rather than sched_init_luids.
14745 (sel_init_bbs): Remove second argument. All callers changed.
14746 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
14747 with NULL arguments.
14748 (create_insn_rtx_from_pattern): Likewise.
14749 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
14750 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
14751 (sched_init_insn_luid, sched_extend_luids): Declare.
14752 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
14753 declarations.
14754
14755 2011-05-27 Richard Guenther <rguenther@suse.de>
14756
14757 PR middle-end/49177
14758 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
14759 A CMP B ? (T) true : (T) false for non-integral types T again.
14760
14761 2011-05-27 Jan Hubicka <jh@suse.cz>
14762
14763 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
14764 so 0 means NULL string.
14765 (lto_output_string_with_length): ... here.
14766 (lto_output_string, output_string_cst, output_identifier): Update
14767 handling of NULL strings.
14768 (lto_output_location_bitpack): New function.
14769 (lto_output_location): Use it.
14770 (lto_output_tree_ref): Use output_record_start.
14771 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
14772 len values.
14773 * lto-streamer-in.c (string_for_index): Break out from ...; offset
14774 values by 1.
14775 (input_string_internal): ... here;
14776 (input_string_cst, input_identifier, lto_input_string): Update handling
14777 of NULL strings.
14778 (lto_input_location_bitpack): New function
14779 (lto_input_location): Use it.
14780 (unpack_ts_type_common_value_fields): Pack align & alias in var len
14781 values.
14782 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
14783 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
14784 (bp_pack_value): Sanity check the value range.
14785 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
14786 New functions.
14787 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
14788 New functions.
14789
14790 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
14791
14792 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
14793 call_arg_location instructions down the floor.
14794
14795 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
14796
14797 PR rtl-optimization/49154
14798 * ira.c (setup_pressure_classes): Process class without sublcasses
14799 as a candidate for pressure classes.
14800
14801 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
14802
14803 PR rtl-optimization/48575
14804 * genrecog.c (position_type): New enum.
14805 (position): New structure.
14806 (decision): Use position structure instead of a string.
14807 (root_pos, peep2_insn_pos_list): New variables.
14808 (next_position, compare_positions): New functions.
14809 (new_decision): Use position structures instead of strings.
14810 (maybe_both_true): Likewise.
14811 (change_state): Likewise.
14812 (write_tree): Likewise.
14813 (make_insn_sequence): Likewise.
14814
14815 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
14816
14817 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
14818 TS_BASE instead of TS_COMMON.
14819 (find_decls_types_r): Check for TS_TYPED structure before looking at
14820 TREE_TYPE.
14821 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
14822 Add chain field.
14823 (BLOCK_CHAIN): Use new chain field.
14824
14825 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
14826
14827 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
14828 moves expensive on Power7 also.
14829
14830 2011-05-26 Richard Guenther <rguenther@suse.de>
14831
14832 * fold-const.c (fold_unary_loc): Remove bogus code.
14833
14834 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
14835
14836 * tree.h (struct tree_identifier): Inherit from tree_typed, not
14837 tree_common.
14838 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
14839 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
14840 TS_BASE instead of TS_COMMON.
14841 * varasm.c (assemble_name): Remove assert.
14842
14843 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
14844
14845 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
14846 substituted first.
14847 * libgcc-std.ver: Delete file.
14848
14849 2011-05-26 Richard Guenther <rguenther@suse.de>
14850
14851 PR tree-optimization/48702
14852 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
14853 only when we know the base address is within bounds.
14854 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
14855 assume the base address of TARGET_MEM_REFs is in bounds.
14856
14857 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14858
14859 PR target/49099
14860 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
14861 declaration in TARGET_SOLARIS.
14862
14863 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
14864
14865 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
14866 The instruction is then expanded explicitly.
14867 (supported_compare): Callable instruction.
14868 (compare): Likewise.
14869
14870 2011-05-26 Jakub Jelinek <jakub@redhat.com>
14871
14872 PR c++/49165
14873 * gimplify.c (shortcut_cond_r): Don't special case
14874 COND_EXPRs if they have void type on one of their arms.
14875
14876 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
14877
14878 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
14879 to reduce duplication, and to achieve a slightly more logical order
14880 of operations.
14881
14882 2011-05-26 Jakub Jelinek <jakub@redhat.com>
14883
14884 PR tree-optimization/49161
14885 * tree-vrp.c (struct case_info): New type.
14886 (compare_case_labels): Sort case_info structs instead of
14887 trees, and not primarily by CASE_LABEL uids but by
14888 label_for_block indexes.
14889 (find_switch_asserts): Put case labels into struct case_info
14890 array instead of TREE_VEC, adjust sorting, compare label_for_block
14891 values instead of CASE_LABELs.
14892
14893 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14894
14895 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
14896 ("orndi3_neon"): Likewise.
14897 ("bic<mode>3_neon"): Likewise.
14898
14899 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
14900
14901 PR tree-optimization/49038
14902 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
14903 Ensure at least one epilogue iteration if required by data
14904 accesses with gaps.
14905 * tree-vectorizer.h (struct _loop_vec_info): Add new field
14906 to mark loops that require peeling for gaps.
14907 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
14908 (vect_get_known_peeling_cost): Take peeling for gaps into
14909 account.
14910 (vect_transform_loop): Generate epilogue if required by data
14911 access with gaps.
14912 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
14913 loop as requiring an epilogue if there are gaps in the end of
14914 the strided group.
14915
14916 2011-05-25 Ian Lance Taylor <iant@google.com>
14917
14918 * godump.c (go_format_type): Output the first field with a usable
14919 Go type, if any.
14920
14921 2011-05-25 Ian Lance Taylor <iant@google.com>
14922
14923 * godump.c (go_format_type): Check for invalid type names, pointer
14924 target types, and struct field types.
14925
14926 2011-05-25 Jason Merrill <jason@redhat.com>
14927
14928 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
14929
14930 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
14931
14932 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
14933
14934 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14935
14936 * config/i386/i386.md (*movqi_extv_1)): Put back
14937 "register_operand" check in "type" calculation.
14938 (*movqi_extzv_2): Likewise.
14939
14940 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14941
14942 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
14943
14944 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
14945
14946 PR bootstrap/49160
14947 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
14948 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
14949 __divxc3, __divtc3): Wrap definitions in #ifndef.
14950
14951 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14952
14953 PR target/49142
14954 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
14955 "register_operand" check and replace q_regs_operand with
14956 QIreg_operand in "type" calculation.
14957 (*movqi_extv_1): Likewise.
14958 (*movqi_extzv_2_rex64): Likewise.
14959 (*movqi_extzv_2): Likewise.
14960
14961 * config/i386/predicates.md (QIreg_operand): New.
14962
14963 2011-05-25 Richard Guenther <rguenther@suse.de>
14964
14965 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
14966 type-based offset disambiguation, streamline MEM_REF and
14967 TARGET_MEM_REF handling.
14968
14969 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14970
14971 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
14972 (bdesc_special_args): Add pause intrinsic.
14973
14974 * config/i386/i386.md (UNSPEC_PAUSE): New.
14975 (pause): Likewise.
14976 (*pause): Likewise.
14977 * config/i386/ia32intrin.h (__pause): Likewise.
14978
14979 * doc/extend.texi (X86 Built-in Functions): Add documentation for
14980 pause intrinsic.
14981
14982 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14983
14984 PR tree-optimization/46728
14985 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
14986 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
14987
14988 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
14989
14990 * tree.h (struct tree_exp): Inherit from struct tree_typed.
14991 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
14992 instead of TS_COMMON.
14993
14994 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
14995
14996 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
14997 LIBGCC2_GNU_PREFIX is defined.
14998 (__N): New macro.
14999 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
15000 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
15001 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
15002 __clz_tab): Define using __N.
15003 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
15004 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
15005 * target.def (libfunc_gnu_prefix): New hook.
15006 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
15007 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
15008 * doc/tm.texi: Regenerate.
15009 * system.h (LIBGCC2_GNU_PREFIX): Poison.
15010 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
15011 account.
15012 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
15013 (init_optabs): Likewise for the bswap libfuncs.
15014 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
15015 and divide.
15016 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
15017 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
15018 * libgcc-std.ver: Remove.
15019 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
15020 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
15021 libgcc-std.ver.
15022 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
15023 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
15024 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
15025 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
15026 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
15027 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
15028 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
15029 * config/fixed-bit.h (FIXED_OP): Define differently depending on
15030 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
15031 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
15032
15033 2011-05-25 Jan Hubicka <jh@suse.cz>
15034
15035 * lto-streamer-out.c (output_record_start): Use lto_output_enum
15036 (lto_output_tree): Use output_record_start.
15037 * lto-streamer-in.c (input_record_start): Use lto_input_enum
15038 (lto_get_pickled_tree): Use input_record_start.
15039 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
15040 (lto_value_range_error): New function.
15041 * lto-streamer.h (lto_value_range_error): Declare.
15042 (lto_output_int_in_range, lto_input_int_in_range): New functions.
15043 (lto_output_enum, lto_input_enum): New macros.
15044
15045 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
15046
15047 * common.opt (flag_stack_usage_info): New variable.
15048 (-Wstack-usage): New option.
15049 * doc/invoke.texi (Warning options): Document -Wstack-usage.
15050 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
15051 <OPT_fstack_usage>: Likewise.
15052 * toplev.c (output_stack_usage): Handle -Wstack-usage.
15053 * calls.c (expand_call): Test flag_stack_usage_info variable instead
15054 of flag_stack_usage.
15055 (emit_library_call_value_1): Likewise.
15056 * explow.c (allocate_dynamic_stack_space): Likewise.
15057 * function.c (instantiate_virtual_regs ): Likewise.
15058 (prepare_function_start): Likewise.
15059 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
15060 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
15061 * config/arm/arm.c (arm_expand_prologue): Likewise.
15062 (thumb1_expand_prologue): Likewise.
15063 * config/avr/avr.c (expand_prologue): Likewise.
15064 * config/i386/i386.c (ix86_expand_prologue): Likewise.
15065 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
15066 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
15067 * config/mips/mips.c (mips_expand_prologue): Likewise.
15068 * config/pa/pa.c (hppa_expand_prologue): Likewise.
15069 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
15070 * config/s390/s390.c (s390_emit_prologue): Likewise.
15071 * config/sh/sh.c (sh_expand_prologue): Likewise.
15072 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
15073 * config/spu/spu.c (spu_expand_prologue): Likewise.
15074
15075 2011-05-25 Richard Guenther <rguenther@suse.de>
15076
15077 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
15078 (gimple_canonical_types_compatible_p): Likewise.
15079
15080 2011-05-25 Jan Hubicka <jh@suse.cz>
15081
15082 PR middle-end/49062
15083 * ipa.c (function_and_variable_visibility): Only add to same
15084 comdat group list if DECL_ONE_ONLY.
15085
15086 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
15087
15088 PR rtl-optimization/49014
15089 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
15090
15091 2011-05-25 Jakub Jelinek <jakub@redhat.com>
15092
15093 PR target/49128
15094 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
15095
15096 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
15097
15098 PR rtl-optimization/48757
15099 * ira-build.c (loop_with_eh_edge_p): Rename to
15100 loop_with_complex_edge_p, check edges on complexity, make function
15101 conditional.
15102 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
15103 conditional.
15104
15105 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
15106
15107 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
15108 force flag_ira_share_save_slots to 0.
15109
15110 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
15111
15112 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
15113 (vt_initialize): Set PROLOGUE_BB unconditionally.
15114 Add block comment about CFA_BASE_RTX machinery.
15115 Reset FP_CFA_OFFSET to -1 on all invalid paths.
15116 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
15117
15118 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
15119
15120 PR objc/48187
15121 * c-parser.c (c_parser_objc_class_instance_variables): More robust
15122 parsing of syntax error in ObjC instance variable lists. In
15123 particular, avoid an infinite loop if there is a stray ']'.
15124 Updated error message.
15125
15126 2011-05-24 Ian Lance Taylor <iant@google.com>
15127
15128 * godump.c (go_define): Don't accept a string immediately after
15129 another operand.
15130
15131 2011-05-24 Ian Lance Taylor <iant@google.com>
15132
15133 * godump.c (struct godump_container): Add invalid_hash field.
15134 (go_format_type): Return false if type is found in invalid_hash.
15135 (go_output_typedef): Add invalid type to invalid_hash.
15136 (go_finish): Create and delete invalid_hash.
15137
15138 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15139
15140 PR tree-optimization/46728
15141 * tree-ssa-math-opts.c (powi_table): New.
15142 (powi_lookup_cost): New.
15143 (powi_cost): New.
15144 (powi_as_mults_1): New.
15145 (powi_as_mults): New.
15146 (gimple_expand_builtin_powi): New.
15147 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
15148 (gate_cse_sincos): Remove sincos/cexp restriction.
15149
15150 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15151
15152 PR target/3746
15153 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
15154 mips-tdump native.
15155 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
15156 * mips-tdump.c: Likewise.
15157
15158 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
15159
15160 PR target/49128
15161 * config/i386/driver-i386.c (host_detect_local_cpu): Always
15162 add -mno-XXX. Handle FMA.
15163
15164 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
15165
15166 PR rtl-optimization/48633
15167 * ira-build.c (loop_with_eh_edge_p): New function.
15168 (mark_loops_for_removal): Use it.
15169
15170 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
15171
15172 PR rtl-optimization/48971
15173 * ira.c (setup_pressure_classes): Don't check register move cost
15174 for classes with one registers. Don't add pressure class if there
15175 is a pressure class with the same available hard registers.
15176 Check contains_reg_of_mode. Fix a typo in collecting
15177 temp_hard_regset. Ignore hard registers not belonging to a class.
15178
15179 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
15180
15181 PR target/49133
15182 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
15183
15184 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
15185 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15186
15187 PR gcov-profile/48845
15188 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
15189
15190 2011-05-24 Richard Guenther <rguenther@suse.de>
15191
15192 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
15193 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
15194 (gimple_types_compatible_p_1): Adjust.
15195 (iterative_hash_canonical_type): Do not bother about complete vs.
15196 incomplete types.
15197 (gimple_canonical_types_compatible_p): Likewise.
15198
15199 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15200
15201 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
15202
15203 2011-05-24 Richard Guenther <rguenther@suse.de>
15204
15205 PR bootstrap/49078
15206 * gimple.c (gimple_register_canonical_type): Revert
15207 previous change.
15208 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
15209 does not for a tree for the case where it matters. Cache
15210 pointer-type alias-sets.
15211
15212 2011-05-24 Joseph Myers <joseph@codesourcery.com>
15213
15214 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
15215 (OBJS): Remove options.o, opts-common.o and prefix.o.
15216 (OBJS-libcommon-target): New.
15217 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
15218 (BACKEND): Include libcommon-target.a.
15219 (MOSTLYCLEANFILES): Include libcommon-target.a.
15220 (libcommon-target.a): New.
15221 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
15222 prefix.o.
15223
15224 2011-05-23 Joseph Myers <joseph@codesourcery.com>
15225
15226 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
15227 parts of output shared with the driver.
15228 * optc-gen.awk: Don't generate parts of output not shared with the
15229 driver.
15230 * opth-gen.awk: Remove GCC_DRIVER conditionals.
15231 * doc/options.texi (SourcerInclude): Mention options-save.c.
15232 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
15233 (OBJS): Add options-save.o.
15234 (options-save.c, options-save.o): New.
15235 (options.o): Update dependencies.
15236 (gcc-options.o): Remove.
15237 (mostlyclean): Remove options-save.c.
15238
15239 2011-05-23 Jakub Jelinek <jakub@redhat.com>
15240
15241 PR debug/49032
15242 * dbxout.c: Include cgraph.h.
15243 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
15244 and without value expr, return NULL if no varpool node exists for
15245 it or if it is not needed.
15246 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
15247
15248 PR c/49120
15249 * c-decl.c (start_decl): Convert expr to void_type_node.
15250
15251 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
15252
15253 PR rtl-optimization/48826
15254 * emit-rtl.c (try_split): When splitting a call that is followed
15255 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
15256
15257 2011-05-23 Jakub Jelinek <jakub@redhat.com>
15258
15259 * cfgexpand.c (expand_debug_expr): For unused non-addressable
15260 parameters passed in memory prefer using DECL_INCOMING_RTL over
15261 the pseudos it will be copied into.
15262
15263 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
15264
15265 PR target/47315
15266 * config/i386/i386.c (ix86_option_override_internal): Save the
15267 initial options after checking vzeroupper.
15268
15269 2011-05-23 David Li <davidxl@google.com>
15270
15271 PR tree-optimization/48988
15272 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
15273 Initialize has_valid_pred for each pred chain.
15274
15275 2011-05-23 Richard Guenther <rguenther@suse.de>
15276
15277 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
15278 (iterative_hash_gimple_type): Always hash type names.
15279
15280 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
15281
15282 * c-typeck.c (build_function_call_vec): Tweak call to
15283 check_function_arguments.
15284
15285 2011-05-23 Richard Guenther <rguenther@suse.de>
15286
15287 PR tree-optimization/49115
15288 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
15289 is not necessarily carried out, do not claim it kills the ref.
15290 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
15291
15292 2011-05-23 Richard Guenther <rguenther@suse.de>
15293
15294 PR middle-end/15419
15295 * builtins.c (fold_builtin_memory_op): Be less restrictive about
15296 what pointer types we accept for folding.
15297
15298 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15299
15300 * gthr-gnat.c: Remove.
15301 * gthr-gnat.h: Remove.
15302 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
15303 * config/t-freebsd (LIB2ADDEH): Likewise.
15304 * config/t-linux (LIB2ADDEH): Likewise.
15305 * config/t-sol2 (LIB2ADDEH): Likewise.
15306 * config/ia64/t-vms (LIB2ADDEH): Likewise.
15307 * configure.ac (target_thread_file): Remove gnat handling.
15308 * configure: Regenerate.
15309 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
15310
15311 2011-05-23 Tristan Gingold <gingold@adacore.com>
15312 Eric Botcazou <ebotcazou@adacore.com>
15313
15314 * gcov.c (create_file_names): If no object directory is specified,
15315 keep the directory of the file.
15316
15317 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15318
15319 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
15320 * configure: Regenerate.
15321
15322 2011-05-23 Jakub Jelinek <jakub@redhat.com>
15323
15324 PR middle-end/48973
15325 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
15326 failed and the comparison has a single bit signed type, use
15327 constm1_rtx instead of const1_rtx for true value.
15328 (do_store_flag): If ops->type is single bit signed type, disable
15329 signel bit test optimization and pass -1 instead of 1 as last
15330 parameter to emit_store_flag_force.
15331
15332 2011-05-23 Tom de Vries <tom@codesourcery.com>
15333
15334 PR target/45098
15335 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
15336 function.
15337 (infer_loop_bounds_from_undefined): Use new function.
15338
15339 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
15340
15341 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
15342 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
15343 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
15344 and -O0 otherwise.
15345 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
15346
15347 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
15348
15349 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
15350 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
15351 returns true.
15352
15353 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
15354
15355 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
15356
15357 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
15358
15359 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
15360 UNSPEC_MOVE_PIC pattern.
15361
15362 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
15363
15364 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
15365 (sparc-*-rtems*): Likewise.
15366 (sparc64-*-elf*): Likewise.
15367 (sparc64-*-rtems*): Likewise.
15368 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
15369 * config/sparc/t-crtin: New file.
15370 * config/sparc/t-sol2 (crti.o): Delete rule.
15371 (crtn.o): Likewise.
15372 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
15373 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
15374 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
15375 (ENDFILE_SPEC): Add crtn.o.
15376
15377 2011-05-22 Tom de Vries <tom@codesourcery.com>
15378
15379 PR middle-end/48689
15380 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
15381 CODE_CONTAINS_STRUCT (TS_COMMON).
15382
15383 2011-05-22 Jakub Jelinek <jakub@redhat.com>
15384
15385 PR middle-end/49029
15386 * expmed.c (extract_fixed_bit_field): Test whether target can be used
15387 only after deciding which mode to use.
15388
15389 2011-05-22 Tom de Vries <tom@codesourcery.com>
15390
15391 PR target/45098
15392 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
15393 for call to get_shiftadd_cost.
15394
15395 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
15396
15397 PR target/49104
15398 * config/i386/cpuid.h (bit_MMXEXT): New define.
15399
15400 2011-05-22 Nick Clifton <nickc@redhat.com>
15401
15402 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
15403 initialisation of non-existant args[2] element. Use args[] array
15404 not arg[] array to pass arguments to build_function_type_list.
15405
15406 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
15407
15408 PR tree-optimization/49087
15409 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
15410
15411 2011-05-21 Jason Merrill <jason@redhat.com>
15412
15413 PR c++/49092
15414 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
15415 static storage duration.
15416
15417 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
15418
15419 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
15420 frame pointer.
15421
15422 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
15423
15424 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
15425 false if there are call-saved registers here...
15426 (sparc_can_use_return_insn_p): ...but here instead.
15427 (save_or_restore_regs): Fix thinko.
15428 (sparc_expand_prologue): Use current_function_is_leaf.
15429 (sparc_frame_pointer_required): Likewise.
15430
15431 2011-05-21 Nick Clifton <nickc@redhat.com>
15432
15433 PR target/49098
15434 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
15435
15436 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
15437
15438 * gengtype.c (walk_type): Implemented "atomic" GTY option.
15439 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
15440
15441 2011-05-21 Joseph Myers <joseph@codesourcery.com>
15442
15443 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
15444 * optc-gen.awk: Move common code to opt-read.awk.
15445 * opth-gen.awk: Likewise.
15446 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
15447
15448 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
15449
15450 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
15451
15452 2011-05-20 Tom de Vries <tom@codesourcery.com>
15453
15454 PR target/45098
15455 * tree-ssa-loop-ivopts.c: Include expmed.h.
15456 (get_shiftadd_cost): New function.
15457 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
15458
15459 2011-05-20 Jakub Jelinek <jakub@redhat.com>
15460
15461 PR bootstrap/49086
15462 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
15463 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
15464
15465 2011-05-20 Joseph Myers <joseph@codesourcery.com>
15466
15467 * Makefile.in: Update comment referring to $(OBJS-common).
15468
15469 2011-05-20 Ian Lance Taylor <iant@google.com>
15470
15471 * godump.c (go_output_typedef): Put enum constants in the macro
15472 hash table to avoid duplicate Go const definitions.
15473
15474 2011-05-20 Joseph Myers <joseph@codesourcery.com>
15475
15476 * Makefile.in (LIBDEPS): Add libcommon.a.
15477 (LIBS): Likewise.
15478 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
15479 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
15480 pretty-print.o and version.o.
15481 (OBJS-libcommon): New.
15482 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
15483 (BACKEND): Add libcommon.a.
15484 (MOSTLYCLEANFILES): Likewise.
15485 (libcommon.a): New.
15486 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
15487 (cpp$(exeext)): Likewise.
15488 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
15489 pretty-print.o and input.o.
15490 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
15491 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
15492 (errors.o): Remove.
15493 (mips-tfile): Don't explicitly use version.o.
15494 (mips-tdump): Likewise.
15495 (gcov.o): Depend on $(DIAGNOSTIC_H).
15496 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
15497 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
15498 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
15499 * gcov-dump.c: Include intl.h and diagnostic.h.
15500 (main): Initialize diagnostics.
15501 * gcov.c: Include diagnostic.h.
15502 (fnotice): Remove.
15503 (main): Initialize diagnostics.
15504 * lto-wrapper.c: Include diagnostic.h.
15505 (main): Initialize diagnostics.
15506
15507 2011-05-20 Michael Matz <matz@suse.de>
15508
15509 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
15510
15511 2011-05-20 Michael Matz <matz@suse.de>
15512 Richard Guenther <rguenther@suse.de>
15513
15514 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
15515 use lto_streamer_cache_append directly instead of returning a VEC.
15516 (preload_common_node): Remove.
15517 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
15518 track seen nodes.
15519 (lto_streamer_cache_create): Call lto_preload_common_nodes.
15520
15521 2011-05-20 Richard Guenther <rguenther@suse.de>
15522
15523 PR tree-optimization/49079
15524 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
15525 MEM_REFs correctly for the trailing array access detection.
15526 Special case constants the same way as decls for overall size
15527 constraining.
15528
15529 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
15530
15531 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
15532 argument expansion.
15533
15534 2011-05-20 Jakub Jelinek <jakub@redhat.com>
15535
15536 PR tree-optimization/49073
15537 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
15538 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
15539 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
15540
15541 2011-05-20 Richard Guenther <rguenther@suse.de>
15542
15543 PR middle-end/48849
15544 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
15545 of pointer types the same way the middle-end does.
15546
15547 2011-05-20 Richard Guenther <rguenther@suse.de>
15548
15549 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
15550 or pointer-to chains. Delay all fixup to uniquify_nodes.
15551
15552 2011-05-19 Quentin Neill <quentin.neill@amd.com>
15553
15554 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
15555 (fma4_fmaddsub): Likewise
15556
15557 2011-05-19 Jan Hubicka <jh@suse.cz>
15558
15559 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
15560 (GIMPLE_TYPE_PAIR_SIZE): New macro.
15561 (type_pair_cache): New static var.
15562 (lookup_type_pair): Use fixed sized custom hash; make inline.
15563 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
15564 calls of lookup_type_pair.
15565 (print_gimple_types_stats): Remove cache stats.
15566 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
15567 and gtc_ob.
15568
15569 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
15570
15571 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
15572 when TARGET_RDRND is active.
15573 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
15574 Generate dummy SImode target register when target is NULL.
15575
15576 2011-05-19 Joseph Myers <joseph@codesourcery.com>
15577
15578 * config/arm/arm-fpus.def: New.
15579 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
15580 arm-fpus.def.
15581 * config/arm/arm-tables.opt: Regenerate.
15582 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
15583 (arm_option_override): Don't decode FPU name to string here.
15584 * config/arm/arm.opt (mfpu=): Use Enum.
15585 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
15586 Update dependencies.
15587
15588 2011-05-19 Joseph Myers <joseph@codesourcery.com>
15589
15590 * collect2.c: Include diagnostic.h.
15591 (fatal_perror, fatal, error, fancy_abort): Remove.
15592 (main): Set progname. Call xmalloc_set_program_name and
15593 diagnostic_initialize.
15594 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
15595 scan_libraries, resolve_lib_name): Call fatal_error instead of
15596 fatal and fatal_perror.
15597 * collect2.h (error, fatal, fatal_perror): Don't declare.
15598 * tlink.c: Include diagnostic-core.h.
15599 (recompile_files): Call fatal_error instead of fatal_perror.
15600 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
15601 pretty-print.o and input.o.
15602 (collect2.o, tlink.o): Update dependencies.
15603
15604 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15605
15606 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
15607
15608 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15609
15610 PR target/40483
15611 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
15612 COMDAT group syntax, both SPARC and x86 variants.
15613 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
15614 * configure: Regenerate.
15615 * config/sol2.h (TARGET_SOLARIS): Define.
15616 (PUSHSECTION_FORMAT): Remove.
15617 (SECTION_NAME_FORMAT): Define.
15618 * config/sol2.c: Include hashtab.h.
15619 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
15620 expansion, using SECTION_NAME_FORMAT.
15621 (solaris_comdat_htab): New variable.
15622 (struct comdat_entry): Define.
15623 (comdat_hash): New function.
15624 (comdat_eq): New function.
15625 (solaris_elf_asm_comdat_section): New function.
15626 (solaris_define_comdat_signature): New function.
15627 (solaris_code_end): New function.
15628 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
15629 (solaris_code_end): Declare.
15630 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
15631 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
15632 solaris_code_end.
15633 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
15634 Remove ATTRIBUTE_UNUSED.
15635 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
15636 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
15637 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
15638 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
15639 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
15640 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
15641 (PUSHSECTION_FORMAT): Remove.
15642 (SECTION_NAME_FORMAT): Redefine.
15643
15644 2011-05-19 Kai Tietz <ktietz@redhat.com>
15645
15646 * tree-cfg.c (verify_gimple_assign_binary): Barf on
15647 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
15648 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
15649
15650 2011-05-19 Anatoly Sokolov <aesok@post.ru>
15651 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15652
15653 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
15654
15655 2011-05-19 Richard Guenther <rguenther@suse.de>
15656
15657 PR middle-end/48985
15658 * tree-object-size.c (addr_object_size): If the pointed-to
15659 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
15660
15661 2011-05-19 Richard Guenther <rguenther@suse.de>
15662
15663 * gimple.c (gimple_types_compatible_p_1): Compare names of
15664 the types themselves.
15665 (iterative_hash_gimple_type): And hash them that way.
15666 (gimple_register_type_1): If we register a main variant properly
15667 initialize the leader to ourselves.
15668
15669 2011-05-19 Tom de Vries <tom@codesourcery.com>
15670
15671 PR target/45098
15672 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
15673 get_loop_invariant_expr_id.
15674 (get_loop_invariant_expr_id): Use get_expr_id.
15675 (parm_decl_cost): New function.
15676 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
15677 Improve bound cost estimation. Use different inv_expr_id for elim and
15678 express cases.
15679
15680 2011-05-19 Tom de Vries <tom@codesourcery.com>
15681
15682 PR target/45098
15683 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
15684 cost_base.cost == 0.
15685
15686 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
15687
15688 PR target/49002
15689 * config/i386/sse.md
15690 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
15691 load cast.
15692
15693 2011-05-18 Jakub Jelinek <jakub@redhat.com>
15694
15695 PR tree-optimization/49039
15696 * tree-vrp.c (extract_range_from_binary_expr): For
15697 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
15698 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
15699
15700 2011-05-18 Tom de Vries <tom@codesourcery.com>
15701
15702 PR target/45098
15703 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
15704
15705 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
15706
15707 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
15708 (*tls_global_dynamic_64): Ditto.
15709 (*tls_local_dynamic_base_32_gnu): Ditto.
15710 (*tls_local_dynamic_base_64): Ditto.
15711 (tls_initial_exec_64_sun): Ditto.
15712
15713 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
15714
15715 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
15716 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
15717 bf592-none.
15718 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
15719 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
15720 * config/bfin/bfin.c (bfin_cpus): Add bf592.
15721 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15722 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
15723 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
15724 * config/bfin/elf.h (LIB_SPEC): Add bf592.
15725
15726 2011-05-18 Joseph Myers <joseph@codesourcery.com>
15727
15728 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
15729 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
15730 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
15731 target_thread_pointer, arm_structure_size_boundary, struct
15732 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
15733 struct abi_name, arm_all_abis): Remove.
15734 (arm_option_override) Don't process most enumerated option values here.
15735 Don't process target_fpe_name here. Work with integer not string for
15736 structure size boundary; use separate diagnostics for each case.
15737 * config/arm/arm.h (enum float_abi_type, enum
15738 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
15739 to arm-opts.h.
15740 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
15741 arm_structure_size_boundary): Remove.
15742 * config/arm/arm.opt (mabi=): Use Enum and Init.
15743 (arm_abi_type): New Enum and EnumValue entries.
15744 (mfloat-abi=): Use Enum and Init.
15745 (float_abi_type): New Enum and EnumValue entries.
15746 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
15747 (mfp16-format=): Use Enum and Init.
15748 (arm_fp16_format_type): New Enum and EnumValue entries.
15749 (mstructure-size-boundary=): Use UInteger and Init.
15750 (mtp=): Use Enum and Init.
15751 (arm_tp_type): New Enum and EnumValue entries.
15752
15753 2011-05-18 Richard Guenther <rguenther@suse.de>
15754
15755 PR tree-optimization/49018
15756 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
15757 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
15758 gimple_has_side_effects.
15759
15760 2011-05-18 Richard Guenther <rguenther@suse.de>
15761
15762 * gimple.c (gimple_register_type_1): New function, split out from ...
15763 (gimple_register_type): ... here. Avoid infinite recursion.
15764
15765 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
15766
15767 PR tree-optimization/41881
15768 * tree-vectorizer.h (struct _loop_vec_info): Add new field
15769 reduction_chains along with a macro for its access.
15770 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
15771 (destroy_loop_vec_info): Free reduction chains.
15772 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
15773 (vect_is_slp_reduction): New function.
15774 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
15775 (vect_create_epilog_for_reduction): Support SLP reduction chains.
15776 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
15777 definition types for reduction chains.
15778 (vect_supported_load_permutation_p): Don't allow permutations for
15779 reduction chains.
15780 (vect_analyze_slp_instance): Support reduction chains.
15781 (vect_analyze_slp): Try to build SLP instance from reduction chains.
15782 (vect_get_constant_vectors): Handle reduction chains.
15783 (vect_schedule_slp_instance): Mark the first statement of the
15784 reduction chain as reduction.
15785
15786 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
15787
15788 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
15789 names for group elements access.
15790 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
15791 reduction chains as well. Remove data reference and interleaving
15792 related words from the fields names.
15793 * tree-vect-loop.c (vect_transform_loop): Use new names for group
15794 elements access.
15795 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
15796 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
15797 vect_update_interleaving_chain, vect_same_range_drs,
15798 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
15799 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
15800 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
15801 vect_analyze_group_access, vect_analyze_data_ref_access,
15802 vect_create_data_ref_ptr, vect_transform_strided_load,
15803 vect_record_strided_load_vectors): Likewise.
15804 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
15805 vect_model_load_cost, vectorizable_store, vectorizable_load,
15806 vect_remove_stores, new_stmt_vec_info): Likewise.
15807 * tree-vect-slp.c (vect_build_slp_tree,
15808 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
15809
15810 2011-05-18 Richard Guenther <rguenther@suse.de>
15811
15812 PR middle-end/48989
15813 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
15814 operand verification.
15815 (verify_gimple_assign_binary): Likewise.
15816 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
15817 to non-1-precision BOOLEAN_TYPEs.
15818
15819 2011-05-18 Tom de Vries <tom@codesourcery.com>
15820
15821 PR target/45098
15822 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
15823
15824 2011-05-18 Jakub Jelinek <jakub@redhat.com>
15825
15826 PR tree-optimization/49000
15827 * tree-ssa.c (execute_update_addresses_taken): Call
15828 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
15829 be rewritten and decl has been marked for renaming, reset
15830 the debug stmt.
15831
15832 2011-05-17 Joseph Myers <joseph@codesourcery.com>
15833
15834 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
15835 enum_opts_set when testing if attributes have set -mfpmath=.
15836
15837 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15838
15839 * config/mips/mips.c (mips_handle_option): Remove unused variable.
15840
15841 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
15842
15843 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
15844 info->entry with 0
15845 * tree-inline.c (maybe_inline_call_in_expr): Initialize
15846 id.transform_lang_insert_block with NULL.
15847
15848 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
15849
15850 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
15851 (output_fp_compare): Change args 3 and 4 to bool.
15852 (ix86_expand_call): Change arg 6 to bool.
15853 (ix86_attr_length_immediate_default): Change arg 2 to bool.
15854 (ix86_attr_length_vex_default): Change arg 3 to bool.
15855 * config/i386/i386.md: Update all uses.
15856 * config/i386/i386.c: Ditto.
15857 (ix86_flags_dependent): Change return type to bool.
15858
15859 2011-05-17 Richard Guenther <rguenther@suse.de>
15860
15861 * gimple.c (type_hash_pair_compare): Fix comparison.
15862
15863 2011-05-17 Richard Guenther <rguenther@suse.de>
15864
15865 * gimple.c (iterative_hash_gimple_type): Simplify singleton
15866 case some more, fix final hash value of the non-singleton case.
15867
15868 2011-05-17 Richard Guenther <rguenther@suse.de>
15869
15870 PR bootstrap/49013
15871 Revert
15872 2011-05-16 Richard Guenther <rguenther@suse.de>
15873
15874 * gimple.c (gimple_types_compatible_p_1): Use names of the
15875 type itself, not its main variant.
15876 (iterative_hash_gimple_type): Likewise.
15877
15878 2011-05-17 Richard Guenther <rguenther@suse.de>
15879
15880 * gimple.c (gimple_register_canonical_type): Use the main-variant
15881 leader for computing the canonical type.
15882
15883 2011-05-17 Nick Clifton <nickc@redhat.com>
15884
15885 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
15886 moves.
15887
15888 * config/rx/rx.md: Add peephole to remove redundant extensions
15889 after loads.
15890 (bitset_in_memory): Use rx_restricted_mem_operand.
15891 (bitinvert_in_memory): Likewise.
15892 (bitclr_in_memory): Likewise.
15893
15894 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
15895 Nick Clifton <nickc@redhat.com>
15896
15897 * config/rx/rx.md: Add peepholes to match a register move followed
15898 by a comparison of the moved register. Replace these with an
15899 addition of zero that does both actions in one instruction.
15900
15901 2011-05-17 Jakub Jelinek <jakub@redhat.com>
15902
15903 PR target/48986
15904 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
15905 predicate to allow CONST_INT.
15906 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
15907
15908 2011-05-16 Joseph Myers <joseph@codesourcery.com>
15909
15910 * opts-common.c (opt_enum_arg_to_value): New.
15911 * opts.h (opt_enum_arg_to_value): Declare.
15912 * config/i386/i386.opt (fpmath): Remove.
15913 (mfpmath=): Use Enum, Init and Save.
15914 (fpmath_unit): New Enum and EnumValue entries.
15915 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
15916 name for function fpmath state.
15917 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
15918 * config/i386/i386.c: Include diagnostic.h.
15919 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
15920 (ix86_target_string): Take enum fpmath_unit value instead of string.
15921 (ix86_debug_options): Update call to ix86_target_string.
15922 (ix86_option_override_internal): Don't process fpmath strings here.
15923 (x86_function_specific_save, ix86_function_specific_restore):
15924 Don't handle fpmath state specially.
15925 (ix86_function_specific_print): Pass fpmath state to
15926 ix86_target_string instead of printing in this function.
15927 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
15928 Handle enum attributes.
15929 (IX86_ATTR_ENUM, ix86_opt_enum): New.
15930 (ix86_valid_target_attribute_tree): Update option_strings
15931 handling. Handle fpmath as enum option.
15932 (ix86_can_inline_p): Update field names for function fpmath state.
15933 (ix86_expand_builtin): Update call to ix86_target_string.
15934 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
15935 (ix86_fpmath): Remove.
15936 * config/i386/t-i386 (i386.o): Update dependencies.
15937
15938 2011-05-16 Joseph Myers <joseph@codesourcery.com>
15939
15940 PR preprocessor/48677
15941 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
15942 from decoded_options[0], not from itself.
15943
15944 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
15945
15946 * config/i386/constraints.md (z): New constraint.
15947 * config/i386/i386.c (c): New mode attribute.
15948 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
15949 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
15950 constraint for operand 0.
15951 (*call_vzeroupper): Ditto.
15952 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
15953 (*call_rex64_ms_sysv_vzeroupper): Ditto.
15954 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
15955 Use "lzm" constraint for operand 0.
15956 (*call_pop_vzeroupper): Ditto.
15957 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
15958 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
15959 constraint for operand 0.
15960 (*sibcall_vzeroupper): Ditto.
15961 (*sibcall_rex64_ms_sysv): Ditto.
15962 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
15963 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
15964 *sibcall_pop_1. Use "Uz" constraint for operand 0.
15965 (*sibcall_pop_vzeroupper): Ditto.
15966 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
15967 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
15968 mode iterator. Use "<c>zm" constraint for operand 1.
15969 (*call_value_vzeroupper): Ditto.
15970 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
15971 for operand 1.
15972 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
15973 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
15974 *call_value_pop_1. Use "lzm" constraint for operand 1.
15975 (*call_value_pop_vzeroupper): Ditto.
15976 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
15977 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
15978 mode iterator. Use "Uz" constraint for operand 1.
15979 (*sibcall_value_vzeroupper): Ditto.
15980 (*sibcall_value_rex64_ms_sysv): Ditto.
15981 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
15982 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
15983 constraint for operand 1.
15984 (*sibcall_value_pop_vzeroupper): Ditto.
15985 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
15986 and "z" constraint for operand 2.
15987 (*tls_global_dynamic_32_gnu): Ditto.
15988 (*tls_local_dynamic_base_32_gnu): Ditto.
15989 (*tls_local_dynamic_base_64): Ditto.
15990 (*tls_local_dynamic_32_once): Ditto.
15991 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
15992 Update all callers.
15993 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
15994
15995 2011-05-16 Richard Guenther <rguenther@suse.de>
15996
15997 * gimple.c (gimple_types_compatible_p_1): Use names of the
15998 type itself, not its main variant.
15999 (iterative_hash_gimple_type): Likewise.
16000
16001 2011-05-16 Richard Guenther <rguenther@suse.de>
16002
16003 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
16004 always visit pointer target and function result and argument types.
16005
16006 2011-05-16 Jason Merrill <jason@redhat.com>
16007
16008 PR c++/48999
16009 * tree-inline.c (copy_statement_list): Put back recursion.
16010
16011 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
16012
16013 PR target/27663
16014 PR target/41076
16015 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
16016 * config/avr/avr.md ("*ior<mode>qi.byte0",
16017 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
16018
16019 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
16020
16021 PR target/45099
16022 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
16023 register is needed for a function argument.
16024
16025 2011-05-16 Richard Guenther <rguenther@suse.de>
16026
16027 * gimple.c (struct type_hash_pair): New type.
16028 (type_hash_pair_compare): New function.
16029 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
16030
16031 2011-05-16 Revital Eres <revital.eres@linaro.org>
16032
16033 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
16034
16035 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
16036
16037 * config/i386/i386.md (floating point move splitters): Fix
16038 usage of standard_80387_constant_p.
16039 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
16040
16041 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
16042
16043 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
16044
16045 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
16046
16047 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
16048 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
16049 (tree_ssa_lim_finalize): Likewise.
16050
16051 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
16052
16053 * config/i386/constraint.md (Yd, Yx): New register constraints.
16054 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
16055 Yd conditional register constraint.
16056 (*movtf_internal): Use standard_sse_constant_opcode.
16057 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
16058 Yx conditional register constraint.
16059 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
16060 Yd conditional register constraint. Use standard_sse_constant_p to
16061 check for valid SSE constants and call standard_sse_constant_opcode to
16062 output SSE insn.
16063 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
16064 constants and call standard_sse_constant_opcode to output SSE insn.
16065 * config/i386/i386.c (ix86_option_ovverride_internal): Set
16066 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
16067 optimize_size is set.
16068 (standard_sse_constant_opcode): Output conditional AVX insn templates.
16069
16070 2011-05-14 Tobias Burnus <burnus@net-b.de>
16071
16072 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
16073
16074 2011-05-13 Martin Jambor <mjambor@suse.cz>
16075
16076 * ipa-prop.c (ipa_cst_from_jfunc): New function.
16077 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
16078 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
16079 (evaluate_conditions_for_ipcp_clone): Removed.
16080 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
16081 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
16082 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
16083
16084 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
16085
16086 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
16087 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
16088 lieu of MAY_HAVE_DEBUG_STMTS.
16089 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
16090 debug statements if !MAY_HAVE_DEBUG_STMTS.
16091
16092 2011-05-13 Martin Thuresson <martint@google.com>
16093
16094 PR gcov-profile/47793
16095 * libgcov.c (gcov_exit): Support relative profile paths.
16096 * doc/invoke.texi (-fprofile-dir): Update for above change.
16097
16098 2011-05-13 Richard Guenther <rguenther@suse.de>
16099
16100 * gimple.c (gimple_canonical_types_compatible_p): Do not use
16101 type-pair caching, do not compare hashes.
16102
16103 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
16104
16105 PR middle-end/48965
16106 * tree-cfg.c (edge_to_cases_cleanup): Return true.
16107 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
16108
16109 2011-05-13 Kai Tietz <ktietz@redhat.com>
16110
16111 * gimplify.c (gimplify_expr): Make sure operand is boolified.
16112 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
16113 compatible type for TRUTH_NOT_EXPR.
16114
16115 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
16116
16117 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
16118 (ix86_hard_regno_mode_ok): Change return value to bool. Use
16119 can_create_pseudo_p ().
16120
16121 2011-05-13 Richard Guenther <rguenther@suse.de>
16122
16123 PR lto/48978
16124 * gimple.c (iterative_hash_gimple_type): Revert change in
16125 pointer target and function result and argument hashing.
16126
16127 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
16128
16129 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
16130 (*movxf_internal_nointeger): Ditto.
16131 (*movdf_internal_rex64): Ditto.
16132 (*movdf_internal): Ditto.
16133 (*movdf_internal_nointeger): Ditto.
16134 (*movsf_internal): Ditto.
16135 (sincos splitters): Use can_create_pseudo ().
16136
16137 2011-05-13 Joseph Myers <joseph@codesourcery.com>
16138
16139 * config/i386/i386-opts.h: New.
16140 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
16141 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
16142 ix86_section_threshold): Remove.
16143 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
16144 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
16145 OPT_mbranch_cost_.
16146 (ix86_option_override_internal): Don't decode strings for options
16147 other than -march=, -mtune= and -mfpmath=. Don't allow for
16148 __attribute__ uses in remaining diagnostics for options with
16149 string arguments. Don't check for integer arguments being negative.
16150 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
16151 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
16152 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
16153 ix86_branch_cost, ix86_section_threshold): Remove.
16154 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
16155 HeaderInclude.
16156 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
16157 but not Var.
16158 (masm=): Use Enum and Init.
16159 (asm_dialect): New Enum and EnumValue entries.
16160 (mbranch-cost=): Use UInteger.
16161 (mlarge-data-threshold=): Use UInteger and Init.
16162 (mcmodel=): Use Enum and Init.
16163 (cmodel): New Enum and EnumValue entries.
16164 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
16165 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
16166 mregparm=): Use UInteger.
16167 (mstringop-strategy=): Use Enum and Init.
16168 (stringop_alg): New Enum and EnumValue entries.
16169 (mtls-dialect=): Use Enum and Init.
16170 (tls_dialect): New Enum and EnumValue entries.
16171 (mabi=): Use Enum and Init.
16172 (calling_abi): New Enum and EnumValue entries.
16173 (mveclibabi=): Use Enum and Init.
16174 (ix86_veclibabi): New Enum and EnumValue entries.
16175
16176 2011-05-13 Nick Clifton <nickc@redhat.com>
16177
16178 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
16179 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
16180
16181 2011-05-13 Kai Tietz <ktietz@redhat.com>
16182
16183 PR middle-end/48984
16184 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
16185 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
16186 (gimple_boolify): Check for cast for boolean_type_node instead for
16187 BOOLEAN_TYPE.
16188
16189 2011-05-13 Richard Guenther <rguenther@suse.de>
16190
16191 PR tree-optimization/48172
16192 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
16193 multiplying by number of iterations for equal step.
16194 (vect_create_cond_for_alias_checks): Likewise.
16195
16196 2011-05-13 Andreas Schwab <schwab@redhat.com>
16197
16198 * configure.ac: Use AS_HELP_STRING throughout.
16199 * configure: Regenerate.
16200
16201 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
16202
16203 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
16204 (ix86_emit_restore_regs_using_mov): Likewise.
16205 (ix86_emit_restore_sse_regs_using_mov): Likewise.
16206
16207 2011-05-12 Anatoly Sokolov <aesok@post.ru>
16208
16209 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
16210 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
16211 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
16212 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
16213 RTX_OK_FOR_OLO10_P): ...here.
16214 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
16215 SYMBOLIC_CONST.
16216
16217 2011-05-12 Kai Tietz <ktietz@redhat.com>
16218
16219 * gimplify.c (gimple_boolify): Re-boolify expression
16220 arguments even if expression type is of kind BOOLEAN_TYPE.
16221 (gimplify_boolean_expr): Removed.
16222 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
16223 and XOR. Additional take care that we keep expression's type.
16224 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
16225 of TRUTH_AND|OR|XOR_EXPR.
16226
16227 2011-05-12 Jakub Jelinek <jakub@redhat.com>
16228
16229 PR tree-optimization/48975
16230 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
16231 on all bbs here and free and clear ifc_bbs at the end.
16232
16233 2011-05-12 Richard Guenther <rguenther@suse.de>
16234
16235 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
16236 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
16237 until after simple checks.
16238 (gimple_types_compatible_p): Likewise.
16239 (iterative_hash_gimple_type): Always hash pointer targets
16240 and function return and argument types.
16241 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
16242 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
16243 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
16244 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
16245 completely in the simple compare section.
16246 (gimple_register_canonical_type): Query the cache again after
16247 registering.
16248
16249 2011-05-12 Richard Guenther <rguenther@suse.de>
16250
16251 PR tree-optimization/48172
16252 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
16253 the number of iterations from the segment size calculation.
16254 (vect_create_cond_for_alias_checks): Adjust.
16255
16256 2011-05-12 Jakub Jelinek <jakub@redhat.com>
16257
16258 PR debug/48967
16259 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
16260 if validate_subreg fails.
16261
16262 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
16263
16264 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
16265 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
16266 early.
16267
16268 2011-05-12 DJ Delorie <dj@redhat.com>
16269
16270 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
16271 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
16272 created builtin into rx_builtins array.
16273 (rx_builtin_decl): New function.
16274 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
16275
16276 2011-05-12 DJ Delorie <dj@redhat.com>
16277 Nick Clifton <nickc@redhat.com>
16278
16279 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
16280 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
16281 (rx_is_legitimate_address): Add pre-decrement and post-increment
16282 addressing in HImode and QImode. Fix test for out of range
16283 REG+INT addressing.
16284 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
16285 (rx_align_for_label): Test label before extracting its usage count.
16286 (rx_adjust_insn_lengths): Fix selection of insn codes.
16287 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
16288
16289 2011-05-11 Jason Merrill <jason@redhat.com>
16290
16291 * tree.c (type_hash_canon): Use struct tree_type_non_common.
16292
16293 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
16294
16295 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
16296 reindent the subsequent block.
16297
16298 2011-05-11 Satoru Takabayashi <satorux@google.com>
16299 Paul Pluzhnikov <ppluzhnikov@google.com>
16300
16301 * doc/install.texi (Configuration): Document --with-linker-hash-style.
16302 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
16303 * config.in: Add LINKER_HASH_STYLE.
16304 * configure.ac: Add --with-linker-hash-style.
16305 * configure: Regenerate.
16306
16307 2011-05-11 Richard Guenther <rguenther@suse.de>
16308
16309 PR middle-end/48964
16310 * gimple.c (iterative_hash_canonical_type): Fix typo.
16311
16312 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
16313
16314 * config/i386/i386.c (legitimize_tls_address)
16315 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
16316 expanders directly for TARGET_GNU2_TLS. Determine pic and
16317 __tls_get_addr symbol reference here. Update call to
16318 gen_tls_global_dynamic_{32,64} for added arguments.
16319 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
16320 expanders directly for TARGET_GNU2_TLS. Determine
16321 __tls_get_addr symbol reference here. Update call to
16322 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
16323 unique UNSPEC REG_EQUIV to libcall block.
16324 (ix86_tls_get_addr): Declare static.
16325 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
16326 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
16327 Do not determine pic and __tls_get_addr symbol reference here. Do not
16328 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
16329 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
16330 (tls_global_dynamic_64): Add operand 2. Do not determine
16331 __tls_get_addr symbol reference here. Do not call
16332 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
16333 (tls_local_dynamic_base64): Ditto for operand 1.
16334
16335 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
16336
16337 * function.c (expand_function_start): Initialize stack_check_probe_note
16338 only if the generic stack checking mechanism is used.
16339
16340 2011-05-11 Richard Guenther <rguenther@suse.de>
16341
16342 PR tree-optimization/15256
16343 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
16344 (A & B) | C, combine (A op CST1) op CST2.
16345 (tree_ssa_forward_propagate_single_use_vars): Only bother to
16346 visit assigns that have uses.
16347
16348 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
16349
16350 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
16351 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
16352 (unpack_ts_type_common_value_fields): ...this. Update comment.
16353 (unpack_value_fields): Adjust for renaming.
16354 (lto_input_ts_type_tree_pointers): Split into...
16355 (lto_input_ts_type_common_tree_pointer): ...this and...
16356 (lto_input_ts_type_non_common_tree_pointers): ...this.
16357 (lto_input_tree_pointers): Adjust for above split.
16358 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
16359 (pack_ts_type_common_value_fields): ...this. Update comment.
16360 (lto_output_ts_type_tree_pointers): Split into...
16361 (lto_output_ts_type_common_tree_pointers): ...this and...
16362 (lto_output_ts_type_non_common_tree_pointers): ...this.
16363 (lto_output_tree_pointers): Adjust for above split.
16364 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
16365 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
16366 * stor-layout.c (vector_type_mode): Adjust location of mode field.
16367 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
16368 Define.
16369 (struct tree_type): Split into...
16370 (struct tree_type_common: ...this and...
16371 (struct tree_type_with_lang_specific): ...this and...
16372 (struct tree_type_non_common): ...this. Adjust accessor macros
16373 accordingly.
16374 (TYPE_VALUES_RAW): Define.
16375 (union tree_node): Update for above changes.
16376 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
16377 TS_TYPE_NON_COMMON.
16378 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
16379 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
16380 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
16381 * treestructu.def (TS_TYPE): Remove.
16382 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
16383 Define.
16384
16385 2011-05-11 Jakub Jelinek <jakub@redhat.com>
16386
16387 PR debug/48159
16388 * tree-ssa.c (reset_debug_uses): New function.
16389 * tree-flow.h (reset_debug_uses): New prototype.
16390 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
16391 * tree-loop-distribution.c (generate_loops_for_partition): Call
16392 reset_debug_uses on the stmts that will be removed. Keep around
16393 all debug stmts, don't count them as bits in partition bitmap.
16394 (generate_builtin): Don't count debug stmts or labels as bits in
16395 partition bitmap.
16396
16397 2011-05-11 Richard Guenther <rguenther@suse.de>
16398
16399 * gimple.c (gimple_type_hash_1): Merge with ...
16400 (gimple_type_hash): ... this.
16401 (gtc_visit): Remove mode parameter and simplify accordingly.
16402 (gimple_types_compatible_p_1): Likewise.
16403 (gimple_types_compatible_p): Likewise.
16404 (iterative_hash_gimple_type): Likewise.
16405 (visit): Likewise.
16406 (gimple_type_eq): Adjust.
16407
16408 2011-05-11 Revital Eres <revital.eres@linaro.org>
16409
16410 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
16411 enters the branch create an anti edge in the opposite direction
16412 to prevent the creation of reg-moves.
16413 * modulo-sched.c: Adjust comment to reflect the fact we are
16414 scheduling closing branch.
16415 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
16416 (stage_count): New field in struct partial_schedule.
16417 (calculate_stage_count): New function.
16418 (normalize_sched_times): Rename to reset_sched_times and handle
16419 incrementing the sched time of the nodes by a constant value
16420 passed as parameter.
16421 (duplicate_insns_of_cycles): Skip closing branch.
16422 (sms_schedule_by_order): Schedule closing branch.
16423 (ps_insn_find_column): Handle closing branch.
16424 (sms_schedule): Call reset_sched_times and adjust the code to
16425 support scheduling of the closing branch.
16426 (ps_insert_empty_row): Update calls to normalize_sched_times
16427 and rotate_partial_schedule functions.
16428
16429 2011-05-11 Richard Guenther <rguenther@suse.de>
16430
16431 PR middle-end/48953
16432 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
16433
16434 2011-05-11 Joseph Myers <joseph@codesourcery.com>
16435
16436 * opts.c (finish_options): Move warning settings from process_options.
16437 * toplev.c (process_options): Move warning settings to finish_options.
16438
16439 2011-05-11 Richard Guenther <rguenther@suse.de>
16440
16441 PR tree-optimization/18041
16442 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
16443 (simplify_bitwise_binary): ... this. Handle operand conversions
16444 by applying them to the result instead.
16445 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
16446
16447 2011-05-11 Richard Guenther <rguenther@suse.de>
16448
16449 * gimple.c (gimple_canonical_types_compatible_p): Split out
16450 from gimple_types_compatible_p and friends. Do not recurse
16451 to pointed-to types.
16452 (gimple_canonical_type_eq): Use it.
16453 (iterative_hash_canonical_type): Split out from
16454 iterative_hash_gimple_type and friends. Do not recurse
16455 to pointed-to types.
16456 (gimple_canonical_type_hash): Use it, allocate the hash here.
16457
16458 2011-05-11 Revital Eres <revital.eres@linaro.org>
16459
16460 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
16461 recognizing doloop.
16462
16463 2011-05-11 Revital Eres <revital.eres@linaro.org>
16464
16465 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
16466 instead of PREV_INSN.
16467
16468 2011-05-11 Revital Eres <revital.eres@linaro.org>
16469
16470 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
16471 * loop-doloop.c (doloop_condition_get): Likewise.
16472 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
16473 (doloop_end): New.
16474 * config/arm/arm.md (*addsi3_compare0): Remove "*".
16475
16476 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
16477
16478 * tree.def (CASE_LABEL_EXPR): Add an operand.
16479 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
16480
16481 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16482
16483 * c-decl.c (c_override_global_bindings_to_false): Remove.
16484 (global_bindings_p): Don't check
16485 c_override_global_bindings_to_false.
16486 * c-tree.h (c_override_global_bindings_to_false): Remove.
16487 * c-typeck.c (composite_type): Don't set
16488 c_override_global_bindings_to_false.
16489
16490 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
16491
16492 PR target/48857, 48495
16493 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
16494 (VSX_MODE): Ditto.
16495 (VSX_MOVE_MODE): Ditto.
16496 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
16497 VSX vector types. Add V2DImode.
16498 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
16499 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
16500 (MODES_TIEABLE_P): Ditto.
16501
16502 * config/rs6000/rs6000.c (rs6000_emit_move): Use
16503 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
16504 VSX_VECTOR_MODE.
16505 (init_cumulative_args): Ditto.
16506 (rs6000_function_arg_boundary): Ditto.
16507 (rs6000_function_arg_advance_1): Ditto.
16508 (rs6000_function_arg): Ditto.
16509 (rs6000_function_ok_for_sibcall): Ditto.
16510 (emit_frame_save): Ditto.
16511 (rs6000_function_value): Ditto.
16512 (rs6000_libcall_value): Ditto.
16513
16514 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16515
16516 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
16517 i386/darwin-lib.h to $libgcc_tm_file.
16518 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
16519
16520 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16521
16522 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
16523
16524 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16525
16526 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
16527 * config/rs6000/rs6000-tables.opt: New file (generated).
16528 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
16529 rs6000/rs6000-tables.opt to extra_options.
16530 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
16531 * config/rs6000/rs6000.c (rs6000_select): Remove.
16532 (processor_target_table): Move contents to rs6000-cpus.def.
16533 (darwin_rs6000_override_options): Check
16534 global_options_set.x_rs6000_cpu_index instead of
16535 rs6000_select[1].string.
16536 (rs6000_option_override_internal): Likewise.
16537 (rs6000_handle_option): Don't assert that global structures are in
16538 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
16539 (rs6000_default_cpu): New variable.
16540 (rs6000_file_start): Set it instead of local default_cpu. Check
16541 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
16542 global_options_set.x_rs6000_tune_index instead of rs6000_select.
16543 (rs6000_darwin_file_start): Check rs6000_default_cpu and
16544 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
16545 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
16546 rs6000_select): Remove.
16547 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
16548 Remove.
16549 (mcpu=, mtune=): Use Var, Init, Enum and Save.
16550 * config/rs6000/t-rs6000
16551 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
16552 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
16553 global_options_set.x_rs6000_cpu_index instead of
16554 rs6000_select[1].string.
16555 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
16556 global_options_set.x_rs6000_cpu_index instead of
16557 rs6000_select[1].string.
16558
16559 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16560
16561 * config.gcc (libgcc_tm_file): Define instead of including files
16562 from ../../libgcc/config/ in tm_file.
16563 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
16564 * configure: Regenerate.
16565 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
16566 libgcc_tm.h, cs-libgcc_tm.h): New.
16567 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
16568 (clean): Remove libgcc_tm.h.
16569 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
16570 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
16571 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
16572
16573 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
16574
16575 PR target/48896
16576 * config/avr/avr.c (avr_ret_register): Return unsigned int
16577 instead of int.
16578 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
16579 it to avr_libcall_value.
16580 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
16581 expand_expr.
16582 (avr_expand_binop_builtin): Ditto.
16583 (avr_expand_unop_builtin): Ditto.
16584
16585 2011-05-10 DJ Delorie <dj@redhat.com>
16586
16587 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
16588 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
16589 * config/rx/rx.c (rx_align_for_label): Add label and
16590 uses_threshold parameters. Do not align when the label is not
16591 used enough.
16592 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
16593
16594 2011-05-10 Richard Guenther <rguenther@suse.de>
16595
16596 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
16597 a series of conversions and apply foldings similar to what
16598 fold-const does.
16599 (tree_ssa_forward_propagate_single_use_vars): Call it.
16600
16601 2011-05-10 Jakub Jelinek <jakub@redhat.com>
16602
16603 PR tree-optimization/48611
16604 PR tree-optimization/48794
16605 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
16606 referenced from RESX or EH_DISPATCH arguments.
16607
16608 PR debug/48928
16609 * dfp.c (decimal_to_decnumber): Handle conversion from
16610 dconst{1,2,m1,half}.
16611
16612 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16613
16614 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
16615 for !flag_prefer_avx128.
16616 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
16617
16618 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
16619
16620 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
16621 (fold_ternary_loc): Use expr_location_or.
16622
16623 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
16624
16625 PR debug/48853
16626 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
16627 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
16628 Pmode and mem_mode is not VOIDmode.
16629
16630 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
16631
16632 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
16633 TYPE_QUAL_RESTRICT): Convert to enum.
16634
16635 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16636
16637 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
16638 (const_pow2_1_to_8_operand): Ditto.
16639 (const_pow2_1_to_128_operand): Ditto.
16640 (const_pow2_1_to_32768_operand): Ditto.
16641 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
16642 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
16643 in insn constraint to check integer value of operand 3.
16644 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
16645
16646 (PINSR_MODE): New mode iterator.
16647 (sse2p4_1): New mode attribute.
16648 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
16649 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
16650 iterator. Use const_int_operand instead of
16651 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
16652 exact_log2 in insn constraint to check integer value of operand 3.
16653
16654 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16655
16656 * config/i386/sse.md (blendbits): Remove mode attribute.
16657 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
16658 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
16659 Check integer value of operand 3 in insn constraint.
16660
16661 2011-05-09 Richard Guenther <rguenther@suse.de>
16662
16663 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
16664 for diagnostics.
16665 (lto_symtab_merge): Likewise. Do not register types here.
16666 (lto_symtab_merge_decls_2): Likewise.
16667 (lto_symtab_merge_decls_1): Likewise.
16668 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
16669 * gimple.c (enum gtc_mode): Declare.
16670 (gimple_types_compatible_p): Make static.
16671
16672 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16673
16674 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
16675 temporary register to match Pmode.
16676
16677 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16678
16679 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
16680 and *vec_concatv4si_1_avx.
16681
16682 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16683
16684 PR rtl-optimization/48927
16685 * ira-conflicts.c (commutative_constraint_p): Use
16686 recog_data.alternative_enabled_p to disable alternatives where
16687 "enabled" attribute is false.
16688 (get_dup_num): Ditto.
16689 * ira-lives.c (single_reg_class): Ditto.
16690 (ira_implicitly_set_insn_hard_regs): Ditto.
16691
16692 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
16693
16694 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
16695 (dataflow_set_preserve_mem_locs): Likewise.
16696
16697 2011-05-09 Philipp Thomas <pth@suse.de>
16698
16699 * config/mep/mep.c (mep_validate_vliw): Syntax description
16700 should not be translated.
16701
16702 2011-05-09 Joseph Myers <joseph@codesourcery.com>
16703
16704 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
16705 * config/mips/mips-tables.opt: New file (generated).
16706 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
16707 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
16708 MIPS_ARCH_OPTION_NATIVE): Define.
16709 * config/mips/mips.c (mips_cpu_info_table): Move contents to
16710 mips-cpus.def.
16711 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
16712 mips_parse_cpu): Remove.
16713 (mips_cpu_info_from_opt, mips_default_arch): New.
16714 (mips_handle_option): Don't assert that global structures are in
16715 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
16716 (mips_option_override): Use new variables and functions to set
16717 state of these options. Use strcmp to check for individual CPU names.
16718 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
16719 definition.
16720 * config/mips/mips.opt (march=): Use ToLower and Enum.
16721 (mips): Use ToLower, Enum and Var.
16722 (mtune=): Use ToLower and Enum.
16723 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
16724
16725 2011-05-08 Jan Hubicka <jh@suse.cz>
16726
16727 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
16728 Arrange type pairs to be UID ordered.
16729 (gimple_lookup_type_leader): Make inline.
16730
16731 2011-05-09 Nick Clifton <nickc@redhat.com>
16732
16733 PR target/48899
16734 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
16735 PROCESSOR_DEFAULT.
16736
16737 PR target/48897
16738 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
16739 variable 's'.
16740
16741 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
16742
16743 * combine.c (simplify_comparison): Abstract out parts into...
16744 (simplify_compare_const): ... new function.
16745 (try_combine): Generalize parallel arithmetic/compare combining
16746 to call simplify_compare_const() and CANONICALIZE_COMPARE().
16747
16748 2011-05-08 Jan Hubicka <jh@suse.cz>
16749
16750 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
16751 (cgraph_create_virtual_clone): Call hooks once virtual clone
16752 is finished.
16753 * cgraph.h (cgraph_clone_node): Update prototype.
16754 * ipa-cp.c (ipcp_estimate_growth): Use
16755 estimate_ipcp_clone_size_and_time.
16756 * ipa-inline-transform.c (clone_inlined_nodes): Update.
16757 * lto-cgraph.c (input_node): Update.
16758 * ipa-inline.c (recursive_inlining): Update.
16759 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
16760 (evaluate_conditions_for_known_args): Break out from ...
16761 (evaluate_conditions_for_edge): ... here.
16762 (evaluate_conditions_for_ipcp_clone): New function.
16763 (inline_node_duplication_hook): Update clone summary based
16764 on parameter map.
16765 (estimate_callee_size_and_time): Rename to ...
16766 (estimate_node_size_and_time): take NODE instead of EDGE;
16767 take POSSIBLE_TRUTHS as argument.
16768 (estimate_callee_size_and_time): Update.
16769 (estimate_ipcp_clone_size_and_time): New function.
16770 (do_estimate_edge_time): Update.
16771
16772 2011-05-08 Richard Guenther <rguenther@suse.de>
16773
16774 PR middle-end/48908
16775 PR middle-end/48905
16776 * expmed.c (expand_shift_1): Compute adjusted constant shift
16777 amount manually.
16778
16779 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
16780
16781 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
16782
16783 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
16784
16785 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
16786
16787 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
16788
16789 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
16790
16791 2011-05-07 Jan Hubicka <jh@suse.cz>
16792
16793 * ipa-inline-transform.c (inline_call): Account when program size
16794 decreases.
16795 * ipa-inline.c (relative_time_benefit): New function.
16796 (edge_badness): Reorganize to be power 2 based; fix thinko when
16797 computing badness for negative growth; update comments to match
16798 reality; better dumps.
16799
16800 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
16801
16802 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
16803 type to bool and adjust comment.
16804 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
16805 (fold_mathfn_compare): Remove calls to global_bindings_p.
16806 (fold_inf_compare): Likewise.
16807 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
16808 * c-tree.h (global_bindings_p): Adjust prototype.
16809 * c-decl.c (global_bindings_p): Return bool and simplify.
16810
16811 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
16812
16813 PR tree-optimization/48837
16814 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
16815 when accumulator transformation is performed.
16816
16817 2011-05-06 Jan Hubicka <jh@suse.cz>
16818
16819 * i386.h (ix86_tune_indices): Add
16820 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
16821 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
16822 * i386.c (initial_ix86_tune_features): Add
16823 X86_SOFTARE_PREFETCHING_BENEFICIAL.
16824 (software_prefetching_beneficial_p): Remove predicate.
16825 (ix86_option_override_internal): Use new macro.
16826
16827 2011-05-06 Jan Hubicka <jh@suse.cz>
16828
16829 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
16830
16831 2011-05-06 Jan Hubicka <jh@suse.cz>
16832
16833 * cgraph.c (cgraph_add_thunk): Create real function node instead
16834 of alias node; finalize it and mark needed/reachale; arrange visibility
16835 to be right and add it into the corresponding same comdat group list.
16836 (dump_cgraph_node): Dump thunks.
16837 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
16838 cgraph_function_with_gimple_body_p,
16839 cgraph_first_function_with_gimple_body,
16840 cgraph_next_function_with_gimple_body): New functions.
16841 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
16842 New macros.
16843 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
16844 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
16845 * cgraphunit.c (cgraph_finalize_function): Only look into possible
16846 devirtualization when optimizing.
16847 (verify_cgraph_node): Verify thunks.
16848 (cgraph_analyze_function): Analyze thunks.
16849 (cgraph_mark_functions_to_output): Output thunks only in combination
16850 with function they are assigned to.
16851 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
16852 alias into normal node.
16853 (assemble_thunks): New functoin.
16854 (cgraph_expand_function): Use it.
16855 * lto-cgraph.c (lto_output_node): Stream thunks.
16856 (input_overwrite_node): Stream in thunks.
16857 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
16858 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
16859 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
16860 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
16861 (inline_analyze_function): Do not care about thunk jump functions.
16862 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
16863 * ipa-prop.c (ipa_prop_write_jump_functions): Use
16864 cgraph_function_with_gimple_body_p.
16865 * passes.c (do_per_function_toporder): Use
16866 cgraph_function_with_gimple_body_p.
16867 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
16868 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
16869 (function_called_by_processed_nodes_p): Likewise.
16870
16871 2011-05-06 Joseph Myers <joseph@codesourcery.com>
16872
16873 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
16874 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
16875 entries.
16876 (mabi=): Replace with separate entries for mabi=altivec,
16877 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
16878 mabi=ieeelongdouble and mabi=ibmlongdouble.
16879 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
16880 check for -mabi=spe without SPE ABI support here.
16881 (rs6000_handle_option): Replace OPT_mabi_ handling with
16882 OPT_mabi_altivec and OPT_mabi_spe handling.
16883
16884 2011-05-06 Cary Coutant <ccoutant@google.com>
16885
16886 * dwarf2out.c (contains_subprogram_definition): New function.
16887 (should_move_die_to_comdat): Call it.
16888
16889 2011-05-06 Jeff Law <law@redhat.com>
16890
16891 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
16892 remove_ctrl_stmt_and_useless_edges.
16893 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
16894 (fixup_template_block, thread_single_edge): Likewise.
16895 (mark_threaded_blocks): Use THREAD_TARGET.
16896
16897 2011-05-06 Alan Modra <amodra@gmail.com>
16898
16899 PR target/48900
16900 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
16901 const0_rtx as the arg to the dummy __tls_get_addr libcall.
16902
16903 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
16904
16905 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
16906 constraint modifier to "r".
16907
16908 2011-05-06 Joseph Myers <joseph@codesourcery.com>
16909
16910 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
16911 fall through for OPT_mcmodel_.
16912
16913 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16914
16915 * config/s390/s390.c (s390_asm_trampoline_template): Comment
16916 instruction sizes.
16917 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
16918
16919 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16920
16921 PR target/47930
16922 * config/arm/arm.opt (marm): Document it.
16923 (mthumb): Reject negative variant.
16924
16925 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
16926
16927 PR target/48898
16928 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
16929 Fix typo in "ccvt" variable name.
16930
16931 2011-05-06 Tristan Gingold <gingold@adacore.com>
16932
16933 PR target/48895
16934 * config/vms/vms-ar.c (main): Remove cwd variable.
16935
16936 2011-05-06 Jakub Jelinek <jakub@redhat.com>
16937
16938 PR debug/48902
16939 * var-tracking.c (prepare_call_arguments): Move else before #endif.
16940
16941 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
16942
16943 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
16944 * gimplify.c (gimplify_switch_expr): Likewise.
16945 * omp-low.c (expand_omp_sections): Likewise.
16946 * tree-eh.c (lower_try_finally_switch): Likewise.
16947 (lower_eh_dispatch): Likewise.
16948 * tree.h (build_case_label): Declare.
16949 * tree.c (build_case_label): Define.
16950
16951 2011-05-05 Jason Merrill <jason@redhat.com>
16952
16953 PR c++/40975
16954 * tree-inline.c (copy_tree_r): Use copy_statement_list.
16955 (copy_statement_list): Don't recurse.
16956 * stor-layout.c (copy_self_referential_tree_r): Don't allow
16957 STATEMENT_LIST.
16958
16959 2011-05-05 Joseph Myers <joseph@codesourcery.com>
16960
16961 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
16962 through from -mfpu= handling.
16963 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
16964
16965 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
16966
16967 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
16968 POST_MODIFY.
16969
16970 2011-05-05 Steve Ellcey <sje@cup.hp.com>
16971
16972 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
16973 for 11.31.
16974 (hppa[12]*-*-hpux11*): Ditto.
16975 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
16976 * config/ia64/hpux-unix2003.h: New.
16977 * config/pa/pa-hpux1131.opt: New.
16978 * config/pa/pa-hpux1131.h: New.
16979 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
16980 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
16981 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
16982
16983 2011-05-05 Jakub Jelinek <jakub@redhat.com>
16984
16985 PR debug/48853
16986 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
16987 instead of mode as 3rd argument to recursive call.
16988 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
16989 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
16990 VOIDmode.
16991 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
16992 don't give up if mode is Pmode and mem_mode is not VOIDmode.
16993 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
16994 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
16995
16996 2011-05-05 Julian Brown <julian@codesourcery.com>
16997
16998 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
16999 parenthesis in D-register case.
17000
17001 2011-05-05 Joseph Myers <joseph@codesourcery.com>
17002
17003 * opt-functions.awk (var_type_struct): Handle Enum options.
17004 * optc-gen.awk: Don't check range of variables of character type.
17005 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
17006 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
17007 rs6000_sdata_name, rs6000_explicit_options): Remove.
17008 (rs6000_option_override_internal): Check for -malign-power here.
17009 Use global_options_set instead of rs6000_explicit_options.
17010 (rs6000_parse_fpu_option): Remove.
17011 (rs6000_handle_option): Access variables via opts and opts_set
17012 pointers. Use error_at and warning_at. Add fall-through
17013 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
17014 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
17015 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
17016 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
17017 here. Don't use rs6000_parse_fpu_option.
17018 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
17019 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
17020 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
17021 (mrecip=): Use Var.
17022 (mspe): Use Var and Save.
17023 (mtraceback=): Use Enum and Var.
17024 (rs6000_traceback_type): New Enum and EnumValue entries.
17025 (mfloat-gprs=): Use Enum, Var and Save.
17026 (rs6000_float_gprs): New Enum and EnumValue entries.
17027 (mlong-double-): use Var and Save.
17028 (msched-costly-dep=, minsert-sched-nops=): Use Var.
17029 (malign-): Use Enum and Var.
17030 (rs6000_alignment_flags): New Enum and EnumValue entries.
17031 (mfpu=): Use Enum.
17032 (fpu_type_t): New Enum and EnumValue entries.
17033 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17034 global_options_set instead of rs6000_explicit_options.
17035 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17036 global_options_set instead of rs6000_explicit_options.
17037 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17038 global_options_set instead of rs6000_explicit_options.
17039 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17040 global_options_set instead of rs6000_explicit_options.
17041 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
17042 global_options_set instead of rs6000_explicit_options.
17043 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17044 global_options_set instead of rs6000_explicit_options.
17045 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
17046 definition.
17047 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17048 global_options_set instead of rs6000_explicit_options.
17049 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
17050 (rs6000_cmodel): New Enum and EnumValue entries.
17051 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17052 global_options_set instead of rs6000_explicit_options.
17053 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
17054 (mtls-size=): Use Enum and Var.
17055 (rs6000_tls_size): New Enum and EnumValue entries.
17056
17057 2011-05-05 Michael Matz <matz@suse.de>
17058
17059 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
17060 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
17061 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
17062 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
17063 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
17064 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
17065 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
17066 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
17067 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
17068 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
17069 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
17070 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
17071 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
17072 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
17073 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
17074 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
17075
17076 2011-05-05 Richard Guenther <rguenther@suse.de>
17077
17078 * expmed.c (expand_variable_shift): Rename to ...
17079 (expand_shift_1): ... this. Take an expanded shift amount.
17080 For rotates recurse directly not building trees for the shift amount.
17081 (expand_variable_shift): Wrap around expand_shift_1.
17082 (expand_shift): Adjust.
17083
17084 2011-05-05 Jakub Jelinek <jakub@redhat.com>
17085
17086 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
17087
17088 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
17089
17090 * tree.h (get_pending_sizes): Remove prototype.
17091 (put_pending_size): Likewise.
17092 (put_pending_sizes): Likewise.
17093 * stor-layout.c (pending_sizes): Delete.
17094 (get_pending_sizes): Likewise.
17095 (put_pending_size): Likewise.
17096 (put_pending_sizes): Likewise.
17097 (variable_size): Do not call put_pending_size and tidy up.
17098 * function.h (struct function): Remove dont_save_pending_sizes_p.
17099 * lto-streamer-in.c (input_function): Do not stream it.
17100 * lto-streamer-out.c (output_function): Likewise.
17101 * tree-inline.c (initialize_cfun): Do not copy it.
17102 * c-decl.c (store_parm_decls): Do not set it.
17103 * omp-low.c (create_task_copyfn): Likewise.
17104 * tree-optimize.c (tree_rest_of_compilation): Likewise.
17105
17106 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
17107
17108 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
17109 conditions.
17110 (*movdf_internal): Ditto.
17111 (*movdf_internal_nointeger): Ditto.
17112 (*movsf_internal): Ditto.
17113
17114 2011-05-05 Joseph Myers <joseph@codesourcery.com>
17115
17116 * c-decl.c (finish_decl): Don't call get_pending_sizes.
17117 (grokparm): Add parameter expr. Pass it to grokdeclarator.
17118 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
17119 (c_variable_size): Remove.
17120 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
17121 call put_pending_sizes.
17122 (get_parm_info): Add parameter expr. Use it to set
17123 arg_info->pending_sizes.
17124 (store_parm_decls): Use arg_info->pending_sizes instead or calling
17125 get_pending_sizes.
17126 * c-parser.c (c_parser_parms_declarator): Update call to
17127 c_parser_parms_list_declarator.
17128 (c_parser_parms_list_declarator): Take parameter expr. Update
17129 call to push_parm_decl. Update recursive call. Don't call
17130 get_pending_sizes. Update calls to get_parm_info.
17131 (c_parser_objc_method_definition): Update calls to
17132 c_parser_objc_method_decl and objc_start_method_definition.
17133 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
17134 (c_parser_objc_method_decl): Add parameter expr. Update call to
17135 grokparm.
17136 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
17137 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
17138 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
17139
17140 2011-05-05 Michael Hope <michael.hope@linaro.org>
17141
17142 PR pch/45979
17143 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
17144 __ARM_EABI__ hosts.
17145
17146 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17147
17148 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
17149 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
17150 (spu_output_mi_thunk): New function.
17151
17152 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17153
17154 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
17155 targetm.asm_out.print_operand.
17156 * config/sol2.c: Include target.h.
17157
17158 2011-05-04 Jan Hubicka <jh@suse.cz>
17159
17160 * ipa-inline.c (reset_edge_caches): New function.
17161 (update_caller_keys): Add check_inlinablity_for; do not
17162 reset edge caches; remove now unnecesary loop.
17163 (update_callee_keys): Add comments; reset node_growth_cache of callee.
17164 (update_all_callee_keys): Likewise.
17165 (inline_small_functions): Sanity check cache; update code
17166 recomputing it.
17167
17168 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
17169
17170 PR rtl-optimization/47612
17171 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
17172 as the last insn of the sequence to be moved.
17173
17174 2011-05-04 Tobias Burnus <burnus@net-b.de>
17175
17176 PR fortran/48864
17177 * doc/invoke.texi (Ofast): Document that it
17178 enables Fortran's -fno-protect-parens.
17179
17180 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
17181
17182 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
17183
17184 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
17185
17186 * stor-layout.c (variable_size): Do not issue errors.
17187
17188 2011-05-04 Richard Guenther <rguenther@suse.de>
17189
17190 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
17191 for array-ref indices.
17192 (tree_coverage_counter_addr): Likewise.
17193 (build_fn_info_type): Use size_int for index types.
17194 (build_gcov_info): Likewise.
17195
17196 2011-05-04 Richard Guenther <rguenther@suse.de>
17197
17198 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
17199 to build_int_cst.
17200 * c-typeck.c (really_start_incremental_init): Use bitsize_int
17201 for constructor indices.
17202 (push_init_level): Likewise.
17203
17204 2011-05-04 Richard Guenther <rguenther@suse.de>
17205
17206 * explow.c (promote_mode): Move variable declarations before code.
17207
17208 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
17209
17210 * tree.h (build_function_type_array): Declare.
17211 (build_varargs_function_type_array): Declare.
17212 (build_function_type_vec, build_varargs_function_type_vec): Define.
17213 * tree.c (build_function_type_array_1): New function.
17214 (build_function_type_array): New function.
17215 (build_varargs_function_type_array): New function.
17216
17217 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
17218
17219 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
17220 before setting STMT_VINFO_TYPE.
17221
17222 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17223
17224 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
17225 instead of spu_pass_by_reference.
17226
17227 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17228
17229 * calls.c (emit_library_call_value_1): Invoke
17230 promote_function_mode hook on libcall arguments.
17231 * explow.c (promote_function_mode, promote_mode): Handle TYPE
17232 argument being NULL.
17233 * targhooks.c (default_promote_function_mode): Lisewise.
17234 * config/s390/s390.c (s390_promote_function_mode): Likewise.
17235 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
17236
17237 * doc/tm.texi: Document that TYPE argument might be NULL.
17238
17239 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
17240
17241 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
17242
17243 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
17244
17245 From Bernd Schmidt
17246 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
17247
17248 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17249
17250 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
17251 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
17252 Move ...
17253 * mips-tfile.c: ... here.
17254 Don't include coretypes.h, tm.h, filenames.h.
17255 (saber_stop): Remove definition and all calls.
17256 [__SABER__]: Remove.
17257 (__LINE__): Remove default.
17258 (Size_t, Ptrdiff_t): Remove definitions.
17259 Replace by size_t, ptrdiff_t.
17260 [!MIPS_DEBUGGING_INFO]: Remove.
17261 (SHASH_SIZE, THASH_SIZE): Remove defaults.
17262 (progname): Add const.
17263 (STATIC): Remove.
17264 Replace all uses by static.
17265 (ALIGN_SYMTABLE_OFFSET): Remove default.
17266 * mips-tdump.c: Don't include coretypes.h, tm.h.
17267 Remove !MIPS_IS_STAB guard.
17268 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
17269 $(TM_H), filenames.h dependencies.
17270 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
17271
17272 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
17273
17274 From Jie Zhang
17275 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
17276 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
17277
17278 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
17279
17280 From Bernd Schmidt
17281 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
17282 account and save/restore RETS.
17283 (PROFILE_BEFORE_PROLOGUE): Define.
17284 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
17285 the push insn to use predecrement.
17286
17287 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
17288
17289 From Jie Zhang
17290 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
17291
17292 2011-05-04 Nick Clifton <nickc@redhat.com>
17293
17294 * config/mn10300/mn10300.c: Include cfgloop.h.
17295 (DUMP): New macro.
17296 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
17297 Lcc or a FLcc insn into the instruction stream.
17298 (mn10300_block_contains_call): New function. Returns true if the
17299 given basic block contains a CALL insn.
17300 (mn10300_loop_contains_call_insn): New function. Returns true if
17301 the given loop contains a CALL insn.
17302 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
17303 to use the SETLB and Lcc or FLcc insns.
17304 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
17305 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
17306 * config/mn10300/mn10300.opt (msetlb): New option. Used to
17307 disable the SETLB optimization.
17308 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
17309 __SETLB__ or __NO_SETLB__.
17310 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
17311 (movsf_internal): Handle MDR register.
17312 (cmpsi): Make visible.
17313 (setlb): New pattern.
17314 (Lcc): New pattern.
17315 (FLcc): New pattern.
17316
17317 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
17318
17319 PR target/48860
17320 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
17321 for reg<->xmm moves.
17322 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
17323 (vec_concatv2di_rex64_sse): Ditto.
17324 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
17325 (*vec_extractv2di_1_rex64): Ditto.
17326
17327 Revert:
17328 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
17329
17330 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
17331 reg<->xmm moves.
17332 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
17333
17334 2011-05-04 Richard Guenther <rguenther@suse.de>
17335
17336 * tree.h (int_const_binop): Remove notrunc argument.
17337 * fold-const.c (int_const_binop): Remove notrunc argument. Always
17338 create integer constants that are properly truncated.
17339 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
17340 (const_binop): Remove zero notrunc argument to int_const_binop.
17341 (size_binop_loc): Likewise.
17342 (fold_div_compare): Likewise.
17343 (maybe_canonicalize_comparison_1): Likewise.
17344 (fold_comparison): Likewise.
17345 (fold_binary_loc): Likewise.
17346 (multiple_of_p): Likewise.
17347 * expr.c (store_constructor): Likewise.
17348 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
17349 (maybe_fold_stmt_addition): Likewise.
17350 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
17351 * stor-layout.c (layout_type): Likewise.
17352 * tree-data-ref.c (tree_fold_divides_p): Likewise.
17353 * tree-sra.c (build_ref_for_offset): Likewise.
17354 (build_user_friendly_ref_for_offset): Likewise.
17355 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
17356 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17357 * tree-ssa-loop-niter.c (inverse): Likewise.
17358 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
17359 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
17360 * tree-switch-conversion.c (check_range): Likewise.
17361 (build_constructors): Likewise.
17362 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
17363 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
17364 (extract_range_from_assert): Likewise.
17365 (vrp_int_const_binop): Likewise.
17366 (extract_range_from_binary_expr): Likewise.
17367 (extract_range_from_unary_expr): Likewise.
17368 (check_array_ref): Likewise.
17369 (find_case_label_range): Likewise.
17370 (simplify_div_or_mod_using_ranges): Likewise.
17371 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
17372 comparing case labels for merging.
17373
17374 2011-05-03 Mark Wielaard <mjw@redhat.com>
17375
17376 * dwarf2out.c (debug_str_hash_forced): Removed.
17377 (gen_label_for_indirect_string): Removed.
17378 (get_debug_string_label): Removed.
17379 (AT_string_form): Generate label directly.
17380 (output_indirect_string): Test indirect_string_node for
17381 DW_FORM_strp instead of checking label and refcount.
17382 (prune_indirect_string): Removed.
17383 (prune_unused_types): Don't check debug_str_hash_forced or
17384 call prune_indirect_string.
17385
17386 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
17387
17388 PR other/48093
17389 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
17390
17391 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
17392
17393 PR debug/47994
17394 PR debug/47919
17395 * combine.c (try_combine): Skip debug insns at m_split tests.
17396
17397 2011-04-26 Mark Wielaard <mjw@redhat.com>
17398
17399 PR42288
17400 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
17401 when info_section_emitted.
17402
17403 2011-05-03 Joseph Myers <joseph@codesourcery.com>
17404
17405 * config/mips/mips-opts.h: New.
17406 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
17407 to mips-opts.h.
17408 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
17409 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
17410 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
17411 via opts pointer.
17412 * config/mips/mips.h (enum mips_code_readable_setting): Move to
17413 mips-opts.h.
17414 (mips_abi, mips_code_readable): Don't declare.
17415 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
17416 (mabi=): Use Enum and Var.
17417 (mips_abi): New Enum and EnumValue entries.
17418 (mcode-readable=): Use Enum and Var.
17419 (mips_code_readable_setting): New Enum and EnumValue entries.
17420 (mr10k-cache-barrier=): Use Enum and Var.
17421 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
17422
17423 2011-05-03 Jan Hubicka <jh@suse.cz>
17424
17425 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
17426 replace hash by pointer map.
17427 (cgraph_node_set_element_def, cgraph_node_set_element,
17428 const_cgraph_node_set_element, varpool_node_set_element_def,
17429 varpool_node_set_element, const_varpool_node_set_element): Remove.
17430 (free_cgraph_node_set, free_varpool_node_set): New function.
17431 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
17432 * tree-emutls.c: Free varpool node set.
17433 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
17434 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
17435 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
17436 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
17437 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
17438 Move here from ipa.c; implement using pointer_map
17439 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
17440 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
17441 debug_cgraph_node_set, varpool_node_set_new,
17442 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
17443 dump_varpool_node_set, debug_varpool_node_set):
17444 Move to ipa-uitls.c.
17445 * passes.c (ipa_write_summaries): Update.
17446
17447 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17448
17449 From Mike Frysinger:
17450 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
17451 bf542/bf544/bf547/bf548/bf549.
17452
17453 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
17454
17455 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
17456
17457 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17458
17459 From Bernd Schmidt:
17460 * config/bfin/bfin.md (MOVCC): New mode_macro.
17461 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
17462 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
17463 comments from generated assembly.
17464
17465 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17466
17467 From Bernd Schmidt
17468 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
17469 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
17470 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
17471 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
17472 * config/bfin/lib1funcs.asm (___muldi3): New function.
17473
17474 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17475
17476 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
17477 build_function_type_list instead of build_function_type.
17478 Rearrange initialization of `args' to do so.
17479
17480 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17481
17482 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
17483 instead of build_function_type.
17484
17485 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17486
17487 * config/rs6000/rs6000.c (spe_init_builtins): Call
17488 build_function_type_list instead of build_function_type.
17489 (paired_init_builtins, altivec_init_builtins): Likewise.
17490 (builtin_function_type): Likewise.
17491
17492 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17493
17494 * config/sh/sh.c (sh_media_init_builtins): Call
17495 build_function_type_list instead of build_function_type.
17496
17497 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17498
17499 * config/sparc/sparc.c (sparc_file_end): Call
17500 build_function_type_list instead of build_function_type.
17501
17502 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17503
17504 * config/alpha/alpha.c (alpha_init_builtins): Call
17505 build_function_type_list instead of build_function_type.
17506
17507 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17508
17509 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
17510 build_function_type_list instead of build_function_type.
17511
17512 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17513
17514 * config/iq2000/i2000.c (iq2000_init_builtins): Call
17515 build_function_type_list instead of build_function_type.
17516 Delete `endlink' variable.
17517
17518 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17519
17520 * config/avr/avr.c (avr_init_builtins): Call
17521 build_function_type_list instead of build_function_type.
17522
17523 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17524
17525 * config/picochip/picochip.c (picochip_init_builtins): Call
17526 build_function_type_list instead of build_function_type.
17527 Delete `endlink' variable.
17528
17529 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17530
17531 * config/bfin/bfin.c (bfin_init_builtins): Call
17532 build_function_type_list instead of build_function_type.
17533
17534 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17535
17536 From Bernd Schmidt
17537 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
17538 that's not CONST_INT. Seemingly redundant check is due to PR39768.
17539
17540 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17541
17542 From Jie Zhang:
17543 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
17544 libbffastfp overrides libgcc when -mfast-fp.
17545
17546 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17547
17548 Originally from Bernd Schmidt
17549 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
17550 * config/bfin/bfin.c (override_options): Test it and error if
17551 TARGET_FDPIC.
17552
17553 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17554
17555 Originally From Bernd Schmidt
17556 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
17557 FD-PIC.
17558
17559 2011-05-03 Jeff Law <law@redhat.com>
17560
17561 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
17562 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
17563 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
17564 than accessing AUX field directly. Free the AUX field before
17565 clearing it.
17566 (thread_block, thread_through_loop_header): Likewise.
17567 (thread_single_edge, mark_threaded_blocks): Likewise.
17568 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
17569 (register_jump_thread): Do not attempt to thread to a NULL edge.
17570
17571 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
17572
17573 * function.c (init_function_start): Call decide_function_section.
17574 * varasm.c (decide_function_section): New function.
17575 (assemble_start_function): When not using
17576 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
17577 or first_function_block_is_cold.
17578 * rtl.h (decide_function_section): Declare.
17579
17580 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
17581 Jakub Jelinek <jakub@redhat.com>
17582
17583 PR target/48774
17584 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
17585 only succeed if req_mode is the same as set_mode.
17586
17587 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
17588
17589 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
17590 * genemit.c (gen_exp): Handle RETURN.
17591 * emit-rtl.c (verify_rtx_sharing): Likewise.
17592 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
17593 * rtl.c (copy_rtx): RETURN is shared.
17594 * rtl.h (enum global_rtl_index): Add GR_RETURN.
17595 (ret_rtx): New.
17596 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
17597 * config/s390/s390.c (s390_emit_epilogue): Likewise.
17598 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
17599 * config/cris/cris.c (cris_expand_return): Likewise.
17600 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
17601 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
17602 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
17603 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
17604 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
17605 Likewise.
17606 * config/v850/v850.c (expand_epilogue): Likewise.
17607 * config/bfin/bfin.c (bfin_expand_call): Likewise.
17608 * config/arm/arm.md (epilogue): Likewise.
17609 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
17610 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
17611 variable to ret_reg.
17612
17613 2011-05-03 Richard Guenther <rguenther@suse.de>
17614
17615 PR lto/48846
17616 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
17617 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
17618 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
17619
17620 2011-05-03 Richard Guenther <rguenther@suse.de>
17621
17622 * c-decl.c (grokdeclarator): Instead of looking at
17623 TREE_OVERFLOW check if the constant fits in the index type.
17624
17625 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17626
17627 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
17628 (vec_store_lanes<mode><mode>): Likewise.
17629
17630 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17631
17632 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
17633 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
17634 convert_optab_index values.
17635 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
17636 * genopinit.c (optabs): Initialize the new optabs.
17637 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
17638 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
17639 (expand_STORE_LANES): New functions.
17640 * tree.h (build_array_type_nelts): Declare.
17641 * tree.c (build_array_type_nelts): New function.
17642 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
17643 (vect_model_load_cost): Likewise.
17644 (vect_store_lanes_supported, vect_load_lanes_supported)
17645 (vect_record_strided_load_vectors): Declare.
17646 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
17647 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
17648 (vect_transform_strided_load): Split out statement recording into...
17649 (vect_record_strided_load_vectors): ...this new function.
17650 * tree-vect-stmts.c (create_vector_array, read_vector_array)
17651 (write_vector_array, create_array_ref): New functions.
17652 (vect_model_store_cost): Add store_lanes_p argument.
17653 (vect_model_load_cost): Add load_lanes_p argument.
17654 (vectorizable_store): Try to use store-lanes functions for
17655 interleaved stores.
17656 (vectorizable_load): Likewise load-lanes and loads.
17657 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
17658 to vect_model_store_cost.
17659 (vect_build_slp_tree): Likewise vect_model_load_cost.
17660
17661 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17662
17663 * hooks.h (hook_bool_mode_uhwi_false): Declare.
17664 * hooks.c (hook_bool_mode_uhwi_false): New function.
17665 * target.def (array_mode_supported_p): New hook.
17666 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
17667 * doc/tm.texi: Regenerate.
17668 * stor-layout.c (mode_for_array): New function.
17669 (layout_type): Use it.
17670 * config/arm/arm.c (arm_array_mode_supported_p): New function.
17671 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
17672
17673 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
17674
17675 PR target/48723
17676 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
17677 for -fstack-check if the size to allocate is negative.
17678
17679 2011-05-02 Lawrence Crowl <crowl@google.com>
17680
17681 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
17682 (timevar_cond_start): New for starting a timer only when it is not
17683 already running.
17684 (timevar_cond_stop): New for stopping a timer when it was not already
17685 running.
17686
17687 * timevar.c (timevar_stop): Enable start/stop timers to start again.
17688 (timevar_cond_start): New as above.
17689 (timevar_cond_stop): New as above.
17690
17691 * timevar.def: Add start/stop timers for compiler phases,
17692 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
17693 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
17694 and TV_PHASE_FINALIZE.
17695 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
17696 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
17697 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
17698 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
17699 Make unused TV_OVERLOAD into a start/stop timer.
17700
17701 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
17702 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
17703 to indicate that they are start/stop timers.
17704
17705 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
17706 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
17707 Move initialization to do_compile.
17708 (do_compile): Add initialization from above.
17709 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
17710
17711 * c-decl.c (c_write_global_declarations): Add start/stop of
17712 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
17713
17714 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
17715 or TV_PARSE_INLINE, as appropriate.
17716 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
17717 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
17718
17719 2011-05-02 Jason Merrill <jason@redhat.com>
17720
17721 PR c++/40975
17722 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
17723
17724 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
17725
17726 PR c/35445
17727 * c-decl.c (finish_decl): Only create a composite if the types are
17728 compatible.
17729
17730 2011-05-02 Joseph Myers <joseph@codesourcery.com>
17731
17732 * config/fr30/fr30-protos.h (Mmode): Don't define.
17733 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
17734 definition where used.
17735 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
17736 define. Expand definitions where used.
17737 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
17738 Expand definitions where used.
17739 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
17740 rx_function_arg, rx_function_arg_advance,
17741 rx_function_arg_boundary): Expand definitions of those macros.
17742 * config/v850/v850-protos.h (Mmode): Don't define. Expand
17743 definition where used.
17744
17745 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
17746
17747 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
17748 reg<->xmm moves.
17749 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
17750 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
17751 with *movv2sf_internal_rex64_avx.
17752 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
17753 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
17754 Use %v prefix in insn mnemonic to handle TARGET_AVX.
17755 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
17756 "vex" in "prefix" attribute calculation.
17757 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
17758
17759 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
17760
17761 PR target/47951
17762 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
17763 inputs match the output.
17764
17765 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
17766
17767 PR target/47955
17768 * config/m68k/m68k.c (m68k_expand_prologue): Set
17769 current_function_static_stack_size.
17770
17771 2011-05-02 Jan Hubicka <jh@suse.cz>
17772
17773 * lto-streamer.c (lto_streamer_cache_insert_1,
17774 lto_streamer_cache_lookup, lto_streamer_cache_create,
17775 lto_streamer_cache_delete): Use pointer map instead of hashtable.
17776 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
17777
17778 2011-05-02 Joseph Myers <joseph@codesourcery.com>
17779
17780 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
17781 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
17782 config/m68k/t-opts: New files.
17783 * config/m68k/m68k-tables.opt: New file (generated).
17784 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
17785 extra_options and m68k/t-opts to tmake_file.
17786 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
17787 (all_isas): Initialize using m68k-isas.def.
17788 (all_microarchs): Initialize using m68k-microarchs.def.
17789 (m68k_find_selection): Remove.
17790 (m68k_handle_option): Don't assert that global structures are in
17791 use. Use error_at. Access variables via opts pointer. Don't
17792 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
17793 directly for -m68020-40 and -m68020-60.
17794 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
17795 m68k_tune_entry here.
17796 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
17797 to m68k-opts.h.
17798 (m68k_library_id_string): Remove declaration.
17799 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
17800 (m68k_library_id_string): New Variable.
17801 (march=, mcpu=, mtune=): Use Enum and Var.
17802
17803 2011-05-02 Richard Guenther <rguenther@suse.de>
17804
17805 * varasm.c (output_constructor_regular_field): Compute zero-based
17806 index with double-ints. Make sure to ICE instead of producing
17807 wrong code.
17808 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
17809 in asserts. Properly use a signed type.
17810
17811 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
17812
17813 * config/i386/sse.md (V): New mode iterator.
17814 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
17815 TARGET_SSE2.
17816 (V_256): Rename from AVX256MODE.
17817 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
17818 condition to all users.
17819 (VF1): Ditto.
17820 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
17821 condition to all users.
17822 (VF_128): Make V4SF mode unconditional.
17823 (VF_256): Rename from AVX256MODEF2P.
17824 (VI4F_128): Rename from SSEMODE4S.
17825 (VI8F_128): Rename from SSEMODE2D.
17826 (VI4F_256): Rename from AVX256MODE8P.
17827 (VI8F_256): Rename from AVX256MODE4P.
17828 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
17829 (ssescalarmodesuffix): Remove SF and DF modes.
17830 (SSEMODE124): Remove.
17831 (SSEMODE1248): Ditto.
17832 (SSEMODEF2P): Ditto.
17833 (AVXMODEF2P): Ditto.
17834 (AVXMODEFDP): Ditto.
17835 (AVXMODEFSP): Ditto.
17836 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
17837 unconditional.
17838 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
17839 unconditional.
17840 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
17841 xop_pcmov_<mode>256. Use V mode iterator.
17842
17843 Adjust RTX patterns globally for renamed mode attributes.
17844
17845 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17846
17847 * haifa-sched.c (sched_emit_insn): Emit insn before first
17848 non-scheduled insn. Inform back-end about new insn. Add
17849 new insn to scheduled_insns list.
17850
17851 2011-05-02 Richard Guenther <rguenther@suse.de>
17852
17853 PR tree-optimization/48822
17854 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
17855 (process_scc): Indicate which iteration we start.
17856
17857 2011-05-02 Jan Hubicka <jh@suse.cz>
17858
17859 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
17860 (lto_section_overrun): New.
17861 * lto-section-out.c (append_block): Rename to ...
17862 (lto_append_block): ... this one; export.
17863 (lto_output_1_stream): Move lto lto-streamer.h
17864 (lto_output_data_stream): Update.
17865 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
17866 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
17867 functions.
17868
17869 2011-05-02 Richard Guenther <rguenther@suse.de>
17870
17871 * tree.c (tree_code_counts): New global array.
17872 (record_node_allocation_statistics): Count individual tree codes.
17873 (dump_tree_statistics): Dump individual code stats.
17874
17875 2011-05-01 Jan Hubicka <jh@suse.cz>
17876
17877 * ipa-inline.c (caller_growth_limits): Fix thinko when
17878 looking for largest stack frame.
17879 * ipa-inline.h (dump_inline_summary): Declare.
17880 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
17881 on stack usage.
17882 (dump_inline_summary): Export.
17883 (debug_inline_summary): Declare as DEBUG_FUNCTION.
17884
17885 2011-05-01 Anatoly Sokolov <aesok@post.ru>
17886
17887 * reginfo.c (memory_move_cost): Change rclass argument type form
17888 'enum reg_class' to reg_class_t.
17889 * reload.h (memory_move_cost): Update prototype.
17890 * postreload.c reload_cse_simplify_set): Change type dclass var to
17891 reg_class_t.
17892 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
17893 Update prototype.
17894 (ira_allocate_and_set_costs): Change aclass argument type form
17895 'enum reg_class' to reg_class_t.
17896 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
17897 Change aclass argument type to reg_class_t.
17898 (update_conflict_hard_reg_costs): Change type aclass and pref vars
17899 to reg_class_t.
17900 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
17901 memory_move_cost call.
17902
17903 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
17904 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
17905 Change type tmp var to reg_class_t.
17906
17907 2011-04-30 Jan Hubicka <jh@suse.cz>
17908
17909 * ipa-inline.c (can_inline_edge_p): Disregard limits when
17910 inlining into function with flatten attribute.
17911 (want_inline_small_function_p): Be more realistic about inlining
17912 cold calls where callee size grows.
17913
17914 2011-04-30 Jan Hubicka <jh@suse.cz>
17915
17916 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
17917 flags.
17918
17919 2011-04-30 Anatoly Sokolov <aesok@post.ru>
17920
17921 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
17922 PRINT_OPERAND_PUNCT_VALID_P): Remove.
17923 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
17924 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
17925 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17926 (print_operand): Rename to...
17927 (sparc_print_operand): ...this. Make static. Adjust
17928 sparc_print_operand function call.
17929 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
17930 functions.
17931
17932 2011-04-30 Jan Hubicka <jh@suse.cz>
17933
17934 PR middle-end/48752
17935 * ipa-inline.c (early_inliner): Disable when doing late
17936 addition of function.
17937
17938 2011-04-30 Jakub Jelinek <jakub@redhat.com>
17939
17940 * dwarf2out.c (get_address_mode): New inline.
17941 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
17942 if not dwarf_strict emit
17943 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
17944 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
17945 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
17946 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
17947 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
17948 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
17949 mem_loc_descriptor callers.
17950 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
17951 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
17952 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
17953 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
17954 (base_types): New variable.
17955 (get_base_type_offset, calc_base_type_die_sizes,
17956 base_type_for_mode, mark_base_types, base_type_cmp,
17957 move_marked_base_types): New functions.
17958 (calc_die_sizes): Assert that die_offset is 0 or equal to
17959 next_die_offset.
17960 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
17961 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
17962 callers. If not dwarf_strict, call mem_loc_descriptor even for
17963 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
17964 (gen_subprogram_die): Don't give up on call site parameters
17965 with non-integral or large integral modes. Adjust
17966 mem_loc_descriptor callers.
17967 (prune_unused_types): Call prune_unused_types_mark on base_types
17968 vector entries.
17969 (resolve_addr): Call mark_base_types.
17970 (dwarf2out_finish): Call move_marked_base_types.
17971
17972 PR tree-optimization/48809
17973 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
17974 type.
17975 (gen_inbound_check): Don't compute index_expr - range_min in utype
17976 again, instead reuse SSA_NAME initialized in build_arrays.
17977 Remove two useless gsi_for_stmt calls.
17978
17979 2011-04-29 Jeff Law <law@redhat.com>
17980
17981 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
17982
17983 2011-04-29 Martin Jambor <mjambor@suse.cz>
17984
17985 * cgraph.h (cgraph_postorder): Remove declaration.
17986 * ipa-utils.h (ipa_free_postorder_info): Declare.
17987 (ipa_reverse_postorder): Likewise.
17988 * cgraphunit.c: Include ipa-utils.h.
17989 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
17990 * ipa-inline.c: Include ipa-utils.h.
17991 (ipa_inline): Update call to ipa_reverse_postorder.
17992 * ipa-pure-const.c (propagate_pure_const): Update call to
17993 ipa_reduced_postorder and ipa_print_order. Call
17994 ipa_free_postorder_info to clean up.
17995 (propagate_nothrow): Likewise.
17996 * ipa-reference.c (propagate): Removed a useless call to
17997 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
17998 and ipa_print_order. Call ipa_free_postorder_info to clean up.
17999 * ipa.c: Include ipa-utils.h.
18000 (ipa_profile): Update call to ipa_reverse_postorder.
18001 (cgraph_postorder): Moved to...
18002 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
18003 (ipa_utils_print_order): Renamed to ipa_print_order.
18004 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
18005 comments.
18006 (ipa_free_postorder_info): New function.
18007 * passes.c: Include ipa-utils.h.
18008 (do_per_function_toporder): Update call to ipa_reverse_postorder.
18009 (ipa_write_summaries): Likewise.
18010 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
18011 (cgraphunit.o): Likewise.
18012 (ipa.o): Likewise.
18013 (ipa-inline.o): Likewise.
18014
18015 2011-04-29 Jan Hubicka <jh@suse.cz>
18016
18017 * gcc.dg/tree-ssa/inline-10.c: New testcase.
18018 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
18019 * ipa-inline.h (clause_t): Turn into unsigned int.
18020 * ipa-inline-analysis.c (add_clause): Do more simplification.
18021 (and_predicates): Shortcut more cases.
18022 (predicates_equal_p): Move forward; check that clauses are properly
18023 ordered.
18024 (or_predicates): Shortcut more cases.
18025 (edge_execution_predicate): Rewrite as...
18026 (set_cond_stmt_execution_predicate): ... this function; handle
18027 __builtin_constant_p.
18028 (set_switch_stmt_execution_predicate): New .
18029 (compute_bb_predicates): New.
18030 (will_be_nonconstant_predicate): Update TODO.
18031 (estimate_function_body_sizes): Use compute_bb_predicates
18032 and free them later, always try to estimate if stmt is constant.
18033 (estimate_time_after_inlining, estimate_size_after_inlining):
18034 Gracefully handle optimized out edges.
18035 (read_predicate): Fix off by one error.
18036
18037 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
18038
18039 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
18040
18041 2011-04-27 Xinliang David Li <davidxl@google.com>
18042
18043 * tree-profile.c (init_ic_make_global_vars): Set
18044 tls attribute on ic vars.
18045 * coverage.c (coverage_end_function): Initialize
18046 function_list with zero.
18047
18048 2011-04-29 Richard Guenther <rguenther@suse.de>
18049
18050 * builtins.c (fold_builtin_classify_type): Use integer_type_node
18051 for the type of the result.
18052 (fold_builtin_isascii): Likewise.
18053 (fold_builtin_toascii): Use integer_type_node where appropriate.
18054 (fold_builtin_logb): Likewise.
18055 (fold_builtin_frexp): Likewise.
18056 (fold_builtin_strstr): Likewise.
18057 (fold_builtin_strpbrk): Likewise.
18058 (fold_builtin_fputs): Likewise.
18059 (fold_builtin_sprintf): Likewise.
18060 (fold_builtin_snprintf): Likewise.
18061 (fold_builtin_printf): Likewise.
18062 (do_mpfr_remquo): Use a proper type for the assigned constant.
18063 (do_mpfr_lgamma_r): Likewise.
18064 * dwarf2out.c (resolve_one_addr): Use size_int.
18065 * except.c (init_eh): Likewise.
18066 (assign_filter_values): Use integer_type_node for filter values.
18067 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
18068 indices.
18069 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
18070 for EH region numbers.
18071 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
18072 for the shift amount.
18073
18074 2011-04-29 Richard Guenther <rguenther@suse.de>
18075
18076 * expr.h (expand_shift): Rename to ...
18077 (expand_variable_shift): ... this.
18078 (expand_shift): Take a constant shift amount.
18079 * expmed.c (expand_shift): Rename to ...
18080 (expand_variable_shift): ... this.
18081 (expand_shift): New wrapper around expand_variable_shift.
18082 * expr.c (convert_move, emit_group_load_1, emit_group_store,
18083 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
18084 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
18085 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
18086 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
18087 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
18088 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
18089 emit_store_flag_1, emit_store_flag): Likewise.
18090 * builtins.c (expand_builtin_signbit): Likewise.
18091 * calls.c (load_register_parameters): Likewise.
18092 * function.c (assign_parm_setup_block): Likewise.
18093 * lower-subreg.c (resolve_shift_zext): Likewise.
18094 * optabs.c (widen_bswap, expand_abs_nojump,
18095 expand_one_cmpl_abs_nojump, expand_float): Likewise.
18096 * spu/spu.c (spu_expand_extv): Likewise.
18097 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
18098
18099 2011-04-29 Richard Guenther <rguenther@suse.de>
18100
18101 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
18102 for the remapped region number.
18103 * predict.c (build_predict_expr): Use integer_type_node for the
18104 predict kind.
18105 * fold-const.c (fold_binary_loc): Use integer_type_node for
18106 the shift amount. Use a proper type for the PLUS_EXPR operand.
18107
18108 2011-04-29 Michael Matz <matz@suse.de>
18109
18110 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
18111 other trees that just builtins.
18112 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
18113
18114 2011-04-29 Richard Guenther <rguenther@suse.de>
18115
18116 * tree-nested.c (get_trampoline_type): Use size_int.
18117 (get_nl_goto_field): Likewise.
18118 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
18119 for all indexes.
18120 (lower_eh_constructs_2): Likewise.
18121 (lower_resx): Likewise.
18122 (lower_eh_dispatch): Likewise.
18123 * tree-mudflap.c (mf_build_string): Use size_int.
18124 (mudflap_register_call): Use integer_type_node for the flag.
18125 (mudflap_enqueue_constant): Use size_int.
18126 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
18127 instead of rebuilding it.
18128
18129 2011-04-29 Richard Guenther <rguenther@suse.de>
18130
18131 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
18132 Handle OBJ_TYPE_REF.
18133 (find_func_aliases_for_call): Use it more consistently.
18134
18135 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
18136
18137 * haifa-sched.c (last_nondebug_scheduled_insn): New.
18138 (rank_for_schedule): Use it.
18139 (schedule_block): Set it.
18140
18141 2011-04-28 David Li <davidxl@google.com>
18142
18143 * tree.c (crc32_string): Use crc32_byte.
18144 (crc32_byte): New function.
18145 * tree.h (crc32_byte): New function.
18146 * gcov.c (read_graph_file): Handle new cfg_cksum.
18147 (read_count_file): Ditto.
18148 * profile.c (instrument_values): Ditto.
18149 (get_exec_counts): Ditto.
18150 (read_profile_edge_counts): Ditto.
18151 (compute_branch_probabilities): Ditto.
18152 (compute_value_histograms): Ditto.
18153 (branch_prob): Ditto.
18154 (end_branch_prob): Ditto.
18155 * coverage.c (read_counts_file): Ditto.
18156 (get_coverage_counts): Ditto.
18157 (tree_coverage_counter_addr): Ditto.
18158 (coverage_checksum_string): Ditto.
18159 (coverage_begin_output): Ditto.
18160 (coverage_end_function): Ditto.
18161 (build_fn_info_type): Ditto.
18162 (build_fn_info_value): Ditto.
18163 * libgcov.c (gcov_exit): Ditto.
18164 * gcov-dump.c (tag_function): Ditto.
18165 (compute_checksum): Remove.
18166
18167 2011-04-29 Alan Modra <amodra@gmail.com>
18168
18169 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
18170 unspec plus offset. Tidy macho code.
18171
18172 2011-04-29 Martin Jambor <mjambor@suse.cz>
18173
18174 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
18175 node instead of a decl. Update all callers.
18176 * cgraph.h: Update declaration.
18177
18178 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
18179
18180 PR tree-optimization/48765
18181 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
18182 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
18183 to indicate if loop aware SLP is being used. Scan the statements
18184 and update the vectorization factor according to the type of
18185 vectorization before statement analysis.
18186 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
18187 pass it to vect_analyze_loop_operations.
18188 (vectorizable_reduction): Set number of copies to 1 in case of pure
18189 SLP statement.
18190 * tree-vect-stmts.c (vectorizable_conversion,
18191 vectorizable_assignment, vectorizable_shift,
18192 vectorizable_operation, vectorizable_type_demotion,
18193 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
18194 Likewise.
18195 (vectorizable_condition): Move the check that it is not SLP
18196 vectorization before the number of copies check.
18197 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
18198 to vectorize the loop using SLP.
18199
18200 2011-04-28 Jakub Jelinek <jakub@redhat.com>
18201
18202 PR middle-end/48597
18203 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
18204 inline asm.
18205
18206 2011-04-28 Joseph Myers <joseph@codesourcery.com>
18207
18208 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
18209 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
18210 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18211 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18212 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
18213 linux*.h headers.
18214 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
18215 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18216 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18217 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18218 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18219 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
18220 REG_NAME.
18221 * config/i386/linux.h (REG_NAME): Don't define.
18222 * config/i386/linux64.h (REG_NAME): Don't define.
18223 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
18224 Undefine before defining.
18225
18226 2011-04-28 Jan Hubicka <jh@suse.cz>
18227
18228 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
18229 nonconstant_names array.
18230 (estimate_function_body_sizes): Build nonconstant_names array; handle
18231 BUILT_IN_CONSTANT_P.
18232
18233 2011-04-28 Richard Guenther <rguenther@suse.de>
18234
18235 PR bootstrap/48804
18236 Revert
18237 2011-04-28 Richard Guenther <rguenther@suse.de>
18238
18239 * tree-ssa-structalias.c (solve_constraints): Build succ graph
18240 as late as possible.
18241
18242 2011-04-28 Richard Guenther <rguenther@suse.de>
18243
18244 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
18245 (debug_constraint): Do it here.
18246 (dump_constraints): And here.
18247 (rewrite_constraints): And here.
18248 (dump_constraint_edge): Remove.
18249 (dump_constraint_graph): Rewrite to produce DOT output.
18250 (solve_constraints): Build succ graph as late as possible.
18251 Dump constraint graphs before and after solving.
18252
18253 2011-04-28 Richard Guenther <rguenther@suse.de>
18254
18255 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18256 New function split out from ...
18257 (find_func_aliases): ... here. Call it.
18258 (find_func_aliases_for_call): Likewise.
18259
18260 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
18261
18262 * internal-fn.h (internal_fn_name_array): Declare.
18263 (internal_fn_flags_array): Likewise.
18264
18265 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
18266
18267 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
18268 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
18269 Move from sse.md.
18270 (ssemodefsuffix): Remove.
18271 (ssevecmodesuffix): New mode attribute.
18272 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
18273 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
18274 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
18275 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
18276 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
18277 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
18278 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
18279 ssemodesuffix mode attribute.
18280 (float splitters): Use ssevecmodesuffix mode attribute.
18281 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
18282 (sseinsmode): Rename from avxvecmode.
18283 (avxsizesuffix): Rename from avxmodesuffix.
18284 (sseintvecmode): Rename from avxpermvecmode.
18285 (ssedoublevecmode): Rename from ssedoublesizemode.
18286 (ssehalfvecmode): Rename from avxhalfvecmode.
18287 (ssescalarmode): Rename from avxscalarmode.
18288 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
18289 templates for ssemodesuffix mode attribute.
18290 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
18291 mode attribute.
18292
18293 Adjust RTX patterns globally for renamed mode attributes.
18294
18295 2011-04-27 Jan Hubcika <jh@suse.cz>
18296
18297 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
18298 * ipa-inline-analysis.c: Include alloc-pool.h.
18299 (edge_predicate_pool): New.
18300 (trye_predicate_p): New function
18301 (false_predicate_p): New function.
18302 (add_clause): Sanity check that false clauses are "optimized";
18303 never add clauses to predicate that is already known to be false.
18304 (and_predicate): Use flase_predicate_p.
18305 (evaulate_predicate): Rename to ...
18306 (evaluate_predicate): ... this one; update all callers; assert
18307 that false is not listed among possible truths.
18308 (dump_predicate): Use true_predicate_p.
18309 (account_size_time): Use false_predicate_p.
18310 (evaulate_conditions_for_edge): Rename to ...
18311 (evaluate_conditions_for_edge) ... this one.
18312 (edge_set_predicate): New function.
18313 (inline_edge_duplication_hook): Duplicate edge predicates.
18314 (inline_edge_removal_hook): Free edge predicates.
18315 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
18316 (dump_inline_summary): Update.
18317 (estimate_function_body_sizes): Set edge predicates.
18318 (estimate_calls_size_and_time): Handle predicates.
18319 (estimate_callee_size_and_time): Update.
18320 (remap_predicate): Add toplev_predicate; update comment.
18321 (remap_edge_predicates): New function.
18322 (inline_merge_summary): Compute toplev predicate; update.
18323 (read_predicate): New function.
18324 (read_inline_edge_summary): Use it.
18325 (inline_read_section): Likewise.
18326 (write_predicate): New function.
18327 (write_inline_edge_summary): Use it.
18328 (inline_write_summary): Likewise.
18329 (inline_free_summary): Free alloc pool and edge summary vec.
18330
18331 2011-04-27 Richard Guenther <rguenther@suse.de>
18332
18333 * tree-ssa-structalias.c (changed_count): Remove.
18334 (changed): Use a bitmap.
18335 (unify_nodes): Adjust.
18336 (do_sd_constraint): Likewise.
18337 (do_ds_constraint): Likewise.
18338 (do_complex_constraint): Likewise.
18339 (solve_graph): Likewise.
18340
18341 2011-04-27 Jan Hubicka <jh@suse.cz>
18342
18343 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
18344
18345 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
18346
18347 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
18348 (avx_vperm2f128_*_operand): Ditto.
18349 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
18350 Use avx_vpermilp_parallel in insn condition.
18351 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
18352 Use avx_vperm2f128_parallel in insn condition.
18353
18354 2011-04-27 Richard Guenther <rguenther@suse.de>
18355
18356 * Makefile.in (tree-ssa-structalias.o): Remove
18357 gt-tree-ssa-structalias.h dependency.
18358 (GTFILES): Remove tree-ssa-structalias.c.
18359 * tree.c (allocate_decl_uid): New function.
18360 (make_node_stat): Use it.
18361 (copy_node_stat): Likewise.
18362 * tree.h (allocate_decl_uid): Declare.
18363 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
18364 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
18365 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
18366 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
18367 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
18368 (struct heapvar_map): Likewise.
18369 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
18370 heapvar_insert): Likewise.
18371 (make_heapvar_for): Rename to ...
18372 (make_heapvar): ... this. Simplify.
18373 (fake_var_decl_obstack): New global var.
18374 (build_fake_var_decl): New function.
18375 (make_constraint_from_heapvar): Adjust.
18376 (handle_lhs_call): Likewise.
18377 (create_function_info_for): Likewise.
18378 (intra_create_variable_infos): Likewise.
18379 (init_alias_vars): Allocate fake_var_decl_obstack.
18380 (init_alias_heapvars, delete_alias_heapvars): Remove.
18381 (compute_points_to_sets): Do not call init_alias_heapvars.
18382 (ipa_pta_execute): Likewise.
18383 (delete_points_to_sets): Free fake_var_decl_obstack.
18384
18385 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18386
18387 * config/spu/divmovti4.c (union qword_UTItype): New data type.
18388 (si_from_UTItype, si_to_UTItype): New functions.
18389 (__udivmodti4): Use them to implement type-punning.
18390 * config/spu/multi3.c (union qword_TItype): New data type.
18391 (si_from_TItype, si_to_TItype): New functions.
18392 (__multi3): Use them to implement type-punning.
18393
18394 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18395
18396 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
18397
18398 2011-04-27 Jan Hubicka <jh@suse.cz>
18399
18400 * ipa-prop.c (function_insertion_hook_holder): New holder.
18401 (ipa_add_new_function): New function.
18402 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
18403 Register/deregister holder.
18404
18405 2011-04-27 Richard Guenther <rguenther@suse.de>
18406
18407 PR tree-optimization/48772
18408 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
18409
18410 2011-04-27 Richard Guenther <rguenther@suse.de>
18411
18412 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
18413 TARGET_MEM_REF handling.
18414
18415 2011-04-27 Nick Clifton <nickc@redhat.com>
18416
18417 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
18418 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
18419 (REG_CLASS_NAMES): Likewise.
18420 (REG_CLASS_CONTENTS): Likewise.
18421 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
18422 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
18423 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
18424 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
18425 (EVEN_REGS): New macro. Alias for QUAD_REGS.
18426 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
18427 duplicate register classes.
18428 (frv_class_likely_spilled_p): Likewise.
18429 (frv_register_move_cost): Likewise.
18430
18431 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
18432 end of the regno_reg_class array.
18433
18434 2011-04-27 Jakub Jelinek <jakub@redhat.com>
18435
18436 PR c/48742
18437 * c-typeck.c (build_binary_op): Don't wrap arguments if
18438 int_operands is true.
18439
18440 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
18441
18442 PR target/48767
18443 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
18444 targetm.calls.must_pass_in_stack for void type.
18445
18446 2011-04-26 Jan Hubicka <jh@suse.cz>
18447
18448 * cgraphbuild.c (build_cgraph_edges): Update call
18449 of cgraph_create_edge and cgraph_create_indirect_edge.
18450 * cgraph.c (cgraph_create_edge_including_clones,
18451 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
18452 cgraph_update_edges_for_call_stmt_node): Do not take nest
18453 argument; do not initialize call_stmt_size/time.
18454 (dump_cgraph_node): Do not dump nest.
18455 (cgraph_clone_edge): Do not take loop_nest argument;
18456 do not propagate it; do not clone call_stmt_size/time.
18457 (cgraph_clone_node): Likewise.
18458 (cgraph_create_virtual_clone): Update.
18459 * cgraph.h (struct cgraph_edge): Remove
18460 call_stmt_size/call_stmt_time/loop_nest.
18461 (cgraph_create_edge, cgraph_create_indirect_edge,
18462 cgraph_create_edge_including_clones, cgraph_clone_node): Update
18463 prototype.
18464 * tree-emutls.c (gen_emutls_addr): Update.
18465 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
18466 loop_nest; handle indirect calls, too.
18467 (clone_inlined_nodes): Do not care about updating inline summaries.
18468 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
18469 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
18470 stream call_stmt_size/call_stmt_time/loop_nest.
18471 * ipa-inline.c (edge_badness): Update.
18472 (ipa_inline): dump summaries after inlining.
18473 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
18474 New.
18475 (inline_edge_summary): New function.
18476 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
18477 (inline_edge_removal_hook): Handle edge summaries.
18478 (inline_edge_duplication_hook): New hook.
18479 (inline_summary_alloc): Alloc hooks.
18480 (initialize_growth_caches): Do not register removal hooks.
18481 (free_growth_caches); Do not free removal hook.
18482 (dump_inline_edge_summary): New function.
18483 (dump_inline_summary): Use it.
18484 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
18485 (inline_update_callee_summaries): New function.
18486 (inline_merge_summary): Use it.
18487 (do_estimate_edge_time, do_estimate_edge_growth): Update.
18488 (read_inline_edge_summary): New function.
18489 (inline_read_section): Use it.
18490 (write_inline_edge_summary): New function.
18491 (inline_write_summary): Use it.
18492 (inline_free_summary): Free edge new holders.
18493 * tree-inline.c (copy_bb): Update.
18494
18495 2011-04-26 Jason Merrill <jason@redhat.com>
18496
18497 * tree-eh.c (lower_try_finally_switch): Create the label along with
18498 the CASE_LABEL_EXPR.
18499
18500 2011-04-26 David S. Miller <davem@davemloft.net>
18501 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18502
18503 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
18504 * configure: Regenerate.
18505
18506 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
18507
18508 PR target/48258
18509 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
18510 reduction.
18511 (VEC_reduc): New code iterator and splitters for vector reduction.
18512 (VEC_reduc_name): Ditto.
18513 (VEC_reduc_rtx): Ditto.
18514 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
18515 (reduc_<VEC_reduc_name>_v4sf): Ditto.
18516
18517 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18518 support for extracting SF on VSX.
18519
18520 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
18521 generating xscvspdp.
18522 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
18523 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
18524 double add, minimum, maximum vector reduction.
18525 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
18526 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
18527 optimize double vector reduction.
18528 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
18529
18530 2011-04-26 Joseph Myers <joseph@codesourcery.com>
18531
18532 * config/fr30/fr30.h (inhibit_libc): Don't define.
18533 * config/m32r/m32r-protos.h: Correct comment.
18534 * config/v850/v850.h (GHS_default_section_names,
18535 GHS_current_section_names): Use tree, not union tree_node *.
18536
18537 2011-04-26 Xinliang David Li <davidxl@google.com>
18538
18539 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
18540 * c-family/c-opts.c (c_common_handle_option): Set
18541 warn_maybe_uninitialized.
18542 * opts.c (common_handle_option): Ditto.
18543 * common.opt: New option.
18544 * tree-ssa.c (warn_uninit): Add one more parameter.
18545 (warn_uninitialized_var): Pass warning code.
18546 * tree-flow.h: Interface change.
18547
18548 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18549
18550 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
18551 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
18552 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
18553
18554 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18555
18556 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
18557 * config/mips/mips.opt (mmips-tfile): Remove.
18558
18559 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
18560 mips-tdump reference to ...
18561 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
18562 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
18563 reference by Tru64 UNIX.
18564
18565 2011-04-26 Jakub Jelinek <jakub@redhat.com>
18566
18567 PR debug/48768
18568 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
18569 is error_mark_node, set value to NULL.
18570
18571 PR tree-optimization/48734
18572 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
18573 if return value from maybe_fold_*_comparsions isn't something
18574 the code is prepared to handle.
18575
18576 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
18577
18578 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
18579 mode check.
18580 (ext_QIreg_nomode_operands): Remove.
18581 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
18582 (*andsi_1): Ditto.
18583 (*andhi_1): Ditto.
18584
18585 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
18586
18587 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
18588
18589 2011-04-26 Richard Guenther <rguenther@suse.de>
18590
18591 * c-typeck.c (build_unary_op): Do not expand array-refs via
18592 pointer arithmetic. Only adjust qualifiers for function types.
18593
18594 2011-04-26 Richard Guenther <rguenther@suse.de>
18595
18596 PR middle-end/48694
18597 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
18598 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
18599 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
18600 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
18601
18602 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
18603
18604 * doc/extend.texi: Document __underlying_type.
18605
18606 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
18607
18608 * config/rs6000/titan.md (automata_option "progress"): Remove.
18609
18610 2011-04-25 Jeff Law <law@redhat.com>
18611
18612 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
18613
18614 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
18615
18616 * system.h (ENUM_BITFIELD): Remove.
18617
18618 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
18619 Eric Botcazou <ebotcazou@adacore.com>
18620
18621 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
18622 for STORE_FLAG_VALUE==-1 case.
18623
18624 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
18625
18626 PR target/43804
18627 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
18628 LEGITIMATE_PIC_OPERAND_P.
18629
18630 2011-04-24 Jan Hubicka <jh@suse.cz>
18631
18632 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
18633 WPA hack.
18634 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
18635 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
18636 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
18637 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
18638 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
18639 Sanity check predicate length.
18640 (remap_predicate): Likewise; sanity check jump functions.
18641 (inline_read_section, inline_write_summary): Sanity check
18642 predicate length.
18643
18644 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
18645
18646 PR other/48748
18647 * doc/extend.texi (Type Traits): Document __is_standard_layout,
18648 __is_literal_type, and __is_trivial; update throughout about
18649 possibly cv-qualified void types.
18650
18651 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
18652
18653 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
18654 testsuite and make it version agnostic.
18655
18656 2011-04-22 Jan Hubicka <jh@suse.cz>
18657
18658 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
18659
18660 2011-04-23 Jakub Jelinek <jakub@redhat.com>
18661
18662 PR c/48685
18663 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
18664 to VOID_TYPE even around MODIFY_EXPR.
18665
18666 2011-04-22 Mike Stump <mikestump@comcast.net>
18667
18668 * gensupport.c (read_md_rtx): Fix typo in comment.
18669 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
18670 comment.
18671
18672 2011-04-22 Jan Hubicka <jh@suse.cz>
18673
18674 * gengtype.c (open_base_files): Add ipa-inline.h include.
18675 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
18676 ipa-prop.c; update all uses.
18677 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
18678 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
18679 merge summary of inlined function into former caller.
18680 * ipa-inline.c (max_benefit): Remove.
18681 (edge_badness): Compensate for removal of benefits.
18682 (update_caller_keys): Use
18683 reset_node_growth_cache/reset_edge_growth_cache.
18684 (update_callee_keys): Likewise.
18685 (update_all_callee_keys): Likewise.
18686 (inline_small_functions): Do not collect max_benefit; do not reset
18687 estimated_growth; call free_growth_caches and initialize_growth_caches.
18688 * ipa-inline.h (struct condition, type clause_t, struct predicate,
18689 struct size_time_entry): New structures.
18690 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
18691 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
18692 and estimated_growth.
18693 (edge_growth_cache_entry): New structure.
18694 (node_growth_cache, edge_growth_cache): New global vars.
18695 (estimate_growth): Turn into inline.
18696 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
18697 initialize_growth_caches, free_growth_caches): Declare.
18698 (estimate_edge_growth): Rewrite.
18699 (estimate_edge_time): Implement as inline cache lookup.
18700 (reset_node_growth_cache, reset_edge_growth_cache): New inline
18701 functions.
18702 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
18703 (NUM_CONDITIONS): New constant.
18704 (predicate_conditions): New enum.
18705 (IS_NOT_CONSTANT): New constant.
18706 (edge_removal_hook_holder): New var.
18707 (node_growth_cache, edge_growth_cache): New global vars.
18708 (true_predicate, single_cond_predicate, false_predicate,
18709 not_inlined_predicate, add_condition, add_clause, and_predicates,
18710 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
18711 dump_clause, dump_predicate, account_size_time,
18712 evaulate_conditions_for_edge): New functions.
18713 (inline_summary_alloc): Move to heap.
18714 (inline_node_removal_hook): Clear condition and entry vectors.
18715 (inline_edge_removal_hook): New function.
18716 (initialize_growth_caches, free_growth_caches): New function.
18717 (dump_inline_summary): Update.
18718 (edge_execution_predicate): New function.
18719 (will_be_nonconstant_predicate): New function.
18720 (estimate_function_body_sizes): Compute BB and constantness predicates.
18721 (compute_inline_parameters): Do not clear estimated_growth.
18722 (estimate_edge_size_and_time): New function.
18723 (estimate_calls_size_and_time): New function.
18724 (estimate_callee_size_and_time): New function.
18725 (remap_predicate): New function.
18726 (inline_merge_summary): New function.
18727 (do_estimate_edge_time): New function based on...
18728 (estimate_edge_time): ... this one.
18729 (do_estimate_edge_growth): New function.
18730 (do_estimate_growth): New function based on....
18731 (estimate_growth): ... this one.
18732 (inline_analyze_function): Analyze after deciding on jump functions.
18733 (inline_read_section): New function.
18734 (inline_read_summary): Use it.
18735 (inline_write_summary): Write all the new data.
18736 * ipa-prop.c (ipa_get_param_decl_index): Export.
18737 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
18738 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
18739 Declare.
18740 (ipa_get_lattice): Move here from ipa-cp.c
18741 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
18742 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
18743 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
18744 cgraph_edge_inlinable_p): Remove.
18745 * cgraphunit.c: Include ipainline.h
18746 (cgraph_process_new_functions): Update call of
18747 compute_inline_parameters.
18748
18749 2011-04-22 Richard Guenther <rguenther@suse.de>
18750
18751 * tree.c (build_int_cst): Properly create canonicalized integer
18752 constants.
18753 (build_int_cst_type): Remove scary comments.
18754
18755 2011-04-22 Xinliang David Li <davidxl@google.com>
18756
18757 * toplev.c (process_options): Enable -Werror=coverage-mismatch
18758 by default when -Wno-error is not specified.
18759 * opts-global.c (decode_options): Remove call to
18760 control_warning_options.
18761
18762 2011-04-22 Jakub Jelinek <jakub@redhat.com>
18763
18764 PR tree-optimization/48717
18765 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
18766 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
18767
18768 2011-04-22 Joseph Myers <joseph@codesourcery.com>
18769
18770 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
18771 definition where used.
18772
18773 2011-04-22 Jakub Jelinek <jakub@redhat.com>
18774
18775 PR c/48716
18776 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
18777 TREE_STATIC variables declared inside of some OpenMP construct.
18778
18779 2011-04-22 Martin Jambor <mjambor@suse.cz>
18780
18781 PR middle-end/48585
18782 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
18783
18784 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
18785
18786 PR c/36750
18787 * c-typeck.c (pop_init_level): Do not warn about initializing
18788 with ` = {0}'.
18789
18790 2011-04-22 Alan Modra <amodra@gmail.com>
18791
18792 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
18793 when returning call_cookie.
18794 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
18795 pointers, to functions with no more vector args than the current
18796 function, and some non-local calls for ABI_V4.
18797 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
18798 sibcall_nonlocal_aix64): Combine to ..
18799 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
18800 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
18801 (sibcall_value_nonlocal_aix<mode>): ..likewise.
18802 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
18803 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
18804 operand.
18805 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
18806 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
18807 sibcall_value_symbolic_64): Delete.
18808
18809 2011-04-21 Xinliang David Li <davidxl@google.com>
18810
18811 * cgraph.h: Remove pid.
18812 * cgraph.c: Remove pid.
18813 * value-prof.c (init_node_map): New function.
18814 (del_node_map): New function.
18815 (find_func_by_funcdef_no): New function.
18816 (gimple_ic_transform): Call new function.
18817 * cgraphunit.c (cgraph_finalize_function): Remove pid.
18818 * function.c (get_last_funcdef_no): New function.
18819 * function.h (get_last_funcdef_no): New function.
18820 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
18821 to libgcov function.
18822 (tree-profiling): Call node map init and delete function.
18823
18824 2011-04-21 Ian Lance Taylor <iant@google.com>
18825
18826 * godump.c (go_format_type): Use exported Go name for anonymous
18827 field name.
18828
18829 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18830
18831 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
18832 Call builtin_function_type_list instead of builtin_function_type.
18833 (UNARY, BINARY, TRINARY, QUAD): Likewise.
18834
18835 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18836
18837 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
18838 build_function_type_list instead of build_function_type.
18839 Delete variable `endlink'.
18840
18841 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18842
18843 * config/s390/s390.c (s390_init_builtins): Call
18844 build_function_type_list instead of build_function_type.
18845
18846 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18847
18848 * config/ia64/ia64.c (ia64_init_builtins): Call
18849 build_function_type_list instead of builtin_function_type.
18850
18851 2011-04-21 Easwaran Raman <eraman@google.com>
18852
18853 * cfgexpand.c (stack_var): Remove OFFSET...
18854 (add_stack_var): ...and its reference here...
18855 (expand_stack_vars): ...and here.
18856 (stack_var_cmp): Sort by descending order of size.
18857 (partition_stack_vars): Change heuristic.
18858 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
18859 (dump_stack_var_partition): Add newline after each partition.
18860
18861 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
18862 Jeff Law <law@redhat.com>
18863
18864 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
18865 * gengtype.c (matching_file_name_substitute): Likewise.
18866
18867 2011-04-21 Richard Guenther <rguenther@suse.de>
18868
18869 PR lto/48703
18870 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
18871
18872 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
18873
18874 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
18875
18876 2011-04-21 Richard Guenther <rguenther@suse.de>
18877
18878 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
18879 file name.
18880
18881 2011-04-21 Richard Guenther <rguenther@suse.de>
18882
18883 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
18884 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
18885 Use DECL_P, not SSA_VAR_P.
18886 (ptr_derefs_may_alias_p): Likewise.
18887 (ptr_deref_may_alias_ref_p_1): Likewise.
18888 (decl_refs_may_alias_p): Likewise.
18889 (refs_may_alias_p_1): Likewise.
18890 (ref_maybe_used_by_call_p_1): Likewise.
18891 (call_may_clobber_ref_p_1): Likewise.
18892 (indirect_ref_may_alias_decl_p): Assume indirect refrences
18893 are either MEM_REF or TARGET_MEM_REF.
18894 (indirect_refs_may_alias_p): Likewise.
18895 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
18896 for MEM_EXPR of indirect calls.
18897
18898 2011-04-21 Tristan Gingold <gingold@adacore.com>
18899
18900 * vmsdbgout.c (write_srccorr): Compute file length from the string.
18901 (dst_file_info_struct): Remove flen field.
18902 (lookup_filename): Remove code that set flen field.
18903
18904 2011-04-21 Tristan Gingold <gingold@adacore.com>
18905
18906 * config/ia64/ia64.c (ia64_start_function): Add a guard.
18907
18908 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
18909
18910 PR target/48708
18911 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
18912 vec_extract and vec_concat for non-SSE4_1 targets.
18913
18914 2011-04-21 Richard Guenther <rguenther@suse.de>
18915
18916 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
18917 return statements.
18918
18919 2011-04-21 Joseph Myers <joseph@codesourcery.com>
18920
18921 * config/i386/cygming.h (union tree_node, TREE): Don't define or
18922 undefine.
18923 (FILE): Don't undefine.
18924
18925 2011-04-21 Joseph Myers <joseph@codesourcery.com>
18926
18927 * config/alpha/alpha.c (struct machine_function): Use rtx, not
18928 struct rtx_def *.
18929 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
18930 struct rtx_def *.
18931 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
18932 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
18933 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
18934 rtx_def *.
18935 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
18936 definitions where used.
18937 * config/microblaze/microblaze.h (struct microblaze_args): Use
18938 rtx, not struct rtx_def *.
18939 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
18940 rtx_def *.
18941 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
18942 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
18943 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
18944 not struct rtx_def *.
18945 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
18946 struct rtx_def *.
18947 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
18948 rtx_def *.
18949 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
18950
18951 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18952
18953 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
18954 operand_equal_p to compare DR_BASE_ADDRESSes.
18955 (vect_check_interleaving): Likewise.
18956
18957 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18958
18959 PR target/46329
18960 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
18961 for all Neon struct constants.
18962
18963 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18964
18965 * target.def (legitimate_constant_p): New hook.
18966 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
18967 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
18968 * doc/tm.texi: Regenerate.
18969 * hooks.h (hook_bool_mode_rtx_true): Declare.
18970 * hooks.c (hook_bool_mode_rtx_true): Define.
18971 * system.h (LEGITIMATE_CONSTANT_P): Poison.
18972 * calls.c (precompute_register_parameters): Replace uses of
18973 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
18974 (emit_library_call_value_1): Likewise.
18975 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
18976 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
18977 * ira-costs.c (scan_one_insn): Likewise.
18978 * recog.c (general_operand, immediate_operand): Likewise.
18979 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
18980 * reload1.c (init_eliminable_invariants): Likewise.
18981
18982 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
18983 mode argument.
18984 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
18985 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
18986 argument.
18987 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18988 * config/alpha/predicates.md (input_operand): Update call to
18989 alpha_legitimate_constant_p.
18990
18991 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
18992 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
18993 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
18994 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18995 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
18996 (arm_legitimate_constant_p): New functions.
18997 (arm_cannot_force_const_mem): Make static.
18998
18999 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
19000
19001 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
19002 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
19003 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
19004 instead of bfin_legitimate_constant_p.
19005 (bfin_legitimate_constant_p): Make static. Add a mode argument.
19006 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19007
19008 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
19009
19010 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
19011
19012 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
19013 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
19014 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19015 (frv_legitimate_constant_p): Make static. Add a mode argument.
19016
19017 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
19018 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
19019 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
19020
19021 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
19022 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
19023 * config/i386/i386.c (legitimate_constant_p): Rename to...
19024 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
19025 argument.
19026 (ix86_cannot_force_const_mem): Update accordingly.
19027 (ix86_legitimate_address_p): Likewise.
19028 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19029 * config/i386/i386.md: Update commentary.
19030
19031 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
19032 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
19033 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19034 (ia64_legitimate_constant_p): Make static. Add a mode argument.
19035
19036 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
19037
19038 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
19039 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
19040 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19041 (lm32_legitimate_constant_p): Make static. Add a mode argument.
19042
19043 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
19044 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
19045 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
19046
19047 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
19048 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19049 (m32r_legitimate_constant_p): New function.
19050
19051 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
19052 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
19053 LEGITIMATE_CONSTANT_P.
19054 (LEGITIMATE_CONSTANT_P): Delete.
19055 * config/m68k/m68k.c (m68k_expand_prologue): Call
19056 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
19057 (m68k_legitimate_constant_p): New function.
19058 * config/m68k/m68k.md: Update comments.
19059
19060 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
19061 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19062 (mcore_legitimate_constant_p): New function.
19063
19064 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
19065 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
19066 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
19067 Add a mode argument.
19068 (mep_legitimate_address): Update accordingly.
19069 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19070
19071 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
19072 Delete.
19073 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
19074 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
19075 static. Check OP's mode for VOIDmode.
19076 (microblaze_legitimate_constant_p): New function.
19077 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19078
19079 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
19080 * config/mips/mips.c (mips_legitimate_constant_p): New function.
19081 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
19082 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19083 * config/mips/predicates.md: Update comments.
19084
19085 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
19086 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
19087 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19088 (mmix_legitimate_constant_p): Make static, return a bool, and take
19089 a mode argument.
19090 (mmix_print_operand_address): Update accordingly.
19091
19092 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
19093 Delete.
19094 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
19095 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
19096 static. Add a mode argument.
19097 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19098
19099 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
19100
19101 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
19102 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19103 (pa_legitimate_constant_p): New function.
19104
19105 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
19106
19107 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
19108 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19109 (pdp11_legitimate_constant_p): New function.
19110
19111 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
19112 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19113 (rs6000_legitimate_constant_p): New function.
19114
19115 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
19116 (rx_legitimate_constant_p): ...this.
19117 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
19118 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
19119 (rx_legitimate_constant_p): ...this.
19120 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19121 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
19122
19123 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
19124 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
19125 * config/s390/s390.c (legitimate_constant_p): Rename to...
19126 (s390_legitimate_constant_p): ...this. Make static, return a bool,
19127 and add a mode argument.
19128 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19129
19130 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
19131
19132 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
19133 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19134 (sh_legitimate_constant_p): New function.
19135
19136 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
19137 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
19138 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19139 (legitimate_constant_p): Rename to...
19140 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
19141 argument.
19142 (constant_address_p): Update accordingly.
19143
19144 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
19145 argument and return a bool.
19146 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
19147 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19148 (spu_legitimate_constant_p): Add a mode argument and return a bool.
19149 (spu_rtx_costs): Update accordingly.
19150 * config/spu/predicates.md (vec_imm_operand): Likewise.
19151
19152 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
19153
19154 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
19155 * config/v850/v850.c (v850_legitimate_constant_p): New function.
19156 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19157
19158 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
19159 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
19160 * config/vax/vax.c (legitimate_constant_p): Likewise.
19161
19162 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
19163 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19164 (xtensa_legitimate_constant_p): New function.
19165
19166 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
19167
19168 * target.def (cannot_force_const_mem): Add a mode argument.
19169 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
19170 * doc/tm.texi: Regenerate.
19171 * hooks.h (hook_bool_mode_rtx_false): Declare.
19172 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
19173 (hook_bool_mode_const_rtx_true): Likewise.
19174 (hook_bool_mode_rtx_false): New function.
19175 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
19176 to be non-VOID. Update call to cannot_force_const_mem.
19177 (find_reloads): Update accordingly.
19178 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
19179 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
19180 argument.
19181 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
19182 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
19183 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
19184 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
19185 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
19186 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
19187 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
19188 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
19189 (m68k_cannot_force_const_mem): ...this new function.
19190 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
19191 argument.
19192 (mips_const_insns, mips_legitimize_const_move): Update calls.
19193 (mips_secondary_reload_class): Likewise.
19194 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
19195 (pa_cannot_force_const_mem): ...this new function.
19196 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
19197 (rs6000_cannot_force_const_mem): ...this new function.
19198 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
19199 argument.
19200 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
19201 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
19202 to...
19203 (xtensa_cannot_force_const_mem): ...this new function.
19204
19205 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
19206
19207 * config/mips/mips.c (mips16_build_function_stub): Call
19208 build_function_type_list instead of build_function_type.
19209 (mips16_build_call_stub): Likewise.
19210
19211 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
19212
19213 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
19214 instead of build_function_type.
19215
19216 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
19217
19218 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
19219 instead of build_function_type.
19220
19221 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
19222
19223 PR target/48678
19224 * config/i386/i386.md (insv): Change operand 0 constraint to
19225 "register_operand". Change operand 1 and 2 constraint to
19226 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
19227 * config/i386/sse.md (sse4_1_pinsrb): Export.
19228 (sse2_pinsrw): Ditto.
19229 (sse4_1_pinsrd): Ditto.
19230 (sse4_1_pinsrq): Ditto.
19231 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
19232 * config/i386/i386.c (ix86_expand_pinsr): New.
19233
19234 2011-04-20 Easwaran Raman <eraman@google.com>
19235
19236 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
19237 containing union type only with -fstrict-aliasing.
19238
19239 2011-04-20 Jim Meyering <meyering@redhat.com>
19240
19241 Remove useless if-before-free tests.
19242 * calls.c (expand_call, save_area): Likewise.
19243 * cfgcleanup.c (try_forward_edges): Likewise.
19244 * collect2.c (collect_execute): Likewise.
19245 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
19246 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
19247 * coverage.c (coverage_checksum_string): Likewise.
19248 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
19249 * cselib.c (cselib_init): Likewise.
19250 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
19251 (df_set_clean_cfg): Likewise.
19252 * function.c (free_after_compilation): Likewise.
19253 * gcc.c (do_spec_1, main): Likewise.
19254 * gcov.c (create_file_names): Likewise.
19255 * gensupport.c (identify_predicable_attribute): Likewise.
19256 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
19257 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
19258 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
19259 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
19260 * ipa-pure-const.c (local_pure_const): Likewise.
19261 * ipa-reference.c (propagate): Likewise.
19262 * ira-costs.c (free_ira_costs): Likewise.
19263 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
19264 * matrix-reorg.c (mat_free): Likewise.
19265 * prefix.c (get_key_value): Likewise.
19266 * profile.c (compute_value_histograms): Likewise.
19267 * reload1.c (free_reg_equiv): Likewise.
19268 * sched-deps.c (free_deps): Likewise.
19269 * sel-sched-ir.c (fence_clear): Likewise.
19270 * sese.c (set_rename, if_region_set_false_region): Likewise.
19271 * tree-data-ref.c (free_rdg): Likewise.
19272 * tree-eh.c (lower_try_finally): Likewise.
19273 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
19274 * tree-ssa-live.c (delete_var_map): Likewise.
19275 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
19276 * tree-ssa-pre.c (phi_trans_add): Likewise.
19277
19278 2011-04-20 Jakub Jelinek <jakub@redhat.com>
19279
19280 PR tree-optimization/48611
19281 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
19282 beyond ERT_MUST_NOT_THROW region.
19283
19284 2011-04-20 Catherine Moore <clm@codesourcery.com>
19285
19286 * config/mips/mips.opt (mfix-24k): New.
19287 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
19288 * config/mips/mips.md (length): Increase by 4 for stores if
19289 fixing 24K errata.
19290 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
19291 all noreorder if fixing 24K errata.
19292 * doc/invoke.texi: Document mfix-24k.
19293
19294 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
19295
19296 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
19297 quad-word modes, reduce to 9-bit index range when above 1016 limit.
19298
19299 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
19300
19301 * config/arm/arm.c (arm_gen_constant): Move movw support ....
19302 (const_ok_for_op): ... to here.
19303
19304 2011-04-20 Kai Tietz <ktietz@redhat.com>
19305
19306 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
19307 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
19308
19309 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
19310
19311 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
19312
19313 2011-04-20 Richard Guenther <rguenther@suse.de>
19314
19315 PR tree-optimization/47892
19316 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
19317 are if-convertible.
19318
19319 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
19320
19321 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
19322
19323 2011-04-20 Tristan Gingold <gingold@adacore.com>
19324
19325 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
19326
19327 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
19328
19329 PR target/18145
19330
19331 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
19332 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
19333 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
19334 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
19335 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
19336
19337 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
19338 New prototype.
19339
19340 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
19341 (avr_asm_named_section, avr_asm_output_aligned_common,
19342 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
19343 New functions to update...
19344 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
19345 (avr_asm_init_sections): Overwrite section callbacks for
19346 data_section, bss_section.
19347 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
19348 from here to...
19349 (avr_file_end): ...here.
19350
19351 2011-04-20 Richard Guenther <rguenther@suse.de>
19352
19353 PR middle-end/48695
19354 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
19355 objects and types here. Adjust for their offset before comparing.
19356
19357 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
19358
19359 * tree-vect-stmts.c (vectorizable_store): Only chain one related
19360 statement per copy.
19361
19362 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
19363
19364 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
19365 (GIMPLE_H): Include $(INTERNAL_FN_H).
19366 (OBJS-common): Add internal-fn.o.
19367 (internal-fn.o): New rule.
19368 * internal-fn.def: New file.
19369 * internal-fn.h: Likewise.
19370 * internal-fn.c: Likewise.
19371 * gimple.h: Include internal-fn.h.
19372 (GF_CALL_INTERNAL): New gf_mask.
19373 (gimple_statement_call): Put fntype into a union with a new
19374 internal_fn field.
19375 (gimple_build_call_internal): Declare.
19376 (gimple_build_call_internal_vec): Likewise.
19377 (gimple_call_same_target_p): Likewise.
19378 (gimple_call_internal_p): New function.
19379 (gimple_call_internal_fn): Likewise.
19380 (gimple_call_fntype): Return null for internal calls.
19381 (gimple_call_set_fntype): Assert that the function is not internal.
19382 (gimple_call_set_fn): Likewise.
19383 (gimple_call_set_fndecl): Likewise.
19384 (gimple_call_set_internal_fn): New function.
19385 (gimple_call_addr_fndecl): Handle null functions.
19386 (gimple_call_return_type): Likewise null types.
19387 * gimple.c (gimple_build_call_internal_1): New function.
19388 (gimple_build_call_internal): Likewise.
19389 (gimple_build_call_internal_vec): Likewise.
19390 (gimple_call_same_target_p): Likewise.
19391 (gimple_call_flags): Handle calls to internal functions.
19392 (gimple_call_fnspec): New function.
19393 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
19394 (gimple_has_side_effects): Handle null functions.
19395 (gimple_rhs_has_side_effects): Likewise.
19396 (gimple_call_copy_skip_args): Handle calls to internal functions.
19397 * cfgexpand.c (expand_call_stmt): Likewise.
19398 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
19399 * gimple-fold.c (gimple_fold_call): Handle null functions.
19400 (gimple_fold_stmt_to_constant_1): Don't fold
19401 calls to internal functions.
19402 * gimple-low.c (gimple_check_call_args): Handle calls to internal
19403 functions.
19404 * gimple-pretty-print.c (dump_gimple_call): Likewise.
19405 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
19406 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
19407 (do_warn_unused_result): Likewise.
19408 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
19409 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
19410 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
19411 the target of a call.
19412 (initialize_hash_element): Update accordingly.
19413 (hashable_expr_equal_p): Use gimple_call_same_target_p.
19414 (iterative_hash_hashable_expr): Handle calls to internal functions.
19415 (print_expr_hash_elt): Likewise.
19416 * tree-ssa-pre.c (can_value_number_call): Likewise.
19417 (eliminate): Handle null functions.
19418 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
19419 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
19420 (find_func_aliases): Likewise.
19421 * value-prof.c (gimple_ic_transform): Likewise.
19422 (gimple_indirect_call_to_profile): Likewise.
19423 * lto-streamer-in.c (input_gimple_stmt): Likewise.
19424 * lto-streamer-out.c (output_gimple_stmt): Likewise.
19425
19426 2011-04-19 Jan Hubicka <jh@suse.cz>
19427
19428 * ipa-inline-transform.c (save_inline_function_body): Add comments.
19429 * ipa-inline.c (inline_small_functions): Compute summaries first,
19430 populate heap later.
19431
19432 2011-04-19 Jan Hubicka <jh@suse.cz>
19433
19434 * cgraph.h (save_inline_function_body): Remove.
19435 * ipa-inline-transform.c: New file, broke out of...
19436 * ipa-inline.c: ... this one; Update toplevel comment.
19437 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
19438 make global.
19439 (update_noncloned_frequencies): Move to ipa-inline-transform.c
19440 (cgraph_mark_inline_edge): Rename to inline_call; move to
19441 ipa-inline-transform.c.
19442 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
19443 move to ipa-inline-transform.c
19444 (recursive_inlining, inline_small_functions, flatten_function,
19445 ipa_inline, inline_always_inline_functions,
19446 early_inline_small_functions): Update.
19447 (inline_transform): Move to ipa-inline-transform.c.
19448 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
19449 Declare.
19450 * Makefile.in (ipa-inline-transform.o): New file.
19451 * cgraphunit.c (save_inline_function_body): Move to
19452 ipa-inline-transform.c
19453
19454 2011-04-19 DJ Delorie <dj@redhat.com>
19455
19456 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
19457 registers if we already know there aren't any.
19458 (m32c_emit_epilogue): Don't emit a barrier here.
19459 (m32c_emit_eh_epilogue): Likewise.
19460 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
19461 operands at expand time.
19462 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
19463 int" wchar type.
19464 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
19465 duplicates. Provide aliases instead.
19466 * config/m32c/prologue.md (eh_return): Emit a barrier here.
19467 (eh_epilogue): Add a "(return)" here as a hint to other parts of
19468 the compiler.
19469
19470 2011-04-19 Anatoly Sokolov <aesok@post.ru>
19471
19472 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
19473 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
19474 (general_or_i64_p, sparc_register_move_cost): New function.
19475
19476 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19477
19478 * doc/install.texi (Configuration, --enable-threads): Remove mach.
19479 Add lynx, mipssde. Sort table.
19480
19481 2011-04-19 Xinliang David Li <davidxl@google.com>
19482
19483 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
19484 not negative.
19485
19486 2011-04-19 Jakub Jelinek <jakub@redhat.com>
19487
19488 PR target/48678
19489 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
19490 is a SUBREG with non-MODE_INT mode inside of it.
19491
19492 2011-04-19 Martin Jambor <mjambor@suse.cz>
19493
19494 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
19495 also according to actual contants.
19496 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
19497 (gimple_fold_call): Use it.
19498 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
19499
19500 2011-04-19 Martin Jambor <mjambor@suse.cz>
19501
19502 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
19503 non-pointer assignments.
19504
19505 2011-04-19 Martin Jambor <mjambor@suse.cz>
19506
19507 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
19508 account anc_offset and otr_type from the indirect edge info.
19509 * ipa-prop.c (get_ancestor_addr_info): New function.
19510 (compute_complex_ancestor_jump_func): Assignment analysis moved to
19511 get_ancestor_addr_info, call it.
19512 (ipa_note_param_call): Do not initialize information about polymorphic
19513 calls, return the indirect call graph edge. Remove the last
19514 parameter, adjust all callers.
19515 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
19516 parameters. Initialize polymorphic information in the indirect edge.
19517
19518 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
19519
19520 PR lto/48148
19521 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
19522 the types if they have different enumeration identifiers.
19523
19524 2011-04-19 Jan Hubicka <jh@suse.cz>
19525
19526 * cgraph.h (cgraph_optimize_for_size_p): Declare.
19527 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
19528 * predict.c (cgraph_optimize_for_size_p): Break out from ...
19529 (optimize_function_for_size_p) ... here.
19530
19531 2011-04-19 Richard Guenther <rguenther@suse.de>
19532
19533 PR lto/48207
19534 * tree.c (free_lang_data): Do not reset the decl-assembler-name
19535 langhook.
19536
19537 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
19538
19539 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
19540 if DECL_NO_INLINE_WARNING_P is set on the function.
19541
19542 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
19543
19544 PR fortran/47976
19545 * reload1.c (inc_for_reload): Return void. All callers changed.
19546 (emit_input_reload_insns): Don't try to delete previous output
19547 reloads to a register, or record spill_reg_store for autoincs.
19548
19549 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
19550
19551 * gengtype.h: Updated copyright year.
19552 (struct input_file_st): Add inpisplugin field.
19553 (type_fileloc): New function.
19554 * gengtype.c
19555 (write_typed_struct_alloc_def): Add gcc_assert.
19556 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
19557 (write_typed_alloc_defns): Don't output for plugin files.
19558 (input_file_by_name): Clear inpisplugin field.
19559 (main): Set inpisplugin field for plugin files.
19560
19561 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
19562
19563 * gengtype-state.c (string_eq): New.
19564 (read_state): Use string_eq instead of strcmp when creating the
19565 state_ident_tab.
19566
19567 2011-04-19 Wei Guozhi <carrot@google.com>
19568
19569 PR target/47855
19570 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
19571 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
19572 linkage.
19573 * config/arm/constraints.md (Uu): New constraint.
19574 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
19575
19576 2011-04-19 Tristan Gingold <gingold@adacore.com>
19577
19578 * config.gcc (-*-*-*vms): Added.
19579 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
19580 definitions moved.
19581 * config/vms/vms-ld.c: New file.
19582 * config/vms/vms-ar.c: New file.
19583 * config/vms/t-vmsnative: New file.
19584
19585 2011-04-18 Xinliang David Li <davidxl@google.com>
19586
19587 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
19588
19589 2011-04-18 Jakub Jelinek <jakub@redhat.com>
19590
19591 PR middle-end/48661
19592 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
19593 if TREE_TYPE (v) is non-NULL.
19594
19595 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
19596 gimple_get_virt_mehtod_for_binfo.
19597 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
19598 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
19599 callers.
19600 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19601
19602 2011-04-18 Michael Matz <matz@suse.de>
19603 Steve Ellcey <sje@cup.hp.com>
19604
19605 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
19606 use its mode as source mode if it isn't VOIDmode.
19607
19608 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
19609
19610 * doc/passes.texi: Fill crossref nodes.
19611
19612 2011-04-18 Jim Meyering <meyering@redhat.com>
19613
19614 Fix doubled-word typos in comments and strings
19615 * config/alpha/vms-unwind.h: s/for for/for/
19616 * config/arm/unwind-arm.h: Likewise.
19617 * config/microblaze/microblaze.c: Likewise.
19618 * config/sh/constraints.md: s/in in/in/
19619 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
19620
19621 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
19622
19623 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
19624 (AVX_FLOAT_MODE_P): Ditto.
19625 (AVX128_VEC_FLOAT_MODE_P): Ditto.
19626 (AVX256_VEC_FLOAT_MODE_P): Ditto.
19627 (AVX_VEC_FLOAT_MODE_P): Ditto.
19628 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
19629 (UNSPEC_MASKSTORE): Ditto.
19630 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
19631 Merge from <sse>_movmsk<ssemodesuffix> and
19632 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
19633 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
19634 iterator.
19635 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
19636 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
19637 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
19638
19639 2011-04-18 Jan Hubicka <jh@suse.cz>
19640
19641 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
19642
19643 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
19644 (want_inline_function_called_once_p): Break out the logic from
19645 ipa_inline.
19646 (edge_badness): Ensure that profile is not misupdated.
19647 (lookup_recursive_calls): Prioritize by call frequencies.
19648 (inline_small_functions): Move program size estimates here;
19649 actually process whole queue even when unit growth has been
19650 met. (to properly compute inline_failed reasons and for the
19651 case unit size decrease.) Revisit comments on recursive inlining.
19652 (ipa_inline): Remove unit summary code; first inline hot calls
19653 of functions called once, cold calls next.
19654 (order, nnodes): Remove unused variables.
19655 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
19656 (GTFILES): Remove ipa-inline.c
19657 * sel-sched.c (fill_insns): Silence uninitialized var warning.
19658
19659 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
19660
19661 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
19662
19663 2011-04-18 Jie Zhang <jie@codesourcery.com>
19664 Richard Earnshaw <rearnsha@arm.com>
19665
19666 * arm.c (neon_builtin_type_bits): Remove.
19667 (typedef enum neon_builtin_mode): New.
19668 (T_MAX): Don't define.
19669 (typedef enum neon_builtin_datum): Remove bits, codes[],
19670 num_vars and base_fcode. Add mode, code and fcode.
19671 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
19672 VAR10): Change accordingly.
19673 (neon_builtin_data[]): Change accordingly
19674 (arm_init_neon_builtins): Change accordingly.
19675 (neon_builtin_compare): Remove.
19676 (locate_neon_builtin_icode): Remove.
19677 (arm_expand_neon_builtin): Change accordingly.
19678
19679 * arm.h (enum arm_builtins): Move to ...
19680 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
19681
19682 * arm.c (arm_builtin_decl): Declare.
19683 (TARGET_BUILTIN_DECL): Define.
19684 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
19685 (arm_builtin_decls[]): New.
19686 (arm_init_neon_builtins): Store builtin declarations in
19687 arm_builtin_decls[].
19688 (arm_init_tls_builtins): Likewise.
19689 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
19690 (arm_builtin_decl): New.
19691
19692 2011-04-18 Richard Guenther <rguenther@suse.de>
19693
19694 * tree.c (upper_bound_in_type): Build properly canonicalized
19695 INTEGER_CSTs.
19696 (lower_bound_in_type): Likewise.
19697
19698 2011-04-18 Richard Guenther <rguenther@suse.de>
19699
19700 * gimple.h (gimple_call_addr_fndecl): New function.
19701 (gimple_call_fndecl): Use it.
19702 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
19703 for direct calls.
19704 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
19705 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
19706
19707 2011-04-18 Richard Guenther <rguenther@suse.de>
19708
19709 PR middle-end/48650
19710 * tree.c (build_string): STRING_CST is now derived from tree_typed.
19711
19712 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
19713
19714 PR lto/48492
19715 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
19716 DECL_IN_CONSTANT_POOL without RTL.
19717
19718 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
19719 Ira Rosen <ira.rosen@linaro.org>
19720
19721 PR target/48252
19722 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
19723 to match neon_vzip/vuzp/vtrn_internal.
19724 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
19725 outputs explicitly dependent on both inputs.
19726 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
19727
19728 2011-04-18 Jakub Jelinek <jakub@redhat.com>
19729
19730 PR tree-optimization/48616
19731 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
19732 whether the shift is by scalar or vector based on whether all SLP
19733 scalar stmts have the same rhs.
19734
19735 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
19736
19737 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
19738 memory operands.
19739
19740 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
19741
19742 PR target/43700
19743 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
19744 registers.
19745
19746 2011-04-17 Jan Hubicka <jh@suse.cz>
19747
19748 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
19749 * cgrpahunit.c (cgraph_finalize_function): Do not set
19750 finalized_by_frontend.
19751 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
19752 finalized_by_frontend.
19753
19754 2011-04-17 Jan Hubicka <jh@suse.cz>
19755
19756 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
19757 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
19758 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
19759 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
19760 method.
19761 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
19762 gimple-fold.c
19763 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
19764
19765 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
19766
19767 PR lto/48538
19768 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
19769 is non-null before accessing it.
19770 (input_cgraph): Remove trailing spaces.
19771
19772 2011-04-17 Revital Eres <revital.eres@linaro.org>
19773
19774 * params.def (sms-min-sc): New param flag.
19775 * modulo-sched.c (sms_schedule): Use it.
19776 * doc/invoke.texi (sms-min-sc): Document it.
19777
19778 2011-04-17 Jan Hubicka <jh@suse.cz>
19779
19780 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
19781 present, also set gimple_call_set_cannot_inline.
19782 * ipa-inline.c: Update toplevel comment.
19783 (MAX_TIME): Remove.
19784 (cgraph_clone_inlined_nodes): Fix linebreaks.
19785 (cgraph_check_inline_limits): Restructure to ...
19786 (caller_growth_limits): ... this one; be more tolerant
19787 on growth in nested inline chains; add explanatory comment;
19788 fix stack accounting thinko introduced by previous patch.
19789 (cgraph_default_inline_p): Remove.
19790 (report_inline_failed_reason): New function.
19791 (can_inline_edge_p): New function.
19792 (can_early_inline_edge_p): New function.
19793 (leaf_node_p): Move upwards in file.
19794 (want_early_inline_function_p): New function.
19795 (want_inline_small_function_p): New function.
19796 (want_inline_self_recursive_call_p): New function.
19797 (cgraph_edge_badness): Rename to ...
19798 (edge_badness) ... this one; fix linebreaks.
19799 (update_edge_key): Update call of edge_baddness; add
19800 detailed dump about queue updates.
19801 (update_caller_keys): Use can_inline_edge_p and
19802 want_inline_small_function_p.
19803 (cgraph_decide_recursive_inlining): Rename to...
19804 (recursive_inlining): Use can_inline_edge_p and
19805 want_inline_self_recursive_call_p; simplify and remove no longer
19806 valid FIXME.
19807 (cgraph_set_inline_failed): Remove.
19808 (add_new_edges_to_heap): Use can_inline_edge_p and
19809 want_inline_small_function_p.
19810 (cgraph_decide_inlining_of_small_functions): Rename to ...
19811 (inline_small_functions): ... this one; cleanup; use
19812 can/want predicates; cleanup debug ouput; work edges till fibheap
19813 is exhausted and do not stop once unit growth is reached; remove
19814 later loop processing remaining edges.
19815 (cgraph_flatten): Rename to ...
19816 (flatten_function): ... this one; use can_inline_edge_p
19817 and can_early_inline_edge_p predicates.
19818 (cgraph_decide_inlining): Rename to ...
19819 (ipa_inline): ... this one; remove unreachable nodes before
19820 inlining functions called once; simplify the pass.
19821 (cgraph_perform_always_inlining): Rename to ...
19822 (inline_always_inline_functions): ... this one; use
19823 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
19824 (cgraph_decide_inlining_incrementally): Rename to ...
19825 (early_inline_small_functions): ... this one; simplify
19826 using new predicates; cleanup; make dumps prettier.
19827 (cgraph_early_inlining): Rename to ...
19828 (early_inliner): newer inline regular functions into always-inlines;
19829 fix updating of call stmt summaries.
19830 (pass_early_inline): Update for new names.
19831 (inline_transform): Fix formating.
19832 (gate_cgraph_decide_inlining): Rename to ...
19833 (pass_ipa_inline): ... this one.
19834 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
19835 * ipa-inline-analysis.c (dump_inline_summary): Update.
19836 (compute_inline_parameters): Do not compute disregard_inline_limits;
19837 look for mismatching arguments.
19838 (estimate_growth): Fix handlig of non-trivial self recursion.
19839 (inline_read_summary): Do not read info->disregard_inline_limits.
19840 (inline_write_summary): Do not write info->disregard_inline_limits.
19841 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
19842 and move all checks into can_inline_edge_p predicate; re-enable code
19843 comparing optimization levels.
19844 (expand_call_inline): Do not test inline_forbidden_into_p.
19845 * Makefile.in (ipa-inline.o): Update arguments.
19846
19847 2011-04-17 Revital Eres <revital.eres@linaro.org>
19848
19849 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
19850
19851 2011-04-17 Revital Eres <revital.eres@linaro.org>
19852
19853 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
19854
19855 2011-04-17 Michael Matz <matz@suse.de>
19856
19857 PR tree-optimization/48622
19858 PR lto/48645
19859 * ipa-inline-analysis.c (inline_read_summary): Read size/time
19860 in same order as they're written.
19861
19862 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19863
19864 * config/pa/predicates.md: Reorganize and simplify predicates.
19865 Eliminate duplicate code checks.
19866 (arith_operand): Rename to arith14_operand
19867 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
19868 * config/pa/pa.md: Use renamed operands.
19869 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
19870 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
19871 arith11_operand, adddi3_operand, indexed_memory_operand,
19872 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
19873 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
19874 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
19875 move_dest_operand, move_src_operand, prefetch_cc_operand,
19876 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
19877 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
19878 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
19879 div_operand, int5_operand, movb_comparison_operator,
19880 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
19881 arith_double_operand, ireg_operand, lhs_lshift_operand,
19882 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
19883 integer_store_memory_operand): Likewise.
19884 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
19885 (integer_store_memory_operand, read_only_operand,
19886 function_label_operand, borx_reg_operand,
19887 non_hard_reg_operand): Likewise.
19888 (eq_neq_comparison_operator): Delete unused operator.
19889 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
19890 function_label_operand.
19891 (emit_move_sequence): Likewise.
19892
19893 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
19894
19895 * config/i386/sse.md (sseunpackmode): New mode attribute.
19896 (ssepackmode): Ditto.
19897 (vec_pack_trunc_<mode>): Macroize expander from
19898 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
19899 (vec_unpacks_lo_<mode>): Macroize expander from
19900 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19901 (vec_unpacks_hi_<mode>): Macroize expander from
19902 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19903 (vec_unpacku_lo_<mode>): Macroize expander from
19904 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19905 (vec_unpacku_hi_<mode>): Macroize expander from
19906 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19907 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
19908 ix86_expand_sse4_unpack.
19909 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
19910
19911 2011-04-16 Jan Hubicka <jh@suse.cz>
19912
19913 * cgraphbuild.c: Include ipa-inline.h.
19914 (reset_inline_failed): Use initialize_inline_failed.
19915 * cgraph.c: Include ipa-inline.h.
19916 (cgraph_create_node_1): Do not initialize estimated_growth.
19917 (initialize_inline_failed): More to ipa-inline-analysis.c
19918 (dump_cgraph_node): Do not dump inline flags.
19919 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
19920 and disregard_inline_limits flags.
19921 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
19922 time, size, estimated_growth.
19923 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
19924 Update.
19925 * cgraphunit.c (cgraph_decide_is_function_needed): Use
19926 DECL_DISREGARD_INLINE_LIMITS.
19927 (cgraph_analyze_function): Do not initialize
19928 node->local.disregard_inline_limits.
19929 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
19930 inlinable, versionable and disregard_inline_limits.
19931 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
19932 cgraph_check_inline_limits, cgraph_default_inline_p,
19933 cgraph_edge_badness, update_caller_keys, update_callee_keys,
19934 add_new_edges_to_heap): Update.
19935 (cgraph_decide_inlining_of_small_function): Update; set
19936 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
19937 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
19938 cgraph_decide_inlining_incrementally): Update.
19939 * ipa-inline.h (inline_summary): Add inlinable, versionable,
19940 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
19941 time, size and estimated_growth parameters.
19942 (estimate_edge_growth): Update.
19943 (initialize_inline_failed): Declare.
19944 * ipa-split.c: Include ipa-inline.h
19945 (execute_split_functions): Update.
19946 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
19947 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
19948 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
19949 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
19950 estimated_growth to INT_MIN.
19951 (inline_node_duplication_hook): Likewise.
19952 (dump_inline_summary): Dump new fields.
19953 (compute_inline_parameters): Update.
19954 (estimate_edge_time, estimate_time_after_inlining,
19955 estimate_size_after_inlining, estimate_growth, inline_read_summary,
19956 inline_write_summary):
19957 (initialize_inline_failed): Move here from cgraph.c.
19958 * tree-sra.c: Include ipa-inline.h.
19959 (ipa_sra_preliminary_function_checks): Update.
19960 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
19961 ipa-inline.h.
19962
19963 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
19964
19965 * config/i386/sse.md (V16): New mode iterator.
19966 (VI1, VI8): Ditto.
19967 (AVXMODEQI, AVXMODEDI): Remove.
19968 (sse2, sse3): New mode attribute.
19969 (mov<mode>): Use V16 mode iterator.
19970 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
19971 (push<mode>1): Use V16 mode iterator.
19972 (movmisalign<mode>): Ditto.
19973 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
19974 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
19975 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
19976 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
19977 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
19978 avx_movdqu<avxmodesuffix>.
19979 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
19980 *avx_movdqu<avxmodesuffix>.
19981 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
19982 avx_lddqu<avxmodesuffix>.
19983 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
19984 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
19985 avx_movnt<AVXMODEDI:mode>.
19986 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
19987 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
19988
19989 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
19990
19991 PR target/48629
19992 * haifa-sched.c (prune_ready_list, schedule_block): Use
19993 sched_pressure_p rather than flag_sched_pressure.
19994
19995 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
19996
19997 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
19998 cgraph_get_node instead of cgraph_get_create_node.
19999
20000 2011-04-15 Jakub Jelinek <jakub@redhat.com>
20001
20002 * cfgexpand.c (expand_debug_expr): Use
20003 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
20004
20005 2011-04-15 Michael Matz <matz@suse.de>
20006
20007 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
20008 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
20009 * function.c (gimplify_parameters): Ditto.
20010 * gimplify.c (gimplify_vla_decl): Ditto.
20011
20012 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
20013 (gimple_call_set_alloca_for_var): New inline function.
20014 (gimple_call_alloca_for_var_p): Ditto.
20015 * gimple.c (gimple_build_call_from_tree): Remember
20016 CALL_ALLOCA_FOR_VAR_P state.
20017 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
20018
20019 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
20020 calls if they were for VLA objects.
20021
20022 2011-04-15 Martin Jambor <mjambor@suse.cz>
20023
20024 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
20025 of ADR_EXPRs.
20026
20027 2011-04-15 Martin Jambor <mjambor@suse.cz>
20028
20029 PR middle-end/48601
20030 * tree-emutls.c (lower_emutls_function_body): Call
20031 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
20032 result is non-NULL.
20033
20034 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
20035
20036 * c-decl.c (detect_field_duplicates): Call
20037 objc_detect_field_duplicates instead of objc_get_interface_ivars.
20038
20039 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
20040
20041 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
20042 * gimple.c (gimple_asm_clobbers_memory_p): Define.
20043 * ipa-pure-const.c (check_stmt): Call it.
20044 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
20045
20046 2011-04-15 Richard Guenther <rguenther@suse.de>
20047
20048 PR tree-optimization/48290
20049 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
20050 Properly decide inhibiting propagation based on the valueized
20051 operand. Do loop-closed SSA form preserving here ...
20052 (init_copy_prop): ... not here.
20053
20054 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
20055
20056 PR target/48612
20057 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
20058 (*ieee_smax<mode>3): Likewise.
20059
20060 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20061
20062 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
20063 Replace match_operand with match_dup for the third operand in
20064 these expanders.
20065
20066 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
20067
20068 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
20069 to track processing of conditionals. Update all callers.
20070 (try_combine, simplify_if_then_else): Update.
20071
20072 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
20073
20074 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
20075 -fsched-pressure.
20076
20077 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
20078
20079 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
20080 instead of match_operand for operand 3.
20081
20082 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
20083
20084 * recog.h (insn_operand_data): Add an "allows_mem" field.
20085 * genoutput.c (output_operand_data): Initialize it.
20086 * optabs.c (maybe_legitimize_operand_same_code): New function.
20087 (maybe_legitimize_operand): Use it when matching the original
20088 op->value.
20089
20090 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
20091
20092 * gimplify.c: Fix issues in comments throughout.
20093 (voidify_wrapper_expr): Fix long line.
20094 (build_stack_save_restore): Likewise.
20095 (gimplify_loop_expr): Likewise.
20096 (gimplify_compound_lval): Likewise.
20097 (gimplify_init_ctor_eval): Likewise.
20098 (gimplify_modify_expr_rhs): Likewise.
20099 (omp_notice_threadprivate_variable): Likewise.
20100
20101 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
20102
20103 * cfgexpand.c (expand_call_stmt): Convert the function type to the
20104 original one if this is not a builtin function.
20105
20106 2011-04-14 Jakub Jelinek <jakub@redhat.com>
20107
20108 PR target/48605
20109 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
20110 offset it as needed based on top 2 bits in operands[3], change
20111 MEM mode to SFmode and mask those 2 bits away from operands[3].
20112
20113 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
20114
20115 * c-parser.c (c_parser_objc_protocol_definition): Updated for
20116 change from objc_declare_protocols() to objc_declare_protocol().
20117
20118 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
20119
20120 * config/i386/sse.md (sse4_1): New mode attribute.
20121 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
20122 avx_blend<ssemodesuffix><avxmodesuffix> and
20123 sse4_1_blend<ssemodesuffix> using VF mode iterator.
20124 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
20125 avx_blendv<ssemodesuffix><avxmodesuffix> and
20126 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
20127 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
20128 avx_dp<ssemodesuffix><avxmodesuffix> and
20129 sse4_1_dp<ssemodesuffix> using VF mode iterator.
20130 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
20131 (sse4_1_packusdw): Merge with *avx_packusdw.
20132 (sse4_1_pblendvb): Merge with *avx_pblendvb.
20133 (sse4_1_pblendw): Merge with *avx_pblendw.
20134 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
20135 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
20136 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
20137 VF mode iterator.
20138 (sse4_1_round<ssescalarmodesuffix>): Merge with
20139 *avx_round<ssescalarmodesuffix>.
20140 (aesenc): Merge with *avx_aesenc.
20141 (aesenclast): Merge with *avx_aesenclast.
20142 (aesdec): Merge with *avx_aesdec.
20143 (aesdeclast): Merge with *avx_aesdeclast.
20144 (pclmulqdq): Merge with *pclmulqdq.
20145 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
20146 New predicate.
20147 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
20148
20149 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
20150
20151 PR middle-end/48608
20152 * cfgexpand.c (get_decl_align_unit): Renamed to ...
20153 (align_local_variable): This. Update DECL_ALIGN.
20154 (add_stack_var): Updated.
20155 (expand_one_stack_var): Likewise.
20156
20157 2011-04-14 Richard Guenther <rguenther@suse.de>
20158
20159 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
20160 Remove.
20161 (dse_initialize_block_local_data, dse_leave_block,
20162 record_voperand_set, get_stmt_uid): Likewise.
20163 (dse_possible_dead_store_p): Allow any kind of killing stmt.
20164 (dse_optimize_stmt): Remove voperand set handling code.
20165 Simplify and improve to handle any kind of killing stmt.
20166 (dse_record_phi): Remove.
20167 (dse_enter_block): Simplify.
20168 (tree_ssa_dse): Likewise.
20169 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
20170
20171 2011-04-14 Jan Hubicka <jh@suse.cz>
20172
20173 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
20174 * cgraph.h (struct inline_summary): Move to ipa-inline.h
20175 (cgraph_local_info): Remove inline_summary.
20176 * ipa-cp.c: Include ipa-inline.h.
20177 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
20178 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
20179 accesor.
20180 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
20181 (input_overwrite_node): Do not set inline summary.
20182 (input_node): Do not stream inline summary.
20183 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
20184 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
20185 growth; we do not have inline parameters computed for that anyway.
20186 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
20187 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
20188 (inline_summary_t): New type and VECtor.
20189 (debug_inline_summary, dump_inline_summaries): Declare.
20190 (inline_summary): Use VOCtor.
20191 (estimate_edge_growth): Kill hack computing call stmt size directly.
20192 * lto-section-in.c (lto_section_name): Add inline section.
20193 * ipa-inline-analysis.c: Include lto-streamer.h
20194 (node_removal_hook_holder, node_duplication_hook_holder): New holders
20195 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
20196 (inline_summary_vec): Define.
20197 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
20198 dump_inline_summaries): New functions.
20199 (estimate_function_body_sizes): Properly compute size/time of outgoing
20200 calls.
20201 (compute_inline_parameters): Alloc inline_summary; do not compute
20202 size/time of incomming calls.
20203 (estimate_edge_time): Avoid missing time summary hack.
20204 (inline_read_summary): Read inline summary info.
20205 (inline_write_summary): Write inline summary info.
20206 (inline_free_summary): Free all hooks and inline summary vector.
20207 * lto-streamer.h: Add LTO_section_inline_summary section.
20208 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
20209 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
20210
20211 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
20212
20213 * tree-vectorizer.h (vect_strided_store_supported): Add a
20214 HOST_WIDE_INT argument.
20215 (vect_strided_load_supported): Likewise.
20216 (vect_permute_store_chain): Return void.
20217 (vect_transform_strided_load): Likewise.
20218 (vect_permute_load_chain): Delete.
20219 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
20220 count argument. Check that the count is a power of two.
20221 (vect_strided_load_supported): Likewise.
20222 (vect_permute_store_chain): Return void. Update after above changes.
20223 Assert that the access is supported.
20224 (vect_permute_load_chain): Likewise.
20225 (vect_transform_strided_load): Return void.
20226 * tree-vect-stmts.c (vectorizable_store): Update calls after
20227 above interface changes.
20228 (vectorizable_load): Likewise.
20229 (vect_analyze_stmt): Don't check for strided powers of two here.
20230
20231 2011-04-14 Richard Guenther <rguenther@suse.de>
20232
20233 PR tree-optimization/48590
20234 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
20235 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
20236 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
20237 BUILT_IN_STACK_SAVE.
20238 * tree-ssa-dce.c (propagate_necessity): Handle
20239 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
20240
20241 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
20242
20243 * c-parser.c (c_parser_objc_class_declaration): Updated call to
20244 objc_declare_class.
20245
20246 2011-04-14 Richard Guenther <rguenther@suse.de>
20247
20248 * tree.h (get_object_alignment_1): Declare.
20249 * builtins.c (get_object_alignment_1): Split out worker from ...
20250 (get_object_alignment): ... here.
20251 * fold-const.c (get_pointer_modulus_and_residue): Use
20252 get_object_alignment_1.
20253
20254 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
20255
20256 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
20257 type parameter.
20258 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
20259 parameter. Generalise code to handle arrays as well as vectors.
20260 (vect_setup_realignment): Update accordingly.
20261 * tree-vect-stmts.c (vectorizable_store): Likewise.
20262 (vectorizable_load): Likewise.
20263
20264 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
20265
20266 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
20267 within the per-copy loop.
20268
20269 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
20270
20271 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
20272 in the dump file.
20273
20274 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
20275
20276 * doc/options.texi (Negative): Explicitly mention that the
20277 Negative chain must be circular.
20278
20279 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
20280
20281 * function.h (block_chainon): Declare.
20282 * function.c (block_chainon): Define.
20283
20284 2011-04-14 Anatoly Sokolov <aesok@post.ru>
20285 Eric Weddington <eric.weddington@atmel.com>
20286 Georg-Johann Lay <avr@gjlay.de>
20287
20288 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
20289 New Includes
20290 (avr_init_builtins, avr_expand_builtin,
20291 avr_expand_delay_cycles, avr_expand_unop_builtin,
20292 avr_expand_binop_builtin ): New functions.
20293 (avr_builtin_id): New enum
20294 (struct avr_builtin_description): New struct
20295 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
20296 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
20297
20298 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
20299 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
20300 UNSPECV_DELAY_CYCLES): new enumeration values
20301 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
20302 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
20303 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
20304 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
20305 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
20306 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
20307 "fmulsu"): New insns
20308
20309 * config/avr/avr-c.c: fix line endings
20310 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
20311 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
20312 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
20313 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
20314 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
20315
20316 * doc/extend.texi (AVR Built-in Functions): New node
20317 (Target Builtins): Add documentation of AVR
20318 built-in functions.
20319
20320 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
20321
20322 PR target/44643
20323 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
20324 alone. Error if non-const data has attribute progmem.
20325
20326 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
20327
20328 * tree.h (struct tree_constructor): Include tree_typed instead of
20329 tree_common.
20330 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
20331 TS_TYPED instead of TS_COMMON.
20332
20333 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
20334
20335 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
20336 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
20337 (sse2_psadbw): Merge with *avx_psadbw.
20338 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
20339 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
20340 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
20341 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
20342 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
20343 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
20344 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
20345 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
20346 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
20347 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
20348 (ssse3_palignrti): Merge with *avx_palignrti.
20349
20350 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
20351
20352 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
20353 * tree-ssanames.c (fini_ssanames): VEC_free it.
20354 (make_ssa_name_fn): Update for VECness of free_ssanames.
20355 (release_ssa_name, release_dead_ssa_names): Likewise.
20356 * tree.h (struct tree_ssa_name): Include tree_typed instead of
20357 tree_common.
20358 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
20359 TS_TYPED instead of TS_COMMON.
20360
20361 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
20362
20363 * postreload-gcse.c (gcse_after_reload_main): Add calls to
20364 statistics_counter_event.
20365 * tree-ssa-copyrename.c (stats): Define.
20366 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
20367 statistics_counter_event.
20368 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
20369 (bswap_stats, widen_mul_stats): Define.
20370 (insert_reciprocals): Increment rdivs_inserted.
20371 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
20372 rfuncs_inserted. Add calls to statistics_counter_event.
20373 (execute_cse_sincos_1): Increment inserted.
20374 (execute_cse_sincos): Zeroize sincos_stats. Add call to
20375 statistics_counter_event.
20376 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
20377 of bswap_stats. Add calls to statistics_counter_event.
20378 (convert_mult_to_widen): Increment widen_mults_inserted.
20379 (convert_plusminus_to_widen): Increment maccs_inserted.
20380 (convert_mult_to_fma): Increment fmas_inserted.
20381 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
20382 calls to statistics_counter_event.
20383
20384 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
20385
20386 PR rtl-optimization/48455
20387 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
20388 `temp_costs->mem_cost'.
20389
20390 2011-04-13 Jan Hubicka <jh@suse.cz>
20391
20392 * ipa-inline.h: New file.
20393 * ipa-inline-analysis.c: New file. Broken out of ...
20394 * ipa-inline.c: ... this file; update toplevel comment;
20395 include ipa-inline.h
20396 (inline_summary): Move to ipa-inline.h
20397 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
20398 ipa-inline-analysis.c.
20399 (cgraph_estimate_time_after_inlining): Rename to
20400 estiamte_time_after_inlining; move to ipa-inline-analysis.c
20401 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
20402 to estimate_edge_growth.
20403 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
20404 rename to estimate_size_after_inlining.
20405 (cgraph_mark_inline_edge): Update for new naming convention.
20406 (cgraph_check_inline_limits): Likewise.
20407 (cgraph_edge_badness): Likewise.
20408 (cgraph_decide_recursive_inlining): Likewise.
20409 (cgraph_decide_inlining_of_small_functions): Likewise.
20410 (cgraph_decide_inlining_incrementally): Likewise.
20411 (cgraph_estimate_growth): Rename to estimate_growth; move to
20412 ipa-inline-analysis.c.
20413 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
20414 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
20415 (compute_inline_parameters): Likewise.
20416 (compute_inline_parameters_for_current): Likewise.
20417 (pass_inline_parameters): Likewise.
20418 (inline_indirect_intraprocedural_analysis): Likewise.
20419 (analyze_function): Rename to inline_analyze_function; likewise.
20420 (add_new_function): Move to ipa-inline-analysis.c.
20421 (inline_generate_summary): Likewise.
20422 (inline_read_summary): Likewise.
20423 (inline_write_summary): Likewise.
20424 * Makefile.in (ipa-inline-analysis.c): New file.
20425
20426 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20427
20428 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
20429 * configure: Regenerate.
20430
20431 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
20432
20433 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
20434 instead of tree_common.
20435 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
20436 Likewise.
20437 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
20438 TS_TYPED rather than TS_COMMON.
20439 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
20440
20441 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
20442
20443 PR target/45263
20444 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
20445 r20 around calls of __tablejump_elpm__
20446
20447 2011-04-13 Jakub Jelinek <jakub@redhat.com>
20448
20449 PR middle-end/48591
20450 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
20451 NULL.
20452 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
20453
20454 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
20455
20456 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
20457 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
20458 (cfi_vec): New typedef.
20459 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
20460 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
20461 (cie_cfi_vec): New static variable.
20462 (cie_cfi_head): Delete.
20463 (add_cfi): Accept a cfi_vec * as first argument. All callers and
20464 declaration changed. Use vector rather than list operations.
20465 (new_cfi): Don't initialize the dw_cfi_next field.
20466 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
20467 rather than list operations.
20468 (lookup_cfa): Use vector rather than list operations.
20469 (output_cfis): New argument upto. Accept a cfi_vec rather than
20470 a dw_cfi_ref list head as argument. All callers changed.
20471 Iterate over the vector using upto as a maximum index.
20472 (output_all_cfis): New static function.
20473 (output_fde): Use vector rather than list operations. Use the
20474 new upto argument for output_cfis rather than manipulating a
20475 list.
20476 (dwarf2out_begin_prologue): Change initializations to match
20477 new struct members.
20478 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
20479 from the vector length rather than searching for the end of a list.
20480 Use output_all_cfis.
20481 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
20482
20483 2011-04-13 Nick Clifton <nickc@redhat.com>
20484
20485 * config/rx/rx.md (movmemsi): Do not use this pattern when
20486 volatile pointers are involved.
20487
20488 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
20489
20490 * config/i386/sse.md (pinsrbits): Remove.
20491 (sse2_packsswb): Merge with *avx_packsswb.
20492 (sse2_packssdw): Merge with *avx_packssdw.
20493 (sse2_packuswb): Merge with *avx_packuswb.
20494 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
20495 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
20496 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
20497 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
20498 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
20499 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
20500 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
20501 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
20502 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
20503 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
20504 (sse2_loadld): Merge with *avx_loadld.
20505 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
20506 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
20507 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
20508 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
20509 (vec_concatv2di): Merge with *vec_concatv2di_avx.
20510
20511 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
20512
20513 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
20514 calling TREE_CHAIN.
20515 * print-tree.c (print_node): Likewise.
20516 * tree-inline.c (copy_tree_r): Likewise.
20517 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
20518 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
20519 instead of TS_COMMON.
20520 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
20521 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
20522 (copy_node_stat): Zero TREE_CHAIN only if necessary.
20523 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
20524 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
20525 ...and these...
20526 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
20527 * tree.h: ...here.
20528 (TREE_CHAIN): Check for a TS_COMMON structure.
20529 (TREE_TYPE): Check for a TS_TYPED structure.
20530
20531 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
20532
20533 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
20534 cgraph_get_create_node instead of cgraph_node.
20535
20536 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
20537
20538 * c-parser.c (c_parser_initelt): Updated call to
20539 objc_build_message_expr.
20540 (c_parser_postfix_expression): Likewise.
20541
20542 2011-04-12 Kai Tietz <ktietz@redhat.com>
20543
20544 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
20545 MASK_MS_BITFIELD_LAYOUT bit.
20546
20547 2011-04-12 Jakub Jelinek <jakub@redhat.com>
20548
20549 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
20550 assert it is always true.
20551 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
20552 moves.
20553
20554 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
20555
20556 * c-parser.c (c_lex_one_token): Rewritten conditional used when
20557 compiling Objective-C to be more efficient.
20558
20559 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
20560
20561 * opts-common.c (decode_cmdline_options_to_array): Remove variable
20562 argv_copied.
20563
20564 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20565
20566 * recog.h, genoutput.c, optabs.c: Revert last patch.
20567
20568 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20569
20570 PR target/48090
20571 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
20572
20573 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20574
20575 * recog.h (insn_operand_data): Add an "allows_mem" field.
20576 * genoutput.c (output_operand_data): Initialize it.
20577 * optabs.c (maybe_legitimize_operand_same_code): New function.
20578 (maybe_legitimize_operand): Use it when matching the original
20579 op->value.
20580
20581 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20582
20583 * genpreds.c (process_define_predicate): Move most processing
20584 to gensupport.c. Continue to validate the expression.
20585 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
20586 (process_define_predicate): Move processing to gensupport.c.
20587 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
20588 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
20589 (compute_predicate_codes): Moved from genrecog.c. Add lineno
20590 argument.
20591 (valid_predicate_name_p): New function, split out from old
20592 genpreds.c:process_define_predicate.
20593 (process_define_predicate): New function, combining code from
20594 old genpreds.c and genrecog.c functions.
20595 (process_rtx): Call it for DEFINE_PREDICATE and
20596 DEFINE_SPECIAL_PREDICATE.
20597
20598 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20599
20600 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
20601 size of a '%A' memory reference.
20602 (T_DREG, T_QREG): New neon_builtin_type_bits.
20603 (arm_init_neon_builtins): Assert that the load and store operands
20604 are neon_struct_operands.
20605 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
20606 (NEON_ARG_MEMORY): New builtin_arg.
20607 (neon_dereference_pointer): New function.
20608 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
20609 Handle NEON_ARG_MEMORY.
20610 (arm_expand_neon_builtin): Update after above interface changes.
20611 Use NEON_ARG_MEMORY for loads and stores.
20612 * config/arm/predicates.md (neon_struct_operand): New predicate.
20613 * config/arm/iterators.md (V_two_elem): Tweak formatting.
20614 (V_three_elem): Use BLKmode for accesses that have no associated mode.
20615 (V_four_elem): Tweak formatting.
20616 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
20617 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
20618 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
20619 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
20620 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
20621 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
20622 (neon_vst4<mode>): Replace pointer operand with a memory operand.
20623 Use %A in the output template.
20624 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
20625 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
20626 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
20627 the width of the memory access. Remove post-increment.
20628 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
20629
20630 2011-04-12 Nick Clifton <nickc@redhat.com>
20631
20632 * config/v850/v850.c (expand_prologue): Do not use the CALLT
20633 instruction for interrupt handlers if the target is the basic V850
20634 architecture.
20635 (expand_epilogue): Likewise.
20636
20637 2011-04-12 Jakub Jelinek <jakub@redhat.com>
20638
20639 PR rtl-optimization/48549
20640 * combine.c (propagate_for_debug): Also stop after BB_END of
20641 this_basic_block. Process LAST and just stop processing after it.
20642 (combine_instructions): If last_combined_insn has been deleted,
20643 set last_combined_insn to its PREV_INSN.
20644
20645 2011-04-12 Richard Guenther <rguenther@suse.de>
20646
20647 PR tree-optimization/46076
20648 * gimple.h (struct gimple_statement_call): Add fntype field.
20649 (gimple_call_fntype): Adjust.
20650 (gimple_call_set_fntype): New function.
20651 * gimple.c (gimple_build_call_1): Set the call function type.
20652 * gimplify.c (gimplify_call_expr): Preserve the function
20653 type the frontend used for the call.
20654 (gimplify_modify_expr): Likewise.
20655 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
20656 function type.
20657 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
20658 function type.
20659 * tree-ssa.c (useless_type_conversion_p): Function pointer
20660 conversions are useless.
20661
20662 2011-04-12 Martin Jambor <mjambor@suse.cz>
20663
20664 * cgraph.h (cgraph_node): Remove function declaration.
20665 (cgraph_create_node): Declare.
20666 (cgraph_get_create_node): Likewise.
20667 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
20668 Updated all callers.
20669 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
20670 the decl does not already exist. Call cgraph_get_create_node instead
20671 of cgraph_node.
20672 (cgraph_get_create_node): New function.
20673 (cgraph_same_body_alias): Update comment.
20674 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
20675 assert it does not return NULL.
20676 (cgraph_update_edges_for_call_stmt): Likewise.
20677 (cgraph_clone_edge): Likewise.
20678 (cgraph_create_virtual_clone): Likewise.
20679 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
20680 instead of cgraph_node.
20681 (cgraph_add_new_function): Call cgraph_create_node or
20682 cgraph_get_create_node instead of cgraph_node.
20683 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
20684 instead of cgraph_node.
20685 (record_eh_tables): Likewise.
20686 (mark_address): Likewise.
20687 (mark_load): Likewise.
20688 (build_cgraph_edges): Call cgraph_get_create_node instead
20689 of cgraph_node.
20690 (rebuild_cgraph_edges): Likewise.
20691 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
20692 instead of cgraph_node.
20693 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
20694 cgraph_node.
20695 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
20696 cgraph_create_node instead of cgraph_node.
20697 * c-decl.c (finish_function): Call cgraph_get_create_node instead
20698 of cgraph_node.
20699 * lto-cgraph.c (input_node): Likewise.
20700 * lto-streamer-in.c (input_function): Likewise.
20701 * varasm.c (mark_decl_referenced): Likewise.
20702 (assemble_alias): Likewise.
20703
20704 2011-04-12 Martin Jambor <mjambor@suse.cz>
20705
20706 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
20707 instead of cgraph_node and assert it does not return NULL.
20708 * lto-streamer-in.c (lto_read_body): Likewise.
20709 * omp-low.c (new_omp_context): Likewise.
20710 (create_task_copyfn): Likewise.
20711 * tree-emutls.c (lower_emutls_function_body): Likewise.
20712 * matrix-reorg.c (transform_allocation_sites): Likewise.
20713
20714 2011-04-12 Jakub Jelinek <jakub@redhat.com>
20715
20716 PR c/48552
20717 * c-typeck.c (build_asm_expr): Error out on attempts to use
20718 void type outputs or inputs for constraints that allow reg or
20719 don't allow memory.
20720
20721 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
20722 Richard Earnshaw <rearnsha@arm.com>
20723
20724 PR target/48250
20725 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
20726 to use sign-magnitude offsets. Reject unsupported unaligned
20727 cases. Add detailed description in comments.
20728 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
20729 condition from TARGET_32BIT to TARGET_ARM.
20730
20731 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
20732
20733 * tree.h (struct typed_tree): New.
20734 (struct tree_common): Include it instead of tree_base.
20735 (TREE_TYPE): Update for new location of type field.
20736 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
20737 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
20738 (union tree_node): Add typed field.
20739 * treestruct.def (TS_TYPED): New.
20740 * lto-streamer.c (check_handled_ts_structures): Handle it.
20741 * tree.c (MARK_TS_TYPED): New macro.
20742 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
20743
20744 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
20745
20746 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
20747 (force_nonfallthru): Do not alter the loop nest if no basic block
20748 was created.
20749
20750 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
20751
20752 * config/i386/sse.md (VI): New mode iterator.
20753 (SSEMODEI): Remove.
20754 (AVX256MODEI): Ditto.
20755 (AVXMODEF4P): Ditto.
20756 (avxvecpsmode): Ditto.
20757 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
20758 (sse2_andnot<mode>3): New expander.
20759 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
20760 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
20761 (<any_logic:code><mode>3): Use VI mode iterator.
20762 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
20763 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
20764 (*andnottf3): Handle AVX three-operand constraints.
20765 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
20766
20767 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20768 Robert Millan <rmh@gnu.org>
20769
20770 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
20771 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
20772 GNU_USER_DYNAMIC_LINKER64): Define.
20773 (REG_NAME): Don't undefine.
20774 (MD_UNWIND_SUPPORT): Undefine.
20775 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
20776 (REG_NAME): Don't undefine.
20777 (MD_UNWIND_SUPPORT): Undefine.
20778 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
20779
20780 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20781
20782 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
20783 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
20784
20785 2011-04-11 Xinliang David Li <davidxl@google.com>
20786
20787 * value-profile.c (check_ic_target): New function.
20788 (gimple_ic_transform): Sanity check indirect call target.
20789 * gimple-low.c (gimple_check_call_args): Interface change.
20790 (gimple_check_call_matching_types): New function.
20791 * tree-inline.c (tree_can_inline_p): Call new function.
20792
20793 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
20794
20795 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
20796 tree-pretty-print.h & realmpfr.h.
20797
20798 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
20799
20800 PR middle-end/48464
20801 * ira.c (setup_pressure_classes): Fix typo in loop condition.
20802 (setup_allocno_and_important_classes): Ditto.
20803
20804 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20805
20806 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
20807 GNU_USER_DYNAMIC_LINKER.
20808 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
20809 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20810 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
20811 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20812 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20813 GNU_USER_TARGET_OS_CPP_BUILTINS.
20814 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
20815 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20816 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20817 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20818 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
20819 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20820 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20821 GNU_USER_TARGET_OS_CPP_BUILTINS.
20822 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20823 GNU_USER_DYNAMIC_LINKER.
20824 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20825 GNU_USER_TARGET_OS_CPP_BUILTINS.
20826 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
20827 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20828 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
20829 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20830 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
20831 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
20832 GNU_USER_DYNAMIC_LINKER64): Remove.
20833 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
20834 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20835 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20836 GNU_USER_DYNAMIC_LINKER.
20837 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20838 GNU_USER_TARGET_OS_CPP_BUILTINS.
20839 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20840 GNU_USER_TARGET_OS_CPP_BUILTINS.
20841 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
20842 to GNU_USER_TARGET_OS_CPP_BUILTINS.
20843 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20844 GNU_USER_TARGET_OS_CPP_BUILTINS.
20845 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
20846 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
20847 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
20848 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
20849 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20850 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20851 GNU_USER_DYNAMIC_LINKER.
20852 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20853 GNU_USER_TARGET_OS_CPP_BUILTINS.
20854 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
20855 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20856 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20857 GNU_USER_DYNAMIC_LINKER.
20858 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20859 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20860 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
20861 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20862 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20863 GNU_USER_DYNAMIC_LINKER.
20864 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
20865 GNU_USER_DYNAMIC_LINKERN32.
20866 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
20867 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
20868 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
20869 GNU_USER_DYNAMIC_LINKER32.
20870 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
20871 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20872 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20873 GNU_USER_DYNAMIC_LINKER.
20874 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20875 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20876 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
20877 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20878 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20879 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
20880 GNU_USER_DYNAMIC_LINKER32.
20881 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
20882 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
20883 GNU_USER_DYNAMIC_LINKER.
20884 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
20885 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20886 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
20887 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
20888 GNU_USER_DYNAMIC_LINKER64.
20889 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
20890 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20891 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20892 GNU_USER_DYNAMIC_LINKER.
20893 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
20894 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20895 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20896 GNU_USER_DYNAMIC_LINKER.
20897 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
20898 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20899 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
20900 GNU_USER_DYNAMIC_LINKER32.
20901 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
20902 GNU_USER_DYNAMIC_LINKER64.
20903 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
20904 GNU_USER_DYNAMIC_LINKER64.
20905 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
20906 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20907 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
20908 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20909 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20910
20911 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20912
20913 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
20914 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
20915 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
20916 GNU_USER_DYNAMIC_LINKER.
20917 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
20918 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
20919 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
20920 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
20921 GNU_USER_DYNAMIC_LINKER64.
20922 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
20923 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
20924 GNU_USER_LINK_EMULATION.
20925 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
20926 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
20927 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
20928 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
20929 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
20930 CPP_SPEC, CC1_SPEC): Remove.
20931 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
20932 (GNU_USER_DYNAMIC_LINKER): Define.
20933 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
20934 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
20935 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
20936 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
20937 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
20938 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
20939 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
20940 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
20941 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
20942 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
20943 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
20944 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
20945 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
20946 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
20947 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
20948 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
20949 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20950 GNU_USER_DYNAMIC_LINKER.
20951 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20952 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
20953 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20954 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
20955 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20956 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
20957 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
20958 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
20959 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
20960 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
20961
20962 2011-04-11 Kai Tietz <ktietz@redhat.com>
20963
20964 PR target/9601
20965 PR target/11772
20966 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
20967 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
20968 comment.
20969 (ix86_is_msabi_thiscall): Removed.
20970 (ix86_is_type_thiscall): Likewise.
20971 (ix86_get_callcvt): New function.
20972 (ix86_comp_type_attributes): Simplify check.
20973 (ix86_function_regparm): Use ix86_get_callcvt for calling
20974 convention attribute checks.
20975 (ix86_return_pops_args): Likewise.
20976 (ix86_static_chain): Likewise.
20977 (x86_this_parameter): Likewise.
20978 (x86_output_mi_thunk): Likewise.
20979 (ix86_function_type_abi): Optimize check for types without attributes.
20980 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
20981 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
20982 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
20983 by flag-values.
20984 (IX86_BASE_CALLCVT): Helper macro.
20985 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
20986 Use ix86_get_callcvt for calling convention attribute checks and avoid
20987 symbol-decoration for stdcall in TARGET_RTD case.
20988 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
20989 Likewise.
20990 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
20991 for declaration.
20992
20993 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
20994
20995 * config/i386/sse.md (VI_128): New mode iterator.
20996 (VI12_128): Rename from SSEMODE12.
20997 (VI14_128): Rename from SSEMODE14.
20998 (VI124_128): New mode iterator.
20999 (VI24_128): Rename from SSEMODE248.
21000 (VI248_128): Rename from SSEMODE248.
21001 (SSEMODE124C8): Remove.
21002 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
21003 (*sse2_<plusminus_insn><mode>3): Merge with
21004 *avx_<plusminus_insn><mode>3.
21005 (*mulv8hi3): Merge with *avx_mulv8hi3.
21006 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
21007 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
21008 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
21009 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
21010 (ashr<mode>3): Merge with *avx_ashr<mode>3.
21011 (lshr<mode>3): Merge with *avx_lshr<mode>3.
21012 (ashl<mode>3): Merge with *avx_ashl<mode>3.
21013 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
21014 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
21015 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21016 (*<smaxmin:code>v8hi3): Ditto.
21017 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
21018 (*<smaxmin:code>v16qi3): Ditto.
21019 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
21020 (*sse2_eq<mode>3): Ditto.
21021 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
21022 (*sse2_gt<mode>3): Ditto.
21023 (vcondv2di): Split out of vcond<mode>.
21024 (vconduv2di): Split out of vcondu<mode>.
21025
21026 2011-04-11 Richard Guenther <rguenther@suse.de>
21027
21028 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
21029 before calling tree_low_cst.
21030
21031 2011-04-11 Richard Guenther <rguenther@suse.de>
21032
21033 * stor-layout.c (layout_type): Compute all array index size operations
21034 in the original type.
21035 (initialize_sizetypes): Add comment.
21036 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
21037
21038 2011-04-11 Joseph Myers <joseph@codesourcery.com>
21039
21040 * common.opt (Tbss=, Tdata=, Ttext=): New options.
21041
21042 2011-04-11 Martin Jambor <mjambor@suse.cz>
21043
21044 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
21045 of cgraph_node, handle NULL return value.
21046 (cgraph_global_info): Likewise.
21047 (cgraph_rtl_info): Likewise.
21048 * tree-inline.c (estimate_num_insns): Likewise.
21049 * gimplify.c (unshare_body): Likewise.
21050 (unvisit_body): Likewise.
21051 (gimplify_body): Likewise.
21052 * predict.c (optimize_function_for_size_p): Likewise.
21053 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
21054 (call_may_clobber_ref_p_1): Likewise.
21055 * varasm.c (function_section_1): Likewise.
21056 (assemble_start_function): Likewise.
21057
21058 2011-04-11 Martin Jambor <mjambor@suse.cz>
21059
21060 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
21061 of cgraph_node.
21062 * final.c (rest_of_clean_state): Likewise.
21063 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
21064 * passes.c (pass_init_dump_file): Likewise.
21065 (execute_all_ipa_transforms): Likewise.
21066 (function_called_by_processed_nodes_p): Likewise.
21067 * predict.c (maybe_hot_frequency_p): Likewise.
21068 (probably_never_executed_bb_p): Likewise.
21069 (compute_function_frequency): Likewise.
21070 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
21071 (unnest_nesting_tree_1): Likewise.
21072 (lower_nested_functions): Likewise.
21073 * tree-optimize.c (execute_fixup_cfg): Likewise.
21074 (tree_rest_of_compilation): Likewise.
21075 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
21076 * tree-sra.c (ipa_early_sra): Likewise.
21077 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
21078 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
21079 * ipa.c (record_cdtor_fn): Likewise.
21080 * ipa-inline.c (cgraph_early_inlining): Likewise.
21081 (compute_inline_parameters_for_current): Likewise.
21082 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
21083 * ipa-pure-const.c (local_pure_const): Likewise.
21084 * ipa-split.c (split_function): Likewise.
21085 (execute_split_functions): Likewise.
21086 * cgraphbuild.c (build_cgraph_edges): Likewise.
21087 (rebuild_cgraph_edges): Likewise.
21088 (cgraph_rebuild_references): Likewise.
21089 (remove_cgraph_callee_edges): Likewise.
21090 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
21091 (verify_cgraph_node): Likewise.
21092 (cgraph_analyze_functions): Likewise.
21093 (cgraph_preserve_function_body_p): Likewise.
21094 (save_inline_function_body): Likewise.
21095 (save_inline_function_body): Likewise.
21096 * tree-inline.c (copy_bb): Likewise.
21097 (optimize_inline_calls): Likewise.
21098
21099 2011-04-11 Martin Jambor <mjambor@suse.cz>
21100
21101 PR tree-optimization/48195
21102 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
21103 ipa_check_create_edge_args.
21104 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
21105 ipa_check_create_edge_args.
21106 * ipa-inline.c (inline_generate_summary): Do not call
21107 ipa_check_create_node_params and ipa_check_create_edge_args.
21108 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
21109 ipa_check_create_edge_args.
21110
21111 2011-04-09 Anatoly Sokolov <aesok@post.ru>
21112
21113 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
21114 instead of loop.
21115 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
21116 * function.c (record_hard_reg_sets): Likewise.
21117 * ira.c (compute_regs_asm_clobbered): Likewise.
21118 * sched-deps.c (sched_analyze_1): Likewise.
21119 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
21120
21121 2011-04-09 Xinliang David Li <davidxl@google.com>
21122
21123 PR tree-optimization/PR48484
21124 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
21125 has_valid_pred lazily
21126
21127 2011-04-09 Duncan Sands <baldrick@free.fr>
21128
21129 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
21130
21131 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
21132
21133 * combine.c (combine_validate_cost): Adjust comments. Set registered
21134 cost of I0 to zero at the end, if any.
21135
21136 2011-04-08 Xinliang David Li <davidxl@google.com>
21137
21138 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
21139 to insane profile data.
21140
21141 2011-04-08 Xinliang David Li <davidxl@google.com>
21142
21143 * ipa-cp.c (ipcp_update_profiling): Correct
21144 negative scale factor due to insane profile data.
21145
21146 2011-04-08 Xinliang David Li <davidxl@google.com>
21147
21148 * final.c (dump_basic_block_info): New function.
21149 (final): Dump basic block.
21150 (final_scan_insn): Remove old dump.
21151
21152 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
21153
21154 PR target/47829
21155 * config.gcc (i386-*-freebsd): Disable unwind table generation for
21156 crtbegin/crtend.
21157
21158 2011-04-08 Michael Matz <matz@suse.de>
21159
21160 PR middle-end/48389
21161 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
21162 functions.
21163 (rebuild_jump_labels): Call rebuild_jump_labels_1.
21164 * rtl.h (rebuild_jump_labels_chain): Declare.
21165 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
21166 insns inserted on edges.
21167
21168 2011-04-08 Joseph Myers <joseph@codesourcery.com>
21169
21170 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
21171 * config/arm/arm-arches.def: New.
21172 * config/arm/arm-opts.h: New.
21173 * config/arm/genopt.sh: New.
21174 * config/arm/arm-tables.opt: New (generated).
21175 * config/arm/arm.c (arm_handle_option, arm_target_help,
21176 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
21177 (all_architectures): Get most table contents from arm-arches.def.
21178 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
21179 arm_selected_tune here.
21180 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
21181 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
21182 (march=, mcpu=, mtune=): Use Enum and Var.
21183 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
21184 (arm.o): Update dependencies.
21185
21186 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
21187
21188 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
21189 of header_file.
21190 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
21191 (write_typed_alloc_defns): Likewise.
21192 (main): Calls write_typed_alloc_defns with output_header.
21193
21194 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
21195
21196 PR inline-asm/48435
21197 * ira-color.c (setup_profitable_hard_regs): Add comments.
21198 Don't take prohibited hard regs into account.
21199 (setup_conflict_profitable_regs): Rename to
21200 get_conflict_profitable_regs.
21201 (check_hard_reg_p): Check prohibited hard regs.
21202
21203 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
21204
21205 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
21206 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
21207 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
21208
21209 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21210
21211 PR target/48366
21212 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
21213 move from floating point to shift amount register.
21214 (emit_move_sequence): Remove secondary reload support for floating
21215 point to shift amount amount register copies.
21216 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
21217 amount register copies.
21218 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
21219 register, return false if mode isn't a scalar integer mode.
21220 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
21221
21222 2011-04-08 Richard Guenther <rguenther@suse.de>
21223
21224 * gimple.c (gimple_call_flags): Remove kludge.
21225
21226 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
21227
21228 * sel-sched.c (sel_region_init): Move call to
21229 sel_setup_region_sched_flags after setup_current_loop_nest.
21230
21231 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
21232
21233 PR rtl-optimization/48272
21234 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
21235 init_insn_reg_pressure_info. Adjust a caller.
21236 * sched-int.h (init_insn_reg_pressure_info): Declare.
21237 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
21238 when sched-pressure is enabled.
21239
21240 2011-04-08 Richard Guenther <rguenther@suse.de>
21241
21242 * gimple.c (gimple_set_modified): Do not queue calls to
21243 MODIFIED_NORETURN_CALLS here ...
21244 * tree-ssa-operands.c (update_stmt_operands): ... but here.
21245
21246 2011-04-08 Richard Guenther <rguenther@suse.de>
21247
21248 PR lto/48467
21249 * toplev.c (lang_dependent_init): Do not open asm_out_file
21250 in WPA mode, nor perform debug machinery initialization.
21251 (finalize): Do not unlink asm_out_file in WPA mode.
21252
21253 2011-04-08 Richard Guenther <rguenther@suse.de>
21254
21255 * gimple.h (gimple_call_fntype): New function.
21256 (gimple_call_return_type): Use it.
21257 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
21258 * gimple-low.c (gimple_check_call_args): Likewise.
21259 * gimple.c (gimple_call_flags): Likewise.
21260 (gimple_call_arg_flags): Likewise.
21261 (gimple_call_return_flags): Likewise.
21262 * tree-cfg.c (verify_gimple_call): Likewise.
21263 (do_warn_unused_result): Likewise.
21264 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
21265 * value-prof.c (gimple_ic_transform): Fix fndecl check.
21266
21267 2011-04-08 Dmitry Melnik <dm@ispras.ru>
21268
21269 PR rtl-optimization/48235
21270 * sel-sched.c (code_motion_process_successors): Recompute the last
21271 insn in basic block if control flow changed.
21272 (code_motion_path_driver): Ditto. Recompute the first insn as well.
21273 Update condition for ilist_remove.
21274
21275 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
21276
21277 PR rtl-optimization/48302
21278 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
21279 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
21280 it to record added preheader blocks.
21281 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
21282 on to sel_add_loop_preheaders.
21283 (sel_region_init): Move call to setup_current_loop_nest after
21284 sel_init_bbs.
21285
21286 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
21287
21288 PR target/48273
21289 * cfgloop.h (loop_has_exit_edges): New helper.
21290 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
21291 non-clonable.
21292 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
21293 that have no exit edges.
21294
21295 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
21296
21297 PR rtl-optimization/48442
21298 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
21299 all callers. Adjust assert.
21300
21301 2011-04-08 Jakub Jelinek <jakub@redhat.com>
21302
21303 PR tree-optimization/48377
21304 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
21305 is_packed to true even for types with smaller TYPE_ALIGN than
21306 TYPE_SIZE.
21307
21308 2011-04-08 Richard Guenther <rguenther@suse.de>
21309
21310 PR bootstrap/48513
21311 * doc/tm.texi: Re-generate.
21312
21313 2011-04-08 Wei Guozhi <carrot@google.com>
21314
21315 PR target/47855
21316 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
21317 * config/arm/arm.c (arm_attr_length_push_multi): New function.
21318 * config/arm/arm.md (*push_multi): Change the length computation to
21319 call a C function.
21320
21321 2011-04-08 Anatoly Sokolov <aesok@post.ru>
21322
21323 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
21324 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
21325 * doc/tm.texi: Regenerate.
21326 * system.h (ASM_OUTPUT_BSS): Poison.
21327 * varasm.c (asm_output_bss): Remove function.
21328 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
21329
21330 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
21331 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
21332 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
21333 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
21334 Likewise.
21335 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
21336 Likewise.
21337 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
21338 Likewise.
21339 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
21340
21341 2011-04-07 Joseph Myers <joseph@codesourcery.com>
21342
21343 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
21344 EnumValue lines.
21345
21346 2011-04-07 Joseph Myers <joseph@codesourcery.com>
21347
21348 * config/m68k/m68k.c (m68k_handle_option): Don't handle
21349 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
21350 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
21351 OPT_mcpu32.
21352 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
21353 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
21354 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
21355 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
21356 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
21357 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
21358 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
21359 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
21360 options. Don't map other m68k options manually. Don't handle
21361 old-style options as canonical.
21362 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
21363 * doc/install.texi (m68k-*-*): Document binutils version requirement.
21364
21365 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
21366
21367 * basic-block.h (force_nonfallthru): Move to...
21368 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
21369 (force_nonfallthru): ...here.
21370 * cfghooks.c (force_nonfallthru): New function.
21371 * cfgrtl.c (force_nonfallthru): Rename into...
21372 (rtl_force_nonfallthru): ...this.
21373 (commit_one_edge_insertion): Do not set AUX field.
21374 (commit_edge_insertions): Do not discover new basic blocks.
21375 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
21376 (cfg_layout_rtl_cfg_hooks): Likewise.
21377 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
21378 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
21379 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
21380
21381 2011-04-07 Anatoly Sokolov <aesok@post.ru>
21382
21383 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
21384 Remove macros.
21385
21386 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
21387
21388 * config/i386/sse.md: Update copyright year.
21389 (avxcvtvecmode): Remove.
21390 (sse_movhlps): Merge with *avx_movhlps.
21391 (sse_movlhps): Merge with *avx_movlhps.
21392 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
21393 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
21394 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
21395 (sse_loadhps): Merge with *avx_loadhps.
21396 (sse_storelps): Merge with *avx_storelps.
21397 (sse_loadlps): Merge with *avx_loadlps.
21398 (sse_movss): Merge with *avx_movss.
21399 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
21400 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
21401 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
21402 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
21403 (vec_set<mode>_0): Ditto.
21404 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
21405 (sse4_1_insertps): Merge with *avx_insertps.
21406 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
21407 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
21408 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
21409 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
21410 (sse2_storehpd): Merge with *avx_storehpd.
21411 (sse2_loadhpd): Merge with *avx_loadhpd.
21412 (sse2_loadlpd): Merge with *avx_loadlpd.
21413 (sse2_movsd): Merge with *avx_movsd.
21414 (*vec_concatv2df): Merge with *vec_concatv2df.
21415
21416 2011-04-07 Jakub Jelinek <jakub@redhat.com>
21417
21418 PR debug/48343
21419 * combine.c (combine_instructions): Add last_combined_insn,
21420 update it if insn is after it, pass it to all try_combine calls.
21421 (try_combine): Add last_combined_insn parameter, pass it instead of
21422 i3 to propagate_for_debug.
21423
21424 2011-04-07 Nick Clifton <nickc@redhat.com>
21425
21426 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
21427 to handle MDR <-> data register transfers.
21428 (movhi_internal): Likewise.
21429
21430 2011-04-07 Alan Modra <amodra@gmail.com>
21431
21432 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
21433 previous stack info.
21434
21435 2011-04-07 Tom de Vries <tom@codesourcery.com>
21436
21437 PR target/43920
21438 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
21439 flow_find_cross_jump. Swap variables to implement backward replacement.
21440 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
21441
21442 2011-04-07 Tom de Vries <tom@codesourcery.com>
21443
21444 PR target/43920
21445 * cfgcleanup.c (walk_to_nondebug_insn): New function.
21446 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
21447 and bb2.
21448 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
21449 src1 or src2. Redirect edges to the last basic block. Update
21450 frequency and count on multiple basic blocks in case of fallthru.
21451
21452 2011-04-07 Tom de Vries <tom@codesourcery.com>
21453
21454 PR target/43920
21455 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
21456 function.
21457 (old_insns_match_p): Change return type. Replace return false/true
21458 with return dir_none/dir_both. Use can_replace_by.
21459 (flow_find_cross_jump): Add dir_p parameter. Init replacement
21460 direction from dir_p. Register replacement direction in dir, last_dir
21461 and afterlast_dir. Handle new return type of old_insns_match_p using
21462 merge_dir. Return replacement direction in dir_p.
21463 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
21464 return type of old_insns_match_p.
21465 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
21466 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
21467 flow_find_cross_jump.
21468 * basic-block.h (enum replace_direction): New type.
21469 (flow_find_cross_jump): Add parameter to declaration.
21470
21471 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
21472
21473 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
21474 (AVXMODEDCVTPS2DQ): Ditto.
21475 (VEC_FLOAT_MODE): Ditto.
21476 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
21477 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
21478 (<any_logic:code><mode>3): Use VF mode iterator.
21479 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
21480 Use VF mode iterator.
21481 (copysign<mode>3): Use VF mode iterator.
21482 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
21483 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
21484 (*<any_logic:code><MODEF:mode>3): Merge with
21485 *avx_<any_logic:code><MODEF:mode>3.
21486 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
21487 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
21488 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
21489 (avx_cvtdq2ps<avxmodesuffix>): Remove.
21490 (sse2_cvtdq2ps): Use %v modifier.
21491 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
21492 (avx_cvtps2dq<avxmodesuffix>): Remove.
21493 (sse2_cvtps2dq): Use %v modifier.
21494 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
21495 (avx_cvttps2dq<avxmodesuffix>): Remove.
21496 (sse2_cvttps2dq): Use %v modifier.
21497 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
21498 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
21499 (sse2_cvtsd2siq): Fix insn template.
21500 (sse2_cvtsd2siq_2): Ditto.
21501 (sse2_cvttsd2siq): Ditto.
21502 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
21503 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
21504
21505 2011-04-06 Joseph Myers <joseph@codesourcery.com>
21506
21507 * gcov-io.c: Use GCC Runtime Library Exception.
21508
21509 2011-04-06 Jakub Jelinek <jakub@redhat.com>
21510
21511 PR debug/48466
21512 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
21513 as base_reg whatever register reg has been eliminated to, instead
21514 of hardcoding STACK_POINTER_REGNUM.
21515
21516 2011-04-06 Joseph Myers <joseph@codesourcery.com>
21517
21518 * doc/tm.texi.in: Document C target hooks as separate from general
21519 target hooks.
21520 * doc/tm.texi: Regenerate.
21521 * genhooks.c (struct hook_desc): Add docname field.
21522 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
21523 docname field.
21524 (hook_array): Include c-target.def.
21525 (emit_documentation): Use docname field in output.
21526 (emit_init_macros): Take docname argument. Only emit definitions
21527 for hooks matching docname.
21528 (main): Expect additional arguments in all cases. Pass argument
21529 to emit_init_macros.
21530 * target.def: Move initial macro definitions and comments to
21531 target-hooks-macros.h.
21532 (gcc_targetcm): Move to c-family/c-target.def.
21533 * target.h (targetcm): Move declaration to c-family/c-target.h.
21534 * targhooks.c (default_handle_c_option): Move to
21535 c-family/c-opts.c.
21536 * targhooks.h (default_handle_c_option): Move declaration to
21537 c-family/c-common.h.
21538 * target-hooks-macros.h: New file.
21539 * config.gcc (target_has_targetcm): Define and use to add to
21540 c_target_objs and cxx_target_objs.
21541 * config/default-c.c: New file.
21542 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
21543 of target.h and target-def.h.
21544 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
21545 (darwin_objc_construct_string, darwin_cfstring_ref_p,
21546 darwin_check_cfstring_format_arg): Make static.
21547 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
21548 TARGET_STRING_OBJECT_REF_TYPE_P,
21549 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
21550 * config/darwin-protos.h (darwin_objc_construct_string,
21551 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
21552 declare.
21553 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
21554 TARGET_STRING_OBJECT_REF_TYPE_P,
21555 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
21556 * config/t-darwin (darwin-c.o): Update dependencies.
21557 * system.h (TARGET_HAS_TARGETCM): Poison.
21558 * Makefile.in (TARGET_H): Update.
21559 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
21560 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
21561 (default-c.o): New target.
21562 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
21563 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
21564 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
21565 c-target.def.
21566 (build/genhooks.o): Update dependencies.
21567
21568 2011-04-06 Richard Guenther <rguenther@suse.de>
21569
21570 * ipa-inline.c (enum inlining_mode): Remove.
21571 (cgraph_flatten): Use some other token.
21572 (cgraph_edge_early_inlinable_p): New function, split out from ...
21573 (cgraph_perform_always_inlining): New function, split out from ...
21574 (cgraph_decide_inlining_incrementally): ... here.
21575 (cgraph_mark_inline_edge): Adjust.
21576 (cgraph_early_inlining): Re-structure.
21577 (pass_early_inline): Require SSA form.
21578
21579 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
21580 Julian Brown <julian@codesourcery.com>
21581 Mark Shinwell <shinwell@codesourcery.com>
21582
21583 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
21584 LO_REGS only for Thumb-1.
21585 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
21586 be used in short instructions when optimising for size on Thumb-2.
21587
21588 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
21589
21590 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
21591 associated with user returns to be preserved.
21592
21593 2011-04-06 Tristan Gingold <gingold@adacore.com>
21594
21595 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
21596 symbol_queue_size, DBXOUT_DECR_NESTING,
21597 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
21598 if XCOFF_DEBUGGING_INFO.
21599
21600 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
21601
21602 * config/i386/i386.md (attribute isa): New.
21603 (attribute enabled): New.
21604 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
21605 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
21606 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
21607 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
21608 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
21609 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21610 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
21611 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
21612
21613 * config/i386/sse.md (VF): New mode iterator.
21614 (VF1): Ditto.
21615 (VF2): Ditto.
21616 (VF_128): Ditto.
21617 (SSEMODEF4): Remove.
21618 (attribute sse): Handle V8SF and V4DF modes.
21619 (<absneg:code><mode>2): Use VF mode iterator.
21620 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
21621 mode iterator.
21622 (<plusminus_insn><mode>3): Use VF mode iterator.
21623 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
21624 Use VF mode iterator.
21625 (<sse>_vm<plusminus_insn><mode>3): Merge with
21626 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
21627 (mul<mode>3): Use VF mode iterator.
21628 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
21629 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
21630 mode iterator.
21631 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
21632 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
21633 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
21634 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
21635 mode iterator.
21636 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
21637 Use VF1 mode iterator.
21638 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
21639 (sqrt<VF2:mode>2): New expander.
21640 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
21641 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
21642 and sqrtv2df2. Use VF mode iterator.
21643 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
21644 mode iterator.
21645 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
21646 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
21647 Use VF1 mode iterator.
21648 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
21649 (<smaxmin:code><mode>3): Use VF mode iterator.
21650 (*<smaxmin:code><mode>3_finite): Merge with
21651 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
21652 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21653 (<sse>_vm<smaxmin:code><mode>2): Merge with
21654 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
21655 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
21656 mode iterator.
21657 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
21658 mode iterator.
21659 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
21660 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
21661 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
21662 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
21663 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
21664 VF mode iterator.
21665 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
21666 Use VF_128 mode iterator.
21667 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
21668 mode iterator.
21669 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
21670 VF_128 mode iterator.
21671 (vcond<mode>): Use VF mode iterator.
21672 * config/i386/predicates.md (sse_comparison_operator): Merge with
21673 avx_comparison_float_operator. Do not declare as special_predicate.
21674 * config/i386/i386.c (struct builtin_description): Update for renamed
21675 compare patterns.
21676 (ix86_expand_args_builtin): Ditto.
21677 (ix86_expand_sse_compare_mask): Ditto.
21678
21679 2011-04-06 Richard Guenther <rguenther@suse.de>
21680
21681 * tree-inline.c (estimate_num_insns): For calls simply account
21682 for all passed arguments and a used return value.
21683
21684 2011-04-06 Richard Guenther <rguenther@suse.de>
21685
21686 PR tree-optimization/47663
21687 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
21688 call_stmt_time fields.
21689 (cgraph_edge_inlinable_p): Declare.
21690 (cgraph_edge_recursive_p): New inline function.
21691 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
21692 (cgraph_clone_edge): Copy it.
21693 * ipa-inline.c (cgraph_estimate_edge_time): New function.
21694 Account for call stmt time.
21695 (cgraph_estimate_time_after_inlining): Take edge argument.
21696 (cgraph_estimate_edge_growth): Account call stmt size.
21697 (cgraph_estimate_size_after_inlining): Take edge argument.
21698 (cgraph_mark_inline_edge): Adjust.
21699 (cgraph_check_inline_limits): Likewise.
21700 (cgraph_recursive_inlining_p): Remove.
21701 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
21702 (cgraph_decide_recursive_inlining): Take edge argument and
21703 adjust.
21704 (cgraph_decide_inlining_of_small_functions): Do not avoid
21705 diags for recursive inlining here.
21706 (cgraph_flatten): Adjust.
21707 (cgraph_decide_inlining_incrementally): Likewise.
21708 (estimate_function_body_sizes): Remove call cost handling.
21709 (compute_inline_parameters): Initialize caller edge call costs.
21710 (cgraph_estimate_edge_growth): New function.
21711 (cgraph_estimate_growth): Use it.
21712 (cgraph_edge_badness): Likewise.
21713 (cgraph_check_inline_limits): Take an edge argument.
21714 (cgraph_decide_inlining_of_small_functions): Adjust.
21715 (cgraph_decide_inlining): Likewise.
21716 * tree-inline.c (estimate_num_insns): Only account for call
21717 return value if it is used.
21718 (expand_call_inline): Avoid diagnostics on recursive inline
21719 functions here.
21720 * lto-cgraph.c (lto_output_edge): Output edge call costs.
21721 (input_edge): Input edge call costs.
21722
21723 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21724
21725 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
21726
21727 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
21728
21729 * doc/invoke.texi (Spec Files): Fix typo.
21730
21731 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
21732
21733 * profile.c (branch_prob): Move declaration of local variable. Remove
21734 obsolete ??? comment. Expand the location explicitly instead of using
21735 the LOCATION_FILE and LOCATION_LINE macros.
21736
21737 2011-04-06 Wei Guozhi <carrot@google.com>
21738
21739 PR target/47855
21740 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
21741 (arm_cond_branch): Likewise.
21742 (arm_cond_branch_reversed): Likewise.
21743 (arm_jump): Likewise.
21744 (push_multi): Likewise.
21745 * config/arm/constraints.md (Py): New constraint.
21746
21747 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21748
21749 PR bootstrap/48471
21750 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
21751 Move these...
21752 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
21753 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
21754 #ifdef DBX_DEBUGGING_INFO.
21755
21756 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
21757
21758 PR bootstrap/48403
21759 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
21760 if old and new states differ.
21761
21762 2011-04-05 Joseph Myers <joseph@codesourcery.com>
21763
21764 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
21765 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
21766 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
21767 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
21768 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
21769 mcfv4e): Use Alias.
21770 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
21771 ColdFire options to -mcpu= options.
21772
21773 2011-04-05 Jeff Law <law@redhat.com>
21774
21775 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
21776 check if BB is a successor of LOOP->header and return
21777 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
21778
21779 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
21780
21781 * cprop.c (struct reg_use): Remove.
21782 (reg_use_table): Make an array of RTX.
21783 (find_used_regs, constprop_register, local_cprop_pass,
21784 bypass_block): Simplify users of reg_use_table.
21785 (cprop_insn): Likewise. Iterate if copy propagation succeeded
21786 on one of the uses found by find_used_regs.
21787
21788 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21789
21790 PR bootstrap/48469
21791 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
21792 declaration.
21793
21794 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21795
21796 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
21797 as an rtx.
21798 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
21799
21800 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
21801
21802 PR middle-end/48441
21803 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
21804
21805 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21806
21807 * combine.c: Include obstack.h.
21808 (struct insn_link): Define.
21809 (uid_log_links): Adjust type.
21810 (FOR_EACH_LOG_LINK): New macro.
21811 (insn_link_obstack): Declare.
21812 (alloc_insn_link): Define.
21813 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
21814 type of link variables.
21815 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
21816 (try_combine, record_promoted_values, distribute_notes): Likewise.
21817 (distribute_links): Likewise. Tweak prototype.
21818 (clear_log_links): Delete.
21819 (adjust_for_new_dest): Call alloc_insn_link.
21820 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
21821
21822 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21823
21824 * gcse.c (modify_mem_list): Convert to an array of VECs.
21825 (canon_modify_mem_list, compute_transp): Tweak formatting.
21826 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
21827 (load_killed_in_block_p): Likewise.
21828 (record_last_mem_set_info): Likewise.
21829 (clear_modify_mem_tables): Likewise.
21830
21831 2011-04-05 Tom de Vries <tom@codesourcery.com>
21832
21833 PR middle-end/48461
21834 * function.c (emit_use_return_register_into_block): Only define if
21835 HAVE_return.
21836
21837 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
21838
21839 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
21840
21841 2011-04-05 Joseph Myers <joseph@codesourcery.com>
21842
21843 * config/rx/rx-opts.h: New.
21844 * config/rx/rx.c (rx_cpu_type): Remove.
21845 (rx_handle_option): Don't assert that global structures are in
21846 use. Access variables via opts pointer. Defer most handling of
21847 OPT_mint_register_. Use error_at.
21848 (rx_option_override): Handle deferred OPT_mint_register_ here.
21849 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
21850 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
21851 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
21852 (rx_cpu_types): New Enum and EnumValue entries.
21853 (mint-register=): Use Defer and use Var accordingly.
21854
21855 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21856
21857 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
21858 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
21859 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
21860 Move these...
21861 (debug_free_queue, debug_nesting, symbol_queue_index):
21862 ...and these...
21863 * dbxout.c: ...to here. Make static.
21864
21865 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21866
21867 * gcse.c (modify_pair): Define. Define a VEC of it.
21868 (canon_modify_mem_list): Convert to an array of VECs.
21869 (free_insn_expr_list_list): Delete.
21870 (clear_modify_mem_tables): Call VEC_free instead.
21871 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
21872 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
21873 (canon_list_insert, compute_transp): Likewise.
21874
21875 2011-04-05 Tom de Vries <tom@codesourcery.com>
21876
21877 PR target/43920
21878 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
21879 for size.
21880
21881 2011-04-05 Tom de Vries <tom@codesourcery.com>
21882
21883 PR target/43920
21884 * function.c (emit_use_return_register_into_block): New function.
21885 (thread_prologue_and_epilogue_insns): Use
21886 emit_use_return_register_into_block.
21887
21888 2011-04-05 Tom de Vries <tom@codesourcery.com>
21889
21890 PR target/43920
21891 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
21892 insn.
21893
21894 2011-04-05 Tom de Vries <tom@codesourcery.com>
21895
21896 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
21897
21898 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
21899
21900 * config/arm/arm.md (define_constants for unspec): Replace with
21901 define_c_enum.
21902 (define_constants for unspecv): Replace with define_c_enum.
21903 * config/arm/neon.md (define_constants for unspec): Replace with
21904 define_c_enum.
21905
21906 2011-04-04 Richard Henderson <rth@redhat.com>
21907
21908 PR bootstrap/48400
21909 * dwarf2out.c (output_line_info): Always emit line info from
21910 at least one section.
21911 (dwarf2out_init): Create text_section_line_info here ...
21912 (set_cur_line_info_table): ... not here.
21913
21914 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
21915
21916 PR target/48380
21917 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
21918 not called.
21919
21920 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
21921
21922 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
21923
21924 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
21925 (expr_equiv_p): Remove.
21926 (insert_set_in_table): Look at <dest, src> pair instead of expr.
21927 (hash_scan_set): Update call to insert_set_in_table.
21928 (dump_hash_table): Dump <dest, src> pair.
21929 (lookup_set): Simplify. Lookup <dest, src> pair.
21930 (compute_transp): Remove, fold heavily simplified code into...
21931 (compute_local_properties): ...here. Expect COMP and TRANSP
21932 unconditionally.
21933 (find_avail_set): Take set directly from struct expr.
21934 (find_bypass-set): Likewise.
21935 (bypass_block): Likewise.
21936 (cprop_insn): Likewise. Remove redundant INSN_P test.
21937
21938 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
21939 checks on form of COND from find_implicit_sets to here.
21940 (find_implicit_sets): Cleanup control flow. Split critical edges
21941 if it exposes implicit sets. Allocate/resize implicit_sets as
21942 necessary.
21943 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
21944 changed something. Run df_analyze after find_implicit_sets if any
21945 edges were split. Do not allocate implicit_sets here.
21946
21947 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
21948 (gcse_obstack): Renamed to cprop_obstack.
21949 (GNEW, GNEWVEC, GNEWVAR): Remove.
21950 (gmalloc): Remove.
21951 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
21952 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
21953 (gcse_alloc): Likewise, and rename to cprop_alloc.
21954 (alloc_gcse_men, free_gcse_mem): Remove.
21955 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
21956 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
21957 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
21958
21959 * cprop.c (oprs_not_set_p): Remove.
21960 (mark_set, mark_clobber): Remove.
21961 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
21962 (reg_not_set_p): New function.
21963 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
21964 (cprop_insn): Likewise.
21965 (cprop_jump): Use FOR_EACH_EDGE.
21966
21967 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
21968
21969 PR bootstrap/48403
21970 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
21971 (rank_for_schedule): Use scheduled_insns vector instead of
21972 last_scheduled_insn.
21973 (ok_for_early_queue_removal): Likewise.
21974 (queue_to_ready): Search forward in nonscheduled_insns_begin if
21975 we have a dbg_cnt.
21976 (choose_ready): Likewise.
21977 (commit_schedule): Use VEC_iterate.
21978 (schedule_block): Initialize nonscheduled_insns_begin. If we have
21979 a dbg_cnt, use it and ensure the first insn is in the ready list.
21980 (haifa_sched_init): Allocate scheduled_insns.
21981 (sched_extend_ready_list): Don't allocate it; reserve space.
21982 (haifa_sched_finish): Free it.
21983
21984 2011-04-04 Joseph Myers <joseph@codesourcery.com>
21985
21986 * optc-gen.awk: Always remove type from Variable entry before
21987 recording in var_seen.
21988
21989 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
21990
21991 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
21992 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
21993 call to tidy_fallthru_edges.
21994
21995 2011-04-04 Joseph Myers <joseph@codesourcery.com>
21996
21997 * doc/options.texi (ToLower): Document.
21998 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
21999 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
22000 * opts.h (cl_option): Add cl_tolower field.
22001 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
22002 arguments with lowercase strings.
22003 * config/rx/rx.opt (mcpu=): Add ToLower.
22004 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
22005 argument.
22006
22007 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
22008
22009 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
22010
22011 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
22012
22013 * config/vax/vax.c: Include reload.h.
22014
22015 2011-04-04 Anatoly Sokolov <aesok@post.ru>
22016
22017 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
22018 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
22019 (sparc_preferred_reload_class): New function.
22020
22021 2011-04-04 Jakub Jelinek <jakub@redhat.com>
22022
22023 PR debug/48401
22024 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
22025 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
22026
22027 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
22028
22029 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
22030 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
22031
22032 2011-04-03 Anatoly Sokolov <aesok@post.ru>
22033
22034 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
22035 (ASM_OUTPUT_ALIGNED_BSS): Define.
22036
22037 2011-04-03 Michael Matz <matz@suse.de>
22038
22039 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
22040 and next_slot members.
22041 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
22042 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
22043 (lto_streamer_cache_append): Declare.
22044 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
22045 unsigned index, remove offset parameter, ensure that we append
22046 or update existing entries.
22047 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
22048 parameter, update next_slot for append.
22049 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
22050 parameter.
22051 (lto_streamer_cache_insert_at): Likewise.
22052 (lto_streamer_cache_append): New function.
22053 (lto_streamer_cache_lookup): Use unsigned index.
22054 (lto_streamer_cache_get): Likewise.
22055 (lto_record_common_node): Don't test tree_node_can_be_shared.
22056 (preload_common_node): Adjust call to lto_streamer_cache_insert.
22057 (lto_streamer_cache_delete): Don't free offsets member.
22058 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
22059 (lto_output_string_with_length): Use lto_output_data_stream.
22060 (lto_output_tree_header): Remove ix parameter, don't write it.
22061 (lto_output_builtin_tree): Likewise.
22062 (lto_write_tree): Adjust callers to above, don't track and write
22063 offset, write unsigned index.
22064 (output_unreferenced_globals): Don't emit all global vars.
22065 (write_global_references): Use unsigned indices.
22066 (lto_output_decl_state_refs): Likewise.
22067 (write_symbol): Likewise.
22068 * lto-streamer-in.c (lto_input_chain): Move earlier.
22069 (input_function): Use unsigned index.
22070 (input_alias_pairs): Don't read and then ignore all global vars.
22071 (lto_materialize_tree): Remove ix_p parameter, don't read index,
22072 don't pass it back, use lto_streamer_cache_append.
22073 (lto_register_var_decl_in_symtab): Use unsigned index.
22074 (lto_register_function_decl_in_symtab): Likewise.
22075 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
22076 index.
22077 (lto_get_builtin_tree): Don't read index, use
22078 lto_streamer_cache_append.
22079 (lto_read_tree): Adjust call to lto_materialize_tree.
22080
22081 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
22082 don't use function calls in arguments to MIN.
22083
22084 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
22085 twice.
22086
22087 * gimple.c (gimple_type_leader_entry): Mark deletable.
22088
22089 2011-04-03 Alan Modra <amodra@gmail.com>
22090
22091 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
22092
22093 2011-04-03 Michael Matz <matz@suse.de>
22094
22095 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
22096 an integer.
22097 * tree.h (tree_decl_non_common.vindex): Adjust comment.
22098
22099 2011-04-03 Michael Matz <matz@suse.de>
22100
22101 * cgraphbuild.c (record_reference): Canonicalize constructor values.
22102 * gimple-fold.c (canonicalize_constructor_val): Accept being called
22103 without function context.
22104 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
22105 current_function_decl and cfun.
22106
22107 2011-04-03 Michael Matz <matz@suse.de>
22108
22109 * tree.c (decl_init_priority_insert): Don't create entry for
22110 default priority.
22111 (decl_fini_priority_insert): Ditto.
22112 (fields_compatible_p, find_compatible_field): Remove.
22113 * tree.h (fields_compatible_p, find_compatible_field): Remove.
22114 * gimple.c (gimple_compare_field_offset): Adjust block comment.
22115
22116 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
22117
22118 * combine.c (try_combine): Remove useless local variable.
22119
22120 2011-04-03 Richard Guenther <rguenther@suse.de>
22121 Ira Rosen <ira.rosen@linaro.org>
22122
22123 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
22124 non-variable offsets and compare the remaining bases of the two
22125 accesses instead of looking for exact same data-ref.
22126
22127 2011-04-02 Kai Tietz <ktietz@redhat.com>
22128
22129 PR target/48416
22130 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
22131
22132 * i386.c (ix86_is_msabi_thiscall): New helper function.
22133 (ix86_is_type_thiscall): New helper function.
22134 (ix86_comp_type_attributes): Handle thiscall for method-functions
22135 special.
22136 (init_cumulative_args): Likewise.
22137 (find_drap_reg): Likewise.
22138 (ix86_static_chain): Likewise.
22139 (x86_this_parameter): Likewise.
22140 (x86_output_mi_thunk): Likewise.
22141
22142 2011-04-01 Olivier Hainque <hainque@adacore.com>
22143 Nicolas Setton <setton@adacore.com>
22144 Eric Botcazou <ebotcazou@adacore.com>
22145
22146 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
22147 (add_gnat_descriptive_type_attribute): New function.
22148 (gen_array_type_die): Call it.
22149 (gen_enumeration_type_die): Likewise.
22150 (gen_struct_or_union_type_die): Likewise.
22151 (modified_type_die): Likewise.
22152 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
22153 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
22154 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
22155
22156 2011-04-01 Jakub Jelinek <jakub@redhat.com>
22157
22158 PR bootstrap/48148
22159 * dwarf2out.c (resolve_addr): Don't call force_decl_die
22160 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
22161
22162 Revert:
22163 2011-03-17 Richard Guenther <rguenther@suse.de>
22164
22165 PR bootstrap/48148
22166 * lto-cgraph.c (input_overwrite_node): Clear the abstract
22167 origin for decls in other ltrans units.
22168 (input_varpool_node): Likewise.
22169
22170 2011-04-01 Jakub Jelinek <jakub@redhat.com>
22171
22172 PR middle-end/48335
22173 * expr.c (expand_assignment): Handle all possibilities
22174 if TO_RTX is CONCAT.
22175 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
22176 (store_split_bit_field): If SUBREG_REG (op0) or
22177 op0 itself has smaller mode than word, return it
22178 for offset 0 and const0_rtx for out-of-bounds stores.
22179 If word is const0_rtx, skip it.
22180
22181 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
22182
22183 * config/h8300/h8300.c (print_operand_address): Rename to...
22184 (h8300_print_operand_address): ...this. Make static. Adjust comments.
22185 Call h8300_print_operand and h8300_print_operand_address instead of
22186 print_operand and print_operand_address. Declare.
22187 (print_operand): Renake to...
22188 (h8300_print_operand): ...this. Make static. Adjust comments.
22189 Call h8300_print_operand instead of print_operand. Declare.
22190 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
22191 (h8300_register_move_cost): Likewise.
22192 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
22193 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
22194 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
22195 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
22196 * config/h8300/h8300-protos.h (print_operand): Delete.
22197 (print_operand_address): Delete.
22198
22199 2011-04-01 Richard Henderson <rth@redhat.com>
22200
22201 PR 48400
22202 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
22203 in strict mode before dwarf4. Re-order tests to early out
22204 before switching sections.
22205
22206 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
22207
22208 * config/h8300/constraints.md: New file.
22209 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
22210 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
22211 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
22212 * config/h8300/predicates.md (bit_operand): Likewise.
22213 (incdec_operand): Use satisfies_constraint_M and
22214 satisfies_constraint_O. Don't use C code block.
22215 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
22216 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
22217 (compute_mov_length): Use satisfies_constraint_G.
22218 (fix_bit_operand): Use satisfies_constraint_U.
22219 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
22220 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
22221 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
22222 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
22223 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
22224 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
22225 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22226 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
22227 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
22228 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
22229 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
22230 (EXTRA_MEMORY_CONSTRAINT): Delete.
22231
22232 2011-04-01 Andrew Pinski <pinskia@gmail.com>
22233 Michael Meissner <meissner@linux.vnet.ibm.com>
22234
22235 PR target/48262
22236 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
22237 operands, as per the specifications.
22238
22239 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
22240 (vec_extract_evenv4sf): Ditto.
22241 (vec_extract_evenv8hi): Ditto.
22242 (vec_extract_evenv16qi): Ditto.
22243 (vec_extract_oddv4si): Ditto.
22244
22245 2011-03-31 Mark Wielaard <mjw@redhat.com>
22246
22247 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
22248 high_pc attribute if the CU has no associated code. Only output
22249 DW_AT_entry_pc for CU if not generating strict dwarf and
22250 dwarf_version < 4.
22251
22252 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
22253
22254 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
22255 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
22256 out of ...
22257 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
22258 * final.c (final_start_function): Call the new function rather
22259 than using a NULL argument for dwarf2out_frame_debug.
22260
22261 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
22262 that contains the prologue.
22263
22264 * haifa-sched.c (queue_insn): New arg REASON. All callers
22265 changed. Print it in debugging output.
22266
22267 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
22268
22269 * sched-ebb.c (begin_schedule_ready): Remove second argument.
22270 Split most of the code into...
22271 (begin_move_insn): ... here. New function.
22272 (ebb_sched_info): Add a pointer to it.
22273 * haifa-sched.c (scheduled_insns): New static variable.
22274 (sched_extend_ready_list): Allocate it.
22275 (schedule_block): Use it to record the order of scheduled insns.
22276 Perform RTL changes to move insns only after all scheduling
22277 decisions have been made.
22278 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
22279 begin_move_insn field.
22280 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
22281 * sched-int.h (struct haifa_sched_info): Remove second argument
22282 from begin_schedule_ready hook. Add new member begin_move_insn.
22283 * sched-rgn.c (begin_schedule_ready): Remove second argument.
22284 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
22285
22286 * haifa-sched.c (prune_ready_list): New function, broken out of
22287 schedule_block.
22288 (schedule_block): Use it.
22289
22290 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22291
22292 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
22293
22294 2011-04-01 Kai Tietz <ktietz@redhat.com>
22295
22296 * config.gcc (*-*-mingw*): Allow as option the
22297 posix threading model.
22298 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
22299 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
22300 definition.
22301 (CPP_SPEC): Add pthread/no-pthread handling.
22302 (LIB_SPEC): Likewise.
22303 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
22304 (LIB_SPEC): Likewise.
22305 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
22306 flag to pass -pthread option for shared libgcc build.
22307 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
22308 for shared libgcc build.
22309 * config/i386/t-mingw-pthread: New file.
22310 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
22311 New define to enable use of library pthread by default.
22312 * config/i386/mingw.opt (pthread): New driver option.
22313 (no-pthread): New driver option.
22314 * config/i386/cygming.opt: Make sure trailing empty line is retained.
22315 * config/i386/mingw-w64.opt: Likewise.
22316
22317 2011-04-01 Gary Funck <gary@intrepid.com>
22318
22319 * c-decl.c (grokdeclarator): Fix formatting.
22320
22321 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
22322
22323 * expr.c (emit_block_move_via_movmem): Use n_generator_args
22324 instead of n_operands.
22325 (set_storage_via_setmem): Likewise.
22326 * optabs.c (maybe_gen_insn): Likewise.
22327 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
22328 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
22329 (mips_expand_builtin_direct): Likewise.
22330 * config/spu/spu.c (expand_builtin_args): Likewise.
22331
22332 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
22333
22334 * recog.h (insn_data_d): Add n_generator_args.
22335 * genoutput.c (data): Likewise.
22336 (output_insn_data): Print it.
22337 (max_opno, num_dups): Delete.
22338 (scan_operands): Just fill in "d->operand[...]".
22339 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
22340
22341 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
22342
22343 * gensupport.h (pattern_stats): New structure.
22344 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
22345 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
22346 (max_operand_1, max_operand_vec): Delete.
22347 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
22348
22349 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
22350
22351 * emit-rtl.c (emit_pattern_after_setloc): New function.
22352 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
22353 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
22354 (emit_pattern_after): New function.
22355 (emit_insn_after, emit_jump_insn_after): Call it.
22356 (emit_call_insn_after, emit_debug_insn_after): Likewise.
22357 (emit_pattern_before_setloc): New function.
22358 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
22359 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
22360 Likewise.
22361 (emit_pattern_before): New function.
22362 (emit_insn_before, emit_jump_insn_before): Call it.
22363 (emit_call_insn_before, emit_debug_insn_before): Likewise.
22364
22365 2011-03-31 Richard Henderson <rth@redhat.com>
22366
22367 * dwarf2out.c (dw_separate_line_info_ref): Remove.
22368 (dw_separate_line_info_entry): Remove.
22369 (enum dw_line_info_opcode): New.
22370 (dw_line_info_entry): Use it.
22371 (dw_line_info_table, dw_line_info_table_p): New.
22372 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
22373 (line_info_table, line_info_label_num): Remove.
22374 (line_info_table_in_use): Remove.
22375 (separate_line_info_table): Remove.
22376 (separate_line_info_table_allocated): Remove.
22377 (separate_line_info_table_in_use): Remove.
22378 (LINE_INFO_TABLE_INCREMENT): Remove.
22379 (line_info_label_num): New.
22380 (cur_line_info_table): New.
22381 (text_section_line_info, cold_text_section_line_info): New.
22382 (separate_line_info): New.
22383 (SEPARATE_LINE_CODE_LABEL): Remove.
22384 (print_dwarf_line_table): Remove.
22385 (debug_dwarf): Don't dump it.
22386 (output_one_line_info_table): New.
22387 (output_line_info): Use it.
22388 (new_line_info_table): New.
22389 (set_cur_line_info_table): New.
22390 (dwarf2out_switch_text_section): Use it.
22391 (dwarf2out_begin_function): Likewise.
22392 (push_dw_line_info_entry): New.
22393 (dwarf2out_source_line): Rewrite for new line info tables.
22394 (dwarf2out_init): Remove dead initailizations.
22395
22396 2011-03-31 Joseph Myers <joseph@codesourcery.com>
22397
22398 * opts.h (cl_option): Add comments to fields. Add bit-fields for
22399 various flags.
22400 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
22401 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
22402 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
22403 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
22404 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
22405 * opt-functions.awk (flag_init, switch_bit_fields): New.
22406 (switch_flags): Don't handle flags moved to bit-fields. Don't
22407 generate CL_MISSING_OK or CL_SAVE.
22408 * optc-gen.awk: Update to generate bit-field output as well as
22409 flags field.
22410 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
22411 bit-field instead of CL_REJECT_DRIVER flag.
22412 * opts-common.c (generate_canonical_option,
22413 decode_cmdline_option): Use bit-fields instead of CL_* flags.
22414 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
22415 instead of CL_REJECT_NEGATIVE flag.
22416 * toplev.c (print_switch_values): Use cl_report bit-field instead
22417 of CL_REPORT flag.
22418
22419 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
22420
22421 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
22422 a zero minimum index only if it is redundant.
22423
22424 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
22425
22426 PR rtl-optimization/48381
22427 * ira-color.c (assign_hard_reg): Use hard reg set intersection
22428 instead of ira_class_hard_reg_index for calculating conflicting
22429 hard registers.
22430
22431 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
22432
22433 * cprop.c: Clean up hash table building.
22434 (reg_avail_info): Remove.
22435 (oprs_available_p): Remove.
22436 (record_last_reg_set_info): Remove.
22437 (record_last_set_info): Remove.
22438 (reg_available_p): New function.
22439 (gcse_constant_p): Do not treat unfolded conditions as constants.
22440 (make_set_regs_unavailable): New function.
22441 (hash_scan_set): Simplify with new reg_available_p.
22442 (compute_hash_table_work): Traverse insns stream only once.
22443 Do not compute reg_avail_info. Traverse insns in reverse order.
22444 Record implicit sets after recording explicit sets from the block.
22445
22446 2011-03-31 Michael Matz <matz@suse.de>
22447
22448 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
22449
22450 2011-03-31 Anatoly Sokolov <aesok@post.ru>
22451
22452 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
22453 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
22454 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22455 (h8300_mode_dependent_address_p): New function.
22456 (h8300_get_index): Make static.
22457
22458 2011-03-31 Jeff Law <law@redhat.com>
22459
22460 * reload1.c (elimination_effects): Fix typo in recent change.
22461
22462 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
22463 typo potentially leading to null pointer dereference.
22464
22465 * caller-save.c (new_saved_hard_reg): Eliminate return value.
22466 (setup_save_areas): Corresponding changes to avoid useless
22467 assignments.
22468
22469 * jump.c (reversed_comparison_code_parts): Avoid successive return
22470 statements when REVERSE_CONDITION is defined.
22471
22472 * expr.c (expand_assignment): Avoid useless assignments.
22473 (expand_expr_real_1): Likewise.
22474 (expand_expr_real_2): Avoid useless statements.
22475
22476 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
22477
22478 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
22479
22480 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
22481 statements.
22482
22483 * stmt.c (expand_expr_stmt): Avoid useless assignment.
22484
22485 2011-03-31 Joseph Myers <joseph@codesourcery.com>
22486
22487 PR target/47109
22488 * doc/tm.texi.in (TARGET_VERSION): Remove.
22489 * doc/tm.texi: Regenerate.
22490 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
22491 * collect2.c (main): Don't use TARGET_VERSION.
22492 * mips-tdump.c (main): Don't use TARGET_VERSION.
22493 * mips-tfile.c (main): Don't use TARGET_VERSION.
22494 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
22495 * config/rs6000/vxworksae.h: Remove.
22496 * config/alpha/alpha.h (TARGET_VERSION): Remove.
22497 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
22498 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
22499 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
22500 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
22501 * config/arm/arm.h (TARGET_VERSION): Remove.
22502 * config/arm/coff.h (TARGET_VERSION): Remove.
22503 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
22504 * config/arm/elf.h (TARGET_VERSION): Remove.
22505 * config/arm/freebsd.h (TARGET_VERSION): Remove.
22506 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
22507 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
22508 * config/arm/pe.h (TARGET_VERSION): Remove.
22509 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
22510 * config/arm/semi.h (TARGET_VERSION): Remove.
22511 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
22512 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
22513 * config/arm/vxworks.h (TARGET_VERSION): Remove.
22514 * config/avr/avr.h (TARGET_VERSION): Remove.
22515 * config/bfin/bfin.h (TARGET_VERSION): Remove.
22516 * config/fr30/fr30.h (TARGET_VERSION): Remove.
22517 * config/frv/frv.h (TARGET_VERSION): Remove.
22518 * config/h8300/h8300.h (TARGET_VERSION): Remove.
22519 * config/i386/cygwin.h (TARGET_VERSION): Remove.
22520 * config/i386/darwin.h (TARGET_VERSION): Remove.
22521 * config/i386/darwin64.h (TARGET_VERSION): Remove.
22522 * config/i386/djgpp.h (TARGET_VERSION): Remove.
22523 * config/i386/freebsd.h (TARGET_VERSION): Remove.
22524 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
22525 * config/i386/gnu.h (TARGET_VERSION): Remove.
22526 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
22527 * config/i386/i386elf.h (TARGET_VERSION): Remove.
22528 * config/i386/linux.h (TARGET_VERSION): Remove.
22529 * config/i386/linux64.h (TARGET_VERSION): Remove.
22530 * config/i386/lynx.h (TARGET_VERSION): Remove.
22531 * config/i386/mingw32.h (TARGET_VERSION): Remove.
22532 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
22533 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
22534 * config/i386/netware.h (TARGET_VERSION): Remove.
22535 * config/i386/nto.h (TARGET_VERSION): Remove.
22536 * config/i386/openbsd.h (TARGET_VERSION): Remove.
22537 * config/i386/vxworks.h (TARGET_VERSION): Remove.
22538 * config/ia64/elf.h (TARGET_VERSION): Remove.
22539 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
22540 * config/ia64/hpux.h (TARGET_VERSION): Remove.
22541 * config/ia64/linux.h (TARGET_VERSION): Remove.
22542 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
22543 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
22544 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
22545 * config/lm32/lm32.h (TARGET_VERSION): Remove.
22546 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
22547 * config/m32c/m32c.h (TARGET_VERSION): Remove.
22548 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
22549 * config/m32r/m32r.h (TARGET_VERSION): Remove.
22550 * config/m68k/linux.h (TARGET_VERSION): Remove.
22551 * config/m68k/m68k.h (TARGET_VERSION): Remove.
22552 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
22553 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
22554 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
22555 * config/mep/mep.h (TARGET_VERSION): Remove.
22556 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
22557 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
22558 * config/mips/iris6.h (MACHINE_TYPE): Remove.
22559 * config/mips/linux.h (TARGET_VERSION): Remove.
22560 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
22561 * config/mips/vxworks.h (TARGET_VERSION): Remove.
22562 * config/mmix/mmix.h (TARGET_VERSION): Remove.
22563 * config/mn10300/linux.h (TARGET_VERSION): Remove.
22564 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
22565 * config/pa/pa.h (TARGET_VERSION): Remove.
22566 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
22567 * config/picochip/picochip.h (TARGET_VERSION): Remove.
22568 * config/rs6000/aix.h (TARGET_VERSION): Remove.
22569 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
22570 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
22571 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
22572 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
22573 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
22574 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
22575 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
22576 * config/rs6000/linux.h (TARGET_VERSION): Remove.
22577 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
22578 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
22579 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
22580 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
22581 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
22582 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
22583 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
22584 * config/s390/linux.h (TARGET_VERSION): Remove.
22585 * config/s390/s390.h (TARGET_VERSION): Remove.
22586 * config/s390/tpf.h (TARGET_VERSION): Remove.
22587 * config/score/score.h (TARGET_VERSION): Remove.
22588 * config/sh/linux.h (TARGET_VERSION): Remove.
22589 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
22590 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
22591 * config/sh/sh.h (TARGET_VERSION): Remove.
22592 * config/sh/sh64.h (TARGET_VERSION): Remove.
22593 * config/sh/superh.h (TARGET_VERSION): Remove.
22594 * config/sh/vxworks.h (TARGET_VERSION): Remove.
22595 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
22596 * config/sparc/linux.h (TARGET_VERSION): Remove.
22597 * config/sparc/linux64.h (TARGET_VERSION): Remove.
22598 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
22599 TARGET_NAME32, TARGET_NAME): Remove.
22600 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
22601 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
22602 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
22603 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
22604 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
22605 * config/spu/spu.h (TARGET_VERSION): Remove.
22606 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
22607 * config/v850/v850.h (TARGET_VERSION): Remove.
22608 * config/vax/linux.h (TARGET_VERSION): Remove.
22609 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
22610 * config/xtensa/elf.h (TARGET_VERSION): Remove.
22611 * config/xtensa/linux.h (TARGET_VERSION): Remove.
22612
22613 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
22614
22615 PR target/48142
22616 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
22617 frame-related from frame-unrelated adjustments to the stack pointer.
22618
22619 2011-03-31 Jakub Jelinek <jakub@redhat.com>
22620
22621 * common.opt (fdebug-types-section): Move earlier.
22622 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
22623
22624 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
22625
22626 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
22627 var.
22628
22629 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
22630
22631 * tree.h (CASE_CHAIN): Define.
22632 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
22633 (gimple_redirect_edge_and_branch): Likewise.
22634
22635 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
22636
22637 PR middle-end/48367
22638 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
22639 calculation.
22640
22641 2011-03-30 Jeff Law <law@redhat.com>
22642
22643 * PR bootstrap/48371
22644 * reload1.c (reload): Fix botch in last change.
22645
22646 * reload.h (struct reload): Fix typo introduced in last change.
22647
22648 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22649
22650 * config/arm/arm.opt (mhard-float, msoft-float): Mark
22651 Undocumented. Remove help text.
22652 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
22653 -mhard-float.
22654
22655 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22656
22657 * doc/options.texi (NegativeAlias): Document.
22658 (Alias): Mention NegativeAlias.
22659 * opt-functions.awk: Handle NegativeAlias.
22660 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
22661 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
22662 * opts.h (CL_NEGATIVE_ALIAS): Define.
22663 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
22664 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
22665 OPT_mspe_.
22666 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
22667 Alias entries.
22668 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
22669 mno-spe and mno-isel instead of mspe=no and -misel=no.
22670
22671 2011-03-29 Mark Wielaard <mjw@redhat.com>
22672
22673 * common.opt (fdebug-types-section): New flag.
22674 * doc/invoke.texi: Document new -fno-debug-types-section flag.
22675 * dwarf2out.c (use_debug_types): New define.
22676 (struct die_struct): Mark die_id with GTY desc use_debug_types.
22677 (print_die): Guard output of type unit signatures using
22678 use_debug_types.
22679 (build_abbrev_table): Replace assert of dwarf_version >= 4
22680 with assert on use_debug_types.
22681 (size_of_die): Likewise.
22682 (unmark_dies): Likewise.
22683 (value_format): Decide AT_ref_external form on use_debug_types.
22684 (output_die): Replace dwarf_version version check guard with
22685 use_debug_types where appropriate.
22686 (modified_type_die): Likewise.
22687 (gen_reference_type_die): Likewise.
22688 (dwarf2out_start_source_file): Likewise.
22689 (dwarf2out_end_source_file): Likewise.
22690 (prune_unused_types_walk_attribs): Likewise.
22691 (dwarf2out_finish): Likewise.
22692
22693 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
22694
22695 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
22696
22697 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22698
22699 PR rtl-optimization/48332
22700 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
22701 mode of input operand N and modeN to its actual mode.
22702
22703 2011-03-30 Jeff Law <law@redhat.com>
22704
22705 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
22706 define accessor macro.
22707 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
22708 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
22709 (reg_equiv_init): Likewise.
22710 (reg_equivs_size): New variable.
22711 (reg_equiv_init_size): Remove.
22712 (allocate_initial_values): Move prototype to here from....
22713 * integrate.h (allocate_initial_values): Remove prototype.
22714 * integrate.c: Include reload.h.
22715 (allocate_initial_values): Corresponding changes.
22716 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
22717 (fix_reg_equiv_init, no_equiv): Corresponding changes.
22718 (update_equiv_regs): Corresponding changes.
22719 (ira): Corresponding changes.
22720 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
22721 (push_secondary_reload): Corresponding changes.
22722 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
22723 (make_memloc, find_reloads_address): Corresponding changes.
22724 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
22725 (find_reloads_address_1): Corresponding changes.
22726 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
22727 (refers_to_regno_for_reload_p): Corresponding changes.
22728 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
22729 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
22730 * reload1.c: Include ggc.h.
22731 (grow_reg_equivs): New function.
22732 (replace_pseudos_in, reload): Corresponding changes.
22733 (calculate_needs_all_insns, alter_regs): Corresponding changes.
22734 (eliminate_regs_1, elimination_effects): Corresponding changes.
22735 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
22736 (delete_output_reload): Likewise.
22737 * caller-save.c (mark_referenced_regs): Corresponding changes.
22738 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
22739 * frv/predicates.md (frv_load_operand): Corresponding changes.
22740 * microblaze/microblaze.c (double_memory_operand): Corresponding
22741 changes.
22742 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
22743 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
22744 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
22745 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
22746 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
22747 changes.
22748 * pa/pa.c (emit_move_sequence): Corresponding changes.
22749 * vax/vax.c (nonindexed_address_p): Corresponding changes.
22750
22751 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22752
22753 PR target/47551
22754 * config/arm/arm.c (coproc_secondary_reload_class): Handle
22755 structure modes. Don't check neon_vector_mem_operand for
22756 vector or structure modes.
22757
22758 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22759 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22760
22761 PR target/43590
22762 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
22763 operand 1 and reshuffle the operands to match.
22764 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
22765
22766 2011-03-30 Christian Schüler <cschueler@gmx.de>
22767
22768 PR driver/48208
22769 * config/c.opt (F): Added 'Driver' to -F option.
22770
22771 PR driver/48260
22772 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
22773 handler function.
22774 * config/darwin.opt: Added '-arch' option.
22775
22776 2011-03-30 Nick Clifton <nickc@redhat.com>
22777
22778 * config/rx/rx.md: Add peepholes and patterns to combine
22779 extending loads and simple arithmetic instructions.
22780 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
22781 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
22782 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
22783 modes to use pre-decrement and post-increment addressing.
22784 (rx_is_restricted_memory_address): Add range checking of REG+INT
22785 addresses.
22786 (rx_print_operand): Add support for %Q. Fix handling of %Q.
22787 (rx_memory_move_cost): Adjust cost of stores.
22788 (rx_adjust_insn_length): New function.
22789
22790 2011-03-30 Jakub Jelinek <jakub@redhat.com>
22791
22792 PR c/48305
22793 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
22794 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
22795 matching arg00/arg01 types.
22796
22797 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
22798
22799 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
22800 last_location to UNKNOWN_LOCATION.
22801
22802 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
22803
22804 PR target/48349
22805 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
22806 FLOAT_SSE_REGS.
22807
22808 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22809 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22810
22811 PR bootstrap/48337
22812 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
22813 Init(PROCESSOR_V7).
22814 (sparc_cpu): Likewise.
22815 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
22816 PROCESSOR_V7.
22817
22818 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22819
22820 PR target/48336
22821 PR middle-end/48342
22822 PR rtl-optimization/48345
22823 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
22824 hard regs for given mode from profitable regs when doing secondary
22825 allocation.
22826
22827 2011-03-29 Jeff Law <law@redhat.com>
22828
22829 PR bootstrap/48327
22830 * tree-ssa-threadupdate.c (struct redirection_data): Remove
22831 do_not_duplicate field.
22832 (lookup_redirection_data): Corresponding changes.
22833 (create_duplicates): Always create a template block.
22834 (redirect_edges): Remove code which reused the original block
22835 when it was going to become unreachable code.
22836 (thread_block): Don't set do_not_duplicate field.
22837
22838 2011-03-29 Joseph Myers <joseph@codesourcery.com>
22839
22840 * lto-opts.c (register_user_option_p, lto_register_user_option):
22841 Make type argument unsigned.
22842 * lto-streamer.h (lto_register_user_option): Make type argument
22843 unsigned.
22844 * opth-gen.awk: Make CL_* macros unsigned.
22845 * opts-common.c (find_opt): Make lang_mask argument unsigned.
22846 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
22847 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
22848 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
22849 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
22850 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
22851 (find_opt): Make lang_mask argument unsigned.
22852
22853 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22854
22855 PR rtl-optimization/48331
22856 PR rtl-optimization/48334
22857 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
22858 for any used algorithm.
22859
22860 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22861
22862 * ira-conflicts.c (build_object_conflicts): Add unused attribute
22863 to parent_max.
22864
22865 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
22866
22867 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
22868 (alpha_option_override): Don't set alpha_sr_alias_set.
22869 (emit_frame_store_1): Use gen_frame_mem rather than calling
22870 set_mem_alias_set.
22871 (alpha_expand_epilogue): Ditto.
22872
22873 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
22874
22875 PR tree-optimization/48290
22876 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
22877 vectorization, check that relevant phis in the basic block after
22878 the inner loop are really inner loop's exit phis.
22879
22880 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
22881
22882 PR debug/48190
22883 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
22884 (cached_dw_loc_list_def): New structure.
22885 (cached_dw_loc_list): New typedef.
22886 (cached_dw_loc_list_table): New variable.
22887 (cached_dw_loc_list_table_hash): New function.
22888 (cached_dw_loc_list_table_eq): Likewise.
22889 (add_location_or_const_value_attribute): Take a bool cache_p.
22890 Cache the list when the parameter is true.
22891 (gen_formal_parameter_die): Update caller.
22892 (gen_variable_die): Likewise.
22893 (dwarf2out_finish): Likewise.
22894 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
22895 while generating debug info for the decl.
22896 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
22897 (dwarf2out_init): Initialize cached_dw_loc_list_table.
22898 (resolve_addr): Cache the result of resolving a chain of
22899 location lists.
22900
22901 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
22902
22903 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
22904 conflict object hard regset nodes have intersecting hard reg sets.
22905
22906 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
22907 after regstat_init_n_sets_and_refs.
22908
22909 * ira.c: Add more comments at the top.
22910 (setup_stack_reg_pressure_class, setup_pressure_classes):
22911 Add comments how we compute the register pressure classes.
22912 (setup_allocno_and_important_classes): Add more comments.
22913 (setup_class_translate_array, reorder_important_classes)
22914 (setup_reg_class_relations): Add comments.
22915
22916 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
22917 start of the file.
22918
22919 * ira-color.c: Add 2011 to the Copyright line.
22920 (assign_hard_reg): Add more comments.
22921 (improve_allocation): Ditto.
22922
22923 * ira-costs.c: Add 2011 to the Copyright line.
22924 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
22925 comments.
22926 (setup_regno_cost_classes_by_mode): Ditto.
22927
22928 Initial patches from ira-improv branch:
22929
22930 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
22931
22932 * ira-build.c (ira_create_object): Remove initialization of
22933 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
22934 (ira_create_allocno): Remove initialization of
22935 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
22936 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
22937 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
22938 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
22939 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
22940 Initialize ALLOCNO_ADD_DATA.
22941 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
22942 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
22943 ALLOCNO_REG.
22944 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
22945 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
22946
22947 * ira.c (ira_reallocate): Remove.
22948 (setup_pressure_classes): Call
22949 ira_init_register_move_cost_if_necessary. Use
22950 ira_register_move_cost instead of ira_get_register_move_cost.
22951 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
22952 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
22953
22954 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
22955 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
22956 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
22957 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
22958 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
22959 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
22960 Fix formatting.
22961 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
22962 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
22963 (struct allocno_color_data): New.
22964 (allocno_color_data_t): New typedef.
22965 (allocno_color_data): New definition.
22966 (ALLOCNO_COLOR_DATA): New macro.
22967 (struct object_color_data): New.
22968 (object_color_data_t): New typedef.
22969 (object_color_data): New definition.
22970 (OBJECT_COLOR_DATA): New macro.
22971 (update_copy_costs, calculate_allocno_spill_cost): Call
22972 ira_init_register_move_cost_if_necessary. Use
22973 ira_register_move_cost instead of ira_get_register_move_cost.
22974 (move_spill_restore, update_curr_costs): Ditto.
22975 (allocno_spill_priority): Make it inline.
22976 (color_pass): Allocate and free allocno_color_dat and object_color_data.
22977 (struct coalesce_data, coalesce_data_t): New.
22978 (allocno_coalesce_data): New definition.
22979 (ALLOCNO_COALESCE_DATA): New macro.
22980 (merge_allocnos, coalesced_allocno_conflict_p): Use
22981 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
22982 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
22983 (coalesce_allocnos): Ditto.
22984 (setup_coalesced_allocno_costs_and_nums): Ditto.
22985 (collect_spilled_coalesced_allocnos): Ditto.
22986 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
22987 (setup_slot_coalesced_allocno_live_ranges): Ditto.
22988 (coalesce_spill_slots): Ditto.
22989 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
22990 free allocno_coalesce_data.
22991
22992 * ira-conflicts.c: Fix formatting.
22993 (process_regs_for_copy): Call
22994 ira_init_register_move_cost_if_necessary. Use
22995 ira_register_move_cost instead of ira_get_register_move_cost.
22996 (build_object_conflicts): Optimize.
22997
22998 * ira-costs.c (record_reg_classes): Optimize. Call
22999 ira_init_register_move_cost_if_necessary. Use
23000 ira_register_move_cost, ira_may_move_in_cost, and
23001 ira_may_move_out_cost instead of ira_get_register_move_cost and
23002 ira_get_may_move_cost.
23003 (record_address_regs): Ditto.
23004 (scan_one_insn): Optimize.
23005 (find_costs_and_classes): Optimize.
23006 (process_bb_node_for_hard_reg_moves): Call
23007 ira_init_register_move_cost_if_necessary. Use
23008 ira_register_move_cost instead of ira_get_register_move_cost.
23009
23010 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
23011 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
23012 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
23013 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
23014 definitions.
23015 (ira_initiate_emit_data, ira_finish_emit_data)
23016 (create_new_allocno): New functions.
23017 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
23018 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
23019 Use ira_register_move_cost instead of ira_get_register_move_cost.
23020
23021 * ira-int.h: Fix some comments.
23022 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
23023 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
23024 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
23025 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
23026 add_data.
23027 (struct ira_allocno): Make mode and aclass a bitfield. Move other
23028 bitfield after mode. Make hard_regno a short int. Make
23029 hard_regno short. Remove first_coalesced_allocno and
23030 next_coalesced_allocno. Move mem_optimized_dest_p,
23031 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
23032 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
23033 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
23034 temp, colorable_p. Add new member add_data.
23035 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
23036 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
23037 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
23038 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
23039 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
23040 (ALLOCNO_ADD_DATA): New macro.
23041 (ira_emit_data_t): New typedef.
23042 (struct ira_emit_data): New. Move mem_optimized_dest_p,
23043 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
23044 from struct ira_allocno.
23045 (ALLOCNO_EMIT_DATA): New macro.
23046 (ira_allocno_emit_data, allocno_emit_reg): New.
23047 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
23048 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
23049 (OBJECT_ADD_DATA): New macro.
23050 (ira_reallocate): Remove.
23051 (ira_initiate_emit_data, ira_finish_emit_data): New.
23052 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
23053 (ira_init_register_move_cost_if_necessary): New.
23054 (ira_object_conflict_iter_next): Merge into
23055 ira_object_conflict_iter_cond.
23056 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
23057
23058 * ira-live.c (process_single_reg_class_operands): Call
23059 ira_init_register_move_cost_if_necessary. Use
23060 ira_register_move_cost instead of ira_get_register_move_cost.
23061
23062 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
23063
23064 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
23065
23066 * ira-costs.c: Fix formatting.
23067 (cost_classes, cost_classes_num): Remove.
23068 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
23069 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
23070 (cost_classes_del, cost_classes_htab): New.
23071 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
23072 (initiate_regno_cost_classes, setup_cost_classes): New.
23073 (setup_regno_cost_classes_by_aclass): New.
23074 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
23075 (record_reg_classes): Use regno_cost_classes instead of
23076 cost_classes. Move checking opposite operand up.
23077 (record_address_regs): Use regno_cost_classes
23078 instead of cost_classes.
23079 (scan_one_insn): Ditto. Use always general register.
23080 (print_allocno_costs): Use regno_cost_classes instead of
23081 cost_classes.
23082 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
23083 (find_costs_and_classes): Set up cost classes for each registers.
23084 Use also their mode for this. Use regno_cost_classes instead of
23085 cost_classes.
23086 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
23087 cost_classes.
23088 (free_ira_costs, ira_init_costs): Don't use cost_classes.
23089 (ira_costs, ira_set_pseudo_classes): Call
23090 initiate_regno_cost_classes and finish_regno_cost_classes.
23091
23092 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
23093
23094 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
23095
23096 * target.def (ira_cover_classes): Remove.
23097
23098 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
23099
23100 * doc/tm.texi.in: Ditto.
23101
23102 * ira-conflicts.c: Remove mentioning cover classes from the file.
23103 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
23104 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
23105
23106 * targhooks.c (default_ira_cover_classes): Remove.
23107
23108 * targhooks.h (default_ira_cover_classes): Ditto.
23109
23110 * haifa-sched.c: Remove mentioning cover classes from the file.
23111 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
23112 ira_pressure_classes and ira_pressure_classes_num instead of
23113 ira_reg_class_cover_size and ira_reg_class_cover. Use
23114 sched_regno_pressure_class instead of sched_regno_cover_class.
23115 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
23116 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
23117
23118 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
23119 classes from the file.
23120 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
23121 (struct object_hard_regs, struct object_hard_regs_node): New.
23122 (struct ira_object): New members profitable_hard_regs,
23123 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
23124 (struct ira_allocno): Rename cover_class to aclass. Rename
23125 cover_class_cost and updated_cover_class_cost to class_cost and
23126 updated_class_cost. Remove splay_removed_p and
23127 left_conflict_size. Add new members colorable_p.
23128 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
23129 (ALLOCNO_COLORABLE_P): New macro.
23130 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
23131 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
23132 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
23133 (OBJECT_...): Rename parameter C to O.
23134 (OBJECT_PROFITABLE_HARD_REGS): New macro.
23135 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
23136 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
23137 (struct target_ira_int): New members x_ira_max_memory_move_cost,
23138 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
23139 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
23140 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
23141 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
23142 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
23143 x_ira_reg_class_subunion.
23144 (ira_max_memory_move_cost, ira_max_register_move_cost)
23145 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
23146 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
23147 (ira_important_class_nums, ira_reg_class_superunion): New macros.
23148 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
23149 (ira_reg_class_union): Rename to ira_reg_class_subunion.
23150 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
23151 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
23152 (ira_tune_allocno_costs_and_cover_classes): Rename to
23153 ira_tune_allocno_costs.
23154 (ira_debug_hard_regs_forest): New.
23155 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
23156 (ira_object_conflict_iter_next): Fix comments.
23157 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
23158 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
23159 cover_class to aclass.
23160 (ira_allocate_and_accumulate_costs): Ditto.
23161 (ira_allocate_and_set_or_copy_costs): Ditto.
23162
23163 * opts.c (decode_options): Remove ira_cover_class check.
23164
23165 * ira-color.c: Remove mentioning cover classes from the file. Use
23166 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
23167 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
23168 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
23169 (splay-tree.h): Remove include.
23170 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
23171 before copy_freq_compare_func.
23172 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
23173 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
23174 New definitions.
23175 (hard_regs_roots, hard_regs_node_vec): Ditto.
23176 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
23177 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
23178 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
23179 (create_new_object_hard_regs_node): Ditto.
23180 (add_new_object_hard_regs_node_to_forest): Ditto.
23181 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
23182 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
23183 Ditto.
23184 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
23185 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
23186 (remove_unused_object_hard_regs_nodes): Ditto.
23187 (enumerate_object_hard_regs_nodes): Ditto.
23188 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
23189 (object_hard_regs_subnode_t): Ditto.
23190 (struct object_hard_regs_subnode): Ditto.
23191 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
23192 (setup_object_hard_regs_subnode_index): Ditto.
23193 (get_object_hard_regs_subnodes_num): Ditto.
23194 (form_object_hard_regs_nodes_forest): Ditto.
23195 (finish_object_hard_regs_nodes_tree): Ditto.
23196 (finish_object_hard_regs_nodes_forest): Ditto.
23197 (allocnos_have_intersected_live_ranges_p): Rename to
23198 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
23199 (pseudos_have_intersected_live_ranges_p): Rename to
23200 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
23201 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
23202 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
23203 (update_copy_costs): Remove assert. Skip cost update if the hard
23204 reg does not belong the class.
23205 (assign_hard_reg): Process only profitable hard regs.
23206 (uncolorable_allocnos_num): Make it scalar.
23207 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
23208 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
23209 and ira_reg_class_max_nregs.
23210 (bucket_allocno_compare_func): Check frequency first.
23211 (sort_bucket): Add compare function as a parameter.
23212 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
23213 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
23214 (push_allocno_to_stack): Rewrite for checking new allocno
23215 colorability.
23216 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
23217 (push_only_colorable): Pass new parameter to sort_bucket.
23218 (push_allocno_to_spill): Remove.
23219 (allocno_spill_priority_compare): Make it inline and rewrite.
23220 (splay_tree_allocate, splay_tree_free): Remove.
23221 (allocno_spill_sort_compare): New function.
23222 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
23223 build and use splay tree. Choose first allocno in uncolorable
23224 allocno bucket to spill. Remove setting spill cost.
23225 (all_conflicting_hard_regs): Remove.
23226 (setup_allocno_available_regs_num): Check only profitable hard
23227 regs. Print info about hard regs nodes.
23228 (setup_allocno_left_conflicts_size): Remove.
23229 (put_allocno_into_bucket): Don't call
23230 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
23231 (improve_allocation): New.
23232 (color_allocnos): Call setup_profitable_hard_regs,
23233 form_object_hard_regs_nodes_forest, improve_allocation,
23234 finish_object_hard_regs_nodes_forest. Setup spill cost.
23235 (print_loop_title): Use pressure classes.
23236 (color_allocnso): Ditto.
23237 (do_coloring): Remove allocation and freeing splay_tree_node_pool
23238 and allocnos_for_spilling.
23239 (ira_sort_regnos_for_alter_reg): Don't setup members
23240 {first,next}_coalesced_allocno.
23241 (color): Remove allocating and freeing removed_splay_allocno_vec.
23242 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
23243 prohibited_class_mode_regs.
23244
23245 * ira-lives.c: Remove mentioning cover classes from the file. Fix
23246 formatting.
23247 (update_allocno_pressure_excess_length): Use pressure classes.
23248 (inc_register_pressure, dec_register_pressure): Check for pressure
23249 class.
23250 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
23251 pressure class. Use ira_reg_class_nregs instead of
23252 ira_reg_class_max_nregs.
23253 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
23254 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
23255 (single_reg_class): Use ira_reg_class_nregs instead of
23256 ira_reg_class_max_nregs.
23257 (process_bb_node_lives): Use pressure classes.
23258
23259 * ira-emit.c: Remove mentioning cover classes from the file. Use
23260 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
23261 (change_loop): Use pressure classes.
23262 (modify_move_list): Call ira_set_allocno_class instead of
23263 ira_set_allocno_cover_class.
23264
23265 * ira-build.c: Remove mentioning cover classes from the file. Use
23266 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
23267 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
23268 ALLOCNO_UPDATED_CLASS_COST instead of
23269 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
23270 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
23271 (ira_create_allocno): Remove initialization of
23272 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
23273 ALLOCNO_COLORABLE_P.
23274 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
23275 Update conflict regs for the objects.
23276 (create_cap_allocno): Remove assert. Don't propagate
23277 ALLOCNO_AVAILABLE_REGS_NUM.
23278 (ira_free_allocno_costs): New function.
23279 (finish_allocno): Change a part of code into call of
23280 ira_free_allocno_costs.
23281 (low_pressure_loop_node_p): Use pressure classes.
23282 (object_range_compare_func): Don't compare classes.
23283 (setup_min_max_conflict_allocno_ids): Ditto.
23284
23285 * loop-invariant.c: Remove mentioning cover classes from the file.
23286 Use ira_pressure_classes and ira_pressure_classes_num instead of
23287 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
23288 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
23289 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
23290 Use reg_allocno_class instead of reg_cover_class.
23291 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
23292 STACK_REG_COVER_CLASS.
23293 (get_regno_cover_class): Rename to get_regno_pressure_class.
23294 (move_loop_invariants): Initialize and finalize regstat.
23295
23296 * ira.c: Remove mentioning cover classes from the file. Add
23297 comments about coloring without cover classes. Use ALLOCNO_CLASS
23298 instead of ALLOCNO_COVER_CLASS. Fix formatting.
23299 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
23300 setup_class_subset_and_memory_move_costs.
23301 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
23302 (setup_cover_and_important_classes): Rename to
23303 setup_allocno_and_important_classes.
23304 (setup_class_translate_array): New.
23305 (setup_class_translate): Call it for allocno and pressure classes.
23306 (cover_class_order): Rename to allocno_class_order.
23307 (comp_reg_classes_func): Use ira_allocno_class_translate instead
23308 of ira_class_translate.
23309 (reorder_important_classes): Set up ira_important_class_nums.
23310 (setup_reg_class_relations): Set up ira_reg_class_superunion.
23311 (print_class_cover): Rename to print_classes. Add parameter.
23312 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
23313 Print pressure classes too.
23314 (find_reg_class_closure): Rename to find_reg_classes. Don't call
23315 setup_reg_subclasses.
23316 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
23317 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
23318 (setup_prohibited_class_mode_regs): Use
23319 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
23320 (clarify_prohibited_class_mode_regs): New function.
23321 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
23322 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
23323 (ira_init_once): Initialize them.
23324 (free_register_move_costs): Process them.
23325 (ira_init): Move calls of find_reg_classes and
23326 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
23327 Call clarify_prohibited_class_mode_regs.
23328 (ira_no_alloc_reg): Remove.
23329 (too_high_register_pressure_p): Use pressure classes.
23330
23331 * sched-deps.c: Remove mentioning cover classes from the file.
23332 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
23333 ira_pressure_classes and ira_pressure_classes_num instead of
23334 ira_reg_class_cover_size and ira_reg_class_cover.
23335 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
23336 sched_regno_pressure_class instead of sched_regno_cover_class.
23337 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
23338 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
23339
23340 * ira.h: Add 2010 to Copyright.
23341 (ira_no_alloc_reg): Remove external.
23342 (struct target_ira): Rename x_ira_hard_regno_cover_class,
23343 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
23344 x_ira_class_translate to x_ira_hard_regno_allocno_class,
23345 x_ira_allocno_classes_num, x_ira_allocno_classes, and
23346 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
23347 x_ira_pressure_classes, x_ira_pressure_class_translate, and
23348 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
23349 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
23350 x_ira_no_alloc_regs.
23351 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
23352 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
23353 ira_allocno_classes_num and ira_allocno_classes.
23354 (ira_class_translate): Rename to ira_allocno_class_translate.
23355 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
23356 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
23357 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
23358 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
23359 (ira_no_alloc_regs): New.
23360
23361 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
23362 classes from the file. Use ALLOCNO_CLASS instead of
23363 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
23364 ALLOCNO_COVER_CLASS_COST.
23365 (regno_cover_class): Rename to regno_aclass.
23366 (record_reg_classes): Use ira_reg_class_subunion instead of
23367 ira_reg_class_union.
23368 (record_address_regs): Check overflow.
23369 (scan_one_insn): Ditto.
23370 (print_allocno_costs): Print total mem cost fore regional allocation.
23371 (print_pseudo_costs): Use REG_N_REFS.
23372 (find_costs_and_classes): Use classes intersected with them on the
23373 1st pass. Check overflow. Use ira_reg_class_subunion instead of
23374 ira_reg_class_union. Use ira_allocno_class_translate and
23375 regno_aclass instead of ira_class_translate and regno_cover_class.
23376 Modify code for finding regno_aclass. Setup preferred classes for
23377 the next pass.
23378 (setup_allocno_cover_class_and_costs): Rename to
23379 setup_allocno_class_and_costs. Use regno_aclass instead of
23380 regno_cover_class. Use ira_set_allocno_class instead of
23381 ira_set_allocno_cover_class.
23382 (init_costs, finish_costs): Use regno_aclass instead of
23383 regno_cover_class.
23384 (ira_costs): Use setup_allocno_class_and_costs instead of
23385 setup_allocno_cover_class_and_costs.
23386 (ira_tune_allocno_costs_and_cover_classes): Rename to
23387 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
23388 by processing objects. Use ira_reg_class_max_nregs instead of
23389 ira_reg_class_nregs.
23390
23391 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
23392
23393 * sched-int.h: Remove mentioning cover classes from the file.
23394 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
23395
23396 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
23397 classes from the file.
23398 (struct reg_pref): Rename coverclass into allocnoclass.
23399 (reg_cover_class): Rename to reg_allocno_class.
23400
23401 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
23402
23403 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
23404
23405 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
23406
23407 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
23408
23409 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
23410
23411 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
23412
23413 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
23414
23415 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
23416
23417 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
23418
23419 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
23420
23421 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
23422 (i386_ira_cover_classes): Ditto.
23423
23424 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
23425
23426 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
23427
23428 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
23429
23430 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
23431
23432 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
23433
23434 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
23435
23436 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
23437 (mips_ira_cover_classes): Ditto.
23438
23439 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
23440
23441 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
23442
23443 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
23444
23445 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
23446
23447 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
23448
23449 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
23450 (IRA_COVER_CLASSES_VSX): Ditto.
23451
23452 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
23453 (rs6000_ira_cover_classes): Ditto.
23454
23455 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
23456
23457 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
23458
23459 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
23460
23461 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
23462
23463 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
23464
23465 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
23466
23467 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
23468
23469 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
23470
23471 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
23472
23473 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
23474
23475 2011-03-29 Jakub Jelinek <jakub@redhat.com>
23476
23477 PR debug/48253
23478 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
23479 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
23480 dw_fde_unlikely_section_end_label, cold_in_std_section,
23481 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
23482 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
23483 fields.
23484 (output_fde): Use dw_fde_second_{begin,end} if second is
23485 true, otherwise dw_fde_{begin,end}.
23486 (output_call_frame_info): Test dw_fde_second_begin != NULL
23487 instead of dw_fde_switched_sections.
23488 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
23489 fields, initialize new fields. Initialize in_std_section
23490 unconditionally from the first partition.
23491 (dwarf2out_end_epilogue): Don't override dw_fde_end when
23492 dw_fde_second_begin is non-NULL.
23493 (dwarf2out_switch_text_section): Stop initializing removed
23494 dw_fde_struct fields, initialize new fields, initialize
23495 also dw_fde_end here. Set dw_fde_switch_cfi even when
23496 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
23497 (struct var_loc_list_def): Add last_before_switch field.
23498 (arange_table, arange_table_allocated, arange_table_in_use,
23499 ARANGE_TABLE_INCREMENT, add_arange): Removed.
23500 (size_of_aranges): Count !in_std_section and !second_in_std_section
23501 hunks in fdes, instead of looking at arange_table_in_use.
23502 (output_aranges): Add aranges_length argument, don't call
23503 size_of_aranges here. Instead of using aranges_table*
23504 emit ranges for fdes when !in_std_section resp.
23505 !second_in_std_section.
23506 (dw_loc_list): Break ranges crossing section switch.
23507 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
23508 use dw_fde_second_end instead of dw_fde_end as end of last range.
23509 (gen_subprogram_die): Don't call add_arange. Use
23510 dw_fde_{begin,end} for first partition and if switched
23511 section dw_fde_second_{begin,end} for the second.
23512 (var_location_switch_text_section_1,
23513 var_location_switch_text_section): New functions.
23514 (dwarf2out_begin_function): Initialize cold_text_section even
23515 when function_section () isn't text_section.
23516 (prune_unused_types): Don't walk arange_table.
23517 (dwarf2out_finish): Don't needlessly test
23518 flag_reorder_blocks_and_partition when testing cold_text_section_used.
23519 If info_section_emitted, call size_of_aranges and if it indicates
23520 non-empty .debug_aranges, call output_aranges with the computed
23521 size. Stop using removed dw_fde_struct fields, use
23522 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
23523 for second.
23524
23525 PR debug/48203
23526 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
23527 create ENTRY_VALUE if incoming or address of incoming's MEM
23528 is a hard REG.
23529 * dwarf2out.c (mem_loc_descriptor): Don't emit
23530 DW_OP_GNU_entry_value of DW_OP_fbreg.
23531 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
23532 on ENTRY_VALUE is able to find the canonical parameter VALUE.
23533 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
23534 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
23535 ENTRY_VALUE_EXPs.
23536 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
23537 is a REG_P or MEM_P with REG_P address, compute hash directly
23538 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
23539 (preserve_only_constants): Don't clear VALUES forwaring
23540 ENTRY_VALUE to some other VALUE.
23541
23542 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
23543
23544 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
23545 instead of GEN_INT.
23546
23547 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
23548
23549 * cfgexpand.c (expand_gimple_cond): Always set the source location and
23550 block before expanding the statement.
23551 (expand_gimple_stmt_1): Likewise. Set them here...
23552 (expand_gimple_stmt): ...and not here. Tidy.
23553 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
23554 unknown.
23555
23556 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
23557
23558 * Makefile.in: New rule for cprop.o.
23559 * gcse.c: Move constant/copy propagation to cprop.c.
23560 (compute_local_properties): Only handle expression tables.
23561 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
23562 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
23563 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
23564 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
23565 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
23566 compute_cprop_data, find_used_regs, try_replace_reg,
23567 find_avail_set, cprop_jump, constprop_register, cprop_insn,
23568 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
23569 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
23570 find_bypass_set, reg_killed_on_edge, bypass_block,
23571 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
23572 execute_rtl_cprop, pass_rtl_cprop): Move to...
23573 * cprop.c: ...here. New file, constant/copy propagation for RTL
23574 moved from gcse.c to here with minor cleanups in duplicated code.
23575
23576 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
23577
23578 * config/i386/i386.c (flag_opts): Fix a typo in
23579 -mavx256-split-unaligned-store.
23580
23581 2011-03-28 Anatoly Sokolov <aesok@post.ru>
23582
23583 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
23584 LIBCALL_VALUE): Remove macros.
23585 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23586 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23587 (h8300_function_value, h8300_libcall_value,
23588 h8300_function_value_regno_p): New functions.
23589
23590 2011-03-28 Anatoly Sokolov <aesok@post.ru>
23591
23592 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
23593
23594 2011-03-28 Jeff Law <law@redhat.com>
23595
23596 * tree-ssa-threadupdate.c (redirect_edges): Call
23597 create_edge_and_update_destination_phis as needed.
23598 (create_edge_and_update_destination_phis): Accept new BB argument.
23599 All callers updated.
23600 (thread_block): Do not update the profile when threading around
23601 intermediate blocks.
23602 (thread_single_edge): Likewise.
23603 (determine_bb_domination_status): If BB is not a successor of the
23604 loop header, return NONDOMINATING.
23605 (register_jump_thread): Note when we register a jump thread around
23606 an intermediate block.
23607 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
23608 (thread_across_edge): Use it.
23609
23610 2011-03-28 Tristan Gingold <gingold@adacore.com>
23611
23612 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
23613 when for_return is 2.
23614
23615 2011-03-28 Jeff Law <law@redhat.com>
23616
23617 * var-tracking.c (canonicalize_values_mark): Delete unused
23618 lhs assignment.
23619 (canonicalize_values_star, set_variable_part): Likewise.
23620 (clobber_variable_part, delete_variable_part): Likewise.
23621
23622 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
23623
23624 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
23625
23626 2011-03-28 Martin Jambor <mjambor@suse.cz>
23627
23628 * tree-inline.c (expand_call_inline): Do not check that destination
23629 node is analyzed.
23630 (optimize_inline_calls): Assert that destination node is analyzed.
23631 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
23632 not call tree_lowering_passes.
23633 * cgraph.h (cgraph_analyze_function): Declare.
23634 * cgraphunit.c (cgraph_analyze_function): Make public.
23635
23636 2011-03-28 Joseph Myers <joseph@codesourcery.com>
23637
23638 * config/sparc/sparc-opts.h: New.
23639 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
23640 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
23641 (sparc_option_override): Store processor_type enumeration rather
23642 than string in cpu_default. Remove name and enumeration from
23643 cpu_table. Directly default -mcpu then default -mtune from -mcpu
23644 without using sparc_select. Use target_flags_explicit instead of
23645 fpu_option_set.
23646 * config/sparc/sparc.h (enum processor_type): Move to
23647 sparc-opts.h.
23648 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
23649 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
23650 HeaderInclude entry.
23651 (mcpu=, mtune=): Use Var and Enum.
23652 (sparc_processor_type): New Enum and EnumValue entries.
23653
23654 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23655 Iain Sandoe <iains@gcc.gnu.org>
23656
23657 PR target/48245
23658 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
23659
23660 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
23661
23662 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
23663 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
23664 Insert new statements at it in lieu of STMT.
23665 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
23666 * tree-vect-stmts.c (vectorizable_store): Likewise.
23667 (vectorizable_load): Likewise.
23668
23669 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
23670
23671 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
23672 (divtf3): Ditto.
23673 (multf3): Ditto.
23674 (subtf3): Ditto.
23675
23676 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
23677
23678 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
23679 unaligned 256bit load/store.
23680 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
23681 (*avx_movdqu<avxmodesuffix>): Likewise.
23682
23683 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23684
23685 PR target/48288
23686 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
23687 * config/pa/pa.md (iordi3): Use new predicate in expander.
23688 (iorsi3): Likewise.
23689
23690 2011-03-27 Anatoly Sokolov <aesok@post.ru>
23691
23692 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
23693 FUNCTION_VALUE_REGNO_P): Remove macros.
23694 * config/mips/mips-protos.h (mips_function_value): Remove.
23695 * config/mips/mips.c (mips_function_value): Rename to...
23696 (mips_function_value_1): ... this. Make static. Handle receiving
23697 the function type in 'fn_decl_or_type' argument.
23698 (mips_function_value, mips_libcall_value,
23699 mips_function_value_regno_p): New function.
23700 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23701 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23702
23703 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
23704
23705 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
23706 and -mavx256-split-unaligned-store.
23707 (ix86_option_override_internal): Split 32-byte AVX unaligned
23708 load/store by default.
23709 (ix86_avx256_split_vector_move_misalign): New.
23710 (ix86_expand_vector_move_misalign): Use it.
23711
23712 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
23713 -mavx256-split-unaligned-store.
23714
23715 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
23716 256bit load/store. Generate unaligned store on misaligned memory
23717 operand.
23718 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
23719 256bit load/store.
23720 (*avx_movdqu<avxmodesuffix>): Likewise.
23721
23722 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
23723 -mavx256-split-unaligned-store.
23724
23725 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
23726
23727 PR target/38598
23728 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
23729 Update commentary.
23730
23731 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
23732
23733 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
23734 opno arguments with an expand_operand. Use create_input_operand.
23735 (mips_prepare_builtin_target): Delete.
23736 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
23737 functions.
23738 (mips_expand_builtin_direct): Use create_output_operand and
23739 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
23740 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
23741 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
23742
23743 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
23744
23745 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
23746 function.
23747 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
23748
23749 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
23750
23751 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
23752 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
23753 basic blocks and call commit_edge_insertions directly.
23754 (fixup_abnormal_edges): Move from here to...
23755 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
23756 on the edges and return whether some have actually been inserted.
23757 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
23758 compensation code.
23759
23760 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
23761
23762 PR rtl-optimization/48144
23763 * sel-sched-ir.c (merge_history_vect): Factor out from ...
23764 (merge_expr_data): ... here.
23765 (av_set_intersect): Rename to av_set_code_motion_filter.
23766 Update all callers. Call merge_history_vect when an expression
23767 is found in both sets.
23768 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
23769
23770 2011-03-26 Alan Modra <amodra@gmail.com>
23771
23772 * config/rs6000/predicates.md (word_offset_memref_op): Handle
23773 cmodel medium addresses.
23774 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
23775 64-bit gpr loads and stores.
23776 (rs6000_secondary_reload_ppc64): New function.
23777 * config/rs6000/rs6000-protos.h: Declare it.
23778 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
23779
23780 2011-03-26 Alan Modra <amodra@gmail.com>
23781
23782 PR target/47487
23783 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
23784 GNU Go in traceback table.
23785
23786 2011-03-25 Richard Henderson <rth@redhat.com>
23787
23788 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
23789 if there are exactly 6 operands.
23790 (set_storage_via_setmem): Similarly.
23791
23792 2011-03-25 Kai Tietz <ktietz@redhat.com>
23793
23794 * collect2.c (write_c_file_stat): Handle backslash
23795 as right-hand directory separator.
23796 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
23797 checking just for slash.
23798 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
23799 instead of checking for trailing slash.
23800 * gcc.c (record_temp_file): Use filename_cmp instead
23801 of strcmp.
23802 (do_spec_1): Likewise.
23803 (replace_outfile_spec_function): Likewise.
23804 (is_directory): Use filename_ncmp instead of strncmp.
23805 (print_multilib_info): Likewise.
23806 * gcov.c (find_source): Use filename_cmp instead
23807 instead of strcmp.
23808 (make_gcov_file_name): Fix order of slash/backslash
23809 checks.
23810 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
23811 (add_standard_paths): Likewise.
23812 * mips-tfile.c (saber_stop): Handle backslash.
23813 * prefix.c (update_path): Use filename_ncmp instead of
23814 strncmp.
23815 * profile.c (output_location): Use filename_cmp instead
23816 of strcmp.
23817 * read-md.c (handle_toplevel_file): Handle backslash.
23818 * tlink.c (frob_extension): Likewise.
23819 * tree-cfg.c (same_line_p): Use filename_cmp instead of
23820 strcmp.
23821 * tree-dump.c (dequeue_and_dump): Handle backslash.
23822 * tree.c (get_file_function_name): Likewise.
23823 * gengtype.c (read_input_list): Likewise.
23824 (get_file_realbasename): Likewise.
23825 (get_output_file_with_visibility): Use filename_cmp
23826 instead of strcmp.
23827
23828 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
23829
23830 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
23831 case to VFPv1.
23832
23833 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
23834
23835 * fold-const.c (expr_location_or): New function.
23836 (fold_truth_not_expr): Call it.
23837
23838 2011-03-25 Jeff Law <law@redhat.com>
23839
23840 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
23841 va_end.
23842 * c-family/c-common.c (def_fn_type): Likewise.
23843 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
23844 * emit-rtl.c (gen_rtvec): Likewise.
23845 * lto/lto-lang.c (def_fn_type): Likewise.
23846
23847 2011-03-25 Richard Guenther <rguenther@suse.de>
23848
23849 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
23850 also generate copies.
23851 (fini_copy_prop): Handle constant values properly.
23852
23853 2011-03-25 Jakub Jelinek <jakub@redhat.com>
23854
23855 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
23856 mode size instead of bitsize with DWARF2_ADDR_SIZE.
23857 (hash_loc_operands, compare_loc_operands): Handle
23858 DW_OP_GNU_entry_value.
23859
23860 2011-03-25 Kai Tietz <ktietz@redhat.com>
23861
23862 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
23863 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
23864 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
23865 comment and use macro TARGET_64BIT_MS_ABI instead.
23866 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
23867 and change default behavior for 32-bit MS_ABI.
23868 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
23869 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
23870 32-bit, too.
23871 (ix86_cfun_abi): Likewise.
23872 (ix86_maybe_switch_abi): Adjust comment.
23873 (init_cumulative_args): Check for bit-ness in MS_ABI case.
23874 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
23875 instead of checking for SYSV_ABI.
23876 (ix86_nsaved_sseregs): Likewise.
23877 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
23878 to 16 bytes.
23879 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
23880 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
23881 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
23882 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
23883 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
23884
23885 2011-03-25 Richard Guenther <rguenther@suse.de>
23886
23887 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
23888 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
23889 (verify_gimple): Remove.
23890 * tree-cfg.c (verify_gimple_call): Merge verification
23891 from verify_stmts.
23892 (verify_gimple_phi): Merge verification from verify_stmts.
23893 (verify_gimple_label): New function.
23894 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
23895 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
23896 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
23897 (verify_stmts): Rename to verify_gimple_in_cfg.
23898 (verify_gimple_in_cfg): New function.
23899 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
23900 * tree-ssa.c (verify_ssa): Likewise.
23901 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
23902
23903 2011-03-25 Richard Guenther <rguenther@suse.de>
23904
23905 * passes.c (init_optimization_passes): Add FRE pass after
23906 early SRA.
23907
23908 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
23909 Andrew Stubbs <ams@codesourcery.com>
23910
23911 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
23912 for Cortex-A8.
23913 (arm_movdi_vfp_cortexa8): New pattern.
23914 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
23915 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
23916 instructions when tuning for Cortex-A8. Set attribute "arch".
23917 * config/arm/arm.md: Move include arm-tune.md up a bit.
23918 (define_attr "arch"): Add "onlya8" and "nota8" values.
23919 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
23920
23921 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
23922
23923 PR bootstrap/48282
23924 Revert:
23925 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
23926
23927 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
23928 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
23929 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
23930 * passes.c (init_optimization_passes): Move
23931 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
23932
23933 2011-03-25 Kai Tietz <ktietz@redhat.com>
23934
23935 * c-typeck.c (comptypes_internal): Replace target
23936 hook call of comp_type_attributes by version in tree.c file.
23937 * gimple.c (gimple_types_compatible_p_1): Likewise.
23938 * tree-ssa.c (useless_type_conversion_p): Likewise.
23939 * tree.c (build_type_attribute_qual_variant): Likewise.
23940 (attribute_value_equal): New static helper function.
23941 (comp_type_attributes): New function.
23942 (merge_attributes): Use attribute_value_equal for comparison.
23943 (attribute_list_contained): Likewise.
23944 * tree.h (comp_type_attributes): New prototype.
23945
23946 2011-03-25 Richard Guenther <rguenther@suse.de>
23947
23948 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
23949 of complex types at -O0.
23950 (verify_gimple_assign_binary): Likewise.
23951 (verify_gimple_assign_ternary): Likewise.
23952
23953 2011-03-24 Mark Wielaard <mjw@redhat.com>
23954
23955 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
23956 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
23957
23958 2011-03-24 Mark Wielaard <mjw@redhat.com>
23959
23960 PR debug/48041
23961 * dwarf2out.c (output_abbrev_section): Only write table when
23962 abbrev_die_table_in_use > 1.
23963
23964 2011-02-24 Richard Henderson <rth@redhat.com>
23965
23966 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
23967 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
23968 (alpha_expand_unaligned_load_words): Use extql.
23969 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
23970 (emit_insxl): Handle all modes for consistency.
23971
23972 2011-02-24 Richard Henderson <rth@redhat.com>
23973
23974 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
23975 (alpha_expand_unaligned_load): Likewise.
23976 (alpha_expand_unaligned_store): Likewise.
23977 (alpha_expand_unaligned_load_words): Likewise.
23978 (alpha_expand_unaligned_store_words): Likewise.
23979 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
23980 (alpha_split_lock_test_and_set_12): Likewise.
23981 (print_operand, alpha_fold_builtin_extxx): Likewise.
23982 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
23983 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
23984 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
23985 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
23986 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
23987 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
23988 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
23989 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
23990 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
23991 (extwl, extll, extql): Similarly.
23992 (inswh, inslh, insqh): Similarly.
23993 (mskbl, mskwl, mskll, mskql): Similarly.
23994 (mskwh, msklh, mskqh): Similarly.
23995
23996 2011-02-24 Richard Henderson <rth@redhat.com>
23997
23998 * config/alpha/alpha.md (attribute isa): Add er, ner.
23999 (attribute enabled): Handle them.
24000 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
24001
24002 2011-02-24 Richard Henderson <rth@redhat.com>
24003
24004 * config/alpha/alpha.md (attribute isa): Add vms.
24005 (attribute enabled): Handle it.
24006 (*movsf): Merge *movsf_{nofix,fix,nofp}.
24007 (*movdf): Merge *movdf_{nofix,fix,nofp}.
24008 (*movtf): Rename from *movtf_internal for consistency.
24009 (*movsi): Merge with *movsi_nt_vms.
24010 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
24011 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
24012 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
24013 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
24014
24015 2011-02-24 Richard Henderson <rth@redhat.com>
24016
24017 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
24018 (extendqisi2, extendhisi2): Likewise.
24019 (extendqidi2): Simplify BWX/non-BWX expansions.
24020 (extendhidi2): Similarly.
24021
24022 2011-02-24 Richard Henderson <rth@redhat.com>
24023
24024 * config/alpha/alpha.md (attribute isa): New.
24025 (attribute enabled): New.
24026 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
24027 (zero_extendqisi2, zero_extendqidi2): Similarly.
24028 (zero_extendhisi2, zero_extendhidi2): Similarly.
24029 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
24030
24031 2011-02-24 Richard Henderson <rth@redhat.com>
24032
24033 * config/alpha/predicates.md (input_operand): Revert last change;
24034 update comment to mention 32-bit VMS rather than Windows.
24035
24036 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
24037
24038 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
24039 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
24040 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
24041 * passes.c (init_optimization_passes): Move
24042 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
24043
24044 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
24045
24046 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
24047
24048 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
24049
24050 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
24051 correctly.
24052
24053 2011-03-24 Jakub Jelinek <jakub@redhat.com>
24054
24055 PR debug/48204
24056 * simplify-rtx.c (simplify_const_unary_operation): Call
24057 real_convert when changing mode class with FLOAT_EXTEND.
24058
24059 2011-03-24 Nick Clifton <nickc@redhat.com>
24060
24061 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
24062 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
24063 * config/rx/rx.c (rx_option_override): Set align_jumps,
24064 align_loops and align_labels if not set by the user.
24065 (rx_align_for_label): New function.
24066 (rx_max_skip_for_label): New function.
24067 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
24068 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
24069 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
24070 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
24071 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
24072
24073 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
24074
24075 PR rtl-optimization/48263
24076 * optabs.c (expand_binop_directly): Reinstate convert_modes code
24077 and original commutative_p handling. Use maybe_gen_insn.
24078
24079 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24080
24081 * reload.c (find_reloads_subreg_address): Add address_reloaded
24082 parameter and return true there if the full address has been
24083 reloaded.
24084 (find_reloads_toplev): Pass address_reloaded flag.
24085 (find_reloads_address_1): Don't use address_reloaded parameter.
24086
24087 2011-03-24 Jeff Law <law@redhat.com>
24088
24089 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
24090 unused variable "ann".
24091 (remove_unused_locals): Likewise.
24092
24093 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
24094 statement.
24095
24096 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
24097 after it is freed.
24098
24099 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24100
24101 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
24102 for invalid symbolic addresses.
24103 (s390_secondary_reload): Don't use s390_check_symref_alignment for
24104 larl operands.
24105
24106 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
24107
24108 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
24109 the argument in calls to fold_truth_not_expr.
24110
24111 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
24112
24113 * tree.c (record_node_allocation_statistics): New function.
24114 (make_node_stat, copy_node_stat, build_string): Call it.
24115 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
24116 (build1_stat, build_omp_clause): Likewise.
24117
24118 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
24119
24120 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
24121 last commit.
24122
24123 2011-03-24 Richard Guenther <rguenther@suse.de>
24124
24125 PR tree-optimization/48271
24126 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
24127 blocks that still exist.
24128
24129 2011-03-24 Richard Guenther <rguenther@suse.de>
24130
24131 PR tree-optimization/48270
24132 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
24133 not free datarefs before ddrs.
24134
24135 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
24136
24137 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
24138 from the address built for a reference with variable offset.
24139
24140 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
24141
24142 PR target/48237
24143 * config/i386/i386.md (*movdf_internal_rex64): Do not split
24144 alternatives that can be handled with movq or movabsq insn.
24145 (*movdf_internal): Disable for !TARGET_64BIT.
24146 (*movdf_internal_nointeger): Ditto.
24147 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
24148
24149 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
24150
24151 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
24152 (FUNCTION_ARG_ADVANCE): Likewise.
24153 * tm.texi.in: Change references to them to hook references.
24154 * tm.texi: Regenerate.
24155 * targhooks.c (default_function_arg): Eliminate check for target macro.
24156 (default_function_incoming_arg): Likewise.
24157 (default_function_arg_advance): Likewise.
24158 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
24159 (function_arg_advance): Likewise.
24160 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
24161
24162 2011-03-24 Richard Guenther <rguenther@suse.de>
24163
24164 PR middle-end/48269
24165 * tree-object-size.c (addr_object_size): Do not double-account
24166 for MEM_REF offsets.
24167
24168 2011-03-24 Diego Novillo <dnovillo@google.com>
24169
24170 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
24171 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
24172 (lto_input_data_block): Move from lto-opts.c. Make extern.
24173 Update all users.
24174 (lto_input_string): Rename from input_string. Make extern.
24175 Update all users.
24176 * lto-streamer-out.c (lto_output_string_with_length): Rename from
24177 output_string_with_length.
24178 Output 0 to indicate a non-NULL string. Update all callers to
24179 not emit 0.
24180 (lto_output_string): Rename from output_string. Make extern.
24181 Update all users.
24182 (lto_output_decl_state_streams): Make extern.
24183 (lto_output_decl_state_refs): Make extern.
24184 * lto-streamer.h (lto_input_string): Declare.
24185 (lto_input_data_block): Declare.
24186 (lto_output_string): Declare.
24187 (lto_output_string_with_length): Declare.
24188 (lto_output_decl_state_streams): Declare.
24189 (lto_output_decl_state_refs): Declare.
24190
24191 2011-03-24 Richard Guenther <rguenther@suse.de>
24192
24193 PR tree-optimization/46562
24194 * tree.c (build_invariant_address): New function.
24195 * tree.h (build_invariant_address): Declare.
24196 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
24197 a renamed function moved ...
24198 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
24199 Take valueization callback parameter.
24200 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
24201 * gimple-fold.h: New file.
24202 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
24203 (ccp_fold, fold_const_aggregate_ref,
24204 fold_ctor_reference, fold_nonarray_ctor_reference,
24205 fold_array_ctor_reference, fold_string_cst_ctor_reference,
24206 get_base_constructor): Move ...
24207 * gimple-fold.c: ... here.
24208 (gimple_fold_stmt_to_constant_1): New function
24209 split out from ccp_fold. Take a valueization callback parameter.
24210 Valueize all operands.
24211 (gimple_fold_stmt_to_constant): New wrapper function.
24212 (fold_const_aggregate_ref_1): New function split out from
24213 fold_const_aggregate_ref. Take a valueization callback parameter.
24214 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
24215 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
24216 invariant POINTER_PLUS_EXPRs to invariant form.
24217 (vn_valueize): New function.
24218 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
24219 * tree-vrp.c (vrp_valueize): New function.
24220 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
24221 to fold statements to constants.
24222 * tree-ssa-pre.c (eliminate): Properly guard propagation of
24223 function declarations.
24224 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
24225 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
24226
24227 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
24228
24229 * config/h8300/predicates.md (jump_address_operand): Fix register
24230 mode check.
24231
24232 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
24233
24234 * doc/invoke.texi (max-stores-to-sink): Document.
24235 * params.h (MAX_STORES_TO_SINK): Define.
24236 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
24237 if either vectorization or if-conversion is disabled.
24238 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
24239 tree-vect-data-refs.c vect_equal_offsets.
24240 (dr_equal_offsets_p): New function.
24241 (find_data_references_in_bb): Remove static.
24242 * tree-data-ref.h (find_data_references_in_bb): Declare.
24243 (dr_equal_offsets_p): Likewise.
24244 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
24245 (vect_drs_dependent_in_basic_block): Update calls to
24246 vect_equal_offsets.
24247 (vect_check_interleaving): Likewise.
24248 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
24249 (cond_if_else_store_replacement): Rename to...
24250 (cond_if_else_store_replacement_1): ... this. Change arguments and
24251 documentation.
24252 (cond_if_else_store_replacement): New function.
24253 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
24254 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
24255
24256 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
24257
24258 PR target/46934
24259 * config/arm/arm.md (casesi): Use the gen_int_mode() function
24260 to subtract lower bound instead of GEN_INT().
24261
24262 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
24263
24264 PR other/48179
24265 PR other/48221
24266 PR other/48234
24267 * doc/extend.texi (Alignment): Move section to match order in TOC.
24268 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
24269 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
24270
24271 2011-03-23 Jeff Law <law@redhat.com>
24272
24273 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
24274 before removing the edge.
24275
24276 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
24277 it may have been freed by redirect_branch_edge or
24278 redirect_edge_succ_nodup.
24279
24280 2011-03-23 Richard Guenther <rguenther@suse.de>
24281
24282 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
24283 (check_va_list_escapes): Likewise.
24284 (check_all_va_list_escapes): Likewise.
24285
24286 2011-03-23 Richard Guenther <rguenther@suse.de>
24287
24288 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
24289 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
24290 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
24291 (alias.o): Likewise.
24292 (ipa-type-escape.o): Remove.
24293 (ipa-struct-reorg.o): Likewise.
24294 (GTFILES): Remove ipa-struct-reorg.c.
24295 * alias.c: Do not include ipa-type-escape.h.
24296 * tree-ssa-alias.c: Likewise.
24297 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
24298 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
24299 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
24300 and ipa-type-escape passes.
24301 * tree-pass.h (pass_ipa_type_escape): Remove.
24302 (pass_ipa_struct_reorg): Likewise.
24303 * ipa-struct-reorg.h: Remove.
24304 * ipa-struct-reorg.c: Likewise.
24305 * ipa-type-escape.h: Likewise.
24306 * ipa-type-escape.c: Likewise.
24307 * doc/invoke.texi (-fipa-struct-reorg): Remove.
24308 (--param struct-reorg-cold-struct-ratio): Likewise.
24309 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
24310 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
24311 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
24312
24313 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24314
24315 * config/s390/2084.md: Enable all insn reservations also for z9_ec
24316 cpu attribute value.
24317 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
24318 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
24319 * config/s390/s390.c (processor_flags_table): New constant array.
24320 (s390_handle_arch_option): Remove.
24321 (s390_handle_option): Remove s390_handle_arch_option invocations
24322 and OPT_mwarn_framesize_ handling.
24323 (s390_option_override): Remove s390_handle_arch_option invocation.
24324 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
24325 warnings.
24326 * config/s390/s390.md (cpu attribute): Add z9_ec value.
24327 * config/s390/s390.opt (s390_tune, s390_arch)
24328 (march=): Replace s390_arch_option enum and values with
24329 processor_type. Set variable name to s390_arch. Set
24330 initialization value.
24331 (mtune=): Replace s390_arch_option with processor_type. Set
24332 variable name to s390_tune. Set initialization value.
24333
24334 2011-03-23 Julian Brown <julian@codesourcery.com>
24335
24336 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
24337 accesses which are not naturally aligned.
24338
24339 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
24340
24341 PR target/47553
24342 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
24343
24344 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
24345
24346 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
24347 parameter from "int" to "enum insn_code".
24348 (expand_operand_type): New enum.
24349 (expand_operand): New structure.
24350 (create_expand_operand): New function.
24351 (create_fixed_operand, create_output_operand): Likewise
24352 (create_input_operand, create_convert_operand_to): Likewise.
24353 (create_convert_operand_from, create_address_operand): Likewise.
24354 (create_integer_operand): Likewise.
24355 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
24356 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
24357 (expand_insn, expand_jump_insn): Likewise.
24358 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
24359 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
24360 (expand_movstr, expand_builtin___clear_cache): Likewise.
24361 (expand_builtin_lock_release): Likewise.
24362 * explow.c (allocate_dynamic_stack_space): Likewise.
24363 (probe_stack_range): Likewise. Allow check_stack to FAIL,
24364 and use the default handling in that case.
24365 * expmed.c (check_predicate_volatile_ok): Delete.
24366 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
24367 (emit_cstore): Likewise.
24368 * expr.c (emit_block_move_via_movmem): Likewise.
24369 (set_storage_via_setmem, expand_assignment): Likewise.
24370 (emit_storent_insn, try_casesi): Likewise.
24371 (emit_single_push_insn): Likewise. Allow the expansion to fail.
24372 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
24373 (expand_vec_shift_expr, expand_binop_directly): Likewise.
24374 (expand_twoval_unop, expand_twoval_binop): Likewise.
24375 (expand_unop_direct, emit_indirect_jump): Likewise.
24376 (emit_conditional_move, vector_compare_rtx): Likewise.
24377 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
24378 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
24379 (expand_sync_lock_test_and_set): Likewise.
24380 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
24381 (emit_unop_insn): Likewise.
24382 (expand_copysign_absneg): Change icode to an insn_code.
24383 (create_convert_operand_from_type): New function.
24384 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
24385 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
24386 (expand_insn, expand_jump_insn): Likewise.
24387 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
24388 than const_int_operand for operand 2.
24389
24390 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24391
24392 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
24393 if possible.
24394
24395 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
24396
24397 * emit-rtl.c (emit_pattern_before_noloc): New function.
24398 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
24399 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
24400 (emit_pattern_after_noloc): New function.
24401 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
24402 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
24403
24404 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
24405
24406 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
24407 (__ffsDI2): Likewise.
24408
24409 2011-03-22 Richard Henderson <rth@redhat.com>
24410
24411 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
24412 of !TARGET_ABI_OPEN_VMS.
24413 (alpha_trampoline_init, alpha_start_function): Likewise.
24414 (alpha_expand_epilogue, alpha_file_start): Likewise.
24415 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
24416 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
24417 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
24418 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
24419 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
24420
24421 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24422
24423 * config/s390/s390-opts.h: New.
24424 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
24425 s390_arch_flags, s390_warn_framesize, s390_stack_size,
24426 s390_stack_guard): Remove.
24427 (s390_handle_arch_option): Return void. Take enum
24428 s390_arch_option value instead of string and searching array.
24429 (s390_handle_option): Don't assert that global structures are in
24430 use. Access variables via opts pointer. Use error_at. Don't use
24431 sscanf for -mstack-guard= or -mstack-size=. Update call to
24432 s390_handle_arch_option.
24433 (s390_option_override): Update call to s390_handle_arch_option.
24434 (s390_emit_prologue): Use %d format for s390_stack_size in
24435 diagnostic. Use %wd for HOST_WIDE_INT.
24436 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
24437 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
24438 * config/s390/s390.opt (config/s390/s390-opts.h): New
24439 HeaderInclude entry.
24440 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
24441 s390_arch_flags, s390_warn_framesize): New Variable entries.
24442 (s390_arch_option): New Enum and EnumValue entries.
24443 (march=): Use Enum instead of Var.
24444 (mstack-guard=, mstack-size=): Use UInteger and Var.
24445 (mtune=): Use Enum.
24446
24447 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24448
24449 * config/score/score.c (score_handle_option): Don't assert that
24450 global structures are in use. Access target_flags via opts
24451 pointer. Use value of -march= option to determine target_flags
24452 settings.
24453 * config/score/score.opt (march=): Use Enum.
24454 (score_arch): New Enum and EnumValue entries.
24455
24456 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24457
24458 * config/mep/mep.c (option_mtiny_specified): Remove.
24459 (mep_option_override): Move register handling for -mivc2 from
24460 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
24461 instead of option_mtiny_specified.
24462 (mep_handle_option): Access target_flags via opts pointer. Don't
24463 assert that global structures are in use. Defer part of -mivc2
24464 handling and move it to mep_option_override.
24465 * config/mep/mep.opt (IVC2): New Mask entry.
24466 (mivc2): Use Var and Defer instead of Mask.
24467
24468 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24469
24470 * config/v850/v850-opts.h: New.
24471 * config/v850/v850.c (small_memory): Replace with
24472 small_memory_physical_max array. Make that array static const.
24473 (v850_handle_memory_option): Take integer value of argument. Take
24474 gcc_options pointer, option text and location. Return void.
24475 Update for changes to small memory structures.
24476 (v850_handle_option): Access target_flags via opts pointer. Don't
24477 assert that global structures are in use. Update calls to
24478 v850_handle_memory_option.
24479 (v850_encode_data_area): Update references to small memory settings.
24480 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
24481 (enum small_memory_type): Move to v850-opts.h.
24482 * config/v850/v850.opt (config/v850/v850-opts.h): New
24483 HeaderInclude entry.
24484 (small_memory_max): New Variable entry.
24485 (msda): Replace by pair of options msda= and msda-. Use UInteger.
24486 (mtda, mzda): Likewise.
24487
24488 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24489
24490 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
24491 pointer. Don't assert that global structures are in use.
24492
24493 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24494
24495 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
24496 via opts pointer. Don't assert that global structures are in use.
24497
24498 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24499
24500 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
24501 (munix=93): Use Var.
24502 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
24503 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
24504 * config/pa/pa-opts.h: New.
24505 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
24506 (pa_handle_option): Don't assert that global structures are in
24507 use. Access target_flags via opts pointer. Don't handle
24508 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
24509 OPT_munix_98 here.
24510 (pa_option_override): Handle deferred OPT_mfixed_range_.
24511
24512 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24513
24514 * config/mn10300/mn10300-opts.h: New.
24515 * config/mn10300/mn10300.c (mn10300_processor,
24516 mn10300_tune_string): Remove.
24517 (mn10300_handle_option): Don't assert that global structures are
24518 in use. Access mn10300_processor via opts pointer. Don't handle
24519 OPT_mtune_ here.
24520 * config/mn10300/mn10300.h (enum processor_type): Move to
24521 mn10300-opts.h.
24522 (mn10300_processor): Remove.
24523 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
24524 HeaderInclude entry.
24525 (mn10300_processor): New Variable entry.
24526 (mtune=): Use Var.
24527
24528 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24529
24530 * config/microblaze/microblaze.c: Don't include opts.h.
24531 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
24532 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
24533 (mno-clearbss): Use Var and Warn.
24534
24535 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24536
24537 * config/m32r/m32r-opts.h: New.
24538 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
24539 (m32r_handle_option): Don't assert that global structures are in
24540 use. Access target_flags and m32r_cache_flush_func via opts
24541 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
24542 OPT_mno_flush_trap here.
24543 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
24544 include of m32r-opts.h.
24545 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
24546 HeaderInclude entry.
24547 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
24548 (mmodel=): Use Enum and Var.
24549 (m32r_model): New Enum and EnumValue entries.
24550 (mno-flush-trap): Use Var.
24551 (msdata=): Use Enum and Var.
24552 (m32r_sdata): New Enum and EnumValue entries.
24553
24554 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24555
24556 * config/m32c/m32c.c: Don't include opts.h.
24557 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
24558 m32c_handle_option): Remove.
24559 (m32c_option_override): Check global_options_set.x_target_memregs
24560 instead of target_memregs_set.
24561 * config/m32c/m32c.h (target_memregs): Remove.
24562 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
24563 variable.
24564
24565 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24566
24567 * config/iq2000/iq2000-opts.h: New.
24568 * config/iq2000/iq2000.c: Don't include opts.h.
24569 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
24570 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
24571 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
24572 HeaderInclude entry.
24573 (iq2000_tune): New Variable entry.
24574 (march=): Add comment. Use Enum.
24575 (iq2000_arch): New Enum and EnumValue entries.
24576 (mcpu=): Use Enum and Var.
24577 (iq2000_tune): New Enum and EnumValue entries.
24578
24579 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24580
24581 * config/ia64/ia64-opts.h: New.
24582 * config/ia64/ia64.c (ia64_tune): Remove.
24583 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
24584 here. Use error_at.
24585 (ia64_option_override): Handle deferred OPT_mfixed_range_.
24586 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
24587 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
24588 HeaderInclude entry.
24589 (ia64_tune): New Variable entry.
24590 (mfixed-range=): Use Defer and Var.
24591 (mtune=): Use Enum and Var.
24592 (ia64_tune): New Enum and EnumValue entries.
24593
24594 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24595
24596 * config/frv/frv-opts.h: New.
24597 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
24598 frv-opts.h.
24599 (frv_cpu_type): Remove.
24600 * config/frv/frv.c: Don't include opts.h.
24601 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
24602 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
24603 (frv_cpu_type): New Variable entry.
24604 (frv_cpu): New Enum and EnumValue entries.
24605
24606 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24607
24608 * config/cris/cris.c (cris_handle_option): Access target_flags via
24609 opts pointer. Don't assert that global structures are in use.
24610 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
24611 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
24612
24613 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24614
24615 * config/bfin/bfin-opts.h: New.
24616 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
24617 bfin_si_revision, bfin_workarounds): Remove.
24618 (bfin_cpus): Make static const.
24619 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
24620 not bfin_lib_id_given.
24621 (bfin_handle_option): Don't set bfin_lib_id_given. Access
24622 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
24623 pointer. Use error_at. Don't assert that global structures are in use.
24624 * config/bfin/bfin.h: Include bfin-opts.h.
24625 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
24626 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
24627 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
24628 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
24629 entries.
24630
24631 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24632
24633 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
24634 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
24635 or -msoft-float here.
24636 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
24637 -msoft-float and -mhard-float.
24638 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
24639 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24640 msoft-float.
24641 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
24642 -msoft-float.
24643 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
24644 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
24645 not mhard-float.
24646 (LIBGCC_SPEC): Don't handle -msoft-float.
24647 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
24648 -mhard-float.
24649 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24650 msoft-float.
24651 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
24652 -mfloat-abi=*, not -msoft-float and -mhard-float.
24653 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
24654 -msoft-float.
24655 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
24656 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
24657 mhard-float and msoft-float.
24658 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
24659 mfloat-abi=soft in comments, not mhard-float and msoft-float.
24660 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
24661 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
24662 mhard-float.
24663 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
24664 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
24665 msoft-float.
24666 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
24667 not mhard-float.
24668 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
24669 not msoft-float.
24670
24671 2011-03-22 Richard Henderson <rth@redhat.com>
24672
24673 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
24674 TARGET_ABI_WINDOWS_NT.
24675 (alpha_output_function_end_prologue): Likewise.
24676 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
24677 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
24678 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
24679 (trap, *movsi_nt_vms): Likewise.
24680 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
24681 (*tablejump_osf_nt_internal): Remove.
24682 * config/alpha/predicates.md (input_operand): Only test Pmode.
24683
24684 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24685
24686 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
24687 via opts pointer. Use error_at. Don't assert that global
24688 structures are in use.
24689
24690 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24691
24692 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
24693 (ix86_handle_option): Access ix86_isa_flags and
24694 ix86_isa_flags_explicit via opts pointer. Don't assert that
24695 global structures are in use.
24696 (ix86_function_specific_save, ix86_function_specific_restore):
24697 Update ix86_isa_flags_explicit field name.
24698 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
24699 (ix86_isa_flags_explicit): Rename TargetSave entry to
24700 x_ix86_isa_flags_explicit.
24701
24702 2011-03-22 Richard Henderson <rth@redhat.com>
24703
24704 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
24705 (alpha_option_override, direct_return): Likewise.
24706 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
24707 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
24708 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
24709 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
24710 (alpha_expand_epilogue, alpha_end_function): Likewise.
24711 (alpha_init_libfuncs): Likewise.
24712 (struct machine_function): Remove unicosmk members.
24713 (print_operand) ['t']: Remove.
24714 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
24715 unicosmk_output_module_name, unicosmk_output_common,
24716 current_section_align, unicosmk_output_text_section_asm_op,
24717 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
24718 unicosmk_section_type_flags, unicosmk_unique_section,
24719 unicosmk_asm_named_section, unicosmk_insert_attributes,
24720 unicosmk_output_align, unicosmk_defer_case_vector,
24721 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
24722 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
24723 unicosmk_output_ssib, unicosmk_add_call_info_word,
24724 unicosmk_extern_head, unicosmk_output_default_externs,
24725 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
24726 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
24727 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
24728 * config/alpha/alpha-protos.h: Update.
24729 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
24730 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
24731 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
24732 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
24733 (*mulsi_se, mulvsi3): Likewise.
24734 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
24735 (*divmodsi_internal, call, call_value, realign): Likewise.
24736 (moddi3, umoddi3): Likewise; remove duplicate expander.
24737 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
24738 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
24739 (*movdi_nofix): Remove r/U alternative.
24740 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
24741 * config/alpha/constraints.md ("U"): Remove.
24742 * config/alpha/predicates.md (call_operand"): Don't test
24743 TARGET_ABI_UNICOSMK.
24744
24745 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24746
24747 * target.def (handle_option): Take gcc_options and
24748 cl_decoded_option pointers and location_t.
24749 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
24750 * doc/tm.texi: Regenerate.
24751 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
24752 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
24753 * lto-opts.c (lto_reissue_options): Generate option structure for
24754 targetm.handle_option call.
24755 * opts.c (target_handle_option): Update call to
24756 targetm.handle_option. Remove assertions about values now passed
24757 down to hook.
24758 * targhooks.c (default_target_handle_option): New.
24759 * targhooks.h (default_target_handle_option): Declare.
24760 * config/alpha/alpha.c: Include opts.h.
24761 (alpha_handle_option): Update to new hook interface.
24762 * config/arm/arm.c: Include opts.h.
24763 (arm_handle_option): Update to new hook interface.
24764 * config/arm/t-arm (arm.o): Update dependencies.
24765 * config/bfin/bfin.c: Include opts.h.
24766 (bfin_handle_option): Update to new hook interface.
24767 * config/cris/cris.c: Include opts.h.
24768 (cris_handle_option): Update to new hook interface.
24769 * config/frv/frv.c: Include opts.h.
24770 (frv_handle_option): Update to new hook interface.
24771 * config/i386/i386.c: Include opts.h.
24772 (ix86_handle_option): Update to new hook interface.
24773 (ix86_valid_target_attribute_inner_p): Generate option structure
24774 for call to ix86_handle_option.
24775 * config/i386/t-i386 (i386.o): Update dependencies.
24776 * config/ia64/ia64.c: Include opts.h.
24777 (ia64_handle_option): Update to new hook interface.
24778 * config/ia64/t-ia64 (ia64.o): Update dependencies.
24779 * config/iq2000/iq2000.c: Include opts.h.
24780 (iq2000_handle_option): Update to new hook interface.
24781 * config/m32c/m32c.c: Include opts.h.
24782 (m32c_handle_option): Update to new hook interface.
24783 * config/m32r/m32r.c: Include opts.h.
24784 (m32r_handle_option): Update to new hook interface.
24785 * config/m68k/m68k.c: Include opts.h.
24786 (m68k_handle_option): Update to new hook interface.
24787 * config/mep/mep.c: Include opts.h.
24788 (mep_handle_option): Update to new hook interface.
24789 * config/microblaze/microblaze.c: Include opts.h.
24790 (microblaze_handle_option): Update to new hook interface.
24791 * config/mips/mips.c: Include opts.h.
24792 (mips_handle_option): Update to new hook interface.
24793 * config/mn10300/mn10300.c: Include opts.h.
24794 (mn10300_handle_option): Update to new hook interface.
24795 * config/pa/pa.c: Include opts.h.
24796 (pa_handle_option): Update to new hook interface.
24797 * config/pdp11/pdp11.c: Include opts.h.
24798 (pdp11_handle_option): Update to new hook interface.
24799 * config/rs6000/rs6000.c: Include opts.h.
24800 (rs6000_handle_option): Update to new hook interface.
24801 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
24802 * config/rx/rx.c: Include opts.h.
24803 (rx_handle_option): Update to new hook interface.
24804 * config/s390/s390.c: Include opts.h.
24805 (s390_handle_option): Update to new hook interface.
24806 * config/score/score.c: Include opts.h.
24807 (score_handle_option): Update to new hook interface.
24808 * config/sh/sh.c: Include opts.h.
24809 (sh_handle_option): Update to new hook interface.
24810 * config/sparc/sparc.c: Include opts.h.
24811 (sparc_handle_option): Update to new hook interface.
24812 * config/v850/v850.c: Include opts.h.
24813 (v850_handle_option): Update to new hook interface.
24814
24815 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24816
24817 * gcc.c (driver_unknown_option_callback): Only permit and save
24818 unknown -Wno- options.
24819 (driver_wrong_lang_callback): Save options directly instead of via
24820 driver_unknown_option_callback.
24821
24822 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
24823
24824 * combine.c (simplify_set): Try harder to find the best CC mode when
24825 simplifying a nested COMPARE on the RHS.
24826
24827 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24828
24829 * config/alpha/gnu.h: Remove.
24830 * config/arc: Remove directory.
24831 * config/arm/netbsd.h: Remove.
24832 * config/arm/t-pe: Remove.
24833 * config/crx: Remove directory.
24834 * config/i386/netbsd.h: Remove.
24835 * config/m68hc11: Remove directory.
24836 * config/m68k/uclinux-oldabi.h: Remove.
24837 * config/mcore/mcore-pe.h: Remove.
24838 * config/mcore/t-mcore-pe: Remove.
24839 * config/netbsd-aout.h: Remove.
24840 * config/rs6000/gnu.h: Remove.
24841 * config/sh/sh-symbian.h: Remove.
24842 * config/sh/symbian-base.c: Remove.
24843 * config/sh/symbian-c.c: Remove.
24844 * config/sh/symbian-cxx.c: Remove.
24845 * config/sh/symbian-post.h: Remove.
24846 * config/sh/symbian-pre.h: Remove.
24847 * config/sh/t-symbian: Remove.
24848 * config/svr3.h: Remove.
24849 * config/vax/netbsd.h: Remove.
24850 * config.build: Don't handle i[34567]86-*-pe.
24851 * config.gcc: Remove handling of deprecations for most deprecated
24852 targets.
24853 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
24854 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
24855 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
24856 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
24857 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
24858 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
24859 Remove cases.
24860 * config.host: Don't handle i[34567]86-*-pe.
24861 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
24862 (ASM_SPEC32): Don't handle -mcall-gnu.
24863 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
24864 -mcall-gnu.
24865 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
24866 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
24867 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
24868 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
24869 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
24870 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
24871 conditional on SYMBIAN.
24872 * configure.ac: Don't handle powerpc*-*-gnu*.
24873 * configure: Regenerate.
24874 * doc/extend.texi (interrupt attribute): Don't mention CRX.
24875 * doc/install-old.texi (m6811, m6812): Don't mention.
24876 * doc/install.texi (arc-*-elf*): Don't document multilib option.
24877 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
24878 (m68k-uclinuxoldabi): Don't mention.
24879 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
24880 Remove.
24881 (-mcall-gnu): Remove.
24882 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
24883 families): Remove constraint documentation.
24884
24885 2011-03-22 Marius Strobl <marius@FreeBSD.org>
24886
24887 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
24888 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
24889 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
24890
24891 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
24892
24893 PR target/48226
24894 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
24895 vector when peeking at the next token for vector, don't expand the
24896 keywords.
24897
24898 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
24899
24900 * config/avr/avr-protos.h (expand_epilogue): Change prototype
24901 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
24902 * config/avr/avr.c (init_cumulative_args)
24903 (avr_function_arg_advance): Use it.
24904 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
24905 sibcall epilogues.
24906 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
24907 (avr_function_ok_for_sibcall): ...this new function.
24908 (avr_lookup_function_attribute1): New static Function.
24909 (avr_naked_function_p, interrupt_function_p)
24910 (signal_function_p, avr_OS_task_function_p)
24911 (avr_OS_main_function_p): Use it.
24912 * config/avr/avr.md ("sibcall", "sibcall_value")
24913 ("sibcall_epilogue"): New expander.
24914 ("*call_insn", "*call_value_insn"): New insn.
24915 ("call_insn", "call_value_insn"): Remove
24916 ("call", "call_value", "epilogue"): Change expander to handle
24917 sibling calls.
24918
24919 2011-03-21 Nick Clifton <nickc@redhat.com>
24920
24921 * doc/invoke.texi (Overall Options): Move closing brace to end of
24922 options list.
24923 (Optimization Options): Add missing @gol.
24924 (Directory Options): Likewise.
24925 (i386 and x86-64 Options): Likewise.
24926 (RS6000 and PowerPC Options): Likewise.
24927 (i386 and x86-64 Windows Options): Likewise.
24928 (V850 Options): Add text missing from descriptions.
24929
24930 2011-03-22 Richard Henderson <rth@redhat.com>
24931
24932 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
24933 (avr_incoming_return_addr_rtx): New.
24934 (emit_push_byte): New.
24935 (expand_prologue): Use it. Remove incorrect dwarf annotation for
24936 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
24937 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
24938 (emit_pop_byte): New.
24939 (expand_epilogue): Use it. Pop frame pointer by bytes.
24940 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
24941 (INCOMING_RETURN_ADDR_RTX): New.
24942 (INCOMING_FRAME_SP_OFFSET): New.
24943 (ARG_POINTER_CFA_OFFSET): New.
24944 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
24945 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
24946 (pophi): Remove.
24947
24948 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
24949
24950 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
24951
24952 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
24953 (FUNCTION_ARG_ADVANCE): Likewise.
24954 * tm.texi.in: Change references to them to hook references.
24955 * tm.texi: Regenerate.
24956 * targhooks.c (default_function_arg): Eliminate check for target
24957 macro.
24958 (default_function_incoming_arg): Likewise.
24959 (default_function_arg_advance): Likewise.
24960 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
24961 (function_arg_advance): Likewise.
24962 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
24963
24964 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
24965
24966 * tree.c (build_call_1): New function.
24967 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
24968
24969 2011-03-22 Richard Guenther <rguenther@suse.de>
24970
24971 PR tree-optimization/48228
24972 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
24973 for single-arg PHIs.
24974
24975 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
24976
24977 PR rtl-optimization/48143
24978 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
24979 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
24980 sse2_cvtps2pd): Likewise.
24981
24982 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24983
24984 * recog.c (canonicalize_change_group): Use validate_unshare_change.
24985
24986 2011-03-22 Richard Guenther <rguenther@suse.de>
24987
24988 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
24989 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
24990 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
24991 and REALIGN_LOAD_EXPR.
24992 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
24993 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
24994 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
24995 DOT_PROD_EXPR case ...
24996 (expand_expr_real_2): ... here.
24997 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
24998 and REALIGN_LOAD_EXPR.
24999 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
25000 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
25001 (vect_create_epilog_for_reduction): Likewise.
25002 (vectorizable_reduction): Likewise.
25003 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
25004 * tree-vect-stmts.c (vectorizable_load): Likewise.
25005
25006 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
25007
25008 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
25009
25010 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25011
25012 * config/s390/s390.c (s390_delegitimize_address): Fix offset
25013 handling for PLTOFF/GOTOFF.
25014
25015 2011-03-22 Nick Clifton <nickc@redhat.com>
25016
25017 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
25018 trailing backslash from the end of the macro definition.
25019
25020 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25021
25022 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
25023 and PLT unspecs.
25024
25025 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
25026
25027 * expr.h (prepare_operand): Move to...
25028 * optabs.h (prepare_operand): ...here and change the insn code
25029 parameter from "int" to "enum insn_code".
25030 (insn_operand_matches): Declare.
25031 * expr.c (init_expr_target): Use insn_operand_matches.
25032 (compress_float_constant): Likewise.
25033 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
25034 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
25035 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
25036 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
25037 Likewise.
25038 (gen_cond_trap): Likewise.
25039 (prepare_operand): Likewise. Change icode to an insn_code.
25040 (insn_operand_matches): New function.
25041 * reload.c (find_reloads_address_1): Use insn_operand_matches.
25042 * reload1.c (gen_reload): Likewise.
25043 * targhooks.c (default_secondary_reload): Likewise.
25044
25045 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
25046
25047 * config/alpha/alpha.md (unspec): New define_c_enum.
25048 (unspecv): Ditto.
25049
25050 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
25051
25052 PR debug/48214
25053 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
25054 between a call and its CALL_ARG_LOCATION note.
25055
25056 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
25057
25058 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
25059
25060 2011-03-21 Jakub Jelinek <jakub@redhat.com>
25061
25062 PR c/42544
25063 PR c/48197
25064 * c-common.c (shorten_compare): If primopN is first sign-extended
25065 to opN and then zero-extended to result type, set primopN to opN.
25066
25067 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
25068
25069 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
25070 for barrier handlers.
25071
25072 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
25073
25074 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
25075 UNSPEC constants to be in the unspec enumeration, and redefine
25076 all UNSPECV constants to be in the unspecv enumeration, so that
25077 dumps print which unspec/unspec_volatile this is.
25078 * config/rs6000/vector.md (UNSPEC_*): Ditto.
25079 * config/rs6000/paired.md (UNSPEC_*): Ditto.
25080 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
25081 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
25082 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
25083
25084 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
25085 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
25086 UNSPECV_LWSYNC, since these are used as unspec_volatile.
25087 * config/rs6000/sync.md (isync, lwsync): Ditto.
25088
25089 2011-03-21 Richard Guenther <rguenther@suse.de>
25090
25091 * params.def (lto-min-partition): Fix typo.
25092
25093 2011-03-21 Richard Guenther <rguenther@suse.de>
25094
25095 PR c/47939
25096 * c-decl.c (grokdeclarator): Drop to the main variant only
25097 for array types. Drop flag_gen_aux_info check.
25098
25099 2011-03-21 Richard Guenther <rguenther@suse.de>
25100
25101 PR translation/47911
25102 * params.def (lto-partitions): Fix typo.
25103 (lto-min-partition): Fix wording.
25104
25105 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
25106
25107 * config/rs6000/t-freebsd: Remove duplication from file.
25108
25109 2011-03-21 Richard Guenther <rguenther@suse.de>
25110
25111 PR middle-end/47661
25112 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
25113
25114 2011-03-21 Richard Guenther <rguenther@suse.de>
25115
25116 PR lto/48210
25117 * params.def (lto-partitions): Require at least 1 partition.
25118
25119 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25120
25121 * gthr-solaris.h: Remove.
25122 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
25123 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
25124 (LIB_SPEC): Likewise.
25125 * config/sol2.opt (threads): Remove.
25126 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
25127 (sparc*-*-solaris2*): Likewise.
25128 * configure.ac (enable_threads): Enable solaris support.
25129 * configure: Regenerate.
25130 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
25131 * doc/install.texi (Configuration, --enable-threads=lib): Remove
25132 solaris.
25133
25134 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25135
25136 * config.gcc: Obsolete *-*-solaris2.8*.
25137 * doc/install.texi (Specific, *-*-solaris2*): Document it.
25138
25139 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25140
25141 PR bootstrap/48135
25142 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
25143 reference. Solaris 8 perl works.
25144
25145 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25146
25147 PR bootstrap/48135
25148 * doc/install.texi (Prerequisites): Move jar etc. up.
25149 Explain support library version requirements.
25150
25151 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25152
25153 PR bootstrap/48135
25154 * doc/install.texi (Prerequisites): Move Perl to build
25155 requirements. Always necessary on Solaris 2 with Sun ld.
25156
25157 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25158
25159 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
25160 binutils 2.21.
25161 (Specific, i?86-*-solaris2.[89]): Likewise.
25162 (Specific, i?86-*-solaris2.10): Likewise.
25163 (Specific, mips-sgi-irix6): Likewise.
25164 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
25165 Update for binutils 2.21.
25166
25167 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25168
25169 * configure.ac (gcc_cv_lto_plugin): Fix typo.
25170 Allow -fuse-linker-plugin for non-default plugin linker.
25171 * configure: Regenerate.
25172
25173 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
25174
25175 PR bootstrap/48167
25176 * gengtype.c (files_rules): Added rule for cp/parser.h.
25177
25178 2011-03-21 Jakub Jelinek <jakub@redhat.com>
25179
25180 PR target/48213
25181 * config/s390/s390.c (s390_delegitimize_address): Don't call
25182 lowpart_subreg if orig_x has BLKmode.
25183
25184 2011-03-21 Kai Tietz <ktietz@redhat.com>
25185
25186 PR target/12171
25187 * doc/plugins.texi: Adjust documentation for plugin register_callback.
25188 * tree.h (attribute_spec): Add new member affects_type_identity.
25189 * attribs.c (empty_attribute_table): Adjust attribute_spec
25190 initializers.
25191 * config/alpha/alpha.c: Likewise.
25192 * config/arc/arc.c: Likewise.
25193 * config/arm/arm.c: Likewise.
25194 * config/avr/avr.c: Likewise.
25195 * config/bfin/bfin.c: Likewise.
25196 * config/crx/crx.c: Likewise.
25197 * config/darwin.h: Likewise.
25198 * config/h8300/h8300.c: Likewise.
25199 * config/i386/cygming.h: Likewise.
25200 * config/i386/i386.c: Likewise.
25201 * config/ia64/ia64.c: Likewise.
25202 * config/m32c/m32c.c: Likewise.
25203 * config/m32r/m32r.c: Likewise.
25204 * config/m68hc11/m68hc11.c: Likewise.
25205 * config/m68k/m68k.c: Likewise.
25206 * config/mcore/mcore.c: Likewise.
25207 * config/mep/mep.c: Likewise.
25208 * config/microblaze/microblaze.c: Likewise.
25209 * config/mips/mips.c: Likewise.
25210 * config/rs6000/rs6000.c: Likewise.
25211 * config/rx/rx.c: Likewise.
25212 * config/sh/sh.c: Likewise.
25213 * config/sol2.h: Likewise.
25214 * config/sparc/sparc.c: Likewise.
25215 * config/spu/spu.c: Likewise.
25216 * config/stormy16/stormy16.c: Likewise.
25217 * config/v850/v850.c: Likewise.
25218
25219 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
25220
25221 * simplify-rtx.c (simplify_binary_operation_1): Handle
25222 (xor (and A B) C) case when B and C are both constants.
25223
25224 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
25225
25226 * tree-dfa.c (add_referenced_var): Fix typo in comment.
25227
25228 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
25229
25230 PR bootstrap/48168
25231 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
25232
25233 2011-03-20 Jakub Jelinek <jakub@redhat.com>
25234
25235 PR rtl-optimization/48156
25236 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
25237 assume df and df_lr are not NULL.
25238
25239 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
25240
25241 PR debug/48023
25242 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
25243 between a call and its CALL_ARG_LOCATION note.
25244
25245 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
25246
25247 PR debug/48178
25248 * config/sh/sh.c (find_barrier): Don't emit a constant pool
25249 between a call and its corresponding CALL_ARG_LOCATION note.
25250
25251 2011-03-19 Anatoly Sokolov <aesok@post.ru>
25252
25253 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
25254 instead of loop. Use HARD_REGISTER_NUM_P predicate.
25255 * haifa-sched.c (setup_ref_regs): Ditto.
25256 * caller-save.c (add_used_regs_1): Ditto.
25257 * dse.c (look_for_hardregs): Ditto.
25258 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
25259 * sched-rgn.c (check_live_1): Ditto.
25260
25261 2011-03-18 Joseph Myers <joseph@codesourcery.com>
25262
25263 * c-decl.c (diagnose_mismatched_decls): Give an error for
25264 redefining a typedef with variably modified type.
25265
25266 2011-03-18 Joseph Myers <joseph@codesourcery.com>
25267
25268 * c-decl.c (grokfield): Don't allow typedefs for structures or
25269 unions with no tag by default.
25270 * doc/extend.texi (Unnamed Fields): Update.
25271
25272 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
25273
25274 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
25275 Rewrite using indirect functions.
25276 (lwp_slwpcb): Ditto.
25277 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
25278 (avx_vinsertf128<mode>): Ditto.
25279
25280 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25281
25282 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
25283 unspecs.
25284
25285 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25286
25287 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
25288 splitting between a call and its corresponding CALL_ARG_LOCATION note.
25289
25290 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
25291
25292 PR rtl-optimization/48170
25293 * gcse.c (hoist_code): Remove bogus asserts.
25294
25295 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
25296
25297 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
25298 computation for prologue/epilogue.
25299
25300 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25301
25302 * Makefile.in (check-consistency): Remove.
25303
25304 2011-03-18 Jakub Jelinek <jakub@redhat.com>
25305
25306 PR debug/48176
25307 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
25308 arange_table_in_use is 0, but either text_section_used or
25309 cold_text_section_used is true. Don't call it if
25310 !info_section_emitted.
25311
25312 2011-03-18 Anatoly Sokolov <aesok@post.ru>
25313
25314 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
25315 FUNCTION_VALUE_REGNO_P): Remove.
25316 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
25317 Remove.
25318 * config/avr/avr.c (avr_ret_register): Make static inline.
25319 (avr_function_value_regno_p): New function.
25320 (avr_libcall_value): Make static. Add 'func' argument.
25321 (avr_function_value): Make static. Rename 'func' argument to
25322 'fn_decl_or_type', forward it to avr_libcall_value. Call
25323 avr_ret_register function instead of RET_REGISTER macro.
25324 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
25325
25326 2011-03-18 Jason Merrill <jason@redhat.com>
25327
25328 PR c++/23372
25329 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
25330
25331 2011-03-18 Richard Guenther <rguenther@suse.de>
25332
25333 * doc/install.texi (--enable-gold): Remove.
25334 (--with-plugin-ld): Document.
25335 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
25336
25337 2011-03-18 Andrew Pinski <pinskia@gmail.com>
25338
25339 PR middle-end/47790
25340 * expr.c (optimize_bitfield_assignment_op): Revamp to work
25341 again after expansion changes.
25342
25343 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
25344
25345 * combine.c (try_combine): Do simplification only call of
25346 subst() on i2 even when i1 is present. Update comments.
25347
25348 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
25349
25350 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
25351 and UNSPEC_PCREL_SYMOFF.
25352
25353 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25354
25355 * config/s390/s390.md: Use define_c_enum for the unspec constant
25356 definitions.
25357
25358 2011-03-18 Richard Henderson <rth@redhat.com>
25359 Jakub Jelinek <jakub@redhat.com>
25360
25361 PR bootstrap/48161
25362 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
25363 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
25364
25365 2011-03-17 Anatoly Sokolov <aesok@post.ru>
25366
25367 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
25368 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
25369 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
25370 Change return type to bool.
25371 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
25372
25373 2011-03-17 Jakub Jelinek <jakub@redhat.com>
25374
25375 PR debug/48163
25376 * var-tracking.c (prepare_call_arguments): If CALL target
25377 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
25378 pc instead of looking it up using cselib_lookup and use
25379 Pmode for it if x has VOIDmode.
25380 * dwarf2out.c (gen_subprogram_die): If also both first and
25381 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
25382
25383 PR debug/48163
25384 * function.c (assign_parms): For data.passed_pointer parms
25385 use MEM of data.entry_parm instead of data.entry_parm itself
25386 as DECL_INCOMING_RTL.
25387 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
25388 also when passed and declared mode is the same, DECL_RTL
25389 is a MEM with pseudo as address and DECL_INCOMING_RTL is
25390 a MEM too.
25391
25392 2011-03-16 Jeff Law <law@redhat.com>
25393
25394 PR rtl-optimization/37273
25395 * ira-costs.c (scan_one_insn): Detect constants living in memory and
25396 handle them like argument loads from stack slots. Do not double
25397 count memory for memory constants and argument loads from stack slots.
25398
25399 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
25400
25401 PR debug/48160
25402 * var-tracking.c (prepare_call_arguments): Check SUBREG.
25403
25404 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
25405
25406 PR target/48171
25407 * config/i386/i386.opt: Add Save to -mavx and -mfma.
25408
25409 2011-03-17 Jakub Jelinek <jakub@redhat.com>
25410
25411 PR bootstrap/48153
25412 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
25413 if dwarf_strict.
25414 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
25415 Clear call_arg_locations and call_arg_loc_last always.
25416
25417 PR middle-end/48152
25418 * var-tracking.c (prepare_call_arguments): If argument needs to be
25419 passed by reference, adjust argtype and mode.
25420
25421 2011-03-17 Richard Guenther <rguenther@suse.de>
25422
25423 PR middle-end/48134
25424 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
25425 a value make sure to fold the statement.
25426
25427 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
25428
25429 PR target/43872
25430 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
25431 return condition with !cfun->calls_alloca.
25432
25433 2011-03-17 Richard Guenther <rguenther@suse.de>
25434
25435 PR bootstrap/48148
25436 * lto-cgraph.c (input_overwrite_node): Clear the abstract
25437 origin for decls in other ltrans units.
25438 (input_varpool_node): Likewise.
25439
25440 2011-03-17 Richard Guenther <rguenther@suse.de>
25441
25442 PR middle-end/48165
25443 * tree-object-size.c (compute_object_offset): Properly return
25444 the offset operand of MEM_REFs as sizetype.
25445
25446 2011-03-17 Jakub Jelinek <jakub@redhat.com>
25447
25448 PR rtl-optimization/48141
25449 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
25450 * dse.c: Include params.h.
25451 (active_local_stores_len): New variable.
25452 (add_wild_read, dse_step1): Clear it when setting active_local_stores
25453 to NULL.
25454 (record_store, check_mem_read_rtx): Decrease it when removing
25455 from the chain.
25456 (scan_insn): Likewise. Increase it when adding to chain, if it
25457 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
25458 set active_local_stores to NULL before the addition.
25459 * Makefile.in (dse.o): Depend on $(PARAMS_H).
25460
25461 PR rtl-optimization/48141
25462 * dse.c (record_store): If no positions are needed in an insn
25463 that cannot be deleted, at least unchain it from active_local_stores.
25464
25465 2011-03-16 Dodji Seketeli <dodji@redhat.com>
25466
25467 PR debug/47510
25468 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
25469 (lookup_type_die_strip_naming_typedef): ... here.
25470 (get_context_die): Use it.
25471 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
25472 the anonymous struct named by the naming typedef.
25473
25474 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
25475
25476 PR target/48154
25477 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
25478 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
25479
25480 2011-03-16 Jeff Law <law@redhat.com>
25481
25482 * tree-vrp.c (identify_jump_threads): Slightly simplify type
25483 check for operands of conditional. Allow type to be a pointer.
25484
25485 2011-03-16 Richard Guenther <rguenther@suse.de>
25486
25487 PR tree-optimization/48149
25488 * fold-const.c (fold_binary_loc): Fold
25489 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
25490
25491 2011-03-16 Richard Guenther <rguenther@suse.de>
25492
25493 PR tree-optimization/26134
25494 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
25495 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
25496 (non_rewritable_mem_ref_base): Handle complex type component
25497 accesses, constrain offsets for vector and complex extracts
25498 more properly.
25499
25500 2011-03-16 Richard Guenther <rguenther@suse.de>
25501
25502 PR tree-optimization/48146
25503 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
25504 operands avoiding the need for renaming.
25505
25506 2011-03-16 Richard Guenther <rguenther@suse.de>
25507
25508 * gimple-fold.c (maybe_fold_reference): Open-code relevant
25509 constant folding. Move MEM_REF canonicalization first.
25510 Rely on fold_const_aggregate_ref for initializer folding.
25511 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
25512
25513 2011-03-16 Jakub Jelinek <jakub@redhat.com>
25514
25515 PR middle-end/48136
25516 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
25517 arg0/arg1 or their arguments are always fold converted to matching
25518 types.
25519
25520 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
25521 to nargs.
25522
25523 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25524
25525 PR lto/46944
25526 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
25527 Handle in-tree gold.
25528 (ld_vers): Extract binutils version for gold.
25529 (gcc_cv_ld_hidden): Handle gold here.
25530 (gcc_cv_lto_plugin): Determine level of linker plugin support.
25531 * configure: Regenerate.
25532 * config.in: Regenerate.
25533 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
25534 -fuse-linker-plugin otherwise.
25535 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
25536 (LINK_COMMAND_SPEC): Use it.
25537 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
25538
25539 2011-03-16 Jakub Jelinek <jakub@redhat.com>
25540
25541 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
25542 * calls.c: Remove debug.h include.
25543 (emit_call_1): Don't call virtual_call_token debug hook.
25544 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
25545 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
25546 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
25547 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
25548 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
25549 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
25550 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
25551 dwarf2out_virtual_call): Remove.
25552 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
25553 copy_call_info and virtual_call hooks.
25554 (dwarf2out_init): Don't initialize vcall_insn_table,
25555 debug_dcall_section and debug_vcall_section.
25556 (prune_unused_types): Don't mark nodes from dcall_table.
25557 (dwarf2out_finish): Don't output dcall or vcall tables.
25558 * final.c (final_scan_insn): Don't call direct_call or
25559 virtual_call debug hooks.
25560 * debug.h (struct gcc_debug_hooks): Remove direct_call,
25561 virtual_call_token, copy_call_info and virtual_call hooks.
25562 (debug_nothing_uid): Remove prototype.
25563 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
25564 copy_call_info and virtual_call hooks.
25565 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
25566 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
25567 * debug.c (do_nothing_debug_hooks): Likewise.
25568 (debug_nothing_uid): Remove.
25569 * doc/invoke.texi (-fenable-icf-debug): Remove.
25570 * common.opt (-fenable-icf-debug): Likewise.
25571
25572 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
25573 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
25574 call's MEM. Handle functions returning aggregate through a hidden
25575 first pointer. For virtual calls add clobbered pc to call arguments
25576 chain.
25577 * dwarf2out.c (gen_subprogram_die): Emit
25578 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
25579 can't be emitted.
25580
25581 PR debug/45882
25582 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
25583 * rtl.h (ENTRY_VALUE_EXP): Define.
25584 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
25585 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
25586 * print-rtl.c (print_rtx): Likewise.
25587 * gengtype.c (adjust_field_rtx_def): Likewise.
25588 * var-tracking.c (vt_add_function_parameter): Adjust
25589 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
25590 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
25591 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
25592 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
25593 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
25594
25595 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
25596 Call var_location debug hook even on CALL_INSNs.
25597 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
25598 * rtl.def (ENTRY_VALUE): New.
25599 * dwarf2out.c: Include cfglayout.h.
25600 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
25601 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
25602 (struct call_arg_loc_node): New type.
25603 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
25604 tail_call_site_count): New variables.
25605 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
25606 DW_TAG_GNU_call_site_parameter.
25607 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
25608 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
25609 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
25610 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
25611 and DW_AT_GNU_all_source_call_sites.
25612 (mem_loc_descriptor): Handle ENTRY_VALUE.
25613 (add_src_coords_attributes): Don't add enything if
25614 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
25615 (dwarf2out_abstract_function): Save and clear call_arg_location,
25616 call_site_count and tail_call_site_count around dwarf2out_decl call.
25617 (gen_call_site_die): New function.
25618 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
25619 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
25620 (dwarf2out_function_decl): Clear call_arg_locations,
25621 call_arg_loc_last, set call_site_count and tail_call_site_count
25622 to -1 and free block_map.
25623 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
25624 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
25625 followed by any real instructions.
25626 (dwarf2out_begin_function): Set call_site_count and
25627 tail_call_site_count to 0.
25628 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
25629 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
25630 attempt to force a DIE for it and worst case remove the attribute.
25631 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
25632 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
25633 the decl itself.
25634 * var-tracking.c: Include tm_p.h.
25635 (vt_stack_adjustments): For calls call note_register_arguments.
25636 (argument_reg_set): New variable.
25637 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
25638 ensure the VALUE is resolved.
25639 (call_arguments): New variable.
25640 (prepare_call_arguments): New function.
25641 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
25642 (struct expand_loc_callback_data): Add ignore_cur_loc field.
25643 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
25644 always use the best expression.
25645 (vt_expand_loc): Add ignore_cur_loc argument.
25646 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
25647 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
25648 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
25649 note for all calls.
25650 (vt_add_function_parameter): Use cselib_lookup_from_insn.
25651 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
25652 argument. Don't call cselib_preserve_only_values and
25653 cselib_reset_table.
25654 (note_register_arguments): New function.
25655 (vt_initialize): Compute argument_reg_set. Call
25656 vt_add_function_parameters before processing basic blocks instead of
25657 afterwards. For calls call prepare_call_arguments before calling
25658 cselib_process_insn.
25659 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
25660 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
25661 (var-tracking.o): Depend on $(TM_P_H).
25662 * cfglayout.h (insn_scope): New prototype.
25663 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
25664 * cfglayout.c (insn_scope): No longer static.
25665 * insn-notes.def (CALL_ARG_LOCATION): New.
25666 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
25667 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
25668 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
25669 nothing for DECL_EXTERNAL BLOCK_VARS.
25670
25671 2011-03-16 Alan Modra <amodra@gmail.com>
25672
25673 PR target/45844
25674 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
25675 create invalid offset address for vsx splat insn.
25676 * config/rs6000/predicates.md (splat_input_operand): New.
25677 * config/rs6000/vsx.md (vsx_splat_*): Use it.
25678
25679 2011-03-15 Xinliang David Li <davidxl@google.com>
25680
25681 PR c/47837
25682 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
25683 (normalize_preds): New function.
25684 (is_use_properly_guarded): Normalize def predicates.
25685
25686 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
25687
25688 PR target/46788
25689 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
25690 in the output template.
25691
25692 2011-03-15 Richard Guenther <rguenther@suse.de>
25693
25694 PR middle-end/47650
25695 * tree-pretty-print.c (dump_function_declaration): Properly
25696 dump unprototyped and varargs function types.
25697
25698 2011-03-15 Richard Guenther <rguenther@suse.de>
25699
25700 PR tree-optimization/13954
25701 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
25702 and friends.
25703
25704 2011-03-15 Richard Guenther <rguenther@suse.de>
25705
25706 PR tree-optimization/48037
25707 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
25708 selects into BIT_FIELD_REFs.
25709 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
25710 vector select.
25711
25712 2011-03-15 Jakub Jelinek <jakub@redhat.com>
25713
25714 PR tree-optimization/48129
25715 * builtins.c (fold_builtin_snprintf): Convert to type of
25716 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
25717 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
25718
25719 2011-03-15 Richard Guenther <rguenther@suse.de>
25720
25721 PR tree-optimization/41490
25722 * tree-ssa-dce.c (propagate_necessity): Handle returns without
25723 value but with VUSE.
25724 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
25725 return statements.
25726 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
25727 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
25728 * tree-tailcall.c (find_tail_calls): Ignore returns.
25729
25730 2011-03-15 Richard Guenther <rguenther@suse.de>
25731
25732 PR middle-end/48031
25733 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
25734 or variable-indexed array accesses when in gimple form.
25735
25736 2011-03-15 Richard Guenther <rguenther@suse.de>
25737
25738 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
25739
25740 2011-03-15 Alan Modra <amodra@gmail.com>
25741
25742 PR target/48032
25743 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
25744 presume symbol_refs without a symbol_ref_decl are suitably
25745 aligned, nor other trees we may see here. Handle anchor symbols.
25746 (legitimate_constant_pool_address_p): Comment. Add mode param.
25747 Check cmodel=medium addresses. Adjust all calls.
25748 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
25749 creating cmodel=medium optimized access to locals.
25750 * config/rs6000/constraints.md (R): Pass QImode to
25751 legitimate_constant_pool_address_p.
25752 * config/rs6000/predicates.md (input_operand): Pass mode to
25753 legitimate_constant_pool_address_p.
25754 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
25755 Update prototype.
25756
25757 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
25758
25759 PR target/48053
25760 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
25761 64-bit constants being loaded into registers other than GPRs such
25762 as loading 0 into a VSX register.
25763
25764 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25765
25766 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
25767
25768 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25769
25770 PR middle-end/47917
25771 * builtins.c (fold_builtin_snprintf): New function.
25772 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
25773 (fold_builtin_4): Likewise.
25774
25775 PR middle-end/38878
25776 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
25777 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
25778 and C - X == X also strip nops from +/-/p+ operand.
25779 When optimizing -X == C, fold C to arg0's type.
25780
25781 PR debug/47946
25782 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
25783 emit it as add_AT_int instead of add_AT_unsigned.
25784
25785 2011-03-14 Tom Tromey <tromey@redhat.com>
25786
25787 * unwind-dw2.c: Include sys/sdt.h if it exists.
25788 (_Unwind_DebugHook): Use STAP_PROBE2.
25789 * config.in, configure: Rebuild.
25790 * configure.ac: Check for sys/sdt.h.
25791
25792 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
25793
25794 * config/i386/i386.md (ROUND_FLOOR): New constant.
25795 (ROUND_CEIL): Ditto.
25796 (ROUND_TRUNC): Ditto.
25797 (ROUND_MXCSR): Ditto.
25798 (ROUND_NO_EXC): Ditto.
25799 (rint<mode>2): Use new defines instead of numerical constants.
25800 (floor<mode>2): Ditto.
25801 (ceil<mode>2): Ditto.
25802 (btrunc<mode>2): Ditto.
25803 * config/i386/i386-builtin-types.def: Define ROUND function type
25804 aliases.
25805 * config/i386/i386.c (enum ix86_builtins): Add
25806 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
25807 (struct builtin_description): Add
25808 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
25809 (ix86_expand_sse_round): New static function.
25810 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
25811 function types.
25812 (ix86_builtin_vectorized_function): Handle
25813 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
25814
25815 2011-03-14 Tom Tromey <tromey@redhat.com>
25816
25817 * c-parser.c (c_parser_asm_string_literal): Clear
25818 warn_overlength_strings.
25819
25820 2011-03-14 Tom Tromey <tromey@redhat.com>
25821
25822 * c-parser.c (disable_extension_diagnostics): Save
25823 warn_overlength_strings.
25824 (restore_extension_diagnostics): Restore warn_overlength_strings.
25825
25826 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25827
25828 * BASE-VER: Change to 4.7.0.
25829
25830 2011-03-14 Richard Guenther <rguenther@suse.de>
25831
25832 PR middle-end/48098
25833 * tree.c (build_vector_from_val): Adjust assert to requirements
25834 and reality.
25835
25836 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25837
25838 PR bootstrap/48102
25839 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
25840
25841 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
25842
25843 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
25844 terms of target_flags_explicit. Adjust copyright year.
25845
25846 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
25847 * config/rs6000/t-freebsd: New file. Add override for
25848 LIB2FUNCS_EXTRA.
25849
25850 2011-03-13 Chris Demetriou <cgd@google.com>
25851
25852 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
25853 (-fno-diagnostics-show-option): this, to reflect current default.
25854 (-Werror=): Update text about -fno-diagnostics-show-option.
25855
25856 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
25857
25858 PR target/48053
25859 * config/rs6000/predicates.md (easy_vector_constant_add_self,
25860 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
25861 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
25862 mode is not V2DImode or V2DFmode.
25863 (vspltis_constant): Do not handle V2DImode and V2DFmode.
25864 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
25865 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
25866 registers to 0.
25867 (movdi_internal64): Likewise.
25868
25869 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
25870
25871 PR tree-optimization/47127
25872 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
25873 parameter.
25874 (set_cloog_options): Same.
25875 (scop_to_clast): Same.
25876 (print_clast_stmt): Do not call cloog_state_malloc and
25877 cloog_state_free.
25878 (print_generated_program): Same.
25879 (gloog): Same.
25880 * graphite-clast-to-gimple.h (cloog_state): Declared.
25881 (scop_to_clast): Adjust declaration.
25882 * graphite.c (cloog_state): Defined here.
25883 (graphite_initialize): Call cloog_state_malloc.
25884 (graphite_finalize): Call cloog_state_free.
25885
25886 2011-03-11 Jason Merrill <jason@redhat.com>
25887
25888 * attribs.c (lookup_attribute_spec): Take const_tree.
25889 * tree.h: Adjust.
25890
25891 2011-03-11 Joseph Myers <joseph@codesourcery.com>
25892
25893 * config/sparc/sparc.c (sparc_option_override): Use
25894 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
25895
25896 2011-03-11 Richard Guenther <rguenther@suse.de>
25897
25898 PR tree-optimization/48067
25899 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
25900 multiplication result will be only used once on the target
25901 stmt.
25902
25903 2011-03-11 Richard Guenther <rguenther@suse.de>
25904
25905 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
25906
25907 2011-03-11 Richard Guenther <rguenther@suse.de>
25908
25909 PR lto/48073
25910 * tree.c (find_decls_types_r): Do not walk types only reachable
25911 from IDENTIFIER_NODEs.
25912
25913 2011-03-11 Jakub Jelinek <jakub@redhat.com>
25914
25915 PR middle-end/48044
25916 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
25917 all vnode->force_output nodes as needed.
25918
25919 2011-03-11 Jason Merrill <jason@redhat.com>
25920
25921 PR c++/48069
25922 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
25923 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
25924
25925 2011-03-11 Martin Jambor <mjambor@suse.cz>
25926
25927 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
25928 cgraph_node.
25929
25930 2011-03-11 Jakub Jelinek <jakub@redhat.com>
25931
25932 PR tree-optimization/48063
25933 * ipa-inline.c (cgraph_decide_inlining): Don't try to
25934 inline functions called once if !tree_can_inline_p (node->callers).
25935
25936 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
25937
25938 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
25939 extra_objs.
25940 * config/score/score3.c: Delete.
25941 * config/score/score3.h: Delete.
25942 * config/score/mul-div.S: Delete.
25943 * config/score/sfp-machine.h: Add new file.
25944 * config/score/constraints.md: Add new file.
25945 * config/score/t-score-softfp: Add new file.
25946 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
25947 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
25948 (score7_extra_constraint): Delete.
25949 (score7_option_override): Remove unused code.
25950 * config/score/score.c: Remove score3 and score5 define and code.
25951 * config/score/score.h: Remove score3 and score5 define and code.
25952 * config/score/score.md: Remove score3 template and unusual insn.
25953 * config/score/score.opt: Remove score3 and score5 options.
25954
25955 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25956
25957 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
25958 when _HPUX_SOURCE is defined.
25959 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
25960
25961 2011-03-10 Jason Merrill <jason@redhat.com>
25962
25963 PR c++/48029
25964 * stor-layout.c (layout_type): Don't set structural equality
25965 on arrays of incomplete type.
25966 * tree.c (type_hash_eq): Handle comparing them properly.
25967
25968 2011-03-10 Jakub Jelinek <jakub@redhat.com>
25969
25970 PR debug/48043
25971 * config/s390/s390.c (s390_delegitimize_address): Make sure the
25972 result mode matches original rtl mode.
25973
25974 2011-03-10 Nick Clifton <nickc@redhat.com>
25975
25976 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
25977 (andsi3, andsi3_flags): Fix timings for three operand alternative.
25978
25979 2011-03-09 Jakub Jelinek <jakub@redhat.com>
25980
25981 PR rtl-optimization/47866
25982 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
25983 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
25984 if target wasn't scalar.
25985 * function.c (assign_stack_temp_for_type): Assert that neither
25986 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
25987 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
25988 macro.
25989 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
25990
25991 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25992
25993 * config/s390/s390-protos.h (s390_label_align): New prototype.
25994 * config/s390/s390.c (s390_label_align): New function.
25995 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
25996
25997 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
25998
25999 PR target/47755
26000 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
26001 V2DI/V2DF constants. Only all 0's or all 1's are easy.
26002 (output_vec_const_move): Ditto.
26003
26004 2011-03-08 Anatoly Sokolov <aesok@post.ru>
26005
26006 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
26007 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
26008 * config/mips/mips.c (mips_preferred_reload_class): Make static.
26009 Change 'rclass' argument and result type to reg_class_t.
26010 (TARGET_PREFERRED_RELOAD_CLASS): Define.
26011
26012 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
26013
26014 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
26015 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
26016 (TARGET_MEMORY_MOVE_COST): Define.
26017 (avr_register_move_cost, avr_memory_move_cost): New Functions.
26018
26019 2011-03-08 Jakub Jelinek <jakub@redhat.com>
26020
26021 PR debug/47881
26022 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
26023 removed anything.
26024
26025 PR tree-optimization/48022
26026 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
26027 for EQ/NE_EXPR.
26028
26029 2011-03-07 Jakub Jelinek <jakub@redhat.com>
26030
26031 PR debug/47991
26032 * var-tracking.c (find_use_val): Return NULL for
26033 cui->sets && cui->store_p BLKmode MEMs.
26034
26035 2011-03-07 Anatoly Sokolov <aesok@post.ru>
26036
26037 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
26038 Remove.
26039 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
26040 xstormy16_print_operand_address): Remove.
26041 * config/stormy16/stormy16.c (xstormy16_print_operand,
26042 xstormy16_print_operand_address): Make static.
26043 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
26044
26045 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
26046
26047 PR target/47862
26048 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
26049 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
26050 before definition.
26051
26052 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
26053
26054 PR bootstrap/48000
26055 * cfgloopmanip.c (fix_bb_placements): Return immediately
26056 if FROM is BASE_LOOP's header.
26057
26058 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
26059
26060 * gimplify.c (gimplify_function_tree): Fix building calls
26061 to __builtin_return_address.
26062
26063 2011-03-07 Alan Modra <amodra@gmail.com>
26064
26065 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
26066 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
26067 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
26068 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
26069 return_mode args.
26070 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
26071 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
26072 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
26073 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
26074 * config/rs6000/rs6000.c
26075 (rs6000_elf_end_indicate_exec_stack): Rename to..
26076 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
26077 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
26078 (rs6000_file_start): ..here.
26079 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
26080 file scope variables.
26081 (call_ABI_of_interest): New function.
26082 (init_cumulative_args): Set above vars when function return value
26083 is a float, vector, or small struct.
26084 (rs6000_function_arg_advance_1): Likewise for function args.
26085 (rs6000_va_start): Set rs6000_passes_float if variable arg function
26086 references float args.
26087
26088 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
26089
26090 * doc/cfg.texi: Remove "See" before @ref.
26091 * doc/invoke.texi: Likewise.
26092
26093 2011-03-05 Jason Merrill <jason@redhat.com>
26094
26095 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
26096
26097 2011-03-05 Anthony Green <green@moxielogic.com>
26098
26099 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
26100
26101 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
26102
26103 PR rtl-optimization/47899
26104 * cfgloopmanip.c (fix_bb_placements): Fix first argument
26105 to flow_loop_nested_p when moving the loop upward.
26106
26107 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
26108
26109 PR target/47719
26110 * arm.md (movhi_insn_arch4): Accept any immediate constant.
26111
26112 2011-03-05 Jakub Jelinek <jakub@redhat.com>
26113
26114 PR tree-optimization/47967
26115 * ipa-cp.c (build_const_val): Return NULL instead of creating
26116 VIEW_CONVERT_EXPR for mismatching sizes.
26117 (ipcp_create_replace_map): Return NULL if build_const_val failed.
26118 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
26119 give up on versioning.
26120
26121 2011-03-05 Alan Modra <amodra@gmail.com>
26122
26123 PR target/47986
26124 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
26125 full cmodel medium/large lo_sum + high addresses.
26126
26127 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26128
26129 * config/s390/s390.c (s390_decompose_address): Reject non-literal
26130 pool references in UNSPEC_LTREL_OFFSET.
26131
26132 2011-03-04 Jan Hubicka <jh@suse.cz>
26133
26134 PR lto/47497
26135 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
26136 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
26137 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
26138 Add node pointers.
26139 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
26140 cgraph_add_thunk): Add node pointers.
26141 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
26142 associated to right node.
26143 (input_node): Update use of cgraph_same_body_alias
26144 and cgraph_add_thunk.
26145
26146 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
26147
26148 * config/i386/i386.opt (mprefer-avx128): New flag.
26149 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
26150 modes when the flag -mprefer-avx128 is on.
26151
26152 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
26153
26154 * dwarf2out.c (compare_loc_operands): Fix address handling.
26155
26156 2011-03-04 Alan Modra <amodra@gmail.com>
26157
26158 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
26159
26160 2011-03-04 Richard Guenther <rguenther@suse.de>
26161
26162 PR middle-end/47968
26163 * expmed.c (extract_bit_field_1): Prefer vector modes that
26164 vec_extract patterns can handle.
26165
26166 2011-03-04 Richard Guenther <rguenther@suse.de>
26167
26168 PR middle-end/47975
26169 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
26170
26171 2011-03-04 Richard Henderson <rth@redhat.com>
26172
26173 * explow.c (emit_stack_save): Remove 'after' parameter.
26174 (emit_stack_restore): Likewise.
26175 * expr.h: Update to match.
26176 * builtins.c, calls.c, stmt.c: Likewise.
26177 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
26178 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
26179 * function.c (expand_function_end): Insert the emit_stack_save
26180 sequence before parm_birth_insn instead of after.
26181
26182 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
26183
26184 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
26185 (ssse3_pmaddubsw128): Ditto.
26186 (ssse3_pmaddubsw): Ditto.
26187
26188 2011-03-03 Steve Ellcey <sje@cup.hp.com>
26189
26190 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
26191
26192 2011-03-03 Jakub Jelinek <jakub@redhat.com>
26193
26194 PR c/47963
26195 * gimplify.c (omp_add_variable): Only call omp_notice_variable
26196 on TYPE_SIZE_UNIT if it is a DECL.
26197
26198 PR debug/47283
26199 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
26200 first operand is not is_gimple_mem_ref_addr, try to fold it.
26201 If the operand still isn't is_gimple_mem_ref_addr, clear
26202 MEM_EXPR on op0.
26203
26204 2011-03-03 Richard Guenther <rguenther@suse.de>
26205
26206 PR middle-end/47283
26207 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
26208 match comment.
26209 (refs_may_alias_p_1): For release branches return true if
26210 we are confused by our input.
26211
26212 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26213
26214 * config/s390/s390.c (s390_function_value): Rename to ...
26215 (s390_function_and_libcall_value): ... this.
26216 (s390_function_value): New function.
26217 (s390_libcall_value): New function.
26218 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
26219 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
26220 target macro definitions.
26221 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
26222
26223 2011-03-02 Joseph Myers <joseph@codesourcery.com>
26224
26225 * config/i386/freebsd64.h (CC1_SPEC): Define.
26226 * config/i386/linux64.h (CC1_SPEC): Define.
26227 * config/i386/x86-64.h (CC1_SPEC): Don't define.
26228
26229 2011-03-02 Anatoly Sokolov <aesok@post.ru>
26230
26231 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
26232 Remove.
26233 * config/stormy16/stormy16.c: Include reload.h.
26234 (xstormy16_memory_move_cost): New function.
26235 (TARGET_MEMORY_MOVE_COST): Define.
26236
26237 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
26238
26239 PR rtl-optimization/47925
26240 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
26241 with side effects. Remove the more-specific check for volatile asms.
26242
26243 2011-03-02 Alan Modra <amodra@gmail.com>
26244
26245 PR target/47935
26246 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
26247 toc relative addresses for valid offsets.
26248
26249 2011-03-01 Richard Guenther <rguenther@suse.de>
26250
26251 PR tree-optimization/47890
26252 * tree-vect-loop.c (get_initial_def_for_induction): Set
26253 related stmt properly.
26254
26255 2011-03-01 Richard Guenther <rguenther@suse.de>
26256
26257 PR lto/47924
26258 * lto-streamer.c (lto_record_common_node): Also register
26259 the canonical type.
26260
26261 2011-03-01 Richard Guenther <rguenther@suse.de>
26262
26263 PR lto/46911
26264 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
26265 Do not stream DECL_ABSTRACT_ORIGIN.
26266 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
26267 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
26268 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
26269 Do not stream DECL_ABSTRACT_ORIGIN.
26270 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
26271 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
26272
26273 2011-02-28 Anatoly Sokolov <aesok@post.ru>
26274
26275 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
26276 FUNCTION_VALUE_REGNO_P): Remove.
26277 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
26278 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
26279 Add 'outgoing' argument.
26280 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
26281 function.
26282 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
26283 TARGET_FUNCTION_VALUE_REGNO_P): Define.
26284
26285 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
26286
26287 PR debug/28047
26288 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
26289 (lookup_filename): Likewise.
26290 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
26291
26292 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
26293 Jakub Jelinek <jakub@redhat.com>
26294
26295 PR middle-end/47893
26296 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
26297 (assign_stack_local_1): Change last argument type to int.
26298 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
26299 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
26300 don't record padding space into frame_space_list nor use those areas.
26301 (assign_stack_local): Adjust caller.
26302 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
26303 of assign_stack_local, pass 0 as last argument.
26304 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
26305 callers.
26306
26307 2011-02-28 Jakub Jelinek <jakub@redhat.com>
26308
26309 PR debug/47283
26310 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
26311 Use target address_mode and pointer_mode hooks instead of hardcoded
26312 Pmode and ptr_mode. Handle some simple cases of extending if
26313 POINTERS_EXTEND_UNSIGNED < 0.
26314 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
26315 Call convert_debug_memory_address.
26316 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
26317 convert_debug_memory_address.
26318
26319 PR middle-end/46790
26320 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
26321 * configure: Regenerated.
26322 * config.in: Regenerated.
26323 * varasm.c (default_function_section): Return NULL
26324 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
26325
26326 2011-02-28 Martin Jambor <mjambor@suse.cz>
26327
26328 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
26329 the description to match the printed values.
26330
26331 2011-02-28 Richard Guenther <rguenther@suse.de>
26332
26333 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
26334 of the copied scope tree.
26335
26336 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26337
26338 * doc/extend.texi (Function Attributes): Avoid deeply (and
26339 wrongly) nested tables.
26340
26341 2011-02-27 Jakub Jelinek <jakub@redhat.com>
26342
26343 PR middle-end/47903
26344 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
26345 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
26346 r isn't op0 nor op1.
26347
26348 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
26349
26350 * config/avr/avr.md: Remove magic comment for emacs.
26351
26352 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
26353
26354 PR target/45261
26355 * config/avr/avr.c (avr_option_override): Use error on bad options.
26356 (avr_help): New function.
26357 (TARGET_HELP): Define.
26358
26359 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
26360
26361 PR target/42240
26362 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
26363 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
26364
26365 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
26366
26367 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
26368 (ARM Options): Ditto.
26369 (i386 and x86-64 Options): Ditto.
26370 (RX Options): Ditto.
26371 (SPARC Options): Ditto.
26372
26373 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
26374
26375 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
26376 FreeBSD 6 and later. Generally use cpu generic.
26377
26378 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
26379
26380 * doc/cpp.texi: Update copyright years.
26381
26382 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
26383
26384 PR target/46898
26385 * config/lm32/lm32.md (ashrsi3): Added needed variable.
26386
26387 2011-02-25 Jon Beniston <jon@beniston.com>
26388
26389 PR target/46898
26390 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
26391 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
26392 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
26393 (lm32_block_move_inline): Add type cast to remove warning.
26394 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
26395 (gen_int_relational): Move declarations to start of function.
26396
26397 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
26398
26399 PR tree-optimization/45470
26400 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
26401 can throw internally only.
26402 * tree-vect-stmts.c (vectorizable_call): Likewise.
26403
26404 2011-02-24 Anatoly Sokolov <aesok@post.ru>
26405
26406 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
26407 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
26408 * config/stormy16/stormy16-protos.h
26409 (xstormy16_preferred_reload_class): Remove.
26410 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
26411 static. Change 'rclass' argument and return type to reg_class_t.
26412 (TARGET_PREFERRED_RELOAD_CLASS,
26413 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
26414
26415 2011-02-24 Richard Guenther <rguenther@suse.de>
26416
26417 * lto-streamer-in.c (input_bb): Do not find referenced vars
26418 in debug statements.
26419
26420 2011-02-23 Jason Merrill <jason@redhat.com>
26421
26422 * common.opt (fabi-version): Document v5 and v6.
26423
26424 2011-02-23 Richard Guenther <rguenther@suse.de>
26425
26426 PR tree-optimization/47849
26427 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
26428
26429 2011-02-23 Jie Zhang <jie@codesourcery.com>
26430
26431 * opts-common.c (decode_cmdline_option): Print empty string
26432 argument as "" in decoded->orig_option_with_args_text.
26433 * gcc.c (execute): Print empty string argument as ""
26434 in the verbose output.
26435 (do_spec_1): Keep empty string argument.
26436
26437 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
26438
26439 * config.gcc: Declare score-* and crx-* obsolete.
26440
26441 2011-02-23 Jie Zhang <jie@codesourcery.com>
26442
26443 PR rtl-optimization/47763
26444 * web.c (web_main): Ignore naked clobber when replacing register.
26445
26446 2011-02-22 Anatoly Sokolov <aesok@post.ru>
26447
26448 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
26449 Remove.
26450
26451 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
26452
26453 PR doc/47848
26454 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
26455
26456 2011-02-22 Mike Stump <mikestump@comcast.net>
26457
26458 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
26459 assembler.
26460 * configure: Regenerate.
26461
26462 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
26463
26464 PR rtl-optimization/46002
26465 * ira-color.c (update_copy_costs): Change class intersection
26466 test to reg_class_contents[] test of 'hard_regno'.
26467
26468 2011-02-21 Joseph Myers <joseph@codesourcery.com>
26469
26470 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
26471 than Driver option.
26472 * config/hpux11.opt (mt): Likewise.
26473 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
26474 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
26475 * config/vax/elf.opt (mno-asm-pic): Likewise.
26476 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
26477
26478 2011-02-21 Mike Stump <mikestump@comcast.net>
26479
26480 PR target/47822
26481 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
26482 tree so we can get save the type.
26483 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
26484 for CFString instead of trying to use past the end of the builtins.
26485 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
26486 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
26487 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
26488 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
26489 Rename to darwin_builtin_cfstring.
26490 (darwin_init_cfstring_builtins): Return the built type.
26491
26492 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
26493
26494 PR target/47840
26495 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
26496 (_mm256_insert_epi64): Use _mm_insert_epi64.
26497
26498 2011-02-21 Anatoly Sokolov <aesok@post.ru>
26499
26500 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26501 * config/stormy16/stormy16-protos.h
26502 (xstormy16_mode_dependent_address_p): Remove.
26503 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
26504 Make static. Change return type to bool. Change argument type to
26505 const_rtx. Remove dead code.
26506 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26507
26508 2011-02-21 Richard Guenther <rguenther@suse.de>
26509
26510 PR lto/47820
26511 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
26512 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
26513 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
26514 TUs context.
26515 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
26516 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
26517
26518 2011-02-20 Richard Guenther <rguenther@suse.de>
26519
26520 PR lto/47822
26521 * tree.c (free_lang_data_in_decl): Clean builtins from
26522 the TU decl BLOCK_VARS.
26523
26524 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
26525
26526 PR debug/47620
26527 PR debug/47630
26528 * haifa-sched.c (fix_tick_ready): Skip tick computation
26529 for debug insns.
26530
26531 2011-02-19 Richard Guenther <rguenther@suse.de>
26532
26533 PR lto/47647
26534 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
26535 Remove lazy BLOCK_VARS streaming.
26536 (lto_input_ts_block_tree_pointers): Likewise.
26537 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
26538
26539 2011-02-19 Joseph Myers <joseph@codesourcery.com>
26540
26541 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
26542
26543 2011-02-19 Joseph Myers <joseph@codesourcery.com>
26544
26545 * config/i386/biarch32.h, config/i386/mach.h,
26546 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
26547
26548 2011-02-19 Jakub Jelinek <jakub@redhat.com>
26549
26550 PR target/47800
26551 * config/i386/i386.md (peephole2 for shift and plus): Use
26552 operands[1] original mode in the first insn.
26553
26554 2011-02-18 Mike Stump <mikestump@comcast.net>
26555
26556 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
26557
26558 2011-02-18 Jan Hubicka <jh@suse.cz>
26559
26560 PR middle-end/47788
26561 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
26562 to zero when the function is not inlinable at all.
26563
26564 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26565
26566 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
26567 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
26568 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
26569 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
26570 * config/pa/t-pa64: Likewise.
26571 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
26572
26573 2011-02-18 Jakub Jelinek <jakub@redhat.com>
26574
26575 PR driver/47787
26576 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
26577
26578 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26579
26580 PR target/47792
26581 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
26582
26583 2011-02-18 Anatoly Sokolov <aesok@post.ru>
26584
26585 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
26586 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
26587 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
26588 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
26589 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
26590 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
26591 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
26592 m32r_load_postinc_p, m32r_store_preinc_predec_p,
26593 m32r_legitimate_address_p): New functions.
26594 * config/m32r/constraints.md (constraint "S"): Don't use
26595 STORE_PREINC_PREDEC_P.
26596 (constraint "U"): Don't use LOAD_POSTINC_P.
26597
26598 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
26599
26600 PR rtl-optimization/46178
26601 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
26602 compute ira_hard_regno_cover_class[].
26603
26604 2011-02-18 Richard Guenther <rguenther@suse.de>
26605
26606 PR lto/47798
26607 * lto-streamer.h (lto_global_var_decls): Declare.
26608 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
26609 statics for global var processing.
26610
26611 2011-02-18 Richard Guenther <rguenther@suse.de>
26612
26613 PR tree-optimization/47737
26614 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
26615 edge dominance check.
26616
26617 2011-02-18 Jakub Jelinek <jakub@redhat.com>
26618
26619 PR debug/47780
26620 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
26621 avoid invalid rtx sharing.
26622
26623 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
26624
26625 * doc/cpp.texi (Obsolete Features): Add background on the
26626 origin of assertions.
26627
26628 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
26629
26630 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
26631 objc_abi == 2.
26632 * config/darwin.c (output_objc_section_asm_op): Added support for
26633 ABI v1 and v2.
26634 (is_objc_metadata): New.
26635 (darwin_objc2_section): New.
26636 (darwin_objc1_section): New.
26637 (machopic_select_section): Added support for ABI v1 and v2.
26638 (darwin_emit_objc_zeroed): New.
26639 (darwin_output_aligned_bss): Detect objc metadata and treat it
26640 appropriately.
26641 (darwin_asm_output_aligned_decl_common): Same.
26642 (darwin_asm_output_aligned_decl_local): Same.
26643 * config/darwin-sections.def: Updated for ABI v1 and v2.
26644 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
26645 compiling Objective-C code for the NeXT runtime, default to using
26646 ABI version 0 for 32-bit, and version 2 for 64-bit.
26647
26648 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26649
26650 * common.opt (optimize_fast): New Variable.
26651 * opts.c (default_options_optimization): Use opts->x_optimize_fast
26652 instead of local variable ofast.
26653
26654 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
26655
26656 * doc/invoke.texi (fobjc-abi-version): Documented.
26657 (fobjc-nilcheck): Documented.
26658 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
26659 version.
26660
26661 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26662
26663 PR driver/47390
26664 * common.opt (export-dynamic): New Driver option.
26665 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
26666
26667 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26668
26669 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
26670
26671 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
26672 Jan Hubicka <jh@suse.cz>
26673
26674 PR debug/47106
26675 PR debug/47402
26676 * cfgexpand.c (account_used_vars_for_block): Remove.
26677 (estimated_stack_frame_size): Use referenced vars.
26678 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
26679 that were referenced in the original function. Test src_fn
26680 rather than cfun. Drop redundant get_var_ann.
26681 (setup_one_parameter): Drop redundant get_var_ann.
26682 (declare_return_variable): Likewise.
26683 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
26684 (copy_arguments_for_versioning): Drop redundant get_var_ann.
26685 * ipa-inline.c (compute_inline_parameters): Do not compute
26686 disregard_inline_limits here.
26687 (compute_inlinable_for_current, pass_inlinable): New.
26688 (pass_inline_parameters): Require PROP_referenced_vars.
26689 * cgraphunit.c (cgraph_process_new_functions): Don't run
26690 compute_inline_parameters explicitly unless function is in SSA form.
26691 (cgraph_analyze_function): Set .disregard_inline_limits.
26692 * tree-sra.c (convert_callers): Compute inliner parameters
26693 only for functions already in SSA form.
26694
26695 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26696
26697 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
26698 -mlittle-endian-data.
26699
26700 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26701
26702 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
26703 -mno-fpu, not -fpu and -no-fpu.
26704 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
26705 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
26706
26707 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
26708
26709 PR target/43653
26710 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
26711 input reload with PLUS RTX.
26712
26713 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26714
26715 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
26716 of InverseVar(MDMX).
26717
26718 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26719
26720 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
26721 --m4-340.
26722
26723 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26724
26725 * config/mn10300/mn10300.opt (mno-crt0): New.
26726
26727 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26728
26729 * config/m68k/uclinux.opt (static-libc): New Driver option.
26730
26731 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26732
26733 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
26734
26735 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26736
26737 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
26738 %{muser-extend-enabled}.
26739
26740 2011-02-16 Richard Guenther <rguenther@suse.de>
26741
26742 PR tree-optimization/47738
26743 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
26744 the TODO from tree_predictive_commoning.
26745
26746 2011-02-15 Jeff Law <law@redhat.com>
26747
26748 Revert
26749 2011-01-25 Jeff Law <law@redhat.com>
26750
26751 PR rtl-optimization/37273
26752 * ira-costs.c (scan_one_insn): Detect constants living in memory and
26753 handle them like argument loads from stack slots. Do not double
26754 count memory for memory constants and argument loads from stack slots.
26755
26756 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
26757
26758 PR target/47755
26759 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
26760 mode for vector constants. Remove code that checks for TImode.
26761
26762 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26763
26764 PR debug/47106
26765 PR debug/47402
26766 * cgraph.h (compute_inline_parameters): Return void.
26767 * ipa-inline.c (compute_inline_parameters): Adjust.
26768
26769 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26770
26771 PR debug/47106
26772 PR debug/47402
26773 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
26774 rather than decl.
26775 * cfgexpand.c (estimated_stack_frame_size): Likewise.
26776 * ipa-inline.c (compute_inline_parameters): Adjust.
26777
26778 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26779
26780 PR debug/47106
26781 PR debug/47402
26782 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
26783 Adjust all users. Pass FN to...
26784 * tree-flow-inline.h (first_referenced_var): ... this. Add
26785 fn argument.
26786 * ipa-struct-reorg.c: Adjust.
26787 * tree-dfa.c: Adjust.
26788 * tree-into-ssa.c: Adjust.
26789 * tree-sra.c: Adjust.
26790 * tree-ssa-alias.c: Adjust.
26791 * tree-ssa-live.c: Adjust.
26792 * tree-ssa.c: Adjust.
26793 * tree-ssanames.c: Adjust.
26794 * tree-tailcall.c: Adjust.
26795
26796 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26797
26798 PR debug/47106
26799 PR debug/47402
26800 * tree-flow.h (referenced_var_lookup): Add fn parameter.
26801 Adjust all callers.
26802 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
26803 * tree-flow-inline.h: Adjust.
26804 * gimple-pretty-print.c: Adjust.
26805 * tree-into-ssa.c: Adjust.
26806 * tree-ssa.c: Adjust.
26807 * cfgexpand.c: Adjust.
26808
26809 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26810
26811 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
26812 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26813 (EXTRA_CONSTRAINT): Delete.
26814 * config/iq2000/constraints.md: New file.
26815 * config/iq2000/iq2000.md: Include it.
26816 (define_insn ""): Delete.
26817 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
26818 unsupported constraint letters from patterns.
26819 (call_value, call_value_internal1): Likewise.
26820 (call_value_multiple_internal1): Likewise.
26821
26822 2011-02-15 Nick Clifton <nickc@redhat.com>
26823
26824 * config/mn10300/mn10300.c: Include tm-constrs.h.
26825 (struct liw_data): New data structure describing an LIW candidate
26826 instruction.
26827 (extract_bundle): Use struct liw_data. Allow small integer
26828 operands for some instructions.
26829 (check_liw_constraints): Use struct liw_data. Remove swapped
26830 parameter. Add comments describing the checks. Fix bug when
26831 assigning the source of liw1 to the source of liw2.
26832 (liw_candidate): Delete. Code moved into extract_bundle.
26833 (mn10300_bundle_liw): Use struct liw_data. Check constraints
26834 before swapping.
26835 * config/mn10300/predicates.md (liw_operand): New predicate.
26836 Allows registers and small integer constants.
26837 * config/mn10300/constraints.md (O): New constraint. Accetps
26838 integers in the range -8 to +7 inclusive.
26839 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
26840 for moving a small integer into a register. Give this alternative
26841 LIW attributes.
26842 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
26843 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
26844 using the J,K,L and M constraints,
26845 (liw): Remove SI mode on second operands to allow for HI and QI
26846 mode values.
26847 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
26848 instruction.
26849
26850 2011-02-15 Richard Guenther <rguenther@suse.de>
26851
26852 PR tree-optimization/47743
26853 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
26854 for a non-type-compatible VN lookup bail out.
26855
26856 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26857
26858 * config/fr30/constraints.md: New file.
26859 * config/fr30/fr30.md: Include it.
26860 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
26861 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26862 (EXTRA_CONSTRAINT): Delete.
26863
26864 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26865
26866 * config/frv/constraints.md: New file.
26867 * config/frv/predicates.md: Include it.
26868 * config/frv/frv.c (reg_class_from_letter): Delete.
26869 (frv_option_override): Don't initialize it.
26870 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
26871 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
26872 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
26873 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
26874 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
26875 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26876 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
26877 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
26878 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
26879 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
26880 (REG_CLASS_FROM_CONSTRAINT): Delete.
26881
26882 2011-02-15 Jakub Jelinek <jakub@redhat.com>
26883
26884 PR middle-end/47581
26885 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
26886 if frame size is 0 in a leaf function.
26887
26888 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26889
26890 PR pch/14940
26891 * config/alpha/host-osf.c: New file.
26892 * config/alpha/x-osf: New file.
26893 * config.host (alpha*-dec-osf*): Use it.
26894
26895 2011-02-14 Anatoly Sokolov <aesok@post.ru>
26896
26897 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26898 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
26899 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
26900 (rx_mode_dependent_address_p): ...this. Make static. Change argument
26901 type to const_rtx.
26902 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26903
26904 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
26905
26906 * config/stormy16/constraints.md: New file.
26907 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
26908 Use satisfies_constraint_Q and satisfies_constraint_R.
26909 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
26910 Delete.
26911 (xstormy16_legitiamte_address_p): Declare.
26912 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
26913 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26914 (EXTRA_CONSTRAINT): Delete.
26915 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
26916 Un-staticize.
26917 (xstormy16_extra_constraint_p): Delete.
26918
26919 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
26920
26921 PR tree-optimization/46494
26922 * loop-unroll.c (split_edge_and_insert): Adjust comment.
26923 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
26924 (pass_rtl_loop_done): Add TODO_verify_flow.
26925 * fwprop.c (pass_rtl_fwprop): Likewise.
26926 * modulo-sched.c (pass_sms): Likewise.
26927 * tree-ssa-dom.c (pass_dominator): Likewise.
26928 * tree-ssa-loop-ch.c (pass_ch): Likewise.
26929 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
26930 (pass_tree_loop_done): Likewise.
26931 * tree-ssa-pre.c (execute_pre): Likewise.
26932 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
26933 * tree-ssa-sink.c (pass_sink_code): Likewise.
26934 * tree-vrp.c (pass_vrp): Likewise.
26935
26936 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
26937
26938 * config/v850/constraints.md: New file.
26939 * config/v850/v850.md: Include it.
26940 * config/v850/predicates.md (reg_or_0_operand): Use
26941 satisfies_constraint_G.
26942 (special_symbolref_operand): Use satisfies_constraint_K.
26943 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
26944 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
26945 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
26946 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
26947 (EXTRA_CONSTRAINT): Delete.
26948 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
26949 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
26950 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
26951
26952 2011-02-14 Anatoly Sokolov <aesok@post.ru>
26953
26954 PR target/47696
26955 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
26956 description.
26957
26958 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
26959
26960 * config/mcore/constraints.md: New file.
26961 * config/mcore/mcore.md: Include it.
26962 * config/mcore/mcore.c (reg_class_from_letter): Delete.
26963 * config/mcore/mcore.h (reg_class_from_letter): Delete.
26964 (REG_CLASS_FROM_LETTER): Delete.
26965 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
26966 insn_const_int_ok_for_constraint.
26967 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
26968 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
26969 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26970 (EXTRA_CONSTRAINT): Delete.
26971
26972 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26973
26974 PR ada/41929
26975 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
26976 (IS_SIGHANDLER): Define.
26977 (sparc64_is_sighandler): New function, split off from
26978 sparc64_fallback_frame_state.
26979 (sparc_is_sighandler): New function, split off from
26980 sparc_fallback_frame_state.
26981 (sparc64_fallback_frame_state): Merge with ...
26982 (sparc_fallback_frame_state): ... this into ...
26983 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
26984 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
26985 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
26986 stack instead of hardcoded offsets.
26987
26988 2011-02-14 Andriy Gapon <avg@freebsd.org>
26989
26990 PR target/45808
26991 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
26992
26993 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26994
26995 * configure: Regenerate.
26996
26997 2011-02-12 Joseph Myers <joseph@codesourcery.com>
26998
26999 PR driver/45731
27000 * gcc.c (asm_options): Correct spec matching --target-help.
27001
27002 2011-02-12 Martin Jambor <mjambor@suse.cz>
27003
27004 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
27005 to gimple call error.
27006
27007 2011-02-12 Mike Stump <mikestump@comcast.net>
27008
27009 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
27010 comments in backslash regions.
27011
27012 2011-02-12 Mike Stump <mikestump@comcast.net>
27013 Jakub Jelinek <jakub@redhat.com>
27014 Iain Sandoe <iains@gcc.gnu.org>
27015
27016 PR target/47324
27017 * dwarf2out.c (output_cfa_loc): When required, apply the
27018 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
27019 (output_loc_sequence): Likewise.
27020 (output_loc_operands_raw): Likewise.
27021 (output_loc_sequence_raw): Likewise.
27022 (output_cfa_loc): Likewise.
27023 (output_loc_list): Suppress register number adjustment when
27024 calling output_loc_sequence()
27025 (output_die): Likewise.
27026
27027 2011-02-12 Anatoly Sokolov <aesok@post.ru>
27028
27029 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
27030 Remove macros.
27031 * config/xtensa/xtensa.c (xtensa_register_move_cost,
27032 xtensa_memory_move_cost): New functions.
27033 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
27034
27035 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
27036
27037 PR lto/47225
27038 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
27039 in the current directory.
27040 * configure: Rebuilt.
27041
27042 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
27043
27044 * config/darwin.c (darwin_override_options): Add a hunk missed
27045 from the commit of r168571. Trim comment line lengths and
27046 correct indents of the preceding block.
27047
27048 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
27049
27050 * gcc.c (driver_handle_option): Concatenate the argument to -F with
27051 the switch.
27052
27053 2011-02-11 Joseph Myers <joseph@codesourcery.com>
27054
27055 * common.opt (nostartfiles): New Driver option.
27056
27057 2011-02-11 Xinliang David Li <davidxl@google.com>
27058
27059 PR tree-optimization/47707
27060 * tree-chrec.c (convert_affine_scev): Keep type precision.
27061
27062 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
27063
27064 PR tree-optimization/47420
27065 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
27066
27067 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
27068
27069 PR rtl-optimization/47614
27070 * rtl.h (check_for_inc_dec): Declare.
27071 * dse.c (check_for_inc_dec): Externalize...
27072 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
27073 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
27074
27075 2011-02-11 Joseph Myers <joseph@codesourcery.com>
27076
27077 PR driver/47678
27078 * gcc.c (main): Do not compile inputs if there were errors in
27079 option handling.
27080 * opts-common.c (read_cmdline_option): Check for wrong language
27081 after other error checks.
27082
27083 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
27084
27085 * cgraph.c: Fix comment typos.
27086 * cgraph.h: Likewise.
27087 * cgraphunit.c: Likewise.
27088 * ipa-cp.c: Likewise.
27089 * ipa-inline.c: Likewise.
27090 * ipa-prop.c: Likewise.
27091 * ipa-pure-const.c: Likewise.
27092 * ipa-ref.c: Likewise.
27093 * ipa-reference.c: Likewise.
27094
27095 2011-02-11 Jakub Jelinek <jakub@redhat.com>
27096
27097 PR debug/47684
27098 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
27099
27100 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27101
27102 PR testsuite/47400
27103 * doc/sourcebuild.texi (Require Support): Document
27104 dg-require-ascii-locale.
27105
27106 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
27107
27108 * doc/lto.texi (Write summary): Fix missing parentheses.
27109
27110 2011-02-10 DJ Delorie <dj@redhat.com>
27111
27112 * config/m32c/m32c.c (m32c_option_override): Disable
27113 -fcombine-stack-adjustments until flag value tracking and compare
27114 optimization can be rewritten.
27115
27116 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
27117
27118 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
27119 PROCESSOR_POWER7.
27120 (PROCESSOR_DEFAULT64): Likewise.
27121
27122 2011-02-10 Richard Henderson <rth@redhat.com>
27123
27124 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
27125 change from 2011-02-03.
27126 * config/rx/rx.c (flags_from_code): Likewise.
27127 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
27128 is valid, n/pz otherwise.
27129 (rx_select_cc_mode): Return CCmode if Y is not zero.
27130
27131 2011-02-10 Richard Guenther <rguenther@suse.de>
27132
27133 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
27134
27135 2011-02-10 Richard Guenther <rguenther@suse.de>
27136
27137 PR tree-optimization/47677
27138 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
27139
27140 2011-02-10 Jakub Jelinek <jakub@redhat.com>
27141
27142 PR target/47665
27143 * combine.c (make_compound_operation): Only change shifts into
27144 multiplication for SCALAR_INT_MODE_P.
27145
27146 2011-02-10 Jie Zhang <jie@codesourcery.com>
27147
27148 PR testsuite/47622
27149 Revert
27150 2011-02-05 Jie Zhang <jie@codesourcery.com>
27151 PR debug/42631
27152 * web.c (entry_register): Don't clobber the number of the
27153 first uninitialized reference in used[].
27154
27155 2011-02-09 Richard Guenther <rguenther@suse.de>
27156
27157 PR tree-optimization/47664
27158 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
27159 all edges again.
27160
27161 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
27162
27163 PR target/46481
27164 PR target/47032
27165 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
27166 PROCESSOR_POWER7.
27167 (PROCESSOR_DEFAULT64): Same.
27168 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
27169
27170 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27171
27172 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
27173
27174 2011-02-09 Martin Jambor <mjambor@suse.cz>
27175
27176 PR middle-end/45505
27177 * tree-sra.c (struct access): New flags grp_scalar_read and
27178 grp_scalar_write. Changed description of assignment read and write
27179 flags.
27180 (dump_access): Dump new flags, reorder all of them.
27181 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
27182 to detect multiple scalar reads.
27183 (analyze_access_subtree): Use the new scalar read write flags instead
27184 of the old flags. Adjusted comments.
27185
27186 2011-02-08 DJ Delorie <dj@redhat.com>
27187
27188 PR target/47548
27189 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
27190 patterns.
27191
27192 2011-02-08 Joseph Myers <joseph@codesourcery.com>
27193
27194 * config/m68k/uclinux.opt: New.
27195 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
27196
27197 2011-02-08 Joseph Myers <joseph@codesourcery.com>
27198
27199 * config/cris/elf.opt (sim): New Driver option.
27200
27201 2011-02-08 Joseph Myers <joseph@codesourcery.com>
27202
27203 * config/xtensa/elf.opt: New.
27204 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
27205
27206 2011-02-08 Joseph Myers <joseph@codesourcery.com>
27207
27208 * config/vax/elf.opt: New.
27209 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
27210
27211 2011-02-08 Joseph Myers <joseph@codesourcery.com>
27212
27213 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
27214
27215 2011-02-08 Joseph Myers <joseph@codesourcery.com>
27216
27217 * config/gnu-user.opt: New.
27218 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
27219 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
27220 *-*-uclinux*): Use gnu-user.opt.
27221
27222 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
27223
27224 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
27225 * config/i386/gnu.h (CPP_SPEC): Likewise.
27226
27227 2011-02-08 Ian Lance Taylor <iant@google.com>
27228
27229 * common.opt (fcx-limited-range): Add SetByCombined flag.
27230 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
27231 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
27232 (fassociative-math, freciprocal-math): Likewise.
27233 (funsafe-math-optimizations): Likewise.
27234 * opth-gen.awk: Handle SetByCombined.
27235 * optc-gen.awk: Likewise.
27236 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
27237 (set_unsafe_math_optimizations_flags): Likewise.
27238 * doc/options.texi (Option properties): Document SetByCombined.
27239
27240 2011-02-08 Joseph Myers <joseph@codesourcery.com>
27241
27242 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
27243 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
27244 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
27245 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
27246 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
27247
27248 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
27249
27250 PR tree-optimization/46834
27251 PR tree-optimization/46994
27252 PR tree-optimization/46995
27253 * graphite-sese-to-poly.c (used_outside_reduction): New.
27254 (detect_commutative_reduction): Call used_outside_reduction.
27255 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
27256 translate_scalar_reduction_to_array only when at least one
27257 loop-phi/close-phi tuple has been detected.
27258
27259 2011-02-08 Richard Guenther <rguenther@suse.de>
27260
27261 PR middle-end/47639
27262 * tree-vect-generic.c (expand_vector_operations_1): Update
27263 stmts here ...
27264 (expand_vector_operations): ... not here. Cleanup EH info
27265 and the CFG if required.
27266
27267 2011-02-08 Richard Guenther <rguenther@suse.de>
27268
27269 PR tree-optimization/47641
27270 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
27271 require type compatibility.
27272
27273 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27274
27275 * gimple-low.c (lower_function_body): Don't remove the location of
27276 the return statement here.
27277 (lower_gimple_return): Do it here instead but only if the return
27278 statement is actually used twice.
27279
27280 2011-02-08 Richard Guenther <rguenther@suse.de>
27281
27282 PR tree-optimization/47632
27283 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
27284 unused up_to_stmt parameter, return whether cfg-cleanup is
27285 necessary, remove EH info properly.
27286 (forward_propagate_into_gimple_cond): Adjust caller.
27287 (forward_propagate_into_cond): Likewise.
27288 (forward_propagate_comparison): Likewise.
27289 (tree_ssa_forward_propagate_single_use_vars): Make
27290 forward_propagate_comparison case similar to the two others.
27291
27292 2011-02-08 Nick Clifton <nickc@redhat.com>
27293
27294 * config/mn10300/mn10300.opt (mliw): New command line option.
27295 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
27296 (liw_bundling): New automaton.
27297 (liw): New attribute.
27298 (liw_op): New attribute.
27299 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
27300 (movsi_internal): Add LIW attributes.
27301 (andsi3): Likewise.
27302 (iorsi3): Likewise.
27303 (xorsi3): Likewise.
27304 (addsi3): Separate register and immediate alternatives.
27305 Add LIW attributes.
27306 (subsi3): Likewise.
27307 (cmpsi): Likewise.
27308 (aslsi3): Likewise.
27309 (lshrsi3): Likewise.
27310 (ashrsi3): Likewise.
27311 (liw): New pattern.
27312 * config/mn10300/mn10300.c (liw_op_names): New
27313 (mn10300_print_operand): Handle 'W' operand descriptor.
27314 (extract_bundle): New function.
27315 (check_liw_constraints): New function.
27316 (liw_candidate): New function.
27317 (mn10300_bundle_liw): New function.
27318 (mn10300_reorg): New function.
27319 (TARGET_MACHINE_DEPENDENT_REORG): Define.
27320 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
27321 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
27322 __LIW__ or __NO_LIW__.
27323 * doc/invoke.texi: Describe the -mliw command line option.
27324
27325 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27326
27327 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
27328 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
27329 pthread_mutex_unlock): Remove.
27330 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
27331 * config/pa/t-pa64: Likewise.
27332 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
27333 shared libc if not linking against libpthread.
27334 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
27335
27336 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
27337
27338 PR target/47558
27339 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
27340 on 10.6 and later to ensure that we always use the unwinder from
27341 the system. Only add -no_compact_unwind when tarteting darwin
27342 10.6 or later.
27343
27344 2011-02-07 Steve Ellcey <sje@cup.hp.com>
27345
27346 PR target/46997
27347 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
27348 (vec_interleave_lowv2sf): Ditto.
27349 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
27350 (vec_extract_oddv2sf): Ditto.
27351
27352 2011-02-07 Mike Stump <mikestump@comcast.net>
27353
27354 PR target/42333
27355 Add __ieee_divdc3 entry point.
27356 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
27357 entry point.
27358 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
27359 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
27360 * config/darwin.c (darwin_rename_builtins): Add.
27361 * config/darwin-protos.h (darwin_rename_builtins): Add.
27362
27363 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
27364
27365 PR target/47636
27366 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
27367 for the condition.
27368
27369 2011-02-07 Mike Stump <mikestump@comcast.net>
27370
27371 * config/darwin.opt (mmacosx-version-min): Update default OS version.
27372
27373 2011-02-07 Denis Chertykov <chertykov@gmail.com>
27374
27375 PR target/47534
27376 * config/avr/libgcc.S (exit): Move .endfunc
27377
27378 2011-02-07 Richard Guenther <rguenther@suse.de>
27379
27380 PR tree-optimization/47615
27381 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
27382 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
27383 (run_scc_vn): Initialize it.
27384 (visit_reference_op_load): Use it.
27385 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
27386
27387 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27388
27389 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
27390 DImode trapping arithmetic libfuncs.
27391
27392 2011-02-07 Richard Guenther <rguenther@suse.de>
27393
27394 PR tree-optimization/47621
27395 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
27396 two duplicates ...
27397 (execute_update_addresses_taken): ... here. Make it more
27398 conservative in what we accept.
27399
27400 2011-02-06 Joseph Myers <joseph@codesourcery.com>
27401
27402 * config/sparc/freebsd.h (ASM_SPEC): Define.
27403 * config/sparc/vxworks.h (ASM_SPEC): Define.
27404
27405 2011-02-06 Joseph Myers <joseph@codesourcery.com>
27406
27407 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
27408
27409 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
27410
27411 * doc/invoke.texi: Remove reference to compiler internals from
27412 user documentation.
27413
27414 * reg-notes.def: Remove REG_VALUE_PROFILE.
27415 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
27416
27417 2011-02-05 Jakub Jelinek <jakub@redhat.com>
27418
27419 PR middle-end/47610
27420 * varasm.c (default_section_type_flags): If decl is NULL,
27421 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
27422
27423 2011-02-05 Jie Zhang <jie@codesourcery.com>
27424
27425 PR debug/42631
27426 * web.c (entry_register): Don't clobber the number of the
27427 first uninitialized reference in used[].
27428
27429 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
27430
27431 PR tree-optimization/46194
27432 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
27433 (build_classic_dist_vector_1): Do not represent classic distance
27434 vectors when the access functions are variating in different loops.
27435
27436 2011-02-04 Joseph Myers <joseph@codesourcery.com>
27437
27438 * config/mips/iris6.opt: New.
27439 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
27440
27441 2011-02-04 Richard Henderson <rth@redhat.com>
27442 Steve Ellcey <sje@cup.hp.com>
27443
27444 PR target/46997
27445 * config/ia64/predicates.md (mux1_brcst_element): New.
27446 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
27447 * config/ia64/ia64.c (ia64_unpack_assemble): New.
27448 (ia64_unpack_sign): New.
27449 (ia64_expand_unpack): Rewrite using new routines.
27450 (ia64_expand_widen_sum): Ditto.
27451 (ia64_expand_dot_prod_v8qi): Ditto.
27452 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
27453 routines, add endian check.
27454 (pmpy2_even): Rename from pmpy2_r, add endian check.
27455 (pmpy2_odd): Rename from pmpy2_l, add endian check.
27456 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
27457 (vec_widen_smult_hi_v4hi): Ditto.
27458 (vec_widen_umult_lo_v4hi): Ditto.
27459 (vec_widen_umult_hi_v4hi): Ditto.
27460 (mulv2si3): Change endian checks.
27461 (sdot_prodv4hi): Rewrite with new calls.
27462 (udot_prodv4hi): New.
27463 (vec_pack_ssat_v4hi): Add endian check.
27464 (vec_pack_usat_v4hi): Ditto.
27465 (vec_pack_ssat_v2si): Ditto.
27466 (max1_even): Rename from max1_r, add endian check.
27467 (max1_odd): Rename from max1_l, add endian check.
27468 (*mux1_rev): Format change.
27469 (*mux1_mix): Ditto.
27470 (*mux1_shuf): Ditto.
27471 (*mux1_alt): Ditto.
27472 (*mux1_brcst_v8qi): Use new predicate.
27473 (vec_extract_evenv8qi): Remove endian check.
27474 (vec_extract_oddv8qi): Ditto.
27475 (vec_interleave_lowv4hi): Format change.
27476 (vec_interleave_highv4hi): Ditto.
27477 (mix2_even): Rename from mix2_r, add endian check.
27478 (mix2_odd): Rename from mux2_l, add endian check.
27479 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
27480 (vec_extract_evenodd_helper): Format change.
27481 (vec_extract_evenv4hi): Remove endian check.
27482 (vec_extract_oddv4hi): Remove endian check.
27483 (vec_interleave_lowv2si): Format change.
27484 (vec_interleave_highv2si): Format change.
27485 (vec_initv2si): Remove endian check.
27486 (vecinit_v2si): Add endian check.
27487 (reduc_splus_v2sf): Add endian check.
27488 (reduc_smax_v2sf): Ditto.
27489 (reduc_smin_v2sf): Ditto.
27490 (vec_initv2sf): Remove endian check.
27491 (fpack): Add endian check.
27492 (fswap): Add endian check.
27493 (vec_interleave_highv2sf): Add endian check.
27494 (vec_interleave_lowv2sf): Add endian check.
27495 (fmix_lr): Add endian check.
27496 (vec_setv2sf): Format change.
27497 (*vec_extractv2sf_0_be): Use shift to extract operand.
27498 (*vec_extractv2sf_1_be): New.
27499 (vec_pack_trunc_v4hi): Add endian check.
27500 (vec_pack_trunc_v2si): Format change.
27501
27502 2011-02-04 Jakub Jelinek <jakub@redhat.com>
27503
27504 PR inline-asm/23200
27505 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
27506 do bb, locus and block comparison and disallow loads if it is not set.
27507 (stmt_is_replaceable_p): New function.
27508 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
27509 callers.
27510 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
27511 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
27512 SSA_NAME_DEF_STMT.
27513 * tree-flow.h (stmt_is_replaceable_p): New prototype.
27514
27515 2011-02-04 Joseph Myers <joseph@codesourcery.com>
27516
27517 * config/rs6000/xilinx.opt: New.
27518 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
27519
27520 2011-02-04 Joseph Myers <joseph@codesourcery.com>
27521
27522 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
27523
27524 2011-02-03 Anatoly Sokolov <aesok@post.ru>
27525
27526 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
27527 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
27528 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
27529 secondary_reload_info, xtensa_secondary_reload): Remove.
27530 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
27531 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
27532 (xtensa_preferred_reload_class): Make static. Change return and
27533 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
27534 Use CONST_DOUBLE_P predicate.
27535 (xtensa_preferred_output_reload_class): New function.
27536 (xtensa_secondary_reload): Make static.
27537
27538 2011-02-03 Joseph Myers <joseph@codesourcery.com>
27539
27540 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
27541 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
27542 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
27543
27544 2011-02-03 Jakub Jelinek <jakub@redhat.com>
27545
27546 PR middle-end/31490
27547 * output.h (SECTION_RELRO): Define.
27548 (SECTION_MACH_DEP): Adjust.
27549 (get_variable_section): New prototype.
27550 * varpool.c (varpool_finalize_named_section_flags): New function.
27551 (varpool_assemble_pending_decls): Call it.
27552 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
27553 * cgraphunit.c (cgraph_output_in_order): Call
27554 varpool_finalize_named_section_flags.
27555 * varasm.c (get_section): Allow section flags conflicts between
27556 relro and read-only sections if the section hasn't been declared yet.
27557 Set SECTION_OVERRIDE after diagnosing section type conflict.
27558 (get_variable_section): No longer static.
27559 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
27560 readonly sections that need relocations.
27561 (decl_readonly_section_1): New function.
27562 (decl_readonly_section): Use it.
27563
27564 Revert:
27565 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
27566 Steve Ellcey <sje@cup.hp.com>
27567
27568 PR middle-end/31490
27569 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
27570 if section attribute used.
27571
27572 2011-02-03 Jakub Jelinek <jakub@redhat.com>
27573
27574 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
27575 * config/darwin.c (SECTION_NO_ANCHOR): Define.
27576 (darwin_init_sections): Remove assertion.
27577
27578 2011-02-03 Nick Clifton <nickc@redhat.com>
27579
27580 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
27581 lt and ge.
27582 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
27583 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
27584 instead of "n" and "pz".
27585 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
27586 CC_FLAG_S.
27587
27588 2011-02-03 Jakub Jelinek <jakub@redhat.com>
27589
27590 PR target/47312
27591 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
27592 fma, expand FMA_EXPR as fma{,f,l} call.
27593
27594 PR lto/47274
27595 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
27596 copy them into a unsigned char variable and pass address of it to
27597 lto_output_data_stream.
27598
27599 PR target/47564
27600 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
27601 around backend_init_target and lang_dependent_init_target calls.
27602 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
27603 (verify_cgraph_node): Don't call set_cfun here. Use
27604 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
27605 Set error_found for incorrectly represented calls to thunks.
27606
27607 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
27608
27609 PR debug/43092
27610 PR rtl-optimization/43494
27611 * rtl.h (for_each_inc_dec_fn): New type.
27612 (for_each_inc_dec): Declare.
27613 * rtlanal.c (struct for_each_inc_dec_ops): New type.
27614 (for_each_inc_dec_find_inc_dec): New fn.
27615 (for_each_inc_dec_find_mem): New fn.
27616 (for_each_inc_dec): New fn.
27617 * dse.c (struct insn_size): Remove.
27618 (replace_inc_dec, replace_inc_dec_mem): Remove.
27619 (emit_inc_dec_insn_before): New fn.
27620 (check_for_inc_dec): Use it, along with for_each_inc_dec.
27621 (canon_address): Pass mem modes to cselib_lookup.
27622 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
27623 (cselib_lookup_from_insn): Likewise.
27624 (cselib_subst_to_values): Likewise.
27625 * cselib.c (find_slot_memmode): New var.
27626 (cselib_find_slot): New fn. Use it instead of
27627 htab_find_slot_with_hash everywhere.
27628 (entry_and_rtx_equal_p): Use find_slot_memmode.
27629 (autoinc_split): New fn.
27630 (rtx_equal_for_cselib_p): Rename and implement in terms of...
27631 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
27632 Deal with autoinc. Special-case recursion into MEMs.
27633 (cselib_hash_rtx): Likewise.
27634 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
27635 address and MEM modes.
27636 (cselib_subst_to_values): Add memmode, pass it on.
27637 Deal with autoinc.
27638 (cselib_lookup): Add memmode argument, pass it on.
27639 (cselib_lookup_from_insn): Add memmode.
27640 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
27641 (struct cselib_record_autoinc_data): New.
27642 (cselib_record_autoinc_cb): New fn.
27643 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
27644 mode to cselib_lookup. Reset autoinced REGs here instead of...
27645 (cselib_process_insn): ... here.
27646 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
27647 to cselib_lookup.
27648 (add_uses): Likewise, also to cselib_subst_to_values.
27649 (add_stores): Likewise.
27650 * sched-deps.c (add_insn_mem_dependence): Pass mode to
27651 cselib_subst_to_values.
27652 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
27653 * gcse.c (do_local_cprop): Adjusted.
27654 * postreload.c (reload_cse_simplify_set): Adjusted.
27655 (reload_cse_simplify_operands): Adjusted.
27656 * sel-sched-dump (debug_mem_addr_value): Pass mode.
27657
27658 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
27659
27660 PR tree-optimization/45122
27661 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
27662 unsafe assumptions when there's more than one loop exit.
27663
27664 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27665
27666 PR target/47272
27667 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27668 Document using vector double with the load/store builtins, and
27669 that the load/store builtins always use Altivec instructions.
27670
27671 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
27672 to use altivec memory instructions, even on VSX.
27673 (vector_altivec_store_<mode>): Ditto.
27674
27675 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
27676 function.
27677
27678 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27679 V2DF, V2DI support to load/store overloaded builtins.
27680
27681 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
27682 altivec load/store builtins for V2DF/V2DI types.
27683
27684 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27685 set avoid indexed addresses on power6 if -maltivec.
27686 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
27687 vector_altivec_load/vector_altivec_store builtins.
27688 (altivec_expand_st_builtin): Ditto.
27689 (altivec_expand_builtin): Add VSX memory builtins.
27690 (rs6000_init_builtins): Add V2DI types to internal types.
27691 (altivec_init_builtins): Add support for V2DF/V2DI altivec
27692 load/store builtins.
27693 (rs6000_address_for_altivec): Insure memory address is appropriate
27694 for Altivec.
27695
27696 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
27697 vec_vsx_ld and vec_vsx_st.
27698 (vsx_store_<mode>): Ditto.
27699
27700 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
27701 variables to hold long long types for VSX vector memory builtins.
27702 (RS6000_BTI_unsigned_long_long): Ditto.
27703 (long_long_integer_type_internal_node): Ditti.
27704 (long_long_unsigned_type_internal_node): Ditti.
27705
27706 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
27707 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
27708 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
27709
27710 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
27711 short cuts.
27712 (vec_vsx_st): Ditto.
27713
27714 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27715
27716 * config/pa/pa-hpux10.opt: New.
27717 * config/hpux11.opt (pthread): New Driver option.
27718 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
27719 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
27720
27721 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27722
27723 * config/ia64/vms.opt: New.
27724 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
27725
27726 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
27727
27728 PR target/47580
27729 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
27730 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
27731 generator functions.
27732 (vsx_floatuns<VSi><mode>2): Ditto.
27733 (vsx_fix_trunc<mode><VSi>2): Ditto.
27734 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
27735
27736 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27737
27738 * config/i386/djgpp.opt (posix): New Driver option.
27739
27740 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
27741
27742 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
27743 Move to the unsupported targets list.
27744
27745 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
27746
27747 PR rtl-optimization/47525
27748 * df-scan.c: Update copyright years.
27749 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
27750 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
27751
27752 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27753
27754 * config/i386/sysv4.h (TARGET_VERSION): Remove.
27755 (SUBTARGET_RETURN_IN_MEMORY): Remove.
27756 (ASM_OUTPUT_ASCII): Remove.
27757 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
27758
27759 2011-02-02 Jeff Law <law@redhat.com>
27760
27761 PR middle-end/47543
27762 * reload.c (find_reloads_address): Handle reg+d address where both
27763 components are invalid by reloading the entire address.
27764
27765 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
27766 Richard Guenther <rguenther@suse.de>
27767
27768 PR tree-optimization/40979
27769 PR bootstrap/47044
27770 * passes.c (init_optimization_passes): After LIM call copy_prop
27771 and DCE to clean up.
27772 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
27773
27774 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
27775
27776 PR tree-optimization/47576
27777 PR tree-optimization/47555
27778 * doc/invoke.texi (scev-max-expr-complexity): Documented.
27779 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27780 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
27781 * tree-scalar-evolution.c (follow_ssa_edge): Use
27782 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
27783
27784 2011-02-02 Richard Guenther <rguenther@suse.de>
27785
27786 PR tree-optimization/47566
27787 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
27788
27789 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
27790
27791 PR debug/47106
27792 PR debug/47402
27793 * tree-inline.c (declare_return_variable): Remove unused caller
27794 variable.
27795
27796 PR debug/47106
27797 PR debug/47402
27798 * tree-flow-inline.h (clear_is_used, is_used_p): New.
27799 * cfgexpand.c (account_used_vars_for_block): Use them.
27800 * tree-nrv.c (tree_nrv): Likewise.
27801 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
27802 (dump_scope_block): Likewise.
27803 (remove_unused_locals): Likewise.
27804
27805 PR debug/47106
27806 PR debug/47402
27807 * tree-inline.c (declare_return_variable): Add result decl to
27808 local decls only once.
27809 * gimple-low.c (record_vars_into): Mark newly-created variables
27810 as referenced.
27811
27812 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
27813
27814 PR debug/47498
27815 PR debug/47501
27816 PR debug/45136
27817 PR debug/45130
27818 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27819 debug insns.
27820 (no_real_insns_p, schedule_block, set_priorities): Drop special
27821 treatment of boundary debug insns.
27822 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27823 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
27824 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27825 (BOUNDARY_DEBUG_INSN_P): Likewise.
27826 (SCHEDULE_DEBUG_INSN_P): Likewise.
27827 * sched-rgn.c (init_ready_list): Drop special treatment of
27828 boundary debug insns.
27829 * final.c (rest_of_clean_state): Clear notes' BB.
27830
27831 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27832
27833 * config/openbsd.opt (assert=): New Driver option.
27834
27835 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27836
27837 * config/i386/nto.opt: New.
27838 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
27839
27840 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27841
27842 * config/i386/netware.opt: New.
27843 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
27844
27845 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27846
27847 * config/interix.opt (posix): New Driver option.
27848
27849 2011-02-01 DJ Delorie <dj@redhat.com>
27850
27851 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
27852
27853 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
27854 class for A0/A1.
27855
27856 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
27857
27858 PR tree-optimization/47561
27859 * toplev.c (process_options): Print the Graphite flags. Add
27860 flag_loop_flatten to the list of options requiring Graphite.
27861
27862 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27863
27864 * config/i386/cygming.opt (posix): New Driver option.
27865
27866 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27867
27868 * config/arm/vxworks.opt: New.
27869 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
27870
27871 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27872
27873 * config/alpha/elf.opt: New.
27874 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
27875 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
27876
27877 2011-02-01 Richard Guenther <rguenther@suse.de>
27878
27879 PR tree-optimization/47559
27880 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
27881 store-motion on references that can throw.
27882
27883 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
27884
27885 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
27886 * tree-pass.h (TDF_CSELIB): New macro.
27887 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
27888 cselib_lookup): Check for it rather than for TDF_DETAILS.
27889
27890 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
27891
27892 PR driver/47547
27893 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
27894 is HOST_BIT_BUCKET.
27895
27896 * opts.c (finish_options): Don't add x_aux_base_name if it is
27897 HOST_BIT_BUCKET.
27898
27899 2011-02-01 Richard Guenther <rguenther@suse.de>
27900
27901 PR tree-optimization/47555
27902 Revert
27903 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
27904
27905 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27906
27907 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
27908
27909 PR gcc/46692
27910 * config/lm32/t-lm32: Add multilib for all CPU options.
27911
27912 2011-02-01 Richard Guenther <rguenther@suse.de>
27913
27914 PR tree-optimization/47541
27915 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
27916 sure to have a field at offset zero.
27917
27918 2011-01-31 Joseph Myers <joseph@codesourcery.com>
27919
27920 * config/arc/arc.opt (EB, EL): New Driver options.
27921
27922 2011-01-31 Joseph Myers <joseph@codesourcery.com>
27923
27924 * config/alpha/osf5.opt: New.
27925 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
27926
27927 2011-01-31 Joseph Myers <joseph@codesourcery.com>
27928
27929 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
27930
27931 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
27932
27933 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
27934 -floop-interchange.
27935 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
27936 is an alias of -floop-interchange and that it requires the
27937 Graphite infrastructure.
27938 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
27939 flag_loop_interchange based on the value of flag_tree_loop_linear.
27940
27941 2011-01-31 Jakub Jelinek <jakub@redhat.com>
27942 Richard Guenther <rguenther@suse.de>
27943
27944 PR tree-optimization/47538
27945 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
27946 type instead of r1type, except for comparisons. For right
27947 shifts and comparisons punt if there are mismatches in
27948 sizetype vs. non-sizetype types.
27949
27950 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27951
27952 * doc/sourcebuild.texi (Effective-Target Keywords): Document
27953 avx_runtime.
27954
27955 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27956
27957 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
27958 version number.
27959 * configure: Regenerate.
27960
27961 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27962
27963 * configure.ac (gcc_cv_ld_static_option): Define.
27964 (gcc_cv_ld_dynamic_option): Define.
27965 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
27966 instead.
27967 (HAVE_LD_STATIC_DYNAMIC): Update message.
27968 (LD_STATIC_OPTION): Define.
27969 (LD_DYNAMIC_OPTION): Define.
27970 * configure: Regenerate.
27971 * config.in: Regenerate.
27972 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
27973 HAVE_LD_STATIC_DYNAMIC]: Use them.
27974
27975 2011-01-31 Nick Clifton <nickc@redhat.com>
27976
27977 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
27978 registers inside interrupt handlers if the handler is not a leaf
27979 function.
27980
27981 2011-01-31 Nick Clifton <nickc@redhat.com>
27982
27983 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
27984 reg_renumber returning an INVALID_REGNUM.
27985
27986 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
27987
27988 PR libgcj/44341
27989 * doc/install.texi: Document host options discarded when cross
27990 configuring target libraries.
27991
27992 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
27993
27994 Reverted:
27995 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
27996 PR debug/45136
27997 PR debug/45130
27998 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27999 debug insns.
28000 (no_real_insns_p, schedule_block, set_priorities): Drop special
28001 treatment of boundary debug insns.
28002 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
28003 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
28004 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
28005 (BOUNDARY_DEBUG_INSN_P): Likewise.
28006 (SCHEDULE_DEBUG_INSN_P): Likewise.
28007 * sched-rgn.c (init_ready_list): Drop special treatment of
28008 boundary debug insns.
28009 * final.c (rest_of_clean-state): Clear notes' BB.
28010
28011 2011-01-31 Alan Modra <amodra@gmail.com>
28012
28013 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
28014 toc relative expressions as we do in print_operand_address.
28015
28016 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
28017
28018 * doc/extend.texi: Follow spelling conventions.
28019 * doc/invoke.texi: Fix a typo.
28020
28021 2011-01-30 Joseph Myers <joseph@codesourcery.com>
28022
28023 * config/hpux11.opt: New.
28024 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
28025 ia64*-*-hpux*): Use hpux11.opt.
28026
28027 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
28028
28029 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
28030 to tmake_file.
28031
28032 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
28033
28034 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
28035 support sites.
28036
28037 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
28038
28039 * doc/install.texi (Binaries): Remove outdated reference for
28040 Motorola 68HC11/68HC12 downloads.
28041
28042 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
28043
28044 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
28045 Drepper's paper.
28046
28047 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
28048
28049 PR bootstrap/47147
28050 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
28051 used by NetBSD.
28052
28053 2011-01-28 Ahmad Sharif <asharif@google.com>
28054
28055 * value-prof.c (check_counter): Corrected error message.
28056
28057 2011-01-29 Jie Zhang <jie@codesourcery.com>
28058
28059 * config/arm/arm.c (arm_legitimize_reload_address): New.
28060 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
28061 arm_legitimize_reload_address.
28062 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
28063
28064 2011-01-28 Ian Lance Taylor <iant@google.com>
28065
28066 * godump.c (go_define): Ignore macros whose definitions include
28067 two adjacent operands.
28068
28069 2011-01-28 Jakub Jelinek <jakub@redhat.com>
28070
28071 PR target/42894
28072 * varasm.c (force_const_mem): Store copy of x in desc->constant
28073 instead of x itself.
28074 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
28075 itself into REG_EQUAL note.
28076
28077 2011-01-28 Joseph Myers <joseph@codesourcery.com>
28078
28079 * config/freebsd.opt (posix, rdynamic): New Driver options.
28080
28081 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28082
28083 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
28084 -Bstatic/-Bdynamic.
28085 * configure: Regenerate.
28086
28087 2011-01-27 Joseph Myers <joseph@codesourcery.com>
28088
28089 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
28090 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
28091
28092 2011-01-27 Anatoly Sokolov <aesok@post.ru>
28093
28094 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
28095 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
28096 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
28097 (s390_preferred_reload_class): Make static. Change return and
28098 'rclass' argument type to reg_class_t.
28099
28100 2011-01-27 Jan Hubicka <jh@suse.cz>
28101
28102 PR middle-end/46949
28103 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
28104 (process_function_and_variable_attributes): Check defined weakrefs.
28105
28106 2011-01-27 Martin Jambor <mjambor@suse.cz>
28107
28108 PR tree-optimization/47228
28109 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
28110 build_ref_for_offset.
28111
28112 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28113
28114 * config/spu/spu-elf.h (ASM_SPEC): Remove.
28115
28116 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
28117
28118 PR rtl-optimization/46856
28119 * postreload.c (reload_combine_recognize_const_pattern): Do not
28120 separate cc0 setter and user on cc0 targets.
28121
28122 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
28123
28124 PR c/43082
28125 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
28126 passed a VOID_TYPE expression, immediately emit an error and
28127 return error_mark_node.
28128
28129 2011-01-26 Jeff Law <law@redhat.com>
28130
28131 PR rtl-optimization/47464
28132 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
28133 rather than may_trap_p as needed.
28134
28135 2011-01-26 DJ Delorie <dj@redhat.com>
28136
28137 PR rtl-optimization/46878
28138 * combine.c (insn_a_feeds_b): Check for the implicit cc0
28139 setter/user dependency as well.
28140
28141 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
28142
28143 PR rtl-optimization/44469
28144 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
28145 after removing trivially dead basic blocks.
28146
28147 2011-01-26 Joseph Myers <joseph@codesourcery.com>
28148
28149 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
28150 * config/frv/frv.h (LINK_SPEC): Likewise.
28151 * config/i386/netware.h (LINK_SPEC): Likewise.
28152 * config/m68k/linux.h (ASM_SPEC): Likewise.
28153 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
28154 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
28155 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28156 * config/sparc/linux.h (ASM_SPEC): Likewise.
28157 * config/sparc/linux64.h (ASM_SPEC): Likewise.
28158 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28159
28160 2011-01-26 Joseph Myers <joseph@codesourcery.com>
28161
28162 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
28163 * config/frv/frv.h (ASM_SPEC): Likewise.
28164 * config/m68k/linux.h (ASM_SPEC): Likewise.
28165 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
28166 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
28167 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28168 * config/sparc/linux.h (ASM_SPEC): Likewise.
28169 * config/sparc/linux64.h (ASM_SPEC): Likewise.
28170 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28171
28172 2011-01-26 Joseph Myers <joseph@codesourcery.com>
28173
28174 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
28175 * config/frv/frv.h (LINK_SPEC): Likewise.
28176 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
28177
28178 2011-01-26 Joseph Myers <joseph@codesourcery.com>
28179
28180 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
28181 * config/frv/frv.h (ASM_SPEC): Likewise.
28182 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
28183 * config/m68k/linux.h (ASM_SPEC): Likewise.
28184 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
28185 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
28186 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28187 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
28188 * config/sparc/linux.h (ASM_SPEC): Likewise.
28189 * config/sparc/linux64.h (ASM_SPEC): Likewise.
28190 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28191 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
28192
28193 2011-01-26 Steve Ellcey <sje@cup.hp.com>
28194
28195 PR target/46997
28196 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
28197 (*mux2): Ditto.
28198 (vec_extract_evenodd_help): Ditto.
28199 (vec_extract_evenv4hi): Ditto.
28200 (vec_extract_oddv4hi): Ditto.
28201 (vec_interleave_lowv2si): Ditto.
28202 (vec_interleave_highv2si): Ditto.
28203 (vec_extract_evenv2si): Ditto.
28204 (vec_extract_oddv2si: Ditto.
28205 (vec_pack_trunc_v2si): Ditto.
28206
28207 2011-01-22 Jan Hubicka <jh@suse.cz>
28208
28209 PR target/47237
28210 * cgraph.h (cgraph_local_info): New field can_change_signature.
28211 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
28212 signature can change.
28213 (ipcp_estimate_growth): Call sequence simplify only if calle signature
28214 can change.
28215 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
28216 (cgraph_function_versioning): We can not change signature of functions
28217 that don't allow that.
28218 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
28219 (lto_input_node): Likewise.
28220 * ipa-inline.c (compute_inline_parameters): Compute
28221 local.can_change_signature.
28222 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
28223 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
28224 functions that can not change signature.
28225 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
28226 init_cumulative_args): Do not use local calling conventions
28227 for functions that can not change signature.
28228
28229 2011-01-22 Jan Hubicka <jh@suse.cz>
28230
28231 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
28232
28233 2011-01-26 Richard Guenther <rguenther@suse.de>
28234
28235 PR tree-optimization/47190
28236 * cgraphunit.c (process_common_attributes): New function.
28237 (process_function_and_variable_attributes): Use it.
28238
28239 2011-01-26 Richard Guenther <rguenther@suse.de>
28240
28241 PR lto/47423
28242 * cgraphbuild.c (record_eh_tables): Record reference to personality
28243 function.
28244
28245 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
28246
28247 PR debug/45454
28248 * sel-sched.c (moveup_expr): Don't let debug insns prevent
28249 non-debug insns from moving up.
28250
28251 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
28252
28253 PR target/40125
28254 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
28255 t-dlldir{,-x} fragment for build and add it to tmake_file.
28256 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
28257 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
28258 * config/i386/t-dlldir: New file.
28259 (SHLIB_DLLDIR): Define.
28260 * config/i386/t-dlldir-x: New file.
28261 (SHLIB_DLLDIR): Define.
28262 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
28263 (SHLIB_INSTALL): Use it.
28264
28265 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
28266
28267 PR target/47246
28268 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
28269 lower bound of the allowed Thumb-2 coprocessor load/store
28270 index range to -256. Add explaining comment.
28271
28272 2011-01-25 Ian Lance Taylor <iant@google.com>
28273
28274 * godump.c (go_define): Improve lexing of macro expansion to only
28275 accept expressions which match Go spec.
28276
28277 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
28278
28279 PR c++/43601
28280 * tree.c (handle_dll_attribute): Handle it.
28281 * doc/extend.texi (@item dllexport): Mention it.
28282 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
28283
28284 2011-01-25 Ian Lance Taylor <iant@google.com>
28285
28286 PR tree-optimization/26854
28287 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
28288 (decl_jump_unsafe): Move higher in file, with no other change.
28289 (bind): Set has_jump_unsafe_decl if appropriate.
28290 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
28291 (check_earlier_gotos): Likewise.
28292 (c_check_switch_jump_warnings): Likewise.
28293
28294 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
28295
28296 * doc/invoke.texi (Warning Options): Add missing hyphen.
28297 (-fprofile-dir): Minor grammatical fixes.
28298 (-fbranch-probabilities): Likewise.
28299
28300 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
28301
28302 PR debug/45136
28303 PR debug/45130
28304 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
28305 debug insns.
28306 (no_real_insns_p, schedule_block, set_priorities): Drop special
28307 treatment of boundary debug insns.
28308 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
28309 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
28310 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
28311 (BOUNDARY_DEBUG_INSN_P): Likewise.
28312 (SCHEDULE_DEBUG_INSN_P): Likewise.
28313 * sched-rgn.c (init_ready_list): Drop special treatment of
28314 boundary debug insns.
28315 * final.c (rest_of_clean-state): Clear notes' BB.
28316
28317 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28318
28319 * Makefile.in (LAMBDA_H): Removed.
28320 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
28321 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
28322 lambda-trans.o, and tree-loop-linear.o.
28323 (lto-symtab.o): Remove dependence on LAMBDA_H.
28324 (tree-loop-linear.o): Remove rule.
28325 (lambda-mat.o): Same.
28326 (lambda-trans.o): Same.
28327 (lambda-code.o): Same.
28328 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
28329 (tree-vect-slp.o): Same.
28330 * hwint.h (gcd): Moved here.
28331 (least_common_multiple): Same.
28332 * lambda-code.c: Removed.
28333 * lambda-mat.c: Removed.
28334 * lambda-trans.c: Removed.
28335 * lambda.h: Removed.
28336 * tree-loop-linear.c: Removed.
28337 * lto-symtab.c: Do not include lambda.h.
28338 * omega.c (gcd): Removed.
28339 * passes.c (init_optimization_passes): Remove pass_linear_transform.
28340 * tree-data-ref.c (print_lambda_vector): Moved here.
28341 (lambda_vector_copy): Same.
28342 (lambda_matrix_copy): Same.
28343 (lambda_matrix_id): Same.
28344 (lambda_vector_first_nz): Same.
28345 (lambda_matrix_row_add): Same.
28346 (lambda_matrix_row_exchange): Same.
28347 (lambda_vector_mult_const): Same.
28348 (lambda_vector_negate): Same.
28349 (lambda_matrix_row_negate): Same.
28350 (lambda_vector_equal): Same.
28351 (lambda_matrix_right_hermite): Same.
28352 * tree-data-ref.h: Do not include lambda.h.
28353 (lambda_vector): Moved here.
28354 (lambda_matrix): Same.
28355 (dependence_level): Same.
28356 (lambda_transform_legal_p): Removed declaration.
28357 (lambda_collect_parameters): Same.
28358 (lambda_compute_access_matrices): Same.
28359 (lambda_vector_gcd): Same.
28360 (lambda_vector_new): Same.
28361 (lambda_vector_clear): Same.
28362 (lambda_vector_lexico_pos): Same.
28363 (lambda_vector_zerop): Same.
28364 (lambda_matrix_new): Same.
28365 * tree-flow.h (least_common_multiple): Removed declaration.
28366 * tree-parloops.c (lambda_trans_matrix): Moved here.
28367 (LTM_MATRIX): Same.
28368 (LTM_ROWSIZE): Same.
28369 (LTM_COLSIZE): Same.
28370 (LTM_DENOMINATOR): Same.
28371 (lambda_trans_matrix_new): Same.
28372 (lambda_matrix_vector_mult): Same.
28373 (lambda_transform_legal_p): Same.
28374 * tree-pass.h (pass_linear_transform): Removed declaration.
28375 * tree-ssa-loop.c (tree_linear_transform): Removed.
28376 (gate_tree_linear_transform): Removed.
28377 (pass_linear_transform): Removed.
28378 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
28379 flag_loop_interchange.
28380
28381 2011-01-25 Jakub Jelinek <jakub@redhat.com>
28382
28383 PR tree-optimization/47265
28384 PR tree-optimization/47443
28385 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
28386 if name still has some uses.
28387
28388 2011-01-25 Martin Jambor <mjambor@suse.cz>
28389
28390 PR tree-optimization/47382
28391 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
28392 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
28393
28394 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
28395
28396 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
28397 sjlj_except_unwind_info.
28398
28399 2011-01-25 Richard Guenther <rguenther@suse.de>
28400
28401 PR tree-optimization/47426
28402 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
28403 visible functions results escape.
28404
28405 2011-01-25 Jakub Jelinek <jakub@redhat.com>
28406
28407 PR target/45701
28408 * config/arm/arm.c (any_sibcall_uses_r3): New function.
28409 (arm_get_frame_offsets): Use it.
28410
28411 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28412 Jakub Jelinek <jakub@redhat.com>
28413
28414 PR tree-optimization/47271
28415 * tree-if-conv.c (bb_postdominates_preds): New.
28416 (if_convertible_bb_p): Call bb_postdominates_preds.
28417 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
28418 (predicate_scalar_phi): Call bb_postdominates_preds.
28419
28420 2011-01-25 Nick Clifton <nickc@redhat.com>
28421
28422 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
28423 * config/rx/rx.c (rx_function_value): Likewise.
28424 (rx_promote_function_mode): Likewise.
28425 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
28426 in order to make it legitimate.
28427 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
28428 make sure that the first operand is the same as the result register.
28429 (addsi3_unspec): Delete.
28430 (subdi3): Do not accept immediate operands.
28431 (subdi3_internal): Likewise.
28432
28433 2011-01-25 Jeff Law <law@redhat.com>
28434
28435 PR rtl-optimization/37273
28436 * ira-costs.c (scan_one_insn): Detect constants living in memory and
28437 handle them like argument loads from stack slots. Do not double
28438 count memory for memory constants and argument loads from stack slots.
28439
28440 2011-01-25 Jakub Jelinek <jakub@redhat.com>
28441
28442 PR tree-optimization/47427
28443 PR tree-optimization/47428
28444 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
28445 coalesce if the new root var would be TREE_READONLY.
28446
28447 2011-01-25 Richard Guenther <rguenther@suse.de>
28448
28449 PR middle-end/47414
28450 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
28451 correct type for TBAA.
28452
28453 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28454
28455 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
28456 (close_phi_written_to_memory): Call for_each_index with
28457 dr_indices_valid_in_loop.
28458
28459 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28460
28461 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
28462 when it is initialized.
28463
28464 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28465
28466 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
28467 call to graphite_find_data_references_in_stmt.
28468 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
28469 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
28470 call to graphite_find_data_references_in_stmt.
28471 (analyze_drs_in_stmts): Same.
28472 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
28473 in which the scalar analysis of indices is performed.
28474 (create_data_ref): Same. Update call to dr_analyze_indices.
28475 (find_data_references_in_stmt): Update call to create_data_ref.
28476 (graphite_find_data_references_in_stmt): Same.
28477 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
28478 declaration.
28479 (create_data_ref): Same.
28480 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
28481 call to create_data_ref.
28482
28483 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28484
28485 * graphite-sese-to-poly.c (build_poly_scop): Move
28486 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
28487
28488 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28489
28490 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
28491 VAR_DECL, PARM_DECL, and RESULT_DECL.
28492
28493 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28494
28495 * graphite-dependences.c (reduction_dr_1): Allow several reductions
28496 in a reduction PBB.
28497 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
28498 that have already been marked as PBB_IS_REDUCTION.
28499
28500 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28501
28502 * graphite-scop-detection.c (same_close_phi_node): New.
28503 (remove_duplicate_close_phi): New.
28504 (make_close_phi_nodes_unique): New.
28505 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
28506
28507 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28508
28509 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
28510 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
28511 of both data references to be the same.
28512
28513 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28514
28515 * graphite-dependences.c (build_lexicographical_constraint): Remove
28516 the gdim parameter.
28517 (build_lexicographical_constraint): Adjust call to
28518 ppl_powerset_is_empty.
28519 (dependence_polyhedron): Same.
28520 (graphite_legal_transform_dr): Same.
28521 (graphite_carried_dependence_level_k): Same.
28522 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
28523 parameter.
28524 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
28525
28526 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28527
28528 * graphite-sese-to-poly.c
28529 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
28530 (close_phi_written_to_memory): New.
28531 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
28532 and unshare_expr.
28533
28534 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28535
28536 * doc/install.texi: Update the expected version number of PPL to 0.11.
28537 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
28538 #if PPL_VERSION_MINOR < 11.
28539
28540 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28541
28542 * graphite-dependences.c: Include graphite-cloog-util.h.
28543 (new_poly_ddr): Inlined into dependence_polyhedron.
28544 (free_poly_ddr): Moved close by new_poly_ddr.
28545 (dependence_polyhedron_1): Renamed dependence_polyhedron.
28546 Early return NULL when ppl_powerset_is_empty returns true.
28547 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
28548 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
28549 (graphite_legal_transform_dr): Call new_poly_ddr.
28550 (graphite_carried_dependence_level_k): Same.
28551 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
28552 (dot_transformed_deps_stmt_1): Removed.
28553 (dot_deps_stmt_1): Call dot_deps_stmt_2.
28554 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
28555 (dot_deps_1): Call dot_deps_2.
28556 * Makefile.in (graphite-dependences.o): Add missing dependence on
28557 graphite-cloog-util.h.
28558
28559 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28560
28561 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
28562 (build_lexicographical_constraint): Same.
28563 (dependence_polyhedron_1): Same.
28564 (graphite_legal_transform_dr): Same.
28565 (graphite_carried_dependence_level_k): Same.
28566 * graphite-ppl.c (ppl_powerset_is_empty): New.
28567 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
28568 * tree-data-ref.c (dump_data_reference): Print the basic block index.
28569
28570 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28571
28572 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
28573 the "a followed by b" relation and document it.
28574
28575 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28576
28577 * graphite-dependences.c (build_lexicographical_constraint): Stop the
28578 iteration when the bag of constraints is empty.
28579
28580 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28581
28582 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
28583
28584 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28585
28586 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
28587 nest and two loop depths as parameters.
28588 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
28589 lst_perfect_nestify.
28590
28591 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28592
28593 * graphite-dependences.c (print_pddr): Call
28594 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
28595
28596 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28597
28598 * graphite-ppl.c (debug_gmp_value): New.
28599 * graphite-ppl.h (debug_gmp_value): Declared.
28600
28601 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
28602
28603 * doc/install.texi: Document availability of cloog-0.16.
28604
28605 2011-01-25 Vladimir Kargov <kargov@gmail.com>
28606
28607 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
28608 invalid postdominance info.
28609
28610 2011-01-24 Jan Hubicka <jh@suse.cz>
28611
28612 PR c/21659
28613 * doc/extend.texi (weak pragma): Drop claim that it must
28614 appear before definition.
28615 * varasm.c (merge_weak, declare_weak): Only sanity check
28616 that DECL is not output at a time it is declared weak.
28617
28618 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
28619
28620 * machmode.def: Fixed comments.
28621
28622 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
28623
28624 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
28625
28626 2011-01-24 Paul Koning <ni1d@arrl.net>
28627
28628 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
28629 WORDS_BIG_ENDIAN.
28630
28631 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
28632
28633 PR target/46519
28634 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
28635 (block_info): Add scanned and prev.
28636 (move_or_delete_vzeroupper_2): Return if the basic block
28637 has been scanned and the upper 128bit state is unchanged
28638 from the last scan.
28639 (move_or_delete_vzeroupper_1): Return true if the exit
28640 state is changed.
28641 (move_or_delete_vzeroupper): Visit basic blocks using the
28642 work-list based algorithm based on vt_find_locations in
28643 var-tracking.c.
28644
28645 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
28646
28647 2011-01-24 Nick Clifton <nickc@redhat.com>
28648
28649 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
28650 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
28651 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
28652 then define __v850e1__.
28653 * doc/invoke.texi: Document -mv850es.
28654
28655 2011-01-24 Richard Henderson <rth@redhat.com>
28656
28657 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
28658 compound unordered comparisons.
28659 * config/rx/rx.c (rx_split_fp_compare): Remove.
28660 * config/rx/rx-protos.h: Update.
28661 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
28662 (cbranchsf4): Don't call rx_split_fp_compare.
28663 (*cbranchsf4): Use rx_split_cbranch.
28664 (*cmpsf): Don't accept "i" constraint.
28665 (*conditional_branch): Only valid after reload.
28666 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
28667
28668 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
28669
28670 PR target/47385
28671 * config/rs6000/altivec.md (vector constant splitters): Add
28672 support for creating vector single precision constants if -mvsx is
28673 used and we would create the constant using Altivec primitives.
28674
28675 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
28676 Richard Sandiford <rdsandiford@googlemail.com>
28677
28678 PR rtl-optimization/47166
28679 * reload1.c (emit_reload_insns): Disable the spill_reg_store
28680 mechanism for PRE_MODIFY and POST_MODIFY.
28681 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
28682 reloadreg.
28683
28684 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
28685
28686 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
28687
28688 2011-01-22 Jan Hubicka <jh@suse.cz>
28689
28690 PR lto/47333
28691 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
28692
28693 2011-01-22 Jan Hubicka <jh@suse.cz>
28694
28695 PR tree-optimization/43884
28696 PR lto/44334
28697 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
28698 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
28699
28700 2011-01-22 Anatoly Sokolov <aesok@post.ru>
28701
28702 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
28703 * config/s390/s390.c (s390_register_move_cost,
28704 s390_memory_move_cost): New.
28705 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
28706
28707 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28708
28709 PR middle-end/47401
28710 * except.c (sjlj_assign_call_site_values): Move setting the
28711 crtl->uses_eh_lsda flag to ...
28712 (sjlj_mark_call_sites): ... here.
28713 (sjlj_emit_function_enter): Support NULL dispatch label.
28714 (sjlj_build_landing_pads): In a function with no landing pads
28715 that still has must-not-throw regions, generate code to register
28716 a personality function with empty LSDA.
28717
28718 2011-01-21 Richard Henderson <rth@redhat.com>
28719
28720 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
28721
28722 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
28723
28724 * compare-elim.c: New file.
28725 * Makefile.in (OBJS-common): Add it.
28726 (compare-elim.o): New.
28727 * common.opt (fcompare-elim): New.
28728 * opts.c (default_options_table): Add OPT_fcompare_elim.
28729 * tree-pass.h (pass_compare_elim_after_reload): New.
28730 * passes.c (init_optimization_passes): Add it.
28731 * recog.h: Protect against re-inclusion.
28732 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
28733 * doc/invoke.texi (-fcompare-elim): Document it.
28734 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
28735 * doc/tm.texi: Rebuild.
28736
28737 2011-01-22 Nick Clifton <nickc@redhat.com>
28738
28739 * config/rx/rx.md (cstoresf4): Pass comparison operator to
28740 rx_split_fp_compare.
28741
28742 2011-01-22 Nick Clifton <nickc@redhat.com>
28743
28744 * config/rx/rx.md (UNSPEC_CONST): New.
28745 (deallocate_and_return): Wrap the amount popped off the stack in
28746 an UNSPEC_CONST in order to stop it being rejected by
28747 -mmax-constant-size.
28748 (pop_and_return): Add a "(return)" rtx.
28749 (call): Drop the immediate operand.
28750 (call_internal): Likewise.
28751 (call_value): Likewise.
28752 (call_value_internal): Likewise.
28753 (sibcall_internal): Likewise.
28754 (sibcall_value_internal): Likewise.
28755 (sibcall): Likewise. Generate an explicit call using
28756 sibcall_internal.
28757 (sibcall_value): Likewise.
28758 (mov<>): FAIL if a constant operand is not legitimate.
28759 (addsi3_unpsec): New pattern.
28760
28761 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
28762 (ok_for_max_constant): New function.
28763 (gen_safe_add): New function.
28764 (rx_expand_prologue): Use gen_safe_add.
28765 (rx_expand_epilogue): Likewise.
28766 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
28767 UNSPEC CONSTs.
28768
28769 2011-01-21 Jeff Law <law@redhat.com>
28770
28771 PR tree-optimization/47053
28772 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
28773 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
28774 statements are deleted.
28775 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
28776 is nonempty, then purge dead edges and cleanup the CFG.
28777
28778 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28779
28780 PR debug/47402
28781 Temporarily revert:
28782 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28783 PR debug/47106
28784 * tree-dfa.c (create_var_ann): Mark variable as used.
28785
28786 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28787
28788 PR middle-end/45566
28789 * except.c (convert_to_eh_region_ranges): Emit queued no-region
28790 notes from other section in hot/cold partitioning even if
28791 last_action is -3. Increment call_site_base.
28792
28793 PR rtl-optimization/47366
28794 * fwprop.c (forward_propagate_into): Return bool. If
28795 any changes are made, -fnon-call-exceptions is used and
28796 REG_EH_REGION note is present, call purge_dead_edges
28797 and return true if it purged anything.
28798 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
28799 any EH edges were purged.
28800
28801 2011-01-21 Jeff Law <law@redhat.com>
28802
28803 PR rtl-optimization/41619
28804 * caller-save.c (setup_save_areas): Break out code to determine
28805 which hard regs are live across calls by examining the reload chains
28806 so that it is always used.
28807 Eliminate code which checked REG_N_CALLS_CROSSED.
28808
28809 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28810
28811 PR tree-optimization/47355
28812 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
28813 NOP has non-debug uses beyond PHIs in new_bb.
28814
28815 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28816
28817 PR debug/47106
28818 * cfgexpand.c (account_used_vars_for_block): Only account vars
28819 that are annotated as used.
28820 (estimated_stack_frame_size): Don't set TREE_USED.
28821 * tree-dfa.c (create_var_ann): Mark variable as used.
28822
28823 2011-01-21 Richard Guenther <rguenther@suse.de>
28824
28825 PR middle-end/47395
28826 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
28827
28828 2011-01-21 Richard Guenther <rguenther@suse.de>
28829
28830 PR tree-optimization/47365
28831 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
28832 (vn_reference_lookup_pieces): Adjust.
28833 (vn_reference_lookup): Likewise.
28834 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
28835 (vn_reference_lookup_3): Only look through kills if in
28836 VN_WALKREWRITE mode.
28837 (vn_reference_lookup_pieces): Adjust.
28838 (vn_reference_lookup): Likewise.
28839 (visit_reference_op_load): Likewise.
28840 (visit_reference_op_store): Likewise.
28841 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
28842 (compute_avail): Likewise.
28843 (eliminate): Likewise.
28844
28845 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28846
28847 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
28848 DECL_IGNORED_P non-reg vars if they are used.
28849
28850 PR tree-optimization/47391
28851 * varpool.c (const_value_known_p): Return false if
28852 decl is volatile.
28853
28854 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
28855
28856 PR bootstrap/47215
28857 * config/i386/i386.c (ix86_local_alignment): Handle
28858 case for va_list_type_node is nil.
28859 (ix86_canonical_va_list_type): Likewise.
28860
28861 2011-01-21 Alan Modra <amodra@gmail.com>
28862
28863 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
28864 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
28865
28866 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28867
28868 * config/arm/arm.md (define_attr type): Rename f_load
28869 and f_store to f_fpa_load and f_fpa_store. Update.
28870 (write_conflict): Deal with rename fallout.
28871 (*push_fp_multi): Likewise.
28872 * config/arm/fpa.md (f_load): Use f_fpa_load.
28873 (f_store): Use f_fpa_store.
28874 (*movsf_fpa): Likewise.
28875 (*movdf_fpa): Likewise.
28876 (*movxf_fpa): Likewise.
28877 (*thumb2_movsf_fpa): Likewise.
28878 (*thumb2_movdf_fpa): Likewise.
28879 (*thumb2_movxf_fpa): Likewise.
28880 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
28881 f_loadd and f_stored.
28882 (*thumb2_movdi_vfp): Likewise.
28883 (*thumb2_movsf_vfp): Fix attribute to f_loads.
28884 (*thumb2_movsi_vfp): Likewise.
28885 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
28886 Use f_loads instead of f_load.
28887 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
28888
28889 2011-01-20 Anatoly Sokolov <aesok@post.ru>
28890
28891 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28892 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
28893 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28894 (xtensa_mode_dependent_address_p): New function.
28895 (constantpool_address_p): Make static. Change return type to bool.
28896 Change argument type to const_rtx. Use CONST_INT_P predicate.
28897
28898 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
28899
28900 PR debug/46583
28901 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
28902
28903 2011-01-20 Jakub Jelinek <jakub@redhat.com>
28904
28905 PR debug/47283
28906 * cfgexpand.c (expand_debug_expr): Instead of generating
28907 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
28908 etc. handling.
28909
28910 2011-01-20 Richard Guenther <rguenther@suse.de>
28911
28912 PR middle-end/47370
28913 * tree-inline.c (remap_gimple_op_r): Recurse manually for
28914 the pointer operand of MEM_REFs.
28915
28916 2011-01-20 Jakub Jelinek <jakub@redhat.com>
28917
28918 PR tree-optimization/46130
28919 * ipa-split.c (consider_split): If return_bb contains non-virtual
28920 PHIs other than for retval or if split_function would not adjust it,
28921 refuse to split.
28922
28923 2011-01-20 Richard Guenther <rguenther@suse.de>
28924
28925 PR tree-optimization/47167
28926 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
28927 Revert previous change, only avoid enumeral type changes.
28928
28929 2011-01-19 Mike Stump <mikestump@comcast.net>
28930
28931 * doc/tm.texi.in (BRANCH_COST): Englishify.
28932 * doc/tm.texi (BRANCH_COST): Likewise.
28933
28934 2011-01-19 Dodji Seketeli <dodji@redhat.com>
28935
28936 PR c++/47291
28937 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
28938 (gen_scheduled_generic_parms_dies): New functions.
28939 (gen_struct_or_union_type_die): Schedule template parameters DIEs
28940 generation for the end of CU compilation.
28941 (dwarf2out_finish): Generate template parameters DIEs here.
28942
28943 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
28944
28945 PR debug/46240
28946 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
28947 debug bind stmt on merge edges.
28948
28949 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
28950
28951 PR debug/47079
28952 PR debug/46724
28953 * function.c (instantiate_expr): Instantiate incoming rtl of
28954 implicit arguments, and recurse on VALUE_EXPRs.
28955 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
28956 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
28957
28958 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
28959
28960 * c-parser.c (c_parser_for_statement): Initialize
28961 collection_expression.
28962
28963 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28964
28965 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
28966
28967 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28968
28969 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
28970 (LINK_SHLIB_SPEC): Don't use %(link_path).
28971 (SUBTARGET_EXTRA_SPECS): Remove link_path.
28972
28973 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28974
28975 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
28976 (NO_SHARED_LIB_SUPPORT): Remove.
28977 (LINK_SHLIB_SPEC): Remove one conditional definition.
28978
28979 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28980
28981 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
28982 %{call_shared}.
28983 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
28984 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
28985 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
28986 %{call_shared} and conditionals on these options not being passed.
28987 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
28988 %{call_shared}.
28989
28990 2011-01-19 Jakub Jelinek <jakub@redhat.com>
28991
28992 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
28993 simplify.
28994
28995 * ipa-split.c: Spelling fixes.
28996
28997 2011-01-19 Richard Henderson <rth@redhat.com>
28998
28999 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
29000 (*mulsi3): Likewise.
29001
29002 * longlong.h [__mn10300__] (count_leading_zeros): New.
29003 [__mn10300__] (umul_ppmm, smul_ppmm): New.
29004 [__mn10300__] (add_ssaaaa, subddmmss): New.
29005 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
29006 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
29007
29008 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29009
29010 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
29011
29012 2011-01-19 Richard Henderson <rth@redhat.com>
29013
29014 * config/mn10300/mn10300.md (addsi3_flags): New.
29015 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
29016 (subsi3_flags, subc_internal, subdi3): New.
29017 (subdi3_internal, *subdi3_degenerate): New.
29018 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
29019
29020 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
29021 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
29022 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
29023 * config/mn10300/mn10300-protos.h: Update.
29024 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
29025 (return_ret): Likewise. Rename from return_internal_regs.
29026 (return_internal): Remove.
29027
29028 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
29029 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
29030 (mn10300_legitimate_constant_p): Likewise.
29031 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
29032 (mn10300_frame_size): New.
29033 (mn10300_expand_prologue): Use it.
29034 (mn10300_expand_epilogue): Likewise.
29035 (mn10300_initial_offset): Likewise.
29036 * config/mn10300/mn10300-protos.h: Update.
29037 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
29038 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
29039 (prologue, epilogue, return_internal): Tidy output code.
29040 (mn10300_store_multiple_operation, return): Likewise.
29041 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
29042 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
29043 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
29044 (load_pic, am33_load_pic): New.
29045 (mn10300_load_pic0, mn10300_load_pic1): New.
29046
29047 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
29048 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
29049 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
29050 (cc_flags_for_mode, cc_flags_for_code): New.
29051 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
29052 overflow flag is not valid. Validate that the flags we need
29053 for the comparison are valid.
29054 (mn10300_output_cmp): Remove.
29055 (mn10300_output_add): New.
29056 (mn10300_select_cc_mode): Use cc_flags_for_code.
29057 (mn10300_split_cbranch): New.
29058 (mn10300_match_ccmode): New.
29059 (mn10300_split_and_operand_count): New.
29060 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
29061 to the function.
29062 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
29063 (addsi3): ... here. Use mn10300_output_add.
29064 (*addsi3_flags): New.
29065 (*am33_subsi3, *mn10300_subsi3): Merge...
29066 (subsi3): ... here. Use attribute isa.
29067 (*subsi3_flags): New.
29068 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
29069 when possible.
29070 (*am33_andsi3, *mn10300_andsi3): Merge...
29071 (andsi3): ... here.
29072 (*andsi3_flags): New.
29073 (andsi3 splitters): New.
29074 (*am33_iorsi3, *mn10300_iorsi3): Merge...
29075 (iorsi3): ... here.
29076 (*iorsi3_flags): New.
29077 (*am33_xorsi3, *mn10300_xorsi3): Merge...
29078 (xorsi3): ... here.
29079 (*xorsi3_flags): New.
29080 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
29081 (one_cmplsi2): ... here.
29082 (*one_cmplsi2_flags): New.
29083 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
29084 instead of "dax" in constraints. Use mn10300_split_cbranch.
29085 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
29086 use matching constraints to eliminate a self-comparison.
29087 (*integer_conditional_branch): Rename from integer_conditional_branch.
29088 Use int_mode_flags to match CC_REG.
29089 (*cbranchsi4_btst, *btstsi): New.
29090 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
29091 mn10300_split_cbranch.
29092 (*am33_cmpsf): Rename from am33_cmpsf.
29093 (*float_conditional_branch): Rename from float_conditional_branch.
29094 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
29095 (zero_extendqisi2): ... here.
29096 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
29097 (zero_extendhisi2): ... here.
29098 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
29099 (extendqisi2): ... here.
29100 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
29101 (extendhisi2): ... here.
29102 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
29103 (ashlsi3): ... here.
29104 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
29105 (lshrsi3): ... here.
29106 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
29107 (ashrsi3): ... here.
29108 (consecutive add peephole): Remove.
29109 * config/mn10300/predicates.md (label_ref_operand): New.
29110 (int_mode_flags): New.
29111 (CCZN_comparison_operator): New.
29112
29113 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
29114 (throughput_42_latency_43): New reservation.
29115 (mulsidi3, umulsidi3): New expanders.
29116 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
29117 the MDR register to allocation; separately allocate the low and
29118 high parts of the DImode result.
29119 (umulsidi3_internal): Similarly.
29120 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
29121 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
29122 (udivsi3, umodsi3): Remove.
29123 (udivmodsi4, divmodsi4): New expanders.
29124 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
29125 (*divmodsi4): Simiarly.
29126 (ext_internal): New.
29127
29128 * config/mn10300/constraints.md ("z"): New constraint.
29129 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
29130 (FIXED_REGISTERS): Don't fix MDR.
29131 (CALL_USED_REGSITERS): Reformat nicely.
29132 (REG_ALLOC_ORDER): Add MDR.
29133 (enum regclass): Add MDR_REGS.
29134 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
29135 (IRA_COVER_CLASSES): Add MDR_REGS.
29136 (REGNO_REG_CLASS): Handle MDR_REG.
29137 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
29138 (mn10300_register_move_cost): Likewise.
29139 * config/mn10300/mn10300.md (MDR_REG): New.
29140 (*movsi_internal): Handle moves to/from MDR_REGS.
29141
29142 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
29143 POST_MODIFY.
29144 (mn10300_secondary_reload): Tidy combination reload classes.
29145 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
29146 addresses for AM33. Allow symbolic offsets for reg+imm.
29147 (mn10300_regno_in_class_p): New.
29148 (mn10300_legitimize_reload_address): New.
29149 * config/mn10300/mn10300.h (enum reg_class): Remove
29150 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
29151 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
29152 SP_OR_GENERAL_REGS.
29153 (REG_CLASS_NAMES): Update to match.
29154 (REG_CLASS_CONTENTS): Likewise.
29155 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
29156 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
29157 (REGNO_IN_RANGE_P): Remove.
29158 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
29159 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
29160 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
29161 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
29162 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
29163 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
29164 (REGNO_GENERAL_P): New.
29165 (HAVE_POST_MODIFY_DISP): New.
29166 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
29167 (LEGITIMIZE_RELOAD_ADDRESS): New.
29168 * config/mn10300/mn10300-protos.h: Update.
29169
29170 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
29171 DATA_REGS for AM33 stack-pointer destination.
29172 (mn10300_preferred_output_reload_class): Likewise.
29173 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
29174 into a form appropriate for ...
29175 (TARGET_SECONDARY_RELOAD): New.
29176 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
29177 * config/mn10300/mn10300-protos.h: Update.
29178 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
29179 reload_insi; use the "A" constraint for the scratch; handle AM33
29180 moves of sp to non-address registers.
29181
29182 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
29183 (*movqi_internal): ... here.
29184 (*am33_movhi, *mn10300_movhi): Merge into...
29185 (*movhi_internal): ... here.
29186 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
29187 as the source/destination of moves from/to SP.
29188 (movsf): Only allow for AM33-2.
29189 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
29190 any integer constant constraint. Only allow for AM33-2. Tidy
29191 all of the alternative outputs.
29192 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
29193 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
29194 for MN103.
29195 (udivsi3, umodsi3): New patterns for MN103 only.
29196
29197 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
29198
29199 * doc/tm.texi.in: Spell out that a lack of register class unions
29200 can lead to ICEs.
29201 * doc/tm.texi: Regenerate.
29202
29203 2011-01-19 Jakub Jelinek <jakub@redhat.com>
29204
29205 PR rtl-optimization/47337
29206 * dce.c (check_argument_store): New function.
29207 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
29208
29209 PR tree-optimization/47290
29210 * tree-eh.c (infinite_empty_loop_p): New function.
29211 (cleanup_empty_eh): Use it.
29212
29213 2011-01-18 Steve Ellcey <sje@cup.hp.com>
29214
29215 PR target/46997
29216 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
29217 (a64_expand_widen_sum): Ditto.
29218 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
29219 (vec_extract_evenodd_help): Ditto.
29220 (vec_extract_evenv4hi): Ditto.
29221 (vec_extract_oddv4hi): Ditto.
29222 (vec_extract_evenv2si): Ditto.
29223 (vec_extract_oddv2si): Ditto.
29224 (vec_extract_evenv2sf): Ditto.
29225 (vec_extract_oddv2sf): Ditto.
29226 (vec_pack_trunc_v4hi: Ditto.
29227 (vec_pack_trunc_v2si): Ditto.
29228 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
29229 (vec_interleave_highv8qi): Ditto.
29230 (mix1_r): Ditto.
29231 (vec_extract_oddv8qi): Ditto.
29232 (vec_interleave_lowv4hi): Ditto.
29233 (vec_interleave_highv4hi): Ditto.
29234 (vec_interleave_lowv2si): Ditto.
29235 (vec_interleave_highv2si): Ditto.
29236
29237 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29238
29239 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
29240 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
29241 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
29242 (pa_c_mode_for_suffix): New.
29243 (TARGET_EXPAND_BUILTIN): Define.
29244 (TARGET_C_MODE_FOR_SUFFIX): Define.
29245 (pa_builtins): Define.
29246 (pa_init_builtins): Register __float128 type and init new support
29247 builtins.
29248 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
29249 * config/pa/quadlib.c (_U_Qfcopysign): New.
29250
29251 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
29252
29253 PR middle-end/46894
29254 * explow.c (allocate_dynamic_stack_space): Do not assume more than
29255 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
29256 are defined.
29257
29258 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29259
29260 PR tree-optimization/47179
29261 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
29262 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
29263
29264 2011-01-18 Richard Guenther <rguenther@suse.de>
29265
29266 PR rtl-optimization/47216
29267 * emit-rtl.c: Include tree-flow.h.
29268 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
29269 of replicating it with different semantics.
29270 * Makefile.in (emit-rtl.o): Adjust.
29271
29272 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29273
29274 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
29275 (cortex_a9_dp): Handle neon types correctly.
29276
29277 2011-01-18 Jakub Jelinek <jakub@redhat.com>
29278
29279 PR rtl-optimization/47299
29280 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
29281 subtarget. Use normal multiplication if both operands are constants.
29282 * expmed.c (expand_widening_mult): Don't try to optimize constant
29283 multiplication if op0 has VOIDmode. Convert op1 constant to mode
29284 before using it.
29285
29286 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29287
29288 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
29289 spacing after 'e.g.', typos, comma, hyphenation.
29290
29291 2011-01-17 Richard Henderson <rth@redhat.com>
29292
29293 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
29294 (rx_restricted_mem_operand): New.
29295 (rx_shift_operand): Use register_operand.
29296 (rx_source_operand, rx_compare_operand): Likewise.
29297 * config/rx/rx.md (addsi3_flags): New expander.
29298 (adddi3): Rewrite as expander.
29299 (adc_internal, *adc_flags, adddi3_internal): New patterns.
29300 (subsi3_flags): New expander.
29301 (subdi3): Rewrite as expander.
29302 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
29303
29304 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
29305 (rx_init_builtins): Remove sat builtin.
29306 (rx_expand_builtin): Likewise.
29307 * config/rx/rx.md (ssaddsi3): New.
29308 (*sat): Rename from sat. Represent the CC_REG input.
29309
29310 * config/rx/predicates.md (rshift_operator): New.
29311 * config/rx/rx.c (rx_expand_insv): Remove.
29312 * config/rx/rx-protos.h: Update.
29313 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
29314 operand to the canonical position.
29315 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
29316 (*bitclr, *bitclr_in_memory): Similarly.
29317 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
29318 (insv): Retain the zero_extract in the expansion.
29319
29320 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
29321 (bswaphi2, bitinvert, revw): Likewise.
29322
29323 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
29324 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
29325 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
29326 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
29327 (bitset, bitset_in_memory): Likewise.
29328 (bitinvert, bitinvert_in_memory): Likewise.
29329 (bitclr, bitclr_in_memory): Likewise.
29330 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
29331 (rx_strend, rx_cmpstrn): Likewise.
29332 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
29333 (bitop peep2 patterns): Remove.
29334
29335 * config/rx/rx.c (rx_match_ccmode): New.
29336 * config/rx/rx-protos.h: Update.
29337 * config/rx/rx.md (abssi2): Clobber, don't set flags.
29338 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
29339 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
29340 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
29341 (fix_truncsfsi2, floatsisf2): Likewise.
29342 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
29343 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
29344 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
29345 (*subsi3_flags, *xorsi3_flags): New.
29346
29347 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
29348
29349 * config/rx/rx.c (rx_print_operand): Remove workaround for
29350 unsplit comparison operations.
29351
29352 * config/rx/rx.md (movsicc): Split after reload.
29353 (*movsicc): Merge *movsieq and *movsine via match_operator.
29354 (*stcc): New pattern.
29355
29356 * config/rx/rx.c (rx_float_compare_mode): Remove.
29357 * config/rx/rx.h (rx_float_compare_mode): Remove.
29358 * config/rx/rx.md (cstoresi4): Split after reload.
29359 (*sccc): New pattern.
29360
29361 * config/rx/predicates.md (label_ref_operand): New.
29362 (rx_z_comparison_operator): New.
29363 (rx_zs_comparison_operator): New.
29364 (rx_fp_comparison_operator): New.
29365 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
29366 Validate that the flags are set properly for the comparison.
29367 (rx_gen_cond_branch_template): Remove.
29368 (rx_cc_modes_compatible): Remove.
29369 (mode_from_flags): New.
29370 (flags_from_code): Rename from flags_needed_for_conditional.
29371 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
29372 (rx_select_cc_mode): Likewise.
29373 (rx_split_fp_compare): New.
29374 (rx_split_cbranch): New.
29375 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
29376 (*cbranchsi4): Use match_operator and rx_split_cbranch.
29377 (*cbranchsf4): Similarly.
29378 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
29379 match_operator and rx_split_cbranch.
29380 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
29381 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
29382 (*cmpsi): Rename from cmpsi.
29383 (*tstsi): Rename from tstsi.
29384 (*cmpsf): Rename from cmpsf; use CC_Fmode.
29385 (*conditional_branch): Rename from conditional_branch.
29386 (*reveresed_conditional_branch): Remove.
29387 (b<code>): Remove expander.
29388 * config/rx/rx-protos.h: Update.
29389
29390 * config/rx/rx.c (rx_compare_redundant): Remove.
29391 * config/rx/rx.md (cmpsi): Don't use it.
29392 * config/rx/rx-protos.h: Update.
29393
29394 * config/rx/rx-modes.def (CC_F): New mode.
29395 * config/rx/rx.c (rx_select_cc_mode): New.
29396 * config/rx/rx.h (SELECT_CC_MODE): Use it.
29397 * config/rx/rx-protos.h: Update.
29398
29399 2011-01-17 Richard Henderson <rth@redhat.com>
29400
29401 * except.c (dump_eh_tree): Fix stray ; after for statement.
29402
29403 2011-01-17 Richard Guenther <rguenther@suse.de>
29404
29405 PR tree-optimization/47313
29406 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
29407 handling before copying the body. Properly deal with
29408 by-reference result in SSA form.
29409
29410 2011-01-17 Ian Lance Taylor <iant@google.com>
29411
29412 PR target/47219
29413 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
29414 (struct_value_alias_set): Don't define.
29415 (sparc_option_override): Don't set sparc_sr_alias_set and
29416 struct_value_alias_set.
29417 (save_or_restore_regs): Use gen_frame_mem rather than calling
29418 set_mem_alias_set.
29419 (sparc_struct_value_rtx): Likewise.
29420
29421 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
29422
29423 PR target/47318
29424 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
29425 (_mm_maskstore_pd): Likewise.
29426 (_mm_maskload_ps): Likewise.
29427 (_mm_maskstore_ps): Likewise.
29428 (_mm256_maskload_pd): Change mask to __m256i.
29429 (_mm256_maskstore_pd): Likewise.
29430 (_mm256_maskload_ps): Likewise.
29431 (_mm256_maskstore_ps): Likewise.
29432
29433 * config/i386/i386-builtin-types.def: Updated.
29434 (ix86_expand_special_args_builtin): Likewise.
29435
29436 * config/i386/i386.c (bdesc_special_args): Update
29437 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
29438 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
29439 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
29440 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
29441
29442 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
29443 Use <avxpermvecmode> on mask register.
29444 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
29445
29446 2011-01-17 Olivier Hainque <hainque@adacore.com>
29447 Michael Haubenwallner <michael.haubenwallner@salomon.at>
29448 Eric Botcazou <ebotcazou@adacore.com>
29449
29450 PR target/46655
29451 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
29452 if <= USHRT_MAX in 32-bit mode.
29453
29454 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29455
29456 * doc/install.texi (Configuration, Specific): Wrap long
29457 lines in examples. Allow line wrapping in long options
29458 and URLs where beneficial for PDF output.
29459
29460 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
29461
29462 * config/mips/mips.c (mips_classify_symbol): Don't return
29463 SYMBOL_PC_RELATIVE for nonlocal labels.
29464
29465 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
29466
29467 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
29468
29469 2011-01-15 Jan Hubicka <jh@suse.cz>
29470
29471 PR tree-optimization/47276
29472 * ipa.c (function_and_variable_visibility): Do not try to mark alias
29473 declarations as needed.
29474
29475 2011-01-15 Martin Jambor <mjambor@suse.cz>
29476
29477 * common.opt (fdevirtualize): New flag.
29478 * doc/invoke.texi (Option Summary): Document it.
29479 * opts.c (default_options_table): Add devirtualize flag.
29480 * ipa-prop.c (detect_type_change): Return immediately if
29481 devirtualize flag is not set.
29482 (detect_type_change_ssa): Likewise.
29483 (compute_known_type_jump_func): Likewise.
29484 (ipa_analyze_virtual_call_uses): Likewise.
29485
29486 2011-01-14 Martin Jambor <mjambor@suse.cz>
29487
29488 PR tree-optimization/45934
29489 PR tree-optimization/46302
29490 * ipa-prop.c (type_change_info): New type.
29491 (stmt_may_be_vtbl_ptr_store): New function.
29492 (check_stmt_for_type_change): Likewise.
29493 (detect_type_change): Likewise.
29494 (detect_type_change_ssa): Likewise.
29495 (compute_complex_assign_jump_func): Check for dynamic type change.
29496 (compute_complex_ancestor_jump_func): Likewise.
29497 (compute_known_type_jump_func): Likewise.
29498 (compute_scalar_jump_functions): Likewise.
29499 (ipa_analyze_virtual_call_uses): Likewise.
29500 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
29501
29502 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29503
29504 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
29505 * config/i386/i386.opt (msse5): New Alias.
29506
29507 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29508
29509 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
29510 * config/sparc/linux64.h (CC1_SPEC): Likewise.
29511 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
29512 * config/sparc/sparc.h (CC1_SPEC): Likewise.
29513
29514 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29515
29516 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
29517 -mcpu options.
29518 * config/sparc/linux64.h (CC1_SPEC): Likewise.
29519 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
29520 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
29521 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
29522 Likewise.
29523 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
29524
29525 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29526
29527 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
29528
29529 2011-01-14 Mike Stump <mikestump@comcast.net>
29530
29531 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
29532 * config/fr30/fr30.md: Likweise
29533 (movsi_push): Likewise.
29534 (movsi_pop): Likewise.
29535 (enter_func): Likewise.
29536 * config/moxie/moxie.md (movsi_push): Likewise.
29537 (movsi_pop): Likewise.
29538
29539 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29540
29541 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
29542 %{no_archive} %{exact_version}.
29543 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
29544 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
29545 %{no_archive} %{exact_version}.
29546 * config/mips/openbsd.h (LINK_SPEC): Likewise.
29547 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
29548 * config/mips/vxworks.h: Likewise.
29549
29550 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29551
29552 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
29553
29554 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29555
29556 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
29557 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
29558
29559 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29560
29561 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
29562 -nodefaultlib.
29563
29564 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29565
29566 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
29567 for mcpu not cpu.
29568 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
29569 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
29570 not cpu.
29571 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
29572 Don't handle -shlib.
29573
29574 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29575
29576 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
29577 (CC1_SPEC): Don't handle -profile.
29578
29579 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29580
29581 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
29582 * config/mips/mips.h (CC1_SPEC): Likewise.
29583
29584 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29585
29586 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
29587 * config/mips/mips.h (CC1_SPEC): Likewise.
29588
29589 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29590
29591 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
29592 * config/m32r/linux.h (LINK_SPEC): Likewise.
29593 * config/mips/linux.h (LINK_SPEC): Likewise.
29594 * config/mips/linux64.h (LINK_SPEC): Likewise.
29595 * config/sparc/linux.h (LINK_SPEC): Likewise.
29596 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
29597 LINK_SPEC): Likewise.
29598 * config/xtensa/linux.h (LINK_SPEC): Likewise.
29599
29600 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29601
29602 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
29603 %{version:-v}.
29604 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
29605
29606 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29607
29608 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
29609 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
29610
29611 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29612
29613 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
29614
29615 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29616
29617 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
29618 supports -Bstatic/-Bdynamic.
29619 * configure: Regenerate.
29620
29621 2011-01-14 Jan Hubicka <jh@suse.cz>
29622 Jack Howarth <howarth@bromo.med.uc.edu>
29623
29624 PR target/46037
29625 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
29626 when checking debug_info_level. Test write_symbols instead of
29627 debug_hooks->var_location when setting flag_var_tracking_uninit.
29628
29629 2011-01-14 Richard Guenther <rguenther@suse.de>
29630
29631 PR tree-optimization/47179
29632 * target.def (ref_may_alias_errno): New target hook.
29633 * targhooks.h (default_ref_may_alias_errno): Declare.
29634 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
29635 (default_ref_may_alias_errno): New function.
29636 * target.h (struct ao_ref_s): Declare.
29637 * tree-ssa-alias.c: Include target.h.
29638 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
29639 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
29640 (targhooks.o): Likewise.
29641 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
29642 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
29643
29644 2011-01-14 Richard Guenther <rguenther@suse.de>
29645
29646 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
29647
29648 2011-01-14 Richard Guenther <rguenther@suse.de>
29649
29650 PR tree-optimization/47280
29651 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
29652 return CFG changes.
29653 (tree_ssa_forward_propagate_single_use_vars): Deal with
29654 CFG changes from associate_plusminus.
29655
29656 2011-01-14 Richard Guenther <rguenther@suse.de>
29657
29658 PR middle-end/47281
29659 Revert
29660 2011-01-11 Richard Guenther <rguenther@suse.de>
29661
29662 PR tree-optimization/46076
29663 * tree-ssa.c (useless_type_conversion_p): Conversions from
29664 unprototyped to empty argument list function types are useless.
29665
29666 2011-01-14 Richard Guenther <rguenther@suse.de>
29667
29668 PR tree-optimization/47286
29669 * tree-ssa-structalias.c (new_var_info): Register variables are global.
29670
29671 2011-01-14 Martin Jambor <mjambor@suse.cz>
29672
29673 PR middle-end/46823
29674 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
29675
29676 2011-01-13 Anatoly Sokolov <aesok@post.ru>
29677
29678 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
29679 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
29680 * config/xtensa/xtensa.c (xtensa_libcall_value,
29681 xtensa_function_value_regno_p): New functions.
29682 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
29683
29684 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
29685
29686 PR c++/47213
29687 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
29688 PE specific hook.
29689 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
29690 New function prototype.
29691 * config/i386/winnt.c (i386_pe_assemble_visibility):
29692 Warn only if attribute was specified by user.
29693
29694 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
29695
29696 PR target/47251
29697 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
29698 floating point.
29699 (floatunsdidf2_fcfidu): Ditto.
29700
29701 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29702
29703 * config/s390/s390.c (print_operand_address): Replace 'error' with
29704 'output_operand_lossage'.
29705 (print_operand): Likewise.
29706
29707 2011-01-13 Jeff Law <law@redhat.com>
29708
29709 PR rtl-optimization/39077
29710 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
29711 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
29712 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
29713 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
29714 * gcse.c (prune_insertions_deletions): New function.
29715 (compute_pre_data): Use it.
29716
29717 2011-01-13 Dodji Seketeli <dodji@redhat.com>
29718
29719 PR debug/PR46973
29720 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
29721 static function.
29722 (prune_unused_types_mark): Use it.
29723
29724 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
29725
29726 PR rtl-optimization/45352
29727 * sel-sched.c: Update copyright years.
29728 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
29729 in the advancing loop when we have issued issue_rate insns.
29730
29731 2011-01-12 Richard Henderson <rth@redhat.com>
29732
29733 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
29734 (TARGET_MD_ASM_CLOBBERS): New.
29735
29736 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
29737 (TARGET_DELEGITIMIZE_ADDRESS): New.
29738
29739 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
29740 (clzsi2, *bsch): New patterns.
29741
29742 * config/mn10300/mn10300.md (INT): New mode iterator.
29743 (*mov<INT>_clr): New pattern, and peep2 to generate it.
29744
29745 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
29746 flag_split_wide_types.
29747
29748 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
29749 (mn10300_trampoline_init): Rewrite without a template, an immediate
29750 load and a direct branch.
29751 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
29752
29753 2011-01-12 Anatoly Sokolov <aesok@post.ru>
29754
29755 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
29756 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
29757 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
29758 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
29759
29760 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
29761
29762 PR debug/47209
29763 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
29764 of type.
29765
29766 2011-01-12 Jan Hubicka <jh@suse.cz>
29767
29768 PR driver/47244
29769 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
29770 (PLUGIN_COND_CLOSE): New macro.
29771 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
29772
29773 2011-01-12 Richard Guenther <rguenther@suse.de>
29774
29775 PR lto/47259
29776 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
29777 register variables in a MEM_REF.
29778
29779 2011-01-12 Joseph Myers <joseph@codesourcery.com>
29780
29781 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
29782 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
29783 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
29784 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
29785 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
29786 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
29787 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
29788 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
29789 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
29790 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
29791 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
29792 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
29793 * config/gnu-user.h: New. Copied from linux.h.
29794 (LINUX_TARGET_STARTFILE_SPEC): Rename to
29795 GNU_USER_TARGET_STARTFILE_SPEC.
29796 (LINUX_TARGET_ENDFILE_SPEC): Rename to
29797 GNU_USER_TARGET_ENDFILE_SPEC.
29798 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
29799 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
29800 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
29801 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
29802 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
29803 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
29804 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
29805 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
29806 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
29807 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
29808 * config/arm/linux-eabi.h (CC1_SPEC): Use
29809 GNU_USER_TARGET_CC1_SPEC.
29810 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
29811 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
29812 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
29813 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
29814 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
29815 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
29816 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
29817 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
29818
29819 2011-01-12 Richard Guenther <rguenther@suse.de>
29820
29821 PR other/46946
29822 * doc/invoke.texi (ffast-math): Document it is turned on
29823 with -Ofast.
29824
29825 2011-01-12 Jan Hubicka <jh@suse.cz>
29826
29827 PR tree-optimization/47233
29828 * opts.c (common_handle_option): Disable ipa-reference with profile
29829 feedback.
29830
29831 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
29832
29833 * c-parser.c (c_parser_objc_at_property_declaration): Improved
29834 error message.
29835
29836 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
29837
29838 * c-parser.c (c_lex_one_token): Updated and reindented some
29839 comments. No changes in code.
29840
29841 2011-01-11 Ian Lance Taylor <iant@google.com>
29842
29843 * godump.c (go_output_var): Don't output the variable if there is
29844 already a type with the same name.
29845
29846 2011-01-11 Ian Lance Taylor <iant@google.com>
29847
29848 * godump.c (go_format_type): Don't generate float80.
29849
29850 2011-01-11 Richard Henderson <rth@redhat.com>
29851
29852 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
29853 declaration. Rewrite for both speed and size.
29854 (mn10300_address_cost_1): Remove.
29855 (mn10300_register_move_cost): New.
29856 (mn10300_memory_move_cost): New.
29857 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
29858 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
29859 extensions, shifts, BSWAP, CLZ.
29860 (mn10300_wide_const_load_uses_clr): Remove.
29861 (TARGET_REGISTER_MOVE_COST): New.
29862 (TARGET_MEMORY_MOVE_COST): New.
29863 * config/mn10300/mn10300-protos.h: Update.
29864 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
29865
29866 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
29867 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
29868 * config/mn10300/mn10300-protos.h: Update.
29869 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
29870 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
29871 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
29872 (*test_int_bitfield, *test_byte_bitfield): Remove.
29873 (*bit_test, *subreg_bit_test): Remove.
29874 * config/mn10300/predicates.md (const_8bit_operand): Remove.
29875
29876 * config/mn10300/constraints.md ("c"): Rename from "A".
29877 ("A", "D"): New constraint letters.
29878 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
29879 (fmssf4, fnmasf4, fnmssf4): Likewise.
29880
29881 * config/mn10300/mn10300.md (isa): New attribute.
29882 (enabled): New attribute.
29883
29884 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
29885 (abssf2, negsf2): Define only for hardware fp.
29886 (sqrtsf2): Reformat.
29887 (addsf3, subsf3, mulsf3): Merge expander and insn.
29888
29889 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
29890 (DEBUGGER_AUTO_OFFSET): Remove.
29891 (DEBUGGER_ARG_OFFSET): Remove.
29892
29893 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
29894 Emit register stores with the same offsets as the hardware.
29895 (mn10300_store_multiple_operation): Don't check that the register
29896 save offsets are monotonic.
29897 * config/mn10300/mn10300-protos.h: Update.
29898
29899 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
29900
29901 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
29902 in terms of the value on the stack, not the MDR register.
29903
29904 2011-01-11 Jan Hubicka <jh@suse.cz>
29905
29906 PR lto/45721
29907 PR lto/45375
29908 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
29909 (symbol_alias_set_destroy, symbol_alias_set_contains,
29910 propagate_aliases_backward): Declare.
29911 * lto-streamer-out.c (struct sets): New sturcture.
29912 (trivally_defined_alias): New function.
29913 (output_alias_pair_p): Rewrite.
29914 (output_unreferenced_globals): Fix output of alias pairs.
29915 (produce_symtab): Likewise.
29916 * ipa.c (function_and_variable_visibility): Set weak alias destination
29917 as needed in lto.
29918 * varasm.c (symbol_alias_set_t): Remove.
29919 (symbol_alias_set_destroy): Export.
29920 (propagate_aliases_forward, propagate_aliases_backward): New functions
29921 based on ...
29922 (compute_visible_aliases): ... this one; remove.
29923 (trivially_visible_alias): New
29924 (trivially_defined_alias): New.
29925 (remove_unreachable_alias_pairs): Rewrite.
29926 (finish_aliases_1): Reorganize code checking if alias is defined.
29927 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
29928 in LTO mode.
29929
29930 2011-01-11 Richard Guenther <rguenther@suse.de>
29931
29932 PR tree-optimization/46076
29933 * tree-ssa.c (useless_type_conversion_p): Conversions from
29934 unprototyped to empty argument list function types are useless.
29935
29936 2011-01-11 Richard Guenther <rguenther@suse.de>
29937
29938 PR middle-end/45235
29939 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
29940 volatile MEMs as MEM_READONLY_P.
29941
29942 2011-01-11 Richard Guenther <rguenther@suse.de>
29943
29944 PR tree-optimization/47239
29945 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
29946
29947 2011-01-11 Jeff Law <law@redhat.com>
29948
29949 PR tree-optimization/47086
29950 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
29951 IVs from statements that might throw.
29952
29953 2011-01-10 Jan Hubicka <jh@suse.cz>
29954
29955 PR lto/45375
29956 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
29957
29958 2011-01-10 Jan Hubicka <jh@suse.cz>
29959
29960 PR lto/45375
29961 * profile.c (read_profile_edge_counts): Ignore profile inconistency
29962 when correcting profile.
29963
29964 2011-01-10 Jan Hubicka <jh@suse.cz>
29965
29966 PR lto/46083
29967 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
29968 DECL_FINI_PRIORITY.
29969 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
29970 Restore DECL_FINI_PRIORITY.
29971
29972 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29973
29974 * doc/gimple.texi: Fix quoting of multi-word return values in
29975 @deftypefn statements. Ensure presence of return value. Wrap
29976 overlong @deftypefn lines.
29977 (is_gimple_operand, is_gimple_min_invariant_address): Remove
29978 descriptions of removed functions.
29979 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
29980 of multi-word return value in @deftypefn statement.
29981
29982 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29983
29984 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
29985 (Conditional Expressions, Logical Operators)
29986 (Statement and operand traversals): Do not indent smallexample
29987 code. Fix duplicate function argument in example.
29988
29989 2011-01-10 Jeff Law <law@redhat.com>
29990
29991 PR tree-optimization/47141
29992 * ipa-split.c (split_function): Handle case where we are
29993 returning a value and the return block has a virtual operand phi.
29994
29995 2011-01-10 Jan Hubicka <jh@suse.cz>
29996
29997 PR tree-optimization/47234
29998 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
29999 (pass_feedback_split_functions): Declare.
30000 * passes.c (init_optimization_passes): Add ipa-split as subpass of
30001 tree-profile.
30002 * ipa-split.c (gate_split_functions): Update comments; disable
30003 split-functions for profile_arc_flag and branch_probabilities.
30004 (gate_feedback_split_functions): New function.
30005 (execute_feedback_split_functions): New function.
30006 (pass_feedback_split_functions): New global var.
30007
30008 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
30009
30010 PR lto/46760
30011 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
30012 calling gimple_call_set_cannot_inline.
30013
30014 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
30015
30016 * config/darwin-sections.def: Remove unused section.
30017
30018 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
30019
30020 PR c++/47218
30021 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
30022
30023 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
30024
30025 PR objc/47232
30026 * c-parser.c (c_parser_declaration_or_fndef): Improved
30027 error message.
30028
30029 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
30030
30031 * config/i386/winnt.c (i386_pe_start_function): Make sure
30032 to switch back to function's section.
30033
30034 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
30035
30036 PR gcc/46902
30037 PR testsuite/46912
30038 * plugin.c: Move include of dlfcn.h from here...
30039 * system.h: ... to here.
30040
30041 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30042
30043 * doc/cpp.texi (C++ Named Operators): Fix markup for header
30044 file name.
30045 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
30046 two extra empty pages in PDF output.
30047
30048 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
30049
30050 PR objc/47078
30051 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
30052 for error recovery purposes behave as if it was not specified so
30053 that the default type is usd.
30054
30055 2011-01-07 Jan Hubicka <jh@suse.cz>
30056
30057 PR tree-optmization/46469
30058 * ipa.c (function_and_variable_visibility): Clear needed flags on
30059 nodes with external decls; handle weakrefs merging correctly.
30060
30061 2011-01-07 Joseph Myers <joseph@codesourcery.com>
30062
30063 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
30064 not false.
30065
30066 2011-01-07 Jan Hubicka <jh@suse.cz>
30067
30068 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
30069 and no longer claim that gold is required for linker plugin.
30070 * configure: Regenerate.
30071 * gcc.c (PLUGIN_COND): New macro.
30072 (LINK_COMMAND_SPEC): Use it.
30073 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
30074 * config.in (HAVE_LTO_PLUGIN): New.
30075 * configure.ac (--with-lto-plugin): New parameter; autodetect
30076 HAVE_LTO_PLUGIN.
30077
30078 2011-01-07 Jan Hubicka <jh@suse.cz>
30079
30080 PR tree-optimization/46367
30081 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
30082 when we can update original.
30083 (cgraph_mark_inline_edge): Sanity check.
30084 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
30085
30086 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30087
30088 * config/spu/spu.h (ASM_COMMENT_START): Define.
30089
30090 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
30091
30092 PR driver/42445
30093 * gcc.c (%>S): New.
30094 (SWITCH_KEEP_FOR_GCC): Likewise.
30095 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
30096 (do_spec_1): Handle "%>".
30097
30098 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
30099
30100 2011-01-07 Jakub Jelinek <jakub@redhat.com>
30101
30102 PR target/47201
30103 * config/i386/i386.c (ix86_delegitimize_address): If
30104 simplify_gen_subreg fails, return orig_x.
30105
30106 PR bootstrap/47187
30107 * value-prof.c (gimple_stringop_fixed_value): Handle
30108 lhs of the call properly.
30109
30110 2011-01-07 Jan Hubicka <jh@suse.cz>
30111
30112 PR lto/45375
30113 * lto-opt.c (lto_reissue_options): Set flag_shlib.
30114
30115 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
30116
30117 * target.def (function_switched_text_sections): New hook.
30118 * doc/tm.texi: Regenerated.
30119 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
30120 * final.c (default_function_switched_text_sections): New.
30121 (final_scan_insn): Call function_switched_text_sections when a
30122 mid-function section change occurs.
30123 * output.h (default_function_switched_text_sections): Declare.
30124 * config/darwin-protos.h (darwin_function_switched_text_sections):
30125 Likewise.
30126 * config/darwin.c (darwin_function_switched_text_sections): New.
30127 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
30128
30129 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
30130
30131 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
30132 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
30133 the secondary code fragment when outputting for DWARF == 2.
30134
30135 2011-01-07 Anatoly Sokolov <aesok@post.ru>
30136
30137 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
30138 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
30139 Remove.
30140 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
30141 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
30142
30143 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
30144
30145 PR debug/46704
30146 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
30147 when it is not empty.
30148
30149 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
30150
30151 Bobcat Enablement
30152 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
30153 (case ${target}): Add btver1.
30154 * config/i386/driver-i386.c (host_detect_local_cpu): Let
30155 -march=native recognize btver1 processors.
30156 * config/i386/i386-c.c (ix86_target_macros_internal): Add
30157 btver1 def_and_undef
30158 * config/i386/i386.c (struct processor_costs btver1_cost): New
30159 btver1 cost table.
30160 (m_BTVER1): New definition.
30161 (m_AMD_MULTIPLE): Includes m_BTVER1.
30162 (initial_ix86_tune_features): Add btver1 tune.
30163 (processor_target_table): Add btver1 entry.
30164 (static const char *const cpu_names): Add btver1 entry.
30165 (software_prefetching_beneficial_p): Add btver1.
30166 (ix86_option_override_internal): Add btver1 instruction sets.
30167 (ix86_issue_rate): Add btver1.
30168 (ix86_adjust_cost): Add btver1.
30169 * config/i386/i386.h (TARGET_BTVER1): New definition.
30170 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
30171 (enum processor_type): Add PROCESSOR_BTVER1.
30172 * config/i386/i386.md (define_attr "cpu"): Add btver1.
30173
30174 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30175
30176 PR target/43309
30177 * config/i386/i386.c (legitimize_tls_address)
30178 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
30179 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
30180 (tls_initial_exec_64_sun): New pattern.
30181
30182 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
30183
30184 * doc/invoke.texi (Overall Options): Improve wording and markup
30185 of the description of -wrapper.
30186
30187 2011-01-06 Joseph Myers <joseph@codesourcery.com>
30188
30189 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
30190 rdynamic, threads): New Driver options.
30191
30192 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30193
30194 PR target/38118
30195 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
30196 if coming from .tdata.
30197 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
30198
30199 2011-01-06 Jan Hubicka <jh@suse.cz>
30200
30201 PR lto/47188
30202 * collect2.c (main): Do not enable LTOmode when plugin is active.
30203
30204 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30205
30206 PR other/45915
30207 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
30208 --version output if supported.
30209 * configure: Regenerate.
30210
30211 2011-01-06 Joseph Myers <joseph@codesourcery.com>
30212
30213 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
30214 Driver options.
30215
30216 2011-01-06 Jakub Jelinek <jakub@redhat.com>
30217
30218 PR c/47150
30219 * c-convert.c (convert): When converting a complex expression
30220 other than COMPLEX_EXPR to a different complex type, ensure
30221 c_save_expr is called instead of save_expr, unless in_late_binary_op.
30222 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
30223 when converting COMPLEX_TYPE.
30224
30225 2011-01-06 Ira Rosen <irar@il.ibm.com>
30226
30227 PR tree-optimization/47139
30228 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
30229 only the last reduction value is used outside the loop. Update
30230 documentation.
30231
30232 2011-01-05 Joseph Myers <joseph@codesourcery.com>
30233
30234 * config/rtems.opt: New.
30235 * config.gcc (*-*-rtems*): Use rtems.opt.
30236
30237 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
30238
30239 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
30240 processors do not support 3DNow instructions.
30241
30242 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30243
30244 * config/spu/spu.c (spu_option_override): Set parameter
30245 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
30246
30247 2011-01-05 Jan Hubicka <jh@suse.cz>
30248
30249 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
30250 at the command line.
30251
30252 2011-01-05 Martin Jambor <mjambor@suse.cz>
30253
30254 PR lto/47162
30255 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
30256 deltas on streamed outgoing edges.
30257 (output_node_opt_summary): Output info for outgoing edges only when
30258 the node is in new parameter set.
30259 (output_cgraph_opt_summary): New parameter set, passed to the two
30260 aforementioned functions. Update its forward declaration and its
30261 callee too.
30262
30263 2011-01-05 Tom Tromey <tromey@redhat.com>
30264
30265 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
30266 operator to c_finish_omp_atomic.
30267 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
30268 (build_unary_op): Update.
30269 (build_modify_expr): Update.
30270 (build_asm_expr): Update.
30271
30272 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30273
30274 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
30275 newly inserted insns.
30276 (pad_bb): Likewise.
30277 (spu_emit_branch_hint): Likewise.
30278 (insert_hbrp_for_ilb_runout): Likewise.
30279 (spu_machine_dependent_reorg): Call df_finish_pass after
30280 schedule_insns returns.
30281
30282 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30283
30284 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
30285
30286 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
30287
30288 PR tree-optimization/47005
30289 * tree-sra.c (struct access): Add 'non_addressable' bit.
30290 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
30291 (decide_one_param_reduction): Return 0 if the parameter is passed by
30292 reference and one of the accesses in the group is non_addressable.
30293
30294 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
30295
30296 PR tree-optimization/47056
30297 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
30298 (mark_load): Likewise. Handle FUNCTION_DECL specially.
30299 (mark_store): Likewise. Pass STMT to ipa_record_reference.
30300
30301 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
30302
30303 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
30304 initializer. Skip view conversions from aggregate types.
30305
30306 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
30307
30308 PR bootstrap/47055
30309 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
30310
30311 2011-01-04 Philipp Thomas <pth@suse.de>
30312
30313 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
30314 obvious typo.
30315
30316 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30317
30318 * function.c (thread_prologue_and_epilogue_insns): Do not crash
30319 on empty epilogue sequences.
30320
30321 2011-01-04 Joseph Myers <joseph@codesourcery.com>
30322
30323 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
30324 non-static): New Driver options.
30325
30326 2011-01-04 Jie Zhang <jie@codesourcery.com>
30327
30328 PR driver/47137
30329 * gcc.c (default_compilers[]): Set combinable field to 0
30330 for all assembly languages.
30331
30332 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
30333
30334 * config/mips/loongson3a.md: New file.
30335 * config/mips/mips.md: Include loongson3a.md.
30336 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
30337 TUNE_LOONGSON_3A.
30338
30339 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
30340
30341 PR middle-end/47017
30342 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
30343 instead of convert_memory_address_addr_space on the base expression.
30344
30345 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30346
30347 * config/spu/spu.c (spu_option_override): Update error text
30348 for bad -march= / -mtune= values.
30349
30350 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30351
30352 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
30353 if branch-hint optimization will be performed.
30354
30355 2011-01-03 Jakub Jelinek <jakub@redhat.com>
30356
30357 PR tree-optimization/47148
30358 * ipa-split.c (split_function): Convert arguments to
30359 DECL_ARG_TYPE if possible.
30360
30361 PR tree-optimization/47155
30362 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
30363 when computing uns.
30364
30365 PR rtl-optimization/47157
30366 * combine.c (try_combine): If undobuf.other_insn becomes
30367 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
30368 and set *new_direct_jump_p too.
30369
30370 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
30371
30372 PR tree-optimization/47021
30373 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
30374
30375 2011-01-03 Jakub Jelinek <jakub@redhat.com>
30376
30377 * gcc.c (process_command): Update copyright notice dates.
30378 * gcov.c (print_version): Likewise.
30379 * gcov-dump.c (print_version): Likewise.
30380 * mips-tfile.c (main): Likewise.
30381 * mips-tdump.c (main): Likewise.
30382
30383 2011-01-03 Martin Jambor <mjambor@suse.cz>
30384
30385 PR tree-optimization/46801
30386 * tree-sra.c (type_internals_preclude_sra_p): Check whether
30387 aggregate fields start at byte boundary instead of the bit-field flag.
30388
30389 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
30390
30391 PR driver/47137
30392 * gcc.c (main): Revert revision 168407.
30393
30394 2011-01-03 Martin Jambor <mjambor@suse.cz>
30395
30396 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
30397
30398 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30399
30400 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
30401 vector optab to expand vector/scalar shift, update gimple to vector.
30402
30403 2011-01-03 Martin Jambor <mjambor@suse.cz>
30404
30405 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
30406 a thunk.
30407
30408 2011-01-03 Martin Jambor <mjambor@suse.cz>
30409
30410 PR tree-optimization/46984
30411 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
30412 HOST_WIDE_INT.
30413 (cgraph_create_indirect_edge): Fixed line length.
30414 (cgraph_indirect_call_info): Declare.
30415 (cgraph_make_edge_direct) Update declaration.
30416 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
30417 (cgraph_create_indirect_edge): Use it.
30418 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
30419 callees.
30420 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
30421 the new thunk_delta representation.
30422 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
30423 HOST_WIDE_INT.
30424 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
30425 (ipa_read_indirect_edge_info): Likewise.
30426 * lto-cgraph.c (output_edge_opt_summary): New function.
30427 (output_node_opt_summary): Call it on all outgoing edges.
30428 (input_edge_opt_summary): New function.
30429 (input_node_opt_summary): Call it on all outgoing edges.
30430
30431 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
30432
30433 PR driver/47137
30434 * gcc.c (main): Don't check have_o when settting combine_inputs.
30435
30436 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
30437
30438 * regrename.c: Add general comment describing the pass.
30439 (struct du_head): Remove 'length' field.
30440 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
30441 (regrename_optimize): Do not sort chains. Rework comments, add others.
30442 Force renaming to the preferred class (if any) in the first pass and do
30443 not consider registers that belong to it in the second pass.
30444 (create_new_chain): Do not set 'length' field.
30445 (scan_rtx_reg): Likewise.
30446
30447 2011-01-02 Jakub Jelinek <jakub@redhat.com>
30448
30449 PR tree-optimization/47140
30450 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
30451 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
30452 to bit_value_binop.
30453
30454 PR rtl-optimization/47028
30455 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
30456 parm_birth_insn instead of at the beginning of first bb.
30457
30458 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
30459
30460 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
30461 Remove the word "see" before "@pxref".
30462 * doc/rtl.texi: Remove the word "see" before "@pxref".
30463
30464 2011-01-01 Jan Hubicka <jh@suse.cz>
30465
30466 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
30467 memory.
30468
30469 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
30470
30471 PR target/38662
30472 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
30473
30474 \f
30475 Copyright (C) 2011 Free Software Foundation, Inc.
30476
30477 Copying and distribution of this file, with or without modification,
30478 are permitted in any medium without royalty provided the copyright
30479 notice and this notice are preserved.