re PR tree-optimization/38884 (missed FRE with __real and __imag)
[gcc.git] / gcc / ChangeLog
1 2011-10-06 Richard Guenther <rguenther@suse.de>
2
3 PR tree-optimization/38884
4 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
5 reads from aggregate SSA names.
6
7 2011-10-05 Jakub Jelinek <jakub@redhat.com>
8
9 * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
10 argument, truncate it at the beginning instead of allocating there
11 and freeing at the end.
12 (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
13 pass its address to vect_pattern_recog_1.
14
15 2011-10-05 David S. Miller <davem@davemloft.net>
16
17 * config/sparc/sparc.opt (POPC): New option.
18 * doc/invoke.texi: Document it.
19 * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
20 default on Niagara-2 and later.
21 * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
22 * config/sparc/sparc.md (SIDI): New mode iterator.
23 (ffsdi2): Delete commented out pattern and comments.
24 (popcount<mode>2, clz<mode>2): New expanders.
25 (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
26 *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
27
28 2011-10-06 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
29
30 PR middle-end/50607
31 * c-tree.h (c_expr_t): New typedef for struct c_expr.
32 (C_EXPR_APPEND): New macro.
33 * c-parser.c (c_parser_get_builtin_args): Preserve
34 original_tree_code of c_expr structure.
35 (c_parser_postfix_expression): Adjust to the new function.
36
37 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
38
39 * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
40 if profiling after the prologue.
41
42 2011-10-05 Jakub Jelinek <jakub@redhat.com>
43
44 PR tree-optimization/50613
45 * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
46 operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
47 and if it is neither that not SSA_NAME, give up.
48
49 2011-10-05 Richard Henderson <rth@redhat.com>
50
51 * tree-vect-generic.c (vector_element): Never fail. Use
52 build_zero_cst. Tidy up type references.
53 (lower_vec_shuffle): Never fail. Mask shuffle indicies. Reduce
54 code duplication. Do update_stmt here ...
55 (expand_vector_operations_1): ... not here.
56
57 * config/i386/i386.c (ix86_expand_vshuffle): Never fail. Handle
58 TARGET_XOP. Fix pshufb constant vector creation. Reduce code
59 duplication. Handle V2DI without SSE4.1.
60 * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
61 * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
62
63 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
64
65 * config/i386/i386.c (distance_non_agu_define): Simplify calculation
66 of "found". Simplify return value calculation.
67 (distance_agu_use): Ditto.
68
69 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
70
71 PR bootstrap/50621
72 * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
73 if the function was not shrink-wrapped.
74 (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
75 to an insn.
76 * function.c (thread_prologue_and_epilogue_insns): Make sure the
77 shrink_wrapped flag is set even if there is no dump file.
78
79 2011-10-05 DJ Delorie <dj@redhat.com>
80 Nick Clifton <nickc@redhat.com>
81
82 * config/rx/rx.opt (mpid): Define.
83 * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
84 (MULTILIB_DIRNAMES): Add pid.
85 * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
86 (rx_num_interrupt_regs): New variable.
87 (rx_gp_base_regnum): New function. Returns the number of the
88 small data area register.
89 (rx_pid_base_regnum): New function. Returns the number of the pid
90 base register.
91 (rx_decl_for_addr): New function. Returns the symbolic part of a MEM.
92 (rx_pid_data_operand): New function. Returns whether an object is
93 in the position independent data area.
94 (rx_legitimize_address): New function. Puts undecided PID
95 objects in the PID data area.
96 (rx_is_legitimate_address): Add support for PID operands.
97 (rx_print_operand_address): Likewise.
98 (rx_print_operand): Likewise.
99 (rx_maybe_pidify_operand): New function. Determine if an operand
100 is suitable for PID addressing.
101 (rx_gen_move_template): Add PID support.
102 (rx_conditional_register_usage): Likewise.
103 (rx_option_override): Initialise rx_num_interrupt_regs.
104 (rx_is_legitimate_constant): Add support for PID constants.
105 (TARGET_LEGITIMIZE_ADDRESS): Define.
106 * config/rx/constraints.md (Rpid): Define.
107 (Rpda): Define.
108 * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
109 (tablejump): Add PID support.
110 (mov<>): Likewise.
111 (mov<>_internal): Likewise.
112 (addsi3): Convert to an expander. Add PID support.
113 (pid_addr): New pattern.
114 * config/rx/rx.h (CPP_SPEC): Define.
115 (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
116 (CASE_VECTOR_PC_RELATIVE): Define.
117 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
118 * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
119 * doc/invoke.texi (RX Options): Document -mpid command line option.
120
121 2011-10-05 Richard Guenther <rguenther@suse.de>
122
123 PR tree-optimization/38885
124 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
125 from constants.
126
127 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
128
129 * doc/invoke.texi (-fshrink-wrap): Document.
130 * opts.c (default_options_table): Add it.
131 * common.opt (fshrink-wrap): Add.
132 * function.c (emit_return_into_block): Remove useless declaration.
133 (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
134 requires_stack_frame_p, gen_return_pattern): New static functions.
135 (emit_return_into_block): New arg simple_p. All callers changed.
136 Use gen_return_pattern.
137 (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
138 * config/i386/i386.md (return): Expand into a simple_return.
139 (simple_return): New expander):
140 (simple_return_internal, simple_return_internal_long,
141 simple_return_pop_internal_long, simple_return_indirect_internal):
142 Renamed from return_internal, return_internal_long,
143 return_pop_internal_long and return_indirect_internal; changed to use
144 simple_return.
145 * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
146 simple returns.
147 (ix86_pad_returns): Likewise.
148 * function.h (struct rtl_data): Add member shrink_wrapped.
149 * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
150 are not jumps or sibcalls can't be compared.
151
152 2011-10-05 Richard Guenther <rguenther@suse.de>
153
154 * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
155 vector type.
156 (simplify_unary_expression): Handle BIT_FIELD_REFs.
157 (try_to_simplify): Handle BIT_FIELD_REFs.
158
159 2011-10-05 Georg-Johann Lay <avr@gjlay.de>
160
161 * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
162 * config/avr/avr.c (avr_out_addto_sp): New function.
163 (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
164 * config/avr/avr.md (adjust_len): Add "addto_sp".
165 (*movhi_sp): Remove insn.
166 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
167
168 2011-10-05 Richard Guenther <rguenther@suse.de>
169
170 * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
171 with an embedded expression valueize and fold that as well.
172 * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
173 results from gimple_fold_stmt_to_constant_1.
174
175 2011-10-05 Nick Clifton <nickc@redhat.com>
176
177 * config/rx/rx.md (tablejump): Add missing label.
178 (adddi3_internal): Mark operand 0 as early-clobbered.
179 (smaxsi3): Revert previous delta.
180 (adc_internal): Fix whitespace in generated asm.
181 (adc_flags): Likewise.
182
183 2011-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
184
185 * expmed.c (expand_mult_highpart_optab): Replace optab_handler
186 with the new widening_optab_handler.
187
188 2011-10-05 Richard Guenther <rguenther@suse.de>
189
190 PR tree-optimization/50609
191 * gimple-fold.c (fold_array_ctor_reference): Also handle
192 vector typed constructors.
193 (fold_ctor_reference): Dispatch to fold_array_ctor_reference
194 for vector typed constructors.
195
196 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
197
198 * config/i386/i386.c (ix86_emit_binop): New static function.
199 (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
200 instructions.
201 (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
202
203 2011-10-04 David S. Miller <davem@davemloft.net>
204
205 * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
206 UNSPEC_XMUL): New unspecs.
207 (muldi3_v8plus): Use output_v8plus_mult.
208 (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
209 New VIS 3.0 combiner patterns.
210 (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
211 fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
212 umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
213 xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
214 builtins patterns.
215 * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
216 (output_v8plus_mult): New function.
217 * config/sparc/sparc-protos.h: Declare it.
218 * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
219 __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
220 __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
221 * doc/extend.texi: Document new builtins.
222
223 2011-10-04 Richard Henderson <rth@redhat.com>
224
225 * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
226 Avoid save_expr unless two_arguments.
227
228 2011-10-04 Ozkan Sezer <sezeroz@gmail.com>
229
230 * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
231 * config/i386/mingw32.h (CPP_SPEC): Likewise.
232
233 2011-10-04 David S. Miller <davem@davemloft.net>
234
235 * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
236 under Linux.
237
238 2011-10-04 Jakub Jelinek <jakub@redhat.com>
239
240 PR tree-optimization/50604
241 * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
242 fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
243 last argument to memcpy has size_type_node type instead of ssizetype.
244 * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
245 instead of TREE_TYPE (len) as type for newlen.
246
247 PR tree-optimization/50522
248 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
249 TYPE_RESTRICT.
250 (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
251 unconditionally.
252
253 * fold-const.c (fold_unary_loc): Don't optimize
254 POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
255 casting the inner pointer if it isn't TYPE_RESTRICT.
256 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
257 casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
258
259 2011-10-04 Joseph Myers <joseph@codesourcery.com>
260
261 * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
262
263 2011-10-04 Jan Hubicka <jh@suse.cz>
264
265 * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
266 * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
267 * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
268 * lto-cgraph.c (order_base): New static var.
269 (lto_output_node): Stream in order.
270 (lto_output_varpool_node): Stream out order.
271 (input_node): Stream in order.
272 (input_varpool_node): Stream out order.
273 (input_cgraph_1): Initialize order base; update call of
274 lto_input_toplevel_asms.
275
276 2011-10-04 Georg-Johann Lay <avr@gjlay.de>
277
278 PR target/50566
279 * config/avr/avr-protos.h (avr_legitimize_reload_address): New
280 prototype.
281 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
282 from here...
283 * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
284 function. Log if avr_log.legitimize_reload_address.
285
286 2011-10-04 Eric Botcazou <ebotcazou@adacore.com>
287
288 * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
289
290 2011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
291
292 * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
293 variables. Fix second operand of DR. Swap inputs for sdiv_qrnnd.
294
295 2011-10-03 David S. Miller <davem@davemloft.net>
296
297 * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
298 GSR_REG an input operand to UNSPEC instead of a parallel USE.
299 (faligndata<V64I:mode>_vis): Likewise and use DI mode.
300 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
301 Reference GSR_REG in DI mode, simplify convoluted expressions by using
302 zero_extract.
303 (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
304
305 2011-10-03 Maxim Kuvyrkov <maxim@codesourcery.com>
306
307 * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
308
309 2011-10-03 Jakub Jelinek <jakub@redhat.com>
310 Ian Lance Taylor <iant@google.com>
311
312 * godump.c (go_output_typedef): Support printing enum values that
313 don't fit in a signed HOST_WIDE_INT.
314
315 2011-10-03 Anatoly Sokolov <aesok@post.ru>
316
317 * config/cris/cris.c (cris_output_addr_const_extra): Make static.
318 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
319 * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
320 * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
321
322 2011-10-03 Anatoly Sokolov <aesok@post.ru>
323
324 * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
325 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
326 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
327 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
328
329 2011-10-03 Steve Ellcey <sje@cup.hp.com>
330
331 PR target/49967
332 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
333 (gcc_cv_ld_static_option): Ditto.
334 (gcc_cv_ld_dynamic_option): Ditto.
335 * configure: Regenerate.
336
337 2011-10-03 David S. Miller <davem@davemloft.net>
338
339 * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
340 and 'si' patterns which describe the GSR changes explicitly in the
341 RTL using zero_extract.
342 (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
343
344 * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
345 GSR_REG in a USE, since it's now a true arg to the UNSPEC.
346
347 2011-10-03 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
348
349 * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
350 if given expression can be expanded by the target.
351 (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
352 using target vector instructions.
353 * optabs.h: New optab vshuffle.
354 (expand_vec_shuffle_expr_p): New prototype.
355 (expand_vec_shuffle_expr): New prototype.
356 (vshuffle_optab): New optab.
357 * genopinit.c: Adjust to support vecshuffle.
358 * c-tree.h (c_build_vec_shuffle_expr): New prototype.
359 * expr.c (expand_expr_real_2): Adjust.
360 * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
361 recognizing the cases of two and three arguments.
362 (convert_arguments) (build_binary_op)
363 (scalar_to_vector) (build_array_ref): Spurious whitespace.
364 * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
365 * tree.def: New tree code VEC_SHUFFLE_EXPR.
366 * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
367 * tree-vect-generic.c (vector_element): New function. Returns an
368 element of the vector at the given position.
369 (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
370 by the backend or expand an expression piecewise.
371 (expand_vector_operations_1): Adjusted.
372 (gate_expand_vector_operations_noop): New gate function.
373 * Makefile.in (tree-vect-generic.o): New include.
374 * gimple.c (get_gimple_rhs_num_ops): Adjust.
375 * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
376 * passes.c: Move veclower down.
377 * tree-pretty-print.c (dump_generic_node): Recognize
378 VEC_SHUFFLE_EXPR as valid expression.
379 * c-parser.c (c_parser_get_builtin_args): Helper function for the
380 builtins with variable number of arguments.
381 (c_parser_postfix_expression): Use a new helper function for
382 RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
383 * tree-ssa-operands: Adjust.
384 * c-family/c-common.c: New __builtin_shuffle keyword.
385 * c-family/c-common.h: New __builtin_shuffle keyword.
386 * gcc/doc/extend.texi: Adjust.
387
388 * gcc/config/i386/sse.md: (sseshuffint) New mode_attr. Correspondence
389 between the vector and the type of the mask when shuffling.
390 (vecshuffle<mode>): New expansion.
391 * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
392 * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
393 (ix86_vectorize_builtin_vec_perm_ok): Adjust.
394
395 2011-10-03 Jakub Jelinek <jakub@redhat.com>
396
397 PR tree-optimization/50587
398 * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
399 arg0 is not a SSA_NAME.
400
401 2011-10-03 Richard Sandiford <rdsandiford@googlemail.com>
402
403 * ipa-inline-analysis.c (MAX_TIME): Update comment.
404
405 2011-10-02 Richard Henderson <rth@redhat.com>
406 David S. Miller <davem@davemloft.net>
407
408 * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
409 conditional insn type setting, we always emit a shift.
410 (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
411 (*lshrsi3_extend): Rename to *lshrsi3_extend1.
412 * config/sparc/predicates.md (const_one_operand): Delete.
413
414 2011-10-02 Gerald Pfeifer <gerald@pfeifer.com>
415
416 * invoke.texi (SPARC Options): Refer to GNU/Linux.
417
418 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
419
420 * config/mips/mips.c (mips_frame_barrier): New function.
421 (mips_expand_prologue): Call it after allocating stack space.
422 (mips_deallocate_stack): New function.
423 (mips_expand_epilogue): Call mips_frame_barrier and
424 mips_deallocate_stack.
425
426 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
427
428 PR target/49696
429 * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
430 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
431 (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
432
433 2011-10-02 Jan Hubicka <jh@suse.cz>
434
435 * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
436
437 * cgraphunit.c (ipa_passes): Remove unrechable nodes.
438 * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
439 * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
440 functions are reachable when address is taken.
441 * tree-sra.c (modify_function): Free dominance info.
442
443 2011-10-02 Jan Hubicka <jh@suse.cz>
444
445 * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
446
447 * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
448 (reset_inline_summary): New function.
449 (compute_inline_parameters, inline_node_removal_hook,
450 inline_edge_removal_hook): Use it.
451 (inline_free_summary): Reset holders correctly.
452 (inline_generate_summary): Free summary before computing it.
453
454 2011-10-02 Paolo Carlini <paolo.carlini@oracle.com>
455
456 PR preprocessor/36819
457 * incpath.c (merge_include_chains): Call free_path on
458 heads[QUOTE] and tails[QUOTE].
459
460 2011-10-02 Jan Hubicka <jh@suse.cz>
461
462 PR lto/47247
463 * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
464 when resolution is already availbale from plugin.
465 (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
466 * cgraph.c (ld_plugin_symbol_resolution): Add
467 prevailing_def_ironly_exp.
468 * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
469 * ipa.c (varpool_externally_visible_p): IRONLY variables are never
470 externally visible.
471 * varasm.c (resolution_to_local_definition_p): Add
472 LDPR_PREVAILING_DEF_IRONLY_EXP.
473 (resolution_local_p): Likewise.
474
475 2011-10-01 David S. Miller <davem@davemloft.net>
476
477 * config/sparc/sparc.opt (VIS3): New option.
478 * doc/invoke.texi: Document it.
479 * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
480 not capable of such instructions.
481 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
482 to 0x300 when TARGET_VIS3.
483 * config/sparc/sparc-modes.def: Create 16-byte vector modes.
484 * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
485 UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
486 (V64N8, VASS): New mode iterators.
487 (vis3_shift, vis3_addsub_ss): New code iterators.
488 (vbits, vconstr): New mode attributes.
489 (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
490 (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
491 fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
492 fmean16_vis, fpadd64_vis, fpsub64_vis,
493 <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
494 VIS 3.0 instruction patterns.
495 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
496 default when targetting capable cpus. TARGET_VIS3 implies
497 TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
498 (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
499 (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
500 is ignored.
501 * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
502 __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
503 __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
504 __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
505 __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
506 __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
507 __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
508 __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
509 * doc/extend.texi: Document new VIS 3.0 builtins.
510
511 2011-10-01 Eric Botcazou <ebotcazou@adacore.com>
512
513 * ira-color.c (assign_hard_reg): Fix typo.
514
515 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
516
517 * doc/extend.texi: Add missing ','.
518
519 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
520
521 * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
522 Enable -fmodulo-sched at -O2 and above.
523 * config/c6x/c6x.md (doloop_end): New expander.
524 (mvilc, sploop, spkernel, loop_end): New patterns.
525 (loop_end with memory destination splitter): New.
526 * config/c6x/c6x.c: Include "hw-doloop.h".
527 (enum unitreqs): New.
528 (unit_req_table): New typedef.
529 (unit_reqs): New static variable.
530 (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
531 res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
532 hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
533 hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
534 (struct c6x_sched_context): New member last_scheduled_iter0.
535 (init_sched_state): Initialize it.
536 (c6x_variable_issue): Update it.
537 (sploop_max_uid_iter0): New static variable.
538 (c6x_sched_reorder_1): Be careful about issuing sploop.
539 (c6x_reorg): Call c6x_hwlooops before the final schedule.
540
541 2011-09-30 Georg-Johann Lay <avr@gjlay.de>
542
543 PR target/50566
544 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
545 * config/avr/avr.c (avr_address_cost): Use it.
546 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
547 (avr_log_vadump): Unknown %-codes finish printing.
548
549 2011-09-30 Jakub Jelinek <jakub@redhat.com>
550
551 PR inline-asm/50571
552 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
553 input constraints allow mem and not reg, pass true instead of
554 false as second argument to maybe_fold_reference.
555
556 PR tree-optimization/46309
557 * fold-const.c (make_range, merge_ranges): Remove prototypes.
558 (make_range_step): New function.
559 (make_range): Use it.
560 * tree.h (make_range_step): New prototypes.
561 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
562 * tree-ssa-reassoc.c: Include diagnostic-core.h.
563 (struct range_entry): New type.
564 (init_range_entry, range_entry_cmp, update_range_test,
565 optimize_range_tests): New functions.
566 (reassociate_bb): Call optimize_range_tests.
567
568 2011-09-30 Jakub Jelinek <jakub@redhat.com>
569 Richard Guenther <rguenther@suse.de>
570
571 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
572 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
573 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
574 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
575 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
576 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
577
578 2011-09-30 Jan Beulich <jbeulich@suse.com>
579
580 * lto-cgraph.c (output_cgraph): Remove processing of
581 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
582 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
583 lto_input_toplevel_asms() instead.
584 * lto-section-in.c (lto_section_name): Add "asm" entry.
585 * lto-streamer-in.c (lto_input_toplevel_asms): New.
586 * lto-streamer-out.c (lto_output_toplevel_asms): New.
587 * lto-streamer.h (LTO_minor_version): Bump.
588 (enum lto_section_type): Add LTO_section_asm.
589 (struct lto_asm_header): New.
590 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
591 * tree-streamer.h (streamer_write_string_cst): Declare.
592 * tree-streamer-out.c (write_string_cst): Rename to
593 streamer_write_string_cst and make global. Handle incoming string
594 being NULL.
595 (streamer_write_tree_header): Adjust call to renamed function.
596
597 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
598
599 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
600 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
601 modulo_last_stage): New static variables.
602 (set_modulo_params, discard_delay_pairs_above): New functions.
603 (struct delay_pair): New member stages.
604 (htab_i2_traverse, htab_i1_traverse): New static functions.
605 (record_delay_slot_pair): New arg stages. All callers changed.
606 Record it.
607 (pair_delay): Take stages into account.
608 (add_delay_dependencies): Don't do so for stage pairs.
609 (struct sched_block_state): New member modulo_epilogue.
610 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
611 (unschedule_insns_until): Decrease modulo_insns_scheduled.
612 Set HARD_DEP without using or.
613 (resolve_dependencies): New static function.
614 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
615 If it is true, allow only insns with INSN_EXACT_TICK set.
616 (schedule_block): Return bool, always true for normal scheduling,
617 true or false depending on modulo scheduling success otherwise.
618 Add bookkeeping for modulo scheduling, and call resolve_dependencies
619 on everything left over after a modulo schedule.
620 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
621 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
622 declarations.
623 (set_modulo_params, discard_delay_pairs_above): Declare.
624 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
625 * doc/invoke.texi (--param): Document it.
626
627 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
628 New arg modulo_scheduling. All callers changed. Move note handling
629 code here from schedule_ebbs.
630 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
631 out of schedule_ebbs.
632 (schedule_ebbs): Call them. Remove note handling code moved to
633 schedule_ebb.
634 * sched-int.h (schedule_ebb, schedule_ebbs_init,
635 schedule_ebbs_finish): Declare.
636
637 2011-09-30 Richard Guenther <rguenther@suse.de>
638
639 PR middle-end/50574
640 * tree-cfg.c (verify_gimple_comparison): Compare component
641 mode sizes for vector comparisons.
642
643 2011-09-30 Revital Eres <revital.eres@linaro.org>
644
645 * ddg.c (autoinc_var_is_used_p): New function.
646 (create_ddg_dep_from_intra_loop_link,
647 add_cross_iteration_register_deps): Call it.
648 * ddg.h (autoinc_var_is_used_p): Declare.
649 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
650 (sms_schedule): Handle instructions with REG_INC.
651
652 2011-09-30 Revital Eres <revital.eres@linaro.org>
653
654 * modulo-sched.c (generate_reg_moves): Skip instructions that
655 do not set a register and verify no regmoves are created for
656 !single_set instructions.
657
658 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
659
660 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
661 insns.
662
663 2011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
664
665 PR target/50099
666 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
667 (qhs_zextenddi_op): New.
668 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
669 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
670 Distinguish between ARM and Thumb2 states.
671
672 2011-09-30 David S. Miller <davem@davemloft.net>
673
674 * config/sparc/sparc.opt (VIS2): New option.
675 * doc/invoke.texi: Document it.
676 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
677 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
678 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
679 (define_attr type): New insn type 'edgen'.
680 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
681 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
682 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
683 patterns.
684 * niagara.md: Handle edgen.
685 * niagara2.md: Likewise.
686 * ultra1_2.md: Likewise.
687 * ultra3.md: Likewise.
688 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
689 to 0x200 when TARGET_VIS2.
690 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
691 default when targetting capable cpus. TARGET_VIS2 implies
692 TARGET_VIS, clear and it when TARGET_FPU is disabled.
693 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
694 (sparc_expand_builtin): Fix predicate indexing when builtin returns
695 void.
696 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
697 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
698 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
699 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
700 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
701 * doc/extend.texi: Document new VIS 2.0 builtins.
702
703 2011-09-29 Nick Clifton <nickc@redhat.com>
704 Bernd Schmidt <bernds@codesourcery.com>
705
706 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
707 * config/frv/frvend.c: Likewise.
708 * config/frv/frv.c (frv_function_prologue): Move misplaced
709 CALL_ARG_LOCATION notes back to their proper locations.
710
711 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
712
713 PR target/50566
714 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
715 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
716 from avr_rtx_costs.
717 (avr_legitimate_address_p): Use avr_edump to print log information
718 filtered by avr_log.
719 (extra_constraint_Q): Ditto.
720 (avr_legitimize_address): Ditto.
721 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
722 (final_prescan_insn): Use avr_log.rtx_costs as filter.
723
724 2011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
725
726 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
727 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
728 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
729 NEON vector and structure modes to be tied.
730
731 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
732
733 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
734 forward declaration.
735 (remove_duplicate_close_phi): Detect and repair creation of
736 duplicate close-phis for a containing loop.
737
738 2011-09-27 Andi Kleen <ak@linux.intel.com>
739
740 * gcc.c (get_local_tick). Rename to get_random_number. Read from
741 /dev/urandom. Add getpid call.
742 (compare_debug_dump_opt_spec_function): Drop getpid call.
743
744 2011-09-26 Andi Kleen <ak@linux.intel.com>
745
746 * toplev.c (init_local_tick): Try reading random seed
747 from /dev/urandom.
748
749 2011-09-26 Andi Kleen <ak@linux.intel.com>
750
751 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
752 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
753 Handle numerical random seed.
754 * lto-streamer.h (lto_file_decl_data): Change id to
755 unsigned HOST_WIDE_INT.
756 * toplev.c (random_seed): Add.
757 (init_random_seed): Change for numerical random seed.
758 (get_random_seed): Return as HOST_WIDE_INT.
759 (set_random_seed): Crc32 existing string.
760 * toplev.h (get_random_seed): Change to numercal return.
761 * tree.c (get_file_function_name): Remove CRC. Handle
762 numerical random seed.
763
764 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
765
766 PR target/50566
767 * config.gcc (extra_objs): Add avr-log.o for $target in:
768 avr-*-rtems*, avr-*-*.
769 * config/avr/t-avr (avr-log.o): New rule to compile...
770 * config/avr/avr-log.c: ...this new file.
771 * config/avr/avr.opt (mlog=): New option.
772 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
773 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
774 (avr_log_set_avr_log): New prototype.
775 (avr_log_t): New typedef.
776 (avr_log): New declaration.
777 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
778
779 2011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
780
781 * expr.c (do_store_flag): Expand vector comparison by
782 building an appropriate VEC_COND_EXPR.
783 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
784 (c_objc_common_truthvalue_conversion): Adjust.
785 * tree-vect-generic.c (do_compare): Helper function.
786 (expand_vector_comparison): Check if hardware supports
787 vector comparison of the given type or expand vector piecewise.
788 (expand_vector_operation): Treat comparison as binary
789 operation of vector type.
790 (expand_vector_operations_1): Adjust.
791
792 2011-09-29 Richard Guenther <rguenther@suse.de>
793
794 * tree.c (build_opaque_vector_type): Make opaque vectors
795 variant types of the corresponding non-opaque type. Make
796 sure to share opaque vector types properly.
797
798 2011-09-29 David S. Miller <davem@davemloft.net>
799
800 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
801 UNSPEC_ARRAY32): New unspec.
802 (define_attr type): New type 'array'.
803 (array{8,16,32}<P:mode>_vis): New patterns.
804 * config/sparc/ultra1_2.md: Add reservations for 'array'.
805 * config/sparc/ultra3.md: Likewise.
806 * config/sparc/niagara.md: Likewise.
807 * config/sparc/niagara2.md: Likewise.
808 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
809 array builtins.
810 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
811 __vis_array32): New.
812 * doc/extend.texi: Document new VIS builtins.
813
814 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
815 (VIS pixel-compare insn): Just use <gcond:name>.
816
817 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
818 code iterator used, so just use <code>. There are two mode iterators
819 so explicitly use <GCM:gcm_name>.
820
821 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
822
823 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
824 Darwin >= 9.
825
826 2011-09-28 David S. Miller <davem@davemloft.net>
827
828 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
829 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
830 (UNSPEC_FCMP): New unspec.
831 (gcond): New code iterator.
832 (gcond_name): New code attr.
833 (GCM): New mode iterator.
834 (gcm_name): New mode attr.
835 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
836
837 2011-09-28 Oleg Endo <oleg.endo@t-online.de>
838
839 PR target/49486
840 * config/sh/sh.md (negdi2): Move expansion into split to
841 allow more combination options. Add T_REG clobber.
842 (abssi2): New expander.
843 (*negdi2, *abssi2, *negabssi2): New insns.
844 (cneg): Change from insn to insn_and_split. Rename to
845 negsi_cond. Add alternative for non-SH4.
846
847 2011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
848
849 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
850 (neon_move_hi_quad_<mode>): Likewise.
851 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
852
853 2011-09-28 Nick Clifton <nickc@redhat.com>
854
855 * config/rx/predicates.md (rx_minmax_operand): New predicate.
856 Accepts immediates and a restricted subset of MEMs.
857 * config/rx/rx.md (int_modes): New iterator.
858 (smaxsi3, sminsi3): Delete and replace with...
859 (smax<int_mode>3, smin<int_mode>3): New patterns.
860 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
861
862 2011-09-28 Richard Guenther <rguenther@suse.de>
863
864 PR middle-end/50460
865 * fold-const.c (try_move_mult_to_index): Handle &a.array the
866 same as &a.array[0].
867
868 2011-09-28 Kai Tietz <ktietz@redhat.com>
869
870 * configure.ac: Add test for new section attribute
871 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
872 * config.in: Regenerated.
873 * configure: Regenerated.
874 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
875 new section flag "e" for excluded sections, if supported.
876 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
877
878 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
879
880 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
881 throughout file.
882
883 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
884
885 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
886 throughout file.
887
888 2011-09-27 Sriraman Tallam <tmsriram@google.com>
889
890 * output.h (SECTION_EXCLUDE): New macro.
891 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
892
893 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
894
895 * fwprop.c (forward_propagate_and_simplify): After checking
896 reg/subreg combinations, check whether the modes are the same.
897
898 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
899 Richard Sandiford <rdsandiford@googlemail.com>
900
901 * config/mips/mips.c (mips_add_cfa_restore): New function.
902 (mips16e_save_restore_reg): Use it.
903 (mips_restore_reg): Likewise. Split double FPRs for
904 REG_CFA_RESTORE notes.
905
906 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
907
908 PR middle-end/50386
909 PR middle-end/50326
910 * tree-sra.c (build_ref_for_model): Use the type of the field as
911 the type of the COMPONENT_REF.
912
913 2011-09-27 Jeff Law <law@redhat.com>
914
915 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
916 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
917 (find_if_case_1): Use the probability of the THEN clause when
918 determining if speculation is profitable.
919 (find_if_case_2): Similarly for the ELSE clause.
920
921 2011-09-27 Jakub Jelinek <jakub@redhat.com>
922
923 * common.opt: Add -foptimize-strlen option.
924 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
925 (tree-sssa-strlen.o): Add dependencies.
926 * opts.c (default_options_table): Enable -foptimize-strlen
927 by default at -O2 if not -Os.
928 * passes.c (init_optimization_passes): Add pass_strlen
929 after pass_object_sizes.
930 * timevar.def (TV_TREE_STRLEN): New timevar.
931 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
932 * tree-pass.h (pass_strlen): Declare.
933 * tree-ssa-strlen.c: New file.
934 * c-decl.c (merge_decls): If compatible stpcpy prototype
935 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
936
937 2011-09-27 Tom de Vries <tom@codesourcery.com>
938
939 PR middle-end/43864
940 * tree-ssa-tail-merge.c: New file.
941 (struct same_succ_def): Define.
942 (same_succ, const_same_succ): New typedef.
943 (struct bb_cluster_def): Define.
944 (bb_cluster, const_bb_cluster): New typedef.
945 (struct aux_bb_info): Define.
946 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
947 (gvn_uses_equal): New function.
948 (same_succ_print, same_succ_print_traverse, update_dep_bb)
949 (stmt_update_dep_bb, local_def, same_succ_hash)
950 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
951 (same_succ_reset): New function.
952 (same_succ_htab, same_succ_edge_flags)
953 (deleted_bbs, deleted_bb_preds): New var.
954 (debug_same_succ): New function.
955 (worklist): New var.
956 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
957 (init_worklist, delete_worklist, delete_basic_block_same_succ)
958 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
959 (print_cluster, debug_cluster, update_rep_bb)
960 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
961 (all_clusters): New var.
962 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
963 (merge_clusters, set_cluster): New function.
964 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
965 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
966 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
967 (find_clusters_1, find_clusters): New function.
968 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
969 (update_bbs): New var.
970 (apply_clusters): New function.
971 (update_debug_stmt, update_debug_stmts): New function.
972 (tail_merge_optimize): New function.
973 tree-pass.h (tail_merge_optimize): Declare.
974 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
975 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
976 (tree-ssa-tail-merge.o): New rule.
977 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
978 default at OPT_LEVELS_2_PLUS.
979 * tree-ssa-sccvn.c (vn_valueize): Move to ...
980 * tree-ssa-sccvn.h (vn_valueize): Here.
981 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
982 * common.opt (ftree-tail-merge): New switch.
983 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
984 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
985 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
986 (-ftree-tail-merge, max-tail-merge-comparisons)
987 (max-tail-merge-iterations): New item.
988
989 2011-09-27 Jan Hubicka <jh@suse.cz>
990
991 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
992
993 2011-09-27 Jan Hubicka <jh@suse.cz>
994
995 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
996 parameters passed by reference; handle loads from non-SSA scalars
997 and update comments.
998
999 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
1000
1001 PR rtl-optimization/50249
1002 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
1003 instead of opnum and type. All callers changed. Remove useless
1004 declaration.
1005 Search forward for other reloads of the same type for the same operand
1006 using the same register; if any are found, return false.
1007 (reload_regs_reach_end_p): Same argument changes; all callers changed.
1008
1009 2011-09-27 Andi Kleen <ak@linux.intel.com>
1010 Jan Hubicka <jh@suse.cz>
1011
1012 * doc/invoke.texi (ffat-lto-objects): Document.
1013 * toplev.c (compile_file): Do not output assembly when doing slim lto;
1014 Output __gnu_slim_lto when doing slim lto.
1015 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
1016 (cgraph_optimize): Return early when doing slim lto.
1017 * opts.c (finish_options): Complain about lack of linker plugin
1018 when doing slim lto.
1019 * common.opt (ffat-lto-objects): New.
1020
1021 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
1022
1023 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
1024 between signed and unsigned.
1025
1026 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
1027
1028 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
1029 vectorization.
1030 (vectorizable_type_promotion): Likewise.
1031 (vect_analyze_stmt): Call vectorizable_type_demotion and
1032 vectorizable_type_promotion for basic blocks.
1033 (supportable_widening_operation): Don't assume loop vectorization.
1034 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
1035 basic blocks. Update vectorization factor for basic block
1036 vectorization.
1037 (vect_analyze_slp_instance): Allow multiple types for basic block
1038 vectorization. Recheck unrolling factor after construction of SLP
1039 instance.
1040
1041 2011-09-27 Richard Guenther <rguenther@suse.de>
1042
1043 * tree-object-size.c (compute_object_sizes): Fix dumping of
1044 folded statement.
1045
1046 2011-09-27 Richard Guenther <rguenther@suse.de>
1047
1048 PR tree-optimization/50363
1049 * tree-ssa-pre.c (create_expression_by_pieces): Handle
1050 pointer conversions in POINTER_PLUS_EXPRs properly.
1051
1052 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
1053
1054 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
1055 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
1056 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
1057 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
1058 that produce subreg moves. Define using VQX iterators.
1059
1060 2011-09-27 Georg-Johann Lay <avr@gjlay.de>
1061
1062 * config/avr/avr.md (ashrqi3): Split alternative "n"
1063 into its remaining parts C03, C04, C05, C06, C07 and describe
1064 impact in CC by attribute "cc" appropriately.
1065 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
1066 by digging RTX.
1067
1068 2011-09-27 Jakub Jelinek <jakub@redhat.com>
1069
1070 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
1071 from 3 x MAX_MACHINE_MODE.
1072 (CONSTM1_RTX): Define.
1073 * emit-rtl.c (const_tiny_rtx): Change into array of
1074 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
1075 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
1076 CONSTM1_RTX.
1077 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
1078 MODE_VECTOR_INT modes.
1079 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
1080 Optimize if one operand is CONSTM1_RTX.
1081 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
1082 into mask | x.
1083
1084 2011-09-26 David S. Miller <davem@davemloft.net>
1085
1086 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
1087 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
1088 * config/sparc/visintrin.h: Update edge and pixel-compare
1089 intrinsics to return 'long' instead of 'int'.
1090 * doc/extend.texi: Update documentation to match.
1091 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
1092 flat, allow any instruction. Otherwise, when V9 allow parallels
1093 which consist only of sets to registers outside of %o0 to %o5.
1094 (sparc_vis_init_builtins): Update VIS builtin types for edge
1095 and pixel-compare.
1096
1097 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
1098 is enabled, mark %gsr as global.
1099 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
1100 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
1101
1102 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
1103 which will now define __VIS and __VIS__ when -mvis is enabled.
1104 * config/sparc/t-sparc: Likewise.
1105 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
1106 and add t-sparc to tmake_file for all sparc targets.
1107 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
1108 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
1109
1110 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
1111 builtins for VIS vector addition and subtraction.
1112 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
1113 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
1114 __vis_fpsub32, __vis_fpsub32s): New.
1115 * doc/extend.texi: Document new VIS intrinsics.
1116
1117 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
1118
1119 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
1120 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
1121 EQ/NE comparisons against +/-1 in the case of unused-after,
1122 non-ld-regs target.
1123
1124 2011-09-26 Jakub Jelinek <jakub@redhat.com>
1125
1126 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
1127 gctx.into_ssa after push_gimplify_context.
1128
1129 * gimple.c (gimple_build_call_valist): New function.
1130 * gimple.h (gimple_build_call_valist): New prototype.
1131 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
1132 (update_gimple_call): Likewise.
1133 (update_call_from_tree): Use finish_update_gimple_call.
1134 * tree-ssa-propagate.h (update_gimple_call): New prototype.
1135
1136 2011-09-26 Richard Guenther <rguenther@suse.de>
1137
1138 PR tree-optimization/50472
1139 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
1140 volatile references.
1141
1142 2011-09-26 Bingfeng Mei <bmei@broadcom.com>
1143
1144 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
1145 * target.def: (addr_space_subset_p): Likewise.
1146
1147 2011-09-26 Tom de Vries <tom@codesourcery.com>
1148
1149 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
1150 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
1151 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
1152 of new var.
1153
1154 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
1155
1156 PR target/50465
1157 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
1158 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
1159 output_reload_insisf.
1160 (adjust_len): Set default to "no".
1161 Remove alternative "yes". Add alternatives: "mov8", "mov16",
1162 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
1163 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
1164 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
1165 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
1166 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
1167 *lshrsi3_const): Set attribute "adjust_len".
1168 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
1169 (output_movsisf): Don't pass insn to output_reload_insisf.
1170 (adjust_insn_length): Handle new alternatives to adjust_len.
1171 Remove handling of ADJUST_LEN_YES. Clean-up code.
1172
1173 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
1174
1175 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
1176 may_trap_p to detect loads that may trap of fault.
1177
1178 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
1179
1180 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
1181 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
1182 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
1183 prototype.
1184 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
1185 * config/avr/avr.c: Rename output_reload_insisf_1 to
1186 output_reload_in_const.
1187 (avr_popcount_each_byte): Handle SFmode, too.
1188 (output_reload_in_const): Change so it can handle HI loads, too.
1189 Use avr_popcount_each_byte to work out if scratch register must be
1190 created on the fly.
1191 (output_reload_inhi): Rewrite using output_reload_in_const and...
1192 (output_movhi): ...use it to print constants' loads.
1193 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
1194
1195 2011-09-25 David S. Miller <davem@davemloft.net>
1196
1197 * config/sparc/constraints.md (C, P, Z): New constraints for
1198 const_doube, const_int, and const_vector "all ones" values.
1199 Make unused constraint letters comment match reality.
1200 * config/sparc/predicates.md (const_all_ones_operand,
1201 register_or_zero_or_all_ones_operand): New predicates.
1202 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
1203 as well as zero constants when VIS.
1204 (sparc_legitimate_constant_p): Likewise.
1205 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
1206 (movsf_insn): Likewise
1207 (movdi_insn_sp64): Add fone alternative.
1208 (movdf_insn_sp32_v9): Likewise.
1209 (movdf_insn_sp64): Likewise.
1210
1211 * configure.ac: Add feature check to make sure the assembler
1212 supports the FMAF, HPC, and VIS 3.0 instructions found on
1213 Niagara-3 and later cpus.
1214 * configure: Rebuild.
1215 * config.in: Likewise.
1216 * config/sparc/sparc.opt: New option '-mfmaf'.
1217 * config/sparc/sparc.md: Add float fused multiply-add patterns.
1218 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
1219 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
1220 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
1221 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
1222 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
1223 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
1224 disabled.
1225 (sparc_rtx_costs): Handle 'FMA'.
1226 * doc/invoke.texi: Document -mfmaf.
1227
1228 2011-09-25 Jakub Jelinek <jakub@redhat.com>
1229
1230 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
1231 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
1232 DECL_BY_REFERENCE parameters.
1233
1234 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
1235
1236 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
1237 if there is no outgoing edge.
1238
1239 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
1240 integral types.
1241
1242 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
1243
1244 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
1245 of vect_analyze_bb here.
1246 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
1247
1248 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
1249
1250 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
1251 Allow not simple iv if analyzing basic block.
1252 (create_data_ref): Update call to dr_analyze_innermost.
1253 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
1254 * tree-loop-distribution.c (generate_memset_zero): Likewise.
1255 * tree-predcom.c (find_looparound_phi): Likewise.
1256 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
1257
1258 2011-09-24 David S. Miller <davem@davemloft.net>
1259
1260 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
1261 (SPARC_GSR_REG): Define.
1262 (FIXED_REGISTERS): Mark GSR as fixed.
1263 (CALL_USED_REGISTERS): Mark GSR as call used.
1264 (HARD_REGNO_NREGS): GSR is always 1 register.
1265 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
1266 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
1267 (REGISTER_NAMES): Add "%gsr".
1268 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
1269 (UNSPEC_WRGSR): New unspec.
1270 (GSR_REG): New constant.
1271 (type): Add new insn type 'gsr'.
1272 (fpack16_vis, fpackfix_vis, fpack32_vis,
1273 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
1274 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
1275 rdgsr_v8plus): New expanders and insns.
1276 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
1277 using patterns which show that this is a plus in addition to a
1278 modification of GSR_REG, instead of an unspec.
1279 * config/sparc/ultra1_2.md: Handle 'gsr'.
1280 * config/sparc/ultra3.md: Likewise.
1281 * config/sparc/niagara.md: Likewise.
1282 * config/sparc/niagara2.md: Likewise.
1283 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
1284 end of table.
1285 (sparc_option_override): Make -mvis imply -mv8plus.
1286 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
1287 for %gsr.
1288 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
1289 __builtin_vis_read_gsr.
1290 (sparc_expand_buildin): Handle builtins that take one argument and
1291 return void.
1292 (sparc_fold_builtin): Never fold writes to %gsr.
1293 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
1294 * doc/extend.texi: Document new VIS intrinsics.
1295
1296 2011-09-23 Jan Hubicka <jh@suse.cz>
1297
1298 * ipa-inline-transform.c (inline_call): Add comment.
1299 * ipa-inline.h (inline_param_summary): New structure and vector.
1300 (struct inline_edge_summary): Add param field.
1301 * ipa-inline-analysis.c (CHANGED): New constant.
1302 (add_clause): Handle CHANGED and NOT_CONSTANT.
1303 (predicate_probability): New function.
1304 (dump_condition): Dump CHANGED predicate.
1305 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
1306 of unknown function wide invariant.
1307 (evaluate_conditions_for_edge): Handle change probabilities.
1308 (inline_edge_duplication_hook): Copy param summaries.
1309 (inline_edge_removal_hook): Free param summaries.
1310 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
1311 sizes; dump param summaries.
1312 (will_be_nonconstant_predicate): Use CHANGED predicate.
1313 (record_modified_bb_info): New structure.
1314 (record_modified): New function.
1315 (param_change_prob): New function.
1316 (estimate_function_body_sizes): Compute param summaries.
1317 (estimate_edge_size_and_time): Add probability argument.
1318 (estimate_node_size_and_time): Add inline_param_summary argument;
1319 handle predicate probabilities.
1320 (remap_predicate): Fix formating.
1321 (remap_edge_change_prob): New function.
1322 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
1323 (remap_edge_predicates): ... this one.
1324 (inline_merge_summary): Remap edge summaries; handle predicate
1325 probabilities; remove param summaries after we are done.
1326 (do_estimate_edge_time): Update.
1327 (do_estimate_edge_growth): Update.
1328 (read_inline_edge_summary): Read param info.
1329 (inline_read_summary): Fix formating.
1330 (write_inline_edge_summary): Write param summaries.
1331
1332 2011-09-23 Jakub Jelinek <jakub@redhat.com>
1333
1334 * config/i386/i386.c (ix86_print_operand): Handle %~.
1335 (ix86_print_operand_punct_valid_p): Return true also for '~'.
1336 * config/i386/sse.md (i128): New mode_attr.
1337 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
1338 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
1339 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
1340 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
1341 patterns, use "<sseinsnmode>" for "mode" attribute.
1342 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
1343 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
1344 %~128 in the patterns, use "OI" for "mode" attribute.
1345
1346 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
1347
1348 PR target/50447
1349 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
1350 "tstsi", "compare".
1351 (*cmpqi_sign_extend): Use s8_operand.
1352 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
1353 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
1354 prototypes.
1355 (out_tsthi, out_tstsi): Remove prototypes.
1356 (avr_out_tsthi, avr_out_tstsi): New prototypes.
1357 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
1358 (avr_asm_len): Negative length now sets *plen to -length.
1359 (compare_sign_p): Return bool instead of int.
1360 (compare_diff_p, compare_eq_p): Ditto and make static.
1361 (avr_out_tsthi): New function.
1362 (avr_out_tstsi): New function.
1363 (avr_out_compare): New function.
1364 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
1365 ADJUST_LEN_COMPARE.
1366
1367 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
1368
1369 PR target/50447
1370 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
1371 (addsi3): Rewrite using QI scratch register. Adjust text
1372 peepholes using plus:SI.
1373 (*addsi3_zero_extend.hi): New insn.
1374 (*subsi3_zero_extend.hi): New insn.
1375 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
1376 (*subsi3_zero_extend): Ditto.
1377 (subsi3): Change predicate #2 to register_operand.
1378 * config/avr/avr-protos.h (avr_out_plus): New prototype.
1379 (avr_out_plus_1): New static function.
1380 (avr_out_plus): New function.
1381 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
1382
1383 2011-09-23 Jakub Jelinek <jakub@redhat.com>
1384
1385 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
1386 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
1387
1388 2011-09-23 Ian Lance Taylor <iant@google.com>
1389
1390 * godump.c (go_define): Treat a single character in single quotes,
1391 or a string, as an operand.
1392
1393 2011-09-23 Martin Jambor <mjambor@suse.cz>
1394
1395 * ipa-prop.h (jump_func_type): Updated comments.
1396 (ipa_known_type_data): New type.
1397 (ipa_jump_func): Use it to describe known type jump functions.
1398 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
1399 reflect the new known type jump function contents.
1400 (compute_known_type_jump_func): Likewise.
1401 (combine_known_type_and_ancestor_jfs): Likewise.
1402 (try_make_edge_direct_virtual_call): Likewise.
1403 (ipa_write_jump_function): Likewise.
1404 (ipa_read_jump_function): Likewise.
1405 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
1406 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
1407 (propagate_accross_jump_function): Likewise.
1408
1409 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
1410
1411 PR target/50446
1412 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
1413 (rotlqi3_4): Turn insn into expander.
1414 (*rotlqi3): New insn.
1415 (rotlhi3, rotlsi3): Support rotate left/right by 1.
1416 (*rotlhi2.1, *rotlhi2.15): New insns.
1417 (*rotlsi2.1, *rotlsi2.31): New insns.
1418 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
1419
1420 2011-09-23 Bin Cheng <bin.cheng@arm.com>
1421
1422 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
1423
1424 2011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
1425
1426 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
1427
1428 2011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1429
1430 * reload.c (find_reloads): Set operand_mode to Pmode for address
1431 operands consisting of just a CONST_INT.
1432
1433 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
1434
1435 PR target/50482
1436 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
1437 blendv, force op_true to register if it doesn't satisfy
1438 nonimmediate_operand predicate.
1439
1440 2011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
1441
1442 PR middle-end/50113
1443 PR middle-end/50061
1444 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
1445 get the locate.where_pad value for register-only arguments.
1446 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
1447 (arm_pad_reg_upward): Handle null types.
1448
1449 2011-09-22 Jan Hubicka <jh@suse.cz>
1450
1451 * ipa-inline-analysis.c: Fix overly long lines.
1452
1453 2011-09-22 Jan Hubicka <jh@suse.cz>
1454
1455 * ipa-inline-transform.c (inline_call): Always update jump functions
1456 after inlining.
1457 * ipa-inline.c (ipa_inline): Likewise; do not call
1458 ipa_create_all_structures_for_iinln.
1459 (ipa_inline): Always free jump functions.
1460 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
1461 (remap_edge_predicates): Fix pasto.
1462 (inline_merge_summary): Remove nlined edge predicate; remove hack.
1463 (inline_analyze_function): Always initialize jump functions.
1464 (inline_generate_summary): Likewise.
1465 (inline_write_summary): Always write jump functions when ipa-cp
1466 is not doing that.
1467 (inline_read_summary): Always read jump functions when ipa-cp
1468 is not doing that.
1469 * ipa-prop.c (iinlining_processed_edges): Remove.
1470 (update_indirect_edges_after_inlining): Do not use
1471 iinlining_processed_edges; instead set param_index to -1.
1472 (propagate_info_to_inlined_callees): Only try to indirect inlining
1473 when asked to do so; update jump functions of indirect calls, too;
1474 remove jump functions of the inlined edge.
1475 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
1476 (ipa_create_all_structures_for_iinln): Remove.
1477 (ipa_free_all_structures_after_iinln): Do not free
1478 iinlining_processed_edges.
1479 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
1480
1481 2011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
1482
1483 * config/arm/predicates.md (expandable_comparison_operator): New
1484 predicate, extracted from...
1485 (arm_comparison_operator): ...here.
1486 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
1487 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
1488 (movdfcc): Use expandable_comparison_operator.
1489
1490 2011-09-22 Georg-Johann Lay <avr@gjlay.de>
1491
1492 PR target/50447
1493 PR target/50465
1494 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
1495 (avr_popcount_each_byte): New prototype.
1496 * config/avr/avr.c (avr_popcount): New static function.
1497 (avr_popcount_each_byte): New function.
1498 (avr_out_bitop): New function.
1499 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
1500 avr_out_bitop. Cleanup code.
1501 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
1502 (Ca4, Co4, Cx4): New constraints.
1503 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
1504 alternative.
1505 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
1506 (andsi3, iorsi3, xorsi3): Ditto.
1507 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
1508
1509 2011-09-22 Ira Rosen <ira.rosen@linaro.org>
1510
1511 PR tree-optimization/50451
1512 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
1513 constant operands in reduction.
1514 (vect_get_slp_defs): Don't create vector operand for NULL scalar
1515 operand.
1516
1517 2011-09-22 David S. Miller <davem@davemloft.net>
1518
1519 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
1520 fpack16, fpack32, fpackfix as const.
1521
1522 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
1523 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
1524 constants. Use them everywhere.
1525
1526 2011-09-22 Oleg Endo <oleg.endo@t-online.de>
1527
1528 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
1529 Added AND special case. Adapted comments.
1530 (sh_rtx_costs): Added XOR and IOR case.
1531
1532 2011-09-21 Jan Hubicka <jh@suse.cz>
1533
1534 * ipa-inline-analsis.c (compute_inline_parameters): Set
1535 cfun and current_function_decl.
1536
1537 2011-09-21 Jan Hubicka <jh@suse.cz>
1538
1539 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
1540 handled components in parameter of builtin_constant_p.
1541 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
1542
1543 2011-09-21 Jan Hubicka <jh@suse.cz>
1544
1545 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
1546 * ipa-inline.h (estimate_edge_time): Fix pasto.
1547 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
1548
1549 2011-09-21 Jakub Jelinek <jakub@redhat.com>
1550
1551 * config/i386/i386.c (ix86_expand_sse_movcc): Use
1552 blendvps, blendvpd and pblendvb if possible.
1553
1554 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
1555
1556 PR target/50464
1557 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
1558 operand 1 predicate to register_operand and operand 2 predicate
1559 to nonimmediate_operand.
1560 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
1561 xop_pcmov, force op_true to register. Also, force op_false to
1562 register if it doesn't satisfy nonimmediate_operand predicate.
1563
1564 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
1565
1566 * config/i386/bmi2intrin.h (_mulx_u64): New.
1567 (_mulx_u32): Ditto.
1568
1569 2011-09-21 Jan Hubicka <jh@suse.cz>
1570
1571 PR tree-optimization/50433
1572 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
1573 Use get_base_address.
1574
1575 2011-09-21 Jakub Jelinek <jakub@redhat.com>
1576
1577 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
1578 nonimmediate_operand instead of register_operand predicate for operands
1579 1 and 2, force them into registers if expanding them as comparison.
1580 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
1581 V8HImode force into register just operand 1.
1582
1583 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
1584
1585 PR target/45099
1586 * config/avr/avr.c (avr_function_arg_advance): Change error to
1587 warning if a fixed register is needed as function argument.
1588
1589 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
1590
1591 PR target/50449
1592 PR target/50465
1593 * config/avr/avr.md (adjust_len): New insn attribute.
1594 (*reload_insi, *reload_insf): Use it.
1595 (*movsi, *movsf): Use new interface of output_movsisf.
1596 * config/avr/avr-protos.h (output_movsisf): Change prototype.
1597 * config/avr/avr.c (output_movsisf): Ditto.
1598 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
1599 lengths of insns *reload_insi, *reload_insf.
1600 (output_reload_insisf_1): New static function.
1601 (output_reload_insisf): Use it.
1602
1603 2011-09-21 David S. Miller <davem@davemloft.net>
1604
1605 * config/sparc/sparc.c (def_builtin): Change from macro into function.
1606 (def_builtin_const): New.
1607 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
1608 other than alignaddr and falignaddr.
1609
1610 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
1611 UNSPEC_FCMPEQ): New unspec codes.
1612 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
1613 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
1614 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
1615 new pixel compare VIS patterns.
1616 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
1617 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
1618 __vis_fcmpeq16, __vis_fcmpeq32): New.
1619 * doc/extend.texi: Document new pixel compare VIS intrinsics.
1620
1621 2011-09-21 Tom de Vries <tom@codesourcery.com>
1622
1623 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
1624
1625 2011-09-20 David S. Miller <davem@davemloft.net>
1626
1627 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
1628 (aligneddrl<P:mode>_vis): New pattern.
1629 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1630 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
1631 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
1632 alignaddrl insn, and adjust edge operations for updated types.
1633 * config/sparc/visintrin.h: Likewise.
1634 * doc/extend.texi: Make typing in VIS documentation match reality.
1635
1636 2011-09-20 Terry Guo <terry.guo@arm.com>
1637
1638 * config/arm/arm-arches.def: Add armv6s-m.
1639 * config/arm/arm-tables.opt: Regenerate.
1640
1641 2011-09-20 Wei Guozhi <carrot@google.com>
1642
1643 PR rtl-optimization/49452
1644 * postreload.c (reload_combine): Invalidate use information when across
1645 volatile insn.
1646
1647 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
1648
1649 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
1650 Remove maintenance overhead.
1651 (haifa_sched_init, sched_finish): Update.
1652
1653 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
1654
1655 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
1656 to calculate unit, prefix_rep and prefix_data16 attributes.
1657 (*mov<mode>_internal): Ditto for unit attribute.
1658 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
1659 (*movv2sf_internal): Ditto.
1660 * config/i386/sse.md (VI1248_256): Remove mode iterator.
1661 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
1662 (*avx2_eq<mode>3): Ditto.
1663 (avx2_gt<mode>3): Ditto.
1664
1665 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
1666
1667 * config/i386/i386.md (maxmin): New code iterator.
1668 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
1669 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
1670 code iterator.
1671 (*avx2_<maxmin:code><mode>3): Macroize isn from
1672 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
1673 maxmin code iterator.
1674 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
1675 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
1676 <umaxmin:code>v16qi3.
1677
1678 2011-09-19 Alan Modra <amodra@gmail.com>
1679 Michael Meissner <meissner@linux.vnet.ibm.com>
1680
1681 PR target/50341
1682 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
1683 split the load of the indirect function's TOC from the call to
1684 prevent the compiler from moving the load of the new TOC above
1685 code that references the current function's TOC.
1686 (call_indirect_aix<ptrsize>_internal): Ditto.
1687 (call_indirect_aix<ptrsize>_nor11): Ditto.
1688 (call_indirect_aix<ptrsize>_internal2): Ditto.
1689 (call_value_indirect_aix<ptrsize>): Ditto.
1690 (call_value_indirect_aix<ptrsize>_internal): Ditto.
1691 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
1692 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
1693
1694 2011-09-19 Jakub Jelinek <jakub@redhat.com>
1695
1696 * config/i386/sse.md (*sse4_1_extractps): Change into
1697 define_insn_and_split, add =x 0 n and =x x n alternatives
1698 and split them after reload.
1699
1700 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
1701
1702 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
1703
1704 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
1705
1706 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
1707
1708 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
1709
1710 PR tree-optimization/50413
1711 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
1712 a basic block if one of its data-refs can't be analyzed.
1713
1714 2011-09-19 Paul Brook <paul@codesourcery.com>
1715
1716 * config/arm/predicates.md (shift_amount_operand): Check constant
1717 shift count is in range.
1718 (const_shift_operand): Remove.
1719
1720 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
1721 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1722
1723 PR target/50091
1724 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
1725 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
1726
1727 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
1728
1729 * config/i386/bmiintrin.h: Remove tmp.
1730 * config/i386/tbmintrin.h: Likewise.
1731
1732 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
1733
1734 PR tree-optimization/50414
1735 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
1736 MIN_EXPR.
1737
1738 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
1739
1740 PR tree-optimization/50412
1741 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
1742 acceses that require epilogue loop if vectorizing outer loop.
1743
1744 2011-09-17 David S. Miller <davem@davemloft.net>
1745
1746 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
1747 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
1748 New unspecs.
1749 (define_attr type): New type 'edge'.
1750 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1751 edge32l_vis): New patterns.
1752 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
1753 * config/sparc/ultra3.md: Likewise.
1754 * config/sparc/niagara.md: Likewise.
1755 * config/sparc/niagara2.md: Likewise.
1756 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
1757 builtins for VIS edge instructions.
1758 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
1759 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
1760 intrinsics.
1761 (__v8qi, __v4qi): Make unsigned.
1762 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
1763 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
1764 __vis_fpack32): Fix types.
1765 * doc/extend.texi: Document new 'edge' VIS intrinsics.
1766
1767 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
1768 divide costs.
1769 (niagara3_costs): New.
1770 (sparc_option_override): Use it.
1771 * gcc/config/sparc/niagara2.md: Adjust with more accurate
1772 Niagara-3 reservations.
1773
1774 2011-09-17 Jakub Jelinek <jakub@redhat.com>
1775
1776 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
1777 (sse2_avx, sseinsnmode): Add V2TI.
1778 (REDUC_SMINMAX_MODE): New mode iterator.
1779 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
1780 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
1781 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
1782 (sse2_lshrv1ti3): Rename to...
1783 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
1784 iterator. Move before umaxmin expanders.
1785 * config/i386/i386.h (VALID_AVX256_REG_MODE,
1786 SSE_REG_MODE_P): Accept V2TImode.
1787 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
1788 V16HImode, V8SImode and V4DImode.
1789
1790 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
1791 and V4DImode.
1792 (ix86_build_signbit_mask): Likewise.
1793 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
1794 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
1795 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
1796 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
1797 (<code><mode>3) ... this.
1798 (avx2_<code><mode>3 smaxmin expand): Rename to...
1799 (<code><mode>3) ... this.
1800 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
1801 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
1802 VI8_AVX2 mode iterator.
1803 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
1804 VI8_AVX2 mode iterator.
1805 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
1806 New expanders.
1807
1808 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
1809
1810 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
1811 throughout file.
1812
1813 2011-09-16 David S. Miller <davem@davemloft.net>
1814
1815 * config/sparc/visintrin.h: New file.
1816 * config.gcc: Add it to extra_headers on sparc.
1817
1818 2011-09-16 Jakub Jelinek <jakub@redhat.com>
1819
1820 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
1821 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
1822 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
1823 reduc_smin_v4sf): Adjust callers.
1824 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
1825 New expanders.
1826
1827 * config/i386/sse.md (vec_extract_hi_<mode>,
1828 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
1829 vextracti128 instead of vextractf128 for -mavx2 and
1830 integer vectors. For V4DFmode fix up mode attribute.
1831 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
1832 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
1833 instead of V8SF mode attribute.
1834 (avx2_extracti128): Change into define_expand.
1835 * config/i386/i386.c (ix86_expand_vector_extract): Handle
1836 32-byte vector modes if TARGET_AVX.
1837
1838 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
1839
1840 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
1841 (umulqi3_highpart, smulqi3_highpart): Ditto.
1842 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
1843 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
1844 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
1845
1846 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
1847
1848 PR target/50358
1849 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
1850 (*maddqi4, *maddqi4.const): New insns.
1851 (*msubqi4, *msubqi4.const): New insns.
1852 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
1853 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
1854 HImode by 1 in the case of multiplying with a CONST_INT.
1855 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
1856
1857 2011-09-15 Jan Hubicka <jh@suse.cz>
1858
1859 PR lto/50430
1860 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
1861 error_mark_node in the DECL_INITIAL of vtable.
1862
1863 2011-09-15 Diego Novillo <dnovillo@google.com>
1864
1865 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
1866 @SYSROOT_CFLAGS_FOR_TARGET@.
1867 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
1868 * configure: Regenerate.
1869 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
1870 Remove setting of GCC_UNDER_TEST.
1871
1872 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
1873
1874 * config/i386/i386.c (output_fp_compare): Return %v prefixed
1875 instruction mnemonics for TARGET_AVX.
1876
1877 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
1878 "type" attribute calculation.
1879 (*movdf_internal): Ditto.
1880 (*movsf_internal): Ditto.
1881
1882 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
1883
1884 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
1885
1886 2011-09-15 Jason Merrill <jason@redhat.com>
1887
1888 PR c++/50361
1889 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
1890
1891 2011-09-15 Jan Hubicka <jh@suse.cz>
1892
1893 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
1894 simplify obviously true clauses.
1895 (and_predicates, or_predicates): Add conditions parameter.
1896 (inline_duplication_hoook): Update.
1897 (mark_modified): New function.
1898 (unmodified_parm): New function.
1899 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
1900 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
1901 Use unmodified_parm.
1902 (estimate_function_body_sizes): Update.
1903 (remap_predicate): Update.
1904
1905 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
1906
1907 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
1908 read-after-read dependencies in basic block SLP.
1909
1910 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1911
1912 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
1913 throughout file.
1914
1915 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1916
1917 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
1918 throughout file.
1919
1920 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1921
1922 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
1923 throughout file.
1924
1925 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1926
1927 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
1928 throughout file.
1929 * config/rs6000/constraints.md: Likewise.
1930
1931 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1932
1933 * config/microblaze/microblaze.md: Use match_test rather than
1934 eq/ne symbol_ref throughout file.
1935
1936 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1937
1938 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
1939 throughout file.
1940
1941 2011-09-14 Tom de Vries <tom@codesourcery.com>
1942
1943 PR middle-end/50251
1944 * explow.c (emit_stack_restore): Set crtl->need_drap if
1945 stack_restore is emitted.
1946
1947 2011-09-14 Julian Brown <julian@codesourcery.com>
1948
1949 * config/arm/arm.c (arm_override_options): Add unaligned_access
1950 support.
1951 (arm_file_start): Emit attribute for unaligned access as appropriate.
1952 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
1953 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
1954 (insv, extzv): Add unaligned-access support.
1955 (extv): Change to expander. Likewise.
1956 (extzv_t1, extv_regsi): Add helpers.
1957 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
1958 (unaligned_storesi, unaligned_storehi): New.
1959 (*extv_reg): New (previous extv implementation).
1960 * config/arm/arm.opt (munaligned_access): Add option.
1961 * config/arm/constraints.md (Uw): New constraint.
1962 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
1963 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
1964 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
1965 volatile accesses when -fstrict-volatile-bitfields is in effect.
1966 (extract_bit_field_1): Likewise.
1967
1968 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
1969
1970 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
1971 a scalar integer before applying integer-only optimisations to
1972 inner arithmetic.
1973
1974 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
1975
1976 * config/mips/mips.c (mips_expand_epilogue): Generate a
1977 simple_return only if the return address is in r31.
1978
1979 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
1980
1981 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
1982 NULL for a jump that is a cc0 insn, pick the previous insn for
1983 move_before.
1984
1985 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1986
1987 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
1988 throughout file.
1989
1990 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1991
1992 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
1993 throughout file.
1994
1995 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1996
1997 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
1998 symbol_ref throughout file.
1999
2000 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
2001
2002 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
2003 throughout file.
2004
2005 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
2006
2007 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
2008 throughout file.
2009
2010 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
2011
2012 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
2013 throughout file.
2014 * config/arm/neon.md: Likewise.
2015 * config/arm/vfp.md: Likewise.
2016 * config/arm/thumb2.md: Likewise.
2017 * config/arm/cortex-m4.md: Likewise.
2018
2019 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
2020
2021 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
2022 define_insn patterns for combine.
2023
2024 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
2025
2026 * reorg.c: Always define make_return_insns.
2027
2028 2011-09-13 Jan Hubicka <jh@suse.cz>
2029
2030 PR other/49533
2031 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
2032
2033 2011-09-13 Jan Hubicka <jh@suse.cz>
2034
2035 PR other/49533
2036 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
2037
2038 2011-09-13 Paul Brook <paul@codesourcery.com>
2039
2040 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2041 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
2042 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
2043 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
2044 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
2045 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
2046 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
2047 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
2048 enabling unwind tables.
2049 (c6x_debug_unwind_info): New function.
2050 (TARGET_ARM_EABI_UNWINDER): Define.
2051 (TARGET_DEBUG_UNWIND_INFO): Define.
2052 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
2053 (TARGET_EXTRA_CFI_SECTION): Remove.
2054 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
2055 * ginclude/unwind-arm-common.h: New file.
2056
2057 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
2058
2059 PR target/50358
2060 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
2061 * config/avr/avr.md: (extend_s): New code attribute.
2062 (mul_r_d): New code attribute.
2063 (*maddqihi4, *umaddqihi4): New insns.
2064 (*msubqihi4, *umsubqihi4): New insns.
2065 (*usmaddqihi4, *sumaddqihi4): New insns.
2066 (*usmsubqihi4, *susubdqihi4): New insns.
2067 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
2068 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
2069 (*umsubqihi4.uconst.ashift): New insn-and-split.
2070 (*msubqihi4.sconst.ashift): New insn-and-split.
2071 (*sumaddqihi4.uconst): New insn-and-split.
2072 (*sumsubqihi4.uconst): New insn-and-split.
2073 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
2074 PLUS:HI and MINUS:HI.
2075
2076 2011-09-13 Revital Eres <revital.eres@linaro.org>
2077
2078 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
2079 (optimize_sc): Adjust call to remove_node_from_ps.
2080 (sms_schedule): Add print info.
2081
2082 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
2083
2084 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
2085 flags specially.
2086
2087 2011-09-12 Jakub Jelinek <jakub@redhat.com>
2088
2089 PR bootstrap/50010
2090 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
2091 NOTE_INSN_CFI notes, with the exception of
2092 NOTE_INSN_SWITCH_TEXT_SECTIONS.
2093
2094 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
2095 Richard Sandiford <rdsandiford@googlemail.com>
2096
2097 * config/mips/mips.c (mips_epilogue): New structure.
2098 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
2099 restoring registers.
2100 (mips_epilogue_emit_cfa_restores): New function.
2101 (mips_epilogue_set_cfa): Likewise.
2102 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
2103 the current CFA register from the stack, redefine the CFA in terms
2104 of the stack pointer.
2105 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
2106 to the epilogue instructions.
2107
2108 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
2109
2110 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
2111 argument.
2112 (mips16e_build_save_restore): Update accordingly.
2113
2114 2011-09-12 Jakub Jelinek <jakub@redhat.com>
2115
2116 PR rtl-optimization/50212
2117 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
2118 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
2119
2120 PR debug/50299
2121 * calls.c (load_register_parameters): Use use_reg_mode instead
2122 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
2123 entry.
2124 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
2125 for stack CALL_INSN_FUNCTION_USAGE uses.
2126 * expr.h (use_reg_mode): New prototype.
2127 (use_reg): Changed into inline around use_reg_mode.
2128 * expr.c (use_reg): Renamed to...
2129 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
2130 mode to that mode instead of VOIDmode.
2131 * var-tracking.c (prepare_call_arguments): Don't track parameters
2132 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
2133 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
2134 EXPR_LIST mode.
2135
2136 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
2137
2138 PR target/43746
2139 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
2140 (progmem_section): New Variable.
2141 (avr_asm_init_sections): Initialize it.
2142 (TARGET_ASM_SELECT_SECTION): Define to...
2143 (avr_asm_select_section): ... this new Function.
2144 (avr_replace_prefix): New Function.
2145 (avr_asm_function_rodata_section): Use it.
2146 (avr_insert_attributes): Don't add section attribute for PROGMEM.
2147 (avr_section_type_flags): Use avr_progmem_p instead of section
2148 name to detect if object is in PROGMEM.
2149 (avr_asm_named_section): Set section name prefix for objects in
2150 PROGMEM.
2151
2152 2011-09-12 Jakub Jelinek <jakub@redhat.com>
2153
2154 PR bootstrap/50352
2155 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
2156 sprintf format string.
2157
2158 2011-09-12 Richard Guenther <rguenther@suse.de>
2159
2160 PR tree-optimization/50343
2161 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
2162 that the reduction is over an SSA name before checking its definition.
2163
2164 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
2165
2166 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
2167 throughout file.
2168
2169 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
2170
2171 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
2172 throughout file.
2173 * config/mips/sb1.md: Likewise.
2174 * config/mips/predicates.md: Replace (match_test "!...")
2175 with (not (match_test "..."))
2176 * config/mips/constraints.md: Likewise.
2177
2178 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
2179
2180 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
2181 * config/arm/arm-tables.opt: Regenerate.
2182 * config/arm/arm-tune.md: Regenerate.
2183 * config/arm/arm.c (arm_file_start): Output .arch directive when
2184 user passes -mcpu=generic-*.
2185 (arm_issue_rate): Add genericv7a support.
2186 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
2187 (ASM_CPU_SPEC): New define.
2188 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
2189 * config/arm/semi.h (ASM_SPEC): Likewise.
2190 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
2191 and -mtune=generic-*.
2192
2193 2011-09-09 Richard Guenther <rguenther@suse.de>
2194
2195 PR tree-optimization/50328
2196 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
2197 constant or default-def operand.
2198
2199 2011-09-09 Richard Guenther <rguenther@suse.de>
2200
2201 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
2202 last statement.
2203
2204 2011-09-09 Richard Guenther <rguenther@suse.de>
2205
2206 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
2207 instead of a statement.
2208 * gimple-fold.c (fold_stmt_inplace): Likewise.
2209 * sese.c (graphite_copy_stmts_from_block): Adjust.
2210 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
2211 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
2212 fold_stmt.
2213 (forward_propagate_addr_into_variable_array_index): Likewise.
2214 (forward_propagate_addr_expr_1): adjust.
2215 (associate_plusminus): Likewise.
2216 (ssa_forward_propagate_and_combine): Likewise.
2217 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
2218 (execute_cse_reciprocals): Likewise.
2219 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
2220
2221 2011-09-09 Nick Clifton <nickc@redhat.com>
2222
2223 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
2224 Return a positive value to indicate that the bits at the
2225 bottom of the register should be cleared.
2226
2227 2011-09-09 Richard Guenther <rguenther@suse.de>
2228
2229 * tree-ssa-operands.c (swap_tree_operands): Always adjust
2230 existing operand positions.
2231
2232 2011-09-09 Richard Guenther <rguenther@suse.de>
2233
2234 PR middle-end/50333
2235 * tree-data-ref.c (split_constant_offset): Do not try to handle
2236 ternary ops.
2237
2238 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
2239
2240 PR tree-optimization/50318
2241 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
2242 typo in use of mult_rhs1 and mult_rhs2.
2243
2244 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
2245
2246 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
2247 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
2248
2249 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
2250
2251 * config/arm/arm.md (push_multi): Emit predicates.
2252 (push_fp_multi): Likewise.
2253 * config/arm/arm.c (vfp_output_fstmd): Likewise.
2254
2255 2011-09-08 Dodji Seketeli <dodji@redhat.com>
2256
2257 PR c++/33255 - Support -Wunused-local-typedefs warning
2258 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
2259 (pushdecl): Use the new record_locally_defined_typedef.
2260 (store_parm_decls): Allocate cfun->language.
2261 (finish_function): Use the new maybe_warn_unused_local_typedefs,
2262 and free cfun->language.
2263 (c_push_function_context): Allocate cfun->language here only if needed.
2264 (c_pop_function_context): Likewise, mark cfun->language
2265 for collection only when it should be done.
2266 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
2267 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
2268 maybe_record_local_typedef_use.
2269 * doc/invoke.texi: Update documentation for
2270 -Wunused-local-typedefs.
2271
2272 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
2273
2274 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
2275 (ix86_avoid_lea_for_add): Likewise.
2276 (ix86_avoid_lea_for_addr): Likewise.
2277 (ix86_split_lea_for_addr): Likewise.
2278
2279 * config/i386/i386.c (LEA_MAX_STALL): New.
2280 (increase_distance): Likewise.
2281 (insn_defines_reg): Likewise.
2282 (insn_uses_reg_mem): Likewise.
2283 (distance_non_agu_define_in_bb): Likewise.
2284 (distance_agu_use_in_bb): Likewise.
2285 (ix86_lea_outperforms): Likewise.
2286 (ix86_ok_to_clobber_flags): Likewise.
2287 (ix86_avoid_lea_for_add): Likewise.
2288 (ix86_avoid_lea_for_addr): Likewise.
2289 (ix86_split_lea_for_addr): Likewise.
2290 (distance_non_agu_define): Search in pred BBs added.
2291 (distance_agu_use): Search in succ BBs added.
2292 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
2293 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
2294 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
2295
2296 * config/i386/i386.md: Split added to transform non destructive
2297 add into move and add.
2298 (lea_1): transformed into insn_and_split to avoid AGU stalls.
2299 (lea<mode>_2): Likewise.
2300
2301 2011-09-08 Martin Jambor <mjambor@suse.cz>
2302
2303 PR tree-optimization/50287
2304 * ipa-split.c (split_function): Do not create SSA names for
2305 non-gimple-registers.
2306
2307 2011-09-08 Richard Guenther <rguenther@suse.de>
2308
2309 PR tree-optimization/19831
2310 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
2311 skip builtins with vdefs that do not really store something.
2312 (propagate_necessity): For calls to free that we can associate
2313 with an allocation function do not mark the freed pointer
2314 definition necessary.
2315 (eliminate_unnecessary_stmts): Remove a call to free if
2316 the associated call to an allocation function is not necessary.
2317
2318 2011-09-08 Richard Guenther <rguenther@suse.de>
2319
2320 PR tree-optimization/19831
2321 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
2322 allocation functions as necessary.
2323
2324 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
2325
2326 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
2327 cut from ...
2328 (darwin_default_min_version): Amended to provide defaults
2329 for the cross directory case.
2330 (darwin_driver_init): call darwin_default_min_version unconditionally.
2331 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
2332 * config/darwin9.h: Likewise.
2333 * config/darwin10.h: Likewise.
2334 * config/rs6000/darwin7.h: Likewise.
2335
2336 2011-09-08 Jakub Jelinek <jakub@redhat.com>
2337
2338 PR target/50310
2339 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
2340 code early if TARGET_AVX.
2341 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
2342
2343 2011-09-07 Jakub Jelinek <jakub@redhat.com>
2344
2345 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
2346 duplicates.
2347
2348 PR target/50310
2349 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
2350 "mode" attribute computation.
2351
2352 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
2353
2354 * regrename.c (struct du_head): Make nregs signed.
2355 (closed_chains): Remove.
2356 (create_new_chain): Return the new chain.
2357 (chain_from_id): New static function.
2358 (dump_def_use_chain): Change argument to be an int, indicating
2359 the first ID to print. All callers changed.
2360 (merge_overlapping_regs): Use chain_from_id. Assert that
2361 chains don't conflict with themselves.
2362 (rename_chains): Take no argument. Iterate over id_to_chain
2363 rather to find chains to rename. Clear tick before the main loop.
2364 (struct incoming_reg_info): New struct.
2365 (struct bb_rename_info): New struct.
2366 (init_rename_info, set_incoming_from_chain, merge_chains): New
2367 static functions.
2368 (regrename_analyze): New static function, broken out of
2369 regrename_optimize. Record and make use of open chain information
2370 at basic block boundaries, and merge chains where possible.
2371 (scan_rtx_reg): Make this_nregs signed. Don't update
2372 closed_chains.
2373 (build_def_use): Return a bool to indicate success. All callers
2374 changed. Don't initialize global data here.
2375 (regrename_optimize): Move most code out of here into
2376 regrename_analyze.
2377 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
2378 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
2379 static inline functions.
2380 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
2381
2382 * bb-reorder.c (insert_section_boundary_note): Don't check
2383 optimize_function_for_speed_p.
2384 (gate_handle_partition_blocks): Do it here instead.
2385 (gate_handle_reorder_blocks): Move preliminary checks here ...
2386 (rest_of_handle_reorder_blocks): ... from here.
2387
2388 2011-09-07 Martin Jambor <mjambor@suse.cz>
2389
2390 PR middle-end/50301
2391 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
2392 function index bounds.
2393 (perhaps_add_new_callers): Likewise.
2394
2395 2011-09-07 Martin Jambor <mjambor@suse.cz>
2396
2397 PR tree-optimization/49911
2398 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
2399 enumerations to the corresponding plain integer type.
2400
2401 2011-09-07 Richard Guenther <rguenther@suse.de>
2402
2403 PR tree-optimization/50319
2404 * tree-if-conv.c (set_bb_predicate): Assert we only set
2405 canonical predicates.
2406 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
2407 around canonical predicates.
2408 (predicate_bbs): Do not re-gimplify already canonical
2409 predicates. Properly unshare them though.
2410 (find_phi_replacement_condition): Simplify.
2411
2412 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
2413
2414 PR target/49030
2415 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
2416 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
2417 reusing the old code from get_arm_condition_code. Return ARM_NV
2418 for invalid comparison codes.
2419 (get_arm_condition_code): Redefine in terms of
2420 maybe_get_arm_condition_code.
2421 * config/arm/predicates.md (arm_comparison_operator): Use
2422 maybe_get_arm_condition_code.
2423
2424 2011-09-07 Richard Guenther <rguenther@suse.de>
2425
2426 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
2427 Canonicalize negated predicates by swapping edges.
2428 (forward_propagate_into_cond): Likewise.
2429
2430 2011-09-07 Richard Guenther <rguenther@suse.de>
2431
2432 PR tree-optimization/50213
2433 * tree-flow.h (simple_iv_increment_p): Declare.
2434 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
2435 POINTER_PLUS_EXPR.
2436 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
2437 not propagate simple IV counter increments.
2438
2439 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
2440 Iain Sandoe <iains@gcc.gnu.org>
2441
2442 * config/rs6000/rs6000.c (compute_save_world_info): Test
2443 cfun->has_nonlocal_label to determine if the out-of-line save
2444 world call may be used.
2445
2446 2011-09-07 Nick Clifton <nickc@redhat.com>
2447
2448 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
2449 label on the parallel part of the insn.
2450
2451 2011-09-07 Jakub Jelinek <jakub@redhat.com>
2452
2453 PR debug/50191
2454 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
2455 avoid_constant_pool_reference first instead of last.
2456
2457 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2458
2459 * doc/configfiles.texi (Configuration Files): Update documentation
2460 about tm_p.h and remove FIXME comment.
2461
2462 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
2463
2464 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
2465 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
2466
2467 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
2468
2469 * config/darwin10.h Remove duplicate LIB_SPEC.
2470
2471 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
2472
2473 PR middle-end/44382
2474 * target.def (reassociation_width): New hook.
2475
2476 * doc/tm.texi.in (reassociation_width): Likewise.
2477
2478 * doc/tm.texi (reassociation_width): Likewise.
2479
2480 * doc/invoke.texi (tree-reassoc-width): New param documented.
2481
2482 * hooks.h (hook_int_uint_mode_1): New default hook.
2483
2484 * hooks.c (hook_int_uint_mode_1): Likewise.
2485
2486 * config/i386/i386.h (ix86_tune_indices): Add
2487 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
2488
2489 (TARGET_REASSOC_INT_TO_PARALLEL): New.
2490 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
2491
2492 * config/i386/i386.c (initial_ix86_tune_features): Add
2493 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
2494
2495 (ix86_reassociation_width): New function.
2496
2497 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
2498
2499 * tree-ssa-reassoc.c (get_required_cycles): New function.
2500 (get_reassociation_width): Likewise.
2501 (swap_ops_for_binary_stmt): Likewise.
2502 (rewrite_expr_tree_parallel): Likewise.
2503
2504 (rewrite_expr_tree): Refactored. Part of code moved into
2505 swap_ops_for_binary_stmt.
2506
2507 (reassociate_bb): Now checks reassociation width to be used and
2508 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
2509
2510 2011-09-06 Richard Guenther <rguenther@suse.de>
2511
2512 PR tree-optimization/47025
2513 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
2514 uses nothing.
2515 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
2516 BUILT_IN_FREE.
2517 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
2518 definitely points to.
2519 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2520 BUILT_IN_VA_START doesn't let its va_list argument escape.
2521 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
2522 not make any previous stores necessary.
2523
2524 2011-09-06 Martin Jambor <mjambor@suse.cz>
2525
2526 * ipa-inline.h (struct inline_summary): Move versionable flag...
2527 * cgraph.h (struct cgraph_local_info): ...here
2528 * ipa-cp.c (determine_versionability): Use the new versionable flag.
2529 (determine_versionability): Likewise.
2530 (ipcp_versionable_function_p): Likewise.
2531 (ipcp_generate_summary): Likewise.
2532 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
2533 versionable flag.
2534 (compute_inline_parameters): Do not clear the versionable flag.
2535 (inline_read_section): Do not stream the versionable flag.
2536 (inline_write_summary): Likewise.
2537 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
2538 (input_overwrite_node): Likewise.
2539
2540 2011-09-06 Richard Guenther <rguenther@suse.de>
2541
2542 PR tree-optimization/48149
2543 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
2544 (vn_valueize): Move earlier.
2545 (valueize_expr): Use vn_valueize.
2546 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
2547 operands.
2548 (simplify_unary_expression): Simplify.
2549
2550 2011-09-06 Richard Guenther <rguenther@suse.de>
2551
2552 PR tree-optimization/48317
2553 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
2554 trailing array.
2555 (sizeof_vn_nary_op): New inline function.
2556 (vn_nary_op_lookup_pieces): Adjust.
2557 (vn_nary_op_insert_pieces): Likewise.
2558 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
2559 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
2560 any number of operands.
2561 (vn_nary_length_from_stmt): New function.
2562 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
2563 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
2564 sized temporary.
2565 (vn_nary_op_lookup): Likewise.
2566 (vn_nary_op_lookup_stmt): Likewise.
2567 (vn_nary_op_insert_into): Likewise.
2568 (vn_nary_op_insert_stmt): Likewise.
2569 (visit_use): Handle CONSTRUCTOR as nary.
2570 * tree-ssa-pre.c (phi_translate_1): Adjust.
2571 (create_expression_by_pieces): Likewise.
2572 (compute_avail): Likewise.
2573
2574 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
2575
2576 * config/arm/arm.c (arm_preferred_simd_mode): Check
2577 TARGET_NEON_VECTORIZE_DOUBLE instead of
2578 TARGET_NEON_VECTORIZE_QUAD.
2579 (arm_autovectorize_vector_sizes): Likewise.
2580 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
2581 mask of mvectorize-with-neon-double. Add RejectNegative.
2582 (mvectorize-with-neon-double): New.
2583
2584 2011-09-06 Richard Guenther <rguenther@suse.de>
2585
2586 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
2587
2588 2011-09-06 Tom de Vries <tom@codesourcery.com>
2589
2590 * recog.c (asm_labels_ok): New function.
2591 (check_asm_operands): Use asm_labels_ok.
2592
2593 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
2594
2595 PR target/49606
2596 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
2597 (PMODE_INSN): New macro.
2598 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
2599 (mips_got_load, mips_expand_synci_loop): Likewise.
2600 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
2601 cprestore patterns.
2602 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
2603 copygp_mips16 patterns.
2604 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
2605 and use_cprestore patterns.
2606 (mips_override_options): Check for incompatible -mabi and -mlong
2607 combinations.
2608 * config/mips/mips.md (unspec_got<mode>): Rename to...
2609 (unspec_got_<mode>): ...this.
2610 (copygp_mips16): Use the Pmode iterator.
2611 (potential_cprestore, cprestore, use_cprestore): Likewise.
2612 (clear_cache, indirect_jump): Use PMODE_INSN.
2613 (indirect_jump<mode>): Rename to...
2614 (indirect_jump_<mode>): ...this.
2615 (tablejump): Use PMODE_INSN.
2616 (tablejump<mode>): Rename to...
2617 (tablejump_<mode>): ...this.
2618 (exception_receiver): Handle restore_gp_si and restore_gp_di.
2619 (restore_gp): Use the Pmode iterator.
2620 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
2621 PMODE_INSN.
2622
2623 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
2624
2625 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
2626 Fix the type of the BIT_AND_EXPR.
2627
2628 2011-09-05 David S. Miller <davem@davemloft.net>
2629
2630 * config.host: Add driver-sparc.o and sparc/x-sparc on
2631 native sparc*-*-linux* builds.
2632 * config/sparc/driver-sparc.c: Correct Linux strings.
2633 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
2634 * config/sparc/linux64.h: Likewise.
2635 * doc/invoke.texi: Document that Linux also supports
2636 -mcpu=native and -mtune=native on sparc.
2637
2638 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
2639 PROCESSOR_NIAGARA4): New.
2640 * config/sparc/sparc.opt: Handle new processor types.
2641 * config/sparc/sparc.md: Add to "cpu" attribute.
2642 * config/sparc/sparc.h (TARGET_CPU_niagara3,
2643 TARGET_CPU_niagara4): New, treat as niagara2.
2644 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
2645 * config/sparc/sol2.h: Likewise.
2646 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
2647 * config/sparc/sparc.c (sparc_option_override): Add
2648 niagara3 and niagara4 handling.
2649 (sparc32_initialize_trampoline): Likewise.
2650 (sparc64_initialize_trampoline): Likewise.
2651 (sparc_use_sched_lookahead): Likewise.
2652 (sparc_issue_rate): Likewise.
2653 (sparc_register_move_cost): Likewise.
2654 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
2655 and niagara4 as appropriate.
2656 * doc/invoke.texi: Document new processor types.
2657 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
2658 and --with-tune options.
2659
2660 * config/sparc/sol2-64.h: Move ...
2661 * config/sparc/default-64.h: ... to here. Update comment.
2662 * config.gcc: Update Solaris sparc to use default-64.h, also
2663 prefix this header into the list on sparc64-*-linux.
2664 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
2665 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
2666 to MASK_HARD_QUAD.
2667
2668 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
2669
2670 PR target/50289
2671 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
2672 that contain global register variable.
2673
2674 2011-09-05 Richard Guenther <rguenther@suse.de>
2675
2676 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
2677
2678 2011-09-05 Richard Guenther <rguenther@suse.de>
2679
2680 * stor-layout.c (layout_type): Use size_binop for array size
2681 calculations.
2682
2683 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
2684
2685 * config/avr/avr.h (progmem_section): Remove Declaration.
2686 * config/avr/avr.c (progmem_section): Make static and rename to
2687 progmem_swtable_section.
2688 (avr_output_addr_vec_elt): No need to switch sections.
2689 (avr_asm_init_sections): Use output_section_asm_op as section
2690 callback for progmem_swtable_section.
2691 (avr_output_progmem_section_asm_op): Remove Function.
2692 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
2693 (avr_asm_function_rodata_section): New static Function.
2694 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
2695 alignment 2**1 for jump tables.
2696
2697 2011-09-04 Jan Hubicka <jh@suse.cz>
2698
2699 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
2700 parameter is SSA name.
2701
2702 2011-09-04 Richard Guenther <rguenther@suse.de>
2703
2704 Revert
2705 2011-08-31 Richard Guenther <rguenther@suse.de>
2706
2707 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
2708 special-casing.
2709
2710 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
2711
2712 PR debug/49901
2713 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
2714
2715 2011-09-04 Jakub Jelinek <jakub@redhat.com>
2716 Ira Rosen <ira.rosen@linaro.org>
2717
2718 PR tree-optimization/50208
2719 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
2720 argument. Check that def_stmt is inside the loop.
2721 (vect_recog_widen_mult_pattern): Update calls to
2722 vect_handle_widen_mult_by_cons.
2723 (vect_operation_fits_smaller_type): Check that def_stmt is
2724 inside the loop.
2725
2726 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
2727
2728 * tree-vectorizer.c (vect_print_dump_info): Print line
2729 number when dumping to a file.
2730 (vectorize_loops): Add new messages to dump file.
2731
2732 2011-09-03 Martin Jambor <mjambor@suse.cz>
2733
2734 * ipa-prop.h (ipa_jump_func_t): New typedef.
2735 (struct ipa_edge_args): Removed field argument_count, field
2736 jump_functions turned into a vector.
2737 (ipa_set_cs_argument_count): Removed.
2738 (ipa_get_cs_argument_count): Updated to work on vectors.
2739 (ipa_get_ith_jump_func): Likewise.
2740 * ipa-prop.c (ipa_count_arguments): Removed.
2741 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
2742 jump functions. Update caller.
2743 (compute_pass_through_member_ptrs): Likewise.
2744 (compute_cst_member_ptr_arguments): Likewise.
2745 (ipa_compute_jump_functions_for_edge): Get number of arguments from
2746 the statement, allocate vector.
2747 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
2748 (duplicate_ipa_jump_func_array): Removed.
2749 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
2750 (ipa_read_node_info): Allocate vector.
2751
2752 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2753
2754 PR middle-end/50232
2755 * config/pa/pa.md (return): Define "return" insn pattern.
2756 (epilogue): Use it when no epilogue is needed.
2757 * config/pa/pa.c (pa_can_use_return_insn): New function.
2758 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
2759
2760 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
2761
2762 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
2763 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
2764 Force at least BITS_PER_UNIT alignment on the new variable.
2765
2766 2011-09-02 Gary Funck <gary@intrepid.com>
2767
2768 * opts.c (print_specific_help): Fix off-by-one compare in
2769 assertion check.
2770 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
2771 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
2772 Increase by +5 to allow for more languages.
2773 * optc-gen.awk: Generate #if that ensures that the number of
2774 languages is within the implementation-defined limit.
2775
2776 2011-09-02 Michael Matz <matz@suse.de>
2777
2778 PR middle-end/50260
2779 * ipa-split.c (split_function): Call add_referenced_var.
2780
2781 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
2782 (cond_if_else_store_replacement_1): Ditto.
2783 * tree-ssa-pre.c (get_representative_for): Ditto.
2784 (create_expression_by_pieces): Ditto.
2785 (insert_into_preds_of_block): Ditto.
2786 * tree-sra.c (create_access_replacement): Ditto.
2787 (get_replaced_param_substitute): Ditto.
2788
2789 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
2790
2791 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
2792 automata_options.
2793 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
2794 (l1w, s1w, l2w, s2w): Define in the main automaton.
2795 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
2796 units.
2797 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
2798 (c6x_unit_names): Add the new units.
2799 (c6x_unit_codes): New static array.
2800 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
2801 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
2802 UNIT_QID_SIDE_OFFSET): New macros.
2803 (RESERVATION_S2): Adjust value.
2804 (c6x_option_override): Compute c6x_unit_codes.
2805 (assign_reservations): Take the unit_mask of the last instruction
2806 into account. Detect floating point reservations by looking for
2807 the new units. Don't assign reservations if the field is already
2808 nonzero.
2809 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
2810 (init_sched_state): Initialize it.
2811 (c6x_clear_sched_context): Free it.
2812 (insn_set_clock): Clear reservation.
2813 (prev_cycle_state): New static variable.
2814 (c6x_init_sched_context): Save it.
2815 (c6x_sched_init): Allocate space for it and clear it.
2816 (c6x_sched_dfa_pre_cycle_insn): New static function.
2817 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
2818 (c6x_variable_issue): Only record units in the unit_mask that
2819 were not set at the start of the cycle.
2820 (c6x_variable_issue): Compute and store the unit_mask from the
2821 current state.
2822 (reorg_split_calls): Ensure the new information remains correct.
2823 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
2824 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
2825 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
2826 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
2827 Add special reservations.
2828 * config/c6x/c6x-sched.md: Regenerate.
2829
2830 2011-09-02 Martin Jambor <mjambor@suse.cz>
2831
2832 * ipa-prop.h (ipa_node_params): Removed fields
2833 called_with_var_arguments and node_versionable.
2834 (ipa_set_called_with_variable_arg): Removed.
2835 (ipa_is_called_with_var_arguments): Likewise.
2836 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
2837 (determine_versionability): Do not check for type attributes and va
2838 builtins. Record versionability into inline summary.
2839 (initialize_node_lattices): Do not check
2840 ipa_is_called_with_var_arguments.
2841 (propagate_constants_accross_call): Likewise, ignore arguments we do
2842 not have PARM_DECLs for, set variable flag for parameters that were
2843 not passed a value.
2844 (create_specialized_node): Dump info that we cannot change signature.
2845 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
2846 number of arguments.
2847 (ipa_make_edge_direct_to_target): Likewise.
2848 (ipa_update_after_lto_read): Likewise.
2849 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
2850 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
2851 they were remapped.
2852
2853 2011-09-02 Richard Guenther <rguenther@suse.de>
2854
2855 PR tree-optimization/27460
2856 PR middle-end/29269
2857 * doc/md.texi (vcond): Document.
2858 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
2859 optab with two modes.
2860 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
2861 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
2862 (vcond_optab): Adjust.
2863 (vcondu_optab): Likewise.
2864 (expand_vec_cond_expr_p): Adjust prototype.
2865 * optabs.c (get_vcond_icode): Adjust.
2866 (expand_vec_cond_expr_p): Likewise.
2867 (expand_vec_cond_expr): Likewise.
2868 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
2869 vector type.
2870 (vectorizable_condition): Allow differing types for comparison
2871 and result.
2872 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
2873 for the comparison.
2874 * config/i386/sse.md (vcond<mode>): Split to
2875 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
2876 vcond<V_128:mode><VI124_128:mode> and
2877 vcondu<V_128:mode><VI124_128:mode>.
2878 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
2879 (vconduv2di): Likewise.
2880 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
2881 (vcondu<mode>): Likewise.
2882 * config/ia64/vect.md (vcond<mode>): Likewise.
2883 (vcondu<mode>): Likewise.
2884 (vcondv2sf): Likewise.
2885 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
2886 * config/rs6000/paired.md (vcondv2sf): Likewise.
2887 * config/rs6000/vector.md (vcond<mode>): Likewise.
2888 (vcondu<mode>): Likewise.
2889 * config/spu/spu.md (vcond<mode>): Likewise.
2890 (vcondu<mode>): Likewise.
2891
2892 2011-09-02 Richard Guenther <rguenther@suse.de>
2893
2894 * pretty-print.h (pp_unsigned_wide_integer): New.
2895 * tree-pretty-print.c (dump_generic_node): Print unsigned
2896 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
2897
2898 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
2899
2900 PR target/49987
2901 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
2902 valid CONST_VECTOR operands.
2903 (rs6000_expand_vector_init): Likewise.
2904
2905 2011-09-02 Martin Jambor <mjambor@suse.cz>
2906
2907 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
2908 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
2909 BINFO_VTABLE. Parameter delta removed, all callers updated.
2910 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
2911 BINFO_VTABLE.
2912 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
2913 all calls.
2914 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
2915 handling of thunk_delta.
2916 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
2917 (devirtualization_time_bonus): Do not handle thunk deltas.
2918 (ipcp_discover_new_direct_edges): Likewise.
2919 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2920 (try_make_edge_direct_simple_call): Likewise.
2921 (try_make_edge_direct_virtual_call): Likewise.
2922 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
2923 parameter set as unused.
2924 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
2925 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
2926 parameter set as unused.
2927 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
2928 (input_edge_opt_summary): Likewise.
2929 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
2930 BINFO_VIRTUALS at all.
2931 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
2932
2933 2011-09-02 Richard Guenther <rguenther@suse.de>
2934
2935 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
2936 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
2937
2938 2011-08-31 Richard Guenther <rguenther@suse.de>
2939
2940 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
2941 handling here, from ...
2942 (expand_expr_real_1): ... here.
2943 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
2944 and VEC_COND_EXPR.
2945 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
2946 a GIMPLE_TERNARY_RHS.
2947 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
2948 and VEC_COND_EXPR here ...
2949 (verify_gimple_assign_single): ... not here.
2950 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
2951 * tree-object-size.c (cond_expr_object_size): Adjust.
2952 (collect_object_sizes_for): Likewise.
2953 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
2954 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
2955 (ssa_forward_propagate_and_combine): Adjust.
2956 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
2957 as ternary.
2958 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
2959 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
2960 * tree-vect-stmt.c (vectorizable_condition): Likewise.
2961 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
2962 (extract_range_from_assignment): Likewise.
2963
2964 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
2965
2966 * config/i386/i386.md: Use (match_test ...) for attribute tests.
2967 * config/i386/mmx.md: Likewise.
2968 * config/i386/sse.md: Likewise.
2969 * config/i386/predicates.md (call_insn_operand): Use
2970 (not (match_test "...")) instead of (match_test "!...")
2971 * config/i386/constraints.md (w): Likewise.
2972
2973 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
2974
2975 * doc/md.texi: Describe the use of match_tests in attribute tests.
2976 * rtl.def (MATCH_TEST): Update commentary.
2977 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
2978 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
2979
2980 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
2981
2982 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
2983 (attr_string): Use copy_md_ptr_loc.
2984
2985 2011-08-31 Martin Jambor <mjambor@suse.cz>
2986
2987 PR middle-end/49886
2988 * ipa-inline-analysis.c (compute_inline_parameters): Set
2989 can_change_signature of noes with typde attributes.
2990 * ipa-split.c (split_function): Do not skip any arguments if
2991 can_change_signature is set.
2992
2993 2011-08-31 Martin Jambor <mjambor@suse.cz>
2994
2995 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
2996 check removed.
2997
2998 2011-08-31 Richard Guenther <rguenther@suse.de>
2999
3000 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
3001 special-casing.
3002
3003 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
3004
3005 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
3006
3007 2011-08-31 Tom de Vries <tom@codesourcery.com>
3008
3009 PR middle-end/43513
3010 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
3011 * tree-ssa-ccp.c (params.h): Include.
3012 (fold_builtin_alloca_for_var): New function.
3013 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
3014
3015 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
3016
3017 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3018 Handle FMA option.
3019
3020 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
3021
3022 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
3023 b3 and b4 unsigned.
3024
3025 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
3026
3027 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
3028 when code is SET.
3029
3030 2011-08-30 Richard Guenther <rguenther@suse.de>
3031
3032 PR middle-end/48571
3033 * gimple.h (maybe_fold_offset_to_address): Remove.
3034 (maybe_fold_offset_to_reference): Likewise.
3035 (maybe_fold_stmt_addition): Likewise.
3036 (may_propagate_address_into_dereference): Likewise.
3037 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
3038 array references.
3039 * gimple-fold.c (canonicalize_constructor_val): Likewise.
3040 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
3041 addresses instead.
3042 (may_propagate_address_into_dereference): Remove.
3043 (maybe_fold_offset_to_array_ref): Likewise.
3044 (maybe_fold_offset_to_reference): Likewise.
3045 (maybe_fold_offset_to_address): Likewise.
3046 (maybe_fold_stmt_addition): Likewise.
3047 (fold_gimple_assign): Do not reconstruct array references but
3048 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
3049 MEM_REF addresses.
3050 (gimple_fold_stmt_to_constant_1): Likewise.
3051 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3052 * gimplify.c (gimplify_conversion): Likewise.
3053 (gimplify_expr): Likewise.
3054
3055 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
3056
3057 * config/i386/fmaintrin.h: New.
3058 * config.gcc: Add fmaintrin.h.
3059 * config/i386/i386.c
3060 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
3061 <IX86_BUILTIN_VFMADDSD3>: Likewise.
3062 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
3063 (*fmai_fmadd_<mode>): Likewise.
3064 (*fmai_fmsub_<mode>): Likewise.
3065 (*fmai_fnmadd_<mode>): Likewise.
3066 (*fmai_fnmsub_<mode>): Likewise.
3067 * config/i386/immintrin.h: Add fmaintrin.h.
3068
3069 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
3070
3071 * genautomata.c (NO_COMB_OPTION): New macro.
3072 (no_comb_flag): New static variable.
3073 (gen_automata_option): Handle NO_COMB_OPTION.
3074 (comb_vect_p): False if no_comb_flag.
3075 (add_vect): Move computation of min/max values. Return early if
3076 no_comb_flag.
3077 * doc/md.texi (automata_option): Document no-comb-vect.
3078
3079 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
3080 "__x86.get_pc_thunk".
3081
3082 * bb-reorder.c (insert_section_boundary_note): Only do it if
3083 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
3084
3085 2011-08-30 Christian Bruel <christian.bruel@st.com>
3086
3087 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
3088 flag_profile_use.
3089
3090 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
3091
3092 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
3093 to off. Document switch.
3094 * doc/invoke.texi (-msave-toc-indirect): Ditto.
3095
3096 2011-08-29 Jakub Jelinek <jakub@redhat.com>
3097
3098 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
3099 conditionals and comments inside macro arguments.
3100
3101 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
3102 Richard Guenther <rguenther@suse.de>
3103
3104 * tree.h (constant_boolean_node): Adjust prototype.
3105 * fold-const.c (fold_convert_loc): Move aggregate conversion
3106 leeway down.
3107 (constant_boolean_node): Make value parameter boolean, add
3108 vector type handling.
3109 (fold_unary_loc): Use constant_boolean_node.
3110 (fold_binary_loc): Preserve types properly when folding
3111 COMPLEX_EXPR <__real x, __imag x>.
3112 * gimplify.c (gimplify_expr): Handle vector comparison.
3113 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
3114 comparison.
3115 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
3116 comparisons.
3117
3118 2011-08-29 Jakub Jelinek <jakub@redhat.com>
3119
3120 PR middle-end/48722
3121 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
3122 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
3123 (verify_rtl_sharing): Likewise and verify_rtx_sharing
3124 in there too.
3125 (unshare_all_rtl_in_chain): For CALL_INSNs
3126 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
3127
3128 2011-08-29 Richard Guenther <rguenther@suse.de>
3129
3130 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
3131 on the built ADDR_EXPR.
3132
3133 2011-08-29 Jakub Jelinek <jakub@redhat.com>
3134
3135 PR debug/50215
3136 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
3137 before adding ENTRY_VALUE to val->locs.
3138
3139 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
3140
3141 PR bootstrap/50218
3142 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
3143 comp.
3144
3145 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
3146
3147 * doc/rtl.texi (simple_return): Document.
3148 (parallel, PATTERN): Here too.
3149 * doc/md.texi (return): Mention it's allowed to expand to simple_return
3150 in some cases.
3151 (simple_return): Document standard pattern.
3152 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
3153 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
3154 * reorg.c (function_return_label, function_simple_return_label):
3155 New static variables, replacing...
3156 (end_of_function_label): ... this.
3157 (simplejump_or_return_p): New static function.
3158 (optimize_skip, steal_delay_list_from_fallthrough,
3159 fill_slots_from_thread): Use it.
3160 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
3161 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
3162 (find_end_label): Take a new arg which is one of the two return
3163 rtxs. Depending on which, set either function_return_label or
3164 function_simple_return_label. All callers changed.
3165 (make_return_insns): Make both kinds.
3166 (dbr_schedule): Adjust for two kinds of end labels.
3167 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
3168 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
3169 (gen_expand, gen_split): Use ANY_RETURN_P.
3170 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
3171 * rtl.def (SIMPLE_RETURN): New code.
3172 * ifcvt.c (find_if_case_1): Be more careful about
3173 redirecting jumps to the EXIT_BLOCK.
3174 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
3175 returnjump_p_1): Handle SIMPLE_RETURNs.
3176 * print-rtl.c (print_rtx): Likewise.
3177 * rtl.c (copy_rtx): Likewise.
3178 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
3179 * combine.c (simplify_set): Likewise.
3180 * resource.c (find_dead_or_set_registers, mark_set_resources):
3181 Likewise.
3182 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
3183 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
3184 (init_emit_regs): Initialize simple_return_rtx.
3185 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
3186 force_nonfallthru_and_redirect.
3187 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
3188 (GR_SIMPLE_RETURN): New enum value.
3189 (simple_return_rtx): New macro.
3190 * basic-block.h (force_nonfallthru_and_redirect): Adjust
3191 declaration.
3192 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
3193 argument. All callers changed. Be careful about what kinds of
3194 returnjumps to generate.
3195 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
3196 ix86_pad_short_function): Likewise.
3197 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
3198 of return.
3199 * config/mips/mips.md (any_return): New code_iterator.
3200 (optab): Add cases for return and simple_return.
3201 (return): Expand to a simple_return.
3202 (simple_return): New pattern.
3203 (*<optab>, *<optab>_internal for any_return): New patterns.
3204 (return_internal): Remove.
3205 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
3206 a simple_return_internal.
3207
3208 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
3209
3210 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
3211 (vec_extract_lo_<mode>): Prevent both operands in memory.
3212 (vec_extract_lo_v16hi): Ditto.
3213 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
3214
3215 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
3216
3217 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
3218 (*sse2_mulv4si3): Ditto.
3219 (mulv2di3): Ditto.
3220 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
3221 notes to REG_EQUAL.
3222
3223 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
3224
3225 PR target/50202
3226 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
3227 when all outputs are unused.
3228 (sse4_2_pcmpistr): Ditto.
3229
3230 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
3231
3232 * config/i386/i386.md (round<mode>2): New expander.
3233 * config/i386/i386.c (enum ix86_builtins): Add
3234 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
3235 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
3236 descriptions.
3237 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
3238 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
3239
3240 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
3241
3242 PR middle-end/50083
3243 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
3244 only when TARGET_C99_FUNCTIONS.
3245 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
3246 <BUILT_IN_RINT{,F,L}>: Ditto.
3247
3248 2011-08-26 Michael Matz <matz@suse.de>
3249 Jakub Jelinek <jakub@redhat.com>
3250
3251 PR lto/50165
3252 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
3253 don't call strlen twice, use memcpy.
3254
3255 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
3256
3257 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
3258 * config/i386/bmiintrin.h: Likewise.
3259 * config/i386/lzcntintrin.h: Likewise.
3260
3261 * config/i386/immintrin.h: Include <lzcntintrin.h>,
3262 <bmiintrin.h> and <bmi2intrin.h>.
3263
3264 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3265
3266 PR target/50166
3267 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
3268 * configure: Regenerate.
3269
3270 2011-08-26 Jakub Jelinek <jakub@redhat.com>
3271
3272 PR c/50179
3273 * c-typeck.c (c_process_expr_stmt): Skip over nops and
3274 call mark_exp_read even if exprv is ADDR_EXPR.
3275
3276 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
3277
3278 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
3279 to df_set_dead_notes_for_mw.
3280
3281 2011-08-26 Richard Guenther <rguenther@suse.de>
3282
3283 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
3284
3285 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
3286 Tom de Vries <tom@codesourcery.com>
3287
3288 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
3289 (struct ivopts_data): Add loop_single_exit_p field.
3290 (niter_for_exit): Change parameter desc_p into return value. Return
3291 desc if desc->may_be_zero. Free desc if unused.
3292 (niter_for_single_dom_exit): Change return type.
3293 (find_induction_variables): Handle changed return type of
3294 niter_for_single_dom_exit. Dump may_be_zero.
3295 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
3296 (set_use_iv_cost): Add and handle comp parameter.
3297 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
3298 comp argument to set_use_iv_cost.
3299 (strip_wrap_conserving_type_conversions, expr_equal_p)
3300 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
3301 (may_eliminate_iv): Add comp parameter. Handle new return type of
3302 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
3303 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
3304 and may_eliminate_iv.
3305 (rewrite_use_compare): Move call to iv_elimination_compare to ...
3306 (may_eliminate_iv): Here.
3307 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
3308
3309 2011-08-26 Tom de Vries <tom@codesourcery.com>
3310
3311 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
3312 accessing TREE_TYPE.
3313
3314 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
3315
3316 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
3317 (*ior_scc_scc_cmp): Likewise
3318 (*and_scc_scc): Likewise.
3319 (*and_scc_scc_cmp): Likewise.
3320 (*and_scc_scc_nodom): Likewise.
3321 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
3322
3323 2011-08-26 Jakub Jelinek <jakub@redhat.com>
3324
3325 * rtlanal.c (nonzero_bits1): Handle CLRSB.
3326
3327 2011-08-26 Richard Guenther <rguenther@suse.de>
3328
3329 * expr.c (string_constant): Handle &MEM_REF.
3330
3331 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
3332
3333 * config/arm/arm.c (struct four_ints): New type.
3334 (count_insns_for_constant): Delete function.
3335 (find_best_start): Delete function.
3336 (optimal_immediate_sequence): New function.
3337 (optimal_immediate_sequence_1): New function.
3338 (arm_gen_constant): Move constant splitting code to
3339 optimal_immediate_sequence.
3340 Rewrite constant negation/invertion code.
3341
3342 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
3343
3344 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
3345 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
3346 Remove prototype. Remove static function type.
3347 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
3348 Add arch attribute.
3349 * config/arm/constraints.md (Pj, PJ): New constraints.
3350
3351 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3352
3353 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
3354 ("cortex_a9_multiply_long"): New and use above. Handle all
3355 long multiply cases.
3356 ("cortex_a9_multiply"): Handle smmul and smmulr.
3357 ("cortex_a9_mac"): Handle smmla.
3358
3359 2011-08-25 Richard Henderson <rth@redhat.com>
3360
3361 PR 50132
3362 PR 49864
3363 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
3364 non-constant stack adjutment.
3365 * expr.c (find_args_size_adjust): Break out from ...
3366 (fixup_args_size_notes): ... here.
3367 * rtl.h (find_args_size_adjust): Declare.
3368
3369 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
3370
3371 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
3372 sse4 and sse4_noavx.
3373 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
3374 (*pushdf_rex64): Change Y2 register constraint to x.
3375 (*movdf_internal_rex64): Ditto.
3376 (*zero_extendsidi2_rex64): Ditto.
3377 (*movdi_internal): Change Y2 register constraint to x
3378 and update "isa" attribute.
3379 (*pushdf): Ditto.
3380 (*movdf internal): Ditto.
3381 (zero_extendsidi2_1): Ditto.
3382 (*truncdfdf_mixed): Ditto.
3383 (*truncxfdf2_mixed): Ditto.
3384 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
3385 register constraint to x.
3386 (*movv2sf_internal_rex64): Ditto.
3387 (*mov<mode>_internal): Change Y2 register constraint to x
3388 and add "isa" attribute.
3389 (*movv2sf_internal): Ditto.
3390 (*vec_extractv2si_1): Ditto.
3391 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
3392 constraints to x and update "isa" attribute.
3393 (*vec_interleave_highv2df): Change Y3 registerconstraint
3394 to x and update "isa" attribute.
3395 (*vec_interleave_lowv2df): Ditto.
3396 (*vec_concatv2df): Change Y2 register constraint to x and
3397 update "isa" attribute.
3398 (sse2_loadld): Ditto.
3399 (*vec_extractv2di_1): Ditto.
3400 (*vec_dupv4si): Ditto.
3401 (*vec_dupv2di): Ditto.
3402 (*vec_concatv4si): Ditto.
3403 (vec_concatv2di): Ditto.
3404 * config/i386/constraints.md (Y2): Remove.
3405 (Y3): Ditto.
3406 (Y4): Ditto.
3407
3408 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
3409
3410 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
3411 dump_def_use_chain): Don't declare.
3412 (mark_conflict, create_new_chain): Move before users.
3413 (regrename_optimize): Move to near end of file.
3414
3415 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3416
3417 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
3418 (secondary_input_reload_class): Remove Prototype.
3419 * config/avr/avr.c (byte_immediate_operand): Remove Function.
3420 * config/avr/avr.md (setmemhi): Use u8_operand.
3421 (strlenhi): Use const0_rtx for comparison.
3422 * config/avr/avr.h (avr_reg_order): Remove Declaration.
3423
3424 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3425
3426 * config/avr/avr.c (reg_class_tab): Make local to
3427 avr_regno_reg_class. Return smallest register class available.
3428
3429 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3430
3431 * config/avr/avr.c (STR_PREFIX_P): New Define.
3432 (avr_asm_declare_function_name): Use it.
3433 (avr_asm_named_section): Use it.
3434 (avr_section_type_flags): Use it.
3435
3436 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
3437
3438 * doc/md.texi (automata_option): Document collapse-ndfa.
3439 * genautomata.c (COLLAPSE_OPTION): New macro.
3440 (collapse_flag): New static variable.
3441 (struct description): New member normal_decls_num.
3442 (struct automaton): New members advance_ainsn and collapse_ainsn.
3443 (gen_automata_option): Check for COLLAPSE_OPTION.
3444 (collapse_ndfa_insn_decl): New static variable.
3445 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
3446 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
3447 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
3448 necessary. Use normal_decls_num rather than decls_num, remove
3449 test for special decls.
3450 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
3451 (make_automaton); Likewise. Use the new advance_cycle_insn member
3452 of struct automaton.
3453 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
3454 is set.
3455 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
3456 transition. Create the necessary transitions for it.
3457 (create_ainsns): Return void. Take an automaton_t argument, and
3458 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
3459 callers changed.
3460 (COLLAPSE_NDFA_VALUE_NAME): New macro.
3461 (output_tables): Output code to define it.
3462 (output_internal_insn_code_evaluation): Output code to accept
3463 const0_rtx as collapse-ndfa transition.
3464 (output_default_latencies, output_print_reservation_func,
3465 output_print_description): Reorganize loops to use normal_decls_num
3466 as loop bound; remove special case for advance_cycle_insn_decl.
3467 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
3468 (check_automata_insn_issues): Check for collapse_ainsn.
3469 (expand_automate): Allocate sufficient space. Initialize
3470 normal_decls_num.
3471
3472 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
3473
3474 * config/avr/avr.md: Fix indentation from r177991.
3475
3476 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
3477
3478 * regrename.c (struct du_head): Remove member terminated.
3479 (create_new_chain): Don't initialize it.
3480 (scan_rtx_reg): Don't set or test it, test the open_chains_set
3481 bitmap instead.
3482 (tick, this_tick): New global variables, moved out of
3483 regrename_optimize.
3484 (current_id, open_chains, closed_chains, open_chains_set,
3485 live_in_chains, live_hard_regs): Reorder declarations.
3486 (dump_def_use_chain): Move function earlier in the file.
3487 (rename_chains): New static function, broken out of
3488 regrename_optimize.
3489 (regrename_optimize): Use it. Remove #if 0'ed code.
3490
3491 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3492
3493 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
3494
3495 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
3496
3497 PR target/50172
3498 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
3499
3500 2011-08-24 Richard Guenther <rguenther@suse.de>
3501
3502 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
3503 ref in the basic-block case. Move stripping array-refs
3504 to the place we create an access-function for it. Remove
3505 bogus stripping down a MEM_REF to its base.
3506
3507 2011-08-24 Richard Guenther <rguenther@suse.de>
3508
3509 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
3510 with -fno-strict-overflow.
3511
3512 2011-08-24 Richard Guenther <rguenther@suse.de>
3513
3514 * tree-vectorizer.c (vect_print_dump_info): Avoid the
3515 file and location clutter when dumping to dump files.
3516
3517 2011-08-24 Simon Baldwin <simonb@google.com>
3518
3519 * gengtype-state.c (write_state): Remove timestamped header line.
3520
3521 2011-08-24 Joseph Myers <joseph@codesourcery.com>
3522
3523 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
3524 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
3525 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
3526 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
3527 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
3528 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
3529 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
3530 rules.
3531 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
3532
3533 2011-08-24 Joseph Myers <joseph@codesourcery.com>
3534
3535 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
3536
3537 2011-08-24 Richard Guenther <rguenther@suse.de>
3538
3539 PR tree-optimization/50067
3540 * tree-data-ref.c (dr_analyze_indices): Do not add an access
3541 function for a MEM_REF base that has no evolution in the loop
3542 nest or that is not analyzable.
3543
3544 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
3545
3546 * ira.c (ira_init_register_move_cost): Check small subclasses
3547 through ira_reg_class_max_nregs and ira_available_class_regs.
3548
3549 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
3550
3551 * config/i386/constraints.md (Yp): New register constraint.
3552 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
3553 Yp register constraint.
3554 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
3555 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
3556 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
3557
3558 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
3559
3560 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
3561
3562 2011-08-23 Mark Heffernan <meheff@google.com>
3563
3564 PR middle-end/38509
3565 * common.opt (Wfree-nonheap-object): New option.
3566 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
3567 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
3568 to warning.
3569 (expand_builtin): Make warning conditional.
3570
3571 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
3572
3573 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
3574 (length_immediate): Handle imulx, ishiftx and rotatex.
3575 (imm_disp): Ditto.
3576 (isa): Add bmi2.
3577 (enabled): Handle bmi2.
3578 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
3579 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
3580 (*bmi2_umulditi3_1): New insn pattern.
3581 (*bmi2_umulsidi3_1): Ditto.
3582 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
3583 (*bmi2_ashl<mode>3_1): New insn pattern.
3584 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
3585 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
3586 (*bmi2_ashlsi3_1_zext): New insn pattern.
3587 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
3588 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
3589 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
3590 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
3591 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
3592 flags dependency.
3593 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
3594 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
3595 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
3596 flags dependency.
3597 (*bmi2_rorx<mode>3_1): New insn pattern.
3598 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
3599 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
3600 (*rotatert<mode>3_1 splitter): Ditto.
3601 (*bmi2_rorxsi3_1_zext): New insn pattern.
3602 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
3603 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
3604 (*rotatertsi3_1_zext splitter): Ditto.
3605
3606 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
3607
3608 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
3609 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
3610 (ix86_handle_option): Handle OPT_mbmi2 case.
3611 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
3612 (x86_64-*-*): Likewise.
3613 * config/i386/bmi2intrin.h: New file.
3614 * config/i386/cpuid.h (bit_BMI2): New.
3615 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3616 BMI2 feature.
3617 * config/i386/i386-c.c (ix86_target_macros_internal):
3618 Conditionally define __BMI2__.
3619 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
3620 Handle BMI2 option.
3621 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
3622 (print_reg): New code.
3623 (ix86_print_operand): Likewise.
3624 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3625 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3626 IX86_BUILTIN_PEXT64.
3627 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3628 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3629 IX86_BUILTIN_PEXT64.
3630 * config/i386/i386.h (TARGET_BMI2): New.
3631 * config/i386/i386.md (UNSPEC_PDEP): New.
3632 (UNSPEC_PEXT): Likewise.
3633 (*bmi2_bzhi_<mode>3): Likewise.
3634 (*bmi2_pdep_<mode>3): Likewise.
3635 (*bmi2_pext_<mode>3): Likewise.
3636 * config/i386/i386.opt (mbmi2): New.
3637 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
3638 is defined.
3639 * doc/extend.texi: Document BMI2 built-in functions.
3640 * doc/invoke.texi: Document -mbmi2.
3641
3642 2011-08-23 Jakub Jelinek <jakub@redhat.com>
3643
3644 PR middle-end/50161
3645 * simplify-rtx.c (simplify_const_unary_operation): If
3646 op is CONST_INT, don't look at op_mode, but use instead mode.
3647 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
3648 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
3649 operation and TRUNCATE/ZERO_EXTEND if needed.
3650 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
3651 Document that operand mode must be same as operation mode,
3652 or VOIDmode.
3653 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
3654 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
3655 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
3656 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
3657 use the mode of operand for the operation and add truncate
3658 or zero_extend around if needed.
3659 * config/c6x/c6x.md (ctzdi2): Likewise.
3660 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
3661
3662 2011-08-12 Michael Matz <matz@suse.de>
3663
3664 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
3665 (gimple_expand_cfg): Merge alignment info for coalesced pointer
3666 SSA names.
3667
3668 2011-08-23 Richard Guenther <rguenther@suse.de>
3669
3670 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
3671 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
3672 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
3673 from ...
3674 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
3675 (mem_refs_may_alias_p): Adjust.
3676 * tree-data-ref.h (dr_may_alias_p): Adjust.
3677 * tree-data-ref.c: Include tree-affine.h.
3678 (dr_analyze_indices): Do nothing for the non-loop case.
3679 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
3680 more cases in the non-loop case.
3681 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
3682 calls to dr_may_alias_p.
3683 (write_alias_graph_to_ascii_ecc): Likewise.
3684 (write_alias_graph_to_ascii_dot): Likewise.
3685 (build_alias_set_optimal_p): Likewise.
3686
3687 2011-08-23 Richard Guenther <rguenther@suse.de>
3688
3689 PR tree-optimization/50162
3690 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
3691
3692 2011-08-23 Richard Guenther <rguenther@suse.de>
3693
3694 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
3695 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
3696 (create_data_ref): Also dump access functions for the created data-ref.
3697
3698 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
3699 Kirill Yukhin <kirill.yukhin@intel.com>
3700
3701 PR target/50155
3702 * config/i386/sse.md (VI_AVX2): New.
3703 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
3704 (*<plusminus_insn><mode>3): Ditto.
3705 (<sse2_avx2>_andnot<mode>3): Ditto.
3706 (*andnot<mode>3): Fix order of cond operands.
3707 Add asserts for correct TARGET_xxx.
3708 (*<any_logic:code><mode>3): Ditto.
3709
3710 2011-08-22 Anatoly Sokolov <aesok@post.ru>
3711
3712 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
3713 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
3714 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
3715 regclass argument type to reg_class_t. Change 'max' and 'v' vars
3716 and return types to unsigned char. Use reg_class_contents instead
3717 of class_contents.
3718 (TARGET_CLASS_MAX_NREGS): Define.
3719
3720 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
3721
3722 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
3723 to make computed_jump_p return true.
3724
3725 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3726
3727 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
3728 (PICFLAG_FOR_TARGET): Substitute.
3729 * aclocal.m4: Regenerate.
3730 * configure: Regenerate.
3731
3732 2011-08-22 Dodji Seketeli <dodji@redhat.com>
3733
3734 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
3735 after reading in the pch.
3736
3737 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
3738
3739 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
3740 * configure: Regenerated.
3741
3742 2011-08-22 Jakub Jelinek <jakub@redhat.com>
3743
3744 PR tree-optimization/50133
3745 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
3746 from stmt instead of some statement around gsi.
3747
3748 PR middle-end/50141
3749 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
3750 innerdecl is a VAR_DECL.
3751
3752 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
3753
3754 * config/i386/avx2intrin.h: New file.
3755 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
3756 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
3757 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
3758 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
3759 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
3760 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
3761 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
3762 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
3763 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
3764 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
3765 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
3766 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
3767 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
3768 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
3769 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
3770 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
3771 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
3772 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
3773 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
3774 VOID_FTYPE_PV8SI_V8SI_V8SI,
3775 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
3776 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
3777 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
3778 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
3779 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
3780 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
3781 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
3782 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
3783 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
3784 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
3785 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
3786 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
3787 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
3788 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
3789 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
3790 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
3791 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
3792 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
3793 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
3794 V4DI_FTYPE_V4DI_INT_CONVERT,
3795 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
3796 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
3797 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
3798 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
3799 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
3800 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
3801 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
3802 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
3803 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
3804 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
3805 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
3806 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
3807 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
3808 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
3809 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
3810 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
3811 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
3812 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
3813 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
3814 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
3815 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
3816 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
3817 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
3818 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
3819 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
3820 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
3821 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
3822 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
3823 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
3824 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
3825 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
3826 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
3827 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
3828 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
3829 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
3830 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
3831 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
3832 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
3833 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
3834 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
3835 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
3836 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
3837 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
3838 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
3839 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
3840 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
3841 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
3842 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
3843 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
3844 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
3845 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
3846 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
3847 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
3848 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
3849 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
3850 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
3851 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
3852 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
3853 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
3854 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
3855 IX86_BUILTIN_VBROADCASTSS_PS256,
3856 IX86_BUILTIN_VBROADCASTSD_PD256,
3857 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
3858 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
3859 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
3860 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
3861 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
3862 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
3863 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
3864 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
3865 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
3866 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
3867 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
3868 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
3869 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
3870 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
3871 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
3872 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
3873 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
3874 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
3875 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
3876 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
3877 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
3878 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
3879 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
3880 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
3881 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
3882 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
3883 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
3884 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
3885 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
3886 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
3887 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
3888 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
3889 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
3890 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
3891 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
3892 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
3893 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
3894 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
3895 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
3896 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
3897 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
3898 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
3899 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
3900 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
3901 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
3902 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
3903 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
3904 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
3905 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
3906 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
3907 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
3908 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
3909 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
3910 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
3911 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
3912 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
3913 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
3914 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
3915 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
3916 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
3917 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
3918 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
3919 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
3920 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
3921 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
3922 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
3923 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
3924 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
3925 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
3926 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
3927 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
3928 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
3929 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
3930 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
3931 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
3932 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
3933 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
3934 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
3935 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
3936 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
3937 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
3938 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
3939 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
3940 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
3941 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
3942 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
3943 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
3944 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
3945 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
3946 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
3947 IX86_BUILTIN_VBROADCASTSD_PD256,
3948 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
3949 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
3950 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
3951 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
3952 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
3953 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
3954 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
3955 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
3956 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
3957 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
3958 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
3959 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
3960 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
3961 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
3962 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
3963 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
3964 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
3965 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
3966 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
3967 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
3968 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
3969 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
3970 IX86_BUILTIN_GATHERDIV8SI.
3971 (ix86_preferred_simd_mode): Support AVX2 modes.
3972 (ix86_expand_args_builtin): Support AVX2 builtins.
3973 (ix86_expand_special_args_builtin): Likewise.
3974 (ix86_expand_builtin): Likewise.
3975 * config/i386/i386.md (UNSPEC_VPERMSI): New.
3976 (UNSPEC_VPERMDF): Likewise.
3977 (UNSPEC_VPERMSF): Likewise.
3978 (UNSPEC_VPERMDI): Likewise.
3979 (UNSPEC_VPERMTI): Likewise.
3980 (UNSPEC_GATHER): Likewise.
3981 (ssemodesuffix): Extend.
3982 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
3983 is defined.
3984 * config/i386/predicates.md (const1248_operand): New.
3985 * config/i386/sse.md (VI1_AVX2): New mode iterator.
3986 (VI2_AVX2): Likewise.
3987 (VI4_AVX2): Likewise.
3988 (VI8_AVX2): Likewise.
3989 (VIMAX_AVX2): Likewise.
3990 (SSESCALARMODE): Likewise.
3991 (VI12_AVX2): Likewise.
3992 (VI24_AVX2): Likewise.
3993 (VI124_AVX2): Likewise.
3994 (VI248_AVX2): Likewise.
3995 (VI48_AVX2): Likewise.
3996 (VI4SD_AVX2): Likewise.
3997 (V48_AVX2): Likewise.
3998 (AVX256MODE2P): Likewise.
3999 (AVXMODE48P_DI): Likewise.
4000 (sse2_avx2): New mode attribute.
4001 (ssse3_avx2): Likewise.
4002 (sse4_1_avx2): Likewise.
4003 (avx_avx2): Likewise.
4004 (ssebytemode): Likewise.
4005 (AVXTOSSEMODE): Likewise.
4006 (AVXMODE48P_DI): Likewise.
4007 (gthrfirstp): Likewise.
4008 (gthrlastp): Likewise.
4009 (lshift): New code_iterator
4010 (lshift): New code attribute.
4011 (lshift): Likewise.
4012 (ssescalarmodesuffix): Update.
4013 (sseunpackmode): Likewise.
4014 (ssepackmode): Likewise.
4015 (avx2_vec_dupv4sf): New insn pattern.
4016 (avx2_vec_dupv8sf): Likewise.
4017 (avx2_interleave_highv4di): Likewise.
4018 (avx2_interleave_lowv4di): Likewise.
4019 (avx2_umulv4siv4di3): Likewise
4020 (*avx2_umulv4siv4di3): Likewise
4021 (avx2_pmaddwd): Likewise.
4022 (*avx2_pmaddwd): Likewise.
4023 (avx2_lshrqv4di3): Likewise.
4024 (avx2_lshlqv4di3): Likewise.
4025 (avx2_lshl<mode>3): Likewise.
4026 (avx2_<umaxmin:code><mode>3): Likewise.
4027 (*avx2_<umaxmin:code><mode>3): Likewise.
4028 (avx2_<smaxmin:code><mode>3): Likewise.
4029 (*avx2_<smaxmin:code><mode>3): Likewise.
4030 (avx2_eq<mode>3): Likewise.
4031 (*avx2_eq<mode>3): Likewise.
4032 (avx2_gt<mode>3): Likewise.
4033 (avx2_interleave_highv32qi): New.
4034 (avx2_interleave_lowv32qi): Likewise.
4035 (avx2_interleave_highv16hi): Likewise.
4036 (avx2_interleave_lowv16hi): Likewise.
4037 (avx2_interleave_highv8si): Likewise.
4038 (avx2_interleave_lowv8si): Likewise.
4039 (avx2_pshufd): Likewise.
4040 (avx2_pshufd_1): Likewise.
4041 (avx2_pshuflwv3): Likewise.
4042 (avx2_pshuflw_1): Likewise.
4043 (avx2_pshufhwv3): Likewise.
4044 (avx2_pshufhw_1): Likewise.
4045 (avx2_uavgv32qi3): Likewise.
4046 (*avx2_uavgv32qi3): Likewise.
4047 (avx2_uavgv16hi3): Likewise.
4048 (*avx2_uavgv16hi3): Likewise.
4049 (avx2_pmovmskb): Likewise.
4050 (avx2_phaddwv16hi3): Likewise.
4051 (avx2_phadddv8si3): Likewise.
4052 (avx2_phaddswv16hi3): Likewise.
4053 (avx2_phsubwv16hi3): Likewise.
4054 (avx2_phsubdv8si3): Likewise.
4055 (avx2_phsubswv16hi3): Likewise.
4056 (avx2_pmaddubsw256): Likewise.
4057 (avx2_umulhrswv16hi3): Likewise.
4058 (*avx2_umulhrswv16hi3): Likewise.
4059 (avx2_packusdw): Likewise.
4060 (avx2_pblendd<mode>): Likewise.
4061 (avx2_<code>v16qiv16hi2): Likewise.
4062 (avx2_<code>v8qiv8si2): Likewise.
4063 (avx2_<code>v8hiv8si2): Likewise.
4064 (avx2_<code>v4qiv4di2): Likewise.
4065 (avx2_<code>v4hiv4di2): Likewise.
4066 (avx2_<code>v4siv4di2): Likewise.
4067 (avx2_pbroadcast<mode>): Likewise.
4068 (avx2_permvarv8si): Likewise.
4069 (avx2_permv4df): Likewise.
4070 (avx2_permvarv8sf): Likewise.
4071 (avx2_permv4di): Likewise.
4072 (avx2_permv2ti): Likewise.
4073 (avx2_vec_dupv4df): Likewise.
4074 (avx2_vbroadcasti128_<mode>): Likewise.
4075 (avx2_vec_set_lo_v4di): Likewise.
4076 (avx2_vec_set_hi_v4di): Likewise.
4077 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
4078 (avx2_extracti128): Likewise.
4079 (avx2_inserti128): Likewise.
4080 (avx2_ashrvv8si): Likewise.
4081 (avx2_ashrvv4si): Likewise.
4082 (avx2_<lshift>vv8si): Likewise.
4083 (avx2_<lshift>v<mode>): Likewise.
4084 (avx2_<lshift>vv2di): Likewise.
4085 (avx2_gathersi<mode>): Likewise.
4086 (*avx2_gathersi<mode>): Likewise.
4087 (avx2_gatherdi<mode>): Likewise.
4088 (*avx2_gatherdi<mode>): Likewise.
4089 (avx2_gatherdi<mode>256): Likewise.
4090 (*avx2_gatherdi<mode>256): Likewise.
4091 (<plusminus_insn><mode>3): Use VI mode iterator.
4092 (*<plusminus_insn><mode>3): Use VI mode iterator.
4093 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
4094 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
4095 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
4096 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
4097 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
4098 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
4099 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
4100 Use VI2_AVX2 mode iterator.
4101 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
4102 Use VI2_AVX2 mode iterator.
4103 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
4104 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
4105 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
4106 Use VI4_AVX2 mode iterator.
4107 (ashr<mode>3): Use VI24_AVX2 mode iterator.
4108 (lshr<mode>3): Use VI248_AVX2 mode iterator.
4109 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
4110 Use VIMAX_AVX2 mode iterator.
4111 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
4112 Use VI mode iterator.
4113 (*andnot<mode>3): Update for AVX2.
4114 (*<any_logic:code><mode>3): Likewise.
4115 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
4116 Use VI1_AVX mode iterator.
4117 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
4118 Use VI2_AVX mode iterator.
4119 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
4120 Use VI1_AVX mode iterator.
4121 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
4122 Use VI8_AVX2 mode iterator.
4123 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
4124 Use VI1_AVX2 mode iterator.
4125 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
4126 Use VI124_AVX2 mode iterator.
4127 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
4128 Use SSESCALARMODE mode iterator.
4129 (abs<mode>2): Use VI124_AVX2 mode iterator.
4130 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
4131 Use VI8_AVX2 mode iterator.
4132 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
4133 Use VI1_AVX2 mode iterator.
4134 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
4135 Use VI1_AVX2 mode iterator.
4136 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
4137 Use VI2_AVX2 mode iterator.
4138 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
4139 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
4140 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
4141 avx_maskstore<ssemodesuffix><avxsizesuffix>.
4142 Use V48_AVX2 mode iterator.
4143 * doc/extend.texi: Document AVX2 built-in functions.
4144 * doc/invoke.texi: Document -mavx2.
4145
4146 2011-08-22 Matthias Klose <doko@debian.org>
4147
4148 Revert:
4149 2011-07-11 Arthur Loiret <aloiret@debian.org>
4150 Matthias Klose <doko@debian.org>
4151 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
4152 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
4153 convention.
4154 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
4155
4156 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
4157
4158 PR bootstrap/50146
4159 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
4160 to #ifndef HONOR_REG_ALLOC_ORDER block.
4161
4162 2011-08-21 Richard Henderson <rth@redhat.com>
4163
4164 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
4165 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
4166 * resource.c (next_insn_no_annul): Likewise.
4167 (mark_set_resources): Likewise.
4168 * reorg.c (delete_from_delay_slot): Likewise.
4169 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
4170 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
4171
4172 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
4173
4174 * config/i386/i386.md (any_div): Remove.
4175 (sgnprefix): Update for removal.
4176 (u): Ditto.
4177
4178 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
4179
4180 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
4181 for ira_reg_class_max_nregs. Increase pressure by 1.
4182 (mark_pseudo_regno_subword_dead): Use allocno class
4183 for ira_reg_class_max_nregs.
4184
4185 2011-08-20 Richard Henderson <rth@redhat.com>
4186
4187 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
4188 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
4189 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
4190 config/c6x/ltf.c: Adjust include path for soft-fp.
4191
4192 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
4193
4194 PR other/46770
4195 * config.gcc (tm_file): Add initfini-array.h if
4196 .init_arrary/.fini_array are supported.
4197
4198 * crtstuff.c: Don't generate .ctors nor .dtors sections if
4199 USE_INITFINI_ARRAY is defined.
4200
4201 * output.h (default_elf_init_array_asm_out_constructor): New.
4202 (default_elf_fini_array_asm_out_destructor): Likewise.
4203 * varasm.c (elf_init_array_section): Likewise.
4204 (elf_fini_array_section): Likewise.
4205 (get_elf_initfini_array_priority_section): Likewise.
4206 (default_elf_init_array_asm_out_constructor): Likewise.
4207 (default_elf_fini_array_asm_out_destructor): Likewise.
4208
4209 * config/initfini-array.h: New.
4210
4211 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
4212
4213 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
4214 OK for ST_REGS and FP_REGS before taking those classes into account.
4215
4216 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
4217
4218 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
4219 before checking for annulled branches.
4220
4221 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
4222
4223 * config/i386/i386.c (ix86_binary_operator_ok): Use
4224 satisfies_constraint_L.
4225
4226 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
4227 Michael Matz <matz@suse.de>
4228
4229 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
4230 trunc (a + copysign (nextafter (0.5, 0.0), a)).
4231
4232 2011-08-20 Anatoly Sokolov <aesok@post.ru>
4233
4234 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4235 * doc/tm.texi: Regenerate.
4236 * targhooks.c (default_preferred_output_reload_class): Don't use
4237 PREFERRED_OUTPUT_RELOAD_CLASS macro.
4238 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
4239
4240 2011-08-20 Jakub Jelinek <jakub@redhat.com>
4241
4242 PR tree-optimization/48739
4243 * tree-ssa.c: Include cfgloop.h.
4244 (execute_update_addresses_taken): When updating ssa, if in loop closed
4245 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
4246 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
4247
4248 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
4249
4250 PR rtl-optimization/49936
4251 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
4252 for calculation of max register move costs.
4253
4254 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4255
4256 * c-parser.c (c_parser_postfix_expression): Convert operands of
4257 __builtin_complex to their semantic types.
4258
4259 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
4260
4261 PR middle-end/49721
4262 * explow.c (convert_memory_address_addr_space): Also permute the
4263 conversion and addition of constant for zero-extend.
4264
4265 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4266
4267 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
4268 * doc/extend.texi (__builtin_complex): Document.
4269
4270 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4271
4272 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
4273 beyond conversions.
4274 (convert_mult_to_widen): Convert constant inputs to the right type.
4275 (convert_plusminus_to_widen): Don't automatically reject inputs that
4276 are not an SSA_NAME.
4277 Convert constant inputs to the right type.
4278
4279 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4280
4281 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
4282 to the correct type.
4283
4284 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4285
4286 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
4287 unsigned inputs of different modes.
4288 (convert_plusminus_to_widen): Likewise.
4289
4290 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4291
4292 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
4293 'type'.
4294 Use 'type' from caller, not inferred from 'rhs'.
4295 Don't reject non-conversion statements. Do return lhs in this case.
4296 (is_widening_mult_p): Add new argument 'type'.
4297 Use 'type' from caller, not inferred from 'stmt'.
4298 Pass type to is_widening_mult_rhs_p.
4299 (convert_mult_to_widen): Pass type to is_widening_mult_p.
4300 (convert_plusminus_to_widen): Likewise.
4301
4302 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4303
4304 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
4305 Ensure the the larger type is the first operand.
4306
4307 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4308
4309 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
4310 unsupported unsigned multiplies to signed.
4311 (convert_plusminus_to_widen): Likewise.
4312
4313 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4314
4315 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
4316 conversion statement separating multiply-and-accumulate.
4317
4318 2011-08-19 Richard Guenther <rguenther@suse.de>
4319
4320 PR tree-optimization/50067
4321 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
4322 offset only if we accounted for it.
4323
4324 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4325
4326 * config/arm/arm.md (maddhidi4): Remove '*' from name.
4327 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
4328 * optabs.c (find_widening_optab_handler_and_mode): New function.
4329 (expand_widen_pattern_expr): Use find_widening_optab_handler.
4330 (expand_binop_directly): Likewise.
4331 (expand_binop): Likewise.
4332 * optabs.h (find_widening_optab_handler): New macro define.
4333 (find_widening_optab_handler_and_mode): New prototype.
4334 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
4335 type precision rules.
4336 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
4337 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
4338 (is_widening_mult_rhs_p): Allow widening by more than one mode.
4339 Explicitly disallow mis-matched input types.
4340 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
4341 input types to fit the new handler.
4342 (convert_plusminus_to_widen): Likewise.
4343
4344 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
4345
4346 * expr.c (expand_expr_real_2): Use widening_optab_handler.
4347 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
4348 (gen_insn): $N now means $a must be wider than $b, not consecutive.
4349 * optabs.c (widened_mode): New function.
4350 (expand_widen_pattern_expr): Use widening_optab_handler.
4351 (expand_binop_directly): Likewise.
4352 (expand_binop): Likewise.
4353 * optabs.h (widening_optab_handlers): New struct.
4354 (optab_d): New member, 'widening'.
4355 (widening_optab_handler): New function.
4356 (set_widening_optab_handler): New function.
4357 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
4358 widening_optab_handler.
4359 (convert_plusminus_to_widen): Likewise.
4360
4361 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4362
4363 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
4364 pedantic.
4365 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
4366 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
4367
4368 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4369
4370 * opth-gen.awk: Do not declare target save/restore structures and
4371 functions if IN_RTS defined.
4372
4373 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4374
4375 PR target/49437
4376 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
4377 when stack was realigned in interrupt handler prologue.
4378
4379 2011-08-18 Joseph Myers <joseph@codesourcery.com>
4380
4381 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
4382 (quals_from_declspecs): Assert _Noreturn not present.
4383 (grokdeclarator): Handle _Noreturn.
4384 (build_null_declspecs): Initialize noreturn_p.
4385 (declspecs_add_scspec): Handle RID_NORETURN.
4386 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
4387 (c_parser_attributes): Handle RID_NORETURN.
4388 * c-tree.h (struct c_declspecs): Add noreturn_p.
4389 * ginclude/stdnoreturn.h: New.
4390 * Makefile.in (USER_H): Add stdnoreturn.h.
4391
4392 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
4393
4394 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
4395 (OPTION_MASK_ISA_AVX_UNSET): Update.
4396 (OPTION_MASK_ISA_AVX2_UNSET): New.
4397 (ix86_handle_option): Handle OPT_mavx2 case.
4398 * config/i386/cpuid.h (bit_AVX2): New.
4399 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4400 AVX2 feature.
4401 * config/i386/i386-c.c (ix86_target_macros_internal):
4402 Conditionally define __AVX2__.
4403 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
4404 Define "core-avx2" processor alias. Handle avx2 option.
4405 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
4406 * config/i386/i386.h (TARGET_AVX2): New.
4407 * config/i386/i386.opt (mavx2): New.
4408 * doc/invoke.texi: Document -mavx2.
4409
4410 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
4411
4412 PR rtl-optimization/49890
4413 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
4414 subclasses of class which is superset of a pressure class.
4415
4416 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
4417 Igor Zamyatin <igor.zamyatin@intel.com>
4418
4419 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
4420 with HOST_WIDE_INT for isa_flag.
4421 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
4422 isa variables.
4423
4424 * config/i386/i386.c (ix86_target_string): Replace int with
4425 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
4426 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
4427 (pta_flags): Removed.
4428 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
4429 (pta): Use HOST_WIDE_INT on flags.
4430 (builtin_isa): Use HOST_WIDE_INT on isa.
4431 (ix86_add_new_builtins): Likewise.
4432 (def_builtin): Use HOST_WIDE_INT on mask.
4433 (def_builtin_const): Likewise.
4434 (builtin_description): Likewise.
4435
4436 * config/i386/i386.opt (ix86_isa_flags): Replace int with
4437 HOST_WIDE_INT.
4438 (ix86_isa_flags_explicit): Likewise.
4439 (x_ix86_isa_flags_explicit): Likewise.
4440
4441 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
4442
4443 PR rtl-optimization/50107
4444 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
4445 (ira_hard_reg_in_set_p): New.
4446
4447 * ira-color.c (calculate_saved_nregs): New.
4448 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
4449 hard regs.
4450 (allocno_reload_assign, fast_allocation): Use
4451 ira_hard_reg_set_intersection_p instead of
4452 ira_hard_reg_not_in_set_p.
4453
4454 * ira.c (setup_reg_renumber): Use
4455 ira_hard_reg_set_intersection_p instead of
4456 ira_hard_reg_not_in_set_p.
4457 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
4458 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
4459
4460 * ira-costs.c (ira_tune_allocno_costs): Use
4461 ira_hard_reg_set_intersection_p instead of
4462 ira_hard_reg_not_in_set_p.
4463
4464 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
4465 Igor Zamyatin <igor.zamyatin@intel.com>
4466
4467 * hwint.h (HOST_WIDE_INT_1): New.
4468
4469 * opt-functions.awk (switch_bit_fields): Initialize the
4470 host_wide_int field.
4471 (host_wide_int_var_name): New.
4472 (var_type_struct): Check and return HOST_WIDE_INT.
4473
4474 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
4475
4476 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
4477
4478 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
4479 check masks for HOST_WIDE_INT.
4480
4481 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
4482 (option_enabled): Likewise.
4483 (get_option_state): Likewise.
4484
4485 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
4486 to HOST_WIDE_INT.
4487
4488 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4489 Marc Glisse <marc.glisse@normalesup.org>
4490
4491 PR libstdc++-v3/1773
4492 * target.def (decl_mangling_context): New C++ hook.
4493 * doc/tm.texi: Regenerate.
4494 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
4495 * config/sol2-protos.h: Group by source file.
4496 (solaris_cxx_decl_mangling_context): Declare.
4497 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
4498 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
4499 Use $<.
4500 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
4501 Add sol2-stubs.o to extra_objs.
4502
4503 2011-08-18 Jakub Jelinek <jakub@redhat.com>
4504
4505 PR target/50009
4506 * stor-layout.c (update_alignment_for_field): Don't ICE on
4507 packed flexible array members if ms_bitfield_layout_p.
4508
4509 PR target/50092
4510 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
4511 on the result before returning it.
4512
4513 PR debug/50017
4514 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
4515 is a debug stmt, use location of the first non-debug stmt after it.
4516
4517 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4518
4519 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
4520 (arm_size_rtx_costs): Likewise.
4521
4522 2011-08-18 Richard Guenther <rguenther@suse.de>
4523
4524 * tree.h (tree_int_cst_msb): Remove.
4525 * tree.c (tree_int_cst_msb): Likewise.
4526 (tree_int_cst_sign_bit): Move from ...
4527 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
4528
4529 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4530
4531 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
4532 * doc/tm.texi: Regenerate.
4533 * target.def (rtx_costs): Add an opno parameter.
4534 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
4535 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
4536 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
4537 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
4538 * cse.c (COST_IN): Add an opno parameter.
4539 (notreg_cost): Likewise. Update call to rtx_cost.
4540 (COST, fold_rtx): Update accordingly.
4541 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
4542 * expmed.c (emit_store_flag): Likewise.
4543 * optabs.c (avoid_expensive_constant): Add an opno parameter.
4544 Update call to rtx_cost.
4545 (expand_binop_directly, expand_binop): Likewise.
4546 (expand_twoval_binop, prepare_cmp_insn): Likewise.
4547 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
4548 (set_src_cost, get_full_set_src_cost): Update accordingly.
4549 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
4550 to target hook.
4551 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
4552 (default_adress_cost): Update calls to rtx_cost.
4553
4554 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
4555 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
4556 (arm_rtx_costs): Add an opno parameter.
4557 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
4558 adjust any recursive rtx-cost calls.
4559 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
4560 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4561 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
4562 * config/cris/cris.c (cris_rtx_costs): Likewise.
4563 * config/frv/frv.c (frv_rtx_costs): Likewise.
4564 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
4565 * config/i386/i386.c (ix86_rtx_costs): Likewise.
4566 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
4567 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
4568 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
4569 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
4570 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
4571 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
4572 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
4573 * config/mep/mep.c (mep_rtx_cost): Likewise.
4574 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
4575 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
4576 (mips_zero_extend_cost): Add an opno parameter.
4577 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
4578 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
4579 to rtx_cost.
4580 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
4581 rtx-cost calls.
4582 * config/pa/pa.c (hppa_rtx_costs): Likewise.
4583 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
4584 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
4585 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
4586 (rs6000_debug_rtx_costs): Likewise.
4587 * config/s390/s390.c (s390_rtx_costs): Likewise.
4588 * config/score/score-protos.h (score_rtx_costs): Likewise.
4589 * config/score/score.c (score_rtx_costs): Likewise.
4590 * config/sh/sh.c (andcosts): Update call to rtx_cost.
4591 (sh_rtx_costs): Add an opno parameter.
4592 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
4593 * config/spu/spu.c (spu_rtx_costs): Likewise.
4594 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
4595 * config/v850/v850.c (v850_rtx_costs): Likewise.
4596 * config/vax/vax.c (vax_rtx_costs): Likewise.
4597 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
4598
4599 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4600
4601 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
4602 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
4603 rtx_cost.
4604 * calls.c (precompute_register_parameters): Likewise.
4605 * combine.c (expand_compound_operation, make_extraction): Likewise.
4606 (force_to_mode, distribute_and_simplify_rtx): Likewise.
4607 * dse.c (find_shift_sequence): Likewise.
4608 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
4609 * expr.c (compress_float_constant): Likewise.
4610 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
4611 * gcse.c (want_to_gcse_p): Likewise.
4612 * ifcvt.c (noce_try_sign_mask): Likewise.
4613 * loop-doloop.c (doloop_optimize): Likewise.
4614 * loop-invariant.c (create_new_invariant): Likewise.
4615 * optabs.c (avoid_expensive_constant): Likewise.
4616 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
4617 (try_replace_in_use, reload_cse_move2add): Likewise.
4618 * reload1.c (calculate_elim_costs_all_insns): Likewise.
4619 (note_reg_elim_costly): Likewise.
4620 * rtlanal.c (insn_rtx_cost): Likewise.
4621 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4622 * stmt.c (lshift_cheap_p): Likewise.
4623 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
4624 * config/avr/avr.c (final_prescan_insn): Likewise.
4625 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4626 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
4627
4628 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4629
4630 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
4631 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
4632 * cfgloopanal.c (seq_cost): Likewise.
4633 * loop-invariant.c (create_new_invariant): Likewise.
4634 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
4635 (reload_cse_move2add): Use get_full_set_rtx_cost.
4636
4637 2011-08-18 Richard Guenther <rguenther@suse.de>
4638
4639 * expr.c (get_inner_reference): Fix typo in last change.
4640
4641 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
4642 Joseph Myers <joseph@codesourcery.com>
4643
4644 PR tree-optimization/49963
4645 * hwint.c (absu_hwi): Define.
4646 * hwint.h (absu_hwi): Declare.
4647 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
4648 of abs_hwi.
4649 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4650 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
4651
4652 2011-08-18 Richard Guenther <rguenther@suse.de>
4653
4654 * expr.c (get_inner_reference): Sign-extend the constant
4655 twos-complement offset before doing arbitrary precision
4656 arithmetic on it.
4657 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
4658 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
4659 to get_constraint_for_ptr_offset.
4660
4661 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
4662
4663 PR target/50068
4664 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
4665
4666 2011-08-17 Richard Guenther <rguenther@suse.de>
4667
4668 * tree.h (convert_to_ptrofftype_loc): New function.
4669 (convert_to_ptrofftype): Define.
4670 * builtins.c (expand_builtin_bzero): Use size_type_node.
4671 (fold_builtin_bzero): Likewise.
4672 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
4673 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
4674 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
4675 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
4676 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
4677 * fold-const.c (build_range_check): Negate using the original type.
4678 (fold_unary_loc): Use fold_build_pointer_plus_loc.
4679 * gimple-fold.c (gimple_adjust_this_by_delta): Use
4680 convert_to_ptrofftype.
4681 * gimplify.c (gimplify_self_mod_expr): Likewise.
4682 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
4683 (graphite_create_new_loop_guard): Likewise.
4684 * graphite-sese-to-poly.c (my_long_long): Remove.
4685 (scop_ivs_can_be_represented): Adjust.
4686 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
4687 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
4688 * tree-loop-distribution.c (build_size_arg_loc): Use
4689 size_type_node.
4690 (generate_memset_zero): Simplify.
4691 * tree-mudflap.c: Use fold_convert, not convert.
4692 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
4693 its own type.
4694 (determine_offset): Likewise for DR_STEP.
4695 (valid_initializer_p): Likewise.
4696 * tree-profile.c (prepare_instrumented_value): Convert the pointer
4697 to an integer type of same size.
4698 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
4699 to sizetype without need.
4700 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
4701 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
4702 * tree-ssa-loop-manip.c (create_iv): Likewise.
4703 (determine_exit_conditions): Adjust comment.
4704 * tree-ssa-pre.c (create_expression_by_pieces): Use
4705 convert_to_ptrofftype.
4706 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
4707 * varasm.c (array_size_for_constructor): Compute using double_ints.
4708
4709 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4710
4711 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
4712 when generating an integer result where possible. Short-cut
4713 comparison against 0 also for QImode.
4714
4715 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4716
4717 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
4718 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
4719 prototype.
4720 * config/spu/spu.c (spu_legitimize_reload_address): New function.
4721 (spu_legitimate_address_p): Do not check displacement if the base
4722 is an eliminable stack register.
4723
4724 2011-08-16 Anatoly Sokolov <aesok@post.ru>
4725
4726 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
4727 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
4728 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
4729 m32c_preferred_output_reload_class): Remove.
4730 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
4731 Change rclass argument and return types to reg_class_t. Use
4732 reg_class_subset_p instead of class_sizes.
4733 (m32c_preferred_output_reload_class): Make static. Change rclass
4734 argument and return types to reg_class_t.
4735 (TARGET_PREFERRED_RELOAD_CLASS,
4736 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4737
4738 2011-08-16 Kai Tietz <ktietz@redhat.com>
4739
4740 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
4741
4742 2011-08-16 Richard GUenther <rguenther@suse.de>
4743
4744 PR tree-optimization/50082
4745 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
4746 warnings here, instead of ...
4747 (ssa_forward_propagate_and_combine): ... here.
4748 (forward_propagate_into_comparison_1): Adjust.
4749 (forward_propagate_into_comparison): Likewise.
4750 (forward_propagate_into_gimple_cond): Likewise.
4751 (forward_propagate_into_cond): Likewise.
4752
4753 2011-08-16 Andreas Schwab <schwab@redhat.com>
4754
4755 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
4756 instead of ggc_alloc_zone_vec_rtvec_def.
4757
4758 2011-08-16 Richard Guenther <rguenther@suse.de>
4759
4760 * tree.h (ptrofftype_p): New helper function.
4761 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
4762 offset verification.
4763 (verify_gimple_assign_binary): Likewise.
4764 * tree.c (build2_stat): Likewise.
4765 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
4766 (reset_evolution_in_loop): Likewise.
4767 * tree-chrec.h (build_polynomial_chrec): Likewise.
4768
4769 2011-08-16 Liang Wang <lwang1@marvell.com>
4770
4771 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
4772 ggc_alloc_zone_vec_rtvec_def.
4773
4774 2011-08-16 Richard Guenther <rguenther@suse.de>
4775
4776 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
4777 helper factored out from ...
4778 (extract_range_from_binary_expr_1): ... here. Re-structure
4779 to not glob handling too different tree codes.
4780
4781 2011-08-15 Richard Henderson <rth@redhat.com>
4782
4783 PR middle-end/50006
4784 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
4785 setting out to include allocate_stack named pattern as well.
4786 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
4787 * stmt.c (expand_stack_restore): Likewise.
4788
4789 2011-08-15 Richard Guenther <rguenther@suse.de>
4790
4791 PR middle-end/50082
4792 * fold-const.c (maybe_canonicalize_comparison_1): Properly
4793 convert the modified operand to the other operand type.
4794 (fold_comparison): Call maybe_canonicalize_comparison_1 with
4795 useless conversions stripped from comparison operands.
4796
4797 2011-08-15 Richard Guenther <rguenther@suse.de>
4798
4799 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
4800 (extract_range_from_unary_expr_1): Restructure.
4801
4802 2011-08-15 Richard Guenther <rguenther@suse.de>
4803
4804 PR tree-optimization/50058
4805 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
4806 copy matching.
4807
4808 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4809
4810 PR target/50022
4811 * config/arm/arm.c (output_move_double): Add 2 parameters
4812 to count the number of insns emitted and whether to emit or not.
4813 Use the flag to decide when to emit and count number of instructions
4814 that will be emitted.
4815 Handle case where output_move_double might be called for calculating
4816 lengths with an invalid constant.
4817 (arm_count_output_move_double_insns): Define.
4818 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
4819 (output_move_double): Adjust prototype.
4820 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
4821 output_move_double.
4822 ("*movdi_vfp_cortexa8"): Likewise and add attribute
4823 for ce_count.
4824 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
4825 ("*movdf_soft_insn"): Likewise.
4826 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
4827 ("*cirrus_thumb2_movdi"): Likewise.
4828 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
4829 ("*cirrus_movdf_hard_insn"): Likewise.
4830 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
4831 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
4832 ("mov<mode>_internal VMMX"): Likewise.
4833 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
4834
4835 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
4836
4837 * config/i386/i386.c (ix86_expand_round_sse4): New function.
4838 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
4839 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
4840 for TARGET_ROUND.
4841
4842 (rint<mode>2): Simplify TARGET_ROUND check.
4843 (floor<mode>2): Ditto.
4844 (ceil<mode>2): Ditto.
4845 (btrunc<mode>2): Ditto.
4846
4847 2011-08-14 Anatoly Sokolov <aesok@post.ru>
4848
4849 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
4850 as mmix_preferred_output_reload_class.
4851
4852 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
4853
4854 * PR target/49903
4855 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
4856 (branch_unspec): New insn.
4857 (branch): Beauty farm.
4858 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
4859 to be IF_THEN_ELSE.
4860 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
4861 New static functions.
4862 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
4863 Use CONST_INT_P. Beauty.
4864
4865 2011-08-12 Richard Henderson <rth@redhat.com>
4866
4867 PR rtl-opt/49994
4868 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
4869 * sched-deps.c (init_deps): Clear it.
4870 (deps_analyze_insn): Consume it.
4871 (sched_analyze_insn): Fill it.
4872
4873 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4874
4875 PR target/48328
4876 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
4877 for tbh instructions.
4878
4879 2011-08-12 Diego Novillo <dnovillo@google.com>
4880
4881 * data-streamer.h (streamer_write_zero): Rename from output_zero.
4882 (streamer_write_uhwi): Rename from lto_output_uleb128.
4883 (streamer_write_hwi): Rename from output_sleb128.
4884 (streamer_write_string): Rename from lto_output_string.
4885 (streamer_string_index): Rename from lto_string_index.
4886 (streamer_write_string_with_length): Rename from
4887 lto_output_string_with_length.
4888 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
4889 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
4890 (streamer_read_string): Rename from lto_input_string.
4891 (streamer_read_indexed_string): Rename from input_string_internal.
4892 (streamer_read_uhwi): Rename from lto_input_uleb128.
4893 (streamer_read_hwi): Rename from lto_input_sleb128.
4894 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
4895 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
4896 (streamer_write_enum): Rename from lto_output_enum.
4897 (streamer_read_enum): Rename from lto_input_enum.
4898 (streamer_write_record_start): Rename from output_record_start.
4899 (streamer_read_record_start): Rename from input_record_start.
4900 (streamer_write_bitpack): Rename from lto_output_bitpack.
4901 (streamer_read_bitpack): Rename from lto_input_bitpack.
4902 (streamer_write_char_stream): Rename from lto_output_1_stream.
4903 (streamer_read_uchar): Rename from lto_input_1_unsigned.
4904 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
4905 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
4906 (streamer_read_string_cst): Rename from input_string_cst.
4907 (streamer_read_chain): Rename from lto_input_chain.
4908 (streamer_alloc_tree): Rename from lto_materialize_tree.
4909 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
4910 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
4911 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
4912 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
4913 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
4914 (streamer_write_chain): Rename from lto_output_chain.
4915 (streamer_write_tree_header): Rename from lto_output_tree_header.
4916 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
4917 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
4918 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
4919 (streamer_write_builtin): Rename from lto_output_builtin_tree.
4920 (streamer_check_handled_ts_structures): Rename from
4921 check_handled_ts_structures.
4922 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
4923 (streamer_tree_cache_insert_at): Rename from
4924 lto_streamer_cache_insert_at.
4925 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
4926 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
4927 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
4928 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
4929 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
4930 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
4931 (write_identifier): Rename from output_identifier.
4932 (write_ts_common_tree_pointers): Rename from
4933 lto_output_ts_common_tree_pointers.
4934 (write_ts_vector_tree_pointers): Rename from
4935 lto_output_ts_vector_tree_pointers.
4936 (write_ts_complex_tree_pointers): Rename from
4937 lto_output_ts_complex_tree_pointers.
4938 (write_ts_decl_minimal_tree_pointers): Rename from
4939 lto_output_ts_decl_minimal_tree_pointers.
4940 (write_ts_decl_common_tree_pointers): Rename from
4941 lto_output_ts_decl_common_tree_pointers.
4942 (write_ts_decl_non_common_tree_pointers): Rename from
4943 lto_output_ts_decl_non_common_tree_pointers.
4944 (write_ts_decl_with_vis_tree_pointers): Rename from
4945 lto_output_ts_decl_with_vis_tree_pointers.
4946 (write_ts_field_decl_tree_pointers): Rename from
4947 lto_output_ts_field_decl_tree_pointers.
4948 (write_ts_function_decl_tree_pointers): Rename from
4949 lto_output_ts_function_decl_tree_pointers.
4950 (write_ts_type_common_tree_pointers): Rename from
4951 lto_output_ts_type_common_tree_pointers.
4952 (write_ts_type_non_common_tree_pointers): Rename from
4953 lto_output_ts_type_non_common_tree_pointers.
4954 (write_ts_list_tree_pointers): Rename from
4955 lto_output_ts_list_tree_pointers.
4956 (write_ts_vec_tree_pointers): Rename from
4957 lto_output_ts_vec_tree_pointers.
4958 (write_ts_exp_tree_pointers): Rename from
4959 lto_output_ts_exp_tree_pointers.
4960 (write_ts_block_tree_pointers): Rename from
4961 lto_output_ts_block_tree_pointers.
4962 (write_ts_binfo_tree_pointers): Rename from
4963 lto_output_ts_binfo_tree_pointers.
4964 (write_ts_constructor_tree_pointers): Rename from
4965 lto_output_ts_constructor_tree_pointers.
4966 (write_ts_target_option): Rename from lto_output_ts_target_option.
4967 (write_ts_translation_unit_decl_tree_pointers): Rename from
4968 lto_output_ts_translation_unit_decl_tree_pointers.
4969 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
4970 Rename from lto_streamer_cache_add_to_node_array.
4971 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
4972 (record_common_node): Rename from lto_record_common_node.
4973
4974 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
4975 declarations.
4976 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
4977 function.
4978 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
4979 unused function.
4980 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
4981 (ipa-reference.o): Likewise.
4982 * lto-section-out.c: Include data-streamer.h.
4983 * ipa-reference.c: Include data-streamer.h.
4984
4985 2011-08-12 Nick Clifton <nickc@redhat.com>
4986
4987 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
4988 * doc/md.texi (cmpstrn): Note that the comparison stops if both
4989 fetched bytes are zero.
4990 (cmpstr): Likewise.
4991 (cmpmem): Note that the comparison does not stop if both of the
4992 fetched bytes are zero.
4993
4994 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
4995
4996 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
4997 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
4998 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
4999 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
5000 to integer_type_node.
5001 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
5002 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
5003 * builtins.c (expand_builtin_in): Ditto.
5004 (mathfn_built_in_1): Ditto.
5005 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
5006 BUILT_IN_IFLOOR.
5007 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
5008 BUILT_IN_IROUND.
5009 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
5010 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
5011 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
5012
5013 2011-08-12 Richard Guenther <rguenther@suse.de>
5014
5015 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
5016
5017 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
5018
5019 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
5020
5021 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
5022
5023 * config/arm/arm.c (get_label_padding): New function.
5024 (create_fix_barrier, arm_reorg): Use it.
5025
5026 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
5027
5028 PR target/49781
5029 * config/i386/i386.md (*lea_5_zext): New.
5030 (*lea_6_zext): Ditto.
5031 * config/i386/predicates.md (const_32bit_mask): New predicate.
5032 (lea_address_operand): Reject AND.
5033 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
5034 const_32bit_mask immediate.
5035 (ix86_print_operand_address): Handle AND.
5036 (memory_address_length): Ditto.
5037
5038 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
5039 Brian Hackett <bhackett1024@gmail.com>
5040
5041 * plugin.def: Add event for finish_decl.
5042 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
5043 * c-decl.c (finish_decl): Invoke callbacks on above event.
5044 * doc/plugins.texi: Document above event.
5045
5046 2011-08-11 Richard Guenther <rguenther@suse.de>
5047
5048 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
5049 lookups, make looking through aggregate copies stronger.
5050
5051 2011-08-11 Richard Henderson <rth@redhat.com>
5052
5053 PR bootstrap/50018
5054 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
5055
5056 2011-08-11 Richard Guenther <rguenther@suse.de>
5057
5058 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
5059 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
5060 (vrp_visit_stmt): Likewise.
5061
5062 2011-08-11 Richard Guenther <rguenther@suse.de>
5063
5064 PR middle-end/50040
5065 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
5066 load of the other piece with TREE_NO_WARNING.
5067 * tree-flow.h (warn_uninit): Adjust prototype.
5068 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
5069 the base variable and the expression that is used separately.
5070 Properly query all TREE_NO_WARNING flags.
5071 (struct walk_data): Remove.
5072 (warn_uninitialized_var): Likewise.
5073 (warn_uninitialized_vars): Do not walk gimple pieces but simply
5074 look at all SSA uses of the statement. Handle unused memory
5075 separately.
5076 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
5077
5078 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
5079
5080 * config/rx/rx.md (movsicc): Allow register to register transfers.
5081 (*movsicc): Likewise.
5082 (*stcc): Restrict this pattern to EQ and NE compares.
5083 (*stcc_reg): New pattern. Works for any comparison but only for
5084 register transfers.
5085
5086 2011-08-11 Diego Novillo <dnovillo@google.com>
5087
5088 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
5089 Call stream_write_tree instead of output_record_start.
5090 (lto_output_ts_binfo_tree_pointers): Likewise.
5091
5092 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
5093 Convert it to a macro.
5094 (stream_read_tree): Likewise.
5095
5096 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
5097 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
5098
5099 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
5100 and tree_read_bitfields.
5101 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
5102 (lto_write_tree): Call it.
5103 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
5104 * streamer-hooks.h (struct streamer_hooks): Remove fields
5105 name, is_streamable and alloc_tree. Update all users.
5106 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
5107 (lto_materialize_tree): ... here.
5108 Handle CALL_EXPR codes.
5109 Remove call to lto_streamer_cache_append.
5110 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
5111 * tree-streamer.h (tree_read_bitfields): Declare.
5112
5113 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
5114 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
5115 * tree-streamer.h (stream_read_tree): New. Replace all calls
5116 to lto_input_tree with it.
5117 (stream_write_tree): New. Replace all calls to lto_output_tree,
5118 lto_output_tree_ref and lto_output_tree_or_ref with it.
5119 * lto-streamer-in.c (lto_read_tree): Inline code from
5120 lto_streamer_read_tree.
5121 (lto_input_tree): Move from tree-streamer-in.c.
5122 * lto-streamer-out.c (lto_output_tree_ref): Make static.
5123 Remove handling of NULL values for EXPR.
5124 Do not handle EXPRs that are not indexable.
5125 (lto_write_tree): Move from tree-streamer-out.c.
5126 Inline lto_streamer_write_tree.
5127 (lto_output_tree): Move from tree-streamer-out.c.
5128 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
5129 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
5130 (lto_preload_common_nodes): Likewise.
5131 Remove assertions and adjustments for nodes
5132 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
5133 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
5134 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
5135 * lto-streamer.h (lto_input_tree): Declare.
5136 (lto_output_tree_ref): Remove.
5137 * streamer-hooks.h (struct streamer_hooks): Remove fields
5138 preload_common_nodes, indexable_with_decls_p,
5139 pack_value_fields, unpack_value_fields and output_tree_header.
5140 Update all users.
5141 * tree-streamer-in.c (lto_materialize_tree): Make extern.
5142 (lto_input_tree_pointers): Likewise.
5143 (lto_read_tree): Move to lto-streamer-in.c.
5144 (lto_input_integer_cst): Make extern.
5145 (lto_get_pickled_tree): Likewise.
5146 (lto_get_builtin_tree): Likewise.
5147 (lto_input_tree): Move to lto-streamer-in.c.
5148 * tree-streamer-out.c (pack_value_fields): Make extern.
5149 (lto_output_tree_or_ref): Remove. Replace all callers with
5150 calls to stream_write_tree.
5151 (lto_output_builtin_tree): Make extern.
5152 (lto_streamer_write_tree): Inline into lto_write_tree.
5153 (lto_output_tree_pointers): Make extern.
5154 (lto_output_tree_header): Likewise.
5155 (lto_output_integer_cst): Likewise.
5156 (lto_write_tree): Move to lto-streamer-out.c.
5157 (lto_output_tree): Likewise.
5158 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
5159 (preload_common_nodes): Likewise.
5160 (lto_streamer_cache_create): Call it.
5161 * tree-streamer.h: Include streamer-hooks.h.
5162 (stream_write_tree): New.
5163 (stream_read_tree): New.
5164 (lto_input_tree): Remove.
5165 (lto_materialize_tree): Declare.
5166 (lto_input_tree_pointers): Declare.
5167 (lto_get_pickled_tree): Declare.
5168 (lto_get_builtin_tree): Declare.
5169 (lto_input_integer_cst): Declare.
5170 (lto_output_tree_header): Declare.
5171 (pack_value_fields): Declare.
5172 (lto_output_tree_pointers): Declare.
5173 (lto_output_integer_cst): Declare.
5174 (lto_output_builtin_tree): Declare.
5175
5176 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
5177
5178 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
5179 only if producer writes to the register given by regno.
5180
5181 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
5182 Alexander Monakov <amonakov@ispras.ru>
5183
5184 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
5185 (sched_get_condition_with_rev_uncached): ... this. Factor out
5186 condition caching logic into ...
5187 (sched_get_condition_with_rev): ... this. Reimplement. Do not
5188 attempt to use cache for instructions with zero luid.
5189 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
5190 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
5191
5192 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
5193
5194 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
5195 get_seqno_for_a_jump. Update the caller.
5196 (get_seqno_by_succs): New. Use it ...
5197 (get_seqno_for_a_jump): ... here to find a seqno if looking at
5198 predecessors was not sufficient.
5199 (get_seqno_by_preds): Include head in iteration range, exclude insn.
5200
5201 2011-08-11 Dmitry Melnik <dm@ispras.ru>
5202
5203 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
5204
5205 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
5206
5207 * sel-sched-ir.h (register_unavailable_p): Declare.
5208 * sel-sched-ir.c (register_unavailable_p): New. Use it...
5209 (set_unavailable_target_for_expr): ... here to properly test
5210 availability of a register.
5211 (speculate_expr): Ditto.
5212 * sel-sched.c (substitute_reg_in_expr): Ditto.
5213 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
5214
5215 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
5216
5217 * sel-sched.c (verify_target_availability): Fix usage of
5218 hard_regno_nregs.
5219
5220 2011-08-11 Dmitry Melnik <dm@ispras.ru>
5221
5222 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
5223 recognized by cannot_copy_insn_p hook and volatile instructions.
5224
5225 2011-08-11 Dmitry Melnik <dm@ispras.ru>
5226
5227 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
5228
5229 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
5230
5231 * doc/md.texi (define_bypass): Say that the instruction names can
5232 be filename-style globs.
5233 * Makefile.in (FNMATCH_H): Define.
5234 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
5235 * genattrtab.c: Include fnmatch.h.
5236 (bypass_list): Change field name from "insn" to "pattern".
5237 (gen_bypass_1): Update accordingly.
5238 (process_bypasses): Use fnmatch to check for matches between
5239 insn reservations and define_bypasses.
5240 * genautomata.c: Include fnmatch.h.
5241 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
5242 and out_pattern respectively.
5243 (gen_bypass, insert_bypass): Update accordingly.
5244 (for_each_matching_insn, process_bypass_2, process_bypass_1)
5245 (process_bypass): New functions.
5246 (process_decls): Use process_bypass. Update after field name changes.
5247
5248 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
5249
5250 PR target/49687
5251 * config/avr/avr.md (smulqi3_highpart): New insn.
5252 (umulqi3_highpart): New insn.
5253 (*subqi3.ashiftrt7): New insn.
5254 (smulhi3_highpart): New expander.
5255 (umulhi3_highpart): Nex expander.
5256 (*smulhi3_highpart_call): New insn.
5257 (*umulhi3_highpart_call): New insn.
5258 (extend_u): New code attribute.
5259 (extend_prefix): Rename code attribute to extend_su.
5260 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
5261 widening QI/HI multiply.
5262
5263 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
5264
5265 PR tree-optimization/50039
5266 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
5267 that DEF_STMT has a stmt_vec_info.
5268
5269 2011-08-10 Richard Guenther <rguenther@suse.de>
5270
5271 * tree.h (can_trust_pointer_alignment): Remove.
5272 * builtins.c (can_trust_pointer_alignment): Remove.
5273
5274 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5275
5276 * c-typeck.c (scalar_to_vector): New function. Try scalar to
5277 vector conversion.
5278 (stv_conv): New enum for scalar_to_vector return type.
5279 (build_binary_op): Adjust.
5280 * doc/extend.texi: Description of scalar to vector expansion.
5281
5282 2011-08-10 Richard Guenther <rguenther@suse.de>
5283
5284 * tree.h (get_pointer_alignment): Remove max-align argument.
5285 (get_object_alignment): Likewise.
5286 * builtins.c (get_object_alignment_1): Adjust.
5287 (get_object_alignment): Remove max-align argument.
5288 (get_pointer_alignment): Likewise.
5289 (expand_builtin_strlen): Adjust.
5290 (expand_builtin_memcpy): Likewise.
5291 (expand_builtin_mempcpy_args): Likewise.
5292 (expand_builtin_strncpy): Likewise.
5293 (expand_builtin_memset_args): Likewise.
5294 (expand_builtin_memcmp): Likewise.
5295 (expand_builtin_strcmp): Likewise.
5296 (expand_builtin_strncmp): Likewise.
5297 (get_builtin_sync_mem): Likewise.
5298 (fold_builtin_memset): Likewise.
5299 (fold_builtin_memory_op): Likewise.
5300 (expand_builtin_memory_chk): Likewise.
5301 * emit-rtl.c (get_mem_align_offset): Likewise.
5302 (set_mem_attributes_minus_bitpos): Likewise.
5303 * expr.c (expand_assignment): Likewise.
5304 (expand_expr_real_1): Likewise.
5305 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
5306 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
5307 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
5308 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
5309 * value-prof.c (gimple_stringops_transform): Likewise.
5310
5311 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
5312
5313 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
5314 * doc/tm.texi: Regenerate.
5315
5316 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
5317
5318 PR target/29560
5319 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
5320 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
5321 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
5322 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
5323 shift target is unused.
5324
5325 2011-08-10 Richard Guenther <rguenther@suse.de>
5326
5327 PR tree-optimization/49937
5328 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
5329 using get_object_alignment_1.
5330
5331 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
5332
5333 * config/i386/i386.c (ix86_emit_i387_round): New function.
5334 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
5335 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
5336 Use ix86_emit_i387_round to expand round function for i387 math.
5337 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
5338 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
5339
5340 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5341
5342 * config/sync.c: Move to ../libgcc.
5343 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
5344 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
5345 Remove.
5346
5347 2011-08-09 Anatoly Sokolov <aesok@post.ru>
5348
5349 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
5350 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
5351 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
5352 Change 'from' and 'to' arguments type to reg_class_t.
5353 (TARGET_REGISTER_MOVE_COST): Define.
5354
5355 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
5356
5357 PR target/50026
5358 Revert:
5359 PR rtl-optimization/49990
5360 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
5361 ignore classes which can not change mode.
5362 (find_costs_and_classes): Ditto.
5363
5364 2011-08-09 Richard Guenther <rguenther@suse.de>
5365
5366 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
5367 information for ranges with only negative values.
5368 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
5369 BIT_AND_EXPR handling to handle ranges with negative values.
5370
5371 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
5372
5373 * config/i386/i386.c: Remove traling spaces.
5374 * config/i386/sse.md: Likewise.
5375 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
5376 (*fma_fmsub_<mode>): Likewise.
5377 (*fma_fnmadd_<mode>): Likewise.
5378 (*fma_fnmsub_<mode>): Likewise.
5379
5380 2011-08-09 Nick Clifton <nickc@redhat.com>
5381
5382 * config/rx/rx.md: Disable extender peepholes at -O3.
5383
5384 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
5385
5386 PR target/49781
5387 * config/i386/i386.md (reload_noff_load): New.
5388 (reload_noff_store): Ditto.
5389 * config/i386/i386.c (ix86_secondary_reload): Use
5390 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
5391 double-word moves from/to non-offsetable addresses instead of
5392 generating XMM temporary.
5393
5394 2011-08-09 Anatoly Sokolov <aesok@post.ru>
5395
5396 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
5397
5398 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
5399
5400 PR tree-optimization/50014
5401 * tree-vect-loop.c (vectorizable_reduction): Get def type before
5402 calling vect_get_vec_def_for_stmt_copy ().
5403
5404 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
5405
5406 PR rtl-optimization/49990
5407 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
5408 ignore classes which can not change mode.
5409 (find_costs_and_classes): Ditto.
5410
5411 2011-08-08 Richard Henderson <rth@redhat.com>
5412
5413 PR middle-end/49990
5414 * config/i386/i386.c (ix86_expand_prologue): Call
5415 for SEH target gen_prologue_use instead of gen_blockage
5416 at prologue's end.
5417
5418 2011-08-08 Martin Jambor <mjambor@suse.cz>
5419
5420 PR middle-end/49923
5421 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
5422 memory alignment.
5423
5424 2011-08-08 Diego Novillo <dnovillo@google.com>
5425
5426 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
5427 (DATA_STREAMER_H): New.
5428 (GIMPLE_STREAMER_H): New.
5429 (TREE_STREAMER_H): New.
5430 (STREAMER_HOOKS_H): New.
5431 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
5432 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
5433 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
5434 (data-streamer.o): New.
5435 (data-streamer-in.o): New.
5436 (data-streamer-out.o): New.
5437 (gimple-streamer-in.o): New.
5438 (gimple-streamer-out.o): New.
5439 (streamer-hooks.o): New.
5440 (tree-streamer.o): New.
5441 (tree-streamer-in.o): New.
5442 (tree-streamer-out.o): New.
5443 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
5444 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
5445 GIMPLE_STREAMER_H and TREE_STREAMER_H.
5446 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
5447 GIMPLE_STREAMER_H and TREE_STREAMER_H.
5448 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
5449 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
5450 (ipa-inline-analysis.o): Likewise.
5451 (ipa-pure-const.o): Likewise.
5452 * data-streamer-in.c: New.
5453 * data-streamer-out.c: New.
5454 * data-streamer.c: New.
5455 * data-streamer.h: New.
5456 * gimple-streamer-in.c: New.
5457 * gimple-streamer-out.c: New.
5458 * gimple-streamer.h: New.
5459 * ipa-inline-analysis.c: Include data-streamer.h.
5460 * ipa-prop.c: Include data-streamer.h.
5461 * ipa-pure-const.c: Include data-streamer.h.
5462 * lto-cgraph.c: Include data-streamer.h.
5463 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
5464 (lto_input_widest_uint_uleb128): Likewise.
5465 (lto_input_sleb128): Likewise.
5466 (bp_unpack_var_len_unsigned): Likewise.
5467 (bp_unpack_var_len_int): Likewise.
5468 * lto-section-out.c (lto_output_uleb128_stream): Move to
5469 data-streamer-out.c.
5470 (lto_output_widest_uint_uleb128_stream): Likewise.
5471 (lto_output_sleb128_stream): Likewise.
5472 (bp_pack_var_len_unsigned): Likewise.
5473 (bp_pack_var_len_int): Likewise.
5474 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
5475 (struct string_slot): Remove. Update all users.
5476 (lto_tag_check_set): Make extern.
5477 (lto_tag_check_range): Move to lto-streamer.h.
5478 (lto_tag_check): Likewise.
5479 (hash_string_slot_node): Remove. Update all users.
5480 (eq_string_slot_node): Remove. Update all users.
5481 (string_for_index): Move to data-streamer-in.c
5482 (input_string_internal): Likewise.
5483 (input_string_cst): Move to tree-streamer-in.c.
5484 (input_identifier): Likewise.
5485 (lto_input_string): Move to data-streamer-in.c
5486 (input_record_start): Move to data-streamer.h
5487 (canon_file_name): Use new definition of struct string_slot
5488 from data-streamer.h. Set S_SLOT.LEN.
5489 (lto_input_location): Make extern.
5490 (lto_input_chain): Move to tree-streamer-in.c.
5491 (lto_init_eh): Make extern.
5492 (input_phi): Move to gimple-streamer-in.c.
5493 (input_gimple_stmt): Likewise.
5494 (input_bb): Likewise.
5495 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
5496 (unpack_ts_real_cst_value_fields): Likewise.
5497 (unpack_ts_fixed_cst_value_fields): Likewise.
5498 (unpack_ts_decl_common_value_fields): Likewise.
5499 (unpack_ts_decl_wrtl_value_fields): Likewise.
5500 (unpack_ts_decl_with_vis_value_fields): Likewise.
5501 (unpack_ts_function_decl_value_fields): Likewise.
5502 (unpack_ts_type_common_value_fields): Likewise.
5503 (unpack_ts_block_value_fields): Likewise.
5504 (unpack_ts_translation_unit_decl_value_fields): Likewise.
5505 (unpack_value_fields): Likewise.
5506 (lto_materialize_tree): Likewise.
5507 (lto_input_ts_common_tree_pointers): Likewise.
5508 (lto_input_ts_vector_tree_pointers): Likewise.
5509 (lto_input_ts_complex_tree_pointers): Likewise.
5510 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
5511 (lto_input_ts_decl_common_tree_pointers): Likewise.
5512 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
5513 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
5514 (lto_input_ts_field_decl_tree_pointers): Likewise.
5515 (lto_input_ts_function_decl_tree_pointers): Likewise.
5516 (lto_input_ts_type_common_tree_pointers): Likewise.
5517 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5518 (lto_input_ts_list_tree_pointers): Likewise.
5519 (lto_input_ts_vec_tree_pointers): Likewise.
5520 (lto_input_ts_exp_tree_pointers): Likewise.
5521 (lto_input_ts_block_tree_pointers): Likewise.
5522 (lto_input_ts_binfo_tree_pointers): Likewise.
5523 (lto_input_ts_constructor_tree_pointers): Likewise.
5524 (lto_input_ts_target_option): Likewise.
5525 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
5526 (lto_input_tree_pointers): Likewise.
5527 (lto_get_pickled_tree): Likewise.
5528 (lto_get_builtin_tree): Likewise.
5529 (lto_read_tree): Likewise.
5530 (lto_input_integer_cst): Likewise.
5531 (lto_input_tree): Likewise.
5532 * lto-streamer-out.c: Include data-streamer.h,
5533 gimple-streamer.h and streamer-hooks.h.
5534 (struct string_slot): Move to data-streamer.h.
5535 (hash_string_slot_node): Likewise.
5536 (eq_string_slot_node): Likewise.
5537 (lto_string_index): Move to data-streamer-out.c.
5538 (lto_output_string_with_length): Likewise.
5539 (lto_output_string): Likewise.
5540 (output_string_cst): Move to tree-streamer-out.c.
5541 (output_identifier): Likewise.
5542 (output_zero): Move to data-streamer-out.c
5543 (output_uleb128): Likewise.
5544 (output_sleb128): Likewise.
5545 (output_record_start): Move to data-streamer.h
5546 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
5547 (pack_ts_real_cst_value_fields): Likewise.
5548 (pack_ts_fixed_cst_value_fields): Likewise.
5549 (pack_ts_decl_common_value_fields): Likewise.
5550 (pack_ts_decl_wrtl_value_fields): Likewise.
5551 (pack_ts_decl_with_vis_value_fields): Likewise.
5552 (pack_ts_function_decl_value_fields): Likewise.
5553 (pack_ts_type_common_value_fields): Likewise.
5554 (pack_ts_block_value_fields): Likewise.
5555 (pack_ts_translation_unit_decl_value_fields): Likewise.
5556 (pack_value_fields): Likewise.
5557 (lto_output_chain): Likewise.
5558 (lto_output_ts_common_tree_pointers): Likewise.
5559 (lto_output_ts_vector_tree_pointers): Likewise.
5560 (lto_output_ts_complex_tree_pointers): Likewise.
5561 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
5562 (lto_output_ts_decl_common_tree_pointers): Likewise.
5563 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
5564 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
5565 (lto_output_ts_field_decl_tree_pointers): Likewise.
5566 (lto_output_ts_function_decl_tree_pointers): Likewise.
5567 (lto_output_ts_type_common_tree_pointers): Likewise.
5568 (lto_output_ts_type_non_common_tree_pointers): Likewise.
5569 (lto_output_ts_list_tree_pointers): Likewise.
5570 (lto_output_ts_vec_tree_pointers): Likewise.
5571 (lto_output_ts_exp_tree_pointers): Likewise.
5572 (lto_output_ts_block_tree_pointers): Likewise.
5573 (lto_output_ts_binfo_tree_pointers): Likewise.
5574 (lto_output_ts_constructor_tree_pointers): Likewise.
5575 (lto_output_ts_target_option): Likewise.
5576 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
5577 (lto_output_tree_pointers): Likewise.
5578 (lto_output_tree_header): Likewise.
5579 (lto_output_builtin_tree): Likewise.
5580 (lto_write_tree): Likewise.
5581 (lto_output_integer_cst): Likewise.
5582 (lto_output_tree): Likewise.
5583 (output_phi): Move to gimple-streamer-out.c.
5584 (output_gimple_stmt): Likewise.
5585 (output_bb): Likewise.
5586 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
5587 (streamer_hooks): Move to streamer-hooks.c.
5588 (check_handled_ts_structures): Move to tree-streamer.c
5589 (lto_streamer_cache_add_to_node_array): Likewise.
5590 (lto_streamer_cache_insert_1): Likewise.
5591 (lto_streamer_cache_insert): Likewise.
5592 (lto_streamer_cache_insert_at): Likewise.
5593 (lto_streamer_cache_append): Likewise.
5594 (lto_streamer_cache_lookup): Likewise.
5595 (lto_streamer_cache_get): Likewise.
5596 (lto_record_common_node): Likewise.
5597 (lto_preload_common_nodes): Likewise.
5598 (lto_streamer_cache_create): Likewise.
5599 (lto_streamer_cache_delete): Likewise.
5600 (streamer_hooks_init): Move to streamer-hooks.c.
5601 * lto-streamer.h: Include diagnostic.h
5602 (struct output_block, struct lto_input_block,
5603 struct data_in, struct bitpack_d): Remove forward declarations.
5604 (struct bitpack_d): Move to data-streamer.h.
5605 (struct lto_streamer_cache_d): Move to tree-streamer.h.
5606 (struct streamer_hooks): Move to streamer-hooks.h.
5607 (bp_pack_var_len_unsigned): Move to data-streamer.h.
5608 (bp_pack_var_len_int): Likewise.
5609 (bp_unpack_var_len_unsigned): Likewise.
5610 (bp_unpack_var_len_int): Likewise.
5611 (lto_input_location): Declare.
5612 (lto_tag_check_set): Declare.
5613 (lto_init_eh): Declare.
5614 (lto_output_tree_ref): Declare.
5615 (lto_output_location): Declare.
5616 (bitpack_create): Move to data-streamer.h.
5617 (bp_pack_value): Likewise.
5618 (lto_output_bitpack): Likewise.
5619 (lto_input_bitpack): Likewise.
5620 (bp_unpack_value): Likewise.
5621 (lto_output_1_stream): Likewise.
5622 (lto_input_1_unsigned): Likewise.
5623 (lto_output_int_in_range): Likewise.
5624 (lto_input_int_in_range): Likewise.
5625 (bp_pack_int_in_range): Likewise.
5626 (bp_unpack_int_in_range): Likewise.
5627 (lto_output_enum): Likewise.
5628 (lto_input_enum): Likewise.
5629 (bp_pack_enum): Likewise.
5630 (bp_unpack_enum): Likewise.
5631 * streamer-hooks.c: New.
5632 * streamer-hooks.h: New.
5633 * tree-streamer-in.c: New.
5634 * tree-streamer-out.c: New.
5635 * tree-streamer.c: New.
5636 * tree-streamer.h: New.
5637
5638 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5639
5640 * gthr-posix95.h: Remove.
5641 * gthr.h [_PTHREADS95]: Remove.
5642 * configure.ac (enable_threads): Remove posix95.
5643 * configure: Regenerate.
5644 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
5645
5646 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
5647
5648 PR target/49781
5649 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
5650 SImode addresses.
5651 (ix86_print_operand_address): Handle zero-extended addresses.
5652 (memory_address_length): Add length of addr32 prefix for
5653 zero-extended addresses.
5654 (ix86_secondary_reload): Handle moves to/from double-word general
5655 registers from/to zero-extended addresses.
5656 * config/i386/predicates.md (lea_address_operand): Reject
5657 zero-extended operands.
5658
5659 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
5660
5661 PR other/48007
5662 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
5663
5664 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
5665 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
5666
5667 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
5668 (_Unwind_Context_Reg_Val): Likewise.
5669 (_Unwind_Get_Unwind_Word): Likewise.
5670 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
5671 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
5672 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
5673 for EXTENDED_CONTEXT_BIT.
5674 (__frame_state_for): Likewise.
5675 (uw_init_context_1): Likewise.
5676 (_Unwind_GetGR): Updated.
5677 (_Unwind_SetGR): Likewise.
5678 (_Unwind_GetGRPtr): Likewise.
5679 (_Unwind_SetGRPtr): Likewise.
5680 (_Unwind_SetGRValue): Likewise.
5681 (_Unwind_GRByValue): Likewise.
5682 (uw_install_context_1): Likewise.
5683
5684 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
5685 ASSUME_EXTENDED_UNWIND_CONTEXT.
5686 * doc/tm.texi: Regenerated.
5687
5688 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5689
5690 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
5691
5692 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5693
5694 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
5695 Linux/GNU-specific.
5696 (DEC Alpha Options, -mtune): Likewise.
5697 (MIPS Options, -march): native is supported on IRIX.
5698
5699 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5700
5701 * config/sparc/driver-sparc.c: New file.
5702 * config/sparc/x-sparc: New file.
5703 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
5704 * config/sparc/sparc.opt (native): New value for enum processor_type.
5705 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
5706 * config/sparc/sparc.c (sparc_option_override): Abort if
5707 PROCESSOR_NATIVE gets here.
5708 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
5709 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
5710 DRIVER_SELF_SPECS): Define.
5711 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
5712 (SPARC Options, -mtune): Likewise.
5713 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
5714 Substitute result.
5715 * configure: Regenerate.
5716 * Makefile.in (EXTRA_GCC_LIBS): Set.
5717 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
5718 (cpp$(exeext)): Likewise.
5719
5720 2011-08-08 Richard Guenther <rguenther@suse.de>
5721
5722 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
5723 split out from ...
5724 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
5725 by composition.
5726
5727 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
5728
5729 PR tree-optimization/50005
5730 * ipa-inline-analysis (remap_predicate): Add cast to
5731 silence signed/unsigned comparison warning.
5732
5733 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
5734
5735 * modulo-sched.c (get_sched_window): Use a table for the debug output.
5736 Print the current ii.
5737 (sms_schedule_by_order): Reduce whitespace in dump line.
5738
5739 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
5740
5741 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
5742 and one loop for successors. Fix upper bound of memory range.
5743
5744 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5745
5746 PR target/50001
5747 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
5748 (TARGET_INSTANTIATE_DECLS): New define.
5749
5750 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
5751 Mikael Morin <mikael.morin@sfr.fr>
5752
5753 * Makefile.in (INCLUDES_FOR_TARGET): New.
5754 (LIBGCC2_CFLAGS): Use it.
5755 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
5756
5757 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5758
5759 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
5760 frame->save_regs_using_mov calculation.
5761
5762 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5763
5764 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
5765 * config/i386/sse.md (castmode): New mode attribute.
5766 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
5767 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
5768
5769 2011-08-05 Jan Hubicka <jh@suse.cz>
5770
5771 PR middle-end/49494
5772 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
5773
5774 2011-08-05 Jan Hubicka <jh@suse.cz>
5775
5776 PR middle-end/49500
5777 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
5778 handle aliases.
5779 (create_emultls_var):New function.
5780 (ipa_lower_emutls): Handle aliases correctly.
5781
5782 2011-08-05 Jan Hubicka <jh@suse.cz>
5783
5784 PR middle-end/49735
5785 * ipa-inline.c (recursive_inlining): Look through aliases.
5786
5787 2011-08-05 Jason Merrill <jason@redhat.com>
5788
5789 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
5790 declarations to beginning of function.
5791
5792 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
5793
5794 PR rtl-optimization/49900
5795 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
5796 ensure basic blocks stay in the same order.
5797
5798 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
5799
5800 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
5801 store_bit_field.
5802 (s390_expand_atomic): Same.
5803
5804 2011-08-05 Richard Henderson <rth@redhat.com>
5805
5806 PR rtl-opt/49977
5807 * dwarf2cfi.c (scan_insn_after): Split out of ...
5808 (scan_trace): ... here. Correctly place notes wrt sequences.
5809
5810 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
5811 Richard Henderson <rth@redhat.com>
5812
5813 PR rtl-opt/49982
5814 * expr.c (fixup_args_size_notes): Look through no-op moves.
5815
5816 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5817
5818 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
5819 of "m" for operand 0. Add type and mode attribute.
5820 (*pushxf_nointeger"): Use "<" constraint for operand 0.
5821 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
5822 constraint instead of "o" for opreand 1.
5823 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
5824 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
5825 operand 0, alternative 4.
5826 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
5827
5828 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5829
5830 * config/i386/predicates.md (lea_address_operand): Rename from
5831 no_seg_address_operand.
5832 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
5833 (*lea_1_zext): Ditto.
5834 (*lea_2): Ditto.
5835 (*lea_2_zext): Ditto.
5836
5837 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5838
5839 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
5840 parts.base and parts.index.
5841 * config/i386/predicates.md (aligned_operand): Ditto.
5842 (cmpxchg8b_pic_memory_operand): Ditto.
5843
5844 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5845
5846 * config/soft-fp: Move to ../libgcc.
5847 * Makefile.in (SFP_MACHINE): Remove.
5848 (libgcc-support): Remove $(SFP_MACHINE) dependency.
5849 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
5850 * config/arm/t-arm-softfp: Move to
5851 ../libgcc/config/arm/t-softfp.
5852 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
5853 * config/c6x/t-c6x-softfp: Remove.
5854 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
5855 * config/i386/t-fprules-softfp: Move to
5856 ../libgcc/config/t-softfp-tf.
5857 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
5858 * config/ia64/t-fprules-softfp: Remove.
5859 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
5860 * config/lm32/t-fprules-softfp: Remove.
5861 * config/moxie/sfp-machine.h: Remove.
5862 * config/moxie/t-moxie-softfp: Remove.
5863 * config/rs6000/darwin-ldouble-format: Move to
5864 ../libgcc/config/rs6000/ibm-ldouble-format.
5865 * config/rs6000/darwin-ldouble.c: Move to
5866 ../libgcc/config/rs6000/ibm-ldouble.c
5867 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
5868 * config/rs6000/libgcc-ppc64.ver: Likewise.
5869 * config/rs6000/sfp-machine.h: Likewise.
5870 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
5871 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
5872 (LIB2FUNCS_EXTRA): Remove.
5873 (TARGET_LIBGCC2_CFLAGS): Remove.
5874 * config/rs6000/t-aix52: Likewise
5875 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
5876 $(srcdir)/config/rs6000/darwin-ldouble.c.
5877 (SHLIB_MAPFILES): Remove.
5878 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
5879 $(srcdir)/config/rs6000/darwin-ldouble.c.
5880 * config/rs6000/t-fprules-softfp: Move to
5881 ../libgcc/config/t-softfp-sfdf.
5882 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
5883 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
5884 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
5885 $(srcdir)/config/rs6000/darwin-ldouble.c.
5886 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
5887 * config/score/t-score-softfp: Remove.
5888 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
5889 soft-fp/t-softfp from tmake_file.
5890 (arm*-*-uclinux*): Likewise.
5891 (arm*-*-ecos-elf): Likewise.
5892 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
5893 (arm*-*-rtems*): Likewise.
5894 (arm*-*-elf): Likewise.
5895 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
5896 tmake_file.
5897 (moxie-*-uclinux*): Likewise.
5898 (moxie-*-rtems*): Likewise.
5899 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
5900 tmake_file.
5901 (lm32-*-rtems*): Likewise.
5902 (lm32-*-uclinux*): Likewise.
5903 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
5904 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
5905 (powerpc-*-linux*, powerpc64-*-linux*): Remove
5906 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
5907 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
5908 tmake_file.
5909 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
5910 tmake_file.
5911 (tic6x-*-uclinux): Likewise.
5912 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
5913 soft-fp/t-softfp from tmake_file.
5914 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
5915 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
5916 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
5917 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
5918 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
5919
5920 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5921
5922 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
5923 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
5924 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
5925 TPBIT, TPBIT_FUNCS.
5926 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
5927 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
5928 Remove.
5929 * config/arm/t-vxworks: Likewise.
5930 * config/arm/t-wince-pe: Likewise.
5931 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
5932 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5933 * config/bfin/t-bfin-elf: Likewise.
5934 * config/bfin/t-bfin-linux: Likewise.
5935 * config/bfin/t-bfin-uclinux: Likewise.
5936 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
5937 Remove.
5938 * config/fr30/t-fr30: Likewise.
5939 * config/frv/t-frv: Likewise.
5940 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
5941 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5942 * config/m32c/t-m32c: Likewise.
5943 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
5944 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5945 * config/mcore/t-mcore: Likewise.
5946 * config/mep/t-mep: Likewise.
5947 * config/microblaze/t-microblaze: Likewise.
5948 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
5949 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5950 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
5951 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5952 * config/mn10300/t-linux: Remove.
5953 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5954 * config/pdp11/t-pdp11: Likewise.
5955 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
5956 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
5957 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5958 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
5959 * config/rs6000/t-aix52: Likewise.
5960 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
5961 $(srcdir)/config/rs6000/ppc64-fp.c.
5962 * config/rs6000/t-fprules-fpbit: Remove.
5963 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
5964 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5965 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
5966 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5967 * config/sparc/t-elf: Likewise.
5968 * config/sparc/t-leon: Likewise.
5969 * config/sparc/t-leon3: Likewise.
5970 * config/spu/t-spu-elf: Likewise.
5971 (DPBIT_FUNCS): Remove.
5972 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5973 * config/v850/t-v850: Likewise.
5974 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
5975 (avr-*-*): Likewise.
5976 (h8300-*-rtems*): Set libgcc_tm_file.
5977 (h8300-*-elf*): Likewise.
5978 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
5979 tmake_file.
5980 (powerpc-*-eabisim*): Likewise.
5981 (powerpc-*-elf*): Likewise.
5982 (powerpc-*-eabialtivec*): Likewise.
5983 (powerpc-xilinx-eabi*): Likewise.
5984 (powerpc-*-eabi*): Likewise.
5985 (powerpc-*-rtems*): Likewise.
5986 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
5987 (powerpcle-*-elf*): Likewise.
5988 (powerpcle-*-eabisim*): Likewise.
5989 (powerpcle-*-eabi*): Likewise.
5990 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
5991 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
5992 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
5993 Remove.
5994
5995 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5996
5997 * Makefile.in (UNWIND_H): Remove.
5998 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
5999 ../libgcc/Makefile.in.
6000 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
6001 (LIBUNWINDDEP): Remove.
6002 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
6003 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
6004 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
6005 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
6006 Don't copy $(UNWIND_H).
6007 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
6008 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
6009 * aclocal.m4: Regenerate.
6010 * configure: Regenerate.
6011 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
6012 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
6013 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
6014 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
6015 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
6016 * config/arm/libunwind.S, config/arm/pr-support.c,
6017 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
6018 ../libgcc/config/arm.
6019 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
6020 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
6021 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
6022 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
6023 ($(T)frvend$(objext)): Likewise.
6024 * config/ia64/t-glibc (LIB2ADDEH): Remove.
6025 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
6026 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
6027 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
6028 ../libgcc/config/ia64.
6029 * config/ia64/t-hpux (LIB2ADDEH): Remove.
6030 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
6031 * config/ia64/t-vms (LIB2ADDEH): Remove.
6032 * config/ia64/vms.h (UNW_IVMS_MODE,
6033 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
6034 * config/picochip/t-picochip (LIB2ADDEH): Remove.
6035 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
6036 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
6037 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
6038 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
6039 $(srcdir)/../libgcc to refer to unwinder sources.
6040 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
6041 * config/t-darwin (LIB2ADDEH): Remove.
6042 * config/t-freebsd (LIB2ADDEH): Remove.
6043 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
6044 * config/t-libunwind-elf: Move to ../libgcc/config.
6045 * config/t-linux (LIB2ADDEH): Remove.
6046 * config/t-sol2 (LIB2ADDEH): Remove.
6047 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
6048 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
6049
6050 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
6051
6052 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
6053
6054 * doc/invoke.texi: Document core-avx-i.
6055
6056 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6057
6058 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
6059
6060 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
6061
6062 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
6063 result of multiple results reduction when extracting the final
6064 value using scalar code.
6065
6066 2011-08-05 Richard Guenther <rguenther@suse.de>
6067
6068 PR tree-optimization/49984
6069 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
6070
6071 2011-08-05 Richard Guenther <rguenther@suse.de>
6072
6073 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
6074 return true for constant integer ranges.
6075 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
6076 BIT_IOR_EXPR handling.
6077
6078 2011-08-04 Kai Tietz <ktietz@redhat.com>
6079
6080 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
6081 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
6082
6083 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
6084
6085 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
6086 pattern def statement, and its access macro.
6087 (NUM_PATTERNS): Set to 5.
6088 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
6089 pattern def statement.
6090 (vect_transform_loop): Likewise.
6091 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
6092 function vect_recog_over_widening_pattern ().
6093 (vect_operation_fits_smaller_type): New function.
6094 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
6095 Likewise.
6096 (vect_pattern_recog_1): Move the code that marks pattern
6097 statements to vect_mark_pattern_stmts (), and call it. Update
6098 documentation.
6099 * tree-vect-stmts.c (vect_supportable_shift): New function.
6100 (vect_analyze_stmt): Handle pattern def statement.
6101 (new_stmt_vec_info): Initialize pattern def statement.
6102
6103 2011-08-04 Richard Henderson <rth@redhat.com>
6104
6105 PR target/49964
6106 * config/i386/i386.c (ix86_expand_call): Don't create nested
6107 PARALLELs for TARGET_VZEROUPPER.
6108 (ix86_split_call_vzeroupper): Fix extraction of the original call.
6109 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
6110 recognize nested PARALLELs.
6111 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
6112 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
6113 *sibcall_value_pop_vzeroupper): Likewise.
6114
6115 2011-08-04 Richard Henderson <rth@redhat.com>
6116
6117 PR middle-end/49968
6118 * calls.c (expand_call): Use fixup_args_size_notes for
6119 emit_stack_restore.
6120 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
6121 in non-standard modes.
6122
6123 2011-08-04 Jakub Jelinek <jakub@redhat.com>
6124
6125 * gcc.c (self_spec): New variable.
6126 (static_specs): Add self_spec.
6127 (main): Call do_self_spec on "self_spec" specs after reading
6128 user specs files. Move compare_debug handling right after that.
6129
6130 2011-08-04 Richard Guenther <rguenther@suse.de>
6131
6132 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
6133 (value_range_nonnegative_p): New function.
6134 (ssa_name_nonnegative_p): Use it.
6135 (value_range_constant_singleton): New function.
6136 (op_with_constant_singleton_value_range): Use it.
6137 (extract_range_from_binary_expr_1): New function, split out from ...
6138 (extract_range_from_binary_expr): ... this. Remove fallback
6139 constant folding done here.
6140
6141 2011-08-04 Richard Guenther <rguenther@suse.de>
6142
6143 PR tree-optimization/49806
6144 * tree-vrp.c (op_with_boolean_value_range_p): New function.
6145 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
6146 a new statement for a final conversion to bool.
6147
6148 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
6149
6150 * gengtype-state.c: Include "bconfig.h" if
6151 GENERATOR_FILE is defined, "config.h" otherwise.
6152 * gengtype.c: Likewise.
6153 * gengtype-lex.l: Likewise.
6154 * gengtype-parse.c: Likewise.
6155 * Makefile.in (gengtype-lex.o-warn): New variable.
6156 (plugin_resourcesdir): Likewise.
6157 (plugin_bindir): Likewise.
6158 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
6159 (MOSTLYCLEANFILES): Add gengtype$(exeext).
6160 (native): Depend on gengtype$(exeext) is $enable_plugin
6161 is set to "yes".
6162 (gtype.state): Depend on s-gtype. Use temporary file.
6163 (gengtype-lex.o): New rule.
6164 (gengtype-parse.o): Likewise.
6165 (gengtype-state.o): Likewise.
6166 (gengtype$(exeext)): Likewise.
6167 (install-gengtype): Likewise.
6168 (gengtype.o): Likewise.
6169 (build/gengtype.o): Depend on version.h.
6170 (build/gengtype-state): Depend on double-int.h, version.h,
6171 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
6172 (install-plugin): Depend on install-gengtype.
6173
6174 2011-08-04 Jakub Jelinek <jakub@redhat.com>
6175
6176 PR middle-end/49905
6177 * tree.h (init_attributes): New prototype.
6178 * attribs.c (init_attributes): No longer static.
6179
6180 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6181
6182 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
6183 maybe_suffix.
6184
6185 2011-08-03 David Li <davidxl@google.com>
6186
6187 * tree-optimize.c (execute_fixup_cfg): Fix up entry
6188 outgoing edge counts after inlining.
6189
6190 2011-08-03 David Li <davidxl@google.com>
6191
6192 * profile.c (compute_branch_probabilities): Compute
6193 function frequency after profile annotation.
6194
6195 2011-08-04 Alan Modra <amodra@gmail.com>
6196
6197 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
6198 use_backchain_to_restore_sp initialisation.
6199 (rs6000_legitimate_offset_address_p): Simplify offset test.
6200
6201 2011-08-03 Richard Henderson <rth@redhat.com>
6202
6203 * config/spu/spu.md: Use define_c_enum instead of define_constants.
6204 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
6205 (UNSPECV_NOP): New.
6206
6207 2011-08-03 Richard Henderson <rth@redhat.com>
6208
6209 PR target/34888
6210 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
6211
6212 2011-08-03 Jakub Jelinek <jakub@redhat.com>
6213
6214 PR tree-optimization/49948
6215 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
6216
6217 2011-08-03 Anatoly Sokolov <aesok@post.ru>
6218
6219 * config/m32c/m32c.c (class_sizes): Remove.
6220 (reduce_class): Change arguments and return type to reg_class_t.
6221 Change type cc var to HARD_REG_SET. Change type best var to
6222 reg_class_t. Change type best_size var to unsigned int. Remove
6223 initialization class_sizes var. Use reg_class_size array instead
6224 of class_sizes. Use reg_class_contents array instead
6225 of class_contents.
6226
6227 2011-08-03 Richard Guenther <rguenther@suse.de>
6228
6229 PR middle-end/49958
6230 * fold-const.c (fold_binary_loc): Only associate
6231 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
6232 overflow wraps.
6233
6234 2011-08-03 Alan Modra <amodra@gmail.com>
6235
6236 PR rtl-optimization/49941
6237 * jump.c (mark_jump_label): Comment.
6238 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
6239 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
6240 (mark_used_flags): Don't mark RETURN.
6241
6242 2011-08-03 Richard Guenther <rguenther@suse.de>
6243
6244 PR tree-optimization/49938
6245 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
6246 deal with a POLYNOMIAL_CHREC.
6247
6248 2011-08-03 Revital Eres <revital.eres@linaro.org>
6249
6250 * modulo-sched.c (calculate_stage_count,
6251 calculate_must_precede_follow, get_sched_window,
6252 try_scheduling_node_in_cycle, remove_node_from_ps): Add
6253 declaration.
6254 (update_node_sched_params, set_must_precede_follow, optimize_sc):
6255 New functions.
6256 (reset_sched_times): Call update_node_sched_params.
6257 (sms_schedule): Call optimize_sc.
6258 (get_sched_window): Change function arguments.
6259 (sms_schedule_by_order): Update call to get_sched_window.
6260 Call set_must_precede_follow.
6261 (calculate_stage_count): Add function argument.
6262
6263 2011-08-02 Richard Henderson <rth@redhat.com>
6264
6265 PR target/49864
6266 PR target/49879
6267 * reg-notes.def (REG_ARGS_SIZE): New.
6268 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
6269 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
6270 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
6271 different stack levels.
6272 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
6273 (maybe_move_args_size_note): New.
6274 (combine_stack_adjustments_for_block): Use it.
6275 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
6276 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
6277 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
6278 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
6279 (cur_cfa): New.
6280 (queued_args_size): Remove.
6281 (add_cfi_args_size): Assert size is non-negative.
6282 (stack_adjust_offset, dwarf2out_args_size): Remove.
6283 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
6284 (notice_args_size, notice_eh_throw): New.
6285 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
6286 (dwarf2out_frame_debug_adjust_cfa): Likewise.
6287 (dwarf2out_frame_debug_cfa_offset): Likewise.
6288 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
6289 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
6290 (change_cfi_row): Don't emit args_size.
6291 (maybe_record_trace_start_abnormal): Split out from ...
6292 (maybe_record_trace_start): Here. Set args_size_undefined.
6293 (create_trace_edges): Update to match.
6294 (scan_trace): Handle REG_ARGS_SIZE.
6295 (connect_traces): Connect args_size between EH insns.
6296 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
6297 * explow.c (suppress_reg_args_size): New.
6298 (adjust_stack_1): Split out from ...
6299 (adjust_stack): ... here.
6300 (anti_adjust_stack): Use it.
6301 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
6302 * expr.c (mem_autoinc_base): New.
6303 (fixup_args_size_notes): New.
6304 (emit_single_push_insn_1): Rename from emit_single_push_insn.
6305 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
6306 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
6307 * reload1.c (reload_as_needed): Likewise.
6308 * rtl.h (fixup_args_size_notes): Declare.
6309
6310 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
6311
6312 PR bootstrap/49914
6313 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
6314 of abs.
6315 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
6316 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
6317
6318 2011-08-02 Richard Henderson <rth@redhat.com>
6319
6320 * config/h8300/h8300.c (push, pop): Return the insn.
6321 (h8300_swap_into_er6): Generate correct unwind info.
6322 (h8300_swap_out_of_er6): Likewise.
6323 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
6324 complex cfa expression.
6325 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
6326
6327 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
6328
6329 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
6330
6331 2011-08-02 Richard Henderson <rth@redhat.com>
6332
6333 PR target/49878
6334 * config/h8300/h8300.c (h8300_move_ok): New.
6335 * config/h8300/h8300-protos.h: Declare it.
6336 * config/h8300/h8300.md (P): New mode iterator.
6337 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
6338 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
6339 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
6340 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
6341 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
6342 and pushqi1_h8300hs_normal; use PRE_MODIFY and
6343 register_no_sp_elim_operand.
6344 (*pushhi1_h8300hs_<P>): Similarly.
6345 (pushqi1, pushhi1, pushhi1_h8300): Remove.
6346 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
6347
6348 2011-08-02 Richard Henderson <rth@redhat.com>
6349
6350 PR target/49881
6351 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
6352
6353 2011-08-02 Jakub Jelinek <jakub@redhat.com>
6354
6355 * c-parser.c (enum c_parser_prec): New enum, moved from within
6356 c_parser_binary_expression.
6357 (c_parser_binary_expression): Add PREC argument. Stop parsing
6358 if operator has lower or equal precedence than PREC.
6359 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
6360 callers.
6361 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
6362 Adjust c_finish_omp_atomic caller.
6363 (c_parser_omp_taskyield): New function.
6364 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
6365 (c_parser_omp_clause_name): Handle final and mergeable clauses.
6366 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
6367 functions.
6368 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
6369 and PRAGMA_OMP_CLAUSE_MERGEABLE.
6370 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
6371 (c_parser_omp_clause_reduction): Handle min and max.
6372 * c-typeck.c (c_finish_omp_clauses): Don't complain about
6373 const qualified predetermined vars in firstprivate clause.
6374 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6375 Handle MIN_EXPR and MAX_EXPR.
6376 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
6377 and OMP_CLAUSE_MERGEABLE.
6378 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
6379 and OMP_ATOMIC_CAPTURE_NEW.
6380 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
6381 OMP_CLAUSE_MERGEABLE.
6382 (omp_clause_code_name): Likewise.
6383 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6384 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
6385 and OMP_CLAUSE_MERGEABLE.
6386 (OMP_CLAUSE_FINAL_EXPR): Define.
6387 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
6388 OMP_CLAUSE_MERGEABLE.
6389 (expand_task_call): Likewise.
6390 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
6391 (expand_omp_atomic_fetch_op): Handle cases where old or new
6392 value is needed afterwards.
6393 (expand_omp_atomic): Call expand_omp_atomic_load resp.
6394 expand_omp_atomic_store.
6395 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
6396 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
6397 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
6398 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6399 * tree-nested.c (convert_nonlocal_omp_clauses,
6400 convert_local_omp_clauses): Likewise.
6401 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
6402 OMP_ATOMIC_CAPTURE_NEW): New.
6403 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
6404 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
6405 New inlines.
6406 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
6407 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
6408 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6409
6410 2011-08-02 Kai Tietz <ktietz@redhat.com>
6411
6412 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
6413 boolean-type.
6414 (ssa_forward_propagate_and_combine): Interprete result of
6415 forward_propagate_comparison.
6416 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
6417 boolean-typed operands for comparisons.
6418
6419 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
6420
6421 * config/avr/libgcc.S: Gather related function in the
6422 same input section.
6423 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
6424 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
6425 references.
6426 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
6427 __udivmodsi4, __divmodsi4, __prologue_saves__,
6428 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
6429 __do_copy_data, __do_clear_bss, __do_global_ctors,
6430 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
6431
6432 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
6433
6434 PR target/47766
6435 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
6436 (stack_protect_test): The pattern compares ptr_mode value.
6437
6438 2011-08-02 Alan Modra <amodra@gmail.com>
6439
6440 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
6441 note for save_LR_around_toc_setup sequence.
6442
6443 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
6444
6445 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
6446
6447 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
6448 Joseph Myers <joseph@codesourcery.com>
6449
6450 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
6451 * hwint.c: Include diagnostic-core.h.
6452 (abs_hwi): New.
6453 (gcd): Moved here...
6454 (pos_mul_hwi): New.
6455 (mul_hwi): New.
6456 (least_common_multiple): Moved here...
6457 * hwint.h (gcd): ... from here.
6458 (least_common_multiple): ... from here.
6459 (HOST_WIDE_INT_MIN): New.
6460 (HOST_WIDE_INT_MAX): New.
6461 (abs_hwi): Declared.
6462 (gcd): Declared.
6463 (pos_mul_hwi): Declared.
6464 (mul_hwi): Declared.
6465 (least_common_multiple): Declared.
6466 * omega.c (check_pos_mul): Removed.
6467 (check_mul): Removed.
6468 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
6469 mul_hwi instead of check_mul.
6470
6471 2011-08-01 Richard Henderson <rth@redhat.com>
6472
6473 PR target/49881
6474 * config/avr/avr.h (PUSH_ROUNDING): New.
6475 * config/avr/avr.md (pushqi1): Rename from *pushqi.
6476 (*pushhi, *pushsi, *pushsf): Remove.
6477 (MPUSH): New mode iterator.
6478 (push<MPUSH>1): New expander.
6479
6480 2011-08-01 Anatoly Sokolov <aesok@post.ru>
6481
6482 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
6483 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
6484 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
6485 mmix_preferred_output_reload_class): Remove.
6486 * config/mmix/mmix.c (mmix_preferred_reload_class,
6487 mmix_preferred_output_reload_class): Make static. Change rclass
6488 argument and return type to reg_class_t.
6489 (TARGET_PREFERRED_RELOAD_CLASS,
6490 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6491
6492 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
6493
6494 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
6495 handling.
6496
6497 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
6498
6499 PR target/47766
6500 * config/i386/i386.md (PTR): New.
6501 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
6502 (stack_protect_test): Likewise.
6503 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
6504 (stack_tls_protect_set_<mode>): Likewise.
6505 (stack_tls_protect_test_<mode>): Likewise.
6506
6507 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
6508
6509 PR target/49927
6510 * config/i386/i386.c (ix86_address_subreg_operand): New.
6511 (ix86_decompose_address): Use ix86_address_subreg_operand.
6512 (ix86_legitimate_address_p): Do not assert that subregs satisfy
6513 register_no_elim_operand in DImode.
6514
6515 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
6516
6517 PR tree-optimization/49926
6518 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
6519 in a chain doesn't have uses both inside and outside the loop.
6520
6521 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
6522
6523 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
6524 * config/avr/avr-devices.c (avr_mcu_types): Use it.
6525 * config/avr/avr-mcus.def (AVR_MCU): Use it.
6526 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
6527 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
6528 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
6529 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
6530 to detect if XJMP must not be skipped.
6531
6532 2011-08-02 Alan Modra <amodra@gmail.com>
6533
6534 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
6535 Delete.
6536 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
6537 (rs6000_emit_prologue): Don't prematurely return when
6538 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
6539 save_toc_in_prologue case.
6540 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
6541 calls_alloca.
6542
6543 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
6544
6545 * config/avr/avr-devices.c: Delete SVN property svn:executable.
6546 * config/avr/predicates.md: Ditto.
6547 * config/avr/driver-avr.c: Ditto.
6548 * config/avr/genopt.sh: Set SVN property svn:executable to *.
6549
6550 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
6551
6552 * calls.c (emit_library_call_value_1): Declare size only if
6553 BLOCK_REG_PADDING is defined.
6554
6555 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
6556
6557 PR target/49547
6558 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
6559 (x86_64-*-*): Likewise.
6560 * config/i386/i386.opt (mlzcnt): New.
6561 * config/i386/abmintrin.h: File removed.
6562 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
6563 * config/i386/lzcntintrin.h: ... here. New file.
6564 (__lzcnt): Rename to ...
6565 (__lzcnt32): ... this.
6566 * config/i386/bmiintrin.h (head): Update copyright year.
6567 (__lzcnt_u16): Removed.
6568 (__lzcnt_u32): Likewise.
6569 (__lzcnt_u64): Likewise.
6570 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
6571 is defined, remove abmintrin.h.
6572 * config/i386/cpuid.h (bit_LZCNT): New.
6573 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6574 LZCNT feature.
6575 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6576 __LZCNT__ if needed.
6577 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
6578 (ix86_option_override_internal): Handle LZCNT option.
6579 (ix86_valid_target_attribute_inner_p): Likewise.
6580 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
6581 * config/i386/i386.h (TARGET_LZCNT): New.
6582 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
6583 * config/i386/i386.md (clz<mode>2): Update insn constraint.
6584 (clz<mode>2_lzcnt): Likewise.
6585 * doc/invoke.texi: Mention -mlzcnt option.
6586 * doc/extend.texi: Likewise.
6587
6588 2011-08-01 Julian Brown <julian@codesourcery.com>
6589
6590 * configure.ac (fixed-point): Add ARM support.
6591 * configure: Regenerate.
6592 * config/arm/arm.c (arm_fixed_mode_set): New struct.
6593 (arm_set_fixed_optab_libfunc): New.
6594 (arm_set_fixed_conv_libfunc): New.
6595 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
6596 ARM-specific names.
6597 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
6598 return values in SImode.
6599 (arm_return_in_msb): Return fixed-point types in the msb.
6600 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
6601 upwards.
6602 (arm_scalar_mode_supported_p): Support fixed-point modes.
6603 (arm_vector_mode_supported_p): Support vector fixed-point modes.
6604 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
6605 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
6606 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
6607 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
6608 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
6609 New mode iterators.
6610 (qaddsub_suf): New mode attribute.
6611 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
6612 vector modes.
6613 * config/arm/predicates.md (sat_shift_operator): New predicate.
6614 * config/arm/arm-fixed.md: New.
6615 * config/arm/arm.md: Include arm-fixed.md.
6616 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
6617
6618 2011-08-01 Julian Brown <julian@codesourcery.com>
6619
6620 * calls.c (emit_library_call_value_1): Support padding for libcall
6621 arguments and return values.
6622 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
6623 downwards in big-endian mode.
6624
6625 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6626
6627 PR debug/49887
6628 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
6629 * config/sol2-protos.h: Likewise.
6630 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
6631 solaris_code_end.
6632 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
6633 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
6634 solaris_file_end.
6635 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
6636
6637 2011-08-01 Julian Brown <julian@codesourcery.com>
6638
6639 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
6640
6641 2011-08-01 Julian Brown <julian@codesourcery.com>
6642
6643 * final.c (output_addr_const): Print fixed-point constants as
6644 decimal not hex.
6645
6646 2011-08-01 Richard Guenther <rguenther@suse.de>
6647
6648 * stor-layout.c (initialize_sizetypes): Properly sign-extend
6649 bitsiztype TYPE_MAX_VALUE.
6650
6651 2011-08-01 Julian Brown <julian@codesourcery.com>
6652
6653 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
6654 comparison helpers.
6655
6656 2011-07-31 Richard Henderson <rth@redhat.com>
6657
6658 * config/h8300/crti.asm: Add flags to .section directive.
6659 * config/h8300/crtn.asm: Likewise.
6660
6661 2011-07-31 Richard Henderson <rth@redhat.com>
6662
6663 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
6664 * tree.c (build_common_tree_nodes): Likewise.
6665
6666 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
6667
6668 PR target/49880
6669 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
6670 (divsi3_i1): Likewise.
6671
6672 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6673
6674 PR tree-optimization/49749
6675 * tree-ssa-reassoc.c (get_rank): New forward declaration.
6676 (PHI_LOOP_BIAS): New macro.
6677 (phi_rank): New function.
6678 (loop_carried_phi): Likewise.
6679 (propagate_rank): Likewise.
6680 (get_rank): Add calls to phi_rank and propagate_rank.
6681
6682 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
6683
6684 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
6685 of TARGET_64BIT.
6686 (PTRDIFF_TYPE): Likewise.
6687
6688 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
6689
6690 PR target/49920
6691 * config/i386/i386.md (strset): Do not expand strset_singleop
6692 when %eax or $edi are fixed.
6693 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
6694 (*strsetsi_1): Ditto.
6695 (*strsethi_1): Ditto.
6696 (*strsetqi_1): Ditto.
6697 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
6698 (*rep_stossi): Ditto.
6699 (*rep_stosqi): Ditto.
6700 (*strlenqi_1): Ditto.
6701 (cmpstrnsi): Also fail when %ecx is fixed.
6702 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
6703 (*cmpstrnqi_1): Ditto.
6704 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
6705 (*strmovsi_1): Ditto.
6706 (*strmovhi_1): Ditto.
6707 (*strmovqi_1): Ditto.
6708 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
6709 (*rep_movsi): Ditto.
6710 (*rep_movqi): Ditto.
6711
6712 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
6713
6714 PR target/47908
6715 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
6716 Disable instruction scheduling for non-ColdFire targets.
6717 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
6718
6719 2011-07-31 Revital Eres <revital.eres@linaro.org>
6720
6721 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
6722 of anti-dep edge from a branch.
6723 (add_cross_iteration_register_deps): Create anti-dep edge from
6724 a branch.
6725
6726 2011-07-31 Revital Eres <revital.eres@linaro.org>
6727
6728 * modulo-sched.c: Change comment.
6729 (reset_sched_times): Fix print message.
6730 (print_partial_schedule): Add print info.
6731
6732 2011-07-31 Tom de Vries <tom@codesourcery.com>
6733
6734 PR middle-end/43513
6735 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
6736 get_object_alignment and TYPE_ALIGN.
6737
6738 2011-07-30 Tom de Vries <tom@codesourcery.com>
6739
6740 PR middle-end/43513
6741 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
6742 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
6743
6744 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6745
6746 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
6747 <sys/sbd.h>.
6748 (cpu_types): New array.
6749 (cputype): New function.
6750 (host_detect_local_cpu): Only define buf, f if !__sgi__.
6751 Use scaninvent instead of /proc/cpuinfo if __sgi__.
6752 * config.host: Also use driver-native.o, mips/x-native on
6753 mips-sgi-irix*.
6754 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
6755 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
6756 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
6757
6758 2011-07-29 Jakub Jelinek <jakub@redhat.com>
6759
6760 PR middle-end/49897
6761 PR middle-end/49898
6762 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
6763 in nested parallel and outer is a gimple_reg, mark it as addressable
6764 and set its bit in task_shared_vars bitmap too.
6765
6766 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
6767
6768 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
6769
6770 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6771
6772 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
6773 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
6774 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
6775 AMASK_LOCKPFTCHOK): Define.
6776 (host_detect_local_cpu): Remove buf, f, cpu_names.
6777 Define cpu_types, implver, amask.
6778 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
6779 native CPU.
6780 * config.host: Also use driver-alpha.o, alpha/x-alpha on
6781 alpha*-dec-osf*.
6782 * config/alpha/osf5.h [__alpha__ || __alpha]
6783 (host_detect_local_cpu): Declare.
6784 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
6785 (DRIVER_SELF_SPECS): Define.
6786
6787 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
6788
6789 PR target/47715
6790 * config/i386/i386.md (*load_tp_x32): New.
6791 (*load_tp_x32_zext): Ditto.
6792 (*add_tp_x32): Ditto.
6793 (*add_tp_x32_zext): Ditto.
6794 (*load_tp_<mode>): Disable for TARGET_X32 targets.
6795 (*add_tp_<mode>): Ditto.
6796 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
6797 ptr_mode and convert to Pmode if needed.
6798
6799 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
6800
6801 PR target/49687
6802 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
6803 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
6804 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
6805 Add X to register footprint: Clobber r26/r27.
6806
6807 2011-07-29 Richard Guenther <rguenther@suse.de>
6808
6809 * builtins.c (fold_builtin_signbit): Build the comparison
6810 with a proper type.
6811
6812 2011-07-29 Richard Guenther <rguenther@suse.de>
6813
6814 PR tree-optimization/49893
6815 * tree-predcom.c (suitable_reference_p): Volatile references
6816 are not suitable.
6817
6818 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
6819
6820 PR target/49313
6821 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
6822 (__ctzsi2): Result for 0 may be undefined.
6823 (__ctzhi2): Result for 0 may be undefined.
6824 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
6825 (__popcountsi2): Ditto. And don't clobber r26.
6826 (__popcountdi2): Ditto. And don't clobber r27.
6827 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
6828 (parityhi2): New expand.
6829 (paritysi2): New expand.
6830 (popcounthi2): New expand.
6831 (popcountsi2): New expand.
6832 (clzhi2): New expand.
6833 (clzsi2): New expand.
6834 (ctzhi2): New expand.
6835 (ctzsi2): New expand.
6836 (ffshi2): New expand.
6837 (ffssi2): New expand.
6838 (copysignsf3): New insn.
6839 (bswapsi2): New expand.
6840 (*parityhi2.libgcc): New insn.
6841 (*parityqihi2.libgcc): New insn.
6842 (*paritysihi2.libgcc): New insn.
6843 (*popcounthi2.libgcc): New insn.
6844 (*popcountsi2.libgcc): New insn.
6845 (*popcountqi2.libgcc): New insn.
6846 (*popcountqihi2.libgcc): New insn-and-split.
6847 (*clzhi2.libgcc): New insn.
6848 (*clzsihi2.libgcc): New insn.
6849 (*ctzhi2.libgcc): New insn.
6850 (*ctzsihi2.libgcc): New insn.
6851 (*ffshi2.libgcc): New insn.
6852 (*ffssihi2.libgcc): New insn.
6853 (*bswapsi2.libgcc): New insn.
6854
6855 2011-07-29 Richard Guenther <rguenther@suse.de>
6856
6857 * tree-vrp.c (get_value_range): Only set parameter default
6858 definitions to varying, leave others at undefined.
6859 (extract_range_from_binary_expr): Fix undefined handling.
6860 (vrp_visit_phi_node): Handle merged undefined state.
6861
6862 2011-07-29 Wei Guozhi <carrot@google.com>
6863
6864 PR rtl-optimization/49799
6865 * combine.c (make_compound_operation): Check if the bit field is valid
6866 before change it to bit field extraction.
6867
6868 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
6869
6870 PR rtl-optimization/49891
6871 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
6872 newly created returnjumps.
6873
6874 2011-07-28 DJ Delorie <dj@redhat.com>
6875
6876 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
6877 local frame in a naked function, and produce a suitable error for
6878 that specific case.
6879
6880 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
6881 registers to be reloaded in HI classes when the target is HI.
6882
6883 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
6884
6885 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
6886 bound_one, bound_two.
6887
6888 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
6889
6890 PR middle-end/48648
6891 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
6892 CLAST assignments.
6893 (translate_clast): Same.
6894 (translate_clast_assignment): New.
6895
6896 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
6897
6898 PR tree-optimization/49876
6899 * sese.c (rename_uses): Do not return false on gloog_error: set
6900 the new_expr to integer_zero_node and continue code generation.
6901 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
6902
6903 2011-07-28 Jakub Jelinek <jakub@redhat.com>
6904
6905 PR debug/49846
6906 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
6907 arguments also check if they aren't initialized with a MODE_INT
6908 mode of the same size.
6909
6910 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
6911
6912 * expr.c (get_bit_range): Handle *MEM_REF's.
6913
6914 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
6915
6916 * rtlanal.c (tablejump_p): False for returns.
6917 * reorg.c (first_active_target_insn): New static function.
6918 (find_end_label): Set JUMP_LABEL for a new returnjump.
6919 (optimize_skip, get_jump_flags, rare_destination,
6920 mostly_true_jump, get_branch_condition,
6921 steal_delay_list_from_target, own_thread_p,
6922 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
6923 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
6924 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
6925 * jump.c (delete_related_insns): Likewise.
6926 (jump_to_label_p): New function.
6927 (redirect_target): New static function.
6928 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
6929 (redirect_jump_1): Assert that the new label is nonnull.
6930 (redirect_jump): Likewise.
6931 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
6932 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
6933 exit block.
6934 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
6935 changed. Ensure that the right label is passed to redirect_jump.
6936 * function.c (emit_return_into_block,
6937 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
6938 ret_rtx in their JUMP_LABEL.
6939 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
6940 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
6941 pass ret_rtx as label.
6942 * cfglayout.c (fixup_reorder_chain): Use
6943 force_nonfallthru_and_redirect rather than force_nonfallthru.
6944 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
6945 * rtl.h (ANY_RETURN_P): New macro.
6946 (jump_to_label_p): Declare.
6947 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
6948 JUMP_LABELs.
6949 (mark_target_live_regs): Likewise.
6950 * basic-block.h (force_nonfallthru_and_redirect): Declare.
6951 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
6952 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
6953 alpha_tablejump_best_label): Remove functions.
6954 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
6955 alpha_tablejump_best_label): Remove declarations.
6956 * config/sh/sh.c (barrier_align, split_branches): Adjust for
6957 ret_rtx in JUMP_LABELs.
6958 * config/arm/arm.c (is_jump_table): Likewise.
6959
6960 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
6961
6962 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
6963 special predicate. Remove explicit mode checks.
6964
6965 2011-07-28 Jakub Jelinek <jakub@redhat.com>
6966
6967 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
6968 DW_AT_data_member_location containing just DW_OP_plus_uconst.
6969
6970 PR debug/49871
6971 * dwarf2out.c (size_of_die, value_format, output_die): Use
6972 DW_FORM_udata instead of DW_FORM_data[48] for
6973 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
6974
6975 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
6976
6977 * config/i386/i386.md (*tls_global_dynamic_64): Update
6978 length attribute.
6979
6980 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
6981
6982 PR target/47715
6983 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
6984 tls_symbolic_operand check. Update code sequence for TARGET_X32.
6985 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
6986 (tls_dynamic_gnu2_64): Ditto.
6987 (*tls_dynamic_gnu2_lea_64): Ditto.
6988 (*tls_dynamic_gnu2_call_64): Ditto.
6989 (*tls_dynamic_gnu2_combine_64): Ditto.
6990
6991 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
6992
6993 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
6994
6995 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
6996
6997 PR target/47364
6998 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
6999
7000 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7001
7002 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
7003 before the core constraints. Adjust attributes.
7004 ("*thumb2_movdf_vfp"): Likewise.
7005
7006 2011-07-28 Kai Tietz <ktietz@redhat.com>
7007
7008 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
7009 (simplify_truth_ops_using_ranges): Likewise.
7010 (build_assert_expr_for): Likewise.
7011 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
7012 and handle BIT_NOT_EXPR for truth-operation.
7013
7014 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
7015
7016 PR target/49313
7017 Undo r176835 from trunk
7018 2011-07-27 Georg-Johann Lay
7019
7020 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
7021
7022 PR target/49687
7023 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
7024 Add _muluhisi3, _mulshisi3, _usmulhisi3.
7025 * config/avr/libgcc.S (__mulsi3): Rewrite.
7026 (__mulhisi3): Rewrite.
7027 (__umulhisi3): Rewrite.
7028 (__usmulhisi3): New.
7029 (__muluhisi3): New.
7030 (__mulshisi3): New.
7031 (__mulohisi3): New.
7032 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
7033 declare.
7034 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
7035 (pseudo_register_or_const_int_operand): New.
7036 (combine_pseudo_register_operand): New.
7037 (u16_operand): New.
7038 (s16_operand): New.
7039 (o16_operand): New.
7040 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
7041 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
7042 (any_extend, any_extend2): New code iterators.
7043 (extend_prefix): New code attribute.
7044 (mulsi3): Rewrite. Turn insn to expander.
7045 (mulhisi3): Ditto.
7046 (umulhisi3): Ditto.
7047 (usmulhisi3): New expander.
7048 (*mulsi3): New insn-and-split.
7049 (mulu<mode>si3): New insn-and-split.
7050 (muls<mode>si3): New insn-and-split.
7051 (mulohisi3): New insn-and-split.
7052 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
7053 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
7054 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
7055 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
7056 insn-and-split.
7057 (*mulsi3_call): Rewrite.
7058 (*mulhisi3_call): Rewrite.
7059 (*umulhisi3_call): Rewrite.
7060 (*usmulhisi3_call): New insn.
7061 (*muluhisi3_call): New insn.
7062 (*mulshisi3_call): New insn.
7063 (*mulohisi3_call): New insn.
7064 (extendqihi2): Use combine_pseudo_register_operand as predicate
7065 for operand 1.
7066 (extendqisi2): Ditto.
7067 (zero_extendqihi2): Ditto.
7068 (zero_extendqisi2): Ditto.
7069 (zero_extendhisi2): Ditto.
7070 (extendhisi2): Ditto. Don't early-clobber operand 0.
7071
7072 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
7073
7074 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
7075
7076 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
7077
7078 PR tree-optimization/49471
7079 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
7080 iv only when the largest type is unsigned. Do not call
7081 lang_hooks.types.type_for_size.
7082
7083 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
7084
7085 PR middle-end/45450
7086 * graphite-poly.c (apply_poly_transforms): Disable legality check
7087 after an openscop read.
7088
7089 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
7090
7091 PR middle-end/47691
7092 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
7093 copy_bb_and_scalar_dependences.
7094 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
7095 (graphite_copy_stmts_from_block): Update call to rename_uses.
7096 (copy_bb_and_scalar_dependences): Update call to
7097 graphite_copy_stmts_from_block.
7098 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
7099
7100 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
7101
7102 PR target/49313
7103 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
7104 (__ctzsi2): Result for 0 may be undefined.
7105 (__ctzhi2): Result for 0 may be undefined.
7106 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
7107 (__popcountsi2): Ditto. And don't clobber r26.
7108 (__popcountdi2): Ditto. And don't clobber r27.
7109 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
7110 (parityhi2): New expand.
7111 (paritysi2): New expand.
7112 (popcounthi2): New expand.
7113 (popcountsi2): New expand.
7114 (clzhi2): New expand.
7115 (clzsi2): New expand.
7116 (ctzhi2): New expand.
7117 (ctzsi2): New expand.
7118 (ffshi2): New expand.
7119 (ffssi2): New expand.
7120 (copysignsf3): New insn.
7121 (bswapsi2): New expand.
7122 (*parityhi2.libgcc): New insn.
7123 (*parityqihi2.libgcc): New insn.
7124 (*paritysihi2.libgcc): New insn.
7125 (*popcounthi2.libgcc): New insn.
7126 (*popcountsi2.libgcc): New insn.
7127 (*popcountqi2.libgcc): New insn.
7128 (*popcountqihi2.libgcc): New insn-and-split.
7129 (*clzhi2.libgcc): New insn.
7130 (*clzsihi2.libgcc): New insn.
7131 (*ctzhi2.libgcc): New insn.
7132 (*ctzsihi2.libgcc): New insn.
7133 (*ffshi2.libgcc): New insn.
7134 (*ffssihi2.libgcc): New insn.
7135 (*bswapsi2.libgcc): New insn.
7136
7137 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
7138
7139 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
7140 the mode of symbolic_opreand RTXes.
7141
7142 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
7143
7144 * config/i386/predicates.md (x86_64_movabs_operand): Return false
7145 for pic_32bit_operand RTXes.
7146 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
7147 in DImode.
7148
7149 2011-07-27 Kai Tietz <ktietz@redhat.com>
7150
7151 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
7152 for 32-bit, too.
7153 (ix86_handle_abi_attribute): Allow function attributes
7154 ms_abi/sysv_abi in 32-bit mode, too.
7155 * doc/extend.texi: Adjust attribute documentation.
7156
7157 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
7158 expression handling.
7159 (and_var_with_comparison_1): Likewise.
7160
7161 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
7162
7163 * params.h (ALLOW_STORE_DATA_RACES): New.
7164 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
7165 * Makefile.in (expr.o): Depend on PARAMS_H.
7166 * machmode.h (get_best_mode): Add argument.
7167 * fold-const.c (optimize_bit_field_compare): Add argument to
7168 get_best_mode.
7169 (fold_truthop): Same.
7170 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
7171 * expr.c (emit_group_store): Same.
7172 (copy_blkmode_from_reg): Same.
7173 (write_complex_part): Same.
7174 (optimize_bitfield_assignment_op): Add argument.
7175 Add argument to get_best_mode.
7176 (get_bit_range): New.
7177 (expand_assignment): Calculate maxbits and pass it down accordingly.
7178 (store_field): New argument.
7179 (expand_expr_real_2): New argument to store_field. Include params.h.
7180 * expr.h (store_bit_field): New argument.
7181 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
7182 into account maxbits.
7183 * calls.c (store_unaligned_arguments_into_pseudos): New argument
7184 to store_bit_field.
7185 * expmed.c (store_bit_field_1): New argument. Use it.
7186 (store_bit_field): Same.
7187 (store_fixed_bit_field): Same.
7188 (store_split_bit_field): Same.
7189 (extract_bit_field_1): Pass new argument to get_best_mode.
7190 (extract_bit_field): Same.
7191 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
7192 * doc/invoke.texi: Document parameter allow-store-data-races.
7193
7194 2011-07-27 Jakub Jelinek <jakub@redhat.com>
7195
7196 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
7197
7198 2011-07-27 Kai Tietz <ktietz@redhat.com>
7199
7200 * tree-vrp.c (extract_range_from_binary_expr): Remove
7201 TRUTH-binary cases and add new bitwise-cases.
7202 (extract_range_from_assignment): Likewise.
7203 (register_edge_assert_for_1): Likeiwise.
7204 (register_edge_assert_for): Likewise.
7205 (simplify_truth_ops_using_ranges): Likewise.
7206 (simplify_stmt_using_ranges): Likewise.
7207
7208 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
7209
7210 PR target/47372
7211 * config/i386/i386.c (ix86_delegitimize_address): Call
7212 simplify_gen_subreg for PIC with mode of x only if modes of
7213 x and orig_x are different.
7214
7215 2011-07-26 Jakub Jelinek <jakub@redhat.com>
7216
7217 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
7218 to GC allocated copy of the string.
7219 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
7220 before .debug_line, not after it.
7221
7222 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
7223
7224 PR middle-end/47046
7225 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
7226 evolution_function_is_affine_p on CHREC_RIGHT.
7227
7228 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
7229
7230 * tree-data-ref.c (max_stmt_executions_tree): Do not call
7231 lang_hooks.types.type_for_size.
7232
7233 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
7234
7235 PR middle-end/47653
7236 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
7237 loops using wrapping semantics.
7238
7239 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
7240
7241 PR middle-end/48805
7242 * tree-scalar-evolution.c (instantiate_scev_r): Return
7243 chrec_dont_know for ADDR_EXPR.
7244
7245 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
7246 H.J. Lu <hongjiu.lu@intel.com>
7247
7248 PR target/47369
7249 PR target/49853
7250 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
7251 if legitimize_tls_address returned operand in wrong mode. Allow
7252 SImode and DImode symbolic operand for PIC. Call convert_to_mode
7253 if legitimize_pic_address returned operand in wrong mode.
7254
7255 2011-07-26 Martin Jambor <mjambor@suse.cz>
7256
7257 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
7258 return false for invariants.
7259
7260 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
7261
7262 * config/i386/i386.md (add->lea splitter): Implement using SWI
7263 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
7264 (add->lea zext splitter): Change operand 2 predicate to
7265 x86_64_nonmemory_operand.
7266
7267 2011-07-26 Richard Guenther <rguenther@suse.de>
7268
7269 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
7270 frequency makes everything hot.
7271
7272 2011-07-26 Richard Guenther <rguenther@suse.de>
7273
7274 PR tree-optimization/49840
7275 * tree-vrp.c (range_fits_type_p): Properly handle full
7276 double-int precision.
7277
7278 2011-07-26 Martin Jambor <mjambor@suse.cz>
7279
7280 PR bootstrap/49786
7281 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
7282 counts.
7283 (update_specialized_profile): Likewise.
7284
7285 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
7286 H.J. Lu <hongjiu.lu@intel.com>
7287
7288 PR target/47381
7289 PR target/49832
7290 PR target/49833
7291 * config/i386/i386.md (i): Change SImode attribute to "e".
7292 (g): Change SImode attribute to "rme".
7293 (di): Change SImode attribute to "nF".
7294 (general_operand): Change SImode attribute to x86_64_general_operand.
7295 (general_szext_operand): Change SImode attribute to
7296 x86_64_szext_general_operand.
7297 (immediate_operand): Change SImode attribute to
7298 x86_64_immediate_operand.
7299 (nonmemory_operand): Change SImode attribute to
7300 x86_64_nonmemory_operand.
7301 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
7302 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
7303 (*lea_1): Use SWI48 mode iterator.
7304 (*lea_1_zext): New insn pattern.
7305 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
7306 (*bt<mode>): Ditto.
7307 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
7308 Update operand constraints.
7309 (addsi_1_zext): Ditto.
7310 (*add<mode>2): Ditto.
7311 (*addsi_3_zext): Ditto.
7312 (*subsi_1_zext): Ditto.
7313 (*subsi_2_zext): Ditto.
7314 (*subsi_3_zext): Ditto.
7315 (*addsi3_carry_zext): Ditto.
7316 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
7317 (*mulsi3_1_zext): Ditto.
7318 (*andsi_1): Ditto.
7319 (*andsi_1_zext): Ditto.
7320 (*andsi_2_zext): Ditto.
7321 (*<any_or:code>si_1_zext): Ditto.
7322 (*<any_or:code>si_2_zext): Ditto.
7323 (*test<mode>_1): Use <general_operand> predicate for operand 1.
7324 (*and<mode>_2): Ditto.
7325 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
7326 (add->lea splitter): Check operand modes in insn constraint. Extend
7327 operands less than SImode wide to SImode.
7328 (add->lea zext splitter): Do not extend input operands to DImode.
7329 (*lea_general_1): Handle only QImode and HImode operands.
7330 (*lea_general_2): Ditto.
7331 (*lea_general_3): Ditto.
7332 (*lea_general_1_zext): Remove.
7333 (*lea_general_2_zext): Ditto.
7334 (*lea_general_3_zext): Ditto.
7335 (*lea_general_4): Check operand modes in insn constraint. Extend
7336 operands less than SImode wide to SImode.
7337 (ashift->lea splitter): Ditto.
7338 * config/i386/i386.c (ix86_print_operand_address): Print address
7339 registers with 'q' modifier on 64bit targets.
7340 * config/i386/predicates.md (pic_32bit_opreand): Define as special
7341 predicate. Reject non-SI and non-DI modes.
7342
7343 2011-07-25 Andrew Pinski <apinski@cavium.com>
7344
7345 PR tree-opt/49671
7346 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
7347 TREE_THIS_NOTRAP into the inner most MEM_REF.
7348 Always copy TREE_THIS_VOLATILE.
7349 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
7350 arguments are not volatile references.
7351
7352 2011-07-25 Richard Henderson <rth@redhat.com>
7353
7354 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
7355 * final.c (final_scan_insn): Don't test for it.
7356 (rest_of_clean_state): Likewise.
7357
7358 2011-07-25 Richard Henderson <rth@redhat.com>
7359
7360 PR debug/49841
7361 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
7362 (emit_frame_save): Likewise.
7363 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
7364 insn onto a dummy blockage insn after the join label.
7365
7366 2011-07-25 Richard Henderson <rth@redhat.com>
7367
7368 * dwarf2cfi.c (dw_trace_info): Add ID member.
7369 (get_trace_index): Remove. Change users to use ID member.
7370 (before_next_cfi_note): New.
7371 (connect_traces): Remove unreachable traces before the main loop.
7372 Look across one trace and generate remember/restore_state if needed.
7373
7374 2011-07-25 Richard Henderson <rth@redhat.com>
7375
7376 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
7377
7378 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
7379
7380 * genattr.c (write_upcase, gen_attr <enum definition writing>):
7381 Move to ...
7382 * genattr-common.c ... here.
7383 (main): Call gen_attr.
7384 * optc-gen.awk: Make generated program include insn-attr-common.h .
7385 * Makefile.in (oprions.o): Depend on insn-attr-common.h
7386
7387 2011-07-25 Anatoly Sokolov <aesok@post.ru>
7388
7389 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7390 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
7391 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
7392 m32c_print_operand, m32c_print_operand_address): Remove.
7393 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
7394 Change return type to bool. Change argument type to bool.
7395 (m32c_print_operand, m32c_print_operand_address): Make static.
7396 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
7397 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7398
7399 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7400
7401 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
7402 attributes): Document mmap.
7403
7404 2011-07-25 Anatoly Sokolov <aesok@post.ru>
7405
7406 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7407 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
7408 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
7409 mmix_print_operand, mmix_print_operand_address): Remove.
7410 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
7411 Change return type to bool. Change argument type to bool.
7412 (mmix_print_operand, mmix_print_operand_address): Make static.
7413 (mmix_intval, mmix_output_condition): Change 'x' argument type
7414 to const_rtx.
7415 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
7416 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7417
7418 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
7419
7420 PR target/39386
7421 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
7422 shift counter for x << x and x >> x shifts.
7423
7424 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7425
7426 PR target/47124
7427 * config.gcc: Reject *-*-solaris2 configuration.
7428
7429 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
7430
7431 PR tree-optimization/49809
7432 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
7433 gimple_get_lhs instead of gimple_assign_lhs.
7434
7435 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7436
7437 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
7438
7439 2011-07-25 Richard Guenther <rguenther@suse.de>
7440
7441 PR tree-optimization/49822
7442 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
7443 more. Make sure to preserve stmts with side-effects. Properly
7444 handle virtual defs, follow a longer def chain.
7445
7446 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
7447
7448 PR plugins/45348
7449 PR plugins/48425
7450 PR plugins/46577
7451 * Makefile.in: Do not flatten c-family directory when installing
7452 plugin headers.
7453
7454 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
7455
7456 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
7457 original nodes if we are dealing with virtual clones.
7458
7459 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
7460
7461 * common/config/c6x/c6x-common.c: New file.
7462
7463 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
7464
7465 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
7466
7467 2011-07-25 Richard Guenther <rguenther@suse.de>
7468
7469 PR tree-optimization/49715
7470 * tree-vrp.c: Include expr.h and optabs.h.
7471 (range_fits_type_): New function.
7472 (simplify_float_conversion_using_ranges): Likewise.
7473 (simplify_stmt_using_ranges): Call it.
7474 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
7475 * optabs.c (can_float_p): Export.
7476 * optabs.h (can_float_p): Declare.
7477
7478 2011-07-25 Richard Guenther <rguenther@suse.de>
7479
7480 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
7481 (get_value_range): For out-of-range SSA names or names created
7482 after propagation return a read-only varying range.
7483 (dump_all_value_ranges): Adjust.
7484 (vrp_initialize): Likewise.
7485 (vrp_finalize): Likewise.
7486
7487 2011-07-24 Richard Henderson <rth@redhat.com>
7488
7489 PR debug/49831
7490 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
7491 them entirely.
7492
7493 2011-07-24 Richard Henderson <rth@redhat.com>
7494
7495 PR debug/49825
7496 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
7497 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
7498
7499 2011-07-24 Richard Henderson <rth@redhat.com>
7500
7501 PR debug/49827
7502 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
7503
7504 2011-07-24 Richard Henderson <rth@redhat.com>
7505
7506 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
7507 Zero args_size for abnormal edges. Adjust all callers.
7508
7509 2011-07-24 Richard Henderson <rth@redhat.com>
7510
7511 PR debug/49825
7512 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
7513
7514 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
7515
7516 PR bootstrap/49835
7517 * collect2.c (demangle_flag): Removed.
7518
7519 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
7520
7521 * configure.ac (demangler_in_ld): Default to yes.
7522 * configure: Regenerated.
7523 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
7524 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
7525 --no-demangle options straight through to ld. When
7526 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
7527 way that has the intended effect on Windows.
7528
7529 2011-07-23 Richard Henderson <rth@redhat.com>
7530
7531 * dwarf2cfi.c: Include basic-block.h.
7532 (dw_label_info): Remove.
7533 (trace_work_list, trace_index): New.
7534 (remember_row, emit_cfa_remember): Remove.
7535 (dw_trace_info_hash, dw_trace_info_eq): New.
7536 (get_trace_index, get_trace_info): New.
7537 (save_point_p): New.
7538 (free_cfi_row): Remove.
7539 (add_cfi): Do not emit DW_CFA_remember_state.
7540 (cfa_row_equal_p): New.
7541 (barrier_args_size): Remove.
7542 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
7543 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
7544 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
7545 (dwarf2out_cfi_begin_epilogue): Remove.
7546 (dwarf2out_frame_debug_restore_state): Remove.
7547 (connect_traces, create_pseudo_cfg): New.
7548 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
7549 * Makefile.in (dwarf2cfi.o): Update.
7550
7551 2011-07-23 Richard Henderson <rth@redhat.com>
7552
7553 * dwarf2cfi.c (dw_trace_info): New.
7554 (dw_label_info): New.
7555 (cie_return_save): New.
7556 (cur_trace): New.
7557 (queued_args_size): Rename from args_size. Update all users.
7558 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
7559 (def_cfa_1): Use cur_trace instead of cfa_*.
7560 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
7561 (clobbers_queued_reg_save, reg_saved_in): Likewise.
7562 (dwarf2out_frame_debug_expr): Likewise.
7563 (create_cie_data): Split out from ...
7564 (execute_dwarf2_frame): ... here. Initialize cur_trace.
7565
7566 2011-07-23 Richard Henderson <rth@redhat.com>
7567
7568 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
7569 Update all users to match.
7570 (execute_dwarf2_frame): Free reg_saved_in_data.
7571
7572 2011-07-23 Richard Henderson <rth@redhat.com>
7573
7574 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
7575 (queued_reg_saves): Don't GTY. Change to a VEC.
7576 (queue_reg_save): Update to match.
7577 (dwarf2out_flush_queued_reg_saves): Likewise.
7578 (clobbers_queued_reg_save): Likewise.
7579 (reg_saved_in): Likewise.
7580 (execute_dwarf2_frame): Free queued_reg_saves.
7581
7582 2011-07-23 Richard Henderson <rth@redhat.com>
7583
7584 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
7585
7586 2011-07-23 Richard Henderson <rth@redhat.com>
7587
7588 * dwarf2cfi.c (add_cfi_args_size): Split out from...
7589 (dwarf2out_args_size): ... here.
7590 (add_cfi_restore): Split out from ...
7591 (dwarf2out_frame_debug_cfa_restore): ... here.
7592 (def_cfa_0): Split out from ...
7593 (def_cfa_1): ... here.
7594 (cfi_oprnd_equal_p, cfi_equal_p): New.
7595 (change_cfi_row): New.
7596 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
7597 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
7598 (output_cfis): Remove.
7599 * dwarf2out.c (output_fde): Simplify output_cfi loop.
7600 (dwarf2out_switch_text_section): Don't call output_cfis.
7601 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
7602 * dwarf2out.h: Update decls.
7603 (enum dw_val_class): Add dw_val_class_none.
7604
7605 2011-07-23 Richard Henderson <rth@redhat.com>
7606
7607 * dwarf2cfi.c (update_row_reg_save): New.
7608 (dwarf2out_frame_debug_cfa_expression): Use it.
7609 (dwarf2out_frame_debug_cfa_restore): Likewise.
7610 (reg_save): Likewise. Do not emit DW_CFA_same_value.
7611
7612 2011-07-23 Richard Henderson <rth@redhat.com>
7613
7614 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
7615
7616 2011-07-23 Richard Henderson <rth@redhat.com>
7617
7618 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
7619 (cie_cfi_row): New.
7620 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
7621 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
7622 (cur_row, remember_row): New.
7623 (def_cfa_1): Use cur_row instead of the old_* variables.
7624 (dwarf2out_frame_debug_restore_state): Similarly.
7625 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
7626 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
7627 (dwarf2out_frame_debug_adjust_cfa): Likewise.
7628 (dwarf2out_frame_debug_cfa_offset): Likewise.
7629 (dwarf2out_frame_debug_expr): Likewise.
7630 (execute_dwarf2_frame): Set up cur_row.
7631 * dwarf2out.h (struct cfa_loc): Mark for GTY.
7632
7633 2011-07-23 Richard Henderson <rth@redhat.com>
7634
7635 * basic-block.h (EDGE_PRESERVE): New.
7636 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
7637 * bb-reorder.c: Include except.h.
7638 (fix_up_crossing_landing_pad): New.
7639 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
7640 landing pads in the right partition. Duplicate as necessary.
7641 (partition_hot_cold_basic_blocks): Fix up DF info after
7642 duplicating landing pads.
7643 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
7644 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
7645 is set properly. Validate that EH edges are not CROSSING.
7646 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
7647 (dw2_build_landing_pads): ... here.
7648 (convert_to_eh_region_ranges): Remove code to fixup crossing
7649 landing pads.
7650 * except.h (expand_dw2_landing_pad_for_region): Declare.
7651 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
7652
7653 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
7654
7655 PR target/49816
7656 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
7657
7658 2011-07-22 Jason Merrill <jason@redhat.com>
7659
7660 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
7661
7662 2011-07-22 Richard Henderson <rth@redhat.com>
7663
7664 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
7665
7666 2011-07-22 Richard Henderson <rth@redhat.com>
7667
7668 * jump.c (maybe_propagate_label_ref): Split out of...
7669 (mark_all_labels): ... here. Do not attempt label_ref
7670 propagation while in cfglayout mode.
7671
7672 2011-07-22 Jakub Jelinek <jakub@redhat.com>
7673
7674 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
7675 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
7676 (dwarf_attr_name): Handle DW_AT_GNU_macros.
7677 (dwarf2out_define): If the vector is empty and
7678 lineno is 0, emit a dummy entry first.
7679 (dwarf2out_undef): Likewise. Remove redundant semicolon.
7680 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
7681 optimize_macinfo_range): New functions.
7682 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
7683 mergeable, optimize longer strings using
7684 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
7685 optimize longer sequences of define/undef ops from headers
7686 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
7687 emit a section headers.
7688 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
7689 and macinfo_section_label to DEBUG_MACRO_SECTION
7690 resp. DEBUG_MACRO_SECTION_LABEL.
7691 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
7692 instead of DW_AT_macro_info.
7693
7694 PR other/32998
7695 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
7696 options.
7697 * dwarf2out.c: Include opts.h.
7698 (dchar_p): New typedef. Define heap VEC for it.
7699 (producer_string): New variable.
7700 (gen_producer_string): New function.
7701 (gen_compile_unit_die): Use it.
7702 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
7703 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
7704 * doc/invoke.texi: Document -grecord-gcc-switches and
7705 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
7706 to -frecord-gcc-switches description.
7707
7708 2011-07-22 Jason Merrill <jason@redhat.com>
7709
7710 PR c++/30112
7711 * c-decl.c (c_linkage_bindings): Define.
7712
7713 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
7714
7715 PR debug/49815
7716 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
7717
7718 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
7719
7720 * config/i386/i386.c (ix86_option_override_internal): Disallow
7721 MS ABI in x32 mode.
7722 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
7723 only for TARGET_LP64.
7724 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
7725
7726 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7727
7728 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
7729 avoid warnings when GCC is built with a C++ compiler.
7730
7731 2011-07-22 Martin Jambor <mjambor@suse.cz>
7732
7733 PR lto/49796
7734 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
7735 if decl node is in another partition, call cgraph_get_node only once.
7736
7737 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
7738
7739 * config.gcc (x86_64-*-linux*): Set
7740 default_gnu_indirect_function to yes.
7741
7742 2011-07-22 Richard Guenther <rguenther@suse.de>
7743
7744 PR tree-optimization/45819
7745 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
7746 preserve volatile and notrap flags.
7747
7748 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7749 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7750
7751 PR bootstrap/49794
7752 * configure.ac: Test AM_ICONV with CXX.
7753 * configure: Regenerate.
7754 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
7755
7756 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7757
7758 PR bootstrap/49797
7759 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
7760 (set_cloog_options): Use it.
7761
7762 2011-07-22 Jakub Jelinek <jakub@redhat.com>
7763
7764 PR c++/49756
7765 * gcc.c (main): Call stack_limit_increase (64MB).
7766 * toplev.c (toplev_main): Likewise.
7767
7768 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7769
7770 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
7771 instead of force_reg.
7772
7773 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7774
7775 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
7776 needed and use force_reg after convert.
7777 (ix86_expand_call): Likewise.
7778 (ix86_expand_special_args_builtin): Likewise.
7779 (ix86_expand_builtin): Likewise.
7780
7781 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7782
7783 PR middle-end/47654
7784 PR middle-end/49649
7785 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
7786 in parameter. Initialize v1 and v2 based on the values returned
7787 by clast_name_to_lb_ub.
7788 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
7789 values.
7790 (type_for_clast_bin): Same.
7791 (type_for_clast_expr): Same.
7792 (type_for_clast_eq): Update calls to type_for_clast_expr.
7793 (type_for_clast_for): Same.
7794 (build_iv_mapping): Same.
7795 * graphite-ppl.h (value_min): New.
7796
7797 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7798
7799 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
7800 types whenever possible.
7801
7802 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7803
7804 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
7805 and ub fields.
7806 (new_clast_name_index): Add lb and ub parameters.
7807 (free_clast_name_index): New.
7808 (clast_name_to_lb_ub): New.
7809 (save_clast_name_index): Add lb and ub parameters.
7810 (compute_bounds_for_param): New.
7811 (type_for_level): Removed.
7812 (type_for_clast_for): Removed level parameter. Do not call
7813 type_for_level.
7814 (graphite_create_new_loop): Store the lb and ub for the clast_name
7815 of the iterator of the loop that has been generated.
7816 (graphite_create_new_loop_guard): Remove parameter level.
7817 (create_params_index): Store the lb and ub of each parameter.
7818 (gloog): Use free_clast_name_index. Pass to create_params_index
7819 the current scop.
7820
7821 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7822
7823 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
7824 (max_precision_type): Inline max_signed_precision_type.
7825 (type_for_clast_red): Use max_precision_type.
7826 (type_for_clast_bin): Same.
7827 (type_for_clast_for): Same.
7828
7829 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7830
7831 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
7832 type_for_interval.
7833 (gcc_type_for_value): Renamed type_for_value.
7834 (gcc_type_for_clast_term): Renamed type_for_clast_term.
7835 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
7836 (gcc_type_for_clast_red): Renamed type_for_clast_red.
7837 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
7838 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
7839 (graphite_translate_clast_equation): Update calls.
7840 (compute_type_for_level): Renamed type_for_level.
7841 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
7842 (build_iv_mapping): Update calls.
7843 (graphite_create_new_loop_guard): Same.
7844
7845 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7846
7847 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
7848 comment.
7849
7850 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7851
7852 * graphite-clast-to-gimple.c (struct ivs_params): New.
7853 (clast_name_to_gcc): Use ivs_params to pass around parameters.
7854 (clast_to_gcc_expression): Same.
7855 (clast_to_gcc_expression_red): Same.
7856 (gcc_type_for_clast_term): Same.
7857 (gcc_type_for_clast_expr): Same.
7858 (gcc_type_for_clast_red): Same.
7859 (gcc_type_for_clast_bin): Same.
7860 (gcc_type_for_clast_eq): Same.
7861 (graphite_translate_clast_equation): Same.
7862 (graphite_create_guard_cond_expr): Same.
7863 (graphite_create_new_guard): Same.
7864 (graphite_create_new_loop): Same.
7865 (build_iv_mapping): Same.
7866 (translate_clast_user): Same.
7867 (graphite_create_new_loop_guard): Same.
7868 (translate_clast): Same.
7869 (translate_clast_for_loop): Same.
7870 (translate_clast_for): Same.
7871 (translate_clast_guard): Same.
7872 (initialize_cloog_names): Fix typo.
7873 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
7874
7875 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7876
7877 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
7878 (new_clast_name_index): Add level parameter.
7879 (clast_name_to_level): New.
7880 (save_clast_name_index): Add level parameter.
7881 (newivs_to_depth_to_newiv): Removed.
7882 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
7883 (graphite_create_new_loop): Add level parameter. Pass level to
7884 save_clast_name_index.
7885 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
7886 (create_params_index): Pass level to save_clast_name_index.
7887
7888 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7889
7890 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
7891 recompute type, lb, and ub. Get them from...
7892 (graphite_create_new_loop_guard): ...here. Pass in parameter
7893 pointers to type, lb, and ub.
7894 (translate_clast_for_loop): Update function calls.
7895 (translate_clast_for): Same.
7896
7897 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7898
7899 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
7900 psct_dynamic_dim.
7901 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
7902 (gcc_type_for_iv_of_clast_loop): Update use of level.
7903 (gloog): Start counting nesting level from 0.
7904 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
7905 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
7906 psct_dynamic_dim on level.
7907
7908 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7909
7910 * config/i386/i386.c (ix86_legitimize_address): Convert to
7911 Pmode if needed.
7912
7913 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7914
7915 * config/i386/i386.c (function_value_64): Always return pointers
7916 in Pmode.
7917 (ix86_promote_function_mode): New.
7918 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
7919
7920 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7921
7922 PR tree-optimization/49749
7923 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
7924 remove no-longer-used maxrank variable.
7925
7926 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
7927
7928 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
7929
7930 2011-07-21 Jason Merrill <jason@redhat.com>
7931
7932 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
7933 * recog.h (struct insn_data_d): Check it instead of
7934 HAVE_DESIGNATED_INITIALIZERS.
7935 * genoutput.c (output_insn_data): Likewise.
7936
7937 2011-07-21 Richard Guenther <rguenther@suse.de>
7938
7939 PR tree-optimization/49770
7940 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
7941 valueized any operand. Renamed from ...
7942 (valueize_refs): ... this. New wrapper around valueize_refs_1.
7943 (valueize_shared_reference_ops_from_ref): Return whether we
7944 valueized any operand.
7945 (vn_reference_lookup): Only when we valueized any operand
7946 use the valueized reference for alias analysis. Do not preserve
7947 the original reference tree in this case.
7948
7949 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
7950
7951 * config/i386/i386.c (ix86_decompose_address): Reject all but
7952 register operands and subregs of DImode hard registers in index.
7953
7954 2011-07-21 Kai Tietz <ktietz@redhat.com>
7955
7956 * fold-const.c (fold_unary_loc): Preserve indirect
7957 comparison cast to none-boolean type.
7958 * tree-ssa.c (useless_type_conversion_p): Preserve cast
7959 from/to boolean-type.
7960 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
7961 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
7962 * tree-cfg.c (verify_gimple_comparison): Check result
7963 type of comparison expression.
7964 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
7965 of condition result and disallow type-cast sinking into comparison.
7966
7967 2011-07-21 Richard Guenther <rguenther@suse.de>
7968
7969 * tree-ssa-forwprop.c (combine_conversions): Return whether
7970 we have to run cfg-cleanup. Properly remove dead stmts.
7971 (ssa_forward_propagate_and_combine): Adjust.
7972
7973 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
7974
7975 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
7976
7977 2011-07-21 Kai Tietz <ktietz@redhat.com>
7978
7979 * tree-ssa-propagate.c (substitute_and_fold): Use
7980 do_dce flag to deside, if BB's statements are scanned
7981 in last to first, or first to last order.
7982
7983 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
7984
7985 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
7986
7987 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
7988 Uros Bizjak <ubizjak@gmail.com>
7989 Richard Henderson <rth@redhat.com>
7990
7991 * config/i386/constraints.md (w): New.
7992
7993 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
7994 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
7995
7996 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
7997 instead of TARGET_64BIT.
7998
7999 * config/i386/i386.md (indirect_jump): Replace
8000 nonimmediate_operand with indirect_branch_operand.
8001 (*indirect_jump): Likewise. Replace constraint "m" with "w".
8002 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
8003 Convert operand 0 to Pmode for x32 if not PIC.
8004 (*tablejump_1): Replace nonimmediate_operand with
8005 indirect_branch_operand. Replace constraint "m" with "w".
8006 (*call_vzeroupper): Replace constraint "m" with "w".
8007 (*call): Likewise.
8008 (*call_rex64_ms_sysv_vzeroupper): Likewise.
8009 (*call_rex64_ms_sysv): Likewise.
8010 (*call_value_vzeroupper): Likewise.
8011 (*call_value): Likewise.
8012 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
8013 (*call_value_rex64_ms_sysv): Likewise.
8014 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
8015
8016 * config/i386/predicates.md (indirect_branch_operand): New.
8017 (call_insn_operand): Support x32.
8018
8019 2011-07-20 Michael Eager <eager@eagercon.com>
8020
8021 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
8022
8023 2011-07-20 Richard Henderson <rth@redhat.com>
8024
8025 * cfg.c (dump_bb_info): Dump basic_block->flags.
8026 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
8027
8028 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
8029
8030 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8031 of DImode hard registers in index.
8032 (ix86_legitimate_address_p): Allow subregs of base and index to span
8033 more than a word. Assert that subregs of base and index satisfy
8034 register_no_elim_operand predicates. Reject addresses where
8035 base and index have different modes.
8036
8037 2011-07-20 Robert Millan <rmh@gnu.org>
8038
8039 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
8040
8041 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8042
8043 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
8044 removing now-unnecessary assignment.
8045
8046 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8047
8048 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
8049 memory address space to the type's address space.
8050
8051 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
8052
8053 PR target/36467
8054 PR target/49687
8055 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
8056 and expand appropriately if there is a CONST_INT in operand2.
8057 (usmulqihi3): New insn.
8058 (*sumulqihi3): New insn.
8059 (*osmulqihi3): New insn.
8060 (*oumulqihi3): New insn.
8061 (*muluqihi3.uconst): New insn_and_split.
8062 (*muluqihi3.sconst): New insn_and_split.
8063 (*mulsqihi3.sconst): New insn_and_split.
8064 (*mulsqihi3.uconst): New insn_and_split.
8065 (*mulsqihi3.oconst): New insn_and_split.
8066 (*ashifthi3.signx.const): New insn_and_split.
8067 (*ashifthi3.signx.const7): New insn_and_split.
8068 (*ashifthi3.zerox.const): New insn_and_split.
8069 (mulsqihi3): New insn.
8070 (muluqihi3): New insn.
8071 (muloqihi3): New insn.
8072 * config/avr/predicates.md (const_2_to_7_operand): New.
8073 (const_2_to_6_operand): New.
8074 (u8_operand): New.
8075 (s8_operand): New.
8076 (o8_operand): New.
8077 (s9_operand): New.
8078 (register_or_s9_operand): New.
8079
8080 2011-07-20 Kai Tietz <ktietz@redhat.com>
8081
8082 * builtins.c (fold_builtin_expect): See through the cast
8083 from truthvalue_type_node to long.
8084
8085 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
8086
8087 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
8088 where we can use them from the standard and altivec instruction
8089 sets, instead of always using the 3 operand VSX forms that require
8090 the destination to overlap one of the inputs.
8091 (vsx_fms*): Ditto.
8092 (vsx_fnma*): Ditto.
8093 (vsx_fnms*): Ditto.
8094
8095 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
8096 for DF types.
8097 (fmsdf4_fpr): Ditto.
8098 (nfmadf4_fpr): Ditto.
8099 (nfmsdf4_fpr): Ditto.
8100
8101 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
8102
8103 * genrecog.c (make_insn_sequence): Correct position numbering
8104 when filtering out match_scratch and match_dup.
8105
8106 2011-07-20 Richard Guenther <rguenther@suse.de>
8107
8108 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
8109 against already removed statements.
8110 (forward_propagate_into_comparison): Remove dead defining stmts.
8111 (forward_propagate_into_gimple_cond): Likewise.
8112 (forward_propagate_into_cond): Simplify.
8113 (ssa_forward_propagate_and_combine): Handle changed cfg from
8114 forward_propagate_into_comparison.
8115 * tree-ssa-phiopt.c (conditional_replacement): Use proper
8116 locations for newly built statements.
8117
8118 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
8119
8120 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
8121
8122 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8123
8124 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
8125 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
8126
8127 2011-07-20 Richard Guenther <rguenther@suse.de>
8128
8129 PR middle-end/18908
8130 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
8131 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
8132 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
8133
8134 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
8135
8136 * config/frv/frv.c (frv_register_move_cost): Define explicitly
8137 costs for subclasses of GR_REGS.
8138
8139 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
8140
8141 PR target/49780
8142 * config/i386/predicates.md (no_seg_addres_operand): No more special.
8143 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8144 of DImode hard registers in base.
8145 (ix86_legitimate_address_p): Allow SImode and DImode base and index
8146 registers.
8147
8148 2011-07-20 Richard Guenther <rguenther@suse.de>
8149
8150 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
8151 (unify_nodes): Deal with that.
8152 (solve_graph): Likewise.
8153
8154 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
8155
8156 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
8157 canonicalize left operand from ZERO_EXTEND to AND.
8158
8159 2011-07-20 Anatoly Sokolov <aesok@post.ru>
8160
8161 * target.def (class_max_nregs): New hook.
8162 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
8163 * doc/tm.texi: Regenerate.
8164 * targhooks.c (default_class_max_nregs): New function.
8165 * targhooks.h (default_class_max_nregs): Declare.
8166 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
8167 x_ira_reg_class_min_nregs arrays to unsigned char.
8168 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
8169 hook instead of CLASS_MAX_NREGS macro.
8170 * reginfo.c (restore_register_info): Ditto.
8171 * ira-conflicts.c (process_regs_for_copy): Use
8172 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
8173 Change type rclass and aclass vars to reg_class_t.
8174 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
8175 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
8176 reg_class_t.
8177 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
8178 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
8179
8180 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
8181 * config/i386/i386.c (ix86_class_max_nregs): New function.
8182 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
8183 instead of CLASS_MAX_NREGS macro.
8184 (TARGET_CLASS_MAX_NREGS): Define.
8185 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
8186 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
8187 * config/avr/avr.c (class_max_nregs): Remove function.
8188 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
8189 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
8190 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
8191 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
8192 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
8193 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
8194 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
8195 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
8196 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
8197 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
8198 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
8199 * config/score/score.h (CLASS_MAX_NREGS): Remove.
8200 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
8201 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
8202 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
8203
8204 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
8205
8206 * cif-code.def (OVERWRITABLE): Fix typo and move around.
8207 (TARGET_OPTIMIZATION_MISMATCH): Delete.
8208 (EH_PERSONALITY): Fix typo.
8209 (NON_CALL_EXCEPTIONS): Fix message.
8210 (OPTIMIZATION_MISMATCH): Adjust message.
8211 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
8212
8213 2011-07-19 Ian Lance Taylor <iant@google.com>
8214
8215 * doc/install.texi (Configuration): Document
8216 --enable-build-poststage1-with-cxx.
8217
8218 2011-07-19 Robert Millan <rmh@gnu.org>
8219
8220 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
8221 (GLIBC_DYNAMIC_LINKER): Remove.
8222
8223 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
8224 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
8225 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
8226 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
8227 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
8228 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
8229
8230 * config/mips/linux.h: Remove everything except for ...
8231 (GLIBC_DYNAMIC_LINKER): ... this macro.
8232
8233 * config/mips/linux64.h: Remove everything except for ...
8234 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
8235 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
8236 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
8237 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
8238 (GNU_USER_LINK_EMULATIONN32): New macros.
8239
8240 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
8241 Use the new headers.
8242
8243 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
8244
8245 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
8246 Add offset_known_p and size_known_p fields.
8247 (MEM_OFFSET_KNOWN_P): Update accordingly.
8248 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
8249 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
8250 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
8251 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
8252 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
8253 (init_emit_regs): Likewise.
8254
8255 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
8256
8257 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
8258 (MEM_OFFSET): Change from returning an rtx to returning a
8259 HOST_WIDE_INT.
8260 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
8261 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
8262 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
8263 (clear_mem_offset): Declare.
8264 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
8265 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
8266 MEM_OFFSET to get a HOST_WIDE_INT offset.
8267 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
8268 (adjust_offset_for_component_ref): Take a bool "known_p"
8269 parameter and a HOST_WIDE_INT "offset" parameter.
8270 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
8271 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
8272 than an rtx. Use clear_mem_offset to clear the offset.
8273 * cfgcleanup.c (merge_memattrs): Likewise.
8274 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
8275 * function.c (assign_parm_find_stack_rtl): Likewise.
8276 (assign_parm_setup_stack): Likewise.
8277 * print-rtl.c (print_rtx): Likewise.
8278 * reload.c (find_reloads_subreg_address): Likewise.
8279 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
8280 * var-tracking.c (INT_MEM_OFFSET): Likewise.
8281 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
8282 (get_mem_align_offset): Likewise.
8283 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
8284 (clear_mem_offset): New function.
8285 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
8286 offset rather than an rtx. Assume both the expressio and offset
8287 are available.
8288 (r10k_needs_protection_p_1): Update accordingly, checking the
8289 expression and offset availability here instead.
8290
8291 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
8292
8293 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
8294 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
8295 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
8296 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
8297 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
8298 (clear_mem_size): Declare.
8299 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
8300 (clear_mem_size): New function.
8301 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
8302 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
8303 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
8304 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
8305 to clear the size.
8306 (nonoverlapping_memrefs_p): Likewise.
8307 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
8308 (expand_builtin_init_trampoline): Likewise.
8309 * calls.c (compute_argument_addresses): Likewise.
8310 * cfgcleanup.c (merge_memattrs): Likewise.
8311 * dce.c (find_call_stack_args): Likewise.
8312 * dse.c (record_store, scan_insn): Likewise.
8313 * dwarf2out.c (dw_sra_loc_expr): Likewise.
8314 * expr.c (emit_block_move_hints): Likewise.
8315 * function.c (assign_parm_find_stack_rtl): Likewise.
8316 * print-rtl.c (print_rtx): Likewise.
8317 * reload.c (find_reloads_subreg_address): Likewise.
8318 * rtlanal.c (may_trap_p_1): Likewise.
8319 * var-tracking.c (track_expr_p): Likewise.
8320 * varasm.c (assemble_trampoline_template): Likewise.
8321 * config/arm/arm.c (arm_print_operand): Likewise.
8322 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
8323 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
8324 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
8325 (expand_constant_setmem_prologue): Likewise.
8326 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
8327 * config/rs6000/rs6000.c (expand_block_move): Likewise.
8328 (adjacent_mem_locations): Likewise.
8329 * config/s390/s390.c (s390_expand_setmem): Likewise.
8330 (s390_expand_insv): Likewise.
8331 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
8332 (*extendqi<mode>2_short_displ): Likewise.
8333 * config/sh/sh.c (expand_block_move): Likewise.
8334 * config/sh/sh.md (extv, extzv): Likewise.
8335
8336 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
8337
8338 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
8339 (mem_attrs_htab_eq): ...here.
8340 (find_mem_attrs): Replace with...
8341 (set_mem_attrs): ...this function. Take a mem_attrs structure
8342 rather than individual fields.
8343 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
8344 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
8345 (set_mem_size, change_address, adjust_address_1, offset_address)
8346 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
8347 Update accordingly.
8348
8349 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
8350
8351 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
8352 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
8353 Provide a dummy definition of MEM_ADDR_SPACE for generators.
8354 (target_rtl): Add x_mode_mem_attrs.
8355 (mode_mem_attrs): New macro.
8356 (get_mem_attrs): New function.
8357 * emit-rtl.c (get_mem_attrs): Rename to...
8358 (find_mem_attrs): ...this.
8359 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
8360 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
8361 (set_mem_size, change_address, adjust_address_1, offset_address)
8362 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
8363 Update accordingly.
8364 (init_emit_regs): Initialize mode_mem_attrs.
8365
8366 2011-07-19 Richard Guenther <rguenther@suse.de>
8367
8368 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
8369 TRUTH_*_EXPR handling.
8370 * tree-ssa-operands.c (get_expr_operands): Likewise.
8371 * tree-ssa-pre.c (fully_constant_expression): Likewise.
8372 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
8373 Likewise.
8374 (is_and_or_or): Likewise.
8375 (is_norm_cond_subset_of): Likewise.
8376
8377 2011-07-19 Richard Guenther <rguenther@suse.de>
8378
8379 * tree.h (fold_build_pointer_plus_loc): New helper function.
8380 (fold_build_pointer_plus_hwi_loc): Likewise.
8381 (fold_build_pointer_plus): Define.
8382 (fold_build_pointer_plus_hwi): Likewise.
8383 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
8384 (fold_builtin_memory_op): Likewise.
8385 (fold_builtin_stpcpy): Likewise.
8386 (fold_builtin_memchr): Likewise.
8387 (fold_builtin_strstr): Likewise.
8388 (fold_builtin_strchr): Likewise.
8389 (fold_builtin_strrchr): Likewise.
8390 (fold_builtin_strpbrk): Likewise.
8391 (fold_builtin_strcat): Likewise.
8392 (expand_builtin_memory_chk): Likewise.
8393 (fold_builtin_memory_chk): Likewise.
8394 * c-typeck.c (build_unary_op): Likewise.
8395 * cgraphunit.c (thunk_adjust): Likewise.
8396 * fold-const.c (build_range_check): Likewise.
8397 (fold_binary_loc): Likewise.
8398 * omp-low.c (extract_omp_for_data): Likewise.
8399 (expand_omp_for_generic): Likewise.
8400 (expand_omp_for_static_nochunk): Likewise.
8401 (expand_omp_for_static_chunk): Likewise.
8402 * tree-affine.c (add_elt_to_tree): Likewise.
8403 * tree-data-ref.c (split_constant_offset_1): Likewise.
8404 * tree-loop-distribution.c (generate_memset_zero): Likewise.
8405 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
8406 * tree-predcom.c (ref_at_iteration): Likewise.
8407 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
8408 (add_to_parts): Likewise.
8409 (create_mem_ref): Likewise.
8410 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
8411 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
8412 (number_of_iterations_le): Likewise.
8413 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
8414 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8415 (vect_create_addr_base_for_vector_ref): Likewise.
8416 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
8417 (vect_create_cond_for_alias_checks): Likewise.
8418 * tree-vrp.c (extract_range_from_assert): Likewise.
8419 * config/alpha/alpha.c (alpha_va_start): Likewise.
8420 (alpha_gimplify_va_arg_1): Likewise.
8421 * config/i386/i386.c (ix86_va_start): Likewise.
8422 (ix86_gimplify_va_arg): Likewise.
8423 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
8424 * config/mep/mep.c (mep_expand_va_start): Likewise.
8425 (mep_gimplify_va_arg_expr): Likewise.
8426 * config/mips/mips.c (mips_va_start): Likewise.
8427 (mips_gimplify_va_arg_expr): Likewise.
8428 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
8429 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
8430 (rs6000_gimplify_va_arg): Likewise.
8431 * config/s390/s390.c (s390_va_start): Likewise.
8432 (s390_gimplify_va_arg): Likewise.
8433 * config/sh/sh.c (sh_va_start): Likewise.
8434 (sh_gimplify_va_arg_expr): Likewise.
8435 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
8436 * config/spu/spu.c (spu_va_start): Likewise.
8437 (spu_gimplify_va_arg_expr): Likewise.
8438 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
8439 Likewise.
8440 (xstormy16_gimplify_va_arg_expr): Likewise.
8441 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
8442 (xtensa_gimplify_va_arg_expr): Likewise.
8443
8444 2011-07-19 Richard Guenther <rguenther@suse.de>
8445
8446 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
8447 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
8448 handling.
8449
8450 PR middle-end/18908
8451 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
8452 result of BIT_*_EXPR to bitfield precision.
8453
8454 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
8455
8456 PR tree-optimization/49742
8457 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
8458 as a potential write.
8459
8460 2011-07-19 Richard Guenther <rguenther@suse.de>
8461
8462 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
8463 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
8464 (forward_propagate_comparison): Simplify, remove obsolete code.
8465
8466 2011-07-19 Richard Guenther <rguenther@suse.de>
8467
8468 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
8469 BIT_XOR_EXPR, same as the RTL expander does.
8470 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
8471 (verify_gimple_assign_unary): Likewise.
8472 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
8473 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
8474 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
8475
8476 2011-07-19 Jakub Jelinek <jakub@redhat.com>
8477
8478 PR tree-optimization/49768
8479 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
8480 if offset is smaller than bitoffset, but offset+size is bigger
8481 than bitoffset.
8482
8483 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
8484
8485 PR tree-optimization/49771
8486 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
8487 zero step, set segment length to the size of the data-ref's type.
8488
8489 2011-07-18 Martin Jambor <mjambor@suse.cz>
8490
8491 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
8492 comments.
8493 (ipcp_values_pool): Declare.
8494 (ipcp_sources_pool): Likewise.
8495 (ipcp_lattice): Changed to forward declaration.
8496 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
8497 cannot_devirtualize.
8498 (ipa_node_params): New fields descriptors, lattices, known_vals,
8499 clone_for_all_contexts and node dead, removed fields params and
8500 count_scale.
8501 (ipa_set_param_count): Removed.
8502 (ipa_get_param_count): Made to work with descriptors vector.
8503 (ipa_get_param): Updated.
8504 (ipa_param_cannot_devirtualize_p): Removed.
8505 (ipa_param_types_vec_empty): Likewise.
8506 (ipa_set_param_used): New function.
8507 (ipa_get_param_used): Updated to use descriptors vector.
8508 (ipa_func_list): Removed.
8509 (ipa_init_func_list): Removed declaration.
8510 (ipa_push_func_to_list_1): Likewise.
8511 (ipa_pop_func_from_list): Likewise.
8512 (ipa_push_func_to_list): Removed.
8513 (ipa_lattice_from_jfunc): Remove declaration.
8514 (ipa_get_jf_pass_through_result): Declare.
8515 (ipa_get_jf_ancestor_result): Likewise.
8516 (ipa_value_from_jfunc): Likewise.
8517 (ipa_get_lattice): Update.
8518 (ipa_lat_is_single_const): New function.
8519 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
8520 (ipa_init_func_list): Likewise.
8521 (ipa_pop_func_from_list): Likewise.
8522 (ipa_get_param_decl_index): Fix coding style.
8523 (count_formal_params): Removed.
8524 (count_formal_params_1): Renamed to count_formal_params.
8525 (ipa_populate_param_decls): Update to use descriptors vector.
8526 (ipa_initialize_node_params): Likewise.
8527 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
8528 (ipa_analyze_params_uses): Likewise.
8529 (ipa_free_node_params_substructures): Likewise and free also lattices
8530 and known values.
8531 (duplicate_array): Removed.
8532 (ipa_edge_duplication_hook): Add the new edge to the list of edge
8533 clones.
8534 (ipa_node_duplication_hook): Update to use new lattices.
8535 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
8536 (ipa_free_all_structures_after_iinln): Likewise.
8537 (ipa_write_node_info): Update to use new lattices.
8538 (ipa_read_node_info): Likewise.
8539 (ipa_get_jf_pass_through_result): New function.
8540 (ipa_get_jf_ancestor_result): Likewise.
8541 (ipa_value_from_jfunc): Likewise.
8542 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
8543 * ipa-cp.c: Reimplemented.
8544 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
8545 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
8546 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
8547 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
8548 * doc/invoke.texi (devirt-type-list-size): Removed description.
8549 (ipa-cp-value-list-size): Added description.
8550
8551 2011-07-18 Richard Henderson <rth@redhat.com>
8552
8553 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
8554 before calling create_basic_block.
8555
8556 2011-07-18 Jakub Jelinek <jakub@redhat.com>
8557
8558 PR middle-end/49675
8559 * tree.c (build_common_builtin_nodes): Register
8560 __builtin_return_address, __cyg_profile_func_enter
8561 and __cyg_profile_func_exit.
8562
8563 2011-07-18 Richard Henderson <rth@redhat.com>
8564
8565 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
8566 (add_labels_and_missing_jumps): ... here.
8567 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
8568
8569 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
8570
8571 PR target/47744
8572 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8573 of DImode hard registers in PLUS address chains.
8574
8575 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8576
8577 PR bootstrap/49769
8578 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
8579 (alpha*-*-freebsd*): Likewise.
8580 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
8581 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
8582 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
8583 crtprec80.o, crtfastmath.o to extra_parts for all targets.
8584 (ia64*-*-elf*): Remove extra_parts.
8585 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
8586 (sparc64-*-linux*): Likewise.
8587 (sparc64-*-freebsd*): Likewise.
8588
8589 Revert:
8590 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
8591 (ia64*-*-linux*): Likewise.
8592 (mips64*-*-linux*): Likewise.
8593 (mips*-*-linux*): Likewise.
8594
8595 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
8596
8597 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
8598
8599 2011-07-18 Richard Guenther <rguenther@suse.de>
8600
8601 * gimplify.c (gimplify_expr): Use input_location, not saved_location
8602 when building new trees.
8603
8604 2011-07-18 Richard Guenther <rguenther@suse.de>
8605
8606 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
8607 expansion result to bitfield precision if required.
8608
8609 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8610
8611 * config.gcc (i[3456x]86-*-netware*): Remove.
8612
8613 * gthr-nks.h: Remove.
8614 * configure.ac (enable_threads): Remove nks.
8615 * configure: Regenerate.
8616
8617 * config/i386/i386.c (ix86_encode_section_info): Remove netware
8618 reference.
8619 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
8620 <netware.h> reference.
8621
8622 * config/i386/netware-libgcc.c,
8623 gcc/config/i386/netware-libgcc.def,
8624 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
8625 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
8626 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
8627 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
8628
8629 * doc/extend.texi (Function Attributes,
8630 callee_pop_aggregate_return): Remove i?86-netware reference.
8631 * doc/install.texi (Configuration, --enable-threads): Remove nks.
8632
8633 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8634
8635 PR target/49746
8636 Revert:
8637 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8638
8639 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
8640 patterns.
8641
8642 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
8643
8644 PR middle-end/49732
8645 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
8646
8647 2011-07-16 Matthias Klose <doko@ubuntu.com>
8648
8649 * doc/install.texi: Document --enable-static-libjava.
8650
8651 2011-07-15 Richard Henderson <rth@redhat.com>
8652
8653 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
8654 Replace all three arguments by returning a VEC of edges.
8655 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
8656 pointers and counts.
8657 (fix_edges_for_rarely_executed_code): Merge ...
8658 (rest_of_handle_partition_blocks): ... into...
8659 (partition_hot_cold_basic_blocks): ... here. Return todo items if
8660 any work was performed.
8661 (pass_partition_blocks): Clear todo_flags_finish.
8662
8663 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
8664 Jakub Jelinek <jakub@redhat.com>
8665 Jonathan Wakely <jwakely.gcc@gmail.com>
8666
8667 PR libstdc++/49745
8668 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
8669 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
8670
8671 2011-07-15 Jason Merrill <jason@redhat.com>
8672
8673 PR testsuite/49741
8674 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
8675 rather than --tool_opts.
8676
8677 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
8678
8679 * doc/plugins.texi (Building GCC plugins): gengtype needs its
8680 corresponding gtype.state.
8681
8682 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8683
8684 PR target/49723
8685 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
8686
8687 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
8688
8689 PR target/48220
8690 * doc/md.texi (Standard Names): Document window_save.
8691 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
8692 expand_debug_expr and expand_debug_source_expr. If the target has
8693 a window_save instruction, adjust the ENTRY_VALUE_EXP.
8694 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
8695 SSA_NAME_VAR is a parameter.
8696 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
8697 * var-tracking.c (parm_reg_t): New type and associated vector type.
8698 (windowed_parm_regs): New variable.
8699 (adjust_insn): If the target has a window_save instruction and this
8700 is the instruction, make its effect on parameter registers explicit.
8701 (next_non_note_insn_var_location): New function.
8702 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
8703 (vt_add_function_parameter): If the target has a window_save insn,
8704 adjust the incoming RTL and record that in windowed_parm_regs.
8705 (vt_finalize): Free windowed_parm_regs.
8706
8707 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
8708
8709 * doc/invoke.texi (C6X Options): New section.
8710 * doc/md.texi (TI C6X family): New section.
8711 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
8712 tic6x-*-uclinux.
8713 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
8714 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
8715 Provide C6X definitions.
8716 * config/c6x/c6x.md: New file.
8717 * config/c6x/constraints.md: New file.
8718 * config/c6x/predicates.md: New file.
8719 * config/c6x/c6x-sched.md.in: New file.
8720 * config/c6x/c6x-sched.md: New file.
8721 * config/c6x/gensched.sh: New file.
8722 * config/c6x/c6x-mult.md.in: New file.
8723 * config/c6x/genmult.sh: New file.
8724 * config/c6x/c6x-mult.md: New file.
8725 * config/c6x/sync.md: New file.
8726 * config/c6x/c6x-protos.h: New file.
8727 * config/c6x/sfp-machine.h: New file.
8728 * config/c6x/c6x.c: New file.
8729 * config/c6x/c6x.h: New file.
8730 * config/c6x/crti.s: New file.
8731 * config/c6x/crtn.s: New file.
8732 * config/c6x/lib1funcs.asm: New file.
8733 * config/c6x/c6x-modes.def: New file.
8734 * config/c6x/genopt.sh: New file.
8735 * config/c6x/c6x.opt: New file.
8736 * config/c6x/c6x-tables.opt: New file.
8737 * config/c6x/c6x-opts.h: New file.
8738 * config/c6x/c6x-isas.def: New file.
8739 * config/c6x/elf.h: New file.
8740 * config/c6x/elf-common.h: New file.
8741 * config/c6x/uclinux-elf.h: New file.
8742 * config/c6x/t-c6x: New file.
8743 * config/c6x/t-c6x-elf: New file.
8744 * config/c6x/t-c6x-uclinux: New file.
8745 * config/c6x/t-c6x-softfp: New file.
8746 * config/c6x/gtd.c: New file.
8747 * config/c6x/gtf.c: New file.
8748 * config/c6x/ltd.c: New file.
8749 * config/c6x/ltf.c: New file.
8750 * config/c6x/ged.c: New file.
8751 * config/c6x/gef.c: New file.
8752 * config/c6x/led.c: New file.
8753 * config/c6x/lef.c: New file.
8754 * config/c6x/eqd.c: New file.
8755 * config/c6x/eqf.c: New file.
8756 * config/c6x/libgcc-c6xeabi.ver: New file.
8757
8758 Revert
8759 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
8760 PR rtl-optimization/11320
8761 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
8762 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
8763 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
8764 current_sched_info->compute_jump_reg_dependencies. Record which
8765 registers are used and which registers are set by the jump.
8766 Clear deps->reg_conditional_sets after a barrier.
8767 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
8768 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
8769 (init_deps): Initialize reg_conditional_sets.
8770 (free_deps): Clear reg_conditional_sets.
8771 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
8772 Mark registers live on entry of the fallthrough block and conditionally
8773 set as set by the jump. Mark registers live on entry of non-fallthrough
8774 blocks as used by the jump.
8775 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
8776 Mark new parameters as unused.
8777
8778 2011-07-14 Andrew Pinski <pinskia@gmail.com>
8779
8780 PR tree-opt/49309
8781 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
8782 Use fold_build2_loc instead of build2.
8783 Use the correct type for the new tree.
8784
8785 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
8786
8787 PR rtl-optimization/11320
8788 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
8789 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
8790
8791 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
8792
8793 PR target/49487
8794 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
8795 of REG.
8796 (*rotw<mode>): Use const_int_operand for operand2.
8797 Use match_scatch for operand3.
8798 (*rotb<mode>): Ditto
8799 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
8800
8801 2011-07-14 Richard Guenther <rguenther@suse.de>
8802
8803 PR tree-optimization/49651
8804 * tree-ssa-structalias.c (get_constraint_for_1): Properly
8805 handle dereferences with subvariables.
8806
8807 2011-07-14 Richard Guenther <rguenther@suse.de>
8808
8809 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
8810 (fold_stmt_1): Do it here directly on gimple and as a first thing.
8811
8812 2011-07-14 Richard Guenther <rguenther@suse.de>
8813
8814 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
8815 not bool_var when folding bool_var != 1 or bool_var == 0.
8816
8817 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
8818
8819 * haifa-sched.c (schedule_insns): Remove outdated comment.
8820 (schedule_block): When computing a known value for TODO_SPEC,
8821 just set it rather than using logical operations.
8822 (try_ready): Likewise. Use a local variable rather than a
8823 pointer to TODO_SPEC. Reorder an if statement to move the
8824 easy case to the then block.
8825 * sched-deps.c (dep_spec_p): New static function.
8826 (update_dep): Use it to decide whether to call
8827 change_spec_dep_to_hard.
8828 (get_back_and_forw_lists): Use it.
8829 (sd_resolve_dep): Likewise.
8830 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
8831 (haifa_note_mem_dep): Likewise.
8832 (check_dep): Likewise.
8833 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
8834 (sched_free_deps): Free in two passes.
8835
8836 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
8837
8838 PR middle-end/49736
8839 * expr.c (all_zeros_p): Undo bogus part of last change.
8840
8841 2011-07-14 Matthias Klose <doko@ubuntu.com>
8842
8843 * doc/extend.texi (optimize attribute): Fix typo.
8844
8845 2011-07-14 Richard Guenther <rguenther@suse.de>
8846
8847 * gimplify.c (gimplify_expr): Only do required conversions.
8848
8849 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
8850
8851 PR target/43746
8852 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
8853 i.e. use default_elf_select_section.
8854 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
8855 (READONLY_DATA_SECTION_ASM_OP): Remove.
8856 (TARGET_ASM_NAMED_SECTION): Move from here...
8857 * config/avr/avr.c: ...to here.
8858 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
8859 (avr_asm_named_section): Make static.
8860
8861 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8862
8863 PR bootstrap/49739
8864 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
8865 and crtfastmath.o for Linux/x86.
8866
8867 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
8868
8869 * haifa-sched.c: Include "hashtab.h"
8870 (sched_no_dce): New global variable.
8871 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
8872 SHADOW_P): New macros.
8873 (last_clock_var, cycle_issued_insns): Move declarations.
8874 (must_backtrack): New static variable.
8875 (struct delay_pair): New structure.
8876 (delay_htab, delay_htab_i2): New static variables.
8877 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
8878 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
8879 functions.
8880 (dep_cost_1): If delay pairs exist, try to look up the insns and
8881 use the correct pair delay if we find them.
8882 (rank-for_schedule): Tweak priority for insns that must be scheduled
8883 soon to avoid backtracking.
8884 (queue_insn): Detect conditions which force backtracking.
8885 (ready_add): Likewise.
8886 (struct sched_block_state): Add member shadows_only_p.
8887 (struct haifa_save_data): New structure.
8888 (backtrack_queue): New static variable.
8889 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
8890 unschedule_insns_until, restore_last_backtrack_point,
8891 free_topmost_backtrack_point, free_backtrack_queue,
8892 estimate_insn_tick, estimate_shadow_tick): New functions.
8893 (prune_ready_list): New arg shadows_only_p. All callers changed.
8894 If true, remove everything that isn't SHADOW_P. Look up delay
8895 pairs and estimate ticks to avoid scheduling the first insn too early.
8896 (verify_shadows): New function.
8897 (schedule_block): Add machinery to enable backtracking.
8898 (sched_init): Take sched_no_dce into account when setting
8899 DF_LR_RUN_DCE.
8900 (free_delay_pairs): New function.
8901 (init_h_i_d): Initialize INSN_EXACT_TICK.
8902 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
8903 * sched-deps.c (sd_unresolve_dep): New function.
8904 * sched-int. (struct haifa_sched_info): New fields save_state
8905 and restore_state.
8906 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
8907 feeds_backtrack_insn and shadow_p.
8908 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
8909 (sched_no_dce): Declare variable.
8910 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
8911 sd_unresolve_dep): Declare functions.
8912 * modulo-sched.c (sms_sched_info): Clear the two new fields.
8913 * sched-rgn.c (rgn_const_sched_info): Likewise.
8914 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8915 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
8916 (ebb_sched_info): Add them for the two new fields.
8917 (add_deps_for_risky_insns): Call add_delay_dependencies.
8918
8919 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
8920
8921 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
8922 Rename -mr11.
8923 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
8924 (rs6000_call_indirect_aix): Ditto.
8925 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
8926 (call_indirect_aix<ptrsize>_internal): Ditto.
8927 (call_indirect_aix<ptrsize>_nor11): Ditto.
8928 (call_indirect_aix<ptrsize>_internal2): Ditto.
8929 (call_value_indirect_aix<ptrsize>): Ditto.
8930 (call_value_indirect_aix<ptrsize>_internal): Ditto.
8931 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
8932 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
8933 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
8934
8935 2011-07-13 Jason Merrill <jason@redhat.com>
8936
8937 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
8938
8939 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8940
8941 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
8942 * config/spu/spu.md ("clrsb<mode>2"): New expander.
8943
8944 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
8945
8946 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
8947 * configure: Regenerate.
8948
8949 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8950
8951 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
8952 (asm_file_start): Remove.
8953 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
8954 free_bb_for_insn around code that modifies insns before
8955 restarting df analysis.
8956
8957 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8958
8959 PR target/49541
8960 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
8961 (LINK_SPEC): ... here.
8962
8963 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
8964
8965 * haifa-sched.c (struct sched_block_state): New.
8966 (schedule_block): Move some local variables into such a structure.
8967
8968 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8969
8970 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
8971 * config/i386/t-crtpc: Remove.
8972 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
8973 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
8974 tmake_file.
8975 (x86_64-*-darwin*): Likewise.
8976 (i[34567]86-*-linux*): Likewise.
8977 (x86_64-*-linux*): Likewise.
8978
8979 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
8980 Handle -mpc32, -mpc64, -mpc80.
8981
8982 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8983
8984 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
8985 * config/alpha/t-crtfm: Remove.
8986 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
8987 * config/i386/t-crtfm: Remove.
8988 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
8989 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
8990 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
8991 * config/sparc/t-crtfm: Remove.
8992
8993 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
8994 (alpha*-*-freebsd*): Likewise.
8995 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
8996 (x86_64-*-darwin*): Likewise.
8997 (i[34567]86-*-linux*): Likewise.
8998 (x86_64-*-linux*): Likewise.
8999 (x86_64-*-mingw*): Likewise.
9000 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
9001 (ia64*-*-freebsd*): Likewise.
9002 (ia64*-*-linux*): Likewise.
9003 (mips64*-*-linux*): Likewise.
9004 (mips*-*-linux*): Likewise.
9005 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
9006 (sparc64-*-linux*): Likewise.
9007 (sparc64-*-freebsd*): Likewise.
9008
9009 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9010
9011 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
9012 * config/darwin-crt3.c: Move to ../libgcc/config.
9013 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
9014 ($(T)crt3$(objext)): Remove.
9015 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
9016 ($(T)crt2$(objext)): Remove.
9017 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
9018 (powerpc64-*-darwin*): Likewise.
9019
9020 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
9021
9022 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
9023
9024 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
9025 (addsi_1_zext): This.
9026
9027 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
9028
9029 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
9030 * doc/tm.texi: Regenerate.
9031 * target.def (mergeable_rodata_prefix): New defhookpod.
9032 * varasm.c (mergeable_string_section, mergeable_constant_section):
9033 Use it. Allocate name with alloca.
9034
9035 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
9036
9037 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
9038
9039 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
9040
9041 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
9042 overlap check.
9043
9044 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
9045
9046 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
9047 (count_type_elements): Delete.
9048 (complete_ctor_at_level_p): Declare.
9049 * expr.c (flexible_array_member_p): New function, split out from...
9050 (count_type_elements): ...here. Make static. Replace allow_flexarr
9051 parameter with for_ctor_p. When for_ctor_p is true, return the
9052 number of elements that should appear in the top-level constructor,
9053 otherwise return an estimate of the number of scalars.
9054 (categorize_ctor_elements): Replace p_must_clear with p_complete.
9055 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
9056 (complete_ctor_at_level_p): New function, borrowing union logic
9057 from old categorize_ctor_elements_1.
9058 (mostly_zeros_p): Return true if the constructor is not complete.
9059 (all_zeros_p): Update call to categorize_ctor_elements.
9060 * gimplify.c (gimplify_init_constructor): Update call to
9061 categorize_ctor_elements. Don't call count_type_elements.
9062 Unconditionally prevent clearing for variable-sized types,
9063 otherwise rely on categorize_ctor_elements to detect
9064 incomplete initializers.
9065
9066 2011-07-13 Richard Guenther <rguenther@suse.de>
9067
9068 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
9069 the final type is integral.
9070
9071 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
9072
9073 * sched-int.h (struct _dep): Add member cost.
9074 (DEP_COST, UNKNOWN_DEP_COST): New macros.
9075 * sched-deps.c (init_dep_1): Initialize DEP_COST.
9076 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
9077 (sched_change_pattern): Reset it for dependent insns.
9078
9079 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9080
9081 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
9082 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
9083 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
9084 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
9085 (CRT0_S, MCRT0_S): Remove.
9086 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
9087 Remove.
9088 (s-crt0): Remove.
9089 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
9090
9091 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
9092
9093 * cse.c (insert_with_costs): Put semi-colon after empty loop body
9094 on the next line.
9095 * emit-rtl.c (push_to_sequence): Likewise.
9096 * haifa-sched.c (max_issue): Likewise.
9097 * matrix-reorg.c (add_allocation_site): Likewise.
9098 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
9099 * reload.c (alternative_allows_const_pool_ref): Likewise.
9100 * sched-rgn.c (rgn_add_block): Likewise.
9101 (rgn_fix_recovery_cfg): Likewise.
9102 * tree.c (attribute_list_contained): Likewise.
9103
9104 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
9105
9106 * config/i386/i386.c: Tidy processor feature bitmasks.
9107 (m_P4_NOCONA): New.
9108
9109 2011-07-12 Andrew Pinski <pinskia@gmail.com>
9110
9111 PR rtl-opt/49474
9112 * cprop.c (find_implicit_sets): Correct the condition.
9113
9114 2011-07-12 Richard Henderson <rth@redhat.com>
9115
9116 PR target/49713
9117 * dwarf2out.h (dwarf_frame_regnum): Remove.
9118 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
9119 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
9120 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
9121 (execute_dwarf2_frame): Initialize them.
9122 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
9123 users of the macros with the variables.
9124 (expand_builtin_dwarf_sp_column): Revert last change.
9125 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
9126 result of DWARF_FRAME_REGNUM into a local variable.
9127
9128 2011-07-12 Richard Henderson <rth@redhat.com>
9129
9130 PR target/49714
9131 * config/i386/i386.c (x86_output_mi_thunk): Use
9132 machopic_indirect_call_target instead of machopic_indirection_name
9133 directly.
9134
9135 2011-07-12 Laurent GUERBY <laurent@guerby.net>
9136 Eric Botcazou <ebotcazou@adacore.com>
9137
9138 * prefix.h: Wrap up in extern "C" block.
9139
9140 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
9141
9142 AMD bdver2 Enablement
9143 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
9144 (case ${target}): Add bdver2.
9145 * config/i386/driver-i386.c (host_detect_local_cpu): Let
9146 -march=native recognize bdver2 processors.
9147 * config/i386/i386-c.c (ix86_target_macros_internal): Add
9148 bdver2 def_and_undef
9149 * config/i386/i386.c (struct processor_costs bdver2_cost): New
9150 bdver2 cost table.
9151 (m_BDVER2): New definition.
9152 (m_AMD_MULTIPLE): Includes m_BDVER2.
9153 (initial_ix86_tune_features): Add bdver2 tuning.
9154 (processor_target_table): Add bdver2 entry.
9155 (static const char *const cpu_names): Add bdver2 entry.
9156 (ix86_option_override_internal): Add bdver2 instruction sets.
9157 (ix86_issue_rate): Add bdver2.
9158 (ix86_adjust_cost): Add bdver2.
9159 (has_dispatch): Add bdver2.
9160 * config/i386/i386.h (TARGET_BDVER2): New definition.
9161 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
9162 (enum processor_type): Add PROCESSOR_BDVER2.
9163 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
9164 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
9165 description.
9166
9167 2011-07-12 Richard Henderson <rth@redhat.com>
9168
9169 PR target/49714
9170 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
9171 destination address in memory on some paths.
9172
9173 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
9174
9175 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
9176 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
9177 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
9178 * function.c (locate_and_pad_parm): Take it into account.
9179 * target.def (function_arg_round_boundary): New hook.
9180 * targhooks.c (default_function_arg_round_boundary): New function.
9181 * targhooks.h (default_function_arg_round_boundary): Declare.
9182 * doc/tm.texi: Regenerate.
9183
9184 2011-07-12 Richard Guenther <rguenther@suse.de>
9185
9186 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
9187 Do not perform no-op changes.
9188
9189 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
9190
9191 * config/arm/predicates.md (neon_struct_operand): Make a normal
9192 predicate.
9193 (neon_struct_or_register_operand): New predicate.
9194 * config/arm/neon.md (movmisalign<mode>): Replace predicates
9195 with neon_struct_or_register_operand.
9196 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
9197 neon_struct_operand instead of memory_operand.
9198
9199 2011-07-12 Martin Jambor <mjambor@suse.cz>
9200
9201 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
9202 * cgraph.c (cgraph_get_node_or_alias): Removed.
9203 (change_decl_assembler_name): Changed all calls to
9204 cgraph_get_node_or_alias to a call to cgraph_get_node.
9205 (cgraph_make_decl_local): Likewise.
9206 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
9207 * varasm.c (default_binds_local_p_1): Likewise.
9208 (decl_binds_to_current_def_p): Likewise.
9209
9210 2011-07-12 Jakub Jelinek <jakub@redhat.com>
9211
9212 PR tree-optimization/49712
9213 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
9214
9215 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
9216
9217 * genautomata.c (add_arc): Return void. All callers changed.
9218 (make_automaton): Remove dead code.
9219
9220 2011-07-11 Richard Henderson <rth@redhat.com>
9221
9222 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
9223 (DW_FRAME_POINTER_REGNUM): New.
9224 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
9225 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
9226 (dwf_regno): New.
9227 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
9228 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
9229 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
9230 Use it.
9231 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
9232 * dwarf2out.h (dwarf_frame_regnum): New.
9233 (struct cfa_loc): Document the domain of the reg member.
9234
9235 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
9236
9237 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
9238 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
9239
9240 2011-07-11 Jakub Jelinek <jakub@redhat.com>
9241
9242 PR debug/49676
9243 * dwarf2out.c (int_shift_loc_descriptor): New function.
9244 (int_loc_descriptor): If shorter, emit i as
9245 (i >> shift), shift, DW_OP_shl for suitable shift value.
9246 Similarly, try to optimize large negative values using
9247 DW_OP_neg of a positive value if shorter.
9248 (size_of_int_shift_loc_descriptor): New function.
9249 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
9250 changes.
9251 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
9252 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
9253 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
9254 is shorter.
9255 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
9256 addend as added DW_OP_plus if it is shorter.
9257
9258 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9259
9260 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
9261 (DTORS_SECTION_ASM_OP): Define.
9262
9263 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9264
9265 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
9266 * config/t-dfprules: Move to ../libgcc/config.
9267 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
9268 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
9269 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
9270 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
9271 Likewise.
9272 (i[34567]86-*-cygwin*): Likewise.
9273 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
9274 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
9275 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
9276 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
9277 D64PBIT_FUNCS, D128PBIT_FUNCS.
9278
9279 2011-07-11 Richard Guenther <rguenther@suse.de>
9280
9281 * tree-vrp.c (simplify_conversion_using_ranges): Manually
9282 translate the source value-range through the conversion chain.
9283
9284 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
9285
9286 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
9287
9288 2011-07-11 Arthur Loiret <aloiret@debian.org>
9289
9290 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
9291 a bi-arch compiler defaulting to 31-bit. In this case:
9292 (tmake_file): Add s390/t-linux64.
9293 * doc/install.texi: Add s390-linux to the list of targets supporting
9294 --enable-targets=all.
9295
9296 2011-07-11 Arthur Loiret <aloiret@debian.org>
9297 Matthias Klose <doko@debian.org>
9298
9299 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
9300 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
9301 (tm_file): Add mips/linux64.h.
9302 (tmake_file): Add mips/t-linux64.
9303 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
9304 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
9305 instead of hardcoded mabi=n32.
9306 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
9307 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
9308 convention.
9309
9310 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9311
9312 * passes.c (init_optimization_passes): Add invariant motion pass
9313 after induction variable optimization.
9314
9315 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
9316
9317 PR target/39633
9318 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
9319 offsets 1..5 set cc0 in a usable way.
9320
9321 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
9322
9323 * tree.h (call_expr_arg): Remove.
9324 (call_expr_argp): Likewise.
9325
9326 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
9327
9328 * config/sparc/sparc.md (save_register_window_1): Rename to...
9329 (window_save): ...this.
9330 * config/sparc/sparc.c (emit_save_register_window): Rename to...
9331 (emit_window_save): ...this.
9332 (sparc_expand_prologue): Adjust to above renaming.
9333
9334 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
9335
9336 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
9337 of movabs for x32.
9338
9339 2011-07-10 Richard Henderson <rth@redhat.com>
9340
9341 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
9342 run final, instead of emitting text directly.
9343
9344 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
9345
9346 * config/i386/i386.c (ix86_option_override_internal): Turn on
9347 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
9348 small PIC models for TARGET_X32.
9349
9350 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
9351
9352 PR target/49684
9353 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
9354 $(LIBGCC2_CFLAGS).
9355
9356 PR bootstrap/49680
9357 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
9358 stray notes and debug insns by using prev_nonnote_nondebug_insn
9359 instead of PREV_INSN.
9360
9361 2011-07-09 Richard Henderson <rth@redhat.com>
9362
9363 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
9364 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
9365 * dwarf2out.c: ... here.
9366 (output_all_cfis): Remove.
9367 (dwarf2out_switch_text_section): Use output_cfis directly.
9368 (size_of_locs): Export.
9369 (output_loc_sequence, output_loc_sequence_raw): Export.
9370 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
9371 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
9372 output_cfa_loc_raw): Move to ...
9373 * dwarfcfi.c: ... here.
9374 * dwarf2out.h: Update decls.
9375
9376 2011-07-09 Richard Henderson <rth@redhat.com>
9377
9378 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
9379 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
9380 * dwarf2cfi.c: ... here.
9381 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
9382 (DWARF_ROUND, DWARF_CIE_ID): Remove.
9383 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
9384 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
9385 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
9386
9387 2011-07-09 Richard Henderson <rth@redhat.com>
9388
9389 * dwarf2cfi.c (cie_return_save): New.
9390 (queue_reg_save): Use compare_reg_or_pc.
9391 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
9392 (dwarf2out_frame_debug_expr): Likewise.
9393 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
9394 (initial_return_save): Likewise.
9395 (execute_dwarf2_frame): Save and restore initial return save from
9396 the cie to the fde.
9397 * config/mips/mips.c (mips_frame_set): Remove special case for
9398 DWARF_FRAME_RETURN_COLUMN.
9399
9400 2011-07-09 Richard Henderson <rth@redhat.com>
9401
9402 * dwarf2cfi.c (lookup_cfa): Remove.
9403 (execute_dwarf2_frame): Assert queues are empty on entry.
9404 Setup initial cfa directly, not via lookup_cfa.
9405 Don't clear args_size state here.
9406
9407 2011-07-09 Richard Henderson <rth@redhat.com>
9408
9409 * dwarf2cfi.c (add_cfi_vec): New.
9410 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
9411 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
9412 (execute_dwarf2_frame): Set add_cfi_vec.
9413
9414 2011-07-09 Richard Henderson <rth@redhat.com>
9415
9416 * defaults.h (ASM_COMMENT_START): Move here...
9417 * dwarf2asm.c: ... from here.
9418 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
9419 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
9420 * varasm.c: Likewise.
9421
9422 2011-07-09 Richard Henderson <rth@redhat.com>
9423
9424 PR debug/49686
9425 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
9426 (create_cfi_notes): ... do it here instead.
9427
9428 2011-07-09 Jakub Jelinek <jakub@redhat.com>
9429
9430 PR debug/49676
9431 * dwarf2out.c (size_of_int_loc_descriptor): New function.
9432 (address_of_int_loc_descriptor): Use it.
9433 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
9434
9435 2011-07-09 Richard Henderson <rth@redhat.com>
9436
9437 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
9438 (prologue, epilogue): New.
9439 (return, *rts): New.
9440 (blockage, setd, seti): New.
9441 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
9442 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
9443 (pdp11_saved_regno): New.
9444 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
9445 generate rtl instead of text.
9446 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
9447 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
9448 * config/pdp11/pdp11-protos.h: Update.
9449
9450 2011-07-09 Richard Henderson <rth@redhat.com>
9451
9452 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
9453 try to insert an rtl prologue here.
9454 (rs6000_output_function_epilogue): Similarly.
9455 * config/rs6000/rs6000.md (prologue): Emit a barrier to
9456 satisfy !TARGET_SCHED_PROLOG.
9457 (epilogue, sibcall_epilogue): Likewise.
9458
9459 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
9460
9461 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
9462 (FP_REG_P): Delete.
9463 (IN_OR_GLOBAL_P): Likewise.
9464
9465 2011-07-08 Jason Merrill <jason@redhat.com>
9466
9467 PR c++/45437
9468 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
9469 compound assignment.
9470
9471 * cgraph.c (cgraph_add_to_same_comdat_group): New.
9472 * cgraph.h: Declare it.
9473 * ipa.c (function_and_variable_visibility): Make sure thunks
9474 have the right visibility.
9475
9476 2011-07-08 Richard Henderson <rth@redhat.com>
9477
9478 PR bootstrap/49680
9479 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
9480 any tablejump vector.
9481
9482 PR bootstrap/49680
9483 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
9484 end of the prologue.
9485
9486 2011-07-08 Jakub Jelinek <jakub@redhat.com>
9487
9488 PR target/49621
9489 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
9490 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
9491 * config/rs6000/vector.md (vector_select_<mode>,
9492 vector_select_<mode>_uns): Change second operand of NE to
9493 CONST0_RTX (<MODE>mode) instead of const0_rtx.
9494 * config/rs6000/altivec.md (*altivec_vsel<mode>,
9495 *altivec_vsel<mode>_uns): Expect second operand of NE to be
9496 zero_constant of the corresponding vector mode.
9497 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
9498 Likewise.
9499
9500 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
9501
9502 * graphite-dependences.c (build_alias_set_powerset): Remove
9503 continue from loop, add one more assert.
9504
9505 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
9506
9507 PR target/46779
9508 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
9509 In particular, allow 8-bit values in r28 and r29.
9510 (avr_hard_regno_scratch_ok): Disallow any register that might be
9511 part of the frame pointer.
9512 (avr_hard_regno_rename_ok): Same.
9513 (avr_legitimate_address_p): Don't allow SUBREGs.
9514
9515 2011-07-08 Julian Brown <julian@codesourcery.com>
9516
9517 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
9518 big-endian mode.
9519 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
9520 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
9521 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
9522 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
9523 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
9524 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
9525 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
9526 registers in big-endian mode.
9527
9528 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
9529
9530 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
9531 in terms of another.
9532 (write_attr_value): Write a cast if necessary.
9533
9534 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
9535 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
9536 (REG_WORDS_BIG_ENDIAN): Document.
9537 * doc/tm.texi: Regenerate.
9538 * reload.c (operands_match_p): Take it into account.
9539 (reload_adjust_reg_for_mode): Likewise.
9540 * rtlanal.c (subreg_get_info): Likewise.
9541
9542 2011-07-08 Richard Guenther <rguenther@suse.de>
9543
9544 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
9545 folding.
9546
9547 2011-07-08 Kai Tietz <ktietz@redhat.com>
9548
9549 * fold-const.c (fold_truth_andor): Factored out truth_andor
9550 label from fold_binary as function.
9551 (fold_binary_loc): Replace truth_andor lable
9552 by function fold_truth_andor.
9553
9554 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
9555
9556 PR middle-end/49519
9557 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
9558 check if address is stored in register. If so - give up.
9559 (check_sibcall_argument_overlap_1): Do not perform check of
9560 overlapping when it is call to address.
9561
9562 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
9563
9564 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
9565 of magic '31'.
9566
9567 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
9568
9569 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
9570 GET_MODE_BITSIZE where appropriate.
9571 (widen_leading, expand_parity, expand_ctz, expand_ffs,
9572 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
9573 expand_float, expand_fix): Likewise.
9574 * expr.c (convert_move, convert_modes, expand_expr_real_2,
9575 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
9576 * stor-layout.c (get_mode_bounds): Likewise.
9577 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
9578 Likewise.
9579 * convert.c (convert_to_integer): Likewise.
9580 * expmed.c (expand_shift_1): Likewise.
9581
9582 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
9583 a bitsize.
9584
9585 * optabs.c (expand_binop): Tighten conditions for doubleword
9586 expansions.
9587 (widen_bswap): Assert that mode bitsize and precision are the same.
9588 * stor-layout.c (get_best_mode): Skip modes that have lower
9589 precision than bitsize.
9590 * recog.c (simplify_while_replacing): Assert that bitsize and
9591 precision are the same.
9592
9593 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9594
9595 * Makefile.in (LIBGCOV): Remove.
9596 (libgcc.mvars): Remove LIBGCOV.
9597 * libgov.c: Move to ../libgcc.
9598
9599 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9600
9601 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
9602
9603 2011-07-08 Martin Jambor <mjambor@suse.cz>
9604
9605 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
9606 is too big for total scalarization.
9607
9608 2011-07-07 Richard Henderson <rth@redhat.com>
9609
9610 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
9611 (DBX_DEBUGGING_INFO): Undef.
9612
9613 2011-07-07 Richard Henderson <rth@redhat.com>
9614
9615 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
9616 Handle some opcodes specially for debugging.
9617 * print-rtl.c: Include dwarf2out.h
9618 (print_rtx): Handle NOTE_INSN_CFI.
9619 * Makefile.in (print-rtl.o): Update.
9620
9621 2011-07-07 Richard Henderson <rth@redhat.com>
9622
9623 * tree-pass.h (pass_dwarf2_frame): Declare.
9624 * passes.c (init_optimization_passes): Add it.
9625 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
9626 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
9627 make static, do not call add_cfis_to_fde.
9628 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
9629 dwarf2out_frame_init): Merge into...
9630 (execute_dwarf2_frame): ... here. New function.
9631 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
9632 saved_do_cfi_asm to a tri-state variable.
9633 (gate_dwarf2_frame, pass_dwarf2_frame): New.
9634 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
9635 if it has yet to be done. Don't call dwarf2cfi_function_init.
9636 * dwarf2out.h, debug.h: Update decls.
9637 * final.c (final_start_function): Don't call
9638 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
9639 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
9640 * toplev.c (lang_dependent_init): Likewise.
9641
9642 2011-07-07 Richard Henderson <rth@redhat.com>
9643
9644 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
9645 FDE_TABLE_INCREMENT): Replace with...
9646 (fde_vec): ... this, a new vector.
9647 (current_fde): Remove. Replace all users with cfun->fde.
9648 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
9649 (size_of_aranges, dwarf2out_finish): Likewise.
9650 (dwarf2out_alloc_current_fde): Break out from ...
9651 (dwarf2out_begin_prologue): ... here.
9652 (dwarf2out_frame_init): Remove.
9653 * dwarf2cfi.c: Update all users of current_fde.
9654 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
9655 * dwarf2out.h: Update decls.
9656 (dw_fde_node): Add fde_index member.
9657 * function.h (struct function): Add fde member.
9658
9659 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9660 Richard Henderson <rth@redhat.com>
9661
9662 * dwarf2cfi.c (add_cfi): Remove.
9663 (dwarf2out_cfi_label): Remove force argument. Only generate the
9664 label name.
9665 (add_fde_cfi): Simplify the different code paths.
9666 (add_cie_cfi): New.
9667 (old_cfa, old_cfa_remember): New.
9668 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
9669 (last_reg_save_label): Remove.
9670 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
9671 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9672 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9673 dwarf2out_frame_debug_cfa_expression,
9674 dwarf2out_frame_debug_cfa_restore,
9675 dwarf2out_frame_debug_cfa_window_save,
9676 dwarf2out_frame_debug_expr): Remove label parameter.
9677 (cfi_label_required_p, add_cfis_to_fde): New.
9678 (dwarf2out_frame_debug_after_prologue): New.
9679 (dwarf2cfi_frame_init): Initialize old_cfa.
9680 (dwarf2out_frame_debug_restore_state): Likewise.
9681 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
9682 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
9683 * final.c (final_start_function): Call
9684 dwarf2out_frame_debug_after_prologue.
9685
9686 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9687 Richard Henderson <rth@redhat.com>
9688
9689 * dwarf2cfi.c (cfi_insn): New.
9690 (dwarf2out_cfi_label): Don't emit cfi label here.
9691 (add_fde_cfi): Create a NOTE_INSN_CFI.
9692 (dwarf2out_frame_debug): Setup cfi_insn.
9693 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
9694 (dwarf2out_cfi_begin_epilogue): Make static.
9695 (dwarf2out_frame_debug_restore_state): Make static.
9696 * dwarf2out.c (output_cfi_directive): Make static.
9697 (dwarf2out_emit_cfi): New.
9698 * dwarf2out.h: Update.
9699 * final.c (final): Remove CFI notes.
9700 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
9701 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
9702 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
9703 * insn-notes.def (NOTE_INSN_CFI): New.
9704 (NOTE_INSN_CFI_LABEL): New.
9705 * rtl.h (union rtunion_def): Add rt_cfi member.
9706 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
9707
9708 2011-07-07 Richard Henderson <rth@redhat.com>
9709
9710 * dwarf2cfi.c: New file.
9711 * Makefile.in (OBJS): Add it.
9712 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
9713 * gengtype.c (open_base_files): Include dwarf2out.h.
9714 * coretypes.h (enum var_init_status): Move from ...
9715 * rtl.h: ... here.
9716 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
9717 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
9718 expand_builtin_dwarf_sp_column, init_return_column_size,
9719 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
9720 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
9721 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
9722 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
9723 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
9724 compute_barrier_args_size, dwarf2out_args_size,
9725 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
9726 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
9727 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
9728 queue_reg_save, dwarf2out_flush_queued_reg_saves,
9729 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
9730 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9731 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9732 dwarf2out_frame_debug_cfa_expression,
9733 dwarf2out_frame_debug_cfa_restore,
9734 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
9735 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
9736 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
9737 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
9738 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
9739 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
9740 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
9741 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
9742 dw_loc_descr_node): Move to dwarf2out.h.
9743 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
9744 mem_loc_descriptor): Export.
9745 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
9746 (dwarf2out_frame_init): Extract CIE generation code to
9747 dwarf2cfi_frame_init.
9748
9749 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
9750
9751 PR target/49660
9752 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
9753 MASK_V8PLUS, remove commented out flag and reorder.
9754
9755 2011-07-07 Jakub Jelinek <jakub@redhat.com>
9756
9757 PR c/49644
9758 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
9759 one non-complex and one complex argument, call c_save_expr on both
9760 operands.
9761
9762 2011-07-07 Martin Jambor <mjambor@suse.cz>
9763
9764 PR middle-end/49495
9765 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
9766 (verify_cgraph_node): Some functinality moved to
9767 verify_edge_corresponds_to_fndecl, call it.
9768
9769 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9770
9771 * config.gcc (*local*): Remove.
9772 * doc/install-old.texi: Don't mention local configurations.
9773
9774 2011-07-07 Jakub Jelinek <jakub@redhat.com>
9775
9776 PR debug/49522
9777 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
9778 referencing debug insns that have been reset.
9779 (dead_debug_insert_before): Don't assert reg is non-NULL,
9780 instead return immediately if it is NULL.
9781
9782 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9783
9784 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
9785
9786 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9787
9788 * hw-doloop.c: New file.
9789 * hw-doloop.h: New file.
9790 * Makefile.in (OBJS): Add hw-doloop.o.
9791 (hw-doloop.o): New rule.
9792 ($(obj_out_file)): Add hw-doloop.h dependency.
9793 * config/bfin/bfin.c: Include "hw-doloop.h".
9794 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
9795 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
9796 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
9797 type changed to hwloop_info. Return bool, true if the loop was
9798 successfully optimized. Remove code that was moved to
9799 hw-doloop.c, and adjust other parts.
9800 (hwloop_fail): New static function, containing parts that used
9801 to be in bfin_optimize_loop.
9802 (bfin_discover_loop, bfin_discover_loops, free_loops,
9803 bfin_reorder_loops): Remove.
9804 (hwloop_pattern_reg): New static function.
9805 (bfin_doloop_hooks): New variable.
9806 (bfin_reorg_loops): Remove most code, call reorg_loops.
9807 * config/bfin/bfin.md (doloop_end splitter): Also enable if
9808 loop counter is a memory_operand.
9809
9810 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
9811
9812 * config.gcc: Support --with-multilib-list for x86 Linux targets.
9813
9814 * configure.ac: Mention x86-64 for --with-multilib-list.
9815 * configure: Regenerated.
9816
9817 * config/i386/gnu-user64.h (SPEC_64): Support x32.
9818 (SPEC_32): Likewise.
9819 (ASM_SPEC): Likewise.
9820 (LINK_SPEC): Likewise.
9821 (TARGET_THREAD_SSP_OFFSET): Likewise.
9822 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
9823 (SPEC_X32): New.
9824
9825 * config/i386/i386.h (TARGET_X32): New.
9826 (TARGET_LP64): New.
9827 (LONG_TYPE_SIZE): Likewise.
9828 (POINTER_SIZE): Likewise.
9829 (POINTERS_EXTEND_UNSIGNED): Likewise.
9830 (OPT_ARCH64): Support x32.
9831 (OPT_ARCH32): Likewise.
9832
9833 * config/i386/i386.opt (mx32): New.
9834
9835 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
9836 (GLIBC_DYNAMIC_LINKERX32): Likewise.
9837 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
9838 (GLIBC_DYNAMIC_LINKERX32): Likewise.
9839
9840 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
9841 (BIONIC_DYNAMIC_LINKERX32): Likewise.
9842 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
9843
9844 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
9845
9846 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
9847
9848 * doc/invoke.texi: Document -mx32.
9849
9850 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
9851
9852 * doc/invoke.texi (mwords-little-endian): Deprecate.
9853 * config/arm/arm.opt (mwords-little-endian): Likewise.
9854 * config/arm/arm.c (arm_option_override): Warn about the deprecation
9855 of -mwords-little-endian.
9856
9857 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
9858
9859 * reload1.c (choose_reload_regs): Use mode sizes to check whether
9860 an old reload register completely defines the required value.
9861
9862 2011-07-07 Richard Guenther <rguenther@suse.de>
9863
9864 * fold-const.c (fold_unary_loc): Do not strip sign-changes
9865 for NEGATE_EXPR.
9866
9867 2011-07-07 Richard Guenther <rguenther@suse.de>
9868
9869 * tree-vrp.c (simplify_conversion_using_ranges): New function.
9870 (simplify_stmt_using_ranges): Call it.
9871
9872 2011-07-07 Kai Tietz <ktietz@redhat.com>
9873
9874 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
9875 (lookup_logical_inverted_value): Likewise.
9876 (simplify_bitwise_binary_1): Likewise.
9877 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
9878
9879 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9880
9881 * gcc.c (%[Spec]): Don't document.
9882 (struct spec_list): Update comment.
9883 (do_spec_1): Don't handle %[Spec].
9884 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
9885
9886 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9887
9888 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
9889 default based on TARGET_ASM_NAMED_SECTION.
9890 * common/common-target.def (have_named_sections): Default to true.
9891 * common/config/default-common.c: Don't include tm.h.
9892 * common/config/picochip/picochip-common.c
9893 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
9894 * common/config/m32c/m32c-common.c: Remove.
9895 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
9896 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9897 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9898 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9899 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9900 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9901 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9902
9903 2011-07-07 Jakub Jelinek <jakub@redhat.com>
9904
9905 PR middle-end/49640
9906 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
9907 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
9908
9909 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9910
9911 PR libmudflap/49550
9912 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
9913
9914 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9915
9916 PR target/39150
9917 * configure.ac (gcc_cv_as_hidden): Also accept
9918 x86_64-*-solaris2.1[0-9]*.
9919 (gcc_cv_as_cfi_directive): Likewise.
9920 (gcc_cv_as_comdat_group_group): Likewise.
9921 (set_have_as_tls): Likewise.
9922 * configure: Regenerate.
9923 * config.gcc (i[34567]86-*-solaris2*): Also handle
9924 x86_64-*-solaris2.1[0-9]*.
9925 * config.host (i[34567]86-*-solaris2*): Likewise.
9926 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
9927 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
9928 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
9929 (TARGET_LD_EMULATION): Use it.
9930 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
9931 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
9932 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
9933 (ASM_CPU64_DEFAULT_SPEC): Define.
9934 (ASM_CPU_SPEC): Use %(asm_cpu_default).
9935 (ASM_SPEC): Redefine.
9936 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
9937 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
9938 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
9939 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
9940 configuration.
9941 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
9942
9943 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9944
9945 * config/sol2.h (ASM_SPEC): Split into ...
9946 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
9947 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
9948 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
9949 (ASM_SPEC): Use ASM_SPEC_BASE.
9950 * config/sparc/sol2.h (ASM_SPEC): Redefine.
9951
9952 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
9953
9954 * config/avr/avr.md (*reload_insi): Change predicate #1 to
9955 const_int_operand. Ditto for peep2 producing this insn.
9956 Add argument to output_reload_insisf call.
9957 (*movsi,*movsf): Add argument to output_movsisf call.
9958 (*reload_insf): New insn and new peep2 to produce it.
9959 * config/avr/avr-protos.h (output_movsisf): Change prototype.
9960 (output_reload_insisf): Change prototype.
9961 * config/avr/avr.c (avr_asm_len): New function.
9962 (output_reload_insisf): Rewrite.
9963 (output_movsisf): Change prototype. output_reload_insisf for
9964 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
9965 (adjust_insn_length): Add argument to output_movsisf and
9966 output_reload_insisf call.
9967
9968 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9969
9970 * emit-rtl.c (paradoxical_subreg_p): New function.
9971 * rtl.h (paradoxical_subreg_p): Declare.
9972 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
9973 apply_distributive_law, simplify_comparison, simplify_set): Use it.
9974 * cse.c (record_jump_cond, cse_insn): Likewise.
9975 * expr.c (force_operand): Likewise.
9976 * rtlanal.c (num_sign_bit_copies1): Likewise.
9977 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
9978 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
9979 (push_reload): Use precision to check for paradoxical subregs.
9980 * expmed.c (extract_bit_field_1): Likewise.
9981
9982 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
9983 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
9984 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
9985 simplify_set, simplify_logical, expand_compound_operation,
9986 make_extraction, force_to_mode, if_then_else_cond, extended_count,
9987 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
9988 record_value_for_reg): Likewise.
9989 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
9990 * simplify-rtx. c (simplify_unary_operation_1,
9991 simplify_binary_operation_1, simplify_const_relational_operation):
9992 Likewise.
9993
9994 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
9995 instead of GET_MODE_BITSIZE where appropriate.
9996 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
9997 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
9998 init_num_sign_bit_copies_in_rep): Likewise.
9999 * cse.c (fold_rtx, cse_insn): Likewise.
10000 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
10001 * simplify-rtx.c (simplify_unary_operation_1,
10002 simplify_const_unary_operation, simplify_binary_operation_1,
10003 simplify_const_binary_operation, simplify_ternary_operation,
10004 simplify_const_relational_operation, simplify_subreg): Likewise.
10005 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
10006 simplify_if_then_else, simplify_set, expand_compound_operation,
10007 expand_field_assignment, make_extraction, if_then_else_cond,
10008 make_compound_operation, force_to_mode, make_field_assignment,
10009 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
10010 extended_count, try_widen_shift_mode, simplify_shift_const_1,
10011 simplify_comparison, record_promoted_value, simplify_compare_const,
10012 record_dead_and_set_regs_1): Likewise.
10013
10014 Revert:
10015 * simplify-rtx.c (simplify_const_binary_operation): Use the
10016 shift_truncation_mask hook instead of performing modulo by width.
10017 Compare against mode precision, not bitsize.
10018 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
10019 Use shift_truncation_mask instead of constructing the value manually.
10020
10021 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
10022
10023 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
10024 declaration.
10025 (rs6000_save_toc_in_prologue_p): Ditto.
10026
10027 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
10028 up the static chain (r11) during indirect function calls.
10029 (-msave-toc-indirect): New undocumented debug switch.
10030
10031 * config/rs6000/rs6000.c (struct machine_function): Add
10032 save_toc_in_prologue field to note whether the prologue needs to
10033 save the TOC value in the reserved stack location.
10034 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
10035 to save the TOC in the prologue, do so.
10036 (rs6000_trampoline_init): Don't allow creating AIX style
10037 trampolines if -mno-r11 is in effect.
10038 (rs6000_call_indirect_aix): New function to create AIX style
10039 indirect calls, adding support for -mno-r11 to suppress loading
10040 the static chain, and saving the TOC in the prologue instead of
10041 the call body.
10042 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
10043 TOC in the prologue.
10044
10045 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
10046 register numbers.
10047 (TOC_REGNUM): Ditto.
10048 (STATIC_CHAIN_REGNUM): Ditto.
10049 (ARG_POINTER_REGNUM): Ditto.
10050 (SFP_REGNO): Delete, unused.
10051 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
10052 function descriptor offsets.
10053 (TOC_SAVE_OFFSET_64BIT): Ditto.
10054 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
10055 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
10056 (AIX_FUNC_DESC_SC_32BIT): Ditto.
10057 (AIX_FUNC_DESC_SC_64BIT): Ditto.
10058 (ptrload): New mode attribute for the appropriate load of a pointer.
10059 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
10060 (call_indirect_aix64): Ditto.
10061 (call_value_indirect_aix32): Ditto.
10062 (call_value_indirect_aix64): Ditto.
10063 (call_indirect_nonlocal_aix32_internal): Ditto.
10064 (call_indirect_nonlocal_aix32): Ditto.
10065 (call_indirect_nonlocal_aix64_internal): Ditto.
10066 (call_indirect_nonlocal_aix64): Ditto.
10067 (call): Rewrite AIX indirect function calls. Add support for
10068 eliminating the static chain, and for moving the save of the TOC
10069 to the function prologue.
10070 (call_value): Ditto.
10071 (call_indirect_aix<ptrsize>): Ditto.
10072 (call_indirect_aix<ptrsize>_internal): Ditto.
10073 (call_indirect_aix<ptrsize>_internal2): Ditto.
10074 (call_indirect_aix<ptrsize>_nor11): Ditto.
10075 (call_value_indirect_aix<ptrsize>): Ditto.
10076 (call_value_indirect_aix<ptrsize>_internal): Ditto.
10077 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
10078 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
10079 (call_nonlocal_aix32): Relocate in the rs6000.md file.
10080 (call_nonlocal_aix64): Ditto.
10081
10082 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
10083 -mno-r11 documentation.
10084
10085 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
10086
10087 PR other/49658
10088 * doc/extend.texi (Compound Literals): Fix typo.
10089
10090 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
10091
10092 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
10093
10094 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
10095
10096 * configure.ac (plugin-version.h): Generate
10097 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
10098 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
10099 macros.
10100
10101 * configure: Regenerate.
10102
10103 * doc/plugins.texi (Building GCC plugins): Mention
10104 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
10105
10106 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
10107
10108 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
10109 * combine.c (make_extraction, gen_lowpart_or_truncate,
10110 apply_distributive_law, simplify_comparison,
10111 reg_truncated_to_mode, record_truncated_value): Use it.
10112 * cse.c (notreg_cost): Likewise.
10113 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
10114 * expr.c (convert_move, convert_modes): Likewise.
10115 * optabs.c (expand_binop, expand_unop): Likewise.
10116 * postreload.c (move2add_last_label): Likewise.
10117 * regmove.c (optimize_reg_copy_3): Likewise.
10118 * rtlhooks.c (gen_lowpart_general): Likewise.
10119 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
10120
10121 2011-07-06 Joseph Myers <joseph@codesourcery.com>
10122
10123 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
10124
10125 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
10126
10127 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
10128 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
10129 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
10130 (simplify_const_unary_operation, simplify_binary_operation_1,
10131 simplify_const_binary_operation, simplify_const_relational_operation):
10132 Use them. Use GET_MODE_MASK for masking and sign-extensions.
10133 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
10134 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
10135 simplify_shift_const_1, simplify_comparison): Likewise.
10136 * expr.c (convert_modes): Likewise.
10137 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
10138 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
10139 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
10140
10141 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
10142
10143 2011-07-06 Richard Guenther <rguenther@suse.de>
10144
10145 PR tree-optimization/49645
10146 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
10147 register variables.
10148 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
10149 in type qualification here ...
10150 (copy_reference_ops_from_ref): ... not here.
10151 (vn_reference_lookup_3): ... or here.
10152 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
10153 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
10154
10155 2011-07-06 Ian Lance Taylor <iant@google.com>
10156
10157 * doc/install.texi (Configuration): It's
10158 --enable-gnu-indirect-function, not --enable-indirect-function.
10159
10160 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
10161
10162 * simplify-rtx.c (simplify_const_binary_operation): Use the
10163 shift_truncation_mask hook instead of performing modulo by width.
10164 Compare against mode precision, not bitsize.
10165 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
10166 Use shift_truncation_mask instead of constructing the value manually.
10167
10168 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
10169
10170 PR middle-end/47383
10171 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
10172 address computation and convert to address_mode if needed.
10173
10174 2011-07-06 Richard Guenther <rguenther@suse.de>
10175
10176 * tree.c (build_common_tree_nodes_2): Merge with
10177 build_common_tree_nodes.
10178 * tree.h (build_common_tree_nodes): Adjust prototype.
10179 (build_common_tree_nodes_2): Remove.
10180 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
10181 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
10182
10183 2011-07-05 Jakub Jelinek <jakub@redhat.com>
10184
10185 PR tree-optimization/49618
10186 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
10187 t recurse on the decl.
10188 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
10189 return true if expr isn't known to be defined in current
10190 TU or some other LTO partition.
10191
10192 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
10193
10194 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
10195 override CASE_VALUES_THRESHOLD.
10196
10197 * stmt.c (toplevel): Include params.h.
10198 (case_values_threshold): Use the --param case-values-threshold
10199 value if non-zero, otherwise use machine dependent value.
10200 (expand_case): Use case_values_threshold.
10201
10202 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
10203
10204 * doc/invoke.texi (--param case-values-threshold): Document.
10205
10206 2011-07-05 Richard Henderson <rth@redhat.com>
10207
10208 * dwarf2out.c (dwarf2out_cfi_label): Make static.
10209 (dwarf2out_flush_queued_reg_saves): Make static.
10210 (dwarf2out_reg_save): Remove.
10211 (dwarf2out_return_save): Remove.
10212 (dwarf2out_return_reg): Remove.
10213 (dwarf2out_reg_save_reg): Remove.
10214 (dwarf2out_def_cfa): Merge into ...
10215 (dwarf2out_frame_init): ... here.
10216 * dwarf2out.h, tree.h: Remove declarations as necessary.
10217
10218 2011-07-05 Richard Henderson <rth@redhat.com>
10219
10220 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
10221 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
10222 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
10223 the alloc insn.
10224
10225 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
10226 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
10227 (process_epilogue): Don't call dwarf2out_def_cfa.
10228
10229 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
10230 indicate the return address save.
10231 (process_cfa_register): Likewise.
10232
10233 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
10234 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
10235
10236 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
10237 for ar.pfs save at alloc insn.
10238
10239 2011-07-05 Richard Henderson <rth@redhat.com>
10240
10241 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
10242 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
10243 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
10244 stack pointer save.
10245 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
10246 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
10247 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
10248 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
10249
10250 2011-07-05 Richard Henderson <rth@redhat.com>
10251
10252 * config/vax/vax.md (define_c_enum unspecv): New. Define the
10253 VUNSPEC_* constants here instead of via define_constants.
10254 (VUNSPEC_PEM): New constant.
10255 (procedure_entry_mask): New insn.
10256 (prologue): New expander.
10257 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
10258 (vax_expand_prologue): Rename from vax_output_function_prologue;
10259 emit rtl instead of text.
10260 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
10261 (print_operand): Add 'x' prefix.
10262
10263 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
10264
10265 PR middle-end/47715
10266 * calls.c (precompute_register_parameters): Promote the function
10267 argument before checking non-legitimate constant.
10268
10269 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
10270
10271 PR tree-optimization/47654
10272 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
10273 (lst_do_strip_mine_loop): Return an int.
10274 (lst_do_strip_mine): Same.
10275 (scop_do_strip_mine): Same.
10276 (scop_do_block): Loop blocking should strip-mine at least two loops.
10277 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
10278 (scop_do_interchange): Same.
10279 * graphite-poly.h (scop_do_interchange): Update declaration.
10280 (scop_do_strip_mine): Same.
10281
10282 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
10283
10284 * graphite-clast-to-gimple.c (precision_for_value): Removed.
10285 (precision_for_interval): Removed.
10286 (gcc_type_for_interval): Use mpz_sizeinbase.
10287
10288 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
10289
10290 * graphite-ppl.h (value_max): Correct computation of max.
10291
10292 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
10293
10294 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
10295
10296 2011-07-05 Richard Guenther <rguenther@suse.de>
10297
10298 * c-decl.c (c_init_decl_processing): Defer building common
10299 tree nodes to c_common_nodes_and_builtins.
10300
10301 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
10302
10303 PR tree-optimization/49580
10304 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
10305 the loop's number of iterations.
10306 * tree-parloops.c (transform_to_exit_first_loop): Add the
10307 handling of the loop's number of iterations before the call
10308 to gimple_duplicate_sese_tail.
10309 Insert the stmt caclculating the new rhs of the loop's
10310 condition stmt to the preheader instead of iters_bb.
10311
10312 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
10313
10314 PR rtl-optimization/47449
10315 * fwprop.c (forward_propagate_subreg): Don't propagate hard
10316 register nor zero/sign extended hard register.
10317
10318 2011-07-05 Richard Guenther <rguenther@suse.de>
10319
10320 PR tree-optimization/49518
10321 PR tree-optimization/49628
10322 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
10323 irrelevant and invariant data-references.
10324 (vect_analyze_data_ref_access): For invariant loads clear the
10325 group association.
10326
10327 2011-07-04 Jakub Jelinek <jakub@redhat.com>
10328
10329 PR rtl-optimization/49619
10330 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
10331 pass VOIDmode as op0_mode to recursive call, and return temp even
10332 when different from tor, just if it is not IOR of the original
10333 PLUS arguments.
10334
10335 PR rtl-optimization/49472
10336 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
10337 negating MULT, negate the second operand instead of first.
10338 (simplify_binary_operation_1) <case MULT>: If one operand is
10339 a NEG and the other is MULT, don't attempt to optimize by negation
10340 of the MULT operand if it only moves the NEG operation around.
10341
10342 PR debug/49602
10343 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
10344 get_current_def return value if it can't be trusted to be
10345 the current value of the variable in the current bb.
10346
10347 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
10348
10349 PR target/49600
10350 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
10351 general register to memory for !TARGET_INTER_UNIT_MOVES.
10352
10353 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
10354
10355 PR target/44643
10356 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
10357 instead of TREE_READONLY.
10358
10359 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
10360
10361 * doc/extend.texi (AVR Built-in Functions): Update documentation
10362 of __builtin_avr_fmul*.
10363 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
10364 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
10365 * config/avr/avr.md (fmul): Rename to fmul_insn.
10366 (fmuls): Rename to fmuls_insn.
10367 (fmulsu): Rename to fmulsu_insn.
10368 (fmul,fmuls,fmulsu): New expander.
10369 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
10370 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
10371 * config/avr/libgcc.S (__fmul): New function.
10372 (__fmuls): New function.
10373 (__fmulsu,__fmulsu_exit): New function.
10374
10375 2011-07-04 Richard Guenther <rguenther@suse.de>
10376
10377 PR tree-optimization/49615
10378 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
10379 basic-block index check.
10380
10381 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
10382
10383 * longlong.h (count_leading_zeros, count_trailing_zeros,
10384 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
10385 resp. 64.
10386
10387 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
10388
10389 PR tree-optimization/49610
10390 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
10391 a basic block.
10392
10393 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
10394 Olivier Hainque <hainque@adacore.com>
10395 Nicolas Setton <setton@adacore.com>
10396
10397 * tree.h (TYPE_ARTIFICIAL): New flag.
10398 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
10399 the DIE of the type if it is artificial.
10400 (gen_array_type_die): Likewise.
10401 (gen_enumeration_type_die): Likewise.
10402 (gen_struct_or_union_type_die): Likewise.
10403 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
10404 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
10405
10406 2011-07-01 Jakub Jelinek <jakub@redhat.com>
10407
10408 * tree-object-size.c (pass_through_call): Handle
10409 BUILT_IN_ASSUME_ALIGNED.
10410
10411 2011-07-01 Martin Jambor <mjambor@suse.cz>
10412
10413 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
10414
10415 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
10416
10417 PR middle-end/48016
10418 * explow.c (update_nonlocal_goto_save_area): Use proper mode
10419 for stack save area.
10420 * function.c (expand_function_start): Likewise.
10421
10422 2011-07-01 Richard Guenther <rguenther@suse.de>
10423
10424 PR middle-end/49596
10425 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
10426 may have unknown refs.
10427
10428 2011-07-01 Kai Tietz <ktietz@redhat.com>
10429
10430 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
10431
10432 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10433
10434 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
10435 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
10436 (Specific, mips-sgi-irix6): Likewise.
10437
10438 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10439
10440 PR libmudflap/49549
10441 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
10442
10443 2011-07-01 Jakub Jelinek <jakub@redhat.com>
10444
10445 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
10446 [idx]= and [idx1 ... idx2]= before initializers if needed for
10447 array initializers.
10448
10449 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
10450
10451 * config.gcc (score-*-elf): Remove score7.o.
10452 * config/score/t-score-elf: Likewise.
10453 * config/score/score.c: Merge score7 to score.c and
10454 remove forwarding functions.
10455 * config/score/score7.c: Deleted.
10456 * config/score/score7.h: Deleted.
10457
10458 2011-07-01 Richard Guenther <rguenther@suse.de>
10459
10460 PR tree-optimization/49603
10461 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
10462
10463 2011-06-30 Martin Jambor <mjambor@suse.cz>
10464
10465 * tree-sra.c (struct access): Rename total_scalarization to
10466 grp_total_scalarization
10467 (completely_scalarize_var): New function.
10468 (sort_and_splice_var_accesses): Set total_scalarization in the
10469 representative access.
10470 (analyze_access_subtree): Propagate total scalarization accross the
10471 tree, no holes in totally scalarized trees, simplify coverage
10472 computation.
10473 (analyze_all_variable_accesses): Call completely_scalarize_var instead
10474 of completely_scalarize_record.
10475
10476 2011-06-30 Richard Henderson <rth@redhat.com>
10477
10478 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
10479 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
10480 * config/i386/i386.c: Don't include dwarf2out.h.
10481 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
10482 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
10483 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
10484 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
10485 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
10486
10487 2011-06-30 Richard Henderson <rth@redhat.com>
10488
10489 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
10490 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
10491 * final.c (final_scan_insn): Look for it, and invoke
10492 dwarf2out_frame_debug before the insn if found.
10493
10494 2011-06-30 Richard Henderson <rth@redhat.com>
10495
10496 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
10497 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
10498
10499 2011-06-30 Richard Henderson <rth@redhat.com>
10500
10501 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
10502 Define a vector of this type.
10503 (regs_saved_in_regs): Use a VEC.
10504 (num_regs_saved_in_regs): Remove.
10505 (compare_reg_or_pc): New.
10506 (record_reg_saved_in_reg): Split out from...
10507 (dwarf2out_flush_queued_reg_saves): ... here.
10508 (clobbers_queued_reg_save): Update for VEC.
10509 (reg_saved_in): Likewise.
10510 (dwarf2out_frame_debug_init): Likewise.
10511 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
10512 (dwarf2out_frame_debug_cfa_register): Likewise.
10513
10514 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
10515
10516 PR tree-optimization/49572
10517 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
10518 type of the RHS instead of that of the LHS for the expression type.
10519
10520 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
10521
10522 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
10523 unconditionally.
10524
10525 2011-06-30 Richard Guenther <rguenther@suse.de>
10526
10527 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
10528 * tree-ssa-structalias.c (create_variable_info_for): Do not
10529 add initial constraints for non-var-decls. Properly handle
10530 globals in other ltrans partitions.
10531 (intra_create_variable_infos): Manually create constraints for
10532 the fake no-alias parameter.
10533 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
10534 and assert there are no clones.
10535
10536 2011-06-30 Richard Guenther <rguenther@suse.de>
10537
10538 PR tree-optimization/46787
10539 * tree-data-ref.c (dr_address_invariant_p): Remove.
10540 (find_data_references_in_stmt): Invariant accesses are ok now.
10541 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
10542 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
10543 invariant loads.
10544
10545 2011-06-30 Martin Jambor <mjambor@suse.cz>
10546
10547 PR tree-optimization/49094
10548 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
10549 (build_accesses_from_assign): Use it.
10550
10551 2011-06-30 Jakub Jelinek <jakub@redhat.com>
10552
10553 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10554 handling of BUILT_IN_ASSUME_ALIGNED.
10555
10556 PR debug/49364
10557 * dwarf2out.c (output_abbrev_section): Don't return early
10558 if abbrev_die_table_in_use is 1.
10559 (dwarf2out_finish): Instead don't call output_abbrev_section
10560 nor emit abbrev_section_label in that case.
10561
10562 2011-06-30 Nick Clifton <nickc@redhat.com>
10563
10564 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
10565 for the V850E.
10566
10567 2011-06-30 Jakub Jelinek <jakub@redhat.com>
10568
10569 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10570 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
10571
10572 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
10573
10574 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
10575 both pattern and original statements if necessary.
10576 (vect_transform_loop): Likewise.
10577 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
10578 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
10579 Mark the pattern statement only if the original statement doesn't
10580 have its own uses.
10581 (process_use): Call vect_mark_relevant with additional parameter.
10582 (vect_mark_stmts_to_be_vectorized): Likewise.
10583 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
10584 (vect_analyze_stmt): Handle both pattern and original statements
10585 if necessary.
10586 (vect_transform_stmt): Don't store vectorized pattern statement
10587 in the original statement.
10588 (vect_is_simple_use_1): Use related pattern statement only if the
10589 original statement is irrelevant.
10590 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
10591
10592 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
10593
10594 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
10595 option.
10596 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
10597 entry.
10598 (TARGET_AVX128_OPTIMAL): New definition.
10599 * config/i386/i386.c (initial_ix86_tune_features): Initialize
10600 X86_TUNE_AVX128_OPTIMAL entry.
10601 (ix86_option_override_internal): Enable the generation
10602 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
10603 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
10604 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
10605
10606 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
10607
10608 PR tree-optimization/49539
10609 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
10610 names by means of stmt_references_abnormal_ssa_name.
10611 (associate_plusminus): Call can_propagate_from before propagating
10612 from definition statements.
10613 (ssa_forward_propagate_and_combine): Remove superfluous newline.
10614
10615 2011-06-29 Richard Guenther <rguenther@suse.de>
10616
10617 * doc/invoke.texi: Document -scev dump modifier.
10618 * tree-pass.h (TDF_SCEV): New dump flag.
10619 * tree-dump.c (dump_option_value_in): Add scev.
10620 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
10621 * tree-scalar-evolution.c: Likewise.
10622
10623 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
10624
10625 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
10626 (cxa_type_match): Correct declaration.
10627 (__gnu_unwind_pr_common): Reconstruct additional indirection
10628 when __cxa_type_match returns succeeded_with_ptr_to_base.
10629
10630 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10631
10632 PR rtl-optimization/49114
10633 * reload.c (struct replacement): Remove SUBREG_LOC member.
10634 (push_reload): Do not set it.
10635 (push_replacement): Likewise.
10636 (subst_reload): Remove dead code.
10637 (copy_replacements): Remove assertion.
10638 (copy_replacements_1): Do not handle SUBREG_LOC.
10639 (move_replacements): Likewise.
10640 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
10641 Detect subregs via recursive descent instead of via SUBREG_LOC.
10642
10643 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10644
10645 * config/avr/avr.c (avr_encode_section_info): Dispatch to
10646 default_encode_section_info.
10647
10648 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
10649
10650 PR tree-optimization/49545
10651 * builtins.c (get_object_alignment_1): Update function comment.
10652 Do not use DECL_ALIGN for functions, but test
10653 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
10654 * fold-const.c (get_pointer_modulus_and_residue): Don't check
10655 for functions here.
10656 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
10657
10658 2011-06-29 Jakub Jelinek <jakub@redhat.com>
10659
10660 PR debug/49567
10661 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
10662 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
10663
10664 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10665
10666 PR target/34734
10667 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
10668 about uninitialized data attributed 'progmem' from here...
10669 (avr_encode_section_info): ...to this new function.
10670 (TARGET_ENCODE_SECTION_INFO): New define.
10671 (avr_section_type_flags): For data in ".progmem.data", remove
10672 section flag SECTION_WRITE.
10673
10674 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10675
10676 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
10677 _xmulhisi3_exit.
10678 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
10679 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
10680 (__umulhisi3): Ditto.
10681 * config/avr/avr.md (mulhisi3): New insn expender.
10682 (umulhisi3): New insn expender.
10683 (*mulhisi3_call): New insn.
10684 (*umulhisi3_call): New insn.
10685
10686 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10687
10688 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
10689
10690 2011-06-28 Richard Henderson <rth@redhat.com>
10691
10692 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
10693 all code and arguments that handled pushes. Update all callers.
10694
10695 2011-06-28 Richard Henderson <rth@redhat.com>
10696
10697 * config/arm/arm.c (arm_output_function_prologue): Don't call
10698 thumb1_output_function_prologue.
10699 (arm_expand_prologue): Avoid dead store.
10700 (number_of_first_bit_set): Use ctz_hwi.
10701 (thumb1_emit_multi_reg_push): New.
10702 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
10703 to emit the entire prologue as rtl.
10704 (thumb1_output_interwork): Split out from
10705 thumb1_output_function_prologue.
10706 (thumb1_output_function_prologue): Remove.
10707 (arm_attr_length_push_multi): Handle thumb1.
10708 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
10709 (prologue_thumb1_interwork): New.
10710 (*push_multi): Allow thumb1; use push_mult_memory_operand.
10711 * config/arm/predicates.md (push_mult_memory_operand): New.
10712
10713 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
10714
10715 * config/sparc/sync.md (*stbar): Delete.
10716 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
10717
10718 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
10719
10720 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
10721
10722 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10723
10724 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
10725 (TARGET_64BIT_DEFAULT): Define.
10726 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
10727 of tm_file.
10728 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
10729
10730 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10731
10732 * common.opt (in_lto_p): New Variable entry.
10733 * flags.h (in_lto_p): Move to common.opt.
10734 * gcc.c: Include params.h.
10735 (set_option_handlers): Also use common_handle_option and
10736 target_handle_option.
10737 (main): Call global_init_params, finish_params and init_options_struct.
10738 * opts.c (debug_type_names): Move from toplev.c.
10739 (print_filtered_help): Access quiet_flag through opts pointer.
10740 (common_handle_option): Return early in the driver for some options.
10741 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
10742 opts pointer.
10743 * toplev.c (in_lto_p): Move to common.opt.
10744 (debug_type_names): Move to opts.c.
10745 * Makefile.in (OBJS): Remove opts.o.
10746 (OBJS-libcommon-target): Add opts.o.
10747 (gcc.o): Update dependencies.
10748
10749 2011-06-28 Kai Tietz <ktietz@redhat.com>
10750
10751 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
10752
10753 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10754
10755 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
10756 with '=' constraint modifier.
10757 (*divdf3_vfp): Likewise.
10758 ("*mulsf3_vfp"): Likewise.
10759 ("*muldf3_vfp"): Likewise.
10760 ("*mulsf3negsf_vfp"): Likewise.
10761 ("*muldf3negdf_vfp"): Likewise.
10762
10763 2011-06-28 Nick Clifton <nickc@redhat.com>
10764
10765 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
10766 relaxation when performing an incremental link.
10767
10768 2011-06-28 Kai Tietz <ktietz@redhat.com>
10769
10770 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
10771 within BB from last to first.
10772
10773 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10774
10775 * genattr-common.c: New. Based on genattr.c.
10776 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
10777 (MOSTLYCLEANFILES): Add insn-attr-common.h.
10778 (opts.o): Update dependencies.
10779 (.PRECIOUS): Add insn-attr-common.h.
10780 (simple_rtl_generated_h): Add insn-attr-common.h.
10781 (build/genattr-common.o): New.
10782 (genprogrtl): Add attr-common.
10783 * genattr.c (main): Include insn-attr-common.h. Don't generate
10784 definitions of DELAY_SLOTS or INSN_SCHEDULING.
10785 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
10786
10787 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
10788
10789 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
10790 avr-*-* and avr-*-rtems* targets.
10791
10792 * config/avr/elf.h: New file.
10793 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
10794 (TARGET_ASM_SELECT_SECTION): Define.
10795 (INIT_SECTION_ASM_OP): Undefine.
10796 (FINI_SECTION_ASM_OP): Undefine.
10797 (READONLY_DATA_SECTION_ASM_OP): Undefine.
10798 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
10799 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
10800 * config/avr/avr.h:
10801 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
10802 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
10803 (MAX_OFILE_ALIGNMENT): Move to elf.h.
10804 (STRING_LIMIT): Move to elf.h.
10805 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
10806 (ASM_DECLARE_OBJECT_NAME): Remove.
10807 (ESCAPES): Remove.
10808 (ASM_OUTPUT_SKIP): Remove.
10809 (DWARF2_DEBUGGING_INFO): Remove.
10810 (OBJECT_FORMAT_ELF): Remove.
10811 (USER_LABEL_PREFIX): Remove.
10812 (ASM_OUTPUT_EXTERNAL): Remove.
10813 (ASM_OUTPUT_ASCII): Remove.
10814 (TYPE_ASM_OP): Remove.
10815 (SIZE_ASM_OP): Remove.
10816 (WEAK_ASM_OP): Remove.
10817 (STRING_ASM_OP): Remove.
10818 (SET_ASM_OP): Remove.
10819 (ASM_WEAKEN_LABEL): Remove.
10820 (TYPE_OPERAND_FMT): Remove.
10821 (ASM_DECLARE_FUNCTION_SIZE): Remove.
10822 (ASM_FINISH_DECLARE_OBJECT): Remove.
10823 (NO_DOLLAR_IN_LABEL): Remove.
10824 (ASM_GENERATE_INTERNAL_LABEL): Remove.
10825 (ASM_OUTPUT_CASE_LABEL): Remove.
10826 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
10827 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
10828 (gas_output_ascii): Remove.
10829 (gas_output_limited_string): Remove.
10830 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
10831 * config/avr/avr-protos.h
10832 (gas_output_ascii): Remove prototye.
10833 (gas_output_limited_string): Remove prototype.
10834
10835 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
10836
10837 PR target/48637
10838 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
10839 asm operands.
10840
10841 2011-06-27 Jan Hubicka <jh@suse.cz>
10842
10843 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
10844 node instead of references in node.
10845
10846 2011-06-27 Richard Henderson <rth@redhat.com>
10847
10848 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
10849 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
10850 inside ifdef.
10851
10852 2011-06-27 Jakub Jelinek <jakub@redhat.com>
10853
10854 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
10855
10856 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
10857 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
10858 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
10859 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
10860 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
10861 (evaluate_stmt, execute_fold_all_builtins): Handle
10862 BUILT_IN_ASSUME_ALIGNED.
10863 * tree-ssa-dce.c (propagate_necessity): Likewise.
10864 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10865 call_may_clobber_ref_p_1): Likewise.
10866 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
10867 (expand_builtin_assume_aligned): New function.
10868 * doc/extend.texi (__builtin_assume_aligned): Document.
10869
10870 PR debug/49544
10871 * cselib.c (promote_debug_loc): If cselib_preserve_constants
10872 and l has two DEBUG_INSN owned locs instead of just one, adjust
10873 the second location's setting_insn too.
10874
10875 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10876
10877 PR libmudflap/38738
10878 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
10879
10880 2011-06-27 Nick Clifton <nickc@redhat.com>
10881
10882 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
10883 bit position of highest bit set into a count of the high zero bits.
10884
10885 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10886
10887 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
10888
10889 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10890
10891 PR lto/48492
10892 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
10893 to a NULL parent.
10894
10895 2011-06-27 Richard Guenther <rguenther@suse.de>
10896
10897 PR tree-optimization/49394
10898 * passes.c (execute_one_pass): Restore current_pass after
10899 applying IPA transforms.
10900
10901 2011-06-27 Kai Tietz <ktietz@redhat.com>
10902
10903 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
10904 out of type precision after operation.
10905 (find_bswap): Take for limit value the integer auto-promotion
10906 into account.
10907
10908 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10909
10910 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
10911 forward scan as well.
10912
10913 2011-06-27 Tristan Gingold <gingold@adacore.com>
10914
10915 PR target/44241
10916 * config/vms/vms-protos.h: New file.
10917 * config/vms/vms-crtlmap.map: New file.
10918 * config/vms/vms.c: New file.
10919 * config/vms/make-crtlmap.awk: New file.
10920 * config/vms/vms-crtl.h: File removed.
10921 * config/vms/vms-crtl-64.h: File removed.
10922 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
10923 * config/alpha/vms64.h: Do not include vms-crtl-64.h
10924 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
10925 clear some builtins on VMS. Calls vms_patch_builtins.
10926 (avms_asm_output_external): Remove.
10927 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
10928 (struct crtl_name_spec): Remove
10929 (DO_CTRL_NAMES): Remove.
10930 * config/ia64/vms.h (struct crtl_name_spec): Remove
10931 (DO_CTRL_NAMES): Remove.
10932 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
10933 clear some builtins on VMS. Calls vms_patch_builtins.
10934 (ia64_asm_output_external): Remove DO_CRTL_NAME.
10935 * config/ia64/vms64.h: Do not include vms-crtl-64.h
10936 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
10937
10938 2011-06-27 Tristan Gingold <gingold@adacore.com>
10939
10940 * config/alpha/alpha.c (alpha_end_function): Always generate .end
10941 directive on VMS.
10942
10943 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10944
10945 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
10946 the function receives nonlocal gotos.
10947
10948 2011-06-27 Richard Guenther <rguenther@suse.de>
10949
10950 PR tree-optimization/49536
10951 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
10952 For non-scalar inner types use a scalar type according to
10953 the scalar inner mode.
10954
10955 2011-06-27 Richard Guenther <rguenther@suse.de>
10956
10957 PR tree-optimization/49365
10958 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
10959
10960 2011-06-27 Richard Guenther <rguenther@suse.de>
10961
10962 PR tree-optimization/49169
10963 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
10964 the alignment of function decls.
10965
10966 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
10967
10968 PR target/47997
10969 * config/darwin.c (darwin_mergeable_string_section): Place string
10970 constants in '.cstring' rather than '.const' when CF/NSStrings are
10971 active.
10972
10973 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
10974
10975 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
10976 (emit_save_register_window): Likewise.
10977 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
10978 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
10979 Swap back %o7/%i7 in register naming.
10980
10981 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
10982
10983 PR driver/49371
10984 * config/darwin.c (darwin_override_options): Improve warning when
10985 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
10986 is given with fpie/fPIE.
10987 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
10988 * config/darwin9.h (PIE_SPEC): New.
10989
10990 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
10991
10992 * timevar.c (timevar_print): Increase width for display of timevar
10993 name.
10994
10995 2011-06-24 Jakub Jelinek <jakub@redhat.com>
10996
10997 PR c++/46400
10998 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
10999 instead of TYPE_CHAIN for chain_next for types.
11000
11001 2011-06-24 Richard Henderson <rth@redhat.com>
11002
11003 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
11004 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
11005 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
11006 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
11007 (sparc_flat_expand_prologue): Emit individual instructions
11008 instead of one of the above.
11009
11010 2011-06-24 Easwaran Raman <eraman@google.com>
11011
11012 PR rtl-optimization/49429
11013 PR target/49454
11014 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
11015 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
11016 used to copy y into x.
11017 * calls.c (initialize_argument_information): Mark
11018 an argument addressable if it is passed by invisible reference.
11019 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
11020 if it is passed by reference.
11021
11022 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
11023
11024 PR rtl-optimization/49504
11025 * rtlanal.c (nonzero_bits1): Properly handle addition or
11026 subtraction of a pointer in Pmode if pointers extend unsigned.
11027 (num_sign_bit_copies1): Likewise.
11028
11029 2011-06-24 Martin Jambor <mjambor@suse.cz>
11030
11031 PR tree-optimizations/49516
11032 * tree-sra.c (sra_modify_assign): Choose the safe path for
11033 aggregate copies if we also did scalar replacements.
11034
11035 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11036
11037 PR target/49335
11038 * config/arm/predicates.md (add_operator): New.
11039 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
11040
11041 2011-06-24 Andi Kleen <ak@linux.intel.com>
11042
11043 * tree-sra.c (type_internals_preclude_sra_p): Add msg
11044 parameter. Split up ifs and report reason in *msg.
11045 (reject): Add.
11046 (find_var_candiate): Add msg variable.
11047 Split up ifs and report reason to reject.
11048 (find_param_candidates): Add msg variable.
11049 Pass msg to type_internals_preclude_sra_p.
11050
11051 2011-06-23 Jeff Law <law@redhat.com>
11052
11053 PR middle-end/48770
11054 * reload.h (reload): Change to return a bool.
11055 * ira.c (ira): If requested by reload, run a fast DCE pass after
11056 reload has completed. Fix comment typo.
11057 * reload1.c (need_dce): New file scoped static.
11058 (reload): Set reload_completed here. Return whether or not a DCE
11059 pass after reload is needed.
11060 (delete_dead_insn): Set need_dce as needed.
11061
11062 PR middle-end/49465
11063 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
11064 to detect threading through joiner block. If there was already
11065 an edge to the new target, then do not change the PHI nodes.
11066
11067 2011-06-23 Jakub Jelinek <jakub@redhat.com>
11068
11069 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
11070 get_pointer_alignment to see if base isn't sufficiently aligned.
11071
11072 2011-06-23 Jan Hubicka <jh@suse.cz>
11073
11074 PR tree-optimize/49373
11075 * tree-pass.h (all_late_ipa_passes): Declare.
11076 * cgraphunit.c (init_lowered_empty_function): Fix properties.
11077 (cgraph_optimize): Execute late passes; remove unreachable funcions
11078 after materialization.
11079 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
11080 LTOing.
11081 * passes.c (all_late_ipa_passes): Declare.
11082 (dump_passes, register_pass): Handle late ipa passes.
11083 (init_optimization_passes): Move ipa_pta to late passes; schedule
11084 fixup_cfg at beggining of all_passes.
11085 (apply_ipa_transforms): New function.
11086 (execute_one_pass): When doing simple ipa pass, apply all transforms.
11087
11088 2011-06-23 Joseph Myers <joseph@codesourcery.com>
11089
11090 * params.c: Include common/common-target.h. Don't include tm.h.
11091 (lang_independent_params): Move from toplev.c.
11092 (global_init_params): New.
11093 * params.h (global_init_params): Declare.
11094 * target.def (default_params): Move to common-target.def.
11095 * toplev.c (lang_independent_options): Remove.
11096 (lang_independent_params): Move to params.c.
11097 (general_init): Use global_init_params.
11098 * common/common-target.def (option_default_params): Move from
11099 target.def.
11100 * common/config/ia64/ia64-common.c: Include params.h.
11101 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11102 from ia64.c.
11103 * common/config/rs6000/rs6000-common.c: Include params.h.
11104 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11105 from rs6000.c.
11106 * common/config/sh/sh-common.c: Include params.h.
11107 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11108 from sh.c.
11109 * common/config/spu/spu-common.c: Include params.h.
11110 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11111 from spu.c.
11112 * config/ia64/ia64.c (ia64_option_default_params,
11113 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
11114 * config/rs6000/rs6000.c (rs6000_option_default_params,
11115 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
11116 * config/sh/sh.c (sh_option_default_params,
11117 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
11118 * config/spu/spu.c (spu_option_default_params,
11119 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
11120 * Makefile.in (OBJS): Remove params.o.
11121 (OBJS-libcommon-target): Add params.o.
11122 (params.o, $(common_out_object_file)): Update dependencies.
11123 * doc/tm.texi: Regenerate.
11124
11125 2011-06-23 Alan Modra <amodra@gmail.com>
11126
11127 PR bootstrap/49383
11128 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
11129 invocation for 2011-06-09 changes.
11130
11131 2011-06-22 Jakub Jelinek <jakub@redhat.com>
11132
11133 PR libgomp/49490
11134 * omp-low.c (expand_omp_for_static_nochunk): Only
11135 use n ceil/ nthreads size for the first n % nthreads threads in the
11136 team instead of all threads except for the last few ones which
11137 get less work or none at all.
11138
11139 PR debug/49496
11140 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
11141 uses.
11142
11143 2011-06-22 Richard Guenther <rguenther@suse.de>
11144
11145 PR tree-optimization/49493
11146 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
11147 Refer to the alias target of variables.
11148 (associate_varinfo_to_alias_1): Remove.
11149 (ipa_pta_execute): Do not associate aliases with anything.
11150 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
11151 (cgraph_function_node): Likewise.
11152 (cgraph_function_or_thunk_node): Likewise.
11153 (varpool_variable_node): Likewise.
11154
11155 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
11156
11157 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
11158 * config.gcc (arm*-*-linux*): Default to gnu tls.
11159 (arm*-*-*): Add --with-tls option.
11160 (all_defaults): Add 'tls'.
11161
11162 2011-06-22 Richard Henderson <rth@redhat.com>
11163
11164 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
11165 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
11166 (dwarf2out_frame_debug_cfa_window_save): Rename from
11167 dwarf2out_window_save; make static.
11168 * tree.h (dwarf2out_window_save): Don't declare.
11169
11170 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
11171 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
11172 (emit_save_register_window): Rename from gen_save_register_window;
11173 emit the insn and add REG_CFA_* notes.
11174 (sparc_expand_prologue): Update to match.
11175 * config/sparc/sparc.md (save_register_window_1): Simplify from
11176 save_register_window<P:mode>.
11177
11178 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
11179
11180 PR target/49497
11181 * config/i386/i386.md (*lea_general_2): Always allow SImode.
11182 (*lea_general_2_zext): Likewise.
11183 (imul to lea peepholes): Use const359_operand and check
11184 TARGET_PARTIAL_REG_STALL.
11185
11186 * config/i386/predicates.md (const359_operand): New.
11187
11188 2011-06-22 Michael Matz <matz@suse.de>
11189
11190 * cgraphunit.c (assemble_thunk): Use correct return type.
11191
11192 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
11193 Dmitry Melnik <dm@ispras.ru>
11194
11195 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
11196 (neon_output_shift_immediate): Ditto.
11197 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
11198 prototype.
11199 (neon_output_shift_immediate): Ditto.
11200 * config/arm/neon.md (vashl<mode>3): Modified constraint.
11201 (vashr<mode>3_imm): New insn pattern.
11202 (vlshr<mode>3_imm): Ditto.
11203 (vashr<mode>3): Modified constraint.
11204 (vlshr<mode>3): Ditto.
11205 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
11206 predicate.
11207 (imm_for_neon_rshift_operand): Ditto.
11208 (imm_lshift_or_reg_neon): Ditto.
11209 (imm_rshift_or_reg_neon): Ditto.
11210
11211 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
11212
11213 2011-06-22 Jakub Jelinek <jakub@redhat.com>
11214
11215 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
11216 builtin calls even if likelyvalue is not CONSTANT.
11217 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
11218 Return get_value_for_expr of first operand
11219 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
11220 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
11221 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
11222 their non-checking counterparts.
11223 (call_may_clobber_ref_p_1): Likewise.
11224 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
11225 like their non-checking counterparts.
11226 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11227 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
11228 like their non-checking counterparts.
11229 (find_func_clobbers): Likewise.
11230 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
11231 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
11232
11233 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
11234 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
11235 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
11236 of base type reference as argument.
11237 (resolve_addr_in_expr): Likewise. Fix keep computation.
11238 (convert_descriptor_to_signed): Renamed to...
11239 (convert_descriptor_to_mode): ... this. For wider types convert to
11240 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
11241 (typed_binop): New function.
11242 (scompare_loc_descriptor, ucompare_loc_descriptor,
11243 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
11244 default to unsigned type instead of signed.
11245
11246 PR debug/47858
11247 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
11248 (gimple_build_debug_source_bind_stat): New prototype.
11249 (gimple_build_debug_source_bind): Define.
11250 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
11251 gimple_debug_source_bind_get_value,
11252 gimple_debug_source_bind_get_value_ptr,
11253 gimple_debug_source_bind_set_var,
11254 gimple_debug_source_bind_set_value): New inlines.
11255 * gimple.c (gimple_build_debug_source_bind_stat): New function.
11256 * gimple-pretty-print.c (dump_gimple_debug): Handle
11257 GIMPLE_DEBUG_SOURCE_BIND.
11258 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
11259 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
11260 * tree-parloops.c (eliminate_local_variables,
11261 separate_decls_in_region): Likewise.
11262 (separate_decls_in_region_debug): Renamed from
11263 separate_decls_in_region_debug_bind. Handle
11264 gimple_debug_source_bind_p.
11265 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
11266 prototypes.
11267 (DECL_HAS_DEBUG_ARGS_P): Define.
11268 (struct tree_function_decl): Add has_debug_args_flag field.
11269 * tree.c (debug_args_for_decl): New variable.
11270 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
11271 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
11272 (rewrite_debug_stmt_uses): New function.
11273 (rewrite_stmt): Use it to rewrite debug stmt uses.
11274 * rtl.def (DEBUG_PARAMETER_REF): New.
11275 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
11276 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
11277 DEBUG_PARAMETER_REF.
11278 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
11279 * print-rtl.c (print_rtx): Likewise.
11280 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
11281 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
11282 debug stmts in the first bb.
11283 * tree-inline.c (remap_ssa_name): If remapping default def
11284 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
11285 a source bind debug stmt.
11286 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
11287 (maybe_move_debug_stmts_to_successors): Likewise.
11288 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
11289 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
11290 debug args vector from old_decl to new_decl.
11291 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
11292 or modified parameters, add debug bind stmts before call
11293 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
11294 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
11295 on DECL_DEBUG_EXPRs from debug args vector.
11296 (expand_debug_source_expr): New function.
11297 (expand_debug_locations): Use it for source bind insns.
11298 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
11299 * var-tracking.c (prepare_call_arguments): Add debug args
11300 to call_arguments if any.
11301 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
11302 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
11303 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
11304 (get_ref_die_offset, parameter_ref_descriptor): New functions.
11305 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
11306 (gen_subprogram_die): Handle parameters identified by
11307 DEBUG_PARAMETER_REF.
11308
11309 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
11310
11311 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
11312 * doc/install.texi (Configuration): Document --with-tls.
11313 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
11314 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
11315 (arm_tls_descseq_addr): New.
11316 (legitimize_tls_address): Add tlsdesc support.
11317 (arm_cannot_copy_insn_p): Check for tlscall.
11318 (arm_emit_tls_decoration): Likewise.
11319 * config/arm/arm.h (TARGET_GNU2_TLS): New.
11320 (OPTION_DEFAULT_SPECS): Add with-tls support.
11321 * config/arm/arm.md (R1_REGNUM): Define.
11322 (tlscall): New.
11323 * config/arm/arm.opt (tls_type): New enumeration type and values.
11324 (mtls-dialect): New switch.
11325 * config/arm/arm-opts.h (enum tls_type): New.
11326
11327 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
11328
11329 * attribs.c (register_attribute): Added assert to check that all
11330 attribute specs are registered with a name that is not empty and
11331 does not start with '_'.
11332 (decl_attributes): Avoid the lookup of the "naked" attribute spec
11333 if the function has no attributes.
11334 * tree.c (is_attribute_with_length_p): Removed.
11335 (is_attribute_p): Removed.
11336 (private_is_attribute_p): New.
11337 (private_lookup_attribute): New.
11338 (lookup_attribute): Removed.
11339 (lookup_ident_attribute): New.
11340 (remove_attribute): Require the first argument to be in the form
11341 'text', not '__text__'. Updated asserts.
11342 (merge_attributes): Use lookup_ident_attributes instead of
11343 lookup_attribute.
11344 (merge_dllimport_decl_attributes): Use remove_attribute.
11345 (attribute_list_contained): Likewise.
11346 (attribute_list_equal): Immediately return 1 if the arguments are
11347 identical pointers.
11348 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
11349 'int'. Require the first argument to be in the form 'text', not
11350 '__text__'. Require the second argument to be an identifier.
11351 (lookup_attribute): Made inline. Require the first argument to be
11352 in the form 'text', not '__text__'.
11353 (private_is_attribute_p, private_lookup_attribute): New.
11354 Updated comments.
11355
11356 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
11357
11358 * builtins.c: Add sync_ or SYNC__ to builtin names.
11359 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
11360 * omp-low.c: Add sync_ or SYNC__ to builtin names.
11361
11362 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
11363
11364 PR target/33049
11365 * config/avr/avr.md (extzv): New expander.
11366 (*extzv): New insn.
11367 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
11368 * config/avr/constraints.md (C04): New constraint.
11369 * doc/md.texi (Machine Constraints): Document it.
11370
11371 2011-06-21 Jakub Jelinek <jakub@redhat.com>
11372
11373 PR middle-end/49489
11374 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
11375 unsignedp argument instead of 1 for clrsb_optab.
11376 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
11377 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
11378 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
11379 * optabs.c (widen_leading): Call widen_operand and expand_unop
11380 with 0 as unsignedp argument instead of 1 for clrsb_optab.
11381 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
11382
11383 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
11384
11385 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
11386
11387 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
11388
11389 * gensupport.c (add_define_attr): New static function.
11390 (is_predicable): Allow multi-alternative lists for the "predicable"
11391 attribute.
11392 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
11393 (process_one_cond_exec): Call alter_attrs_for_insn.
11394 * doc/md.texi (Defining Attributes): Mention some standard names.
11395 (Conditional Execution): Update documentation for "predicable".
11396
11397 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
11398 __builtin_clrsbll): Document.
11399 * doc/rtl.texi (clrsb): New entry.
11400 * optabs.c (widen_leading): Renamed from widen_clz. New argument
11401 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
11402 (expand_unop): Handle clrsb_optab.
11403 (init_optabs): Initialize it.
11404 * optabs.h (enum optab_index): New entry OTI_clrsb.
11405 (clrsb_optab): Define.
11406 * genopinit.c (optabs): Add an entry for it.
11407 * builtins.c (expand_builtin): Handle clrsb builtin functions.
11408 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
11409 BUILT_IN_CLRSBLL): New.
11410 * rtl.def (CLRSB): New code.
11411 * dwarf2out.c (mem_loc_descriptor): Handle it.
11412 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11413 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
11414 and popcount.
11415 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
11416 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
11417 (__ctzDI2): Move declaration.
11418 * config/bfin/bfin.md (clrsbsi2): New expander.
11419 (signbitssi2): Use the CLRSB rtx.
11420 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
11421 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
11422
11423 2011-06-21 Richard Guenther <rguenther@suse.de>
11424
11425 * ipa-inline-transform.c (inline_transform): Fix previous change.
11426
11427 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
11428
11429 PR tree-optimization/49478
11430 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
11431 with constant operand.
11432
11433 2011-06-21 Richard Guenther <rguenther@suse.de>
11434
11435 * ipa-inline-transform.c (inline_transform): Fix typo.
11436
11437 2011-06-21 Richard Guenther <rguenther@suse.de>
11438
11439 PR tree-optimization/49483
11440 * tree-vect-stmts.c (vectorizable_assignment): Also handle
11441 VIEW_CONVERT_EXPR conversions.
11442
11443 2011-06-21 Joseph Myers <joseph@codesourcery.com>
11444
11445 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
11446 * config/avr/avr-tables.opt: New file (generated).
11447 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
11448 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
11449 avr-mcus.def.
11450 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
11451 (avr_option_override): Don't process -mmcu= argument here. Set
11452 avr_current_device using avr_mcu_index.
11453 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
11454 * config/avr/avr.opt (mmcu=): Use Enum.
11455 * config/avr/t-avr (avr-devices.o): Update dependencies.
11456 ($(srcdir)/config/avr/avr-tables.opt): New.
11457 * target.def (help): Remove.
11458 * doc/tm.texi.in (TARGET_HELP): Remove.
11459 * doc/tm.texi: Regenerate.
11460 * opts.c: Don't include target.h.
11461 (common_handle_option): Don't call targetm.help.
11462 * system.h (TARGET_HELP): Poison.
11463 * Makefile.in (opts.o): Update dependencies.
11464
11465 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11466
11467 * config/usegld.h: New file.
11468 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
11469 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
11470 (LIB_SPEC): Likewise. Search /lib.
11471 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
11472 (RDYNAMIC_SPEC): Handle GNU ld.
11473 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
11474 Define.
11475 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
11476 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
11477 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
11478 (STACK_CHECK_STATIC_BUILTIN): Define.
11479 * config/sol2.opt (compat-bsd): Remove.
11480 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
11481 * config/sol2-bi.h: New file.
11482 * config/sol2-gld.h: Remove.
11483 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
11484 (NO_DBX_BNSYM_ENSYM): Remove.
11485 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
11486 (STACK_CHECK_STATIC_BUILTIN): Remove.
11487 Test USE_GLD instead of TARGET_GNU_LD.
11488 * config/i386/sol2-10.h: Rename to ...
11489 * config/i386/sol2-bi.h .. this.
11490 (SUBTARGET_EXTRA_SPECS): Redefine.
11491 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
11492 (MULTILIB_DEFAULTS): Remove.
11493 (DEFAULT_ARCH32_P): Define.
11494 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
11495 (ARCH64_SUBDIR): Define.
11496 Test USE_GLD instead of TARGET_GNU_LD.
11497 (I386_EMULATION): Rename to ...
11498 (ARCH32_EMULATION): ... this.
11499 (X86_64_EMULATION): Rename to ...
11500 (ARCH64_EMULATION): ... this.
11501 (TARGET_LD_EMULATION): Remove.
11502 (LINK_ARCH_SPEC): Remove.
11503 * config/i386/sol2-gas.h: Remove.
11504 * config/i386/t-sol2-10: Rename to ...
11505 * config/i386/t-sol2-64: ... this.
11506 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
11507 (AS_SPARC64_FLAG): Define.
11508 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
11509 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
11510 depending on TARGET_CPU_DEFAULT.
11511 (CPP_CPU_SPEC): Redefine.
11512 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
11513 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
11514 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
11515 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
11516 ASM_ARCH_DEFAULT_SPEC): Redefine.
11517 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
11518 LINK_ARCH_DEFAULT_SPEC.
11519 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
11520 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
11521 (ARCH64_SUBDIR): Define.
11522 (LINK_ARCH64_SPEC): Redefine.
11523 (CC1_SPEC): Redefine.
11524 (OPTION_DEFAULT_SPECS): Redefine.
11525 (MULTILIB_DEFAULTS): Define.
11526 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
11527 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
11528 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
11529 (NO_DBX_BNSYM_ENSYM): Remove.
11530 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
11531 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
11532 (TARGET_ASM_NAMED_SECTION): Likewise.
11533 (STACK_CHECK_STATIC_BUILTIN): Remove.
11534 * config/sparc/sol2-bi.h: Remove.
11535 * config/sparc/sol2-gas-bi.h: Remove.
11536 * config/sparc/sol2-gas.h: Remove.
11537 * config/sparc/sol2-gld-bi.h: Remove.
11538 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
11539 common parts ...
11540 (*-*-solaris2*): ... here.
11541
11542 2011-06-21 Christian Bruel <christian.bruel@st.com>
11543
11544 PR other/43564
11545 * ipa-inline.c (can_inline_edge_p): Check
11546 !DECL_DISREGARD_INLINE_LIMITS.
11547
11548 2011-06-21 Christian Bruel <christian.bruel@st.com>
11549
11550 PR middle-end/49139
11551 * cgraphunit.c (process_function_and_variable_attributes): warn when
11552 always_inline functions that are not inline.
11553 * ipa-inline-transform.c (inline_transform): Always call
11554 optimize_inline.
11555 * tree-inline.c (tree_inlinable_function_p): Use error instead
11556 of sorry.
11557 (expand_call_inline): Likewise.
11558
11559 2011-06-21 Jakub Jelinek <jakub@redhat.com>
11560
11561 * Makefile.in (dg_target_exps): Set.
11562 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
11563 instead of 7, try to divide it more evenly.
11564
11565 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
11566
11567 PR target/49089
11568 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
11569 (avx256_split_unaligned_store): New definition.
11570 (ix86_option_override_internal): Enable avx256 unaligned load/store
11571 splitting only when avx256_split_unaligned_load/store is set.
11572
11573 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
11574
11575 * regrename.c (scan_rtx_reg): Handle the case where we write to an
11576 open chain in a smaller mode without failing the entire block.
11577
11578 2011-06-21 Alan Modra <amodra@gmail.com>
11579
11580 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
11581 CONST high part large-toc address.
11582 (rs6000_tls_referenced_p): Make static.
11583 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
11584
11585 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11586
11587 PR target/49385
11588 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
11589 one of the operands is a register.
11590
11591 2011-06-20 Kai Tietz <ktietz@redhat.com>
11592
11593 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
11594 operations in combination with binary and.
11595
11596 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
11597
11598 * regrename.c (do_replace): Don't update notes.
11599
11600 2011-06-20 Alan Modra <amodra@gmail.com>
11601
11602 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
11603 of toc-relative address in CONST.
11604 (rs6000_delegitimize_address): Recognize changed address.
11605 (rs6000_legitimize_reload_address): Likewise.
11606 (rs6000_emit_move): Don't force these constants to memory.
11607 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
11608 toc-relative address in CONST.
11609 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
11610 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
11611
11612 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
11613
11614 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
11615 (count_trailing_zeros): Likewise.
11616
11617 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
11618
11619 PR other/49325
11620 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
11621 .init_array can be used with .ctors on targets.
11622 * configure: Regenerated.
11623
11624 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
11625
11626 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
11627 if the element type is volatile.
11628
11629 2011-06-18 Jan Hubicka <jh@suse.cz>
11630
11631 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
11632 extra name aliases.
11633 (lto_symtab_resolve_can_prevail_p): Likewise.
11634 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
11635 * cgraphbuild.c (record_reference): Remove extra body alias code.
11636 (mark_load): Likewise.
11637 (mark_store): Likewise.
11638 * cgraph.h (varpool_node): Remove extra_name filed;
11639 add alias_of and extraname_alias.
11640 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
11641 (varpool_alias_aliased_node): New inline function.
11642 (varpool_variable_node): New function.
11643 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
11644 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
11645 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
11646 (input_varpool_node): Likewise.
11647 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
11648 (varpool_externally_visible_p): Remove extra body alias code.
11649 (function_and_variable_visibility): Likewise.
11650 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
11651 (ipa_pta_execute): Use it.
11652 * varpool.c (varpool_remove_node): Remove extra name alias code.
11653 (varpool_mark_needed_node): Likewise.
11654 (varpool_analyze_pending_decls): Analyze aliases.
11655 (assemble_aliases): New functoin.
11656 (varpool_assemble_decl): Use it.
11657 (varpool_create_variable_alias): New function.
11658 (varpool_extra_name_alias): Rewrite.
11659 (varpool_for_node_and_aliases): New function.
11660
11661 2011-06-18 Jakub Jelinek <jakub@redhat.com>
11662
11663 PR target/49411
11664 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
11665 last_arg_constant and last argument doesn't match its predicate,
11666 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
11667 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
11668 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
11669 spelling of error message.
11670 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
11671 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
11672 const_0_to_255_operand instead of const_int_operand.
11673
11674 Revert:
11675 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
11676
11677 * config/i386/sse.md (blendbits): Remove mode attribute.
11678 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
11679 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
11680 Check integer value of operand 3 in insn constraint.
11681
11682 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
11683
11684 PR rtl-optimization/48542
11685 * reload.c (find_equiv_reg): Stop looking when finding a
11686 setjmp-type call.
11687 * reload1.c (reload_as_needed): Invalidate all reload
11688 registers when crossing a setjmp-type call.
11689
11690 2011-06-16 Jeff Law <law@redhat.com>
11691
11692 * tree-ssa-threadupdate.c (struct redirection_data): New field
11693 intermediate_edge.
11694 (THREAD_TARGET2): Define.
11695 (redirection_data_eq): Also check that the intermediate edge is equal.
11696 (lookup_redirection_data): Drop useless argument. Extract the
11697 outgoing_edge and intermediate edge from E. Callers updated.
11698 (copy_phi_args, update_destination_phis): New functions.
11699 (fix_duplicate_block_edges): Likewise.
11700 (create_edge_and_update_destination_phis): Duplicate all the edges
11701 hung off e->aux. Use copy_phi_args.
11702 (create_duplicates): Use fix_duplicate_block_edges.
11703 (fixup_template_block): Likewise.
11704 (redirect_edges): If necessary, redirect the joiner block's incoming
11705 edge to the duplicate of the joiner block.
11706 (thread_block): Don't muck up loops when threading through a joiner
11707 block.
11708 (thread_through_loop_header): Handle threading through a joiner block.
11709 (mark_threaded_blocks, register_jump_thread): Likewise.
11710 * tree-flow.h (register_jump_thread): Add new argument. Callers
11711 updated.
11712 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
11713 (thread_across_edge): Handle threading through a joiner block.
11714
11715 2011-06-16 Martin Jambor <mjambor@suse.cz>
11716
11717 PR tree-optimization/49343
11718 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
11719 calculate offset, provide 2nd operand for the new COMPONENT_REF.
11720
11721 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
11722
11723 * config/darwin-protos.h (machopic_select_rtx_section): Move to
11724 inside RTX_CODE ifdef.
11725
11726 2011-06-16 Tom de Vries <tom@codesourcery.com>
11727
11728 PR target/45098
11729 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
11730 Disallow NULL pointer for pointer arithmetic.
11731
11732 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11733
11734 PR target/49398
11735 Revert.
11736 2011-06-10 Wei Guozhi <carrot@google.com>
11737
11738 PR target/45335
11739 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
11740 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
11741 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
11742 related peephole2.
11743 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
11744 related peephole2.
11745 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
11746 (arm_legitimate_ldrd_p): New prototype.
11747 (arm_output_ldrd): New prototype.
11748 * config/arm/arm.c (arm_check_ldrd_operands): New function.
11749 (arm_legitimate_ldrd_p): New function.
11750 (arm_output_ldrd): New function.
11751
11752 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
11753
11754 PR middle-end/46500
11755 * doc/tm.texi.in: Update Copyright date.
11756 * doc/tm.texi: Regenerate.
11757 * targhooks.c (default_setup_incoming_varargs): Replace
11758 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11759 (default_pretend_outgoing_varargs_named): Likewise.
11760 (hook_pass_by_reference_must_pass_in_stack): Likewise.
11761 (hook_callee_copies_named): Likewise.
11762 (default_function_arg_advance): Likewise.
11763 (default_function_arg): Likewise.
11764 (default_function_incoming_arg): Likewise.
11765 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
11766 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
11767 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
11768 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11769 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
11770 * targhooks.h (default_setup_incoming_varargs): Likewise.
11771 (default_pretend_outgoing_varargs_named): Likewise.
11772 (hook_pass_by_reference_must_pass_in_stack): Likewise.
11773 (hook_callee_copies_named): Likewise.
11774 (default_function_arg_advance): Likewise.
11775 (default_function_arg): Likewise.
11776 (default_function_incoming_arg): Likewise.
11777 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
11778 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
11779 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
11780 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11781 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
11782 * target.def (pass_by_reference): Likewise.
11783 (setup_incoming_varargs, strict_argument_naming): Likewise.
11784 (pretend_outgoing_varargs_named, callee_copies): Likewise.
11785 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
11786 (function_incoming_arg): Likewise.
11787 * target.h: Don't include "tm.h" .
11788 (cumulative_args_t): New typedef.
11789 [GCC_TM_H] (get_cumulative_args): New static inline function.
11790 [GCC_TM_H] (pack_cumulative_args): Likewise.
11791 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
11792 argument type with cumulative_args_t.
11793 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
11794 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
11795 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
11796 (frv_arg_partial_bytes, frv_function_arg): Likewise.
11797 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
11798 (frv_function_arg_1): Likewise.
11799 * config/s390/s390.c (s390_pass_by_reference): Likewise.
11800 (s390_function_arg_advance, s390_function_arg): Likewise.
11801 * config/m32c/m32c.c (m32c_function_arg): Likewise.
11802 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
11803 (m32c_strict_argument_naming): Likewise.
11804 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
11805 (spu_function_arg_advance): Likewise.
11806 (spu_setup_incoming_varargs): Likewise. Make static.
11807 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
11808 Remove prototype.
11809 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
11810 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11811 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
11812 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
11813 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
11814 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
11815 (mep_pass_by_reference, mep_function_arg): Likewise.
11816 (mep_function_arg_advance): Likewise.
11817 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
11818 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
11819 (m32r_function_arg, m32r_function_arg_advance): Likewise.
11820 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
11821 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
11822 (ix86_function_arg, ix86_pass_by_reference): Likewise.
11823 (ix86_setup_incoming_varargs): Likewise.
11824 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
11825 (sh_strict_argument_naming): Likewise.
11826 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
11827 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
11828 (sh_function_arg_advance, sh_function_arg): Likewise.
11829 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
11830 (pdp11_function_arg_advance): Likewise.
11831 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
11832 Likewise.
11833 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
11834 * config/avr/avr.c (avr_function_arg): Likewise.
11835 (avr_function_arg_advance): Likewise.
11836 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
11837 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
11838 (xtensa_function_arg_1): Likewise.
11839 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
11840 Likewise.
11841 (xstormy16_function_arg): Likewise.
11842 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
11843 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
11844 (fr30_function_arg_advance): Likewise.
11845 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
11846 (lm32_function_arg, lm32_function_arg_advance): Likewise.
11847 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
11848 (moxie_function_arg, moxie_function_arg_advance): Likewise.
11849 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
11850 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
11851 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
11852 (cris_function_arg, cris_function_incoming_arg): Likewise.
11853 (cris_function_arg_advance, cris_function_arg_1): Likewise.
11854 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
11855 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
11856 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
11857 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
11858 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
11859 (mn10300_arg_partial_bytes): Likewise.
11860 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
11861 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
11862 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
11863 (ia64_function_arg_1): Likewise.
11864 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
11865 (m68k_function_arg): Likewise.
11866 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
11867 (rs6000_function_arg, setup_incoming_varargs): Likewise.
11868 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
11869 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
11870 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
11871 (picochip_arg_advance): Likewise.
11872 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
11873 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
11874 (mcore_function_arg_advance): Likewise.
11875 * config/score/score.c (score_pass_by_reference): Likewise.
11876 (score_function_arg_advance): Likewise.
11877 (score_arg_partial_bytes): Likewise. Make static.
11878 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
11879 * config/arm/arm.c (arm_arg_partial_bytes): Replace
11880 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11881 (arm_function_arg, arm_function_arg_advance): Likewise.
11882 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
11883 * config/pa/pa.c (pa_pass_by_reference): Likewise.
11884 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
11885 (pa_function_arg): Likewise.
11886 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
11887 (mips_function_arg, mips_function_arg_advance): Likewise.
11888 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
11889 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
11890 * config/vax/vax.c (vax_function_arg): Likewise.
11891 (vax_function_arg_advance): Likewise.
11892 * config/h8300/h8300.c (h8300_function_arg): Likewise.
11893 (h8300_function_arg_advance): Likewise.
11894 * config/v850/v850.c (v850_pass_by_reference): Likewise.
11895 (v850_strict_argument_naming, v850_function_arg): Likewise.
11896 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
11897 (v850_setup_incoming_varargs): Likewise.
11898 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
11899 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
11900 (mmix_function_arg, mmix_pass_by_reference): Likewise.
11901 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
11902 with const void *.
11903 * config/bfin/bfin.c (setup_incoming_varargs): Replace
11904 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11905 (bfin_function_arg_advance, bfin_function_arg): Likewise.
11906 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
11907 * calls.c (emit_call_1): Change type of args_so_far to
11908 cumulative_args_t. Changed all callers.
11909 (initialize_argument_information): Likewise.
11910 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
11911 * dse.c (get_call_args): Likewise.
11912 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
11913 * function.c (pass_by_reference, reference_callee_copied): Likewise.
11914 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
11915 New member args_so_far_v. Changed all users.
11916 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
11917 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11918 * config/mips/mips.c (mips_output_args_xfer): Likewise.
11919 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
11920 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
11921 * config/microblaze/microblaze.c (microblaze_expand_prologue):
11922 Likewise.
11923 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
11924 m32r_pass_by_reference.
11925
11926 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
11927
11928 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
11929 argument to be a VEC of statements.
11930 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
11931 assert that pattern statements have to have their vector type set.
11932 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
11933 Change the first argument to be a VEC of statements. Update
11934 documentation.
11935 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
11936 (vect_handle_widen_mult_by_const): New function.
11937 (vect_recog_widen_mult_pattern): Change the first argument to be a
11938 VEC of statements. Update documentation. Check that the constant is
11939 INTEGER_CST. Support multiplication by a constant that fits an
11940 intermediate type - call vect_handle_widen_mult_by_const.
11941 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
11942 call. Handle additional pattern statements if necessary.
11943
11944 2011-06-16 Nick Clifton <nickc@redhat.com>
11945
11946 PR target/49427
11947 * config.gcc: Set cpu_type to v850 for any V850 architecture.
11948 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
11949 md_file, extra_modes, out_file and extra_options are these are all
11950 deduced from cpu_type.
11951
11952 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
11953
11954 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
11955 truncation mask to 63.
11956
11957 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
11958
11959 PR target/49313
11960 PR target/29524
11961 * longlong.h: Add AVR support:
11962 (count_leading_zeros): New macro.
11963 (count_trailing_zeros): New macro.
11964 (COUNT_LEADING_ZEROS_0): New macro.
11965 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
11966 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
11967 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
11968 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
11969 (LIB2FUNCS_EXCLUDE): Add _clz.
11970 * config/avr/libgcc.S (XCALL): Move up in file.
11971 (XJMP): New C Macro.
11972 (DEFUN): New asm macro.
11973 (ENDF): New asm macro.
11974 (__ffssi2): New function.
11975 (__ffshi2): New function.
11976 (__loop_ffsqi2): New function.
11977 (__ctzsi2): New function.
11978 (__ctzhi2): New function.
11979 (__clzdi2): New function.
11980 (__clzsi2): New function.
11981 (__clzhi2): New function.
11982 (__paritydi2): New function.
11983 (__paritysi2): New function.
11984 (__parityhi2): New function.
11985 (__parityqi2): New function.
11986 (__popcounthi2): New function.
11987 (__popcountsi2): New function.
11988 (__popcountdi2): New function.
11989 (__popcountqi2): New function.
11990 (__bswapsi2): New function.
11991 (__bswapdi2): New function.
11992 (__ashldi3): New function.
11993 (__ashrdi3): New function.
11994 (__lshrdi3): New function.
11995 Fix suspicous lines.
11996
11997 2011-06-16 Richard Guenther <rguenther@suse.de>
11998
11999 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
12000 the same as x != 0.
12001 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
12002 to (bool) X & 1.
12003 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
12004 equality compares against zero for the lower bit.
12005
12006 2011-06-16 Jakub Jelinek <jakub@redhat.com>
12007
12008 PR tree-optimization/49419
12009 * tree-vrp.c (execute_vrp): Call init_range_assertions
12010 before estimate_numbers_of_iterations, call
12011 free_number_of_iterations_estimates before calling
12012 remove_range_assertions.
12013
12014 2011-06-16 Revital Eres <revital.eres@linaro.org>
12015
12016 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
12017 (struct partial_schedule): Add rows_length field.
12018 (verify_partial_schedule): Check rows_length.
12019 (ps_insert_empty_row): Handle rows_length.
12020 (create_partial_schedule): Likewise.
12021 (free_partial_schedule): Likewise.
12022 (reset_partial_schedule): Likewise.
12023 (create_ps_insn): Remove rest_count argument.
12024 (remove_node_from_ps): Update rows_length.
12025 (add_node_to_ps): Update rows_length and call create_ps_insn
12026 without passing row_rest_count.
12027 (rotate_partial_schedule): Update rows_length.
12028
12029 2011-06-16 Revital Eres <revital.eres@linaro.org>
12030
12031 * ddg.c (add_intra_loop_mem_dep): New function.
12032 (build_intra_loop_deps): Call it.
12033
12034 2011-06-13 Jeff Law <law@redhat.com>
12035
12036 * df-problems.c (df_lr_local_compute): Manually CSE
12037 PIC_OFFSET_TABLE_REGNUM.
12038 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
12039 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
12040
12041 2011-06-13 Jan Hubicka <jh@suse.cz>
12042
12043 * cgraphunit.c (handle_alias_pairs): New function.
12044 (cgraph_finalize_compilation_unit): Use it.
12045 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
12046 as externally visible.
12047
12048 2011-06-15 Richard Guenther <rguenther@suse.de>
12049
12050 * expr.c (expand_expr_real_2): Reduce all integral types to
12051 bitfield precision.
12052 (expand_expr_real_1): Likewise.
12053
12054 2011-06-15 Martin Jambor <mjambor@suse.cz>
12055
12056 PR tree-optimization/48613
12057 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
12058 ipa_node_params_vector is NULL.
12059
12060 2011-06-15 Jakub Jelinek <jakub@redhat.com>
12061
12062 PR debug/49382
12063 * dwarf2out.c (dw_loc_list_node): Add force field.
12064 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
12065 location in the list, even if it is modified before first real insn.
12066 (output_loc_list): Emit empty ranges with force flag set.
12067 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
12068
12069 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
12070
12071 PR target/49349
12072 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
12073 (fence_to_rewind). Use it to notice when bookkeeping will be placed
12074 above a fence. Update comments.
12075 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
12076 placed just above it. Do not allow NULL place_to_insert.
12077
12078 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
12079
12080 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
12081 (slpeel_tree_peel_loop_to_edge): Don't call
12082 remove_dead_stmts_from_loop.
12083 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
12084 remove irrelevant pattern statements. For irrelevant statements
12085 check if it is the last statement of a detected pattern, use
12086 corresponding pattern statement instead.
12087 (destroy_loop_vec_info): No need to remove pattern statements,
12088 only free stmt_vec_info.
12089 (vect_transform_loop): For irrelevant statements check if it is
12090 the last statement of a detected pattern, use corresponding
12091 pattern statement instead.
12092 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
12093 pattern statements. Set basic block for the new statement.
12094 (vect_pattern_recog): Update documentation.
12095 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
12096 operands of pattern statements.
12097 (vectorizable_call): Fix printing. In case of a pattern statement
12098 use the lhs of the original statement when creating a dummy
12099 statement to replace the original call.
12100 (vect_analyze_stmt): For irrelevant statements check if it is
12101 the last statement of a detected pattern, use corresponding
12102 pattern statement instead.
12103 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
12104 statements use gsi of the original statement.
12105
12106 2011-06-14 Joseph Myers <joseph@codesourcery.com>
12107
12108 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
12109 common/common-target-def.h.
12110 * target.def (default_target_flags, handle_option,
12111 supports_split_stack, optimization_table, init_struct,
12112 except_unwind_info, unwind_tables_default, have_named_sections):
12113 Move to common/common-target.def.
12114 * target.h (enum opt_levels, struct default_options): Move to
12115 common/common-target.h.
12116 * targhooks.c (default_except_unwind_info,
12117 dwarf2_except_unwind_info, sjlj_except_unwind_info,
12118 default_target_handle_option, empty_optimization_table): Move to
12119 common/common-targhooks.c.
12120 * targhooks.h (default_except_unwind_info,
12121 dwarf2_except_unwind_info, sjlj_except_unwind_info,
12122 default_target_handle_option, empty_optimization_table): Move to
12123 common/common-targhooks.h.
12124 * common/common-target-def.h: Include common/common-targhooks.h.
12125 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
12126 defined.
12127 * common/common-target.def (handle_option, option_init_struct,
12128 option_optimization_table, default_target_flags,
12129 except_unwind_info, supports_split_stack, unwind_tables_default,
12130 have_named_sections): Move from target.def.
12131 (HOOK_PREFIX): Undefine at end of file.
12132 * common/common-target.h: Include input.h.
12133 (enum opt_levels, struct default_options): Move from target.h.
12134 * common/common-targhooks.c, common/common-targhooks.h: New.
12135 * config.gcc (target_has_targetm_common): Default to yes.
12136 (moxie*): Set target_has_targetm_common=no.
12137 (hppa*-*-*): Don't set target_has_targetm_common=yes.
12138 * doc/tm.texi: Regenerate.
12139 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
12140 (C_TARGET_DEF_H): Add common/common-targhooks.h.
12141 (GCC_OBJS): Remove vec.o.
12142 (OBJS): Remove hooks.o and vec.o.
12143 (OBJS-libcommon-target): Add vec.o, hooks.o and
12144 common/common-targhooks.o.
12145 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
12146 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
12147 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
12148 cfglayout.o, $(out_object_file), $(common_out_object_file)):
12149 Update dependencies.
12150 (common/common-targhooks.o): New.
12151 * common/config/default-common.c: Include tm.h. Add FIXME comment.
12152 * common/config/pa/pa-common.c: Include more headers. Take
12153 copyright dates from pa.c.
12154 (pa_option_optimization_table, pa_handle_option,
12155 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
12156 TARGET_HANDLE_OPTION): Move from pa.c.
12157 * common/config/alpha/alpha-common.c,
12158 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
12159 common/config/bfin/bfin-common.c,
12160 common/config/cris/cris-common.c,
12161 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
12162 common/config/h8300/h8300-common.c,
12163 common/config/i386/i386-common.c,
12164 common/config/ia64/ia64-common.c,
12165 common/config/iq2000/iq2000-common.c,
12166 common/config/lm32/lm32-common.c,
12167 common/config/m32c/m32c-common.c,
12168 common/config/m32r/m32r-common.c,
12169 common/config/m68k/m68k-common.c,
12170 common/config/mcore/mcore-common.c,
12171 common/config/mep/mep-common.c,
12172 common/config/microblaze/microblaze-common.c,
12173 common/config/mips/mips-common.c,
12174 common/config/mmix/mmix-common.c,
12175 common/config/mn10300/mn10300-common.c,
12176 common/config/pdp11/pdp11-common.c,
12177 common/config/picochip/picochip-common.c,
12178 common/config/rs6000/rs6000-common.c,
12179 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
12180 common/config/score/score-common.c, common/config/sh/sh-common.c,
12181 common/config/sparc/sparc-common.c,
12182 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
12183 common/config/vax/vax-common.c,
12184 common/config/xstormy16/xstormy16-common.c,
12185 common/config/xtensa/xtensa-common.c: New.
12186 * config/alpha/alpha.c: Include common/common-target.h.
12187 (alpha_option_optimization_table, alpha_handle_option,
12188 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12189 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
12190 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
12191 * config/arm/arm.c (arm_option_optimization_table,
12192 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12193 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
12194 arm-common.c.
12195 * config/avr/avr.c (avr_option_optimization_table,
12196 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
12197 to avr-common.c.
12198 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
12199 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
12200 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
12201 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
12202 * config/cris/cris.c (cris_option_optimization_table,
12203 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12204 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
12205 cris-common.c.
12206 * config/fr30/fr30.c (fr30_option_optimization_table,
12207 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
12208 to fr30-common.c.
12209 * config/frv/frv.c (frv_option_optimization_table,
12210 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
12211 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
12212 * config/h8300/h8300.c (h8300_option_optimization_table,
12213 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12214 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
12215 * config/i386/i386-protos.h (ix86_handle_option): Declare.
12216 * config/i386/i386.c: Include common/common-target.h.
12217 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
12218 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
12219 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
12220 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
12221 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
12222 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
12223 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
12224 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
12225 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
12226 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
12227 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
12228 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
12229 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
12230 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
12231 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
12232 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
12233 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
12234 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
12235 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
12236 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
12237 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
12238 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
12239 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
12240 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
12241 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
12242 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
12243 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
12244 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
12245 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
12246 ix86_option_optimization_table, ix86_option_init_struct,
12247 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
12248 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
12249 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
12250 i386-common.c.
12251 * config/i386/t-i386 (i386.o): Update dependencies.
12252 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
12253 * config/ia64/ia64.c (ia64_option_optimization_table,
12254 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
12255 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12256 ia64_handle_option): Move to ia64-common.c.
12257 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
12258 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
12259 * config/lm32/lm32.c (lm32_option_optimization_table,
12260 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
12261 to lm32-common.c.
12262 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
12263 m32c-common.c.
12264 * config/m32r/m32r.c (m32r_option_optimization_table,
12265 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12266 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
12267 m32r_handle_option): Move to m32r-common.c.
12268 (m32r_memory_move_cost): Remove comment referring to
12269 TARGET_HANDLE_OPTION.
12270 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
12271 Move to m68k-common.c.
12272 * config/mcore/mcore.c (mcore_option_optimization_table,
12273 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12274 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
12275 * config/mep/mep.c (mep_option_optimization_table,
12276 mep_handle_option, TARGET_HANDLE_OPTION,
12277 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
12278 Move to mep-common.c.
12279 * config/microblaze/microblaze.c
12280 (microblaze_option_optimization_table,
12281 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12282 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
12283 * config/mips/mips.c (mips_handle_option,
12284 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
12285 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
12286 mips-common.c.
12287 * config/mmix/mmix.c (mmix_option_optimization_table,
12288 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
12289 Move to mmix-common.c.
12290 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
12291 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
12292 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12293 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
12294 * config/pa/pa.c: Include common/common-target.h.
12295 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
12296 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12297 pa_handle_option): Move to pa-common.c.
12298 (pa_option_override): Use targetm_common.except_unwind_info.
12299 (pa_asm_output_mi_thunk, pa_function_section): Use
12300 targetm_common.have_named_sections.
12301 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
12302 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12303 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
12304 pdp11_handle_option, pdp11_option_init_struct): Move to
12305 pdp11-common.c.
12306 * config/picochip/picochip.c (picochip_option_optimization_table,
12307 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
12308 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
12309 * config/rs6000/rs6000.c: Include common/common-target.h.
12310 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
12311 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
12312 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
12313 rs6000_handle_option): Move to rs6000-common.c.
12314 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
12315 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
12316 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
12317 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
12318 * config/s390/s390.c (processor_flags_table,
12319 s390_option_optimization_table, s390_option_init_struct,
12320 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
12321 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
12322 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
12323 * config/s390/s390.h (processor_flags_table): Declare.
12324 * config/score/score.c (score_option_optimization_table,
12325 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12326 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
12327 score_handle_option): Move to score-common.c.
12328 * config/sh/sh.c (sh_option_optimization_table,
12329 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
12330 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12331 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
12332 * config/sparc/sparc.c: Include common/common-target.h.
12333 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
12334 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
12335 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
12336 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
12337 spu_option_init_struct): Move to spu-common.c.
12338 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
12339 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
12340 * config/v850/v850.c (small_memory_physical_max,
12341 v850_handle_memory_optionn v850_handle_option,
12342 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
12343 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
12344 v850-common.c.
12345 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
12346 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
12347 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
12348 Move to xtensa-common.c.
12349 * cfglayout.c: Include common/common-target.h.
12350 (fixup_reorder_chain): Use targetm_common.have_named_sections.
12351 * cfgrtl.c: Include common/common-target.h.
12352 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
12353 targetm_common.have_named_sections.
12354 * dbxout.c: Include common/common-target.h.
12355 (dbxout_function_end): Use targetm_common.have_named_sections.
12356 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
12357 targetm_common.except_unwind_info.
12358 * dwarf2out.c: Include common/common-target.h.
12359 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
12360 dwarf2out_begin_prologue, dwarf2out_frame_init,
12361 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
12362 targetm_common.except_unwind_info.
12363 * except.c: Include common/common-target.h.
12364 (init_eh, finish_eh_generation,
12365 output_one_function_exception_table): Use
12366 targetm_common.except_unwind_info.
12367 (switch_to_exception_section): Use targetm_common.have_named_sections.
12368 * explow.c: Include common/common-target.h.
12369 * expr.c: Include common/common-target.h.
12370 (build_personality_function): Use targetm_common.except_unwind_info.
12371 * function.c: Include common/common-target.h.
12372 (expand_function_end): Use targetm_common.except_unwind_info.
12373 * haifa-sched.c: Include common/common-target.h.
12374 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
12375 * lto-opts.c: Include common/common-target.h instead of target.h.
12376 (lto_reissue_options): Use targetm_common.handle_option.
12377 * opts.c: Include common/common-target.h.
12378 (target_handle_option): Use targetm_common.handle_option.
12379 (init_options_struct): Update comment referring to
12380 targetm.target_option.optimization. Use
12381 targetm_common.default_target_flags,
12382 targetm_common.unwind_tables_default and
12383 targetm_common.option_init_struct.
12384 (default_options_optimization): Use
12385 targetm_common.option_optimization_table.
12386 (finish_options): Use targetm_common.except_unwind_info,
12387 targetm_common.unwind_tables_default,
12388 targetm_common.have_named_sections and
12389 targetm_common.supports_split_stack.
12390 * toplev.c: Include common/common-target.h.
12391 (process_options): Use targetm_common.have_named_sections.
12392 * tree-tailcall.c: Include common/common-target.h.
12393 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
12394 * tree.c: Include common/common-target.h.
12395 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
12396 * varasm.c: Include common/common-target.h.
12397 (resolve_unique_section, hot_function_section,
12398 default_function_section): Use targetm_common.have_named_sections.
12399
12400 2011-06-14 Easwaran Raman <eraman@google.com>
12401
12402 PR rtl-optimization/44194
12403 * dse.c: Include tree-flow.h
12404 (insn_info): Add new field non_frame_wild_read.
12405 (group_info): Add new fields escaped_n and escaped_p.
12406 (kill_on_calls): New variable.
12407 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
12408 (dse_step0): Initialize kill_on_calls.
12409 (can_escape): New function.
12410 (set_usage_bits): Add additional parameter; record information
12411 about escaped locations.
12412 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
12413 (dse_step2_nospill): Set kill_on_calls based on
12414 group->escaped_n and group->escaped_n.
12415 (add_wild_read): Refactor into...
12416 (reset_active_stores): ... New function, and
12417 (free_read_records): ... New function.
12418 (add_non_frame_wild_read): New function.
12419 (scan_insn): Call add_non_frame_wild_read on non-const calls.
12420 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
12421 (dse_step5_nospill): Call scan_reads_nospill for instructions
12422 marked as non_frame_wild_read.
12423 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
12424
12425 2011-06-14 Joseph Myers <joseph@codesourcery.com>
12426
12427 * common/common-target-def.h, common/common-target.def,
12428 common/common-target.h, common/config/default-common.c,
12429 common/config/pa/pa-common.c: New files.
12430 * Makefile.in (common_out_file, common_out_object_file,
12431 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
12432 (OBJS-libcommon-target): Include $(common_out_object_file).
12433 (prefix.o): Update dependencies.
12434 ($(common_out_object_file), common/common-target-hooks-def.h,
12435 s-common-target-hooks-def-h): New.
12436 (s-tm-texi): Also check timestamp on common-target.def.
12437 (build/genhooks.o): Update dependencies.
12438 * config.gcc (common_out_file, target_has_targetm_common): Define.
12439 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
12440 TARGET_ALWAYS_STRIP_DOTDOT.
12441 * configure.ac (common_out_object_file): Define.
12442 (common_out_file, common_out_object_file): Substitute.
12443 (common): Create directory.
12444 * configure: Regenerate.
12445 * doc/tm.texi.in (targetm_common): Document.
12446 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
12447 * doc/tm.texi: Regenerate.
12448 * genhooks.c (hook_array): Also include common/common-target.def.
12449 * prefix.c (tm.h): Don't include.
12450 (common/common-target.h): Include.
12451 (ALWAYS_STRIP_DOTDOT): Don't define.
12452 (update_path): Use targetm_common.always_strip_dotdot instead of
12453 ALWAYS_STRIP_DOTDOT.
12454 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
12455
12456 2011-06-14 David Li <davidxl@google.com>
12457
12458 * passes.c (execute_function_todo): Remove TODO_dump_func.
12459 (execute_one_pass): Remove TODO_dump_func.
12460 (execute_function_dump): New function.
12461 * tree-vrp.c: Remove TODO_dump_func.
12462 * regrename.c: Remove TODO_dump_func.
12463 * fwprop.c: Remove TODO_dump_func.
12464 * tree-into-ssa.c: Remove TODO_dump_func.
12465 * tree-complex.c: Remove TODO_dump_func.
12466 * tracer.c: Remove TODO_dump_func.
12467 * tree-loop-distribution.c: Remove TODO_dump_func.
12468 * postreload-gcse.c: Remove TODO_dump_func.
12469 * postreload.c: Remove TODO_dump_func.
12470 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
12471 * tree-tailcall.c: Remove TODO_dump_func.
12472 * ipa-cp.c: Remove TODO_dump_func.
12473 * final.c: Remove TODO_dump_func.
12474 * tree-emutls.c: Remove TODO_dump_func.
12475 * omp-low.c: Remove TODO_dump_func.
12476 * tree-ssa-dse.c: Remove TODO_dump_func.
12477 * tree-ssa-uncprop.c: Remove TODO_dump_func.
12478 * auto-inc-dec.c: Remove TODO_dump_func.
12479 * reorg.c: Remove TODO_dump_func.
12480 * tree-ssa-copyrename.c: Remove TODO_dump_func.
12481 * tree-ssa-ccp.c: Remove TODO_dump_func.
12482 * compare-elim.c: Remove TODO_dump_func.
12483 * mode-switching.c: Remove TODO_dump_func.
12484 * modulo-sched.c: Remove TODO_dump_func.
12485 * tree-call-cdce.c: Remove TODO_dump_func.
12486 * cse.c: Remove TODO_dump_func.
12487 * web.c: Remove TODO_dump_func.
12488 * tree-stdarg.c: Remove TODO_dump_func.
12489 * lto-streamer-out.c: Remove TODO_dump_func.
12490 * tree-ssa-math-opts.c: Remove TODO_dump_func.
12491 * tree-ssa-dom.c: Remove TODO_dump_func.
12492 * tree-nrv.c: Remove TODO_dump_func.
12493 * loop-init.c: Remove TODO_dump_func.
12494 * gimple-low.c: Remove TODO_dump_func.
12495 * ipa-inline.c: Remove TODO_dump_func.
12496 * tree-ssa-sink.c: Remove TODO_dump_func.
12497 * jump.c: Remove TODO_dump_func.
12498 * ifcvt.c: Remove TODO_dump_func.
12499 * tree-ssa-loop.c: Remove TODO_dump_func.
12500 * recog.c: Remove TODO_dump_func.
12501 * dse.c: Remove TODO_dump_func.
12502 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
12503 * matrix-reorg.c: Remove TODO_dump_func.
12504 * tree-eh.c: Remove TODO_dump_func.
12505 * regmove.c: Remove TODO_dump_func.
12506 * function.c: Remove TODO_dump_func.
12507 * tree-vectorizer.c: Remove TODO_dump_func.
12508 * ipa-split.c: Remove TODO_dump_func.
12509 * gcse.c: Remove TODO_dump_func.
12510 * tree-if-conv.c: Remove TODO_dump_func.
12511 * init-regs.c: Remove TODO_dump_func.
12512 * tree-ssa-phiopt.c: Remove TODO_dump_func.
12513 * implicit-zee.c: Remove TODO_dump_func.
12514 * lower-subreg.c: Remove TODO_dump_func.
12515 * bt-load.c: Remove TODO_dump_func.
12516 * tree-dfa.c: Remove TODO_dump_func.
12517 * except.c: Remove TODO_dump_func.
12518 * emit-rtl.c: Remove TODO_dump_func.
12519 * store-motion.c: Remove TODO_dump_func.
12520 * cfgexpand.c: Remove TODO_dump_func.
12521 * tree-cfgcleanup.c: Remove TODO_dump_func.
12522 * cfgcleanup.c: Remove TODO_dump_func.
12523 * tree-ssa-pre.c: Remove TODO_dump_func.
12524 * tree-sra.c: Remove TODO_dump_func.
12525 * tree-mudflap.c: Remove TODO_dump_func.
12526 * tree-ssa-copy.c: Remove TODO_dump_func.
12527 * cfglayout.c: Remove TODO_dump_func.
12528 * tree-ssa-forwprop.c: Remove TODO_dump_func.
12529 * tree-ssa-dce.c: Remove TODO_dump_func.
12530 * ira.c: Remove TODO_dump_func.
12531 * tree-ssa.c: Remove TODO_dump_func.
12532 * integrate.c: Remove TODO_dump_func.
12533 * tree-optimize.c: Remove TODO_dump_func.
12534 * tree-ssa-phiprop.c: Remove TODO_dump_func.
12535 * tree-object-size.c: Remove TODO_dump_func.
12536 * combine.c: Remove TODO_dump_func.
12537 * bb-reorder.c: Remove TODO_dump_func.
12538 * cprop.c: Remove TODO_dump_func.
12539 * var-tracking.c: Remove TODO_dump_func.
12540 * tree-profile.c: Remove TODO_dump_func.
12541 * tree-vect-generic.c: Remove TODO_dump_func.
12542 * reg-stack.c: Remove TODO_dump_func.
12543 * sched-rgn.c: Remove TODO_dump_func.
12544 * tree-ssa-structalias.c: Remove TODO_dump_func.
12545 * tree-switch-conversion.c: Remove TODO_dump_func.
12546 * tree-cfg.c: Remove TODO_dump_func.
12547 * tree-ssa-reassoc.c: Remove TODO_dump_func.
12548 * combine-stack-adj.c: Remove TODO_dump_func.
12549 * dce.c: Remove TODO_dump_func.
12550 * tree-ssanames.c: Remove TODO_dump_func.
12551 * regcprop.c: Remove TODO_dump_func.
12552
12553 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
12554
12555 PR middle-end/47364
12556 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
12557 and properly handle result not in Pmode.
12558
12559 2011-06-14 Robert Millan <rmh@gnu.org>
12560
12561 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
12562 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
12563 `config/linux.h'.
12564
12565 * config/i386/kfreebsd-gnu64.h: New file.
12566 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
12567 with `i386/kfreebsd-gnu64.h'.
12568
12569 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
12570 (GNU_USER_LINK_EMULATION64): New macros.
12571 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
12572 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
12573 of hardcoding `elf_i386' and `elf_x86_64'.
12574
12575 2011-06-14 Nick Clifton <nickc@redhat.com>
12576
12577 PR target/49403
12578 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
12579
12580 PR target/49402
12581 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
12582
12583 2011-06-14 Jakub Jelinek <jakub@redhat.com>
12584
12585 PR fortran/49103
12586 * tree.h (DECL_NONSHAREABLE): Define.
12587 (struct tree_decl_common): Change decl_common_unused to
12588 decl_nonshareable_flag.
12589 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
12590 Ignore vars with DECL_NONSHAREABLE bit set.
12591 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
12592 on stores to automatic aggregate vars.
12593
12594 PR rtl-optimization/49390
12595 Revert:
12596 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
12597
12598 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
12599 MEM_ALIAS_SET.
12600
12601 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
12602 Tom de Vries <tom@codesourcery.com>
12603
12604 PR target/45098
12605 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
12606 Document changed semantics.
12607 (max_stmt_executions, max_stmt_executions_int): Declare.
12608 * tree-data-ref.c (estimated_loop_iterations)
12609 (estimated_loop_iterations_int): Move functions...
12610 * tree-ssa-loop-niter.c (estimated_loop_iterations)
12611 (estimated_loop_iterations_int): here.
12612 (record_estimate): Change nb_iterations_upper_bound and
12613 nb_iterations_estimate semantics.
12614 (max_stmt_executions, max_stmt_executions_int): New function.
12615 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
12616 (max_stmt_executions_tree): this.
12617 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
12618 estimated_loop_iterations_tree.
12619 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
12620 max_stmt_executions_int instead of estimated_loop_iterations_int.
12621 * predict.c (predict_loops): Idem.
12622 * tree-parloops.c (parallelize_loops): Idem.
12623 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
12624 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
12625 (init_omega_for_ddr_1): Idem.
12626 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
12627 (loop_prefetch_arrays): Idem
12628 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
12629 max_stmt_executions instead of estimated_loop_iterations.
12630 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
12631 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
12632 instead of nb_iterations_upper_bound.
12633
12634 2011-06-13 Jan Hubicka <jh@suse.cz>
12635
12636 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
12637
12638 2011-06-14 Richard Henderson <rth@redhat.com>
12639
12640 PR debug/48459
12641 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
12642 (based_loc_descr): Assert it's true.
12643 (compute_frame_pointer_to_fb_displacement): Set it, rather than
12644 aborting immediately.
12645
12646 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
12647 Mingfeng Wu <mingfeng@faraday-tech.com>
12648
12649 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
12650
12651 2011-06-13 Jan Hubicka <jh@suse.cz>
12652
12653 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
12654
12655 2011-06-13 Jan Hubicka <jh@suse.cz>
12656
12657 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
12658 similarly to DECL_COMDAT.
12659 * cgraphunit.c (cgraph_analyze_function): Likewise.
12660 * ipa.c (function_and_variable_visibility): Likewise.
12661
12662 2011-06-13 Jan Hubicka <jh@suse.cz>
12663
12664 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
12665 BINFO_VIRTUALS when streaming for ltrans unit.
12666
12667 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
12668
12669 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
12670 (movdi_internal64): Same.
12671
12672 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
12673
12674 PR target/44618
12675 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
12676 a set of similar patterns, where the MATCH_OPERAND for the function
12677 argument is replaced with individual references to hardware registers.
12678 (save_fpregs_<mode>): Ditto
12679 (restore_gpregs_<mode>): Ditto
12680 (return_and_restore_gpregs_<mode>): Ditto
12681 (return_and_restore_fpregs_<mode>): Ditto
12682 (return_and_restore_fpregs_aix_<mode>): Ditto
12683
12684 2011-06-13 Jan Hubicka <jh@suse.cz>
12685
12686 * ipa-utils.c (postorder_stack): New structure.
12687 (ipa_reverse_postorder): Handle aliases.
12688
12689 2011-06-13 Jan Hubicka <jh@suse.cz>
12690
12691 * ipa-inline.c (reset_edge_caches): Walk aliases.
12692 (update_caller_keys): Do not test inlinability of aliases.
12693 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
12694 (do_estimate_growth): Fix typo.
12695
12696 2011-06-13 Jan Hubicka <jh@suse.cz>
12697
12698 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
12699 (can_remove_node_now_p): ... here; handle same comdat groups.
12700 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
12701 (inline_call): Update use of can_remove_node_now_p.
12702
12703 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12704
12705 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
12706 condition to disallow non-identical memory locations.
12707 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
12708 preference to bit manipulation instructions.
12709
12710 2011-06-13 Jan Hubicka <jh@suse.cz>
12711
12712 * cgraph.c (cgraph_for_node_thunks_and_aliases,
12713 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
12714 (nonremovable_p): New function.
12715 (cgraph_can_remove_if_no_direct_calls_p): New function.
12716 (used_from_object_file_p): New functoin.
12717 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
12718 references from aliases.
12719 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
12720 * ipa-inline.c (check_caller_edge): New function.
12721 (want_inline_function_called_once_p): Use it; accept aliases called
12722 once, too.
12723 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
12724
12725 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12726
12727 PR target/48454
12728 * config/arm/neon.md (vec_pack_trunc): Set the lengths
12729 correctly for the case with Quad vectors.
12730
12731 2011-06-13 Jakub Jelinek <jakub@redhat.com>
12732 Ira Rosen <ira.rosen@linaro.org>
12733
12734 PR tree-optimization/49352
12735 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
12736 all, make sure loop_use_stmt after the loop is a def stmt of a used
12737 SSA_NAME that is the only one defined inside of the loop. Don't
12738 check for COND_EXPR and GIMPLE_BINARY_RHS.
12739 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
12740 check_reduction is true.
12741
12742 2011-06-11 Jan Hubicka <jh@suse.cz>
12743
12744 PR middle-end/49373
12745 * ipa.c (cgraph_externally_visible_p): Check resolution info.
12746
12747 2011-06-11 Jan Hubicka <jh@suse.cz>
12748
12749 PR middle-end/48836
12750 * ipa-inline-transform.c: Include tree-pass.h
12751 (inline_transform): Set TODO_update_ssa_only_virtuals.
12752 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
12753
12754 2011-06-11 Jan Hubicka <jh@suse.cz>
12755
12756 PR middle-end/49378
12757 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
12758 aliases and thunks.
12759
12760 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
12761
12762 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
12763 Take number of iterations to peel into account for equally frequent
12764 misalignment values.
12765
12766 2011-06-11 Jan Hubicka <jh@suse.cz>
12767
12768 * lto-streamer-out.c (produce_symtab): Stream out the newly
12769 represented aliases.
12770
12771 2011-06-11 Jan Hubicka <jh@suse.cz>
12772
12773 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
12774 varying args.
12775 (ipa_update_after_lto_read): Likewise.
12776 (ipa_write_node_info): Do not sream call_with_var_arguments.
12777 (ipa_read_node_info): Likewise.
12778
12779 2011-06-11 Jan Hubicka <jh@suse.cz>
12780
12781 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
12782
12783 2011-06-11 Jan Hubicka <jh@suse.cz>
12784
12785 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
12786 (lto_symtab_resolve_can_prevail_p): Likewise.
12787 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
12788 * cgraph.c (same_body_aliases_done): New global var.
12789 (cgraph_same_body_alias_1): Rename to ...
12790 (cgraph_create_function_alias): ... this one; reorg to new
12791 representation.
12792 (cgraph_same_body_alias): Use cgraph_create_function_alias;
12793 record references when asked to.
12794 (cgraph_add_thunk): Fix formating.
12795 (cgraph_get_node): Kill same body alias code.
12796 (cgraph_node_for_asm): Likewise.
12797 (cgraph_remove_same_body_alias): Remove.
12798 (cgraph_remove_node): Kill same body alias code.
12799 (cgraph_mark_address_taken_node): Mark also the aliased function
12800 as having address taken.
12801 (dump_cgraph_node): Dump same body aliases.
12802 (cgraph_for_node_thunks_and_aliases): Update for new alias
12803 representation.
12804 (cgraph_for_node_and_aliases): Likewise.
12805 * cgraph.h (same_body): Kll pointer.
12806 (same_body_alias): Update comment.
12807 (same_body_aliases_done): Declare.
12808 (cgraph_remove_same_body_alias): Remove declaration.
12809 (cgraph_create_function_alias): Declare.
12810 (cgraph_process_same_body_aliases): Declare.
12811 (cgraph_function_with_gimple_body_p): Check for alias.
12812 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
12813 (cgraph_alias_aliased_node): New function.
12814 (cgraph_function_node): Update for new aliases.
12815 (cgraph_function_or_thunk_node): Likewise.
12816 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
12817 (inline_call): Remove dead aliases.
12818 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
12819 name hack for same body aliases.
12820 (clone_of_p): Look through aliases.
12821 (verify_cgraph_node): Verify aliases.
12822 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
12823 (cgraph_process_same_body_aliases): New function.
12824 (process_function_and_variable_attributes): Disable weakref warning on
12825 alias.
12826 (cgraph_analyze_functions): Handle aliases.
12827 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
12828 (assemble_thunks): Rename to ...
12829 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
12830 (cgraph_expand_function): Remove alias output code.
12831 (cgraph_output_in_order): Skip aliases.
12832 (cgraph_preserve_function_body_p): Aliases don't need preserving.
12833 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
12834 (ipa_record_reference): Do not assert on alias references.
12835 (ipa_ref_has_aliases_p): New function.
12836 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
12837 (ipa_ref_has_aliases_p): Declare.
12838 * lto-cgraph.c (lto_output_node): Handle aliases.
12839 (input_node): Likewise.
12840 * lto-streamer-out.c (lto_output): Skip aliases.
12841 (produce_symtab): Kill same_body_alias code.
12842 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
12843 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
12844 * ipa-inline.c (update_caller_keys): Walk aliases.
12845 (inline_small_functions): Fix thinko in previous patch.
12846 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
12847 (function_and_variable_visibility): Do not walk same body aliases.
12848 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
12849 (ipa_pta_execute): Use it.
12850
12851 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
12852
12853 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
12854 (*vec_dupv2df): Rename from vec_dupv2df.
12855 (vec_dupv2df): New expander.
12856
12857 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
12858
12859 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
12860
12861 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
12862
12863 * config/i386/i386.md: Use default value in "isa" attribute.
12864 * config/i386/sse.md: Ditto.
12865 * config/i386/mmx.md: Ditto.
12866
12867 2011-06-10 Wei Guozhi <carrot@google.com>
12868
12869 PR target/45335
12870 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
12871 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
12872 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
12873 related peephole2.
12874 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
12875 related peephole2.
12876 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
12877 (arm_legitimate_ldrd_p): New prototype.
12878 (arm_output_ldrd): New prototype.
12879 * config/arm/arm.c (arm_check_ldrd_operands): New function.
12880 (arm_legitimate_ldrd_p): New function.
12881 (arm_output_ldrd): New function.
12882
12883 2011-06-10 David Li <davidxl@google.com>
12884
12885 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
12886 * passes.c (passr_eq): New function.
12887 (create_pass_tab): New function.
12888 (pass_traverse): New function.
12889 (dump_one_pass): New function.
12890 (dump_pass_list): New function.
12891 (dump_passes): New function.
12892
12893 2011-06-10 Jan Hubicka <jh@suse.cz>
12894
12895 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
12896 setting the nothrow flag.
12897 * ipa-reference.c (propagate): Skip aliases.
12898 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
12899 (propagate_nothrow): Skip aliases; do not update cgraph.
12900 (local_pure_const): Do not update cgraph.
12901 * tree-profile.c (tree_profiling): Do fixup_cfg.
12902
12903 2011-06-10 Jan Hubicka <jh@suse.cz>
12904
12905 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
12906 (cgraph_local_node_p): ... here; handle aliases.
12907 (has_addr_references_p): Break out from ...;
12908 (cgraph_remove_unreachable_nodes) ... here.
12909
12910 2011-06-10 Jan Hubicka <jh@suse.cz>
12911
12912 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
12913 * common.opt (flag_inline_functions_called_once): Do not
12914 initialize to 1.
12915
12916 2011-06-10 Jan Hubicka <jh@suse.cz>
12917
12918 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
12919 (ipcp_initialize_node_lattices): Do not deal with aliases;
12920 Do not try to propagate through thunks.
12921 (ipcp_change_tops_to_bottom): Do not deal with aliases.
12922
12923 2011-06-10 Jan Hubicka <jh@suse.cz>
12924
12925 * ipa-prop.c (ipa_write_node_info): Stream jump functions
12926 for indirect calls.
12927 (ipa_read_node_info): Likewise.
12928
12929 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12930
12931 PR lto/49302
12932 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
12933 (build_and_insert_call): Likewise.
12934 (build_and_insert_ref): New.
12935 (gimple_expand_builtin_pow): Minor cleanup.
12936 (gimple_expand_builtin_cabs): New.
12937 (execute_cse_sincos): Add case for BUILT_IN_CABS.
12938
12939 2011-06-10 Jan Hubicka <jh@suse.cz>
12940
12941 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
12942 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
12943 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
12944 (ipcp_propagate_stage): Skip aliases when propagating.
12945 (ipcp_need_redirect_p): Skip aliases.
12946 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
12947 collect_callers_of_node.
12948 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
12949 for aliases.
12950 (ipa_compute_jump_functions): Look through aliases.
12951
12952 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12953
12954 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
12955
12956 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
12957
12958 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
12959 Adjust comments.
12960 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
12961
12962 2011-06-10 Jan Hubicka <jh@suse.cz>
12963
12964 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
12965 Update call of gimple_get_virt_method_for_binfo.
12966 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
12967 refuse_thunks parameter.
12968 (gimple_fold_call): Update.
12969 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
12970
12971 2011-06-10 Jan Hubicka <jh@suse.cz>
12972
12973 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
12974 (not_all_callers_have_enough_arguments_p): ... this one; turn into
12975 worker for cgraph_for_node_and_aliases.
12976 (convert_callers_for_node): Break out from ...
12977 (convert_callers): ... here.
12978 (modify_function): Use collect_callers_of_node.
12979 (ipa_early_sra): Use cgraph_for_node_and_aliases.
12980
12981 2011-06-10 Richard Guenther <rguenther@suse.de>
12982
12983 PR tree-optimization/49361
12984 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
12985 when not already in gimple form.
12986
12987 2011-06-10 Richard Guenther <rguenther@suse.de>
12988
12989 PR bootstrap/49344
12990 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
12991 FOR_EACH_PHI_OR_STMT_USE.
12992
12993 2011-06-10 Jan Hubicka <jh@suse.cz>
12994
12995 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
12996 (clone_inlined_nodes): ... here.
12997 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
12998 to real destination prior inlining.
12999 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
13000 can_early_inline_edge_p, want_early_inline_function_p,
13001 want_early_inline_function_p, want_inline_small_function_p,
13002 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
13003 edge_badness, update_all_callee_keys, lookup_recursive_calls,
13004 add_new_edges_to_heap, inline_small_functions, flatten_function,
13005 inline_always_inline_functions, early_inline_small_functions): Use
13006 cgraph_function_or_thunk_node.
13007 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
13008 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
13009 (do_estimate_edge_growth_1): Break out from ...
13010 (do_estimate_growth) ... here; walk aliases.
13011 (inline_generate_summary): Skip aliases.
13012
13013 2011-06-10 Richard Guenther <rguenther@suse.de>
13014
13015 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
13016 forward when combining, visit inserted stmts when a stmt was changed.
13017
13018 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
13019
13020 * tree.h (error_operand_p): Add.
13021 * dbxout.c (dbxout_type_fields): Use the latter.
13022 * c-decl.c (add_stmt): Likewise.
13023 * gimplify.c (omp_add_variable, omp_notice_variable,
13024 gimplify_scan_omp_clauses): Likewise.
13025
13026 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
13027
13028 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
13029 when a value is actually passed in regs.
13030
13031 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
13032 Laurent Rougé <laurent.rouge@menta.fr>
13033
13034 * doc/invoke.texi (SPARC options): Add -mflat.
13035 * config/sparc/sparc.opt: Likewise.
13036 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
13037 (sparc_flat_expand_prologue): Declare.
13038 (sparc_flat_expand_epilogue): Likewise.
13039 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
13040 (CPP_ENDIAN_SPEC): Replace with...
13041 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
13042 (CPP_SPEC): Adjust to above change.
13043 (EXTRA_SPECS): Likewise.
13044 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
13045 (INCOMING_REGNO): Likewise.
13046 (OUTGOING_REGNO): Likewise.
13047 (LOCAL_REGNO): Likewise.
13048 (SETUP_FRAME_ADDRESSES): Likewise.
13049 (FIXED_REGISTERS): Set 0 for %fp.
13050 (CALL_USED_REGISTERS): Likewise.
13051 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
13052 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
13053 (RETURN_ADDR_REGNUM): Define.
13054 (RETURN_ADDR_RTX): Use it.
13055 (INCOMING_RETURN_ADDR_REGNUM): Define.
13056 (INCOMING_RETURN_ADDR_RTX): Use it.
13057 (DWARF_FRAME_RETURN_COLUMN): Likewise.
13058 (EH_RETURN_REGNUM): Define.
13059 (EH_RETURN_STACKADJ_RTX): Use it.
13060 (EH_RETURN_HANDLER_RTX): Delete.
13061 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
13062 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
13063 Delete.
13064 (struct machine_function): Add frame_size, apparent_frame_size,
13065 frame_base_reg, frame_base_offset, n_global_fp_regs and
13066 save_local_in_regs_p fields.
13067 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
13068 sparc_frame_base_offset, sparc_n_global_fp_regs,
13069 sparc_save_local_in_regs_p): New macros.
13070 (sparc_option_override): Error out if -fcall-saved-REG is specified
13071 for Out registers.
13072 (eligible_for_restore_insn): Fix formatting.
13073 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
13074 (eligible_for_sibcall_delay): Likewise.
13075 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
13076 (sparc_legitimate_address_p): Adjust to above change.
13077 (save_global_or_fp_reg_p): New predicate.
13078 (return_addr_reg_needed_p): Likewise.
13079 (save_local_or_in_reg_p): Likewise.
13080 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
13081 (SORR_SAVE, SORR_RESTORE): Delete.
13082 (sorr_pred_t): New typedef.
13083 (sorr_act_t): New enum.
13084 (save_or_restore_regs): Rename to...
13085 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
13086 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
13087 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
13088 mechanism. Add CFI information for double-word saves in 32-bit mode.
13089 (emit_adjust_base_to_offset): New function extracted from...
13090 (emit_save_or_restore_regs): ...this. Rename the rest to...
13091 (emit_save_or_restore_regs_global_fp_regs): ...this.
13092 (emit_save_or_restore_regs_local_in_regs): New function.
13093 (gen_create_flat_frame_[123]): New functions.
13094 (sparc_expand_prologue): Use SIZE local variable. Adjust.
13095 (sparc_flat_expand_prologue): New function.
13096 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
13097 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
13098 (sparc_flat_expand_epilogue): New function.
13099 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
13100 (output_return): Likewise.
13101 (output_sibcall): Likewise.
13102 (sparc_output_mi_thunk): Likewise.
13103 (sparc_frame_pointer_required): Likewise.
13104 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
13105 function optimization.
13106 * config/sparc/sparc.md (flat): New attribute.
13107 (prologue): Add TARGET_FLAT handling.
13108 (save_register_window): Disable if TARGET_FLAT.
13109 (create_flat_frame_[123]): New patterns.
13110 (epilogue): Add TARGET_FLAT handling.
13111 (sibcall_epilogue): Likewise.
13112 (eh_return): New expander.
13113 (eh_return_internal): New insn and splitter.
13114 (return_internal): Add TARGET_FLAT handling.
13115 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
13116 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
13117 (nonlocal_goto): Add TARGET_FLAT handling.
13118 * config/sparc/t-elf: Add -mflat multilib.
13119 * config/sparc/t-leon: Likewise.
13120
13121 2011-06-10 Jan Hubicka <jh@suse.cz>
13122
13123 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
13124 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
13125 (self_recursive_p): Use cgraph_function_node.
13126 (propagate_pure_const): Likewise.
13127 (propagate_nothrow): Likewise.
13128 * ipa-reference.c (ipa_reference_get_not_read_global): Use
13129 cgraph_function_node.
13130 (propagate_bits): Likewise.
13131 (propagate): Likewise.
13132
13133 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13134 Richard Earnshaw <rearnsha@arm.com>
13135
13136 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
13137 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
13138 (*thumb2_movdi_vfp): Delete.
13139 (*arm_movdi_vfp_cortexa8): Delete.
13140 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
13141 (*movdi_vfp_cortexa8): Likewise.
13142
13143 2011-06-10 Richard Guenther <rguenther@suse.de>
13144
13145 * stor-layout.c (initialize_sizetypes): Give names to all
13146 sizetype kinds.
13147
13148 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
13149
13150 PR tree-optimization/49318
13151 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
13152 irrelevant pattern statements.
13153
13154 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
13155
13156 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
13157
13158 PR bootstrap/49354
13159 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
13160 to last assignment.
13161
13162 2011-06-09 Jan Hubicka <jh@suse.cz>
13163
13164 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
13165 do not recompute reachable flag.
13166 (cgraph_finalize_function, cgraph_analyze_functions): Set
13167 redefined_extern_inline here.
13168
13169 2011-06-09 Jan Hubicka <jh@suse.cz>
13170
13171 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
13172 (cgraph_only_called_directly_p): ... this one; bring offline.
13173 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
13174 varpool_used_from_object_file_p): Drop names from the declaratoin.
13175 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
13176 collect_callers_of_node): New.
13177 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
13178 (cgraph_edge_recursive_p): Use cgraph_function_node.
13179 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
13180 (cgraph_node_cannot_be_local_p_1): Break out from ...
13181 (cgraph_node_can_be_local_p): ... here; walk aliases.
13182 (cgraph_for_node_thunks_and_aliases): New function.
13183 (cgraph_for_node_and_aliases): New function.
13184 (cgraph_make_node_local_1): Break out from ...
13185 (cgraph_make_node_local) ... here; use
13186 cgraph_for_node_thunks_and_aliases.
13187 (cgraph_set_nothrow_flag_1): Break out from ...
13188 (cgraph_set_nothrow_flag) ... here;
13189 use cgraph_for_node_thunks_and_aliases.
13190 (cgraph_set_const_flag_1): Break out from ...
13191 (cgraph_set_const_flag) ... here;
13192 use cgraph_for_node_thunks_and_aliases.
13193 (cgraph_set_pure_flag_1): Break out from ...
13194 (cgraph_set_pure_flag) ... here;
13195 use cgraph_for_node_thunks_and_aliases.
13196 (cgraph_propagate_frequency_1): Break out from ...
13197 (cgraph_propagate_frequency) ... here; use
13198 cgraph_for_node_thunks_and_aliases.
13199 (cgraph_used_from_object_file_p): Do not care about aliases.
13200 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
13201 New functions.
13202 (collect_callers_of_node_1, collect_callers_of_node): New functions.
13203
13204 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
13205
13206 PR rtl-optimization/49154
13207 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
13208 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
13209 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
13210 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
13211 * config/cris/cris.h (cris_register_move_cost): Remove
13212 !TARGET_V32 code. Tweak comments.
13213
13214 2011-06-09 Jan Hubicka <jh@suse.cz>
13215
13216 * cgraphbuild.c (record_eh_tables): Mark personality function as having
13217 address taken.
13218
13219 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
13220
13221 PR rtl-optimization/49154
13222 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
13223 is a matching slot in the hashtable, assign it to classes_ptr.
13224
13225 PR rtl-optimization/49154
13226 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
13227 register classes.
13228 * doc/tm.texi: Regenerate.
13229
13230 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
13231
13232 PR target/49307
13233 * config/sh/sh.md (UNSPEC_CHKADD): New.
13234 (chk_guard_add): New define_insn_and_split.
13235 (symGOT_load): Use chk_guard_add instead of blockage.
13236
13237 2011-06-09 Kai Tietz <ktietz@redhat.com>
13238
13239 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
13240
13241 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
13242
13243 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
13244
13245 2011-06-09 Wei Guozhi <carrot@google.com>
13246
13247 PR target/46975
13248 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
13249 (peephole2 for conditional move): Generate 16 bit instructions.
13250
13251 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
13252
13253 * config/i386/i386.md (*movdi_internal_rex64): Merge
13254 alternatives 6 and 8.
13255
13256 2011-06-09 David Li <davidxl@google.com>
13257
13258 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
13259 * passes.c (passr_eq): New function.
13260 (create_pass_tab): New function.
13261 (pass_traverse): New function.
13262 (dump_one_pass): New function.
13263 (dump_pass_list): New function.
13264 (dump_passes): New function.
13265
13266 2011-06-09 David Li <davidxl@google.com>
13267
13268 * tree-complex.c (tree_lower_complex): Gate cleanup.
13269 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
13270 (execute_optimize_stdarg): Ditto.
13271 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
13272 (execute_cleanup_eh_1): Ditto.
13273 (execute_cleanup_eh): Ditto.
13274 * gcse.c (gate_rtl_pre): Ditto.
13275 (execute_rtl_pre): Ditto.
13276 * except.c (finish_eh_generation): Ditto.
13277 (convert_to_eh_region_ranges): Ditto.
13278 * cprop.c (one_cprop_pass): Ditto.
13279
13280 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
13281
13282 PR target/48673
13283 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
13284 in all basic blocks.
13285
13286 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13287
13288 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
13289 (HAVE_ENABLE_EXECUTE_STACK): Define.
13290 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
13291 (HAVE_ENABLE_EXECUTE_STACK): Define.
13292 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
13293 (HAVE_ENABLE_EXECUTE_STACK): Define.
13294 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
13295 (ENABLE_EXECUTE_STACK): Remove.
13296 (HAVE_ENABLE_EXECUTE_STACK): Define.
13297 [IN_LIBGCC2]: Don't include <windows.h>.
13298 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
13299 (HAVE_ENABLE_EXECUTE_STACK): Define.
13300 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
13301 (HAVE_ENABLE_EXECUTE_STACK): Define.
13302 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
13303 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
13304 (HAVE_ENABLE_EXECUTE_STACK): Define.
13305 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
13306 (HAVE_ENABLE_EXECUTE_STACK): Define.
13307 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
13308 (HAVE_ENABLE_EXECUTE_STACK): Define.
13309 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
13310 (HAVE_ENABLE_EXECUTE_STACK): Define.
13311 * config/alpha/alpha.c (alpha_trampoline_init): Test
13312 HAVE_ENABLE_EXECUTE_STACK.
13313 * config/i386/i386.c (ix86_trampoline_init): Likewise.
13314 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
13315 (sparc64_initialize_trampoline): Likewise.
13316 * libgcc2.c [L_enable_execute_stack]: Remove.
13317 * system.h (ENABLE_EXECUTE_STACK): Poison.
13318 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
13319 * doc/tm.texi: Regenerate.
13320 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
13321
13322 2011-06-09 Jakub Jelinek <jakub@redhat.com>
13323
13324 PR middle-end/49308
13325 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
13326 variable. After resetting and rescanning insn continue with previous
13327 statement.
13328
13329 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13330
13331 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
13332 (gcc_cv_ld_hidden): Likewise.
13333 * configure: Regenerate.
13334 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
13335 (ix86_stack_protect_fail): Mark unused.
13336 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
13337 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
13338 [TARGET_MACHO]: Don't define.
13339 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
13340 (TARGET_STACK_PROTECT_FAIL): Likewise.
13341 (rs6000_stack_protect_fail): Mark unused.
13342 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
13343 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
13344
13345 2011-06-08 Andi Kleen <ak@linux.intel.com>
13346
13347 * varasm.c (get_section): Print location of other conflict
13348 for section conflicts.
13349
13350 2011-06-08 Andi Kleen <ak@linux.intel.com>
13351
13352 * config/i386/driver-i386.c (host_detect_local_cpu):
13353 Add model 0x2d Intel CPU.
13354
13355 2011-06-08 Andi Kleen <ak@linux.intel.com>
13356
13357 * reginfo.c (global_regs_decl): Add.
13358 (globalize_reg): Add decl parameter. Compute location. Pass location
13359 to warnings and add inform. Store decl in global_regs_decl.
13360 * rtl.h (globalize_reg): Update prototype.
13361 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
13362
13363 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
13364
13365 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
13366
13367 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
13368
13369 PR target/49305
13370 * config/sh/predicates.md (general_movsrc_operand): Check
13371 mode for memory with indexed address for QI and HImode.
13372 (general_movdst_operand): Likewise.
13373
13374 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
13375
13376 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
13377
13378 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
13379
13380 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
13381 (num_ssa_operands): Likewise.
13382 (op_iter_init_phiuse): Forward-declare.
13383 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
13384
13385 2011-06-08 Nick Clifton <nickc@redhat.com>
13386
13387 * doc/invoke.texi (ARM Options): Update description of
13388 -mthumb-interwork.
13389
13390 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
13391
13392 * config/i386/driver-i386.c (host_detect_local_cpu): Support
13393 unknown Intel family 0x6 CPUs.
13394
13395 2011-06-08 Martin Jambor <mjambor@suse.cz>
13396
13397 * tree-sra.c (mark_rw_status): Removed.
13398 (analyze_access_subtree): New parameter parent instead of
13399 mark_read and mark_write, propagate from that.
13400
13401 2011-06-08 Julian Brown <julian@codesourcery.com>
13402
13403 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
13404 for double-precision helper functions in hard-float mode if only
13405 single-precision arithmetic is supported in hardware.
13406
13407 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
13408
13409 PR rtl-optimization/49303
13410 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
13411 code_motion_path_driver returned 0 or 1.
13412 (sel_region_finish): Clear h_d_i_d.
13413
13414 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
13415
13416 * config/sh/sh.c (prepare_move_operands): Set pic register
13417 appropriately for global and local dynamic tls models even
13418 if flag_pic is unset.
13419
13420 2011-06-07 Jason Merrill <jason@redhat.com>
13421
13422 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
13423
13424 2011-06-07 Xinliang David Li <davidxl@google.com>
13425 * passes.c (enable_disable_pass): Handle assembler name.
13426 (is_pass_explicitly_enabled_or_disabled): Ditto.
13427
13428 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13429
13430 PR tree-optimization/48497
13431 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
13432
13433 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13434
13435 PR tree-optimization/46728
13436 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
13437 to use gimple_val_nonnegative_real_p.
13438 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
13439 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
13440
13441 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
13442
13443 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
13444
13445 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
13446
13447 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
13448 constant vectors.
13449
13450 2011-06-07 Richard Guenther <rguenther@suse.de>
13451
13452 * stor-layout.c (initialize_sizetypes): Initialize all
13453 sizetypes based on target definitions.
13454 (set_sizetype): Remove.
13455 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
13456 * tree.h (set_sizetype): Remove.
13457
13458 2011-06-07 Nick Clifton <nickc@redhat.com>
13459
13460 * config.gcc: Unify V850 architecture options and add support for
13461 newer V850 architectures.
13462 * config/v850/t-v850e: Delete.
13463
13464 2011-06-07 Richard Guenther <rguenther@suse.de>
13465
13466 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
13467 Call set_sizetype from here.
13468
13469 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
13470
13471 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
13472 (*maddhisi4tb, *maddhisi4tt): New define_insns.
13473
13474 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
13475 Andrew Stubbs <ams@codesourcery.com>
13476
13477 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
13478 multiplies.
13479 * doc/md.texi (Canonicalization of Instructions): Document widening
13480 multiply canonicalization.
13481
13482 2011-06-07 Jakub Jelinek <jakub@redhat.com>
13483
13484 PR gcov-profile/49299
13485 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
13486
13487 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
13488
13489 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
13490 a pointer.
13491 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
13492 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
13493 vect_recog_pow_pattern): Likewise.
13494 (vect_pattern_recog_1): Remove declaration.
13495 (widened_name_p): Remove declaration. Add new argument to specify
13496 whether to check that both types are either signed or unsigned.
13497 (vect_recog_widen_mult_pattern): Update documentation. Handle
13498 unsigned patterns and multiplication by constants.
13499 (vect_pattern_recog_1): Update vect_recog_func references. Use
13500 statement information from the statement returned from pattern
13501 detection functions.
13502 (vect_pattern_recog): Update vect_recog_func reference.
13503 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
13504 multiplication by a constant use the type of the other operand.
13505
13506 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13507
13508 PR rtl-optimization/49145
13509 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
13510
13511 2011-06-06 Jakub Jelinek <jakub@redhat.com>
13512
13513 PR debug/49262
13514 * dwarf2out.c (native_encode_initializer): Decrement count in each
13515 iteration.
13516
13517 PR debug/49294
13518 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
13519 non-MODE_INT modes.
13520
13521 PR c++/49264
13522 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
13523 if stmt folded into nothing.
13524 * tree-inline.c (fold_marked_statements): If a builtin at the end of
13525 a bb folded into nothing, just update cgraph edges and move to next bb.
13526 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
13527 to be NULL. Don't compute count and frequency if new_call is NULL.
13528
13529 2011-06-04 Diego Novillo <dnovillo@google.com>
13530
13531 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
13532 (cgraph.o): Likewise.
13533 (cgraphunit.o): Likewise.
13534 * cgraphunit.c: Include lto-streamer.h
13535 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
13536 if LTO is enabled.
13537 * lto-streamer-in.c (unpack_value_fields): Call
13538 streamer_hooks.unpack_value_fields if set.
13539 (lto_materialize_tree): For unhandled nodes, first try to
13540 call lto_streamer_hooks.alloc_tree, if it exists.
13541 (lto_input_ts_decl_common_tree_pointers): Move reading of
13542 DECL_INITIAL to lto_streamer_read_tree.
13543 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
13544 (lto_streamer_read_tree): New.
13545 (lto_reader_init): Rename from lto_init_reader.
13546 Move initialization code to lto/lto.c.
13547 * lto-streamer-out.c (pack_value_fields): Call
13548 streamer_hooks.pack_value_fields if set.
13549 (lto_output_tree_ref): For tree nodes that are not normally indexable,
13550 call streamer_hooks.indexable_with_decls_p before giving up.
13551 (lto_output_ts_decl_common_tree_pointers): Move handling
13552 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
13553 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
13554 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
13555 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
13556 (lto_streamer_write_tree): New.
13557 (lto_output): Call lto_streamer_init directly.
13558 (lto_writer_init): Remove.
13559 * lto-streamer.c (streamer_hooks): New.
13560 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
13561 instead of lto_preload_common_nodes.
13562 (lto_is_streamable): Move from lto-streamer.h
13563 (lto_streamer_hooks_init): New.
13564 (streamer_hooks): New.
13565 (streamer_hooks_init): New.
13566 * lto-streamer.h (struct output_block): Forward declare.
13567 (struct lto_input_block): Likewise.
13568 (struct data_in): Likewise.
13569 (struct bitpack_d): Likewise.
13570 (struct streamer_hooks): Declare.
13571 (streamer_hooks): Declare.
13572 (lto_streamer_hooks_init): Declare.
13573 (lto_streamer_write_tree): Declare.
13574 (lto_streamer_read_tree): Declare.
13575 (streamer_hooks_init): Declare.
13576 (lto_is_streamable): Move to lto-streamer.c
13577
13578 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13579
13580 * longlong.h (smul_ppmm): The resulting register pair contains the
13581 higher order word first.
13582
13583 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13584
13585 PR tree-optimization/46728
13586 * builtins.c (powi_table): Remove.
13587 (powi_lookup_cost): Remove.
13588 (powi_cost): Remove.
13589 (expand_powi_1): Remove.
13590 (expand_powi): Remove.
13591 (expand_builtin_pow_root): Remove.
13592 (expand_builtin_pow): Remove.
13593 (expand_builtin_powi): Eliminate handling of constant exponent.
13594 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
13595
13596 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13597
13598 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
13599
13600 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13601
13602 * dce.c (reset_unmarked_insns_debug_uses): New.
13603 (delete_unmarked_insns): Skip debug insns.
13604 (prescan_insns_for_dce): Likewise.
13605 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
13606 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
13607 active reg can be found.
13608 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
13609 (convert_regs_1): Use it.
13610
13611 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13612
13613 * tree-pretty-print.c (dump_function_header): Add flags.
13614 Don't dump decl_uid with nouid.
13615 * tree-pretty-print.h (dump_function_header): Adjust.
13616 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
13617 * passes.c (pass_init_dump_file): Pass dump_flags on.
13618 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
13619
13620 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13621
13622 PR bootstrap/49270
13623 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
13624
13625 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
13626
13627 PR tree-optimization/49243
13628 * calls.c (setjmp_call_p): Also check if fndecl has the
13629 returns_twice attribute.
13630
13631 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13632
13633 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
13634 -ffast-math etc.
13635
13636 2011-06-06 Richard Henderson <rth@redhat.com>
13637 Georg-Johann Lay <avr@gjlay.de>
13638
13639 PR target/42210
13640 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
13641 New predicates.
13642 * config/avr/avr.md ("insv"): New insn expander.
13643 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
13644 "*insv.not.io", "*insv.reg"): New insns.
13645
13646 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
13647
13648 PR target/49285
13649 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
13650 to nonimmediate_operand from memory_operand for the operand that is to
13651 be forced to memory by the expander. Lose the constraints.
13652
13653 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
13654
13655 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
13656 EH return when delayed branches are disabled.
13657
13658 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
13659
13660 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
13661 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
13662 calculation.
13663 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
13664 Simplify MODE_V1DF and MODE_V2SF handling.
13665 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
13666 Simplify MODE_SF handling.
13667
13668 2011-06-04 Jan Hubicka <jh@suse.cz>
13669
13670 PR tree-optimization/48893
13671 PR tree-optimization/49091
13672 PR tree-optimization/49179
13673 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
13674 Bounds check.
13675
13676 2011-06-04 Jan Hubicka <jh@suse.cz>
13677
13678 PR lto/48954
13679 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
13680 bitmaps.
13681
13682 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
13683
13684 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
13685
13686 2011-06-04 Jakub Jelinek <jakub@redhat.com>
13687
13688 PR target/49281
13689 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
13690 to be strictly smaller than 1 << shiftcount.
13691
13692 2011-06-04 Jan Hubicka <jh@suse.cz>
13693
13694 PR tree-optimize/48929
13695 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
13696 of empty predicate.
13697
13698 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
13699
13700 PR debug/48333
13701 * calls.c (emit_call_1): Prefer the __builtin declaration of
13702 builtin functions.
13703
13704 2011-06-03 Diego Novillo <dnovillo@google.com>
13705
13706 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
13707 (lto_input_tree_pointers): Likewise.
13708 * lto-streamer-out.c (pack_value_fields): Likewise.
13709 (lto_output_tree_pointers): Likewise.
13710 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
13711 and OPTIMIZATION_NODE.
13712
13713 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13714
13715 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
13716 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
13717 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
13718 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
13719 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
13720 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
13721 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
13722 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
13723 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
13724 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
13725 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
13726 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
13727 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
13728 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
13729 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
13730 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
13731 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
13732 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
13733 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
13734 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
13735 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
13736 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
13737 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
13738 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
13739 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
13740 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
13741 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
13742 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
13743 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
13744 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
13745 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
13746 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
13747 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
13748 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
13749 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
13750 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
13751 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
13752 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
13753 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
13754 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
13755 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
13756 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
13757 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
13758 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
13759 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
13760 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
13761 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
13762 * system.h (MD_UNWIND_SUPPORT): Poison.
13763 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
13764 * doc/tm.texi: Regenerate.
13765 * unwind-dw2.c: Include md-unwind-support.h instead of
13766 MD_UNWIND_SUPPORT.
13767 * config/ia64/unwind-ia64.c: Likewise.
13768 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
13769
13770 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
13771
13772 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
13773
13774 2011-06-03 Richard Henderson <rth@redhat.com>
13775 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13776
13777 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
13778 (sigill_hdlr): Correct insn, insn size.
13779 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
13780
13781 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13782
13783 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
13784 t-slibgcc-dummy.
13785 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
13786 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
13787 * config/mips/t-iris: Remove.
13788 * config/mips/t-irix6: New file.
13789 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
13790
13791 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13792
13793 * Makefile.in (LIB2ADDEHDEP): Remove.
13794 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
13795 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
13796 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
13797 * config/t-darwin (LIB2ADDEHDEP): Remove.
13798 * config/t-freebsd (LIB2ADDEHDEP): Remove.
13799 * config/t-linux (LIB2ADDEHDEP): Remove.
13800
13801 2011-06-03 Diego Novillo <dnovillo@google.com>
13802
13803 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
13804 (lto_register_var_decl_in_symtab): Likewise.
13805 (lto_register_function_decl_in_symtab): Likewise.
13806 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
13807 logic to uniquify_nodes.
13808
13809 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13810
13811 * config/alpha/t-osf5: Remove.
13812 * config/alpha/t-osf-pthread: Remove.
13813 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
13814 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
13815
13816 2011-06-03 Julian Brown <julian@codesourcery.com>
13817
13818 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
13819 (strongarm1110): Use strongarm tuning.
13820 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
13821 * config/arm/arm.c (arm_strongarm_tune): New.
13822 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
13823 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
13824 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
13825 setting, using previous defaults or 1 for Cortex-A5.
13826 (arm_option_override): Set max_insns_skipped from current tuning.
13827
13828 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
13829
13830 * doc/install.texi (Options specification): Document --with-specs.
13831
13832 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13833
13834 * config/arm/neon.md (orndi3_neon): Actually split it.
13835
13836 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
13837
13838 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
13839 * var-tracking.c (reverse_op): Limite recurse depth to 5.
13840
13841 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
13842
13843 PR debug/47590
13844 * target.def (delay_sched2, delay_vartrack): New.
13845 * doc/tm.texi.in: Update.
13846 * doc/tm.texi: Rebuild.
13847 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
13848 * var-tracking.c (gate_handle_var_tracking): Likewise.
13849 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
13850 (bfin_flag_var_tracking): Drop.
13851 (output_file_start): Don't save and override flag_var_tracking.
13852 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
13853 (bfin_reorg): Test original variables.
13854 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13855 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
13856 (ia64_flag_var_tracking): Drop.
13857 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13858 (ia64_file_start): Don't save and override flag_var_tracking.
13859 (ia64_override_options_after_change): Ditto
13860 flag_schedule_insns_after_reload.
13861 (ia64_reorg): Test original variables.
13862 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
13863 (picochip_flag_var_tracking): Drop.
13864 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13865 (picochip_option_override): Don't save and override
13866 flag_schedule_insns_after_reload.
13867 (picochip_asm_file_start): Ditto flag_var_tracking.
13868 (picochip_reorg): Test original variables.
13869 * config/spu/spu.c (spu_flag_var_tracking): Drop.
13870 (TARGET_DELAY_VARTRACK): Define.
13871 (spu_var_tracking): New.
13872 (spu_machine_dependent_reorg): Call it.
13873 (asm_file_start): Don't save and override flag_var_tracking.
13874
13875 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
13876
13877 PR target/49163
13878 * config/sh/predicates.md (general_movsrc_operand): Return 0
13879 for memory and memory subreg of which address is an invalid
13880 indexed address for QI and HImode.
13881 (general_movdst_operand): Likewise.
13882
13883 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
13884
13885 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
13886 edges only, when there is a non-local label in the function.
13887 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
13888
13889 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
13890
13891 * config/i386/constraints.md (Y3): New register constraint.
13892 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
13893 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
13894 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
13895 *sse2_interleave_lowv2df.
13896
13897 2011-06-02 Julian Brown <julian@codesourcery.com>
13898
13899 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
13900 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
13901 (arm_cortex_a5_tune): New.
13902
13903 2011-06-02 Julian Brown <julian@codesourcery.com>
13904
13905 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
13906 * config/arm/arm.c (arm_default_branch_cost): New.
13907 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
13908 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
13909 (arm_fa726_tune): Set branch_cost field using
13910 arm_default_branch_cost.
13911 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
13912 current_tune structure.
13913 * dojump.c (tm_p.h): Include file.
13914
13915 2011-06-02 Julian Brown <julian@codesourcery.com>
13916
13917 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
13918 tuning.
13919 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
13920 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
13921 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
13922 field.
13923 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
13924 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
13925 (arm_fa726te_tune): Add prefer_constant_pool setting.
13926 (arm_v6t2_tune, arm_cortex_tune): New.
13927 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
13928 prefer_constant_pool setting.
13929
13930 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
13931
13932 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
13933 switch statement.
13934 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
13935 (*movdf_internal) <case 6,7,8>: Ditto.
13936
13937 * config/i386/constraints.md (Y4): New register constraint.
13938 * config/i386/sse.md (vec_set<mode>_0): Merge with
13939 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
13940 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
13941 *vec_extractv2di_1_sse.
13942 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
13943 and *vec_concatv2di_rex64_sse.
13944
13945 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
13946
13947 PR target/48807
13948 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
13949 of cgraph_local_info for null before attempting to use it.
13950
13951 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
13952
13953 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
13954 (current_function_dynamic_alloc_count): Delete.
13955 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
13956 (expand_builtin_nonlocal_goto): Remove obsolete comment.
13957 (expand_builtin_update_setjmp_buf): Remove dead code.
13958 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
13959 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
13960 support.
13961 * function.c (instantiate_virtual_regs): Likewise.
13962 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
13963 for a block with a single abnormal incoming edge.
13964 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
13965 (SETJMP_VIA_SAVE_AREA): Delete.
13966 * config/sparc/sparc-protos.h (load_got_register): Declare.
13967 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
13968 (load_got_register): Make global.
13969 (sparc_frame_pointer_required): Add 'static'.
13970 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
13971 (sparc_builtin_setjmp_frame_value): New function.
13972 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
13973 (save_stack_nonlocal): New expander.
13974 (restore_stack_nonlocal): Likewise.
13975 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
13976 (nonlocal_goto_internal): New insn.
13977 (goto_handler_and_restore): Delete.
13978 (builtin_setjmp_setup): Likewise.
13979 (do_builtin_setjmp_setup): Likewise.
13980 (setjmp): Likewise.
13981 (builtin_setjmp_receiver): New expander.
13982
13983 2011-06-01 David Li <davidxl@google.com>
13984
13985 PR middle-end/49261
13986 * tree-pretty-print.c (dump_function_header): Format cleanup.
13987
13988 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
13989
13990 PR target/49238
13991 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
13992 needed when original operands are used for msw_skip comparison.
13993
13994 2011-06-01 Jakub Jelinek <jakub@redhat.com>
13995
13996 PR debug/49250
13997 * var-tracking.c (add_uses, add_stores): Don't call
13998 cselib_subst_to_values on ENTRY_VALUE.
13999
14000 2011-06-01 Diego Novillo <dnovillo@google.com>
14001
14002 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
14003 output_record_start with LTO_null instead of output_zero.
14004 (lto_output_ts_binfo_tree_pointers): Likewise.
14005 (lto_output_tree): Likewise.
14006 (output_eh_try_list): Likewise.
14007 (output_eh_region): Likewise.
14008 (output_eh_lp): Likewise.
14009 (output_eh_regions): Likewise.
14010 (output_bb): Likewise.
14011 (output_function): Likewise.
14012 (output_unreferenced_globals): Likewise.
14013 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
14014 instead of NUM_TREE_CODES.
14015 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
14016 (lto_output_int_in_range): Change << to >> when shifting VAL.
14017
14018 2011-06-01 Diego Novillo <dnovillo@google.com>
14019
14020 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
14021 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
14022
14023 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
14024
14025 PR target/45074
14026 * optabs.h (valid_multiword_target_p): Declare.
14027 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
14028 doing multi-word operations.
14029 * optabs.c (expand_binop): Likewise.
14030 (expand_doubleword_bswap): Likewise.
14031 (expand_absneg_bit): Likewise.
14032 (expand_unop): Likewise.
14033 (expand_copysign_bit): Likewise.
14034 (multiword_target_p): New function.
14035
14036 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
14037
14038 PR rtl-optimization/48830
14039 PR rtl-optimization/48808
14040 PR rtl-optimization/48792
14041 * reload.c (push_reload): Check contains_reg_of_mode.
14042 * reload1.c (strip_paradoxical_subreg): New function.
14043 (gen_reload_chain_without_interm_reg_p): Use it to handle
14044 paradoxical subregs.
14045 (emit_output_reload_insns, gen_reload): Likewise.
14046
14047 2011-06-01 David Li <davidxl@google.com>
14048
14049 * predict.c : Change pass name
14050 * ipa.c: Ditto.
14051 * dce.c: Ditto.
14052 * tree-profile.c: Ditto.
14053 * except.c: Ditto.
14054
14055 2011-06-01 David Li <davidxl@google.com>
14056
14057 * tree-pretty-print.c (dump_function_header): New function.
14058 * final.c (rest_of_clean_state): Use header dumper.
14059 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
14060 * passes.c (pass_init_dump_file): Use header dumper.
14061
14062 2011-06-01 Jakub Jelinek <jakub@redhat.com>
14063
14064 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
14065 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
14066 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
14067 New functions.
14068 (mem_loc_descriptor): Use them.
14069
14070 * var-tracking.c (create_entry_value): New function.
14071 (vt_add_function_parameter): Use it.
14072
14073 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14074
14075 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
14076 Include <signal.h>, <ucontext.h>.
14077 (sigill_caught): Define.
14078 (sigill_hdlr): New function.
14079 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
14080 insns can be executed.
14081 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
14082 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
14083
14084 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14085
14086 * config/t-slibgcc-darwin: Move to ...
14087 * config/t-slibgcc-dummy: ... this. Clarify comments.
14088 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
14089 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
14090 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
14091 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
14092 Remove i386/t-crtstuff from tmake_file.
14093 (i[34567]86-*-solaris2*): Remove t-svr4,
14094 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
14095 t-slibgcc-dummy.
14096 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
14097 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
14098 sparc/t-crtfm from tmake_file.
14099 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
14100 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
14101 Remove extra_parts.
14102 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
14103 * config/i386/t-nwld (SHLIB_LINK): Remove.
14104 * config/i386/t-rtems-i386: Rename to ...
14105 * config/i386/t-rtems: ... this.
14106 ($(T)crti.o, $(T)crtn.o): Remove.
14107 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
14108 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
14109 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
14110 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
14111 EXTRA_MULTILIB_PARTS): Remove.
14112 * config/sparc/t-sol2-64: Likewise.
14113 * config/sparc/t-sol2: Remove.
14114 * config/sparc/t-crtin: Remove.
14115 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
14116 * config/i386/gmon-sol2.c: Remove.
14117 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
14118 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
14119 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
14120 * config/i386/sol2-gc1.asm: Remove.
14121 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
14122 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
14123 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
14124 * config/t-slibgcc-sld: Remove.
14125
14126 2011-06-01 Jakub Jelinek <jakub@redhat.com>
14127
14128 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
14129 base_type_for_mode with op_mode instead of mode.
14130
14131 2011-06-01 Paul Brook <paul@cpodesourcery.com>
14132
14133 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
14134 Cortex-A15.
14135 * config/arm/arm-tune.md: Regenerate.
14136 * config/arm/arm-tables.opt: Regenerate.
14137 * config/arm/arm.c (FL_DIV): Rename...
14138 (FL_THUMB_DIV): ... to this.
14139 (FL_ARM_DIV): Define.
14140 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
14141 (arm_arch_hwdiv): Remove.
14142 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
14143 (arm_issue_rate): Add cortexr5.
14144 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
14145 __ARM_ARCH_EXT_IDIV__.
14146 (TARGET_IDIV): Define.
14147 (arm_arch_hwdiv): Remove.
14148 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
14149 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
14150 (divsi3, udivsi3): New patterns.
14151 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
14152 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
14153
14154 2011-06-01 Martin Jambor <mjambor@suse.cz>
14155
14156 * ipa-utils.c (ipa_dfs_info): New field scc_no.
14157 * ipa-utils.c (searchc): Set scc_no.
14158
14159 2011-06-01 Martin Jambor <mjambor@suse.cz>
14160
14161 * ipa-utils.c (searchc_env): New field allow_overwritable.
14162 (searchc): do not ignore edges to overwritable nodes if indicated
14163 by env->allow_overwritable.
14164 (ipa_reduced_postorder): Set env.allow_overwritable.
14165
14166 2011-06-01 Richard Guenther <rguenther@suse.de>
14167
14168 * tree.c (free_lang_data): Do not reset boolean_type_node nor
14169 char_type_node.
14170 * lto-streamer.c (lto_record_common_node): Take node pointer,
14171 do not register types.
14172 (lto_preload_common_nodes): Explicitly skip preloading nodes
14173 that differ between frontends.
14174
14175 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
14176
14177 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
14178 NON_FLOAT_REGS.
14179
14180 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
14181
14182 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
14183 parameter value for dump. Dump cost on outermost call only.
14184 (rs6000_memory_move_cost): Dump cost on outermost call only.
14185
14186 2011-05-31 Jakub Jelinek <jakub@redhat.com>
14187
14188 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
14189 DW_OP_GNU_convert ops.
14190
14191 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
14192 cselib_preserve_constants.
14193 (cselib_lookup_1): If cselib_preserve_constants,
14194 a new VALUE is being created for REG and there is a VALUE for the
14195 same register in wider mode, add another loc with lowpart SUBREG of
14196 the wider VALUE.
14197 (cselib_subst_to_values): Handle ENTRY_VALUE.
14198 * var-tracking.c (replace_expr_with_values): Return NULL for
14199 ENTRY_VALUE too.
14200 * dwarf2out.c (convert_descriptor_to_signed): New function.
14201 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
14202 instead of two shifts.
14203 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
14204 the right mode if needed.
14205 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
14206 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
14207 convert_descriptor_to_signed.
14208 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
14209 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
14210
14211 PR target/48688
14212 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
14213
14214 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
14215
14216 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
14217 of X87MODEI12 and SWI48x instead of SSEMODEI24.
14218 (SWI248x): New mode iterator, rename from X87MODEI.
14219 (X87MODEI): Remove mode iterator.
14220 (X87MODEI12): Ditto.
14221 (SSEMODEI24): Ditto.
14222
14223 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
14224
14225 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
14226 * doc/invoke.texi: Document max-vartrack-expr-depth.
14227 * var-tracking.c (EXPR_DEPTH): New.
14228 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
14229
14230 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
14231
14232 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
14233 * config/i386/sse.md: Add n to negated FMA pattern names.
14234
14235 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
14236
14237 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
14238
14239 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
14240
14241 * gengtype-state.c (read_state_params_structs): Initialize previous.
14242
14243 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
14244
14245 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
14246 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
14247
14248 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
14249
14250 * config/i386/i386.md (*movtf_internal): Avoid allocating general
14251 registers. Penalize F*r->o alternative to prevent partial memory
14252 stalls. Slightly penalize *roF->*r alternative. Generate SSE
14253 CONST_DOUBLE immediates when optimizing function for size. Do not move
14254 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
14255 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
14256 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
14257 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
14258 alternatives.
14259 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
14260
14261 (fp_register_operand splitters): Use fp_register_operand
14262 constraint. Do not use FP_REG_P in insn condition.
14263 (any_fp_register_operand splitters): Use any_fp_register_operand
14264 constraint. Do not use ANY_FP_REG_P in insn condition.
14265
14266 2011-05-31 Jan Hubicka <jh@suse.cz>
14267
14268 * cgraph.h (cgraph_inline_failed_t): Give enum a name
14269 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
14270 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
14271 (lto_output_edge): Use output_enum and var_len_unsigned.
14272 (lto_output_varpool_node): Likewise.
14273 (input_overwrite_node): Do not take resolution parameter;
14274 extract it from a bitpack.
14275 (input_node): Do not read resolution; use input_enum and
14276 var_len_unsigned.
14277 (input_varpool_node): Likewise.
14278 (input_edge): Likewise.
14279 (input_cgraph_1): Likewise.
14280
14281 2011-05-31 Richard Guenther <rguenther@suse.de>
14282
14283 * gimple.c (gimple_register_canonical_type): Do not register
14284 any types via gimple_register_type.
14285
14286 2011-05-31 Jan Hubicka <jh@suse.cz>
14287
14288 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
14289 of thunks.
14290
14291 2011-05-31 Jakub Jelinek <jakub@redhat.com>
14292
14293 PR rtl-optimization/49235
14294 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
14295 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
14296
14297 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
14298
14299 PR tree-optimization/49093
14300 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
14301 data references.
14302
14303 2011-05-31 Dodji Seketeli <dodji@redhat.com>
14304
14305 PR debug/49047
14306 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
14307 for concrete functions containing the code of cloned functions.
14308
14309 2011-05-31 Richard Guenther <rguenther@suse.de>
14310
14311 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
14312 to ...
14313 (forward_propagate_into_comparison_1): ... this.
14314 (forward_propagate_comparison): Rename to ...
14315 (forward_propagate_into_comparison): ... this. Split out
14316 real forward propagation code to ...
14317 (forward_propagate_comparison): ... this.
14318 (forward_propagate_into_gimple_cond): Remove looping.
14319 (forward_propagate_into_cond): Likewise.
14320 (simplify_not_neg_expr): Return whether we have done something.
14321 (simplify_gimple_switch): Likewise.
14322 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
14323 (ssa_forward_propagate_and_combine): ... this. Re-structure
14324 to do a forward forward-propagation walk on BBs and a backward
14325 stmt combining walk on BBs. Consistently re-scan changed statements.
14326 (pass_forwprop): Adjust.
14327
14328 2011-05-30 Ian Lance Taylor <iant@google.com>
14329
14330 * godump.c (go_format_type): Correct length of name added to
14331 obstack for anonymous field.
14332
14333 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
14334
14335 PR target/49186
14336 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
14337 part of the second operand is 0.
14338
14339 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
14340
14341 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
14342 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
14343 to memory for !TARGET_MEMORY_MISMATCH_STALL.
14344 (*movdf_internal_rex64): Do not penalize F->r alternative.
14345 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
14346 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
14347 when optimizing function for size. Do not move CONST_DOUBLEs
14348 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
14349 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
14350 SUBREGs. Do not check for MEM_P operands in the insn condition,
14351 check for ANY_FP_REGNO_P instead.
14352 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
14353 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
14354 function for speed.
14355 * config/i386/i386.c (ix86_option_override_internal): Do not
14356 set TARGET_INTEGER_DFMODE_MOVES here.
14357
14358 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
14359
14360 PR target/49168
14361 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
14362
14363 2011-05-30 Jakub Jelinek <jakub@redhat.com>
14364
14365 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
14366 DW_TAG_rvalue_reference_type even for
14367 -gdwarf-4 -fno-debug-types-section.
14368
14369 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14370
14371 PR tree-optimization/46728
14372 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
14373 (build_and_insert_binop): New.
14374 (gimple_expand_builtin_pow): Reorder args for
14375 build_and_insert_call; use build_and_insert_binop; add more
14376 optimizations for fractional exponents.
14377
14378 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
14379
14380 PR bootstrap/49190
14381
14382 Revert:
14383 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
14384
14385 * tree.h (struct tree_identifier): Inherit from tree_typed, not
14386 tree_common.
14387 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
14388 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
14389 TS_BASE instead of TS_COMMON.
14390 * varasm.c (assemble_name): Remove assert.
14391
14392 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
14393
14394 * config.gcc: Keep obselete list sorted.
14395
14396 2011-05-30 Jakub Jelinek <jakub@redhat.com>
14397 Eric Botcazou <ebotcazou@adacore.com>
14398
14399 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
14400 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
14401 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
14402 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
14403 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
14404
14405 2011-05-30 Richard Guenther <rguenther@suse.de>
14406
14407 * gimple.c (gimple_types_compatible_p_1): Compare record
14408 and union type members properly.
14409
14410 2011-05-30 Richard Guenther <rguenther@suse.de>
14411
14412 PR tree-optimization/49210
14413 * ipa-split.c (split_function): Care for the case where the call
14414 result is not trivially convertible to the result holding variable.
14415
14416 2011-05-30 Richard Guenther <rguenther@suse.de>
14417
14418 PR tree-optimization/49218
14419 * tree-vrp.c (adjust_range_with_scev): Properly check whether
14420 overflow occured.
14421
14422 2011-05-30 Richard Guenther <rguenther@suse.de>
14423
14424 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
14425 New function split out from ...
14426 (forward_propagate_into_gimple_cond): ... here. Adjust.
14427 (forward_propagate_into_cond): Likewise.
14428 (forward_propagate_comparison): Also propagate into
14429 comparisons on assignment RHS. Change return value to
14430 behave similar to forward_propagate_into_cond.
14431 (tree_ssa_forward_propagate_single_use_vars): Handle
14432 strict-overflow warnings properly for forward_propagate_comparison.
14433
14434 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14435
14436 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
14437 from plugin linker.
14438 * configure: Regenerate.
14439
14440 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
14441
14442 PR tree-optimization/49199
14443 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
14444 non-reduction operands are either defined in the loop or by induction.
14445
14446 2011-05-29 Xinliang David Li <davidxl@google.com>
14447
14448 * opts-global.c (handle_common_deferred_options): Handle new options.
14449 * passes.c (register_one_dump_file): Call register_pass_name.
14450 (execute_one_pass): Check explicit enable/disable flag.
14451 (passr_hash): New function.
14452 (passr_eq): Ditto.
14453 (register_pass_name): Ditto.
14454 (get_pass_by_name): Ditto.
14455 (pass_hash): Ditto.
14456 (pass_eq): Ditto.
14457 (enable_pass): Ditto.
14458 (disable_pass): Ditto.
14459 (is_pass_explicitly_enabled_or_disabled): Ditto.
14460
14461 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
14462
14463 * config/i386/i386.md (*movoi_internal_avx): Use
14464 standard_sse_constant_opcode for alternative 0.
14465 (*movti_internal_sse): Ditto.
14466 (*movti_internal_rex64): Use standard_sse_constant_opcode for
14467 alternative 2.
14468 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
14469 sselog1 type moves.
14470 (*movsi_internal): Ditto.
14471 (*movdi_internal): Ditto. Add ssecvt type moves.
14472
14473 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
14474
14475 PR target/48830
14476 * rtlanal.c (simplify_subreg_regno): Adjust comment.
14477
14478 2011-05-29 Jakub Jelinek <jakub@redhat.com>
14479
14480 PR rtl-optimization/49095
14481 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
14482 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
14483
14484 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
14485
14486 PR target/43995
14487 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
14488 recurse_p argument. Only follow register copies if it is set,
14489 and prevent mips_find_pic_call_symbol from recursing.
14490 (mips_find_pic_call_symbol): Add a recurse_p argument.
14491 Pass it to mips_pic_call_symbol_from_set.
14492 (mips_annotate_pic_calls): Update accordingly.
14493
14494 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
14495
14496 * emit-rtl.c (try_split): Use a loop to search for
14497 NOTE_INSN_CALL_ARG_LOCATIONs.
14498
14499 2011-05-29 Richard Guenther <rguenther@suse.de>
14500
14501 PR tree-optimization/49217
14502 * ipa-pure-const.c (propagate_pure_const): Fix typos.
14503
14504 2011-05-28 Jan Hubicka <jh@suse.cz>
14505
14506 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
14507 length.
14508 (string_slot_free): Remove
14509 (create_output_block): Initialize obstack.
14510 (destroy_output_block): Free obstack.
14511 (lto_string_index): Add PERSISTENT parameter; do not duplicate
14512 the string unless it needs to be added into the hash.
14513 (lto_output_string_with_length): Add persistent attribute;
14514 handle NULL strings.
14515 (lto_output_string): Add PERSISTENT parameter.
14516 (output_string_cst, output_identifier): Simplify.
14517 (lto_output_location_bitpack): Update.
14518 (lto_output_builtin_tree): Update.
14519 * lto-streamer.h (struct output_block): Add obstack.
14520 (lto_output_string, lto_output_string_with_length): Remove
14521 declarations; functions are static now.
14522
14523 2011-05-28 Jan Hubicka <jh@suse.cz>
14524
14525 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
14526 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
14527 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
14528 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
14529 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
14530 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
14531 unpack_ts_decl_with_vis_value_fields,
14532 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
14533 lto_get_builtin_tree): Use enum and variable length i/o.
14534 * basic-block.h (profile_status_d): Add PROFILE_LAST.
14535 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
14536 New functions.
14537 (bp_pack_enum, bp_unpack_enum): New macros.
14538
14539 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14540
14541 * genrecog.c: Remove redundant forward declarations.
14542
14543 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14544
14545 * config.gcc: Deprecate mips*-*-openbsd*.
14546
14547 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14548
14549 PR bootstrap/49195
14550 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
14551 for match_op_dup.
14552
14553 2011-05-27 Andrew Pinski <pinskia@gmail.com>
14554
14555 PR middle-end/48981
14556 * gengtype.c (vec_prefix_type): New function.
14557 (note_def_vec): Use vec_prefix_type and change the length
14558 attribute to be based on the prefix.
14559 * vec.c: Include coretypes.h before vec.h.
14560 (struct vec_prefix): Remove.
14561 (vec_gc_p_reserve): Change the offsetof to sizeof.
14562 (vec_gc_p_reserve_exact): Likewise.
14563 (vec_heap_p_reserve): Likewise.
14564 (vec_heap_p_reserve_exact): Likewise.
14565 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
14566 (vec_stack_p_reserve): Change the offsetof to sizeof.
14567 (vec_stack_p_reserve_exact): Likewise.
14568 * vec.h (struct vec_prefix): New struct definition.
14569 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
14570 (VEC_T_GTY(T,B)): Likewise.
14571 (DEF_VEC_FUNC_P(T)): Use prefix field.
14572 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
14573 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
14574
14575 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14576
14577 PR tree-optimization/46728
14578 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
14579 (powi_as_mults): Add gimple_set_location.
14580 (build_and_insert_call): New.
14581 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
14582 0.5, 0.25, 0.75, 1./3., or 1./6.
14583
14584 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
14585
14586 * doc/contrib.texi: Update copyright years.
14587 (Contributors): Add Zdenek Sojka.
14588
14589 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
14590
14591 * c-decl.c (c_push_function_context): Copy the current statement
14592 list stack.
14593 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
14594 (finish_struct): Call building_stmt_list_p instead of checking
14595 cur_stmt_list.
14596 * c-parser.c (c_parser_postfix_expression): Likewise.
14597 * c-typeck.c (c_end_compound_stmt): Likewise.
14598 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
14599 * tree-iterator.c (stmt_list_cache): Change to a VEC.
14600 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
14601 (free_stmt_list): Likewise.
14602 * tree.h (struct tree_statement_list): Include typed_tree instead
14603 of tree_common.
14604 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
14605 as TS_TYPED instead of TS_COMMON.
14606
14607 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14608 Uros Bizjak <ubizjak@gmail.com>
14609
14610 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
14611 (HAVE_AS_IX86_TLSGDPTL): Define.
14612 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
14613 (HAVE_AS_IX86_TLSLDMPLT): Define.
14614 * configure: Regenerate.
14615 * config.in: Regenerate.
14616 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
14617 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
14618 TARGET_SUN_TLS, use @tlsgdplt or @plt.
14619 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
14620 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
14621 @tlsldmplt or @plt.
14622 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
14623
14624 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
14625
14626 * sched-int.h (struct _haifa_deps_insn_data): New members cond
14627 and reverse_cond.
14628 (INSN_COND, INSN_REVERSE_COND): New macros.
14629 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
14630 once.
14631 (sched_get_condition_with_rev): Cache the results, and look them up
14632 if possible.
14633 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
14634 are clobbered by the current insn.
14635 * target.def (exposed_pipline): New sched data hook.
14636 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
14637 * doc/tm.texi: Regenerate.
14638
14639 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14640
14641 PR tree-optimization/49170
14642 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
14643 sincos or cexp.
14644
14645 2011-05-27 Richard Guenther <rguenther@suse.de>
14646
14647 PR middle-end/49189
14648 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
14649 of comparisons.
14650
14651 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
14652
14653 * haifa-sched.c (sched_scan_info): Remove.
14654 (schedule_block): Call sched_extend_luids rather than sched_init_luids
14655 with NULL args.
14656 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
14657 Remove functions.
14658 (sched_scan): Remove.
14659 (sched_extend_luids): Renamed from luids_extend_insn and no longer
14660 static. All callers changed.
14661 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
14662 static. All callers changed.
14663 (sched_init_luids): Remove all arguments except the first. All
14664 callers changed. Don't use sched_scan.
14665 (haifa_init_h_i_d): Likewise.
14666 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
14667 manually rather than using sched_init_luids. Likewise with
14668 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
14669 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
14670 rather than sched_init_luids with NULL args.
14671 * sel-sched-ir.c (new_insns): Remove variable.
14672 (sched_scan): New static function, previously in haifa-sched.c. Remove
14673 all arguments but the first two; all callers changed.
14674 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
14675 rather than sched_init_luids.
14676 (sel_init_bbs): Remove second argument. All callers changed.
14677 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
14678 with NULL arguments.
14679 (create_insn_rtx_from_pattern): Likewise.
14680 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
14681 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
14682 (sched_init_insn_luid, sched_extend_luids): Declare.
14683 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
14684 declarations.
14685
14686 2011-05-27 Richard Guenther <rguenther@suse.de>
14687
14688 PR middle-end/49177
14689 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
14690 A CMP B ? (T) true : (T) false for non-integral types T again.
14691
14692 2011-05-27 Jan Hubicka <jh@suse.cz>
14693
14694 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
14695 so 0 means NULL string.
14696 (lto_output_string_with_length): ... here.
14697 (lto_output_string, output_string_cst, output_identifier): Update
14698 handling of NULL strings.
14699 (lto_output_location_bitpack): New function.
14700 (lto_output_location): Use it.
14701 (lto_output_tree_ref): Use output_record_start.
14702 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
14703 len values.
14704 * lto-streamer-in.c (string_for_index): Break out from ...; offset
14705 values by 1.
14706 (input_string_internal): ... here;
14707 (input_string_cst, input_identifier, lto_input_string): Update handling
14708 of NULL strings.
14709 (lto_input_location_bitpack): New function
14710 (lto_input_location): Use it.
14711 (unpack_ts_type_common_value_fields): Pack align & alias in var len
14712 values.
14713 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
14714 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
14715 (bp_pack_value): Sanity check the value range.
14716 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
14717 New functions.
14718 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
14719 New functions.
14720
14721 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
14722
14723 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
14724 call_arg_location instructions down the floor.
14725
14726 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
14727
14728 PR rtl-optimization/49154
14729 * ira.c (setup_pressure_classes): Process class without sublcasses
14730 as a candidate for pressure classes.
14731
14732 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
14733
14734 PR rtl-optimization/48575
14735 * genrecog.c (position_type): New enum.
14736 (position): New structure.
14737 (decision): Use position structure instead of a string.
14738 (root_pos, peep2_insn_pos_list): New variables.
14739 (next_position, compare_positions): New functions.
14740 (new_decision): Use position structures instead of strings.
14741 (maybe_both_true): Likewise.
14742 (change_state): Likewise.
14743 (write_tree): Likewise.
14744 (make_insn_sequence): Likewise.
14745
14746 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
14747
14748 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
14749 TS_BASE instead of TS_COMMON.
14750 (find_decls_types_r): Check for TS_TYPED structure before looking at
14751 TREE_TYPE.
14752 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
14753 Add chain field.
14754 (BLOCK_CHAIN): Use new chain field.
14755
14756 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
14757
14758 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
14759 moves expensive on Power7 also.
14760
14761 2011-05-26 Richard Guenther <rguenther@suse.de>
14762
14763 * fold-const.c (fold_unary_loc): Remove bogus code.
14764
14765 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
14766
14767 * tree.h (struct tree_identifier): Inherit from tree_typed, not
14768 tree_common.
14769 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
14770 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
14771 TS_BASE instead of TS_COMMON.
14772 * varasm.c (assemble_name): Remove assert.
14773
14774 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
14775
14776 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
14777 substituted first.
14778 * libgcc-std.ver: Delete file.
14779
14780 2011-05-26 Richard Guenther <rguenther@suse.de>
14781
14782 PR tree-optimization/48702
14783 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
14784 only when we know the base address is within bounds.
14785 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
14786 assume the base address of TARGET_MEM_REFs is in bounds.
14787
14788 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14789
14790 PR target/49099
14791 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
14792 declaration in TARGET_SOLARIS.
14793
14794 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
14795
14796 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
14797 The instruction is then expanded explicitly.
14798 (supported_compare): Callable instruction.
14799 (compare): Likewise.
14800
14801 2011-05-26 Jakub Jelinek <jakub@redhat.com>
14802
14803 PR c++/49165
14804 * gimplify.c (shortcut_cond_r): Don't special case
14805 COND_EXPRs if they have void type on one of their arms.
14806
14807 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
14808
14809 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
14810 to reduce duplication, and to achieve a slightly more logical order
14811 of operations.
14812
14813 2011-05-26 Jakub Jelinek <jakub@redhat.com>
14814
14815 PR tree-optimization/49161
14816 * tree-vrp.c (struct case_info): New type.
14817 (compare_case_labels): Sort case_info structs instead of
14818 trees, and not primarily by CASE_LABEL uids but by
14819 label_for_block indexes.
14820 (find_switch_asserts): Put case labels into struct case_info
14821 array instead of TREE_VEC, adjust sorting, compare label_for_block
14822 values instead of CASE_LABELs.
14823
14824 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14825
14826 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
14827 ("orndi3_neon"): Likewise.
14828 ("bic<mode>3_neon"): Likewise.
14829
14830 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
14831
14832 PR tree-optimization/49038
14833 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
14834 Ensure at least one epilogue iteration if required by data
14835 accesses with gaps.
14836 * tree-vectorizer.h (struct _loop_vec_info): Add new field
14837 to mark loops that require peeling for gaps.
14838 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
14839 (vect_get_known_peeling_cost): Take peeling for gaps into
14840 account.
14841 (vect_transform_loop): Generate epilogue if required by data
14842 access with gaps.
14843 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
14844 loop as requiring an epilogue if there are gaps in the end of
14845 the strided group.
14846
14847 2011-05-25 Ian Lance Taylor <iant@google.com>
14848
14849 * godump.c (go_format_type): Output the first field with a usable
14850 Go type, if any.
14851
14852 2011-05-25 Ian Lance Taylor <iant@google.com>
14853
14854 * godump.c (go_format_type): Check for invalid type names, pointer
14855 target types, and struct field types.
14856
14857 2011-05-25 Jason Merrill <jason@redhat.com>
14858
14859 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
14860
14861 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
14862
14863 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
14864
14865 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14866
14867 * config/i386/i386.md (*movqi_extv_1)): Put back
14868 "register_operand" check in "type" calculation.
14869 (*movqi_extzv_2): Likewise.
14870
14871 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14872
14873 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
14874
14875 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
14876
14877 PR bootstrap/49160
14878 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
14879 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
14880 __divxc3, __divtc3): Wrap definitions in #ifndef.
14881
14882 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14883
14884 PR target/49142
14885 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
14886 "register_operand" check and replace q_regs_operand with
14887 QIreg_operand in "type" calculation.
14888 (*movqi_extv_1): Likewise.
14889 (*movqi_extzv_2_rex64): Likewise.
14890 (*movqi_extzv_2): Likewise.
14891
14892 * config/i386/predicates.md (QIreg_operand): New.
14893
14894 2011-05-25 Richard Guenther <rguenther@suse.de>
14895
14896 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
14897 type-based offset disambiguation, streamline MEM_REF and
14898 TARGET_MEM_REF handling.
14899
14900 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14901
14902 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
14903 (bdesc_special_args): Add pause intrinsic.
14904
14905 * config/i386/i386.md (UNSPEC_PAUSE): New.
14906 (pause): Likewise.
14907 (*pause): Likewise.
14908 * config/i386/ia32intrin.h (__pause): Likewise.
14909
14910 * doc/extend.texi (X86 Built-in Functions): Add documentation for
14911 pause intrinsic.
14912
14913 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14914
14915 PR tree-optimization/46728
14916 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
14917 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
14918
14919 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
14920
14921 * tree.h (struct tree_exp): Inherit from struct tree_typed.
14922 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
14923 instead of TS_COMMON.
14924
14925 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
14926
14927 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
14928 LIBGCC2_GNU_PREFIX is defined.
14929 (__N): New macro.
14930 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
14931 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
14932 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
14933 __clz_tab): Define using __N.
14934 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
14935 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
14936 * target.def (libfunc_gnu_prefix): New hook.
14937 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
14938 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
14939 * doc/tm.texi: Regenerate.
14940 * system.h (LIBGCC2_GNU_PREFIX): Poison.
14941 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
14942 account.
14943 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
14944 (init_optabs): Likewise for the bswap libfuncs.
14945 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
14946 and divide.
14947 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
14948 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
14949 * libgcc-std.ver: Remove.
14950 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
14951 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
14952 libgcc-std.ver.
14953 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14954 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
14955 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
14956 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
14957 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
14958 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14959 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14960 * config/fixed-bit.h (FIXED_OP): Define differently depending on
14961 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
14962 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
14963
14964 2011-05-25 Jan Hubicka <jh@suse.cz>
14965
14966 * lto-streamer-out.c (output_record_start): Use lto_output_enum
14967 (lto_output_tree): Use output_record_start.
14968 * lto-streamer-in.c (input_record_start): Use lto_input_enum
14969 (lto_get_pickled_tree): Use input_record_start.
14970 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
14971 (lto_value_range_error): New function.
14972 * lto-streamer.h (lto_value_range_error): Declare.
14973 (lto_output_int_in_range, lto_input_int_in_range): New functions.
14974 (lto_output_enum, lto_input_enum): New macros.
14975
14976 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
14977
14978 * common.opt (flag_stack_usage_info): New variable.
14979 (-Wstack-usage): New option.
14980 * doc/invoke.texi (Warning options): Document -Wstack-usage.
14981 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
14982 <OPT_fstack_usage>: Likewise.
14983 * toplev.c (output_stack_usage): Handle -Wstack-usage.
14984 * calls.c (expand_call): Test flag_stack_usage_info variable instead
14985 of flag_stack_usage.
14986 (emit_library_call_value_1): Likewise.
14987 * explow.c (allocate_dynamic_stack_space): Likewise.
14988 * function.c (instantiate_virtual_regs ): Likewise.
14989 (prepare_function_start): Likewise.
14990 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
14991 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
14992 * config/arm/arm.c (arm_expand_prologue): Likewise.
14993 (thumb1_expand_prologue): Likewise.
14994 * config/avr/avr.c (expand_prologue): Likewise.
14995 * config/i386/i386.c (ix86_expand_prologue): Likewise.
14996 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
14997 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
14998 * config/mips/mips.c (mips_expand_prologue): Likewise.
14999 * config/pa/pa.c (hppa_expand_prologue): Likewise.
15000 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
15001 * config/s390/s390.c (s390_emit_prologue): Likewise.
15002 * config/sh/sh.c (sh_expand_prologue): Likewise.
15003 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
15004 * config/spu/spu.c (spu_expand_prologue): Likewise.
15005
15006 2011-05-25 Richard Guenther <rguenther@suse.de>
15007
15008 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
15009 (gimple_canonical_types_compatible_p): Likewise.
15010
15011 2011-05-25 Jan Hubicka <jh@suse.cz>
15012
15013 PR middle-end/49062
15014 * ipa.c (function_and_variable_visibility): Only add to same
15015 comdat group list if DECL_ONE_ONLY.
15016
15017 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
15018
15019 PR rtl-optimization/49014
15020 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
15021
15022 2011-05-25 Jakub Jelinek <jakub@redhat.com>
15023
15024 PR target/49128
15025 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
15026
15027 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
15028
15029 PR rtl-optimization/48757
15030 * ira-build.c (loop_with_eh_edge_p): Rename to
15031 loop_with_complex_edge_p, check edges on complexity, make function
15032 conditional.
15033 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
15034 conditional.
15035
15036 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
15037
15038 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
15039 force flag_ira_share_save_slots to 0.
15040
15041 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
15042
15043 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
15044 (vt_initialize): Set PROLOGUE_BB unconditionally.
15045 Add block comment about CFA_BASE_RTX machinery.
15046 Reset FP_CFA_OFFSET to -1 on all invalid paths.
15047 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
15048
15049 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
15050
15051 PR objc/48187
15052 * c-parser.c (c_parser_objc_class_instance_variables): More robust
15053 parsing of syntax error in ObjC instance variable lists. In
15054 particular, avoid an infinite loop if there is a stray ']'.
15055 Updated error message.
15056
15057 2011-05-24 Ian Lance Taylor <iant@google.com>
15058
15059 * godump.c (go_define): Don't accept a string immediately after
15060 another operand.
15061
15062 2011-05-24 Ian Lance Taylor <iant@google.com>
15063
15064 * godump.c (struct godump_container): Add invalid_hash field.
15065 (go_format_type): Return false if type is found in invalid_hash.
15066 (go_output_typedef): Add invalid type to invalid_hash.
15067 (go_finish): Create and delete invalid_hash.
15068
15069 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15070
15071 PR tree-optimization/46728
15072 * tree-ssa-math-opts.c (powi_table): New.
15073 (powi_lookup_cost): New.
15074 (powi_cost): New.
15075 (powi_as_mults_1): New.
15076 (powi_as_mults): New.
15077 (gimple_expand_builtin_powi): New.
15078 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
15079 (gate_cse_sincos): Remove sincos/cexp restriction.
15080
15081 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15082
15083 PR target/3746
15084 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
15085 mips-tdump native.
15086 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
15087 * mips-tdump.c: Likewise.
15088
15089 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
15090
15091 PR target/49128
15092 * config/i386/driver-i386.c (host_detect_local_cpu): Always
15093 add -mno-XXX. Handle FMA.
15094
15095 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
15096
15097 PR rtl-optimization/48633
15098 * ira-build.c (loop_with_eh_edge_p): New function.
15099 (mark_loops_for_removal): Use it.
15100
15101 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
15102
15103 PR rtl-optimization/48971
15104 * ira.c (setup_pressure_classes): Don't check register move cost
15105 for classes with one registers. Don't add pressure class if there
15106 is a pressure class with the same available hard registers.
15107 Check contains_reg_of_mode. Fix a typo in collecting
15108 temp_hard_regset. Ignore hard registers not belonging to a class.
15109
15110 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
15111
15112 PR target/49133
15113 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
15114
15115 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
15116 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15117
15118 PR gcov-profile/48845
15119 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
15120
15121 2011-05-24 Richard Guenther <rguenther@suse.de>
15122
15123 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
15124 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
15125 (gimple_types_compatible_p_1): Adjust.
15126 (iterative_hash_canonical_type): Do not bother about complete vs.
15127 incomplete types.
15128 (gimple_canonical_types_compatible_p): Likewise.
15129
15130 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15131
15132 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
15133
15134 2011-05-24 Richard Guenther <rguenther@suse.de>
15135
15136 PR bootstrap/49078
15137 * gimple.c (gimple_register_canonical_type): Revert
15138 previous change.
15139 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
15140 does not for a tree for the case where it matters. Cache
15141 pointer-type alias-sets.
15142
15143 2011-05-24 Joseph Myers <joseph@codesourcery.com>
15144
15145 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
15146 (OBJS): Remove options.o, opts-common.o and prefix.o.
15147 (OBJS-libcommon-target): New.
15148 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
15149 (BACKEND): Include libcommon-target.a.
15150 (MOSTLYCLEANFILES): Include libcommon-target.a.
15151 (libcommon-target.a): New.
15152 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
15153 prefix.o.
15154
15155 2011-05-23 Joseph Myers <joseph@codesourcery.com>
15156
15157 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
15158 parts of output shared with the driver.
15159 * optc-gen.awk: Don't generate parts of output not shared with the
15160 driver.
15161 * opth-gen.awk: Remove GCC_DRIVER conditionals.
15162 * doc/options.texi (SourcerInclude): Mention options-save.c.
15163 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
15164 (OBJS): Add options-save.o.
15165 (options-save.c, options-save.o): New.
15166 (options.o): Update dependencies.
15167 (gcc-options.o): Remove.
15168 (mostlyclean): Remove options-save.c.
15169
15170 2011-05-23 Jakub Jelinek <jakub@redhat.com>
15171
15172 PR debug/49032
15173 * dbxout.c: Include cgraph.h.
15174 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
15175 and without value expr, return NULL if no varpool node exists for
15176 it or if it is not needed.
15177 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
15178
15179 PR c/49120
15180 * c-decl.c (start_decl): Convert expr to void_type_node.
15181
15182 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
15183
15184 PR rtl-optimization/48826
15185 * emit-rtl.c (try_split): When splitting a call that is followed
15186 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
15187
15188 2011-05-23 Jakub Jelinek <jakub@redhat.com>
15189
15190 * cfgexpand.c (expand_debug_expr): For unused non-addressable
15191 parameters passed in memory prefer using DECL_INCOMING_RTL over
15192 the pseudos it will be copied into.
15193
15194 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
15195
15196 PR target/47315
15197 * config/i386/i386.c (ix86_option_override_internal): Save the
15198 initial options after checking vzeroupper.
15199
15200 2011-05-23 David Li <davidxl@google.com>
15201
15202 PR tree-optimization/48988
15203 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
15204 Initialize has_valid_pred for each pred chain.
15205
15206 2011-05-23 Richard Guenther <rguenther@suse.de>
15207
15208 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
15209 (iterative_hash_gimple_type): Always hash type names.
15210
15211 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
15212
15213 * c-typeck.c (build_function_call_vec): Tweak call to
15214 check_function_arguments.
15215
15216 2011-05-23 Richard Guenther <rguenther@suse.de>
15217
15218 PR tree-optimization/49115
15219 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
15220 is not necessarily carried out, do not claim it kills the ref.
15221 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
15222
15223 2011-05-23 Richard Guenther <rguenther@suse.de>
15224
15225 PR middle-end/15419
15226 * builtins.c (fold_builtin_memory_op): Be less restrictive about
15227 what pointer types we accept for folding.
15228
15229 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15230
15231 * gthr-gnat.c: Remove.
15232 * gthr-gnat.h: Remove.
15233 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
15234 * config/t-freebsd (LIB2ADDEH): Likewise.
15235 * config/t-linux (LIB2ADDEH): Likewise.
15236 * config/t-sol2 (LIB2ADDEH): Likewise.
15237 * config/ia64/t-vms (LIB2ADDEH): Likewise.
15238 * configure.ac (target_thread_file): Remove gnat handling.
15239 * configure: Regenerate.
15240 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
15241
15242 2011-05-23 Tristan Gingold <gingold@adacore.com>
15243 Eric Botcazou <ebotcazou@adacore.com>
15244
15245 * gcov.c (create_file_names): If no object directory is specified,
15246 keep the directory of the file.
15247
15248 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15249
15250 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
15251 * configure: Regenerate.
15252
15253 2011-05-23 Jakub Jelinek <jakub@redhat.com>
15254
15255 PR middle-end/48973
15256 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
15257 failed and the comparison has a single bit signed type, use
15258 constm1_rtx instead of const1_rtx for true value.
15259 (do_store_flag): If ops->type is single bit signed type, disable
15260 signel bit test optimization and pass -1 instead of 1 as last
15261 parameter to emit_store_flag_force.
15262
15263 2011-05-23 Tom de Vries <tom@codesourcery.com>
15264
15265 PR target/45098
15266 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
15267 function.
15268 (infer_loop_bounds_from_undefined): Use new function.
15269
15270 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
15271
15272 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
15273 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
15274 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
15275 and -O0 otherwise.
15276 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
15277
15278 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
15279
15280 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
15281 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
15282 returns true.
15283
15284 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
15285
15286 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
15287
15288 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
15289
15290 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
15291 UNSPEC_MOVE_PIC pattern.
15292
15293 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
15294
15295 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
15296 (sparc-*-rtems*): Likewise.
15297 (sparc64-*-elf*): Likewise.
15298 (sparc64-*-rtems*): Likewise.
15299 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
15300 * config/sparc/t-crtin: New file.
15301 * config/sparc/t-sol2 (crti.o): Delete rule.
15302 (crtn.o): Likewise.
15303 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
15304 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
15305 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
15306 (ENDFILE_SPEC): Add crtn.o.
15307
15308 2011-05-22 Tom de Vries <tom@codesourcery.com>
15309
15310 PR middle-end/48689
15311 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
15312 CODE_CONTAINS_STRUCT (TS_COMMON).
15313
15314 2011-05-22 Jakub Jelinek <jakub@redhat.com>
15315
15316 PR middle-end/49029
15317 * expmed.c (extract_fixed_bit_field): Test whether target can be used
15318 only after deciding which mode to use.
15319
15320 2011-05-22 Tom de Vries <tom@codesourcery.com>
15321
15322 PR target/45098
15323 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
15324 for call to get_shiftadd_cost.
15325
15326 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
15327
15328 PR target/49104
15329 * config/i386/cpuid.h (bit_MMXEXT): New define.
15330
15331 2011-05-22 Nick Clifton <nickc@redhat.com>
15332
15333 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
15334 initialisation of non-existant args[2] element. Use args[] array
15335 not arg[] array to pass arguments to build_function_type_list.
15336
15337 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
15338
15339 PR tree-optimization/49087
15340 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
15341
15342 2011-05-21 Jason Merrill <jason@redhat.com>
15343
15344 PR c++/49092
15345 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
15346 static storage duration.
15347
15348 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
15349
15350 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
15351 frame pointer.
15352
15353 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
15354
15355 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
15356 false if there are call-saved registers here...
15357 (sparc_can_use_return_insn_p): ...but here instead.
15358 (save_or_restore_regs): Fix thinko.
15359 (sparc_expand_prologue): Use current_function_is_leaf.
15360 (sparc_frame_pointer_required): Likewise.
15361
15362 2011-05-21 Nick Clifton <nickc@redhat.com>
15363
15364 PR target/49098
15365 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
15366
15367 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
15368
15369 * gengtype.c (walk_type): Implemented "atomic" GTY option.
15370 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
15371
15372 2011-05-21 Joseph Myers <joseph@codesourcery.com>
15373
15374 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
15375 * optc-gen.awk: Move common code to opt-read.awk.
15376 * opth-gen.awk: Likewise.
15377 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
15378
15379 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
15380
15381 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
15382
15383 2011-05-20 Tom de Vries <tom@codesourcery.com>
15384
15385 PR target/45098
15386 * tree-ssa-loop-ivopts.c: Include expmed.h.
15387 (get_shiftadd_cost): New function.
15388 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
15389
15390 2011-05-20 Jakub Jelinek <jakub@redhat.com>
15391
15392 PR bootstrap/49086
15393 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
15394 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
15395
15396 2011-05-20 Joseph Myers <joseph@codesourcery.com>
15397
15398 * Makefile.in: Update comment referring to $(OBJS-common).
15399
15400 2011-05-20 Ian Lance Taylor <iant@google.com>
15401
15402 * godump.c (go_output_typedef): Put enum constants in the macro
15403 hash table to avoid duplicate Go const definitions.
15404
15405 2011-05-20 Joseph Myers <joseph@codesourcery.com>
15406
15407 * Makefile.in (LIBDEPS): Add libcommon.a.
15408 (LIBS): Likewise.
15409 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
15410 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
15411 pretty-print.o and version.o.
15412 (OBJS-libcommon): New.
15413 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
15414 (BACKEND): Add libcommon.a.
15415 (MOSTLYCLEANFILES): Likewise.
15416 (libcommon.a): New.
15417 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
15418 (cpp$(exeext)): Likewise.
15419 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
15420 pretty-print.o and input.o.
15421 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
15422 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
15423 (errors.o): Remove.
15424 (mips-tfile): Don't explicitly use version.o.
15425 (mips-tdump): Likewise.
15426 (gcov.o): Depend on $(DIAGNOSTIC_H).
15427 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
15428 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
15429 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
15430 * gcov-dump.c: Include intl.h and diagnostic.h.
15431 (main): Initialize diagnostics.
15432 * gcov.c: Include diagnostic.h.
15433 (fnotice): Remove.
15434 (main): Initialize diagnostics.
15435 * lto-wrapper.c: Include diagnostic.h.
15436 (main): Initialize diagnostics.
15437
15438 2011-05-20 Michael Matz <matz@suse.de>
15439
15440 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
15441
15442 2011-05-20 Michael Matz <matz@suse.de>
15443 Richard Guenther <rguenther@suse.de>
15444
15445 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
15446 use lto_streamer_cache_append directly instead of returning a VEC.
15447 (preload_common_node): Remove.
15448 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
15449 track seen nodes.
15450 (lto_streamer_cache_create): Call lto_preload_common_nodes.
15451
15452 2011-05-20 Richard Guenther <rguenther@suse.de>
15453
15454 PR tree-optimization/49079
15455 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
15456 MEM_REFs correctly for the trailing array access detection.
15457 Special case constants the same way as decls for overall size
15458 constraining.
15459
15460 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
15461
15462 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
15463 argument expansion.
15464
15465 2011-05-20 Jakub Jelinek <jakub@redhat.com>
15466
15467 PR tree-optimization/49073
15468 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
15469 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
15470 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
15471
15472 2011-05-20 Richard Guenther <rguenther@suse.de>
15473
15474 PR middle-end/48849
15475 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
15476 of pointer types the same way the middle-end does.
15477
15478 2011-05-20 Richard Guenther <rguenther@suse.de>
15479
15480 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
15481 or pointer-to chains. Delay all fixup to uniquify_nodes.
15482
15483 2011-05-19 Quentin Neill <quentin.neill@amd.com>
15484
15485 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
15486 (fma4_fmaddsub): Likewise
15487
15488 2011-05-19 Jan Hubicka <jh@suse.cz>
15489
15490 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
15491 (GIMPLE_TYPE_PAIR_SIZE): New macro.
15492 (type_pair_cache): New static var.
15493 (lookup_type_pair): Use fixed sized custom hash; make inline.
15494 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
15495 calls of lookup_type_pair.
15496 (print_gimple_types_stats): Remove cache stats.
15497 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
15498 and gtc_ob.
15499
15500 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
15501
15502 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
15503 when TARGET_RDRND is active.
15504 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
15505 Generate dummy SImode target register when target is NULL.
15506
15507 2011-05-19 Joseph Myers <joseph@codesourcery.com>
15508
15509 * config/arm/arm-fpus.def: New.
15510 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
15511 arm-fpus.def.
15512 * config/arm/arm-tables.opt: Regenerate.
15513 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
15514 (arm_option_override): Don't decode FPU name to string here.
15515 * config/arm/arm.opt (mfpu=): Use Enum.
15516 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
15517 Update dependencies.
15518
15519 2011-05-19 Joseph Myers <joseph@codesourcery.com>
15520
15521 * collect2.c: Include diagnostic.h.
15522 (fatal_perror, fatal, error, fancy_abort): Remove.
15523 (main): Set progname. Call xmalloc_set_program_name and
15524 diagnostic_initialize.
15525 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
15526 scan_libraries, resolve_lib_name): Call fatal_error instead of
15527 fatal and fatal_perror.
15528 * collect2.h (error, fatal, fatal_perror): Don't declare.
15529 * tlink.c: Include diagnostic-core.h.
15530 (recompile_files): Call fatal_error instead of fatal_perror.
15531 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
15532 pretty-print.o and input.o.
15533 (collect2.o, tlink.o): Update dependencies.
15534
15535 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15536
15537 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
15538
15539 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15540
15541 PR target/40483
15542 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
15543 COMDAT group syntax, both SPARC and x86 variants.
15544 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
15545 * configure: Regenerate.
15546 * config/sol2.h (TARGET_SOLARIS): Define.
15547 (PUSHSECTION_FORMAT): Remove.
15548 (SECTION_NAME_FORMAT): Define.
15549 * config/sol2.c: Include hashtab.h.
15550 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
15551 expansion, using SECTION_NAME_FORMAT.
15552 (solaris_comdat_htab): New variable.
15553 (struct comdat_entry): Define.
15554 (comdat_hash): New function.
15555 (comdat_eq): New function.
15556 (solaris_elf_asm_comdat_section): New function.
15557 (solaris_define_comdat_signature): New function.
15558 (solaris_code_end): New function.
15559 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
15560 (solaris_code_end): Declare.
15561 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
15562 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
15563 solaris_code_end.
15564 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
15565 Remove ATTRIBUTE_UNUSED.
15566 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
15567 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
15568 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
15569 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
15570 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
15571 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
15572 (PUSHSECTION_FORMAT): Remove.
15573 (SECTION_NAME_FORMAT): Redefine.
15574
15575 2011-05-19 Kai Tietz <ktietz@redhat.com>
15576
15577 * tree-cfg.c (verify_gimple_assign_binary): Barf on
15578 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
15579 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
15580
15581 2011-05-19 Anatoly Sokolov <aesok@post.ru>
15582 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15583
15584 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
15585
15586 2011-05-19 Richard Guenther <rguenther@suse.de>
15587
15588 PR middle-end/48985
15589 * tree-object-size.c (addr_object_size): If the pointed-to
15590 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
15591
15592 2011-05-19 Richard Guenther <rguenther@suse.de>
15593
15594 * gimple.c (gimple_types_compatible_p_1): Compare names of
15595 the types themselves.
15596 (iterative_hash_gimple_type): And hash them that way.
15597 (gimple_register_type_1): If we register a main variant properly
15598 initialize the leader to ourselves.
15599
15600 2011-05-19 Tom de Vries <tom@codesourcery.com>
15601
15602 PR target/45098
15603 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
15604 get_loop_invariant_expr_id.
15605 (get_loop_invariant_expr_id): Use get_expr_id.
15606 (parm_decl_cost): New function.
15607 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
15608 Improve bound cost estimation. Use different inv_expr_id for elim and
15609 express cases.
15610
15611 2011-05-19 Tom de Vries <tom@codesourcery.com>
15612
15613 PR target/45098
15614 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
15615 cost_base.cost == 0.
15616
15617 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
15618
15619 PR target/49002
15620 * config/i386/sse.md
15621 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
15622 load cast.
15623
15624 2011-05-18 Jakub Jelinek <jakub@redhat.com>
15625
15626 PR tree-optimization/49039
15627 * tree-vrp.c (extract_range_from_binary_expr): For
15628 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
15629 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
15630
15631 2011-05-18 Tom de Vries <tom@codesourcery.com>
15632
15633 PR target/45098
15634 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
15635
15636 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
15637
15638 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
15639 (*tls_global_dynamic_64): Ditto.
15640 (*tls_local_dynamic_base_32_gnu): Ditto.
15641 (*tls_local_dynamic_base_64): Ditto.
15642 (tls_initial_exec_64_sun): Ditto.
15643
15644 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
15645
15646 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
15647 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
15648 bf592-none.
15649 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
15650 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
15651 * config/bfin/bfin.c (bfin_cpus): Add bf592.
15652 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15653 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
15654 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
15655 * config/bfin/elf.h (LIB_SPEC): Add bf592.
15656
15657 2011-05-18 Joseph Myers <joseph@codesourcery.com>
15658
15659 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
15660 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
15661 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
15662 target_thread_pointer, arm_structure_size_boundary, struct
15663 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
15664 struct abi_name, arm_all_abis): Remove.
15665 (arm_option_override) Don't process most enumerated option values here.
15666 Don't process target_fpe_name here. Work with integer not string for
15667 structure size boundary; use separate diagnostics for each case.
15668 * config/arm/arm.h (enum float_abi_type, enum
15669 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
15670 to arm-opts.h.
15671 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
15672 arm_structure_size_boundary): Remove.
15673 * config/arm/arm.opt (mabi=): Use Enum and Init.
15674 (arm_abi_type): New Enum and EnumValue entries.
15675 (mfloat-abi=): Use Enum and Init.
15676 (float_abi_type): New Enum and EnumValue entries.
15677 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
15678 (mfp16-format=): Use Enum and Init.
15679 (arm_fp16_format_type): New Enum and EnumValue entries.
15680 (mstructure-size-boundary=): Use UInteger and Init.
15681 (mtp=): Use Enum and Init.
15682 (arm_tp_type): New Enum and EnumValue entries.
15683
15684 2011-05-18 Richard Guenther <rguenther@suse.de>
15685
15686 PR tree-optimization/49018
15687 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
15688 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
15689 gimple_has_side_effects.
15690
15691 2011-05-18 Richard Guenther <rguenther@suse.de>
15692
15693 * gimple.c (gimple_register_type_1): New function, split out from ...
15694 (gimple_register_type): ... here. Avoid infinite recursion.
15695
15696 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
15697
15698 PR tree-optimization/41881
15699 * tree-vectorizer.h (struct _loop_vec_info): Add new field
15700 reduction_chains along with a macro for its access.
15701 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
15702 (destroy_loop_vec_info): Free reduction chains.
15703 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
15704 (vect_is_slp_reduction): New function.
15705 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
15706 (vect_create_epilog_for_reduction): Support SLP reduction chains.
15707 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
15708 definition types for reduction chains.
15709 (vect_supported_load_permutation_p): Don't allow permutations for
15710 reduction chains.
15711 (vect_analyze_slp_instance): Support reduction chains.
15712 (vect_analyze_slp): Try to build SLP instance from reduction chains.
15713 (vect_get_constant_vectors): Handle reduction chains.
15714 (vect_schedule_slp_instance): Mark the first statement of the
15715 reduction chain as reduction.
15716
15717 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
15718
15719 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
15720 names for group elements access.
15721 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
15722 reduction chains as well. Remove data reference and interleaving
15723 related words from the fields names.
15724 * tree-vect-loop.c (vect_transform_loop): Use new names for group
15725 elements access.
15726 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
15727 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
15728 vect_update_interleaving_chain, vect_same_range_drs,
15729 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
15730 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
15731 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
15732 vect_analyze_group_access, vect_analyze_data_ref_access,
15733 vect_create_data_ref_ptr, vect_transform_strided_load,
15734 vect_record_strided_load_vectors): Likewise.
15735 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
15736 vect_model_load_cost, vectorizable_store, vectorizable_load,
15737 vect_remove_stores, new_stmt_vec_info): Likewise.
15738 * tree-vect-slp.c (vect_build_slp_tree,
15739 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
15740
15741 2011-05-18 Richard Guenther <rguenther@suse.de>
15742
15743 PR middle-end/48989
15744 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
15745 operand verification.
15746 (verify_gimple_assign_binary): Likewise.
15747 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
15748 to non-1-precision BOOLEAN_TYPEs.
15749
15750 2011-05-18 Tom de Vries <tom@codesourcery.com>
15751
15752 PR target/45098
15753 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
15754
15755 2011-05-18 Jakub Jelinek <jakub@redhat.com>
15756
15757 PR tree-optimization/49000
15758 * tree-ssa.c (execute_update_addresses_taken): Call
15759 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
15760 be rewritten and decl has been marked for renaming, reset
15761 the debug stmt.
15762
15763 2011-05-17 Joseph Myers <joseph@codesourcery.com>
15764
15765 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
15766 enum_opts_set when testing if attributes have set -mfpmath=.
15767
15768 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15769
15770 * config/mips/mips.c (mips_handle_option): Remove unused variable.
15771
15772 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
15773
15774 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
15775 info->entry with 0
15776 * tree-inline.c (maybe_inline_call_in_expr): Initialize
15777 id.transform_lang_insert_block with NULL.
15778
15779 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
15780
15781 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
15782 (output_fp_compare): Change args 3 and 4 to bool.
15783 (ix86_expand_call): Change arg 6 to bool.
15784 (ix86_attr_length_immediate_default): Change arg 2 to bool.
15785 (ix86_attr_length_vex_default): Change arg 3 to bool.
15786 * config/i386/i386.md: Update all uses.
15787 * config/i386/i386.c: Ditto.
15788 (ix86_flags_dependent): Change return type to bool.
15789
15790 2011-05-17 Richard Guenther <rguenther@suse.de>
15791
15792 * gimple.c (type_hash_pair_compare): Fix comparison.
15793
15794 2011-05-17 Richard Guenther <rguenther@suse.de>
15795
15796 * gimple.c (iterative_hash_gimple_type): Simplify singleton
15797 case some more, fix final hash value of the non-singleton case.
15798
15799 2011-05-17 Richard Guenther <rguenther@suse.de>
15800
15801 PR bootstrap/49013
15802 Revert
15803 2011-05-16 Richard Guenther <rguenther@suse.de>
15804
15805 * gimple.c (gimple_types_compatible_p_1): Use names of the
15806 type itself, not its main variant.
15807 (iterative_hash_gimple_type): Likewise.
15808
15809 2011-05-17 Richard Guenther <rguenther@suse.de>
15810
15811 * gimple.c (gimple_register_canonical_type): Use the main-variant
15812 leader for computing the canonical type.
15813
15814 2011-05-17 Nick Clifton <nickc@redhat.com>
15815
15816 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
15817 moves.
15818
15819 * config/rx/rx.md: Add peephole to remove redundant extensions
15820 after loads.
15821 (bitset_in_memory): Use rx_restricted_mem_operand.
15822 (bitinvert_in_memory): Likewise.
15823 (bitclr_in_memory): Likewise.
15824
15825 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
15826 Nick Clifton <nickc@redhat.com>
15827
15828 * config/rx/rx.md: Add peepholes to match a register move followed
15829 by a comparison of the moved register. Replace these with an
15830 addition of zero that does both actions in one instruction.
15831
15832 2011-05-17 Jakub Jelinek <jakub@redhat.com>
15833
15834 PR target/48986
15835 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
15836 predicate to allow CONST_INT.
15837 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
15838
15839 2011-05-16 Joseph Myers <joseph@codesourcery.com>
15840
15841 * opts-common.c (opt_enum_arg_to_value): New.
15842 * opts.h (opt_enum_arg_to_value): Declare.
15843 * config/i386/i386.opt (fpmath): Remove.
15844 (mfpmath=): Use Enum, Init and Save.
15845 (fpmath_unit): New Enum and EnumValue entries.
15846 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
15847 name for function fpmath state.
15848 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
15849 * config/i386/i386.c: Include diagnostic.h.
15850 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
15851 (ix86_target_string): Take enum fpmath_unit value instead of string.
15852 (ix86_debug_options): Update call to ix86_target_string.
15853 (ix86_option_override_internal): Don't process fpmath strings here.
15854 (x86_function_specific_save, ix86_function_specific_restore):
15855 Don't handle fpmath state specially.
15856 (ix86_function_specific_print): Pass fpmath state to
15857 ix86_target_string instead of printing in this function.
15858 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
15859 Handle enum attributes.
15860 (IX86_ATTR_ENUM, ix86_opt_enum): New.
15861 (ix86_valid_target_attribute_tree): Update option_strings
15862 handling. Handle fpmath as enum option.
15863 (ix86_can_inline_p): Update field names for function fpmath state.
15864 (ix86_expand_builtin): Update call to ix86_target_string.
15865 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
15866 (ix86_fpmath): Remove.
15867 * config/i386/t-i386 (i386.o): Update dependencies.
15868
15869 2011-05-16 Joseph Myers <joseph@codesourcery.com>
15870
15871 PR preprocessor/48677
15872 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
15873 from decoded_options[0], not from itself.
15874
15875 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
15876
15877 * config/i386/constraints.md (z): New constraint.
15878 * config/i386/i386.c (c): New mode attribute.
15879 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
15880 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
15881 constraint for operand 0.
15882 (*call_vzeroupper): Ditto.
15883 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
15884 (*call_rex64_ms_sysv_vzeroupper): Ditto.
15885 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
15886 Use "lzm" constraint for operand 0.
15887 (*call_pop_vzeroupper): Ditto.
15888 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
15889 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
15890 constraint for operand 0.
15891 (*sibcall_vzeroupper): Ditto.
15892 (*sibcall_rex64_ms_sysv): Ditto.
15893 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
15894 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
15895 *sibcall_pop_1. Use "Uz" constraint for operand 0.
15896 (*sibcall_pop_vzeroupper): Ditto.
15897 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
15898 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
15899 mode iterator. Use "<c>zm" constraint for operand 1.
15900 (*call_value_vzeroupper): Ditto.
15901 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
15902 for operand 1.
15903 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
15904 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
15905 *call_value_pop_1. Use "lzm" constraint for operand 1.
15906 (*call_value_pop_vzeroupper): Ditto.
15907 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
15908 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
15909 mode iterator. Use "Uz" constraint for operand 1.
15910 (*sibcall_value_vzeroupper): Ditto.
15911 (*sibcall_value_rex64_ms_sysv): Ditto.
15912 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
15913 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
15914 constraint for operand 1.
15915 (*sibcall_value_pop_vzeroupper): Ditto.
15916 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
15917 and "z" constraint for operand 2.
15918 (*tls_global_dynamic_32_gnu): Ditto.
15919 (*tls_local_dynamic_base_32_gnu): Ditto.
15920 (*tls_local_dynamic_base_64): Ditto.
15921 (*tls_local_dynamic_32_once): Ditto.
15922 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
15923 Update all callers.
15924 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
15925
15926 2011-05-16 Richard Guenther <rguenther@suse.de>
15927
15928 * gimple.c (gimple_types_compatible_p_1): Use names of the
15929 type itself, not its main variant.
15930 (iterative_hash_gimple_type): Likewise.
15931
15932 2011-05-16 Richard Guenther <rguenther@suse.de>
15933
15934 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
15935 always visit pointer target and function result and argument types.
15936
15937 2011-05-16 Jason Merrill <jason@redhat.com>
15938
15939 PR c++/48999
15940 * tree-inline.c (copy_statement_list): Put back recursion.
15941
15942 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
15943
15944 PR target/27663
15945 PR target/41076
15946 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
15947 * config/avr/avr.md ("*ior<mode>qi.byte0",
15948 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
15949
15950 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
15951
15952 PR target/45099
15953 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
15954 register is needed for a function argument.
15955
15956 2011-05-16 Richard Guenther <rguenther@suse.de>
15957
15958 * gimple.c (struct type_hash_pair): New type.
15959 (type_hash_pair_compare): New function.
15960 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
15961
15962 2011-05-16 Revital Eres <revital.eres@linaro.org>
15963
15964 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
15965
15966 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
15967
15968 * config/i386/i386.md (floating point move splitters): Fix
15969 usage of standard_80387_constant_p.
15970 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
15971
15972 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
15973
15974 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
15975
15976 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
15977
15978 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
15979 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
15980 (tree_ssa_lim_finalize): Likewise.
15981
15982 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
15983
15984 * config/i386/constraint.md (Yd, Yx): New register constraints.
15985 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
15986 Yd conditional register constraint.
15987 (*movtf_internal): Use standard_sse_constant_opcode.
15988 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
15989 Yx conditional register constraint.
15990 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
15991 Yd conditional register constraint. Use standard_sse_constant_p to
15992 check for valid SSE constants and call standard_sse_constant_opcode to
15993 output SSE insn.
15994 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
15995 constants and call standard_sse_constant_opcode to output SSE insn.
15996 * config/i386/i386.c (ix86_option_ovverride_internal): Set
15997 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
15998 optimize_size is set.
15999 (standard_sse_constant_opcode): Output conditional AVX insn templates.
16000
16001 2011-05-14 Tobias Burnus <burnus@net-b.de>
16002
16003 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
16004
16005 2011-05-13 Martin Jambor <mjambor@suse.cz>
16006
16007 * ipa-prop.c (ipa_cst_from_jfunc): New function.
16008 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
16009 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
16010 (evaluate_conditions_for_ipcp_clone): Removed.
16011 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
16012 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
16013 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
16014
16015 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
16016
16017 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
16018 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
16019 lieu of MAY_HAVE_DEBUG_STMTS.
16020 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
16021 debug statements if !MAY_HAVE_DEBUG_STMTS.
16022
16023 2011-05-13 Martin Thuresson <martint@google.com>
16024
16025 PR gcov-profile/47793
16026 * libgcov.c (gcov_exit): Support relative profile paths.
16027 * doc/invoke.texi (-fprofile-dir): Update for above change.
16028
16029 2011-05-13 Richard Guenther <rguenther@suse.de>
16030
16031 * gimple.c (gimple_canonical_types_compatible_p): Do not use
16032 type-pair caching, do not compare hashes.
16033
16034 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
16035
16036 PR middle-end/48965
16037 * tree-cfg.c (edge_to_cases_cleanup): Return true.
16038 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
16039
16040 2011-05-13 Kai Tietz <ktietz@redhat.com>
16041
16042 * gimplify.c (gimplify_expr): Make sure operand is boolified.
16043 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
16044 compatible type for TRUTH_NOT_EXPR.
16045
16046 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
16047
16048 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
16049 (ix86_hard_regno_mode_ok): Change return value to bool. Use
16050 can_create_pseudo_p ().
16051
16052 2011-05-13 Richard Guenther <rguenther@suse.de>
16053
16054 PR lto/48978
16055 * gimple.c (iterative_hash_gimple_type): Revert change in
16056 pointer target and function result and argument hashing.
16057
16058 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
16059
16060 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
16061 (*movxf_internal_nointeger): Ditto.
16062 (*movdf_internal_rex64): Ditto.
16063 (*movdf_internal): Ditto.
16064 (*movdf_internal_nointeger): Ditto.
16065 (*movsf_internal): Ditto.
16066 (sincos splitters): Use can_create_pseudo ().
16067
16068 2011-05-13 Joseph Myers <joseph@codesourcery.com>
16069
16070 * config/i386/i386-opts.h: New.
16071 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
16072 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
16073 ix86_section_threshold): Remove.
16074 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
16075 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
16076 OPT_mbranch_cost_.
16077 (ix86_option_override_internal): Don't decode strings for options
16078 other than -march=, -mtune= and -mfpmath=. Don't allow for
16079 __attribute__ uses in remaining diagnostics for options with
16080 string arguments. Don't check for integer arguments being negative.
16081 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
16082 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
16083 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
16084 ix86_branch_cost, ix86_section_threshold): Remove.
16085 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
16086 HeaderInclude.
16087 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
16088 but not Var.
16089 (masm=): Use Enum and Init.
16090 (asm_dialect): New Enum and EnumValue entries.
16091 (mbranch-cost=): Use UInteger.
16092 (mlarge-data-threshold=): Use UInteger and Init.
16093 (mcmodel=): Use Enum and Init.
16094 (cmodel): New Enum and EnumValue entries.
16095 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
16096 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
16097 mregparm=): Use UInteger.
16098 (mstringop-strategy=): Use Enum and Init.
16099 (stringop_alg): New Enum and EnumValue entries.
16100 (mtls-dialect=): Use Enum and Init.
16101 (tls_dialect): New Enum and EnumValue entries.
16102 (mabi=): Use Enum and Init.
16103 (calling_abi): New Enum and EnumValue entries.
16104 (mveclibabi=): Use Enum and Init.
16105 (ix86_veclibabi): New Enum and EnumValue entries.
16106
16107 2011-05-13 Nick Clifton <nickc@redhat.com>
16108
16109 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
16110 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
16111
16112 2011-05-13 Kai Tietz <ktietz@redhat.com>
16113
16114 PR middle-end/48984
16115 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
16116 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
16117 (gimple_boolify): Check for cast for boolean_type_node instead for
16118 BOOLEAN_TYPE.
16119
16120 2011-05-13 Richard Guenther <rguenther@suse.de>
16121
16122 PR tree-optimization/48172
16123 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
16124 multiplying by number of iterations for equal step.
16125 (vect_create_cond_for_alias_checks): Likewise.
16126
16127 2011-05-13 Andreas Schwab <schwab@redhat.com>
16128
16129 * configure.ac: Use AS_HELP_STRING throughout.
16130 * configure: Regenerate.
16131
16132 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
16133
16134 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
16135 (ix86_emit_restore_regs_using_mov): Likewise.
16136 (ix86_emit_restore_sse_regs_using_mov): Likewise.
16137
16138 2011-05-12 Anatoly Sokolov <aesok@post.ru>
16139
16140 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
16141 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
16142 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
16143 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
16144 RTX_OK_FOR_OLO10_P): ...here.
16145 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
16146 SYMBOLIC_CONST.
16147
16148 2011-05-12 Kai Tietz <ktietz@redhat.com>
16149
16150 * gimplify.c (gimple_boolify): Re-boolify expression
16151 arguments even if expression type is of kind BOOLEAN_TYPE.
16152 (gimplify_boolean_expr): Removed.
16153 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
16154 and XOR. Additional take care that we keep expression's type.
16155 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
16156 of TRUTH_AND|OR|XOR_EXPR.
16157
16158 2011-05-12 Jakub Jelinek <jakub@redhat.com>
16159
16160 PR tree-optimization/48975
16161 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
16162 on all bbs here and free and clear ifc_bbs at the end.
16163
16164 2011-05-12 Richard Guenther <rguenther@suse.de>
16165
16166 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
16167 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
16168 until after simple checks.
16169 (gimple_types_compatible_p): Likewise.
16170 (iterative_hash_gimple_type): Always hash pointer targets
16171 and function return and argument types.
16172 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
16173 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
16174 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
16175 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
16176 completely in the simple compare section.
16177 (gimple_register_canonical_type): Query the cache again after
16178 registering.
16179
16180 2011-05-12 Richard Guenther <rguenther@suse.de>
16181
16182 PR tree-optimization/48172
16183 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
16184 the number of iterations from the segment size calculation.
16185 (vect_create_cond_for_alias_checks): Adjust.
16186
16187 2011-05-12 Jakub Jelinek <jakub@redhat.com>
16188
16189 PR debug/48967
16190 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
16191 if validate_subreg fails.
16192
16193 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
16194
16195 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
16196 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
16197 early.
16198
16199 2011-05-12 DJ Delorie <dj@redhat.com>
16200
16201 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
16202 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
16203 created builtin into rx_builtins array.
16204 (rx_builtin_decl): New function.
16205 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
16206
16207 2011-05-12 DJ Delorie <dj@redhat.com>
16208 Nick Clifton <nickc@redhat.com>
16209
16210 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
16211 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
16212 (rx_is_legitimate_address): Add pre-decrement and post-increment
16213 addressing in HImode and QImode. Fix test for out of range
16214 REG+INT addressing.
16215 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
16216 (rx_align_for_label): Test label before extracting its usage count.
16217 (rx_adjust_insn_lengths): Fix selection of insn codes.
16218 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
16219
16220 2011-05-11 Jason Merrill <jason@redhat.com>
16221
16222 * tree.c (type_hash_canon): Use struct tree_type_non_common.
16223
16224 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
16225
16226 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
16227 reindent the subsequent block.
16228
16229 2011-05-11 Satoru Takabayashi <satorux@google.com>
16230 Paul Pluzhnikov <ppluzhnikov@google.com>
16231
16232 * doc/install.texi (Configuration): Document --with-linker-hash-style.
16233 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
16234 * config.in: Add LINKER_HASH_STYLE.
16235 * configure.ac: Add --with-linker-hash-style.
16236 * configure: Regenerate.
16237
16238 2011-05-11 Richard Guenther <rguenther@suse.de>
16239
16240 PR middle-end/48964
16241 * gimple.c (iterative_hash_canonical_type): Fix typo.
16242
16243 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
16244
16245 * config/i386/i386.c (legitimize_tls_address)
16246 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
16247 expanders directly for TARGET_GNU2_TLS. Determine pic and
16248 __tls_get_addr symbol reference here. Update call to
16249 gen_tls_global_dynamic_{32,64} for added arguments.
16250 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
16251 expanders directly for TARGET_GNU2_TLS. Determine
16252 __tls_get_addr symbol reference here. Update call to
16253 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
16254 unique UNSPEC REG_EQUIV to libcall block.
16255 (ix86_tls_get_addr): Declare static.
16256 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
16257 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
16258 Do not determine pic and __tls_get_addr symbol reference here. Do not
16259 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
16260 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
16261 (tls_global_dynamic_64): Add operand 2. Do not determine
16262 __tls_get_addr symbol reference here. Do not call
16263 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
16264 (tls_local_dynamic_base64): Ditto for operand 1.
16265
16266 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
16267
16268 * function.c (expand_function_start): Initialize stack_check_probe_note
16269 only if the generic stack checking mechanism is used.
16270
16271 2011-05-11 Richard Guenther <rguenther@suse.de>
16272
16273 PR tree-optimization/15256
16274 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
16275 (A & B) | C, combine (A op CST1) op CST2.
16276 (tree_ssa_forward_propagate_single_use_vars): Only bother to
16277 visit assigns that have uses.
16278
16279 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
16280
16281 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
16282 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
16283 (unpack_ts_type_common_value_fields): ...this. Update comment.
16284 (unpack_value_fields): Adjust for renaming.
16285 (lto_input_ts_type_tree_pointers): Split into...
16286 (lto_input_ts_type_common_tree_pointer): ...this and...
16287 (lto_input_ts_type_non_common_tree_pointers): ...this.
16288 (lto_input_tree_pointers): Adjust for above split.
16289 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
16290 (pack_ts_type_common_value_fields): ...this. Update comment.
16291 (lto_output_ts_type_tree_pointers): Split into...
16292 (lto_output_ts_type_common_tree_pointers): ...this and...
16293 (lto_output_ts_type_non_common_tree_pointers): ...this.
16294 (lto_output_tree_pointers): Adjust for above split.
16295 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
16296 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
16297 * stor-layout.c (vector_type_mode): Adjust location of mode field.
16298 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
16299 Define.
16300 (struct tree_type): Split into...
16301 (struct tree_type_common: ...this and...
16302 (struct tree_type_with_lang_specific): ...this and...
16303 (struct tree_type_non_common): ...this. Adjust accessor macros
16304 accordingly.
16305 (TYPE_VALUES_RAW): Define.
16306 (union tree_node): Update for above changes.
16307 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
16308 TS_TYPE_NON_COMMON.
16309 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
16310 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
16311 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
16312 * treestructu.def (TS_TYPE): Remove.
16313 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
16314 Define.
16315
16316 2011-05-11 Jakub Jelinek <jakub@redhat.com>
16317
16318 PR debug/48159
16319 * tree-ssa.c (reset_debug_uses): New function.
16320 * tree-flow.h (reset_debug_uses): New prototype.
16321 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
16322 * tree-loop-distribution.c (generate_loops_for_partition): Call
16323 reset_debug_uses on the stmts that will be removed. Keep around
16324 all debug stmts, don't count them as bits in partition bitmap.
16325 (generate_builtin): Don't count debug stmts or labels as bits in
16326 partition bitmap.
16327
16328 2011-05-11 Richard Guenther <rguenther@suse.de>
16329
16330 * gimple.c (gimple_type_hash_1): Merge with ...
16331 (gimple_type_hash): ... this.
16332 (gtc_visit): Remove mode parameter and simplify accordingly.
16333 (gimple_types_compatible_p_1): Likewise.
16334 (gimple_types_compatible_p): Likewise.
16335 (iterative_hash_gimple_type): Likewise.
16336 (visit): Likewise.
16337 (gimple_type_eq): Adjust.
16338
16339 2011-05-11 Revital Eres <revital.eres@linaro.org>
16340
16341 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
16342 enters the branch create an anti edge in the opposite direction
16343 to prevent the creation of reg-moves.
16344 * modulo-sched.c: Adjust comment to reflect the fact we are
16345 scheduling closing branch.
16346 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
16347 (stage_count): New field in struct partial_schedule.
16348 (calculate_stage_count): New function.
16349 (normalize_sched_times): Rename to reset_sched_times and handle
16350 incrementing the sched time of the nodes by a constant value
16351 passed as parameter.
16352 (duplicate_insns_of_cycles): Skip closing branch.
16353 (sms_schedule_by_order): Schedule closing branch.
16354 (ps_insn_find_column): Handle closing branch.
16355 (sms_schedule): Call reset_sched_times and adjust the code to
16356 support scheduling of the closing branch.
16357 (ps_insert_empty_row): Update calls to normalize_sched_times
16358 and rotate_partial_schedule functions.
16359
16360 2011-05-11 Richard Guenther <rguenther@suse.de>
16361
16362 PR middle-end/48953
16363 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
16364
16365 2011-05-11 Joseph Myers <joseph@codesourcery.com>
16366
16367 * opts.c (finish_options): Move warning settings from process_options.
16368 * toplev.c (process_options): Move warning settings to finish_options.
16369
16370 2011-05-11 Richard Guenther <rguenther@suse.de>
16371
16372 PR tree-optimization/18041
16373 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
16374 (simplify_bitwise_binary): ... this. Handle operand conversions
16375 by applying them to the result instead.
16376 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
16377
16378 2011-05-11 Richard Guenther <rguenther@suse.de>
16379
16380 * gimple.c (gimple_canonical_types_compatible_p): Split out
16381 from gimple_types_compatible_p and friends. Do not recurse
16382 to pointed-to types.
16383 (gimple_canonical_type_eq): Use it.
16384 (iterative_hash_canonical_type): Split out from
16385 iterative_hash_gimple_type and friends. Do not recurse
16386 to pointed-to types.
16387 (gimple_canonical_type_hash): Use it, allocate the hash here.
16388
16389 2011-05-11 Revital Eres <revital.eres@linaro.org>
16390
16391 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
16392 recognizing doloop.
16393
16394 2011-05-11 Revital Eres <revital.eres@linaro.org>
16395
16396 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
16397 instead of PREV_INSN.
16398
16399 2011-05-11 Revital Eres <revital.eres@linaro.org>
16400
16401 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
16402 * loop-doloop.c (doloop_condition_get): Likewise.
16403 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
16404 (doloop_end): New.
16405 * config/arm/arm.md (*addsi3_compare0): Remove "*".
16406
16407 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
16408
16409 * tree.def (CASE_LABEL_EXPR): Add an operand.
16410 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
16411
16412 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16413
16414 * c-decl.c (c_override_global_bindings_to_false): Remove.
16415 (global_bindings_p): Don't check
16416 c_override_global_bindings_to_false.
16417 * c-tree.h (c_override_global_bindings_to_false): Remove.
16418 * c-typeck.c (composite_type): Don't set
16419 c_override_global_bindings_to_false.
16420
16421 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
16422
16423 PR target/48857, 48495
16424 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
16425 (VSX_MODE): Ditto.
16426 (VSX_MOVE_MODE): Ditto.
16427 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
16428 VSX vector types. Add V2DImode.
16429 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
16430 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
16431 (MODES_TIEABLE_P): Ditto.
16432
16433 * config/rs6000/rs6000.c (rs6000_emit_move): Use
16434 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
16435 VSX_VECTOR_MODE.
16436 (init_cumulative_args): Ditto.
16437 (rs6000_function_arg_boundary): Ditto.
16438 (rs6000_function_arg_advance_1): Ditto.
16439 (rs6000_function_arg): Ditto.
16440 (rs6000_function_ok_for_sibcall): Ditto.
16441 (emit_frame_save): Ditto.
16442 (rs6000_function_value): Ditto.
16443 (rs6000_libcall_value): Ditto.
16444
16445 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16446
16447 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
16448 i386/darwin-lib.h to $libgcc_tm_file.
16449 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
16450
16451 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16452
16453 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
16454
16455 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16456
16457 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
16458 * config/rs6000/rs6000-tables.opt: New file (generated).
16459 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
16460 rs6000/rs6000-tables.opt to extra_options.
16461 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
16462 * config/rs6000/rs6000.c (rs6000_select): Remove.
16463 (processor_target_table): Move contents to rs6000-cpus.def.
16464 (darwin_rs6000_override_options): Check
16465 global_options_set.x_rs6000_cpu_index instead of
16466 rs6000_select[1].string.
16467 (rs6000_option_override_internal): Likewise.
16468 (rs6000_handle_option): Don't assert that global structures are in
16469 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
16470 (rs6000_default_cpu): New variable.
16471 (rs6000_file_start): Set it instead of local default_cpu. Check
16472 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
16473 global_options_set.x_rs6000_tune_index instead of rs6000_select.
16474 (rs6000_darwin_file_start): Check rs6000_default_cpu and
16475 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
16476 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
16477 rs6000_select): Remove.
16478 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
16479 Remove.
16480 (mcpu=, mtune=): Use Var, Init, Enum and Save.
16481 * config/rs6000/t-rs6000
16482 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
16483 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
16484 global_options_set.x_rs6000_cpu_index instead of
16485 rs6000_select[1].string.
16486 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
16487 global_options_set.x_rs6000_cpu_index instead of
16488 rs6000_select[1].string.
16489
16490 2011-05-10 Joseph Myers <joseph@codesourcery.com>
16491
16492 * config.gcc (libgcc_tm_file): Define instead of including files
16493 from ../../libgcc/config/ in tm_file.
16494 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
16495 * configure: Regenerate.
16496 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
16497 libgcc_tm.h, cs-libgcc_tm.h): New.
16498 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
16499 (clean): Remove libgcc_tm.h.
16500 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
16501 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
16502 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
16503
16504 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
16505
16506 PR target/48896
16507 * config/avr/avr.c (avr_ret_register): Return unsigned int
16508 instead of int.
16509 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
16510 it to avr_libcall_value.
16511 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
16512 expand_expr.
16513 (avr_expand_binop_builtin): Ditto.
16514 (avr_expand_unop_builtin): Ditto.
16515
16516 2011-05-10 DJ Delorie <dj@redhat.com>
16517
16518 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
16519 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
16520 * config/rx/rx.c (rx_align_for_label): Add label and
16521 uses_threshold parameters. Do not align when the label is not
16522 used enough.
16523 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
16524
16525 2011-05-10 Richard Guenther <rguenther@suse.de>
16526
16527 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
16528 a series of conversions and apply foldings similar to what
16529 fold-const does.
16530 (tree_ssa_forward_propagate_single_use_vars): Call it.
16531
16532 2011-05-10 Jakub Jelinek <jakub@redhat.com>
16533
16534 PR tree-optimization/48611
16535 PR tree-optimization/48794
16536 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
16537 referenced from RESX or EH_DISPATCH arguments.
16538
16539 PR debug/48928
16540 * dfp.c (decimal_to_decnumber): Handle conversion from
16541 dconst{1,2,m1,half}.
16542
16543 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16544
16545 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
16546 for !flag_prefer_avx128.
16547 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
16548
16549 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
16550
16551 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
16552 (fold_ternary_loc): Use expr_location_or.
16553
16554 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
16555
16556 PR debug/48853
16557 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
16558 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
16559 Pmode and mem_mode is not VOIDmode.
16560
16561 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
16562
16563 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
16564 TYPE_QUAL_RESTRICT): Convert to enum.
16565
16566 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16567
16568 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
16569 (const_pow2_1_to_8_operand): Ditto.
16570 (const_pow2_1_to_128_operand): Ditto.
16571 (const_pow2_1_to_32768_operand): Ditto.
16572 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
16573 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
16574 in insn constraint to check integer value of operand 3.
16575 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
16576
16577 (PINSR_MODE): New mode iterator.
16578 (sse2p4_1): New mode attribute.
16579 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
16580 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
16581 iterator. Use const_int_operand instead of
16582 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
16583 exact_log2 in insn constraint to check integer value of operand 3.
16584
16585 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16586
16587 * config/i386/sse.md (blendbits): Remove mode attribute.
16588 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
16589 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
16590 Check integer value of operand 3 in insn constraint.
16591
16592 2011-05-09 Richard Guenther <rguenther@suse.de>
16593
16594 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
16595 for diagnostics.
16596 (lto_symtab_merge): Likewise. Do not register types here.
16597 (lto_symtab_merge_decls_2): Likewise.
16598 (lto_symtab_merge_decls_1): Likewise.
16599 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
16600 * gimple.c (enum gtc_mode): Declare.
16601 (gimple_types_compatible_p): Make static.
16602
16603 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16604
16605 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
16606 temporary register to match Pmode.
16607
16608 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16609
16610 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
16611 and *vec_concatv4si_1_avx.
16612
16613 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16614
16615 PR rtl-optimization/48927
16616 * ira-conflicts.c (commutative_constraint_p): Use
16617 recog_data.alternative_enabled_p to disable alternatives where
16618 "enabled" attribute is false.
16619 (get_dup_num): Ditto.
16620 * ira-lives.c (single_reg_class): Ditto.
16621 (ira_implicitly_set_insn_hard_regs): Ditto.
16622
16623 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
16624
16625 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
16626 (dataflow_set_preserve_mem_locs): Likewise.
16627
16628 2011-05-09 Philipp Thomas <pth@suse.de>
16629
16630 * config/mep/mep.c (mep_validate_vliw): Syntax description
16631 should not be translated.
16632
16633 2011-05-09 Joseph Myers <joseph@codesourcery.com>
16634
16635 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
16636 * config/mips/mips-tables.opt: New file (generated).
16637 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
16638 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
16639 MIPS_ARCH_OPTION_NATIVE): Define.
16640 * config/mips/mips.c (mips_cpu_info_table): Move contents to
16641 mips-cpus.def.
16642 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
16643 mips_parse_cpu): Remove.
16644 (mips_cpu_info_from_opt, mips_default_arch): New.
16645 (mips_handle_option): Don't assert that global structures are in
16646 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
16647 (mips_option_override): Use new variables and functions to set
16648 state of these options. Use strcmp to check for individual CPU names.
16649 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
16650 definition.
16651 * config/mips/mips.opt (march=): Use ToLower and Enum.
16652 (mips): Use ToLower, Enum and Var.
16653 (mtune=): Use ToLower and Enum.
16654 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
16655
16656 2011-05-08 Jan Hubicka <jh@suse.cz>
16657
16658 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
16659 Arrange type pairs to be UID ordered.
16660 (gimple_lookup_type_leader): Make inline.
16661
16662 2011-05-09 Nick Clifton <nickc@redhat.com>
16663
16664 PR target/48899
16665 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
16666 PROCESSOR_DEFAULT.
16667
16668 PR target/48897
16669 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
16670 variable 's'.
16671
16672 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
16673
16674 * combine.c (simplify_comparison): Abstract out parts into...
16675 (simplify_compare_const): ... new function.
16676 (try_combine): Generalize parallel arithmetic/compare combining
16677 to call simplify_compare_const() and CANONICALIZE_COMPARE().
16678
16679 2011-05-08 Jan Hubicka <jh@suse.cz>
16680
16681 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
16682 (cgraph_create_virtual_clone): Call hooks once virtual clone
16683 is finished.
16684 * cgraph.h (cgraph_clone_node): Update prototype.
16685 * ipa-cp.c (ipcp_estimate_growth): Use
16686 estimate_ipcp_clone_size_and_time.
16687 * ipa-inline-transform.c (clone_inlined_nodes): Update.
16688 * lto-cgraph.c (input_node): Update.
16689 * ipa-inline.c (recursive_inlining): Update.
16690 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
16691 (evaluate_conditions_for_known_args): Break out from ...
16692 (evaluate_conditions_for_edge): ... here.
16693 (evaluate_conditions_for_ipcp_clone): New function.
16694 (inline_node_duplication_hook): Update clone summary based
16695 on parameter map.
16696 (estimate_callee_size_and_time): Rename to ...
16697 (estimate_node_size_and_time): take NODE instead of EDGE;
16698 take POSSIBLE_TRUTHS as argument.
16699 (estimate_callee_size_and_time): Update.
16700 (estimate_ipcp_clone_size_and_time): New function.
16701 (do_estimate_edge_time): Update.
16702
16703 2011-05-08 Richard Guenther <rguenther@suse.de>
16704
16705 PR middle-end/48908
16706 PR middle-end/48905
16707 * expmed.c (expand_shift_1): Compute adjusted constant shift
16708 amount manually.
16709
16710 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
16711
16712 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
16713
16714 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
16715
16716 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
16717
16718 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
16719
16720 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
16721
16722 2011-05-07 Jan Hubicka <jh@suse.cz>
16723
16724 * ipa-inline-transform.c (inline_call): Account when program size
16725 decreases.
16726 * ipa-inline.c (relative_time_benefit): New function.
16727 (edge_badness): Reorganize to be power 2 based; fix thinko when
16728 computing badness for negative growth; update comments to match
16729 reality; better dumps.
16730
16731 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
16732
16733 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
16734 type to bool and adjust comment.
16735 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
16736 (fold_mathfn_compare): Remove calls to global_bindings_p.
16737 (fold_inf_compare): Likewise.
16738 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
16739 * c-tree.h (global_bindings_p): Adjust prototype.
16740 * c-decl.c (global_bindings_p): Return bool and simplify.
16741
16742 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
16743
16744 PR tree-optimization/48837
16745 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
16746 when accumulator transformation is performed.
16747
16748 2011-05-06 Jan Hubicka <jh@suse.cz>
16749
16750 * i386.h (ix86_tune_indices): Add
16751 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
16752 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
16753 * i386.c (initial_ix86_tune_features): Add
16754 X86_SOFTARE_PREFETCHING_BENEFICIAL.
16755 (software_prefetching_beneficial_p): Remove predicate.
16756 (ix86_option_override_internal): Use new macro.
16757
16758 2011-05-06 Jan Hubicka <jh@suse.cz>
16759
16760 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
16761
16762 2011-05-06 Jan Hubicka <jh@suse.cz>
16763
16764 * cgraph.c (cgraph_add_thunk): Create real function node instead
16765 of alias node; finalize it and mark needed/reachale; arrange visibility
16766 to be right and add it into the corresponding same comdat group list.
16767 (dump_cgraph_node): Dump thunks.
16768 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
16769 cgraph_function_with_gimple_body_p,
16770 cgraph_first_function_with_gimple_body,
16771 cgraph_next_function_with_gimple_body): New functions.
16772 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
16773 New macros.
16774 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
16775 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
16776 * cgraphunit.c (cgraph_finalize_function): Only look into possible
16777 devirtualization when optimizing.
16778 (verify_cgraph_node): Verify thunks.
16779 (cgraph_analyze_function): Analyze thunks.
16780 (cgraph_mark_functions_to_output): Output thunks only in combination
16781 with function they are assigned to.
16782 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
16783 alias into normal node.
16784 (assemble_thunks): New functoin.
16785 (cgraph_expand_function): Use it.
16786 * lto-cgraph.c (lto_output_node): Stream thunks.
16787 (input_overwrite_node): Stream in thunks.
16788 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
16789 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
16790 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
16791 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
16792 (inline_analyze_function): Do not care about thunk jump functions.
16793 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
16794 * ipa-prop.c (ipa_prop_write_jump_functions): Use
16795 cgraph_function_with_gimple_body_p.
16796 * passes.c (do_per_function_toporder): Use
16797 cgraph_function_with_gimple_body_p.
16798 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
16799 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
16800 (function_called_by_processed_nodes_p): Likewise.
16801
16802 2011-05-06 Joseph Myers <joseph@codesourcery.com>
16803
16804 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
16805 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
16806 entries.
16807 (mabi=): Replace with separate entries for mabi=altivec,
16808 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
16809 mabi=ieeelongdouble and mabi=ibmlongdouble.
16810 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
16811 check for -mabi=spe without SPE ABI support here.
16812 (rs6000_handle_option): Replace OPT_mabi_ handling with
16813 OPT_mabi_altivec and OPT_mabi_spe handling.
16814
16815 2011-05-06 Cary Coutant <ccoutant@google.com>
16816
16817 * dwarf2out.c (contains_subprogram_definition): New function.
16818 (should_move_die_to_comdat): Call it.
16819
16820 2011-05-06 Jeff Law <law@redhat.com>
16821
16822 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
16823 remove_ctrl_stmt_and_useless_edges.
16824 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
16825 (fixup_template_block, thread_single_edge): Likewise.
16826 (mark_threaded_blocks): Use THREAD_TARGET.
16827
16828 2011-05-06 Alan Modra <amodra@gmail.com>
16829
16830 PR target/48900
16831 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
16832 const0_rtx as the arg to the dummy __tls_get_addr libcall.
16833
16834 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
16835
16836 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
16837 constraint modifier to "r".
16838
16839 2011-05-06 Joseph Myers <joseph@codesourcery.com>
16840
16841 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
16842 fall through for OPT_mcmodel_.
16843
16844 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16845
16846 * config/s390/s390.c (s390_asm_trampoline_template): Comment
16847 instruction sizes.
16848 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
16849
16850 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16851
16852 PR target/47930
16853 * config/arm/arm.opt (marm): Document it.
16854 (mthumb): Reject negative variant.
16855
16856 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
16857
16858 PR target/48898
16859 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
16860 Fix typo in "ccvt" variable name.
16861
16862 2011-05-06 Tristan Gingold <gingold@adacore.com>
16863
16864 PR target/48895
16865 * config/vms/vms-ar.c (main): Remove cwd variable.
16866
16867 2011-05-06 Jakub Jelinek <jakub@redhat.com>
16868
16869 PR debug/48902
16870 * var-tracking.c (prepare_call_arguments): Move else before #endif.
16871
16872 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
16873
16874 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
16875 * gimplify.c (gimplify_switch_expr): Likewise.
16876 * omp-low.c (expand_omp_sections): Likewise.
16877 * tree-eh.c (lower_try_finally_switch): Likewise.
16878 (lower_eh_dispatch): Likewise.
16879 * tree.h (build_case_label): Declare.
16880 * tree.c (build_case_label): Define.
16881
16882 2011-05-05 Jason Merrill <jason@redhat.com>
16883
16884 PR c++/40975
16885 * tree-inline.c (copy_tree_r): Use copy_statement_list.
16886 (copy_statement_list): Don't recurse.
16887 * stor-layout.c (copy_self_referential_tree_r): Don't allow
16888 STATEMENT_LIST.
16889
16890 2011-05-05 Joseph Myers <joseph@codesourcery.com>
16891
16892 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
16893 through from -mfpu= handling.
16894 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
16895
16896 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
16897
16898 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
16899 POST_MODIFY.
16900
16901 2011-05-05 Steve Ellcey <sje@cup.hp.com>
16902
16903 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
16904 for 11.31.
16905 (hppa[12]*-*-hpux11*): Ditto.
16906 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
16907 * config/ia64/hpux-unix2003.h: New.
16908 * config/pa/pa-hpux1131.opt: New.
16909 * config/pa/pa-hpux1131.h: New.
16910 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
16911 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
16912 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
16913
16914 2011-05-05 Jakub Jelinek <jakub@redhat.com>
16915
16916 PR debug/48853
16917 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
16918 instead of mode as 3rd argument to recursive call.
16919 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
16920 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
16921 VOIDmode.
16922 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
16923 don't give up if mode is Pmode and mem_mode is not VOIDmode.
16924 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
16925 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
16926
16927 2011-05-05 Julian Brown <julian@codesourcery.com>
16928
16929 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
16930 parenthesis in D-register case.
16931
16932 2011-05-05 Joseph Myers <joseph@codesourcery.com>
16933
16934 * opt-functions.awk (var_type_struct): Handle Enum options.
16935 * optc-gen.awk: Don't check range of variables of character type.
16936 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
16937 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
16938 rs6000_sdata_name, rs6000_explicit_options): Remove.
16939 (rs6000_option_override_internal): Check for -malign-power here.
16940 Use global_options_set instead of rs6000_explicit_options.
16941 (rs6000_parse_fpu_option): Remove.
16942 (rs6000_handle_option): Access variables via opts and opts_set
16943 pointers. Use error_at and warning_at. Add fall-through
16944 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
16945 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
16946 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
16947 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
16948 here. Don't use rs6000_parse_fpu_option.
16949 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
16950 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
16951 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
16952 (mrecip=): Use Var.
16953 (mspe): Use Var and Save.
16954 (mtraceback=): Use Enum and Var.
16955 (rs6000_traceback_type): New Enum and EnumValue entries.
16956 (mfloat-gprs=): Use Enum, Var and Save.
16957 (rs6000_float_gprs): New Enum and EnumValue entries.
16958 (mlong-double-): use Var and Save.
16959 (msched-costly-dep=, minsert-sched-nops=): Use Var.
16960 (malign-): Use Enum and Var.
16961 (rs6000_alignment_flags): New Enum and EnumValue entries.
16962 (mfpu=): Use Enum.
16963 (fpu_type_t): New Enum and EnumValue entries.
16964 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16965 global_options_set instead of rs6000_explicit_options.
16966 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16967 global_options_set instead of rs6000_explicit_options.
16968 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16969 global_options_set instead of rs6000_explicit_options.
16970 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16971 global_options_set instead of rs6000_explicit_options.
16972 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
16973 global_options_set instead of rs6000_explicit_options.
16974 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16975 global_options_set instead of rs6000_explicit_options.
16976 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
16977 definition.
16978 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16979 global_options_set instead of rs6000_explicit_options.
16980 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
16981 (rs6000_cmodel): New Enum and EnumValue entries.
16982 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16983 global_options_set instead of rs6000_explicit_options.
16984 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
16985 (mtls-size=): Use Enum and Var.
16986 (rs6000_tls_size): New Enum and EnumValue entries.
16987
16988 2011-05-05 Michael Matz <matz@suse.de>
16989
16990 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
16991 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
16992 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
16993 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
16994 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
16995 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
16996 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
16997 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
16998 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
16999 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
17000 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
17001 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
17002 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
17003 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
17004 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
17005 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
17006
17007 2011-05-05 Richard Guenther <rguenther@suse.de>
17008
17009 * expmed.c (expand_variable_shift): Rename to ...
17010 (expand_shift_1): ... this. Take an expanded shift amount.
17011 For rotates recurse directly not building trees for the shift amount.
17012 (expand_variable_shift): Wrap around expand_shift_1.
17013 (expand_shift): Adjust.
17014
17015 2011-05-05 Jakub Jelinek <jakub@redhat.com>
17016
17017 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
17018
17019 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
17020
17021 * tree.h (get_pending_sizes): Remove prototype.
17022 (put_pending_size): Likewise.
17023 (put_pending_sizes): Likewise.
17024 * stor-layout.c (pending_sizes): Delete.
17025 (get_pending_sizes): Likewise.
17026 (put_pending_size): Likewise.
17027 (put_pending_sizes): Likewise.
17028 (variable_size): Do not call put_pending_size and tidy up.
17029 * function.h (struct function): Remove dont_save_pending_sizes_p.
17030 * lto-streamer-in.c (input_function): Do not stream it.
17031 * lto-streamer-out.c (output_function): Likewise.
17032 * tree-inline.c (initialize_cfun): Do not copy it.
17033 * c-decl.c (store_parm_decls): Do not set it.
17034 * omp-low.c (create_task_copyfn): Likewise.
17035 * tree-optimize.c (tree_rest_of_compilation): Likewise.
17036
17037 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
17038
17039 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
17040 conditions.
17041 (*movdf_internal): Ditto.
17042 (*movdf_internal_nointeger): Ditto.
17043 (*movsf_internal): Ditto.
17044
17045 2011-05-05 Joseph Myers <joseph@codesourcery.com>
17046
17047 * c-decl.c (finish_decl): Don't call get_pending_sizes.
17048 (grokparm): Add parameter expr. Pass it to grokdeclarator.
17049 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
17050 (c_variable_size): Remove.
17051 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
17052 call put_pending_sizes.
17053 (get_parm_info): Add parameter expr. Use it to set
17054 arg_info->pending_sizes.
17055 (store_parm_decls): Use arg_info->pending_sizes instead or calling
17056 get_pending_sizes.
17057 * c-parser.c (c_parser_parms_declarator): Update call to
17058 c_parser_parms_list_declarator.
17059 (c_parser_parms_list_declarator): Take parameter expr. Update
17060 call to push_parm_decl. Update recursive call. Don't call
17061 get_pending_sizes. Update calls to get_parm_info.
17062 (c_parser_objc_method_definition): Update calls to
17063 c_parser_objc_method_decl and objc_start_method_definition.
17064 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
17065 (c_parser_objc_method_decl): Add parameter expr. Update call to
17066 grokparm.
17067 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
17068 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
17069 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
17070
17071 2011-05-05 Michael Hope <michael.hope@linaro.org>
17072
17073 PR pch/45979
17074 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
17075 __ARM_EABI__ hosts.
17076
17077 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17078
17079 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
17080 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
17081 (spu_output_mi_thunk): New function.
17082
17083 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17084
17085 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
17086 targetm.asm_out.print_operand.
17087 * config/sol2.c: Include target.h.
17088
17089 2011-05-04 Jan Hubicka <jh@suse.cz>
17090
17091 * ipa-inline.c (reset_edge_caches): New function.
17092 (update_caller_keys): Add check_inlinablity_for; do not
17093 reset edge caches; remove now unnecesary loop.
17094 (update_callee_keys): Add comments; reset node_growth_cache of callee.
17095 (update_all_callee_keys): Likewise.
17096 (inline_small_functions): Sanity check cache; update code
17097 recomputing it.
17098
17099 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
17100
17101 PR rtl-optimization/47612
17102 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
17103 as the last insn of the sequence to be moved.
17104
17105 2011-05-04 Tobias Burnus <burnus@net-b.de>
17106
17107 PR fortran/48864
17108 * doc/invoke.texi (Ofast): Document that it
17109 enables Fortran's -fno-protect-parens.
17110
17111 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
17112
17113 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
17114
17115 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
17116
17117 * stor-layout.c (variable_size): Do not issue errors.
17118
17119 2011-05-04 Richard Guenther <rguenther@suse.de>
17120
17121 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
17122 for array-ref indices.
17123 (tree_coverage_counter_addr): Likewise.
17124 (build_fn_info_type): Use size_int for index types.
17125 (build_gcov_info): Likewise.
17126
17127 2011-05-04 Richard Guenther <rguenther@suse.de>
17128
17129 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
17130 to build_int_cst.
17131 * c-typeck.c (really_start_incremental_init): Use bitsize_int
17132 for constructor indices.
17133 (push_init_level): Likewise.
17134
17135 2011-05-04 Richard Guenther <rguenther@suse.de>
17136
17137 * explow.c (promote_mode): Move variable declarations before code.
17138
17139 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
17140
17141 * tree.h (build_function_type_array): Declare.
17142 (build_varargs_function_type_array): Declare.
17143 (build_function_type_vec, build_varargs_function_type_vec): Define.
17144 * tree.c (build_function_type_array_1): New function.
17145 (build_function_type_array): New function.
17146 (build_varargs_function_type_array): New function.
17147
17148 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
17149
17150 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
17151 before setting STMT_VINFO_TYPE.
17152
17153 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17154
17155 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
17156 instead of spu_pass_by_reference.
17157
17158 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17159
17160 * calls.c (emit_library_call_value_1): Invoke
17161 promote_function_mode hook on libcall arguments.
17162 * explow.c (promote_function_mode, promote_mode): Handle TYPE
17163 argument being NULL.
17164 * targhooks.c (default_promote_function_mode): Lisewise.
17165 * config/s390/s390.c (s390_promote_function_mode): Likewise.
17166 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
17167
17168 * doc/tm.texi: Document that TYPE argument might be NULL.
17169
17170 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
17171
17172 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
17173
17174 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
17175
17176 From Bernd Schmidt
17177 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
17178
17179 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17180
17181 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
17182 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
17183 Move ...
17184 * mips-tfile.c: ... here.
17185 Don't include coretypes.h, tm.h, filenames.h.
17186 (saber_stop): Remove definition and all calls.
17187 [__SABER__]: Remove.
17188 (__LINE__): Remove default.
17189 (Size_t, Ptrdiff_t): Remove definitions.
17190 Replace by size_t, ptrdiff_t.
17191 [!MIPS_DEBUGGING_INFO]: Remove.
17192 (SHASH_SIZE, THASH_SIZE): Remove defaults.
17193 (progname): Add const.
17194 (STATIC): Remove.
17195 Replace all uses by static.
17196 (ALIGN_SYMTABLE_OFFSET): Remove default.
17197 * mips-tdump.c: Don't include coretypes.h, tm.h.
17198 Remove !MIPS_IS_STAB guard.
17199 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
17200 $(TM_H), filenames.h dependencies.
17201 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
17202
17203 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
17204
17205 From Jie Zhang
17206 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
17207 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
17208
17209 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
17210
17211 From Bernd Schmidt
17212 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
17213 account and save/restore RETS.
17214 (PROFILE_BEFORE_PROLOGUE): Define.
17215 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
17216 the push insn to use predecrement.
17217
17218 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
17219
17220 From Jie Zhang
17221 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
17222
17223 2011-05-04 Nick Clifton <nickc@redhat.com>
17224
17225 * config/mn10300/mn10300.c: Include cfgloop.h.
17226 (DUMP): New macro.
17227 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
17228 Lcc or a FLcc insn into the instruction stream.
17229 (mn10300_block_contains_call): New function. Returns true if the
17230 given basic block contains a CALL insn.
17231 (mn10300_loop_contains_call_insn): New function. Returns true if
17232 the given loop contains a CALL insn.
17233 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
17234 to use the SETLB and Lcc or FLcc insns.
17235 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
17236 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
17237 * config/mn10300/mn10300.opt (msetlb): New option. Used to
17238 disable the SETLB optimization.
17239 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
17240 __SETLB__ or __NO_SETLB__.
17241 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
17242 (movsf_internal): Handle MDR register.
17243 (cmpsi): Make visible.
17244 (setlb): New pattern.
17245 (Lcc): New pattern.
17246 (FLcc): New pattern.
17247
17248 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
17249
17250 PR target/48860
17251 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
17252 for reg<->xmm moves.
17253 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
17254 (vec_concatv2di_rex64_sse): Ditto.
17255 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
17256 (*vec_extractv2di_1_rex64): Ditto.
17257
17258 Revert:
17259 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
17260
17261 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
17262 reg<->xmm moves.
17263 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
17264
17265 2011-05-04 Richard Guenther <rguenther@suse.de>
17266
17267 * tree.h (int_const_binop): Remove notrunc argument.
17268 * fold-const.c (int_const_binop): Remove notrunc argument. Always
17269 create integer constants that are properly truncated.
17270 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
17271 (const_binop): Remove zero notrunc argument to int_const_binop.
17272 (size_binop_loc): Likewise.
17273 (fold_div_compare): Likewise.
17274 (maybe_canonicalize_comparison_1): Likewise.
17275 (fold_comparison): Likewise.
17276 (fold_binary_loc): Likewise.
17277 (multiple_of_p): Likewise.
17278 * expr.c (store_constructor): Likewise.
17279 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
17280 (maybe_fold_stmt_addition): Likewise.
17281 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
17282 * stor-layout.c (layout_type): Likewise.
17283 * tree-data-ref.c (tree_fold_divides_p): Likewise.
17284 * tree-sra.c (build_ref_for_offset): Likewise.
17285 (build_user_friendly_ref_for_offset): Likewise.
17286 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
17287 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17288 * tree-ssa-loop-niter.c (inverse): Likewise.
17289 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
17290 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
17291 * tree-switch-conversion.c (check_range): Likewise.
17292 (build_constructors): Likewise.
17293 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
17294 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
17295 (extract_range_from_assert): Likewise.
17296 (vrp_int_const_binop): Likewise.
17297 (extract_range_from_binary_expr): Likewise.
17298 (extract_range_from_unary_expr): Likewise.
17299 (check_array_ref): Likewise.
17300 (find_case_label_range): Likewise.
17301 (simplify_div_or_mod_using_ranges): Likewise.
17302 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
17303 comparing case labels for merging.
17304
17305 2011-05-03 Mark Wielaard <mjw@redhat.com>
17306
17307 * dwarf2out.c (debug_str_hash_forced): Removed.
17308 (gen_label_for_indirect_string): Removed.
17309 (get_debug_string_label): Removed.
17310 (AT_string_form): Generate label directly.
17311 (output_indirect_string): Test indirect_string_node for
17312 DW_FORM_strp instead of checking label and refcount.
17313 (prune_indirect_string): Removed.
17314 (prune_unused_types): Don't check debug_str_hash_forced or
17315 call prune_indirect_string.
17316
17317 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
17318
17319 PR other/48093
17320 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
17321
17322 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
17323
17324 PR debug/47994
17325 PR debug/47919
17326 * combine.c (try_combine): Skip debug insns at m_split tests.
17327
17328 2011-04-26 Mark Wielaard <mjw@redhat.com>
17329
17330 PR42288
17331 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
17332 when info_section_emitted.
17333
17334 2011-05-03 Joseph Myers <joseph@codesourcery.com>
17335
17336 * config/mips/mips-opts.h: New.
17337 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
17338 to mips-opts.h.
17339 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
17340 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
17341 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
17342 via opts pointer.
17343 * config/mips/mips.h (enum mips_code_readable_setting): Move to
17344 mips-opts.h.
17345 (mips_abi, mips_code_readable): Don't declare.
17346 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
17347 (mabi=): Use Enum and Var.
17348 (mips_abi): New Enum and EnumValue entries.
17349 (mcode-readable=): Use Enum and Var.
17350 (mips_code_readable_setting): New Enum and EnumValue entries.
17351 (mr10k-cache-barrier=): Use Enum and Var.
17352 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
17353
17354 2011-05-03 Jan Hubicka <jh@suse.cz>
17355
17356 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
17357 replace hash by pointer map.
17358 (cgraph_node_set_element_def, cgraph_node_set_element,
17359 const_cgraph_node_set_element, varpool_node_set_element_def,
17360 varpool_node_set_element, const_varpool_node_set_element): Remove.
17361 (free_cgraph_node_set, free_varpool_node_set): New function.
17362 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
17363 * tree-emutls.c: Free varpool node set.
17364 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
17365 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
17366 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
17367 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
17368 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
17369 Move here from ipa.c; implement using pointer_map
17370 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
17371 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
17372 debug_cgraph_node_set, varpool_node_set_new,
17373 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
17374 dump_varpool_node_set, debug_varpool_node_set):
17375 Move to ipa-uitls.c.
17376 * passes.c (ipa_write_summaries): Update.
17377
17378 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17379
17380 From Mike Frysinger:
17381 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
17382 bf542/bf544/bf547/bf548/bf549.
17383
17384 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
17385
17386 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
17387
17388 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17389
17390 From Bernd Schmidt:
17391 * config/bfin/bfin.md (MOVCC): New mode_macro.
17392 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
17393 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
17394 comments from generated assembly.
17395
17396 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17397
17398 From Bernd Schmidt
17399 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
17400 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
17401 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
17402 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
17403 * config/bfin/lib1funcs.asm (___muldi3): New function.
17404
17405 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17406
17407 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
17408 build_function_type_list instead of build_function_type.
17409 Rearrange initialization of `args' to do so.
17410
17411 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17412
17413 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
17414 instead of build_function_type.
17415
17416 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17417
17418 * config/rs6000/rs6000.c (spe_init_builtins): Call
17419 build_function_type_list instead of build_function_type.
17420 (paired_init_builtins, altivec_init_builtins): Likewise.
17421 (builtin_function_type): Likewise.
17422
17423 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17424
17425 * config/sh/sh.c (sh_media_init_builtins): Call
17426 build_function_type_list instead of build_function_type.
17427
17428 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17429
17430 * config/sparc/sparc.c (sparc_file_end): Call
17431 build_function_type_list instead of build_function_type.
17432
17433 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17434
17435 * config/alpha/alpha.c (alpha_init_builtins): Call
17436 build_function_type_list instead of build_function_type.
17437
17438 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17439
17440 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
17441 build_function_type_list instead of build_function_type.
17442
17443 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17444
17445 * config/iq2000/i2000.c (iq2000_init_builtins): Call
17446 build_function_type_list instead of build_function_type.
17447 Delete `endlink' variable.
17448
17449 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17450
17451 * config/avr/avr.c (avr_init_builtins): Call
17452 build_function_type_list instead of build_function_type.
17453
17454 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17455
17456 * config/picochip/picochip.c (picochip_init_builtins): Call
17457 build_function_type_list instead of build_function_type.
17458 Delete `endlink' variable.
17459
17460 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17461
17462 * config/bfin/bfin.c (bfin_init_builtins): Call
17463 build_function_type_list instead of build_function_type.
17464
17465 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17466
17467 From Bernd Schmidt
17468 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
17469 that's not CONST_INT. Seemingly redundant check is due to PR39768.
17470
17471 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17472
17473 From Jie Zhang:
17474 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
17475 libbffastfp overrides libgcc when -mfast-fp.
17476
17477 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17478
17479 Originally from Bernd Schmidt
17480 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
17481 * config/bfin/bfin.c (override_options): Test it and error if
17482 TARGET_FDPIC.
17483
17484 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
17485
17486 Originally From Bernd Schmidt
17487 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
17488 FD-PIC.
17489
17490 2011-05-03 Jeff Law <law@redhat.com>
17491
17492 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
17493 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
17494 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
17495 than accessing AUX field directly. Free the AUX field before
17496 clearing it.
17497 (thread_block, thread_through_loop_header): Likewise.
17498 (thread_single_edge, mark_threaded_blocks): Likewise.
17499 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
17500 (register_jump_thread): Do not attempt to thread to a NULL edge.
17501
17502 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
17503
17504 * function.c (init_function_start): Call decide_function_section.
17505 * varasm.c (decide_function_section): New function.
17506 (assemble_start_function): When not using
17507 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
17508 or first_function_block_is_cold.
17509 * rtl.h (decide_function_section): Declare.
17510
17511 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
17512 Jakub Jelinek <jakub@redhat.com>
17513
17514 PR target/48774
17515 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
17516 only succeed if req_mode is the same as set_mode.
17517
17518 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
17519
17520 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
17521 * genemit.c (gen_exp): Handle RETURN.
17522 * emit-rtl.c (verify_rtx_sharing): Likewise.
17523 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
17524 * rtl.c (copy_rtx): RETURN is shared.
17525 * rtl.h (enum global_rtl_index): Add GR_RETURN.
17526 (ret_rtx): New.
17527 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
17528 * config/s390/s390.c (s390_emit_epilogue): Likewise.
17529 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
17530 * config/cris/cris.c (cris_expand_return): Likewise.
17531 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
17532 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
17533 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
17534 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
17535 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
17536 Likewise.
17537 * config/v850/v850.c (expand_epilogue): Likewise.
17538 * config/bfin/bfin.c (bfin_expand_call): Likewise.
17539 * config/arm/arm.md (epilogue): Likewise.
17540 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
17541 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
17542 variable to ret_reg.
17543
17544 2011-05-03 Richard Guenther <rguenther@suse.de>
17545
17546 PR lto/48846
17547 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
17548 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
17549 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
17550
17551 2011-05-03 Richard Guenther <rguenther@suse.de>
17552
17553 * c-decl.c (grokdeclarator): Instead of looking at
17554 TREE_OVERFLOW check if the constant fits in the index type.
17555
17556 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17557
17558 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
17559 (vec_store_lanes<mode><mode>): Likewise.
17560
17561 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17562
17563 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
17564 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
17565 convert_optab_index values.
17566 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
17567 * genopinit.c (optabs): Initialize the new optabs.
17568 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
17569 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
17570 (expand_STORE_LANES): New functions.
17571 * tree.h (build_array_type_nelts): Declare.
17572 * tree.c (build_array_type_nelts): New function.
17573 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
17574 (vect_model_load_cost): Likewise.
17575 (vect_store_lanes_supported, vect_load_lanes_supported)
17576 (vect_record_strided_load_vectors): Declare.
17577 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
17578 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
17579 (vect_transform_strided_load): Split out statement recording into...
17580 (vect_record_strided_load_vectors): ...this new function.
17581 * tree-vect-stmts.c (create_vector_array, read_vector_array)
17582 (write_vector_array, create_array_ref): New functions.
17583 (vect_model_store_cost): Add store_lanes_p argument.
17584 (vect_model_load_cost): Add load_lanes_p argument.
17585 (vectorizable_store): Try to use store-lanes functions for
17586 interleaved stores.
17587 (vectorizable_load): Likewise load-lanes and loads.
17588 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
17589 to vect_model_store_cost.
17590 (vect_build_slp_tree): Likewise vect_model_load_cost.
17591
17592 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17593
17594 * hooks.h (hook_bool_mode_uhwi_false): Declare.
17595 * hooks.c (hook_bool_mode_uhwi_false): New function.
17596 * target.def (array_mode_supported_p): New hook.
17597 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
17598 * doc/tm.texi: Regenerate.
17599 * stor-layout.c (mode_for_array): New function.
17600 (layout_type): Use it.
17601 * config/arm/arm.c (arm_array_mode_supported_p): New function.
17602 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
17603
17604 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
17605
17606 PR target/48723
17607 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
17608 for -fstack-check if the size to allocate is negative.
17609
17610 2011-05-02 Lawrence Crowl <crowl@google.com>
17611
17612 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
17613 (timevar_cond_start): New for starting a timer only when it is not
17614 already running.
17615 (timevar_cond_stop): New for stopping a timer when it was not already
17616 running.
17617
17618 * timevar.c (timevar_stop): Enable start/stop timers to start again.
17619 (timevar_cond_start): New as above.
17620 (timevar_cond_stop): New as above.
17621
17622 * timevar.def: Add start/stop timers for compiler phases,
17623 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
17624 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
17625 and TV_PHASE_FINALIZE.
17626 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
17627 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
17628 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
17629 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
17630 Make unused TV_OVERLOAD into a start/stop timer.
17631
17632 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
17633 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
17634 to indicate that they are start/stop timers.
17635
17636 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
17637 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
17638 Move initialization to do_compile.
17639 (do_compile): Add initialization from above.
17640 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
17641
17642 * c-decl.c (c_write_global_declarations): Add start/stop of
17643 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
17644
17645 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
17646 or TV_PARSE_INLINE, as appropriate.
17647 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
17648 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
17649
17650 2011-05-02 Jason Merrill <jason@redhat.com>
17651
17652 PR c++/40975
17653 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
17654
17655 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
17656
17657 PR c/35445
17658 * c-decl.c (finish_decl): Only create a composite if the types are
17659 compatible.
17660
17661 2011-05-02 Joseph Myers <joseph@codesourcery.com>
17662
17663 * config/fr30/fr30-protos.h (Mmode): Don't define.
17664 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
17665 definition where used.
17666 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
17667 define. Expand definitions where used.
17668 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
17669 Expand definitions where used.
17670 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
17671 rx_function_arg, rx_function_arg_advance,
17672 rx_function_arg_boundary): Expand definitions of those macros.
17673 * config/v850/v850-protos.h (Mmode): Don't define. Expand
17674 definition where used.
17675
17676 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
17677
17678 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
17679 reg<->xmm moves.
17680 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
17681 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
17682 with *movv2sf_internal_rex64_avx.
17683 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
17684 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
17685 Use %v prefix in insn mnemonic to handle TARGET_AVX.
17686 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
17687 "vex" in "prefix" attribute calculation.
17688 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
17689
17690 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
17691
17692 PR target/47951
17693 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
17694 inputs match the output.
17695
17696 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
17697
17698 PR target/47955
17699 * config/m68k/m68k.c (m68k_expand_prologue): Set
17700 current_function_static_stack_size.
17701
17702 2011-05-02 Jan Hubicka <jh@suse.cz>
17703
17704 * lto-streamer.c (lto_streamer_cache_insert_1,
17705 lto_streamer_cache_lookup, lto_streamer_cache_create,
17706 lto_streamer_cache_delete): Use pointer map instead of hashtable.
17707 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
17708
17709 2011-05-02 Joseph Myers <joseph@codesourcery.com>
17710
17711 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
17712 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
17713 config/m68k/t-opts: New files.
17714 * config/m68k/m68k-tables.opt: New file (generated).
17715 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
17716 extra_options and m68k/t-opts to tmake_file.
17717 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
17718 (all_isas): Initialize using m68k-isas.def.
17719 (all_microarchs): Initialize using m68k-microarchs.def.
17720 (m68k_find_selection): Remove.
17721 (m68k_handle_option): Don't assert that global structures are in
17722 use. Use error_at. Access variables via opts pointer. Don't
17723 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
17724 directly for -m68020-40 and -m68020-60.
17725 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
17726 m68k_tune_entry here.
17727 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
17728 to m68k-opts.h.
17729 (m68k_library_id_string): Remove declaration.
17730 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
17731 (m68k_library_id_string): New Variable.
17732 (march=, mcpu=, mtune=): Use Enum and Var.
17733
17734 2011-05-02 Richard Guenther <rguenther@suse.de>
17735
17736 * varasm.c (output_constructor_regular_field): Compute zero-based
17737 index with double-ints. Make sure to ICE instead of producing
17738 wrong code.
17739 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
17740 in asserts. Properly use a signed type.
17741
17742 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
17743
17744 * config/i386/sse.md (V): New mode iterator.
17745 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
17746 TARGET_SSE2.
17747 (V_256): Rename from AVX256MODE.
17748 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
17749 condition to all users.
17750 (VF1): Ditto.
17751 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
17752 condition to all users.
17753 (VF_128): Make V4SF mode unconditional.
17754 (VF_256): Rename from AVX256MODEF2P.
17755 (VI4F_128): Rename from SSEMODE4S.
17756 (VI8F_128): Rename from SSEMODE2D.
17757 (VI4F_256): Rename from AVX256MODE8P.
17758 (VI8F_256): Rename from AVX256MODE4P.
17759 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
17760 (ssescalarmodesuffix): Remove SF and DF modes.
17761 (SSEMODE124): Remove.
17762 (SSEMODE1248): Ditto.
17763 (SSEMODEF2P): Ditto.
17764 (AVXMODEF2P): Ditto.
17765 (AVXMODEFDP): Ditto.
17766 (AVXMODEFSP): Ditto.
17767 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
17768 unconditional.
17769 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
17770 unconditional.
17771 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
17772 xop_pcmov_<mode>256. Use V mode iterator.
17773
17774 Adjust RTX patterns globally for renamed mode attributes.
17775
17776 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17777
17778 * haifa-sched.c (sched_emit_insn): Emit insn before first
17779 non-scheduled insn. Inform back-end about new insn. Add
17780 new insn to scheduled_insns list.
17781
17782 2011-05-02 Richard Guenther <rguenther@suse.de>
17783
17784 PR tree-optimization/48822
17785 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
17786 (process_scc): Indicate which iteration we start.
17787
17788 2011-05-02 Jan Hubicka <jh@suse.cz>
17789
17790 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
17791 (lto_section_overrun): New.
17792 * lto-section-out.c (append_block): Rename to ...
17793 (lto_append_block): ... this one; export.
17794 (lto_output_1_stream): Move lto lto-streamer.h
17795 (lto_output_data_stream): Update.
17796 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
17797 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
17798 functions.
17799
17800 2011-05-02 Richard Guenther <rguenther@suse.de>
17801
17802 * tree.c (tree_code_counts): New global array.
17803 (record_node_allocation_statistics): Count individual tree codes.
17804 (dump_tree_statistics): Dump individual code stats.
17805
17806 2011-05-01 Jan Hubicka <jh@suse.cz>
17807
17808 * ipa-inline.c (caller_growth_limits): Fix thinko when
17809 looking for largest stack frame.
17810 * ipa-inline.h (dump_inline_summary): Declare.
17811 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
17812 on stack usage.
17813 (dump_inline_summary): Export.
17814 (debug_inline_summary): Declare as DEBUG_FUNCTION.
17815
17816 2011-05-01 Anatoly Sokolov <aesok@post.ru>
17817
17818 * reginfo.c (memory_move_cost): Change rclass argument type form
17819 'enum reg_class' to reg_class_t.
17820 * reload.h (memory_move_cost): Update prototype.
17821 * postreload.c reload_cse_simplify_set): Change type dclass var to
17822 reg_class_t.
17823 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
17824 Update prototype.
17825 (ira_allocate_and_set_costs): Change aclass argument type form
17826 'enum reg_class' to reg_class_t.
17827 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
17828 Change aclass argument type to reg_class_t.
17829 (update_conflict_hard_reg_costs): Change type aclass and pref vars
17830 to reg_class_t.
17831 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
17832 memory_move_cost call.
17833
17834 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
17835 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
17836 Change type tmp var to reg_class_t.
17837
17838 2011-04-30 Jan Hubicka <jh@suse.cz>
17839
17840 * ipa-inline.c (can_inline_edge_p): Disregard limits when
17841 inlining into function with flatten attribute.
17842 (want_inline_small_function_p): Be more realistic about inlining
17843 cold calls where callee size grows.
17844
17845 2011-04-30 Jan Hubicka <jh@suse.cz>
17846
17847 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
17848 flags.
17849
17850 2011-04-30 Anatoly Sokolov <aesok@post.ru>
17851
17852 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
17853 PRINT_OPERAND_PUNCT_VALID_P): Remove.
17854 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
17855 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
17856 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17857 (print_operand): Rename to...
17858 (sparc_print_operand): ...this. Make static. Adjust
17859 sparc_print_operand function call.
17860 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
17861 functions.
17862
17863 2011-04-30 Jan Hubicka <jh@suse.cz>
17864
17865 PR middle-end/48752
17866 * ipa-inline.c (early_inliner): Disable when doing late
17867 addition of function.
17868
17869 2011-04-30 Jakub Jelinek <jakub@redhat.com>
17870
17871 * dwarf2out.c (get_address_mode): New inline.
17872 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
17873 if not dwarf_strict emit
17874 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
17875 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
17876 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
17877 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
17878 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
17879 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
17880 mem_loc_descriptor callers.
17881 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
17882 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
17883 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
17884 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
17885 (base_types): New variable.
17886 (get_base_type_offset, calc_base_type_die_sizes,
17887 base_type_for_mode, mark_base_types, base_type_cmp,
17888 move_marked_base_types): New functions.
17889 (calc_die_sizes): Assert that die_offset is 0 or equal to
17890 next_die_offset.
17891 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
17892 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
17893 callers. If not dwarf_strict, call mem_loc_descriptor even for
17894 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
17895 (gen_subprogram_die): Don't give up on call site parameters
17896 with non-integral or large integral modes. Adjust
17897 mem_loc_descriptor callers.
17898 (prune_unused_types): Call prune_unused_types_mark on base_types
17899 vector entries.
17900 (resolve_addr): Call mark_base_types.
17901 (dwarf2out_finish): Call move_marked_base_types.
17902
17903 PR tree-optimization/48809
17904 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
17905 type.
17906 (gen_inbound_check): Don't compute index_expr - range_min in utype
17907 again, instead reuse SSA_NAME initialized in build_arrays.
17908 Remove two useless gsi_for_stmt calls.
17909
17910 2011-04-29 Jeff Law <law@redhat.com>
17911
17912 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
17913
17914 2011-04-29 Martin Jambor <mjambor@suse.cz>
17915
17916 * cgraph.h (cgraph_postorder): Remove declaration.
17917 * ipa-utils.h (ipa_free_postorder_info): Declare.
17918 (ipa_reverse_postorder): Likewise.
17919 * cgraphunit.c: Include ipa-utils.h.
17920 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
17921 * ipa-inline.c: Include ipa-utils.h.
17922 (ipa_inline): Update call to ipa_reverse_postorder.
17923 * ipa-pure-const.c (propagate_pure_const): Update call to
17924 ipa_reduced_postorder and ipa_print_order. Call
17925 ipa_free_postorder_info to clean up.
17926 (propagate_nothrow): Likewise.
17927 * ipa-reference.c (propagate): Removed a useless call to
17928 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
17929 and ipa_print_order. Call ipa_free_postorder_info to clean up.
17930 * ipa.c: Include ipa-utils.h.
17931 (ipa_profile): Update call to ipa_reverse_postorder.
17932 (cgraph_postorder): Moved to...
17933 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
17934 (ipa_utils_print_order): Renamed to ipa_print_order.
17935 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
17936 comments.
17937 (ipa_free_postorder_info): New function.
17938 * passes.c: Include ipa-utils.h.
17939 (do_per_function_toporder): Update call to ipa_reverse_postorder.
17940 (ipa_write_summaries): Likewise.
17941 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
17942 (cgraphunit.o): Likewise.
17943 (ipa.o): Likewise.
17944 (ipa-inline.o): Likewise.
17945
17946 2011-04-29 Jan Hubicka <jh@suse.cz>
17947
17948 * gcc.dg/tree-ssa/inline-10.c: New testcase.
17949 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
17950 * ipa-inline.h (clause_t): Turn into unsigned int.
17951 * ipa-inline-analysis.c (add_clause): Do more simplification.
17952 (and_predicates): Shortcut more cases.
17953 (predicates_equal_p): Move forward; check that clauses are properly
17954 ordered.
17955 (or_predicates): Shortcut more cases.
17956 (edge_execution_predicate): Rewrite as...
17957 (set_cond_stmt_execution_predicate): ... this function; handle
17958 __builtin_constant_p.
17959 (set_switch_stmt_execution_predicate): New .
17960 (compute_bb_predicates): New.
17961 (will_be_nonconstant_predicate): Update TODO.
17962 (estimate_function_body_sizes): Use compute_bb_predicates
17963 and free them later, always try to estimate if stmt is constant.
17964 (estimate_time_after_inlining, estimate_size_after_inlining):
17965 Gracefully handle optimized out edges.
17966 (read_predicate): Fix off by one error.
17967
17968 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
17969
17970 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
17971
17972 2011-04-27 Xinliang David Li <davidxl@google.com>
17973
17974 * tree-profile.c (init_ic_make_global_vars): Set
17975 tls attribute on ic vars.
17976 * coverage.c (coverage_end_function): Initialize
17977 function_list with zero.
17978
17979 2011-04-29 Richard Guenther <rguenther@suse.de>
17980
17981 * builtins.c (fold_builtin_classify_type): Use integer_type_node
17982 for the type of the result.
17983 (fold_builtin_isascii): Likewise.
17984 (fold_builtin_toascii): Use integer_type_node where appropriate.
17985 (fold_builtin_logb): Likewise.
17986 (fold_builtin_frexp): Likewise.
17987 (fold_builtin_strstr): Likewise.
17988 (fold_builtin_strpbrk): Likewise.
17989 (fold_builtin_fputs): Likewise.
17990 (fold_builtin_sprintf): Likewise.
17991 (fold_builtin_snprintf): Likewise.
17992 (fold_builtin_printf): Likewise.
17993 (do_mpfr_remquo): Use a proper type for the assigned constant.
17994 (do_mpfr_lgamma_r): Likewise.
17995 * dwarf2out.c (resolve_one_addr): Use size_int.
17996 * except.c (init_eh): Likewise.
17997 (assign_filter_values): Use integer_type_node for filter values.
17998 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
17999 indices.
18000 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
18001 for EH region numbers.
18002 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
18003 for the shift amount.
18004
18005 2011-04-29 Richard Guenther <rguenther@suse.de>
18006
18007 * expr.h (expand_shift): Rename to ...
18008 (expand_variable_shift): ... this.
18009 (expand_shift): Take a constant shift amount.
18010 * expmed.c (expand_shift): Rename to ...
18011 (expand_variable_shift): ... this.
18012 (expand_shift): New wrapper around expand_variable_shift.
18013 * expr.c (convert_move, emit_group_load_1, emit_group_store,
18014 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
18015 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
18016 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
18017 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
18018 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
18019 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
18020 emit_store_flag_1, emit_store_flag): Likewise.
18021 * builtins.c (expand_builtin_signbit): Likewise.
18022 * calls.c (load_register_parameters): Likewise.
18023 * function.c (assign_parm_setup_block): Likewise.
18024 * lower-subreg.c (resolve_shift_zext): Likewise.
18025 * optabs.c (widen_bswap, expand_abs_nojump,
18026 expand_one_cmpl_abs_nojump, expand_float): Likewise.
18027 * spu/spu.c (spu_expand_extv): Likewise.
18028 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
18029
18030 2011-04-29 Richard Guenther <rguenther@suse.de>
18031
18032 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
18033 for the remapped region number.
18034 * predict.c (build_predict_expr): Use integer_type_node for the
18035 predict kind.
18036 * fold-const.c (fold_binary_loc): Use integer_type_node for
18037 the shift amount. Use a proper type for the PLUS_EXPR operand.
18038
18039 2011-04-29 Michael Matz <matz@suse.de>
18040
18041 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
18042 other trees that just builtins.
18043 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
18044
18045 2011-04-29 Richard Guenther <rguenther@suse.de>
18046
18047 * tree-nested.c (get_trampoline_type): Use size_int.
18048 (get_nl_goto_field): Likewise.
18049 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
18050 for all indexes.
18051 (lower_eh_constructs_2): Likewise.
18052 (lower_resx): Likewise.
18053 (lower_eh_dispatch): Likewise.
18054 * tree-mudflap.c (mf_build_string): Use size_int.
18055 (mudflap_register_call): Use integer_type_node for the flag.
18056 (mudflap_enqueue_constant): Use size_int.
18057 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
18058 instead of rebuilding it.
18059
18060 2011-04-29 Richard Guenther <rguenther@suse.de>
18061
18062 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
18063 Handle OBJ_TYPE_REF.
18064 (find_func_aliases_for_call): Use it more consistently.
18065
18066 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
18067
18068 * haifa-sched.c (last_nondebug_scheduled_insn): New.
18069 (rank_for_schedule): Use it.
18070 (schedule_block): Set it.
18071
18072 2011-04-28 David Li <davidxl@google.com>
18073
18074 * tree.c (crc32_string): Use crc32_byte.
18075 (crc32_byte): New function.
18076 * tree.h (crc32_byte): New function.
18077 * gcov.c (read_graph_file): Handle new cfg_cksum.
18078 (read_count_file): Ditto.
18079 * profile.c (instrument_values): Ditto.
18080 (get_exec_counts): Ditto.
18081 (read_profile_edge_counts): Ditto.
18082 (compute_branch_probabilities): Ditto.
18083 (compute_value_histograms): Ditto.
18084 (branch_prob): Ditto.
18085 (end_branch_prob): Ditto.
18086 * coverage.c (read_counts_file): Ditto.
18087 (get_coverage_counts): Ditto.
18088 (tree_coverage_counter_addr): Ditto.
18089 (coverage_checksum_string): Ditto.
18090 (coverage_begin_output): Ditto.
18091 (coverage_end_function): Ditto.
18092 (build_fn_info_type): Ditto.
18093 (build_fn_info_value): Ditto.
18094 * libgcov.c (gcov_exit): Ditto.
18095 * gcov-dump.c (tag_function): Ditto.
18096 (compute_checksum): Remove.
18097
18098 2011-04-29 Alan Modra <amodra@gmail.com>
18099
18100 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
18101 unspec plus offset. Tidy macho code.
18102
18103 2011-04-29 Martin Jambor <mjambor@suse.cz>
18104
18105 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
18106 node instead of a decl. Update all callers.
18107 * cgraph.h: Update declaration.
18108
18109 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
18110
18111 PR tree-optimization/48765
18112 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
18113 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
18114 to indicate if loop aware SLP is being used. Scan the statements
18115 and update the vectorization factor according to the type of
18116 vectorization before statement analysis.
18117 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
18118 pass it to vect_analyze_loop_operations.
18119 (vectorizable_reduction): Set number of copies to 1 in case of pure
18120 SLP statement.
18121 * tree-vect-stmts.c (vectorizable_conversion,
18122 vectorizable_assignment, vectorizable_shift,
18123 vectorizable_operation, vectorizable_type_demotion,
18124 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
18125 Likewise.
18126 (vectorizable_condition): Move the check that it is not SLP
18127 vectorization before the number of copies check.
18128 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
18129 to vectorize the loop using SLP.
18130
18131 2011-04-28 Jakub Jelinek <jakub@redhat.com>
18132
18133 PR middle-end/48597
18134 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
18135 inline asm.
18136
18137 2011-04-28 Joseph Myers <joseph@codesourcery.com>
18138
18139 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
18140 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
18141 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18142 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18143 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
18144 linux*.h headers.
18145 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
18146 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18147 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18148 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18149 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18150 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
18151 REG_NAME.
18152 * config/i386/linux.h (REG_NAME): Don't define.
18153 * config/i386/linux64.h (REG_NAME): Don't define.
18154 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
18155 Undefine before defining.
18156
18157 2011-04-28 Jan Hubicka <jh@suse.cz>
18158
18159 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
18160 nonconstant_names array.
18161 (estimate_function_body_sizes): Build nonconstant_names array; handle
18162 BUILT_IN_CONSTANT_P.
18163
18164 2011-04-28 Richard Guenther <rguenther@suse.de>
18165
18166 PR bootstrap/48804
18167 Revert
18168 2011-04-28 Richard Guenther <rguenther@suse.de>
18169
18170 * tree-ssa-structalias.c (solve_constraints): Build succ graph
18171 as late as possible.
18172
18173 2011-04-28 Richard Guenther <rguenther@suse.de>
18174
18175 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
18176 (debug_constraint): Do it here.
18177 (dump_constraints): And here.
18178 (rewrite_constraints): And here.
18179 (dump_constraint_edge): Remove.
18180 (dump_constraint_graph): Rewrite to produce DOT output.
18181 (solve_constraints): Build succ graph as late as possible.
18182 Dump constraint graphs before and after solving.
18183
18184 2011-04-28 Richard Guenther <rguenther@suse.de>
18185
18186 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18187 New function split out from ...
18188 (find_func_aliases): ... here. Call it.
18189 (find_func_aliases_for_call): Likewise.
18190
18191 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
18192
18193 * internal-fn.h (internal_fn_name_array): Declare.
18194 (internal_fn_flags_array): Likewise.
18195
18196 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
18197
18198 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
18199 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
18200 Move from sse.md.
18201 (ssemodefsuffix): Remove.
18202 (ssevecmodesuffix): New mode attribute.
18203 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
18204 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
18205 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
18206 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
18207 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
18208 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
18209 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
18210 ssemodesuffix mode attribute.
18211 (float splitters): Use ssevecmodesuffix mode attribute.
18212 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
18213 (sseinsmode): Rename from avxvecmode.
18214 (avxsizesuffix): Rename from avxmodesuffix.
18215 (sseintvecmode): Rename from avxpermvecmode.
18216 (ssedoublevecmode): Rename from ssedoublesizemode.
18217 (ssehalfvecmode): Rename from avxhalfvecmode.
18218 (ssescalarmode): Rename from avxscalarmode.
18219 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
18220 templates for ssemodesuffix mode attribute.
18221 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
18222 mode attribute.
18223
18224 Adjust RTX patterns globally for renamed mode attributes.
18225
18226 2011-04-27 Jan Hubcika <jh@suse.cz>
18227
18228 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
18229 * ipa-inline-analysis.c: Include alloc-pool.h.
18230 (edge_predicate_pool): New.
18231 (trye_predicate_p): New function
18232 (false_predicate_p): New function.
18233 (add_clause): Sanity check that false clauses are "optimized";
18234 never add clauses to predicate that is already known to be false.
18235 (and_predicate): Use flase_predicate_p.
18236 (evaulate_predicate): Rename to ...
18237 (evaluate_predicate): ... this one; update all callers; assert
18238 that false is not listed among possible truths.
18239 (dump_predicate): Use true_predicate_p.
18240 (account_size_time): Use false_predicate_p.
18241 (evaulate_conditions_for_edge): Rename to ...
18242 (evaluate_conditions_for_edge) ... this one.
18243 (edge_set_predicate): New function.
18244 (inline_edge_duplication_hook): Duplicate edge predicates.
18245 (inline_edge_removal_hook): Free edge predicates.
18246 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
18247 (dump_inline_summary): Update.
18248 (estimate_function_body_sizes): Set edge predicates.
18249 (estimate_calls_size_and_time): Handle predicates.
18250 (estimate_callee_size_and_time): Update.
18251 (remap_predicate): Add toplev_predicate; update comment.
18252 (remap_edge_predicates): New function.
18253 (inline_merge_summary): Compute toplev predicate; update.
18254 (read_predicate): New function.
18255 (read_inline_edge_summary): Use it.
18256 (inline_read_section): Likewise.
18257 (write_predicate): New function.
18258 (write_inline_edge_summary): Use it.
18259 (inline_write_summary): Likewise.
18260 (inline_free_summary): Free alloc pool and edge summary vec.
18261
18262 2011-04-27 Richard Guenther <rguenther@suse.de>
18263
18264 * tree-ssa-structalias.c (changed_count): Remove.
18265 (changed): Use a bitmap.
18266 (unify_nodes): Adjust.
18267 (do_sd_constraint): Likewise.
18268 (do_ds_constraint): Likewise.
18269 (do_complex_constraint): Likewise.
18270 (solve_graph): Likewise.
18271
18272 2011-04-27 Jan Hubicka <jh@suse.cz>
18273
18274 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
18275
18276 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
18277
18278 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
18279 (avx_vperm2f128_*_operand): Ditto.
18280 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
18281 Use avx_vpermilp_parallel in insn condition.
18282 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
18283 Use avx_vperm2f128_parallel in insn condition.
18284
18285 2011-04-27 Richard Guenther <rguenther@suse.de>
18286
18287 * Makefile.in (tree-ssa-structalias.o): Remove
18288 gt-tree-ssa-structalias.h dependency.
18289 (GTFILES): Remove tree-ssa-structalias.c.
18290 * tree.c (allocate_decl_uid): New function.
18291 (make_node_stat): Use it.
18292 (copy_node_stat): Likewise.
18293 * tree.h (allocate_decl_uid): Declare.
18294 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
18295 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
18296 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
18297 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
18298 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
18299 (struct heapvar_map): Likewise.
18300 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
18301 heapvar_insert): Likewise.
18302 (make_heapvar_for): Rename to ...
18303 (make_heapvar): ... this. Simplify.
18304 (fake_var_decl_obstack): New global var.
18305 (build_fake_var_decl): New function.
18306 (make_constraint_from_heapvar): Adjust.
18307 (handle_lhs_call): Likewise.
18308 (create_function_info_for): Likewise.
18309 (intra_create_variable_infos): Likewise.
18310 (init_alias_vars): Allocate fake_var_decl_obstack.
18311 (init_alias_heapvars, delete_alias_heapvars): Remove.
18312 (compute_points_to_sets): Do not call init_alias_heapvars.
18313 (ipa_pta_execute): Likewise.
18314 (delete_points_to_sets): Free fake_var_decl_obstack.
18315
18316 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18317
18318 * config/spu/divmovti4.c (union qword_UTItype): New data type.
18319 (si_from_UTItype, si_to_UTItype): New functions.
18320 (__udivmodti4): Use them to implement type-punning.
18321 * config/spu/multi3.c (union qword_TItype): New data type.
18322 (si_from_TItype, si_to_TItype): New functions.
18323 (__multi3): Use them to implement type-punning.
18324
18325 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18326
18327 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
18328
18329 2011-04-27 Jan Hubicka <jh@suse.cz>
18330
18331 * ipa-prop.c (function_insertion_hook_holder): New holder.
18332 (ipa_add_new_function): New function.
18333 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
18334 Register/deregister holder.
18335
18336 2011-04-27 Richard Guenther <rguenther@suse.de>
18337
18338 PR tree-optimization/48772
18339 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
18340
18341 2011-04-27 Richard Guenther <rguenther@suse.de>
18342
18343 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
18344 TARGET_MEM_REF handling.
18345
18346 2011-04-27 Nick Clifton <nickc@redhat.com>
18347
18348 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
18349 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
18350 (REG_CLASS_NAMES): Likewise.
18351 (REG_CLASS_CONTENTS): Likewise.
18352 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
18353 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
18354 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
18355 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
18356 (EVEN_REGS): New macro. Alias for QUAD_REGS.
18357 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
18358 duplicate register classes.
18359 (frv_class_likely_spilled_p): Likewise.
18360 (frv_register_move_cost): Likewise.
18361
18362 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
18363 end of the regno_reg_class array.
18364
18365 2011-04-27 Jakub Jelinek <jakub@redhat.com>
18366
18367 PR c/48742
18368 * c-typeck.c (build_binary_op): Don't wrap arguments if
18369 int_operands is true.
18370
18371 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
18372
18373 PR target/48767
18374 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
18375 targetm.calls.must_pass_in_stack for void type.
18376
18377 2011-04-26 Jan Hubicka <jh@suse.cz>
18378
18379 * cgraphbuild.c (build_cgraph_edges): Update call
18380 of cgraph_create_edge and cgraph_create_indirect_edge.
18381 * cgraph.c (cgraph_create_edge_including_clones,
18382 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
18383 cgraph_update_edges_for_call_stmt_node): Do not take nest
18384 argument; do not initialize call_stmt_size/time.
18385 (dump_cgraph_node): Do not dump nest.
18386 (cgraph_clone_edge): Do not take loop_nest argument;
18387 do not propagate it; do not clone call_stmt_size/time.
18388 (cgraph_clone_node): Likewise.
18389 (cgraph_create_virtual_clone): Update.
18390 * cgraph.h (struct cgraph_edge): Remove
18391 call_stmt_size/call_stmt_time/loop_nest.
18392 (cgraph_create_edge, cgraph_create_indirect_edge,
18393 cgraph_create_edge_including_clones, cgraph_clone_node): Update
18394 prototype.
18395 * tree-emutls.c (gen_emutls_addr): Update.
18396 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
18397 loop_nest; handle indirect calls, too.
18398 (clone_inlined_nodes): Do not care about updating inline summaries.
18399 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
18400 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
18401 stream call_stmt_size/call_stmt_time/loop_nest.
18402 * ipa-inline.c (edge_badness): Update.
18403 (ipa_inline): dump summaries after inlining.
18404 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
18405 New.
18406 (inline_edge_summary): New function.
18407 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
18408 (inline_edge_removal_hook): Handle edge summaries.
18409 (inline_edge_duplication_hook): New hook.
18410 (inline_summary_alloc): Alloc hooks.
18411 (initialize_growth_caches): Do not register removal hooks.
18412 (free_growth_caches); Do not free removal hook.
18413 (dump_inline_edge_summary): New function.
18414 (dump_inline_summary): Use it.
18415 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
18416 (inline_update_callee_summaries): New function.
18417 (inline_merge_summary): Use it.
18418 (do_estimate_edge_time, do_estimate_edge_growth): Update.
18419 (read_inline_edge_summary): New function.
18420 (inline_read_section): Use it.
18421 (write_inline_edge_summary): New function.
18422 (inline_write_summary): Use it.
18423 (inline_free_summary): Free edge new holders.
18424 * tree-inline.c (copy_bb): Update.
18425
18426 2011-04-26 Jason Merrill <jason@redhat.com>
18427
18428 * tree-eh.c (lower_try_finally_switch): Create the label along with
18429 the CASE_LABEL_EXPR.
18430
18431 2011-04-26 David S. Miller <davem@davemloft.net>
18432 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18433
18434 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
18435 * configure: Regenerate.
18436
18437 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
18438
18439 PR target/48258
18440 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
18441 reduction.
18442 (VEC_reduc): New code iterator and splitters for vector reduction.
18443 (VEC_reduc_name): Ditto.
18444 (VEC_reduc_rtx): Ditto.
18445 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
18446 (reduc_<VEC_reduc_name>_v4sf): Ditto.
18447
18448 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18449 support for extracting SF on VSX.
18450
18451 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
18452 generating xscvspdp.
18453 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
18454 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
18455 double add, minimum, maximum vector reduction.
18456 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
18457 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
18458 optimize double vector reduction.
18459 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
18460
18461 2011-04-26 Joseph Myers <joseph@codesourcery.com>
18462
18463 * config/fr30/fr30.h (inhibit_libc): Don't define.
18464 * config/m32r/m32r-protos.h: Correct comment.
18465 * config/v850/v850.h (GHS_default_section_names,
18466 GHS_current_section_names): Use tree, not union tree_node *.
18467
18468 2011-04-26 Xinliang David Li <davidxl@google.com>
18469
18470 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
18471 * c-family/c-opts.c (c_common_handle_option): Set
18472 warn_maybe_uninitialized.
18473 * opts.c (common_handle_option): Ditto.
18474 * common.opt: New option.
18475 * tree-ssa.c (warn_uninit): Add one more parameter.
18476 (warn_uninitialized_var): Pass warning code.
18477 * tree-flow.h: Interface change.
18478
18479 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18480
18481 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
18482 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
18483 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
18484
18485 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18486
18487 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
18488 * config/mips/mips.opt (mmips-tfile): Remove.
18489
18490 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
18491 mips-tdump reference to ...
18492 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
18493 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
18494 reference by Tru64 UNIX.
18495
18496 2011-04-26 Jakub Jelinek <jakub@redhat.com>
18497
18498 PR debug/48768
18499 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
18500 is error_mark_node, set value to NULL.
18501
18502 PR tree-optimization/48734
18503 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
18504 if return value from maybe_fold_*_comparsions isn't something
18505 the code is prepared to handle.
18506
18507 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
18508
18509 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
18510 mode check.
18511 (ext_QIreg_nomode_operands): Remove.
18512 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
18513 (*andsi_1): Ditto.
18514 (*andhi_1): Ditto.
18515
18516 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
18517
18518 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
18519
18520 2011-04-26 Richard Guenther <rguenther@suse.de>
18521
18522 * c-typeck.c (build_unary_op): Do not expand array-refs via
18523 pointer arithmetic. Only adjust qualifiers for function types.
18524
18525 2011-04-26 Richard Guenther <rguenther@suse.de>
18526
18527 PR middle-end/48694
18528 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
18529 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
18530 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
18531 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
18532
18533 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
18534
18535 * doc/extend.texi: Document __underlying_type.
18536
18537 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
18538
18539 * config/rs6000/titan.md (automata_option "progress"): Remove.
18540
18541 2011-04-25 Jeff Law <law@redhat.com>
18542
18543 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
18544
18545 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
18546
18547 * system.h (ENUM_BITFIELD): Remove.
18548
18549 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
18550 Eric Botcazou <ebotcazou@adacore.com>
18551
18552 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
18553 for STORE_FLAG_VALUE==-1 case.
18554
18555 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
18556
18557 PR target/43804
18558 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
18559 LEGITIMATE_PIC_OPERAND_P.
18560
18561 2011-04-24 Jan Hubicka <jh@suse.cz>
18562
18563 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
18564 WPA hack.
18565 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
18566 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
18567 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
18568 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
18569 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
18570 Sanity check predicate length.
18571 (remap_predicate): Likewise; sanity check jump functions.
18572 (inline_read_section, inline_write_summary): Sanity check
18573 predicate length.
18574
18575 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
18576
18577 PR other/48748
18578 * doc/extend.texi (Type Traits): Document __is_standard_layout,
18579 __is_literal_type, and __is_trivial; update throughout about
18580 possibly cv-qualified void types.
18581
18582 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
18583
18584 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
18585 testsuite and make it version agnostic.
18586
18587 2011-04-22 Jan Hubicka <jh@suse.cz>
18588
18589 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
18590
18591 2011-04-23 Jakub Jelinek <jakub@redhat.com>
18592
18593 PR c/48685
18594 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
18595 to VOID_TYPE even around MODIFY_EXPR.
18596
18597 2011-04-22 Mike Stump <mikestump@comcast.net>
18598
18599 * gensupport.c (read_md_rtx): Fix typo in comment.
18600 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
18601 comment.
18602
18603 2011-04-22 Jan Hubicka <jh@suse.cz>
18604
18605 * gengtype.c (open_base_files): Add ipa-inline.h include.
18606 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
18607 ipa-prop.c; update all uses.
18608 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
18609 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
18610 merge summary of inlined function into former caller.
18611 * ipa-inline.c (max_benefit): Remove.
18612 (edge_badness): Compensate for removal of benefits.
18613 (update_caller_keys): Use
18614 reset_node_growth_cache/reset_edge_growth_cache.
18615 (update_callee_keys): Likewise.
18616 (update_all_callee_keys): Likewise.
18617 (inline_small_functions): Do not collect max_benefit; do not reset
18618 estimated_growth; call free_growth_caches and initialize_growth_caches.
18619 * ipa-inline.h (struct condition, type clause_t, struct predicate,
18620 struct size_time_entry): New structures.
18621 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
18622 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
18623 and estimated_growth.
18624 (edge_growth_cache_entry): New structure.
18625 (node_growth_cache, edge_growth_cache): New global vars.
18626 (estimate_growth): Turn into inline.
18627 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
18628 initialize_growth_caches, free_growth_caches): Declare.
18629 (estimate_edge_growth): Rewrite.
18630 (estimate_edge_time): Implement as inline cache lookup.
18631 (reset_node_growth_cache, reset_edge_growth_cache): New inline
18632 functions.
18633 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
18634 (NUM_CONDITIONS): New constant.
18635 (predicate_conditions): New enum.
18636 (IS_NOT_CONSTANT): New constant.
18637 (edge_removal_hook_holder): New var.
18638 (node_growth_cache, edge_growth_cache): New global vars.
18639 (true_predicate, single_cond_predicate, false_predicate,
18640 not_inlined_predicate, add_condition, add_clause, and_predicates,
18641 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
18642 dump_clause, dump_predicate, account_size_time,
18643 evaulate_conditions_for_edge): New functions.
18644 (inline_summary_alloc): Move to heap.
18645 (inline_node_removal_hook): Clear condition and entry vectors.
18646 (inline_edge_removal_hook): New function.
18647 (initialize_growth_caches, free_growth_caches): New function.
18648 (dump_inline_summary): Update.
18649 (edge_execution_predicate): New function.
18650 (will_be_nonconstant_predicate): New function.
18651 (estimate_function_body_sizes): Compute BB and constantness predicates.
18652 (compute_inline_parameters): Do not clear estimated_growth.
18653 (estimate_edge_size_and_time): New function.
18654 (estimate_calls_size_and_time): New function.
18655 (estimate_callee_size_and_time): New function.
18656 (remap_predicate): New function.
18657 (inline_merge_summary): New function.
18658 (do_estimate_edge_time): New function based on...
18659 (estimate_edge_time): ... this one.
18660 (do_estimate_edge_growth): New function.
18661 (do_estimate_growth): New function based on....
18662 (estimate_growth): ... this one.
18663 (inline_analyze_function): Analyze after deciding on jump functions.
18664 (inline_read_section): New function.
18665 (inline_read_summary): Use it.
18666 (inline_write_summary): Write all the new data.
18667 * ipa-prop.c (ipa_get_param_decl_index): Export.
18668 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
18669 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
18670 Declare.
18671 (ipa_get_lattice): Move here from ipa-cp.c
18672 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
18673 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
18674 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
18675 cgraph_edge_inlinable_p): Remove.
18676 * cgraphunit.c: Include ipainline.h
18677 (cgraph_process_new_functions): Update call of
18678 compute_inline_parameters.
18679
18680 2011-04-22 Richard Guenther <rguenther@suse.de>
18681
18682 * tree.c (build_int_cst): Properly create canonicalized integer
18683 constants.
18684 (build_int_cst_type): Remove scary comments.
18685
18686 2011-04-22 Xinliang David Li <davidxl@google.com>
18687
18688 * toplev.c (process_options): Enable -Werror=coverage-mismatch
18689 by default when -Wno-error is not specified.
18690 * opts-global.c (decode_options): Remove call to
18691 control_warning_options.
18692
18693 2011-04-22 Jakub Jelinek <jakub@redhat.com>
18694
18695 PR tree-optimization/48717
18696 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
18697 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
18698
18699 2011-04-22 Joseph Myers <joseph@codesourcery.com>
18700
18701 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
18702 definition where used.
18703
18704 2011-04-22 Jakub Jelinek <jakub@redhat.com>
18705
18706 PR c/48716
18707 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
18708 TREE_STATIC variables declared inside of some OpenMP construct.
18709
18710 2011-04-22 Martin Jambor <mjambor@suse.cz>
18711
18712 PR middle-end/48585
18713 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
18714
18715 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
18716
18717 PR c/36750
18718 * c-typeck.c (pop_init_level): Do not warn about initializing
18719 with ` = {0}'.
18720
18721 2011-04-22 Alan Modra <amodra@gmail.com>
18722
18723 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
18724 when returning call_cookie.
18725 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
18726 pointers, to functions with no more vector args than the current
18727 function, and some non-local calls for ABI_V4.
18728 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
18729 sibcall_nonlocal_aix64): Combine to ..
18730 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
18731 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
18732 (sibcall_value_nonlocal_aix<mode>): ..likewise.
18733 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
18734 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
18735 operand.
18736 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
18737 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
18738 sibcall_value_symbolic_64): Delete.
18739
18740 2011-04-21 Xinliang David Li <davidxl@google.com>
18741
18742 * cgraph.h: Remove pid.
18743 * cgraph.c: Remove pid.
18744 * value-prof.c (init_node_map): New function.
18745 (del_node_map): New function.
18746 (find_func_by_funcdef_no): New function.
18747 (gimple_ic_transform): Call new function.
18748 * cgraphunit.c (cgraph_finalize_function): Remove pid.
18749 * function.c (get_last_funcdef_no): New function.
18750 * function.h (get_last_funcdef_no): New function.
18751 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
18752 to libgcov function.
18753 (tree-profiling): Call node map init and delete function.
18754
18755 2011-04-21 Ian Lance Taylor <iant@google.com>
18756
18757 * godump.c (go_format_type): Use exported Go name for anonymous
18758 field name.
18759
18760 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18761
18762 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
18763 Call builtin_function_type_list instead of builtin_function_type.
18764 (UNARY, BINARY, TRINARY, QUAD): Likewise.
18765
18766 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18767
18768 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
18769 build_function_type_list instead of build_function_type.
18770 Delete variable `endlink'.
18771
18772 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18773
18774 * config/s390/s390.c (s390_init_builtins): Call
18775 build_function_type_list instead of build_function_type.
18776
18777 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18778
18779 * config/ia64/ia64.c (ia64_init_builtins): Call
18780 build_function_type_list instead of builtin_function_type.
18781
18782 2011-04-21 Easwaran Raman <eraman@google.com>
18783
18784 * cfgexpand.c (stack_var): Remove OFFSET...
18785 (add_stack_var): ...and its reference here...
18786 (expand_stack_vars): ...and here.
18787 (stack_var_cmp): Sort by descending order of size.
18788 (partition_stack_vars): Change heuristic.
18789 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
18790 (dump_stack_var_partition): Add newline after each partition.
18791
18792 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
18793 Jeff Law <law@redhat.com>
18794
18795 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
18796 * gengtype.c (matching_file_name_substitute): Likewise.
18797
18798 2011-04-21 Richard Guenther <rguenther@suse.de>
18799
18800 PR lto/48703
18801 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
18802
18803 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
18804
18805 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
18806
18807 2011-04-21 Richard Guenther <rguenther@suse.de>
18808
18809 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
18810 file name.
18811
18812 2011-04-21 Richard Guenther <rguenther@suse.de>
18813
18814 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
18815 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
18816 Use DECL_P, not SSA_VAR_P.
18817 (ptr_derefs_may_alias_p): Likewise.
18818 (ptr_deref_may_alias_ref_p_1): Likewise.
18819 (decl_refs_may_alias_p): Likewise.
18820 (refs_may_alias_p_1): Likewise.
18821 (ref_maybe_used_by_call_p_1): Likewise.
18822 (call_may_clobber_ref_p_1): Likewise.
18823 (indirect_ref_may_alias_decl_p): Assume indirect refrences
18824 are either MEM_REF or TARGET_MEM_REF.
18825 (indirect_refs_may_alias_p): Likewise.
18826 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
18827 for MEM_EXPR of indirect calls.
18828
18829 2011-04-21 Tristan Gingold <gingold@adacore.com>
18830
18831 * vmsdbgout.c (write_srccorr): Compute file length from the string.
18832 (dst_file_info_struct): Remove flen field.
18833 (lookup_filename): Remove code that set flen field.
18834
18835 2011-04-21 Tristan Gingold <gingold@adacore.com>
18836
18837 * config/ia64/ia64.c (ia64_start_function): Add a guard.
18838
18839 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
18840
18841 PR target/48708
18842 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
18843 vec_extract and vec_concat for non-SSE4_1 targets.
18844
18845 2011-04-21 Richard Guenther <rguenther@suse.de>
18846
18847 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
18848 return statements.
18849
18850 2011-04-21 Joseph Myers <joseph@codesourcery.com>
18851
18852 * config/i386/cygming.h (union tree_node, TREE): Don't define or
18853 undefine.
18854 (FILE): Don't undefine.
18855
18856 2011-04-21 Joseph Myers <joseph@codesourcery.com>
18857
18858 * config/alpha/alpha.c (struct machine_function): Use rtx, not
18859 struct rtx_def *.
18860 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
18861 struct rtx_def *.
18862 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
18863 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
18864 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
18865 rtx_def *.
18866 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
18867 definitions where used.
18868 * config/microblaze/microblaze.h (struct microblaze_args): Use
18869 rtx, not struct rtx_def *.
18870 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
18871 rtx_def *.
18872 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
18873 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
18874 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
18875 not struct rtx_def *.
18876 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
18877 struct rtx_def *.
18878 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
18879 rtx_def *.
18880 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
18881
18882 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18883
18884 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
18885 operand_equal_p to compare DR_BASE_ADDRESSes.
18886 (vect_check_interleaving): Likewise.
18887
18888 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18889
18890 PR target/46329
18891 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
18892 for all Neon struct constants.
18893
18894 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18895
18896 * target.def (legitimate_constant_p): New hook.
18897 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
18898 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
18899 * doc/tm.texi: Regenerate.
18900 * hooks.h (hook_bool_mode_rtx_true): Declare.
18901 * hooks.c (hook_bool_mode_rtx_true): Define.
18902 * system.h (LEGITIMATE_CONSTANT_P): Poison.
18903 * calls.c (precompute_register_parameters): Replace uses of
18904 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
18905 (emit_library_call_value_1): Likewise.
18906 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
18907 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
18908 * ira-costs.c (scan_one_insn): Likewise.
18909 * recog.c (general_operand, immediate_operand): Likewise.
18910 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
18911 * reload1.c (init_eliminable_invariants): Likewise.
18912
18913 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
18914 mode argument.
18915 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
18916 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
18917 argument.
18918 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18919 * config/alpha/predicates.md (input_operand): Update call to
18920 alpha_legitimate_constant_p.
18921
18922 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
18923 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
18924 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
18925 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18926 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
18927 (arm_legitimate_constant_p): New functions.
18928 (arm_cannot_force_const_mem): Make static.
18929
18930 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
18931
18932 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
18933 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
18934 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
18935 instead of bfin_legitimate_constant_p.
18936 (bfin_legitimate_constant_p): Make static. Add a mode argument.
18937 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18938
18939 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
18940
18941 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
18942
18943 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
18944 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
18945 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18946 (frv_legitimate_constant_p): Make static. Add a mode argument.
18947
18948 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
18949 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
18950 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
18951
18952 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
18953 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
18954 * config/i386/i386.c (legitimate_constant_p): Rename to...
18955 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
18956 argument.
18957 (ix86_cannot_force_const_mem): Update accordingly.
18958 (ix86_legitimate_address_p): Likewise.
18959 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18960 * config/i386/i386.md: Update commentary.
18961
18962 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
18963 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
18964 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18965 (ia64_legitimate_constant_p): Make static. Add a mode argument.
18966
18967 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
18968
18969 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
18970 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
18971 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18972 (lm32_legitimate_constant_p): Make static. Add a mode argument.
18973
18974 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
18975 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
18976 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
18977
18978 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
18979 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18980 (m32r_legitimate_constant_p): New function.
18981
18982 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
18983 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
18984 LEGITIMATE_CONSTANT_P.
18985 (LEGITIMATE_CONSTANT_P): Delete.
18986 * config/m68k/m68k.c (m68k_expand_prologue): Call
18987 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
18988 (m68k_legitimate_constant_p): New function.
18989 * config/m68k/m68k.md: Update comments.
18990
18991 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
18992 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18993 (mcore_legitimate_constant_p): New function.
18994
18995 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
18996 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
18997 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
18998 Add a mode argument.
18999 (mep_legitimate_address): Update accordingly.
19000 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19001
19002 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
19003 Delete.
19004 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
19005 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
19006 static. Check OP's mode for VOIDmode.
19007 (microblaze_legitimate_constant_p): New function.
19008 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19009
19010 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
19011 * config/mips/mips.c (mips_legitimate_constant_p): New function.
19012 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
19013 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19014 * config/mips/predicates.md: Update comments.
19015
19016 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
19017 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
19018 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19019 (mmix_legitimate_constant_p): Make static, return a bool, and take
19020 a mode argument.
19021 (mmix_print_operand_address): Update accordingly.
19022
19023 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
19024 Delete.
19025 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
19026 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
19027 static. Add a mode argument.
19028 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19029
19030 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
19031
19032 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
19033 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19034 (pa_legitimate_constant_p): New function.
19035
19036 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
19037
19038 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
19039 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19040 (pdp11_legitimate_constant_p): New function.
19041
19042 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
19043 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19044 (rs6000_legitimate_constant_p): New function.
19045
19046 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
19047 (rx_legitimate_constant_p): ...this.
19048 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
19049 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
19050 (rx_legitimate_constant_p): ...this.
19051 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19052 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
19053
19054 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
19055 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
19056 * config/s390/s390.c (legitimate_constant_p): Rename to...
19057 (s390_legitimate_constant_p): ...this. Make static, return a bool,
19058 and add a mode argument.
19059 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19060
19061 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
19062
19063 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
19064 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19065 (sh_legitimate_constant_p): New function.
19066
19067 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
19068 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
19069 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19070 (legitimate_constant_p): Rename to...
19071 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
19072 argument.
19073 (constant_address_p): Update accordingly.
19074
19075 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
19076 argument and return a bool.
19077 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
19078 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19079 (spu_legitimate_constant_p): Add a mode argument and return a bool.
19080 (spu_rtx_costs): Update accordingly.
19081 * config/spu/predicates.md (vec_imm_operand): Likewise.
19082
19083 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
19084
19085 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
19086 * config/v850/v850.c (v850_legitimate_constant_p): New function.
19087 (TARGET_LEGITIMATE_CONSTANT_P): Define.
19088
19089 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
19090 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
19091 * config/vax/vax.c (legitimate_constant_p): Likewise.
19092
19093 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
19094 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19095 (xtensa_legitimate_constant_p): New function.
19096
19097 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
19098
19099 * target.def (cannot_force_const_mem): Add a mode argument.
19100 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
19101 * doc/tm.texi: Regenerate.
19102 * hooks.h (hook_bool_mode_rtx_false): Declare.
19103 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
19104 (hook_bool_mode_const_rtx_true): Likewise.
19105 (hook_bool_mode_rtx_false): New function.
19106 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
19107 to be non-VOID. Update call to cannot_force_const_mem.
19108 (find_reloads): Update accordingly.
19109 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
19110 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
19111 argument.
19112 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
19113 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
19114 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
19115 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
19116 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
19117 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
19118 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
19119 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
19120 (m68k_cannot_force_const_mem): ...this new function.
19121 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
19122 argument.
19123 (mips_const_insns, mips_legitimize_const_move): Update calls.
19124 (mips_secondary_reload_class): Likewise.
19125 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
19126 (pa_cannot_force_const_mem): ...this new function.
19127 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
19128 (rs6000_cannot_force_const_mem): ...this new function.
19129 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
19130 argument.
19131 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
19132 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
19133 to...
19134 (xtensa_cannot_force_const_mem): ...this new function.
19135
19136 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
19137
19138 * config/mips/mips.c (mips16_build_function_stub): Call
19139 build_function_type_list instead of build_function_type.
19140 (mips16_build_call_stub): Likewise.
19141
19142 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
19143
19144 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
19145 instead of build_function_type.
19146
19147 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
19148
19149 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
19150 instead of build_function_type.
19151
19152 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
19153
19154 PR target/48678
19155 * config/i386/i386.md (insv): Change operand 0 constraint to
19156 "register_operand". Change operand 1 and 2 constraint to
19157 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
19158 * config/i386/sse.md (sse4_1_pinsrb): Export.
19159 (sse2_pinsrw): Ditto.
19160 (sse4_1_pinsrd): Ditto.
19161 (sse4_1_pinsrq): Ditto.
19162 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
19163 * config/i386/i386.c (ix86_expand_pinsr): New.
19164
19165 2011-04-20 Easwaran Raman <eraman@google.com>
19166
19167 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
19168 containing union type only with -fstrict-aliasing.
19169
19170 2011-04-20 Jim Meyering <meyering@redhat.com>
19171
19172 Remove useless if-before-free tests.
19173 * calls.c (expand_call, save_area): Likewise.
19174 * cfgcleanup.c (try_forward_edges): Likewise.
19175 * collect2.c (collect_execute): Likewise.
19176 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
19177 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
19178 * coverage.c (coverage_checksum_string): Likewise.
19179 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
19180 * cselib.c (cselib_init): Likewise.
19181 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
19182 (df_set_clean_cfg): Likewise.
19183 * function.c (free_after_compilation): Likewise.
19184 * gcc.c (do_spec_1, main): Likewise.
19185 * gcov.c (create_file_names): Likewise.
19186 * gensupport.c (identify_predicable_attribute): Likewise.
19187 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
19188 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
19189 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
19190 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
19191 * ipa-pure-const.c (local_pure_const): Likewise.
19192 * ipa-reference.c (propagate): Likewise.
19193 * ira-costs.c (free_ira_costs): Likewise.
19194 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
19195 * matrix-reorg.c (mat_free): Likewise.
19196 * prefix.c (get_key_value): Likewise.
19197 * profile.c (compute_value_histograms): Likewise.
19198 * reload1.c (free_reg_equiv): Likewise.
19199 * sched-deps.c (free_deps): Likewise.
19200 * sel-sched-ir.c (fence_clear): Likewise.
19201 * sese.c (set_rename, if_region_set_false_region): Likewise.
19202 * tree-data-ref.c (free_rdg): Likewise.
19203 * tree-eh.c (lower_try_finally): Likewise.
19204 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
19205 * tree-ssa-live.c (delete_var_map): Likewise.
19206 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
19207 * tree-ssa-pre.c (phi_trans_add): Likewise.
19208
19209 2011-04-20 Jakub Jelinek <jakub@redhat.com>
19210
19211 PR tree-optimization/48611
19212 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
19213 beyond ERT_MUST_NOT_THROW region.
19214
19215 2011-04-20 Catherine Moore <clm@codesourcery.com>
19216
19217 * config/mips/mips.opt (mfix-24k): New.
19218 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
19219 * config/mips/mips.md (length): Increase by 4 for stores if
19220 fixing 24K errata.
19221 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
19222 all noreorder if fixing 24K errata.
19223 * doc/invoke.texi: Document mfix-24k.
19224
19225 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
19226
19227 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
19228 quad-word modes, reduce to 9-bit index range when above 1016 limit.
19229
19230 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
19231
19232 * config/arm/arm.c (arm_gen_constant): Move movw support ....
19233 (const_ok_for_op): ... to here.
19234
19235 2011-04-20 Kai Tietz <ktietz@redhat.com>
19236
19237 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
19238 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
19239
19240 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
19241
19242 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
19243
19244 2011-04-20 Richard Guenther <rguenther@suse.de>
19245
19246 PR tree-optimization/47892
19247 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
19248 are if-convertible.
19249
19250 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
19251
19252 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
19253
19254 2011-04-20 Tristan Gingold <gingold@adacore.com>
19255
19256 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
19257
19258 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
19259
19260 PR target/18145
19261
19262 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
19263 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
19264 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
19265 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
19266 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
19267
19268 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
19269 New prototype.
19270
19271 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
19272 (avr_asm_named_section, avr_asm_output_aligned_common,
19273 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
19274 New functions to update...
19275 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
19276 (avr_asm_init_sections): Overwrite section callbacks for
19277 data_section, bss_section.
19278 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
19279 from here to...
19280 (avr_file_end): ...here.
19281
19282 2011-04-20 Richard Guenther <rguenther@suse.de>
19283
19284 PR middle-end/48695
19285 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
19286 objects and types here. Adjust for their offset before comparing.
19287
19288 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
19289
19290 * tree-vect-stmts.c (vectorizable_store): Only chain one related
19291 statement per copy.
19292
19293 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
19294
19295 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
19296 (GIMPLE_H): Include $(INTERNAL_FN_H).
19297 (OBJS-common): Add internal-fn.o.
19298 (internal-fn.o): New rule.
19299 * internal-fn.def: New file.
19300 * internal-fn.h: Likewise.
19301 * internal-fn.c: Likewise.
19302 * gimple.h: Include internal-fn.h.
19303 (GF_CALL_INTERNAL): New gf_mask.
19304 (gimple_statement_call): Put fntype into a union with a new
19305 internal_fn field.
19306 (gimple_build_call_internal): Declare.
19307 (gimple_build_call_internal_vec): Likewise.
19308 (gimple_call_same_target_p): Likewise.
19309 (gimple_call_internal_p): New function.
19310 (gimple_call_internal_fn): Likewise.
19311 (gimple_call_fntype): Return null for internal calls.
19312 (gimple_call_set_fntype): Assert that the function is not internal.
19313 (gimple_call_set_fn): Likewise.
19314 (gimple_call_set_fndecl): Likewise.
19315 (gimple_call_set_internal_fn): New function.
19316 (gimple_call_addr_fndecl): Handle null functions.
19317 (gimple_call_return_type): Likewise null types.
19318 * gimple.c (gimple_build_call_internal_1): New function.
19319 (gimple_build_call_internal): Likewise.
19320 (gimple_build_call_internal_vec): Likewise.
19321 (gimple_call_same_target_p): Likewise.
19322 (gimple_call_flags): Handle calls to internal functions.
19323 (gimple_call_fnspec): New function.
19324 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
19325 (gimple_has_side_effects): Handle null functions.
19326 (gimple_rhs_has_side_effects): Likewise.
19327 (gimple_call_copy_skip_args): Handle calls to internal functions.
19328 * cfgexpand.c (expand_call_stmt): Likewise.
19329 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
19330 * gimple-fold.c (gimple_fold_call): Handle null functions.
19331 (gimple_fold_stmt_to_constant_1): Don't fold
19332 calls to internal functions.
19333 * gimple-low.c (gimple_check_call_args): Handle calls to internal
19334 functions.
19335 * gimple-pretty-print.c (dump_gimple_call): Likewise.
19336 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
19337 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
19338 (do_warn_unused_result): Likewise.
19339 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
19340 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
19341 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
19342 the target of a call.
19343 (initialize_hash_element): Update accordingly.
19344 (hashable_expr_equal_p): Use gimple_call_same_target_p.
19345 (iterative_hash_hashable_expr): Handle calls to internal functions.
19346 (print_expr_hash_elt): Likewise.
19347 * tree-ssa-pre.c (can_value_number_call): Likewise.
19348 (eliminate): Handle null functions.
19349 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
19350 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
19351 (find_func_aliases): Likewise.
19352 * value-prof.c (gimple_ic_transform): Likewise.
19353 (gimple_indirect_call_to_profile): Likewise.
19354 * lto-streamer-in.c (input_gimple_stmt): Likewise.
19355 * lto-streamer-out.c (output_gimple_stmt): Likewise.
19356
19357 2011-04-19 Jan Hubicka <jh@suse.cz>
19358
19359 * ipa-inline-transform.c (save_inline_function_body): Add comments.
19360 * ipa-inline.c (inline_small_functions): Compute summaries first,
19361 populate heap later.
19362
19363 2011-04-19 Jan Hubicka <jh@suse.cz>
19364
19365 * cgraph.h (save_inline_function_body): Remove.
19366 * ipa-inline-transform.c: New file, broke out of...
19367 * ipa-inline.c: ... this one; Update toplevel comment.
19368 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
19369 make global.
19370 (update_noncloned_frequencies): Move to ipa-inline-transform.c
19371 (cgraph_mark_inline_edge): Rename to inline_call; move to
19372 ipa-inline-transform.c.
19373 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
19374 move to ipa-inline-transform.c
19375 (recursive_inlining, inline_small_functions, flatten_function,
19376 ipa_inline, inline_always_inline_functions,
19377 early_inline_small_functions): Update.
19378 (inline_transform): Move to ipa-inline-transform.c.
19379 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
19380 Declare.
19381 * Makefile.in (ipa-inline-transform.o): New file.
19382 * cgraphunit.c (save_inline_function_body): Move to
19383 ipa-inline-transform.c
19384
19385 2011-04-19 DJ Delorie <dj@redhat.com>
19386
19387 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
19388 registers if we already know there aren't any.
19389 (m32c_emit_epilogue): Don't emit a barrier here.
19390 (m32c_emit_eh_epilogue): Likewise.
19391 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
19392 operands at expand time.
19393 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
19394 int" wchar type.
19395 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
19396 duplicates. Provide aliases instead.
19397 * config/m32c/prologue.md (eh_return): Emit a barrier here.
19398 (eh_epilogue): Add a "(return)" here as a hint to other parts of
19399 the compiler.
19400
19401 2011-04-19 Anatoly Sokolov <aesok@post.ru>
19402
19403 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
19404 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
19405 (general_or_i64_p, sparc_register_move_cost): New function.
19406
19407 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19408
19409 * doc/install.texi (Configuration, --enable-threads): Remove mach.
19410 Add lynx, mipssde. Sort table.
19411
19412 2011-04-19 Xinliang David Li <davidxl@google.com>
19413
19414 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
19415 not negative.
19416
19417 2011-04-19 Jakub Jelinek <jakub@redhat.com>
19418
19419 PR target/48678
19420 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
19421 is a SUBREG with non-MODE_INT mode inside of it.
19422
19423 2011-04-19 Martin Jambor <mjambor@suse.cz>
19424
19425 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
19426 also according to actual contants.
19427 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
19428 (gimple_fold_call): Use it.
19429 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
19430
19431 2011-04-19 Martin Jambor <mjambor@suse.cz>
19432
19433 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
19434 non-pointer assignments.
19435
19436 2011-04-19 Martin Jambor <mjambor@suse.cz>
19437
19438 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
19439 account anc_offset and otr_type from the indirect edge info.
19440 * ipa-prop.c (get_ancestor_addr_info): New function.
19441 (compute_complex_ancestor_jump_func): Assignment analysis moved to
19442 get_ancestor_addr_info, call it.
19443 (ipa_note_param_call): Do not initialize information about polymorphic
19444 calls, return the indirect call graph edge. Remove the last
19445 parameter, adjust all callers.
19446 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
19447 parameters. Initialize polymorphic information in the indirect edge.
19448
19449 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
19450
19451 PR lto/48148
19452 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
19453 the types if they have different enumeration identifiers.
19454
19455 2011-04-19 Jan Hubicka <jh@suse.cz>
19456
19457 * cgraph.h (cgraph_optimize_for_size_p): Declare.
19458 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
19459 * predict.c (cgraph_optimize_for_size_p): Break out from ...
19460 (optimize_function_for_size_p) ... here.
19461
19462 2011-04-19 Richard Guenther <rguenther@suse.de>
19463
19464 PR lto/48207
19465 * tree.c (free_lang_data): Do not reset the decl-assembler-name
19466 langhook.
19467
19468 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
19469
19470 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
19471 if DECL_NO_INLINE_WARNING_P is set on the function.
19472
19473 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
19474
19475 PR fortran/47976
19476 * reload1.c (inc_for_reload): Return void. All callers changed.
19477 (emit_input_reload_insns): Don't try to delete previous output
19478 reloads to a register, or record spill_reg_store for autoincs.
19479
19480 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
19481
19482 * gengtype.h: Updated copyright year.
19483 (struct input_file_st): Add inpisplugin field.
19484 (type_fileloc): New function.
19485 * gengtype.c
19486 (write_typed_struct_alloc_def): Add gcc_assert.
19487 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
19488 (write_typed_alloc_defns): Don't output for plugin files.
19489 (input_file_by_name): Clear inpisplugin field.
19490 (main): Set inpisplugin field for plugin files.
19491
19492 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
19493
19494 * gengtype-state.c (string_eq): New.
19495 (read_state): Use string_eq instead of strcmp when creating the
19496 state_ident_tab.
19497
19498 2011-04-19 Wei Guozhi <carrot@google.com>
19499
19500 PR target/47855
19501 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
19502 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
19503 linkage.
19504 * config/arm/constraints.md (Uu): New constraint.
19505 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
19506
19507 2011-04-19 Tristan Gingold <gingold@adacore.com>
19508
19509 * config.gcc (-*-*-*vms): Added.
19510 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
19511 definitions moved.
19512 * config/vms/vms-ld.c: New file.
19513 * config/vms/vms-ar.c: New file.
19514 * config/vms/t-vmsnative: New file.
19515
19516 2011-04-18 Xinliang David Li <davidxl@google.com>
19517
19518 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
19519
19520 2011-04-18 Jakub Jelinek <jakub@redhat.com>
19521
19522 PR middle-end/48661
19523 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
19524 if TREE_TYPE (v) is non-NULL.
19525
19526 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
19527 gimple_get_virt_mehtod_for_binfo.
19528 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
19529 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
19530 callers.
19531 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19532
19533 2011-04-18 Michael Matz <matz@suse.de>
19534 Steve Ellcey <sje@cup.hp.com>
19535
19536 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
19537 use its mode as source mode if it isn't VOIDmode.
19538
19539 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
19540
19541 * doc/passes.texi: Fill crossref nodes.
19542
19543 2011-04-18 Jim Meyering <meyering@redhat.com>
19544
19545 Fix doubled-word typos in comments and strings
19546 * config/alpha/vms-unwind.h: s/for for/for/
19547 * config/arm/unwind-arm.h: Likewise.
19548 * config/microblaze/microblaze.c: Likewise.
19549 * config/sh/constraints.md: s/in in/in/
19550 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
19551
19552 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
19553
19554 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
19555 (AVX_FLOAT_MODE_P): Ditto.
19556 (AVX128_VEC_FLOAT_MODE_P): Ditto.
19557 (AVX256_VEC_FLOAT_MODE_P): Ditto.
19558 (AVX_VEC_FLOAT_MODE_P): Ditto.
19559 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
19560 (UNSPEC_MASKSTORE): Ditto.
19561 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
19562 Merge from <sse>_movmsk<ssemodesuffix> and
19563 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
19564 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
19565 iterator.
19566 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
19567 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
19568 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
19569
19570 2011-04-18 Jan Hubicka <jh@suse.cz>
19571
19572 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
19573
19574 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
19575 (want_inline_function_called_once_p): Break out the logic from
19576 ipa_inline.
19577 (edge_badness): Ensure that profile is not misupdated.
19578 (lookup_recursive_calls): Prioritize by call frequencies.
19579 (inline_small_functions): Move program size estimates here;
19580 actually process whole queue even when unit growth has been
19581 met. (to properly compute inline_failed reasons and for the
19582 case unit size decrease.) Revisit comments on recursive inlining.
19583 (ipa_inline): Remove unit summary code; first inline hot calls
19584 of functions called once, cold calls next.
19585 (order, nnodes): Remove unused variables.
19586 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
19587 (GTFILES): Remove ipa-inline.c
19588 * sel-sched.c (fill_insns): Silence uninitialized var warning.
19589
19590 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
19591
19592 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
19593
19594 2011-04-18 Jie Zhang <jie@codesourcery.com>
19595 Richard Earnshaw <rearnsha@arm.com>
19596
19597 * arm.c (neon_builtin_type_bits): Remove.
19598 (typedef enum neon_builtin_mode): New.
19599 (T_MAX): Don't define.
19600 (typedef enum neon_builtin_datum): Remove bits, codes[],
19601 num_vars and base_fcode. Add mode, code and fcode.
19602 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
19603 VAR10): Change accordingly.
19604 (neon_builtin_data[]): Change accordingly
19605 (arm_init_neon_builtins): Change accordingly.
19606 (neon_builtin_compare): Remove.
19607 (locate_neon_builtin_icode): Remove.
19608 (arm_expand_neon_builtin): Change accordingly.
19609
19610 * arm.h (enum arm_builtins): Move to ...
19611 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
19612
19613 * arm.c (arm_builtin_decl): Declare.
19614 (TARGET_BUILTIN_DECL): Define.
19615 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
19616 (arm_builtin_decls[]): New.
19617 (arm_init_neon_builtins): Store builtin declarations in
19618 arm_builtin_decls[].
19619 (arm_init_tls_builtins): Likewise.
19620 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
19621 (arm_builtin_decl): New.
19622
19623 2011-04-18 Richard Guenther <rguenther@suse.de>
19624
19625 * tree.c (upper_bound_in_type): Build properly canonicalized
19626 INTEGER_CSTs.
19627 (lower_bound_in_type): Likewise.
19628
19629 2011-04-18 Richard Guenther <rguenther@suse.de>
19630
19631 * gimple.h (gimple_call_addr_fndecl): New function.
19632 (gimple_call_fndecl): Use it.
19633 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
19634 for direct calls.
19635 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
19636 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
19637
19638 2011-04-18 Richard Guenther <rguenther@suse.de>
19639
19640 PR middle-end/48650
19641 * tree.c (build_string): STRING_CST is now derived from tree_typed.
19642
19643 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
19644
19645 PR lto/48492
19646 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
19647 DECL_IN_CONSTANT_POOL without RTL.
19648
19649 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
19650 Ira Rosen <ira.rosen@linaro.org>
19651
19652 PR target/48252
19653 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
19654 to match neon_vzip/vuzp/vtrn_internal.
19655 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
19656 outputs explicitly dependent on both inputs.
19657 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
19658
19659 2011-04-18 Jakub Jelinek <jakub@redhat.com>
19660
19661 PR tree-optimization/48616
19662 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
19663 whether the shift is by scalar or vector based on whether all SLP
19664 scalar stmts have the same rhs.
19665
19666 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
19667
19668 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
19669 memory operands.
19670
19671 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
19672
19673 PR target/43700
19674 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
19675 registers.
19676
19677 2011-04-17 Jan Hubicka <jh@suse.cz>
19678
19679 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
19680 * cgrpahunit.c (cgraph_finalize_function): Do not set
19681 finalized_by_frontend.
19682 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
19683 finalized_by_frontend.
19684
19685 2011-04-17 Jan Hubicka <jh@suse.cz>
19686
19687 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
19688 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
19689 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
19690 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
19691 method.
19692 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
19693 gimple-fold.c
19694 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
19695
19696 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
19697
19698 PR lto/48538
19699 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
19700 is non-null before accessing it.
19701 (input_cgraph): Remove trailing spaces.
19702
19703 2011-04-17 Revital Eres <revital.eres@linaro.org>
19704
19705 * params.def (sms-min-sc): New param flag.
19706 * modulo-sched.c (sms_schedule): Use it.
19707 * doc/invoke.texi (sms-min-sc): Document it.
19708
19709 2011-04-17 Jan Hubicka <jh@suse.cz>
19710
19711 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
19712 present, also set gimple_call_set_cannot_inline.
19713 * ipa-inline.c: Update toplevel comment.
19714 (MAX_TIME): Remove.
19715 (cgraph_clone_inlined_nodes): Fix linebreaks.
19716 (cgraph_check_inline_limits): Restructure to ...
19717 (caller_growth_limits): ... this one; be more tolerant
19718 on growth in nested inline chains; add explanatory comment;
19719 fix stack accounting thinko introduced by previous patch.
19720 (cgraph_default_inline_p): Remove.
19721 (report_inline_failed_reason): New function.
19722 (can_inline_edge_p): New function.
19723 (can_early_inline_edge_p): New function.
19724 (leaf_node_p): Move upwards in file.
19725 (want_early_inline_function_p): New function.
19726 (want_inline_small_function_p): New function.
19727 (want_inline_self_recursive_call_p): New function.
19728 (cgraph_edge_badness): Rename to ...
19729 (edge_badness) ... this one; fix linebreaks.
19730 (update_edge_key): Update call of edge_baddness; add
19731 detailed dump about queue updates.
19732 (update_caller_keys): Use can_inline_edge_p and
19733 want_inline_small_function_p.
19734 (cgraph_decide_recursive_inlining): Rename to...
19735 (recursive_inlining): Use can_inline_edge_p and
19736 want_inline_self_recursive_call_p; simplify and remove no longer
19737 valid FIXME.
19738 (cgraph_set_inline_failed): Remove.
19739 (add_new_edges_to_heap): Use can_inline_edge_p and
19740 want_inline_small_function_p.
19741 (cgraph_decide_inlining_of_small_functions): Rename to ...
19742 (inline_small_functions): ... this one; cleanup; use
19743 can/want predicates; cleanup debug ouput; work edges till fibheap
19744 is exhausted and do not stop once unit growth is reached; remove
19745 later loop processing remaining edges.
19746 (cgraph_flatten): Rename to ...
19747 (flatten_function): ... this one; use can_inline_edge_p
19748 and can_early_inline_edge_p predicates.
19749 (cgraph_decide_inlining): Rename to ...
19750 (ipa_inline): ... this one; remove unreachable nodes before
19751 inlining functions called once; simplify the pass.
19752 (cgraph_perform_always_inlining): Rename to ...
19753 (inline_always_inline_functions): ... this one; use
19754 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
19755 (cgraph_decide_inlining_incrementally): Rename to ...
19756 (early_inline_small_functions): ... this one; simplify
19757 using new predicates; cleanup; make dumps prettier.
19758 (cgraph_early_inlining): Rename to ...
19759 (early_inliner): newer inline regular functions into always-inlines;
19760 fix updating of call stmt summaries.
19761 (pass_early_inline): Update for new names.
19762 (inline_transform): Fix formating.
19763 (gate_cgraph_decide_inlining): Rename to ...
19764 (pass_ipa_inline): ... this one.
19765 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
19766 * ipa-inline-analysis.c (dump_inline_summary): Update.
19767 (compute_inline_parameters): Do not compute disregard_inline_limits;
19768 look for mismatching arguments.
19769 (estimate_growth): Fix handlig of non-trivial self recursion.
19770 (inline_read_summary): Do not read info->disregard_inline_limits.
19771 (inline_write_summary): Do not write info->disregard_inline_limits.
19772 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
19773 and move all checks into can_inline_edge_p predicate; re-enable code
19774 comparing optimization levels.
19775 (expand_call_inline): Do not test inline_forbidden_into_p.
19776 * Makefile.in (ipa-inline.o): Update arguments.
19777
19778 2011-04-17 Revital Eres <revital.eres@linaro.org>
19779
19780 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
19781
19782 2011-04-17 Revital Eres <revital.eres@linaro.org>
19783
19784 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
19785
19786 2011-04-17 Michael Matz <matz@suse.de>
19787
19788 PR tree-optimization/48622
19789 PR lto/48645
19790 * ipa-inline-analysis.c (inline_read_summary): Read size/time
19791 in same order as they're written.
19792
19793 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19794
19795 * config/pa/predicates.md: Reorganize and simplify predicates.
19796 Eliminate duplicate code checks.
19797 (arith_operand): Rename to arith14_operand
19798 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
19799 * config/pa/pa.md: Use renamed operands.
19800 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
19801 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
19802 arith11_operand, adddi3_operand, indexed_memory_operand,
19803 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
19804 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
19805 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
19806 move_dest_operand, move_src_operand, prefetch_cc_operand,
19807 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
19808 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
19809 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
19810 div_operand, int5_operand, movb_comparison_operator,
19811 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
19812 arith_double_operand, ireg_operand, lhs_lshift_operand,
19813 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
19814 integer_store_memory_operand): Likewise.
19815 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
19816 (integer_store_memory_operand, read_only_operand,
19817 function_label_operand, borx_reg_operand,
19818 non_hard_reg_operand): Likewise.
19819 (eq_neq_comparison_operator): Delete unused operator.
19820 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
19821 function_label_operand.
19822 (emit_move_sequence): Likewise.
19823
19824 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
19825
19826 * config/i386/sse.md (sseunpackmode): New mode attribute.
19827 (ssepackmode): Ditto.
19828 (vec_pack_trunc_<mode>): Macroize expander from
19829 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
19830 (vec_unpacks_lo_<mode>): Macroize expander from
19831 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19832 (vec_unpacks_hi_<mode>): Macroize expander from
19833 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19834 (vec_unpacku_lo_<mode>): Macroize expander from
19835 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19836 (vec_unpacku_hi_<mode>): Macroize expander from
19837 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19838 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
19839 ix86_expand_sse4_unpack.
19840 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
19841
19842 2011-04-16 Jan Hubicka <jh@suse.cz>
19843
19844 * cgraphbuild.c: Include ipa-inline.h.
19845 (reset_inline_failed): Use initialize_inline_failed.
19846 * cgraph.c: Include ipa-inline.h.
19847 (cgraph_create_node_1): Do not initialize estimated_growth.
19848 (initialize_inline_failed): More to ipa-inline-analysis.c
19849 (dump_cgraph_node): Do not dump inline flags.
19850 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
19851 and disregard_inline_limits flags.
19852 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
19853 time, size, estimated_growth.
19854 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
19855 Update.
19856 * cgraphunit.c (cgraph_decide_is_function_needed): Use
19857 DECL_DISREGARD_INLINE_LIMITS.
19858 (cgraph_analyze_function): Do not initialize
19859 node->local.disregard_inline_limits.
19860 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
19861 inlinable, versionable and disregard_inline_limits.
19862 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
19863 cgraph_check_inline_limits, cgraph_default_inline_p,
19864 cgraph_edge_badness, update_caller_keys, update_callee_keys,
19865 add_new_edges_to_heap): Update.
19866 (cgraph_decide_inlining_of_small_function): Update; set
19867 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
19868 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
19869 cgraph_decide_inlining_incrementally): Update.
19870 * ipa-inline.h (inline_summary): Add inlinable, versionable,
19871 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
19872 time, size and estimated_growth parameters.
19873 (estimate_edge_growth): Update.
19874 (initialize_inline_failed): Declare.
19875 * ipa-split.c: Include ipa-inline.h
19876 (execute_split_functions): Update.
19877 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
19878 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
19879 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
19880 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
19881 estimated_growth to INT_MIN.
19882 (inline_node_duplication_hook): Likewise.
19883 (dump_inline_summary): Dump new fields.
19884 (compute_inline_parameters): Update.
19885 (estimate_edge_time, estimate_time_after_inlining,
19886 estimate_size_after_inlining, estimate_growth, inline_read_summary,
19887 inline_write_summary):
19888 (initialize_inline_failed): Move here from cgraph.c.
19889 * tree-sra.c: Include ipa-inline.h.
19890 (ipa_sra_preliminary_function_checks): Update.
19891 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
19892 ipa-inline.h.
19893
19894 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
19895
19896 * config/i386/sse.md (V16): New mode iterator.
19897 (VI1, VI8): Ditto.
19898 (AVXMODEQI, AVXMODEDI): Remove.
19899 (sse2, sse3): New mode attribute.
19900 (mov<mode>): Use V16 mode iterator.
19901 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
19902 (push<mode>1): Use V16 mode iterator.
19903 (movmisalign<mode>): Ditto.
19904 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
19905 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
19906 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
19907 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
19908 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
19909 avx_movdqu<avxmodesuffix>.
19910 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
19911 *avx_movdqu<avxmodesuffix>.
19912 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
19913 avx_lddqu<avxmodesuffix>.
19914 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
19915 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
19916 avx_movnt<AVXMODEDI:mode>.
19917 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
19918 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
19919
19920 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
19921
19922 PR target/48629
19923 * haifa-sched.c (prune_ready_list, schedule_block): Use
19924 sched_pressure_p rather than flag_sched_pressure.
19925
19926 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
19927
19928 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
19929 cgraph_get_node instead of cgraph_get_create_node.
19930
19931 2011-04-15 Jakub Jelinek <jakub@redhat.com>
19932
19933 * cfgexpand.c (expand_debug_expr): Use
19934 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
19935
19936 2011-04-15 Michael Matz <matz@suse.de>
19937
19938 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
19939 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
19940 * function.c (gimplify_parameters): Ditto.
19941 * gimplify.c (gimplify_vla_decl): Ditto.
19942
19943 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
19944 (gimple_call_set_alloca_for_var): New inline function.
19945 (gimple_call_alloca_for_var_p): Ditto.
19946 * gimple.c (gimple_build_call_from_tree): Remember
19947 CALL_ALLOCA_FOR_VAR_P state.
19948 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
19949
19950 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
19951 calls if they were for VLA objects.
19952
19953 2011-04-15 Martin Jambor <mjambor@suse.cz>
19954
19955 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
19956 of ADR_EXPRs.
19957
19958 2011-04-15 Martin Jambor <mjambor@suse.cz>
19959
19960 PR middle-end/48601
19961 * tree-emutls.c (lower_emutls_function_body): Call
19962 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
19963 result is non-NULL.
19964
19965 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
19966
19967 * c-decl.c (detect_field_duplicates): Call
19968 objc_detect_field_duplicates instead of objc_get_interface_ivars.
19969
19970 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
19971
19972 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
19973 * gimple.c (gimple_asm_clobbers_memory_p): Define.
19974 * ipa-pure-const.c (check_stmt): Call it.
19975 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
19976
19977 2011-04-15 Richard Guenther <rguenther@suse.de>
19978
19979 PR tree-optimization/48290
19980 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
19981 Properly decide inhibiting propagation based on the valueized
19982 operand. Do loop-closed SSA form preserving here ...
19983 (init_copy_prop): ... not here.
19984
19985 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
19986
19987 PR target/48612
19988 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
19989 (*ieee_smax<mode>3): Likewise.
19990
19991 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19992
19993 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
19994 Replace match_operand with match_dup for the third operand in
19995 these expanders.
19996
19997 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
19998
19999 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
20000 to track processing of conditionals. Update all callers.
20001 (try_combine, simplify_if_then_else): Update.
20002
20003 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
20004
20005 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
20006 -fsched-pressure.
20007
20008 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
20009
20010 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
20011 instead of match_operand for operand 3.
20012
20013 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
20014
20015 * recog.h (insn_operand_data): Add an "allows_mem" field.
20016 * genoutput.c (output_operand_data): Initialize it.
20017 * optabs.c (maybe_legitimize_operand_same_code): New function.
20018 (maybe_legitimize_operand): Use it when matching the original
20019 op->value.
20020
20021 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
20022
20023 * gimplify.c: Fix issues in comments throughout.
20024 (voidify_wrapper_expr): Fix long line.
20025 (build_stack_save_restore): Likewise.
20026 (gimplify_loop_expr): Likewise.
20027 (gimplify_compound_lval): Likewise.
20028 (gimplify_init_ctor_eval): Likewise.
20029 (gimplify_modify_expr_rhs): Likewise.
20030 (omp_notice_threadprivate_variable): Likewise.
20031
20032 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
20033
20034 * cfgexpand.c (expand_call_stmt): Convert the function type to the
20035 original one if this is not a builtin function.
20036
20037 2011-04-14 Jakub Jelinek <jakub@redhat.com>
20038
20039 PR target/48605
20040 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
20041 offset it as needed based on top 2 bits in operands[3], change
20042 MEM mode to SFmode and mask those 2 bits away from operands[3].
20043
20044 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
20045
20046 * c-parser.c (c_parser_objc_protocol_definition): Updated for
20047 change from objc_declare_protocols() to objc_declare_protocol().
20048
20049 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
20050
20051 * config/i386/sse.md (sse4_1): New mode attribute.
20052 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
20053 avx_blend<ssemodesuffix><avxmodesuffix> and
20054 sse4_1_blend<ssemodesuffix> using VF mode iterator.
20055 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
20056 avx_blendv<ssemodesuffix><avxmodesuffix> and
20057 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
20058 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
20059 avx_dp<ssemodesuffix><avxmodesuffix> and
20060 sse4_1_dp<ssemodesuffix> using VF mode iterator.
20061 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
20062 (sse4_1_packusdw): Merge with *avx_packusdw.
20063 (sse4_1_pblendvb): Merge with *avx_pblendvb.
20064 (sse4_1_pblendw): Merge with *avx_pblendw.
20065 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
20066 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
20067 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
20068 VF mode iterator.
20069 (sse4_1_round<ssescalarmodesuffix>): Merge with
20070 *avx_round<ssescalarmodesuffix>.
20071 (aesenc): Merge with *avx_aesenc.
20072 (aesenclast): Merge with *avx_aesenclast.
20073 (aesdec): Merge with *avx_aesdec.
20074 (aesdeclast): Merge with *avx_aesdeclast.
20075 (pclmulqdq): Merge with *pclmulqdq.
20076 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
20077 New predicate.
20078 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
20079
20080 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
20081
20082 PR middle-end/48608
20083 * cfgexpand.c (get_decl_align_unit): Renamed to ...
20084 (align_local_variable): This. Update DECL_ALIGN.
20085 (add_stack_var): Updated.
20086 (expand_one_stack_var): Likewise.
20087
20088 2011-04-14 Richard Guenther <rguenther@suse.de>
20089
20090 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
20091 Remove.
20092 (dse_initialize_block_local_data, dse_leave_block,
20093 record_voperand_set, get_stmt_uid): Likewise.
20094 (dse_possible_dead_store_p): Allow any kind of killing stmt.
20095 (dse_optimize_stmt): Remove voperand set handling code.
20096 Simplify and improve to handle any kind of killing stmt.
20097 (dse_record_phi): Remove.
20098 (dse_enter_block): Simplify.
20099 (tree_ssa_dse): Likewise.
20100 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
20101
20102 2011-04-14 Jan Hubicka <jh@suse.cz>
20103
20104 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
20105 * cgraph.h (struct inline_summary): Move to ipa-inline.h
20106 (cgraph_local_info): Remove inline_summary.
20107 * ipa-cp.c: Include ipa-inline.h.
20108 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
20109 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
20110 accesor.
20111 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
20112 (input_overwrite_node): Do not set inline summary.
20113 (input_node): Do not stream inline summary.
20114 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
20115 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
20116 growth; we do not have inline parameters computed for that anyway.
20117 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
20118 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
20119 (inline_summary_t): New type and VECtor.
20120 (debug_inline_summary, dump_inline_summaries): Declare.
20121 (inline_summary): Use VOCtor.
20122 (estimate_edge_growth): Kill hack computing call stmt size directly.
20123 * lto-section-in.c (lto_section_name): Add inline section.
20124 * ipa-inline-analysis.c: Include lto-streamer.h
20125 (node_removal_hook_holder, node_duplication_hook_holder): New holders
20126 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
20127 (inline_summary_vec): Define.
20128 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
20129 dump_inline_summaries): New functions.
20130 (estimate_function_body_sizes): Properly compute size/time of outgoing
20131 calls.
20132 (compute_inline_parameters): Alloc inline_summary; do not compute
20133 size/time of incomming calls.
20134 (estimate_edge_time): Avoid missing time summary hack.
20135 (inline_read_summary): Read inline summary info.
20136 (inline_write_summary): Write inline summary info.
20137 (inline_free_summary): Free all hooks and inline summary vector.
20138 * lto-streamer.h: Add LTO_section_inline_summary section.
20139 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
20140 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
20141
20142 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
20143
20144 * tree-vectorizer.h (vect_strided_store_supported): Add a
20145 HOST_WIDE_INT argument.
20146 (vect_strided_load_supported): Likewise.
20147 (vect_permute_store_chain): Return void.
20148 (vect_transform_strided_load): Likewise.
20149 (vect_permute_load_chain): Delete.
20150 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
20151 count argument. Check that the count is a power of two.
20152 (vect_strided_load_supported): Likewise.
20153 (vect_permute_store_chain): Return void. Update after above changes.
20154 Assert that the access is supported.
20155 (vect_permute_load_chain): Likewise.
20156 (vect_transform_strided_load): Return void.
20157 * tree-vect-stmts.c (vectorizable_store): Update calls after
20158 above interface changes.
20159 (vectorizable_load): Likewise.
20160 (vect_analyze_stmt): Don't check for strided powers of two here.
20161
20162 2011-04-14 Richard Guenther <rguenther@suse.de>
20163
20164 PR tree-optimization/48590
20165 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
20166 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
20167 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
20168 BUILT_IN_STACK_SAVE.
20169 * tree-ssa-dce.c (propagate_necessity): Handle
20170 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
20171
20172 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
20173
20174 * c-parser.c (c_parser_objc_class_declaration): Updated call to
20175 objc_declare_class.
20176
20177 2011-04-14 Richard Guenther <rguenther@suse.de>
20178
20179 * tree.h (get_object_alignment_1): Declare.
20180 * builtins.c (get_object_alignment_1): Split out worker from ...
20181 (get_object_alignment): ... here.
20182 * fold-const.c (get_pointer_modulus_and_residue): Use
20183 get_object_alignment_1.
20184
20185 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
20186
20187 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
20188 type parameter.
20189 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
20190 parameter. Generalise code to handle arrays as well as vectors.
20191 (vect_setup_realignment): Update accordingly.
20192 * tree-vect-stmts.c (vectorizable_store): Likewise.
20193 (vectorizable_load): Likewise.
20194
20195 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
20196
20197 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
20198 within the per-copy loop.
20199
20200 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
20201
20202 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
20203 in the dump file.
20204
20205 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
20206
20207 * doc/options.texi (Negative): Explicitly mention that the
20208 Negative chain must be circular.
20209
20210 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
20211
20212 * function.h (block_chainon): Declare.
20213 * function.c (block_chainon): Define.
20214
20215 2011-04-14 Anatoly Sokolov <aesok@post.ru>
20216 Eric Weddington <eric.weddington@atmel.com>
20217 Georg-Johann Lay <avr@gjlay.de>
20218
20219 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
20220 New Includes
20221 (avr_init_builtins, avr_expand_builtin,
20222 avr_expand_delay_cycles, avr_expand_unop_builtin,
20223 avr_expand_binop_builtin ): New functions.
20224 (avr_builtin_id): New enum
20225 (struct avr_builtin_description): New struct
20226 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
20227 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
20228
20229 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
20230 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
20231 UNSPECV_DELAY_CYCLES): new enumeration values
20232 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
20233 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
20234 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
20235 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
20236 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
20237 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
20238 "fmulsu"): New insns
20239
20240 * config/avr/avr-c.c: fix line endings
20241 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
20242 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
20243 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
20244 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
20245 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
20246
20247 * doc/extend.texi (AVR Built-in Functions): New node
20248 (Target Builtins): Add documentation of AVR
20249 built-in functions.
20250
20251 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
20252
20253 PR target/44643
20254 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
20255 alone. Error if non-const data has attribute progmem.
20256
20257 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
20258
20259 * tree.h (struct tree_constructor): Include tree_typed instead of
20260 tree_common.
20261 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
20262 TS_TYPED instead of TS_COMMON.
20263
20264 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
20265
20266 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
20267 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
20268 (sse2_psadbw): Merge with *avx_psadbw.
20269 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
20270 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
20271 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
20272 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
20273 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
20274 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
20275 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
20276 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
20277 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
20278 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
20279 (ssse3_palignrti): Merge with *avx_palignrti.
20280
20281 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
20282
20283 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
20284 * tree-ssanames.c (fini_ssanames): VEC_free it.
20285 (make_ssa_name_fn): Update for VECness of free_ssanames.
20286 (release_ssa_name, release_dead_ssa_names): Likewise.
20287 * tree.h (struct tree_ssa_name): Include tree_typed instead of
20288 tree_common.
20289 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
20290 TS_TYPED instead of TS_COMMON.
20291
20292 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
20293
20294 * postreload-gcse.c (gcse_after_reload_main): Add calls to
20295 statistics_counter_event.
20296 * tree-ssa-copyrename.c (stats): Define.
20297 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
20298 statistics_counter_event.
20299 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
20300 (bswap_stats, widen_mul_stats): Define.
20301 (insert_reciprocals): Increment rdivs_inserted.
20302 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
20303 rfuncs_inserted. Add calls to statistics_counter_event.
20304 (execute_cse_sincos_1): Increment inserted.
20305 (execute_cse_sincos): Zeroize sincos_stats. Add call to
20306 statistics_counter_event.
20307 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
20308 of bswap_stats. Add calls to statistics_counter_event.
20309 (convert_mult_to_widen): Increment widen_mults_inserted.
20310 (convert_plusminus_to_widen): Increment maccs_inserted.
20311 (convert_mult_to_fma): Increment fmas_inserted.
20312 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
20313 calls to statistics_counter_event.
20314
20315 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
20316
20317 PR rtl-optimization/48455
20318 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
20319 `temp_costs->mem_cost'.
20320
20321 2011-04-13 Jan Hubicka <jh@suse.cz>
20322
20323 * ipa-inline.h: New file.
20324 * ipa-inline-analysis.c: New file. Broken out of ...
20325 * ipa-inline.c: ... this file; update toplevel comment;
20326 include ipa-inline.h
20327 (inline_summary): Move to ipa-inline.h
20328 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
20329 ipa-inline-analysis.c.
20330 (cgraph_estimate_time_after_inlining): Rename to
20331 estiamte_time_after_inlining; move to ipa-inline-analysis.c
20332 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
20333 to estimate_edge_growth.
20334 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
20335 rename to estimate_size_after_inlining.
20336 (cgraph_mark_inline_edge): Update for new naming convention.
20337 (cgraph_check_inline_limits): Likewise.
20338 (cgraph_edge_badness): Likewise.
20339 (cgraph_decide_recursive_inlining): Likewise.
20340 (cgraph_decide_inlining_of_small_functions): Likewise.
20341 (cgraph_decide_inlining_incrementally): Likewise.
20342 (cgraph_estimate_growth): Rename to estimate_growth; move to
20343 ipa-inline-analysis.c.
20344 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
20345 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
20346 (compute_inline_parameters): Likewise.
20347 (compute_inline_parameters_for_current): Likewise.
20348 (pass_inline_parameters): Likewise.
20349 (inline_indirect_intraprocedural_analysis): Likewise.
20350 (analyze_function): Rename to inline_analyze_function; likewise.
20351 (add_new_function): Move to ipa-inline-analysis.c.
20352 (inline_generate_summary): Likewise.
20353 (inline_read_summary): Likewise.
20354 (inline_write_summary): Likewise.
20355 * Makefile.in (ipa-inline-analysis.c): New file.
20356
20357 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20358
20359 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
20360 * configure: Regenerate.
20361
20362 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
20363
20364 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
20365 instead of tree_common.
20366 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
20367 Likewise.
20368 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
20369 TS_TYPED rather than TS_COMMON.
20370 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
20371
20372 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
20373
20374 PR target/45263
20375 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
20376 r20 around calls of __tablejump_elpm__
20377
20378 2011-04-13 Jakub Jelinek <jakub@redhat.com>
20379
20380 PR middle-end/48591
20381 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
20382 NULL.
20383 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
20384
20385 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
20386
20387 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
20388 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
20389 (cfi_vec): New typedef.
20390 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
20391 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
20392 (cie_cfi_vec): New static variable.
20393 (cie_cfi_head): Delete.
20394 (add_cfi): Accept a cfi_vec * as first argument. All callers and
20395 declaration changed. Use vector rather than list operations.
20396 (new_cfi): Don't initialize the dw_cfi_next field.
20397 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
20398 rather than list operations.
20399 (lookup_cfa): Use vector rather than list operations.
20400 (output_cfis): New argument upto. Accept a cfi_vec rather than
20401 a dw_cfi_ref list head as argument. All callers changed.
20402 Iterate over the vector using upto as a maximum index.
20403 (output_all_cfis): New static function.
20404 (output_fde): Use vector rather than list operations. Use the
20405 new upto argument for output_cfis rather than manipulating a
20406 list.
20407 (dwarf2out_begin_prologue): Change initializations to match
20408 new struct members.
20409 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
20410 from the vector length rather than searching for the end of a list.
20411 Use output_all_cfis.
20412 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
20413
20414 2011-04-13 Nick Clifton <nickc@redhat.com>
20415
20416 * config/rx/rx.md (movmemsi): Do not use this pattern when
20417 volatile pointers are involved.
20418
20419 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
20420
20421 * config/i386/sse.md (pinsrbits): Remove.
20422 (sse2_packsswb): Merge with *avx_packsswb.
20423 (sse2_packssdw): Merge with *avx_packssdw.
20424 (sse2_packuswb): Merge with *avx_packuswb.
20425 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
20426 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
20427 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
20428 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
20429 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
20430 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
20431 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
20432 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
20433 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
20434 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
20435 (sse2_loadld): Merge with *avx_loadld.
20436 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
20437 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
20438 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
20439 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
20440 (vec_concatv2di): Merge with *vec_concatv2di_avx.
20441
20442 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
20443
20444 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
20445 calling TREE_CHAIN.
20446 * print-tree.c (print_node): Likewise.
20447 * tree-inline.c (copy_tree_r): Likewise.
20448 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
20449 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
20450 instead of TS_COMMON.
20451 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
20452 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
20453 (copy_node_stat): Zero TREE_CHAIN only if necessary.
20454 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
20455 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
20456 ...and these...
20457 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
20458 * tree.h: ...here.
20459 (TREE_CHAIN): Check for a TS_COMMON structure.
20460 (TREE_TYPE): Check for a TS_TYPED structure.
20461
20462 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
20463
20464 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
20465 cgraph_get_create_node instead of cgraph_node.
20466
20467 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
20468
20469 * c-parser.c (c_parser_initelt): Updated call to
20470 objc_build_message_expr.
20471 (c_parser_postfix_expression): Likewise.
20472
20473 2011-04-12 Kai Tietz <ktietz@redhat.com>
20474
20475 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
20476 MASK_MS_BITFIELD_LAYOUT bit.
20477
20478 2011-04-12 Jakub Jelinek <jakub@redhat.com>
20479
20480 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
20481 assert it is always true.
20482 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
20483 moves.
20484
20485 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
20486
20487 * c-parser.c (c_lex_one_token): Rewritten conditional used when
20488 compiling Objective-C to be more efficient.
20489
20490 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
20491
20492 * opts-common.c (decode_cmdline_options_to_array): Remove variable
20493 argv_copied.
20494
20495 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20496
20497 * recog.h, genoutput.c, optabs.c: Revert last patch.
20498
20499 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20500
20501 PR target/48090
20502 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
20503
20504 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20505
20506 * recog.h (insn_operand_data): Add an "allows_mem" field.
20507 * genoutput.c (output_operand_data): Initialize it.
20508 * optabs.c (maybe_legitimize_operand_same_code): New function.
20509 (maybe_legitimize_operand): Use it when matching the original
20510 op->value.
20511
20512 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20513
20514 * genpreds.c (process_define_predicate): Move most processing
20515 to gensupport.c. Continue to validate the expression.
20516 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
20517 (process_define_predicate): Move processing to gensupport.c.
20518 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
20519 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
20520 (compute_predicate_codes): Moved from genrecog.c. Add lineno
20521 argument.
20522 (valid_predicate_name_p): New function, split out from old
20523 genpreds.c:process_define_predicate.
20524 (process_define_predicate): New function, combining code from
20525 old genpreds.c and genrecog.c functions.
20526 (process_rtx): Call it for DEFINE_PREDICATE and
20527 DEFINE_SPECIAL_PREDICATE.
20528
20529 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
20530
20531 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
20532 size of a '%A' memory reference.
20533 (T_DREG, T_QREG): New neon_builtin_type_bits.
20534 (arm_init_neon_builtins): Assert that the load and store operands
20535 are neon_struct_operands.
20536 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
20537 (NEON_ARG_MEMORY): New builtin_arg.
20538 (neon_dereference_pointer): New function.
20539 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
20540 Handle NEON_ARG_MEMORY.
20541 (arm_expand_neon_builtin): Update after above interface changes.
20542 Use NEON_ARG_MEMORY for loads and stores.
20543 * config/arm/predicates.md (neon_struct_operand): New predicate.
20544 * config/arm/iterators.md (V_two_elem): Tweak formatting.
20545 (V_three_elem): Use BLKmode for accesses that have no associated mode.
20546 (V_four_elem): Tweak formatting.
20547 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
20548 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
20549 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
20550 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
20551 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
20552 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
20553 (neon_vst4<mode>): Replace pointer operand with a memory operand.
20554 Use %A in the output template.
20555 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
20556 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
20557 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
20558 the width of the memory access. Remove post-increment.
20559 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
20560
20561 2011-04-12 Nick Clifton <nickc@redhat.com>
20562
20563 * config/v850/v850.c (expand_prologue): Do not use the CALLT
20564 instruction for interrupt handlers if the target is the basic V850
20565 architecture.
20566 (expand_epilogue): Likewise.
20567
20568 2011-04-12 Jakub Jelinek <jakub@redhat.com>
20569
20570 PR rtl-optimization/48549
20571 * combine.c (propagate_for_debug): Also stop after BB_END of
20572 this_basic_block. Process LAST and just stop processing after it.
20573 (combine_instructions): If last_combined_insn has been deleted,
20574 set last_combined_insn to its PREV_INSN.
20575
20576 2011-04-12 Richard Guenther <rguenther@suse.de>
20577
20578 PR tree-optimization/46076
20579 * gimple.h (struct gimple_statement_call): Add fntype field.
20580 (gimple_call_fntype): Adjust.
20581 (gimple_call_set_fntype): New function.
20582 * gimple.c (gimple_build_call_1): Set the call function type.
20583 * gimplify.c (gimplify_call_expr): Preserve the function
20584 type the frontend used for the call.
20585 (gimplify_modify_expr): Likewise.
20586 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
20587 function type.
20588 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
20589 function type.
20590 * tree-ssa.c (useless_type_conversion_p): Function pointer
20591 conversions are useless.
20592
20593 2011-04-12 Martin Jambor <mjambor@suse.cz>
20594
20595 * cgraph.h (cgraph_node): Remove function declaration.
20596 (cgraph_create_node): Declare.
20597 (cgraph_get_create_node): Likewise.
20598 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
20599 Updated all callers.
20600 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
20601 the decl does not already exist. Call cgraph_get_create_node instead
20602 of cgraph_node.
20603 (cgraph_get_create_node): New function.
20604 (cgraph_same_body_alias): Update comment.
20605 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
20606 assert it does not return NULL.
20607 (cgraph_update_edges_for_call_stmt): Likewise.
20608 (cgraph_clone_edge): Likewise.
20609 (cgraph_create_virtual_clone): Likewise.
20610 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
20611 instead of cgraph_node.
20612 (cgraph_add_new_function): Call cgraph_create_node or
20613 cgraph_get_create_node instead of cgraph_node.
20614 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
20615 instead of cgraph_node.
20616 (record_eh_tables): Likewise.
20617 (mark_address): Likewise.
20618 (mark_load): Likewise.
20619 (build_cgraph_edges): Call cgraph_get_create_node instead
20620 of cgraph_node.
20621 (rebuild_cgraph_edges): Likewise.
20622 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
20623 instead of cgraph_node.
20624 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
20625 cgraph_node.
20626 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
20627 cgraph_create_node instead of cgraph_node.
20628 * c-decl.c (finish_function): Call cgraph_get_create_node instead
20629 of cgraph_node.
20630 * lto-cgraph.c (input_node): Likewise.
20631 * lto-streamer-in.c (input_function): Likewise.
20632 * varasm.c (mark_decl_referenced): Likewise.
20633 (assemble_alias): Likewise.
20634
20635 2011-04-12 Martin Jambor <mjambor@suse.cz>
20636
20637 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
20638 instead of cgraph_node and assert it does not return NULL.
20639 * lto-streamer-in.c (lto_read_body): Likewise.
20640 * omp-low.c (new_omp_context): Likewise.
20641 (create_task_copyfn): Likewise.
20642 * tree-emutls.c (lower_emutls_function_body): Likewise.
20643 * matrix-reorg.c (transform_allocation_sites): Likewise.
20644
20645 2011-04-12 Jakub Jelinek <jakub@redhat.com>
20646
20647 PR c/48552
20648 * c-typeck.c (build_asm_expr): Error out on attempts to use
20649 void type outputs or inputs for constraints that allow reg or
20650 don't allow memory.
20651
20652 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
20653 Richard Earnshaw <rearnsha@arm.com>
20654
20655 PR target/48250
20656 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
20657 to use sign-magnitude offsets. Reject unsupported unaligned
20658 cases. Add detailed description in comments.
20659 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
20660 condition from TARGET_32BIT to TARGET_ARM.
20661
20662 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
20663
20664 * tree.h (struct typed_tree): New.
20665 (struct tree_common): Include it instead of tree_base.
20666 (TREE_TYPE): Update for new location of type field.
20667 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
20668 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
20669 (union tree_node): Add typed field.
20670 * treestruct.def (TS_TYPED): New.
20671 * lto-streamer.c (check_handled_ts_structures): Handle it.
20672 * tree.c (MARK_TS_TYPED): New macro.
20673 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
20674
20675 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
20676
20677 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
20678 (force_nonfallthru): Do not alter the loop nest if no basic block
20679 was created.
20680
20681 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
20682
20683 * config/i386/sse.md (VI): New mode iterator.
20684 (SSEMODEI): Remove.
20685 (AVX256MODEI): Ditto.
20686 (AVXMODEF4P): Ditto.
20687 (avxvecpsmode): Ditto.
20688 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
20689 (sse2_andnot<mode>3): New expander.
20690 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
20691 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
20692 (<any_logic:code><mode>3): Use VI mode iterator.
20693 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
20694 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
20695 (*andnottf3): Handle AVX three-operand constraints.
20696 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
20697
20698 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20699 Robert Millan <rmh@gnu.org>
20700
20701 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
20702 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
20703 GNU_USER_DYNAMIC_LINKER64): Define.
20704 (REG_NAME): Don't undefine.
20705 (MD_UNWIND_SUPPORT): Undefine.
20706 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
20707 (REG_NAME): Don't undefine.
20708 (MD_UNWIND_SUPPORT): Undefine.
20709 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
20710
20711 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20712
20713 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
20714 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
20715
20716 2011-04-11 Xinliang David Li <davidxl@google.com>
20717
20718 * value-profile.c (check_ic_target): New function.
20719 (gimple_ic_transform): Sanity check indirect call target.
20720 * gimple-low.c (gimple_check_call_args): Interface change.
20721 (gimple_check_call_matching_types): New function.
20722 * tree-inline.c (tree_can_inline_p): Call new function.
20723
20724 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
20725
20726 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
20727 tree-pretty-print.h & realmpfr.h.
20728
20729 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
20730
20731 PR middle-end/48464
20732 * ira.c (setup_pressure_classes): Fix typo in loop condition.
20733 (setup_allocno_and_important_classes): Ditto.
20734
20735 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20736
20737 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
20738 GNU_USER_DYNAMIC_LINKER.
20739 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
20740 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20741 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
20742 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20743 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20744 GNU_USER_TARGET_OS_CPP_BUILTINS.
20745 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
20746 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20747 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20748 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20749 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
20750 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20751 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20752 GNU_USER_TARGET_OS_CPP_BUILTINS.
20753 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20754 GNU_USER_DYNAMIC_LINKER.
20755 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20756 GNU_USER_TARGET_OS_CPP_BUILTINS.
20757 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
20758 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20759 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
20760 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20761 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
20762 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
20763 GNU_USER_DYNAMIC_LINKER64): Remove.
20764 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
20765 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20766 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20767 GNU_USER_DYNAMIC_LINKER.
20768 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20769 GNU_USER_TARGET_OS_CPP_BUILTINS.
20770 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20771 GNU_USER_TARGET_OS_CPP_BUILTINS.
20772 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
20773 to GNU_USER_TARGET_OS_CPP_BUILTINS.
20774 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20775 GNU_USER_TARGET_OS_CPP_BUILTINS.
20776 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
20777 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
20778 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
20779 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
20780 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20781 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20782 GNU_USER_DYNAMIC_LINKER.
20783 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20784 GNU_USER_TARGET_OS_CPP_BUILTINS.
20785 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
20786 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20787 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20788 GNU_USER_DYNAMIC_LINKER.
20789 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20790 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20791 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
20792 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20793 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20794 GNU_USER_DYNAMIC_LINKER.
20795 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
20796 GNU_USER_DYNAMIC_LINKERN32.
20797 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
20798 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
20799 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
20800 GNU_USER_DYNAMIC_LINKER32.
20801 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
20802 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20803 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20804 GNU_USER_DYNAMIC_LINKER.
20805 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20806 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20807 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
20808 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20809 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20810 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
20811 GNU_USER_DYNAMIC_LINKER32.
20812 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
20813 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
20814 GNU_USER_DYNAMIC_LINKER.
20815 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
20816 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20817 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
20818 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
20819 GNU_USER_DYNAMIC_LINKER64.
20820 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
20821 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20822 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20823 GNU_USER_DYNAMIC_LINKER.
20824 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
20825 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20826 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20827 GNU_USER_DYNAMIC_LINKER.
20828 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
20829 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20830 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
20831 GNU_USER_DYNAMIC_LINKER32.
20832 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
20833 GNU_USER_DYNAMIC_LINKER64.
20834 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
20835 GNU_USER_DYNAMIC_LINKER64.
20836 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
20837 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20838 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
20839 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20840 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20841
20842 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20843
20844 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
20845 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
20846 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
20847 GNU_USER_DYNAMIC_LINKER.
20848 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
20849 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
20850 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
20851 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
20852 GNU_USER_DYNAMIC_LINKER64.
20853 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
20854 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
20855 GNU_USER_LINK_EMULATION.
20856 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
20857 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
20858 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
20859 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
20860 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
20861 CPP_SPEC, CC1_SPEC): Remove.
20862 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
20863 (GNU_USER_DYNAMIC_LINKER): Define.
20864 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
20865 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
20866 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
20867 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
20868 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
20869 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
20870 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
20871 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
20872 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
20873 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
20874 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
20875 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
20876 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
20877 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
20878 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
20879 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
20880 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20881 GNU_USER_DYNAMIC_LINKER.
20882 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20883 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
20884 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20885 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
20886 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20887 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
20888 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
20889 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
20890 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
20891 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
20892
20893 2011-04-11 Kai Tietz <ktietz@redhat.com>
20894
20895 PR target/9601
20896 PR target/11772
20897 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
20898 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
20899 comment.
20900 (ix86_is_msabi_thiscall): Removed.
20901 (ix86_is_type_thiscall): Likewise.
20902 (ix86_get_callcvt): New function.
20903 (ix86_comp_type_attributes): Simplify check.
20904 (ix86_function_regparm): Use ix86_get_callcvt for calling
20905 convention attribute checks.
20906 (ix86_return_pops_args): Likewise.
20907 (ix86_static_chain): Likewise.
20908 (x86_this_parameter): Likewise.
20909 (x86_output_mi_thunk): Likewise.
20910 (ix86_function_type_abi): Optimize check for types without attributes.
20911 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
20912 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
20913 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
20914 by flag-values.
20915 (IX86_BASE_CALLCVT): Helper macro.
20916 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
20917 Use ix86_get_callcvt for calling convention attribute checks and avoid
20918 symbol-decoration for stdcall in TARGET_RTD case.
20919 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
20920 Likewise.
20921 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
20922 for declaration.
20923
20924 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
20925
20926 * config/i386/sse.md (VI_128): New mode iterator.
20927 (VI12_128): Rename from SSEMODE12.
20928 (VI14_128): Rename from SSEMODE14.
20929 (VI124_128): New mode iterator.
20930 (VI24_128): Rename from SSEMODE248.
20931 (VI248_128): Rename from SSEMODE248.
20932 (SSEMODE124C8): Remove.
20933 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
20934 (*sse2_<plusminus_insn><mode>3): Merge with
20935 *avx_<plusminus_insn><mode>3.
20936 (*mulv8hi3): Merge with *avx_mulv8hi3.
20937 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
20938 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
20939 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
20940 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
20941 (ashr<mode>3): Merge with *avx_ashr<mode>3.
20942 (lshr<mode>3): Merge with *avx_lshr<mode>3.
20943 (ashl<mode>3): Merge with *avx_ashl<mode>3.
20944 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
20945 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
20946 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
20947 (*<smaxmin:code>v8hi3): Ditto.
20948 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
20949 (*<smaxmin:code>v16qi3): Ditto.
20950 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
20951 (*sse2_eq<mode>3): Ditto.
20952 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
20953 (*sse2_gt<mode>3): Ditto.
20954 (vcondv2di): Split out of vcond<mode>.
20955 (vconduv2di): Split out of vcondu<mode>.
20956
20957 2011-04-11 Richard Guenther <rguenther@suse.de>
20958
20959 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
20960 before calling tree_low_cst.
20961
20962 2011-04-11 Richard Guenther <rguenther@suse.de>
20963
20964 * stor-layout.c (layout_type): Compute all array index size operations
20965 in the original type.
20966 (initialize_sizetypes): Add comment.
20967 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
20968
20969 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20970
20971 * common.opt (Tbss=, Tdata=, Ttext=): New options.
20972
20973 2011-04-11 Martin Jambor <mjambor@suse.cz>
20974
20975 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
20976 of cgraph_node, handle NULL return value.
20977 (cgraph_global_info): Likewise.
20978 (cgraph_rtl_info): Likewise.
20979 * tree-inline.c (estimate_num_insns): Likewise.
20980 * gimplify.c (unshare_body): Likewise.
20981 (unvisit_body): Likewise.
20982 (gimplify_body): Likewise.
20983 * predict.c (optimize_function_for_size_p): Likewise.
20984 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
20985 (call_may_clobber_ref_p_1): Likewise.
20986 * varasm.c (function_section_1): Likewise.
20987 (assemble_start_function): Likewise.
20988
20989 2011-04-11 Martin Jambor <mjambor@suse.cz>
20990
20991 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
20992 of cgraph_node.
20993 * final.c (rest_of_clean_state): Likewise.
20994 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
20995 * passes.c (pass_init_dump_file): Likewise.
20996 (execute_all_ipa_transforms): Likewise.
20997 (function_called_by_processed_nodes_p): Likewise.
20998 * predict.c (maybe_hot_frequency_p): Likewise.
20999 (probably_never_executed_bb_p): Likewise.
21000 (compute_function_frequency): Likewise.
21001 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
21002 (unnest_nesting_tree_1): Likewise.
21003 (lower_nested_functions): Likewise.
21004 * tree-optimize.c (execute_fixup_cfg): Likewise.
21005 (tree_rest_of_compilation): Likewise.
21006 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
21007 * tree-sra.c (ipa_early_sra): Likewise.
21008 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
21009 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
21010 * ipa.c (record_cdtor_fn): Likewise.
21011 * ipa-inline.c (cgraph_early_inlining): Likewise.
21012 (compute_inline_parameters_for_current): Likewise.
21013 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
21014 * ipa-pure-const.c (local_pure_const): Likewise.
21015 * ipa-split.c (split_function): Likewise.
21016 (execute_split_functions): Likewise.
21017 * cgraphbuild.c (build_cgraph_edges): Likewise.
21018 (rebuild_cgraph_edges): Likewise.
21019 (cgraph_rebuild_references): Likewise.
21020 (remove_cgraph_callee_edges): Likewise.
21021 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
21022 (verify_cgraph_node): Likewise.
21023 (cgraph_analyze_functions): Likewise.
21024 (cgraph_preserve_function_body_p): Likewise.
21025 (save_inline_function_body): Likewise.
21026 (save_inline_function_body): Likewise.
21027 * tree-inline.c (copy_bb): Likewise.
21028 (optimize_inline_calls): Likewise.
21029
21030 2011-04-11 Martin Jambor <mjambor@suse.cz>
21031
21032 PR tree-optimization/48195
21033 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
21034 ipa_check_create_edge_args.
21035 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
21036 ipa_check_create_edge_args.
21037 * ipa-inline.c (inline_generate_summary): Do not call
21038 ipa_check_create_node_params and ipa_check_create_edge_args.
21039 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
21040 ipa_check_create_edge_args.
21041
21042 2011-04-09 Anatoly Sokolov <aesok@post.ru>
21043
21044 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
21045 instead of loop.
21046 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
21047 * function.c (record_hard_reg_sets): Likewise.
21048 * ira.c (compute_regs_asm_clobbered): Likewise.
21049 * sched-deps.c (sched_analyze_1): Likewise.
21050 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
21051
21052 2011-04-09 Xinliang David Li <davidxl@google.com>
21053
21054 PR tree-optimization/PR48484
21055 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
21056 has_valid_pred lazily
21057
21058 2011-04-09 Duncan Sands <baldrick@free.fr>
21059
21060 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
21061
21062 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
21063
21064 * combine.c (combine_validate_cost): Adjust comments. Set registered
21065 cost of I0 to zero at the end, if any.
21066
21067 2011-04-08 Xinliang David Li <davidxl@google.com>
21068
21069 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
21070 to insane profile data.
21071
21072 2011-04-08 Xinliang David Li <davidxl@google.com>
21073
21074 * ipa-cp.c (ipcp_update_profiling): Correct
21075 negative scale factor due to insane profile data.
21076
21077 2011-04-08 Xinliang David Li <davidxl@google.com>
21078
21079 * final.c (dump_basic_block_info): New function.
21080 (final): Dump basic block.
21081 (final_scan_insn): Remove old dump.
21082
21083 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
21084
21085 PR target/47829
21086 * config.gcc (i386-*-freebsd): Disable unwind table generation for
21087 crtbegin/crtend.
21088
21089 2011-04-08 Michael Matz <matz@suse.de>
21090
21091 PR middle-end/48389
21092 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
21093 functions.
21094 (rebuild_jump_labels): Call rebuild_jump_labels_1.
21095 * rtl.h (rebuild_jump_labels_chain): Declare.
21096 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
21097 insns inserted on edges.
21098
21099 2011-04-08 Joseph Myers <joseph@codesourcery.com>
21100
21101 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
21102 * config/arm/arm-arches.def: New.
21103 * config/arm/arm-opts.h: New.
21104 * config/arm/genopt.sh: New.
21105 * config/arm/arm-tables.opt: New (generated).
21106 * config/arm/arm.c (arm_handle_option, arm_target_help,
21107 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
21108 (all_architectures): Get most table contents from arm-arches.def.
21109 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
21110 arm_selected_tune here.
21111 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
21112 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
21113 (march=, mcpu=, mtune=): Use Enum and Var.
21114 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
21115 (arm.o): Update dependencies.
21116
21117 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
21118
21119 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
21120 of header_file.
21121 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
21122 (write_typed_alloc_defns): Likewise.
21123 (main): Calls write_typed_alloc_defns with output_header.
21124
21125 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
21126
21127 PR inline-asm/48435
21128 * ira-color.c (setup_profitable_hard_regs): Add comments.
21129 Don't take prohibited hard regs into account.
21130 (setup_conflict_profitable_regs): Rename to
21131 get_conflict_profitable_regs.
21132 (check_hard_reg_p): Check prohibited hard regs.
21133
21134 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
21135
21136 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
21137 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
21138 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
21139
21140 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21141
21142 PR target/48366
21143 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
21144 move from floating point to shift amount register.
21145 (emit_move_sequence): Remove secondary reload support for floating
21146 point to shift amount amount register copies.
21147 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
21148 amount register copies.
21149 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
21150 register, return false if mode isn't a scalar integer mode.
21151 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
21152
21153 2011-04-08 Richard Guenther <rguenther@suse.de>
21154
21155 * gimple.c (gimple_call_flags): Remove kludge.
21156
21157 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
21158
21159 * sel-sched.c (sel_region_init): Move call to
21160 sel_setup_region_sched_flags after setup_current_loop_nest.
21161
21162 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
21163
21164 PR rtl-optimization/48272
21165 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
21166 init_insn_reg_pressure_info. Adjust a caller.
21167 * sched-int.h (init_insn_reg_pressure_info): Declare.
21168 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
21169 when sched-pressure is enabled.
21170
21171 2011-04-08 Richard Guenther <rguenther@suse.de>
21172
21173 * gimple.c (gimple_set_modified): Do not queue calls to
21174 MODIFIED_NORETURN_CALLS here ...
21175 * tree-ssa-operands.c (update_stmt_operands): ... but here.
21176
21177 2011-04-08 Richard Guenther <rguenther@suse.de>
21178
21179 PR lto/48467
21180 * toplev.c (lang_dependent_init): Do not open asm_out_file
21181 in WPA mode, nor perform debug machinery initialization.
21182 (finalize): Do not unlink asm_out_file in WPA mode.
21183
21184 2011-04-08 Richard Guenther <rguenther@suse.de>
21185
21186 * gimple.h (gimple_call_fntype): New function.
21187 (gimple_call_return_type): Use it.
21188 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
21189 * gimple-low.c (gimple_check_call_args): Likewise.
21190 * gimple.c (gimple_call_flags): Likewise.
21191 (gimple_call_arg_flags): Likewise.
21192 (gimple_call_return_flags): Likewise.
21193 * tree-cfg.c (verify_gimple_call): Likewise.
21194 (do_warn_unused_result): Likewise.
21195 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
21196 * value-prof.c (gimple_ic_transform): Fix fndecl check.
21197
21198 2011-04-08 Dmitry Melnik <dm@ispras.ru>
21199
21200 PR rtl-optimization/48235
21201 * sel-sched.c (code_motion_process_successors): Recompute the last
21202 insn in basic block if control flow changed.
21203 (code_motion_path_driver): Ditto. Recompute the first insn as well.
21204 Update condition for ilist_remove.
21205
21206 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
21207
21208 PR rtl-optimization/48302
21209 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
21210 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
21211 it to record added preheader blocks.
21212 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
21213 on to sel_add_loop_preheaders.
21214 (sel_region_init): Move call to setup_current_loop_nest after
21215 sel_init_bbs.
21216
21217 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
21218
21219 PR target/48273
21220 * cfgloop.h (loop_has_exit_edges): New helper.
21221 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
21222 non-clonable.
21223 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
21224 that have no exit edges.
21225
21226 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
21227
21228 PR rtl-optimization/48442
21229 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
21230 all callers. Adjust assert.
21231
21232 2011-04-08 Jakub Jelinek <jakub@redhat.com>
21233
21234 PR tree-optimization/48377
21235 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
21236 is_packed to true even for types with smaller TYPE_ALIGN than
21237 TYPE_SIZE.
21238
21239 2011-04-08 Richard Guenther <rguenther@suse.de>
21240
21241 PR bootstrap/48513
21242 * doc/tm.texi: Re-generate.
21243
21244 2011-04-08 Wei Guozhi <carrot@google.com>
21245
21246 PR target/47855
21247 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
21248 * config/arm/arm.c (arm_attr_length_push_multi): New function.
21249 * config/arm/arm.md (*push_multi): Change the length computation to
21250 call a C function.
21251
21252 2011-04-08 Anatoly Sokolov <aesok@post.ru>
21253
21254 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
21255 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
21256 * doc/tm.texi: Regenerate.
21257 * system.h (ASM_OUTPUT_BSS): Poison.
21258 * varasm.c (asm_output_bss): Remove function.
21259 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
21260
21261 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
21262 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
21263 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
21264 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
21265 Likewise.
21266 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
21267 Likewise.
21268 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
21269 Likewise.
21270 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
21271
21272 2011-04-07 Joseph Myers <joseph@codesourcery.com>
21273
21274 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
21275 EnumValue lines.
21276
21277 2011-04-07 Joseph Myers <joseph@codesourcery.com>
21278
21279 * config/m68k/m68k.c (m68k_handle_option): Don't handle
21280 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
21281 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
21282 OPT_mcpu32.
21283 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
21284 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
21285 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
21286 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
21287 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
21288 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
21289 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
21290 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
21291 options. Don't map other m68k options manually. Don't handle
21292 old-style options as canonical.
21293 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
21294 * doc/install.texi (m68k-*-*): Document binutils version requirement.
21295
21296 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
21297
21298 * basic-block.h (force_nonfallthru): Move to...
21299 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
21300 (force_nonfallthru): ...here.
21301 * cfghooks.c (force_nonfallthru): New function.
21302 * cfgrtl.c (force_nonfallthru): Rename into...
21303 (rtl_force_nonfallthru): ...this.
21304 (commit_one_edge_insertion): Do not set AUX field.
21305 (commit_edge_insertions): Do not discover new basic blocks.
21306 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
21307 (cfg_layout_rtl_cfg_hooks): Likewise.
21308 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
21309 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
21310 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
21311
21312 2011-04-07 Anatoly Sokolov <aesok@post.ru>
21313
21314 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
21315 Remove macros.
21316
21317 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
21318
21319 * config/i386/sse.md: Update copyright year.
21320 (avxcvtvecmode): Remove.
21321 (sse_movhlps): Merge with *avx_movhlps.
21322 (sse_movlhps): Merge with *avx_movlhps.
21323 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
21324 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
21325 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
21326 (sse_loadhps): Merge with *avx_loadhps.
21327 (sse_storelps): Merge with *avx_storelps.
21328 (sse_loadlps): Merge with *avx_loadlps.
21329 (sse_movss): Merge with *avx_movss.
21330 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
21331 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
21332 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
21333 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
21334 (vec_set<mode>_0): Ditto.
21335 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
21336 (sse4_1_insertps): Merge with *avx_insertps.
21337 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
21338 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
21339 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
21340 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
21341 (sse2_storehpd): Merge with *avx_storehpd.
21342 (sse2_loadhpd): Merge with *avx_loadhpd.
21343 (sse2_loadlpd): Merge with *avx_loadlpd.
21344 (sse2_movsd): Merge with *avx_movsd.
21345 (*vec_concatv2df): Merge with *vec_concatv2df.
21346
21347 2011-04-07 Jakub Jelinek <jakub@redhat.com>
21348
21349 PR debug/48343
21350 * combine.c (combine_instructions): Add last_combined_insn,
21351 update it if insn is after it, pass it to all try_combine calls.
21352 (try_combine): Add last_combined_insn parameter, pass it instead of
21353 i3 to propagate_for_debug.
21354
21355 2011-04-07 Nick Clifton <nickc@redhat.com>
21356
21357 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
21358 to handle MDR <-> data register transfers.
21359 (movhi_internal): Likewise.
21360
21361 2011-04-07 Alan Modra <amodra@gmail.com>
21362
21363 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
21364 previous stack info.
21365
21366 2011-04-07 Tom de Vries <tom@codesourcery.com>
21367
21368 PR target/43920
21369 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
21370 flow_find_cross_jump. Swap variables to implement backward replacement.
21371 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
21372
21373 2011-04-07 Tom de Vries <tom@codesourcery.com>
21374
21375 PR target/43920
21376 * cfgcleanup.c (walk_to_nondebug_insn): New function.
21377 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
21378 and bb2.
21379 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
21380 src1 or src2. Redirect edges to the last basic block. Update
21381 frequency and count on multiple basic blocks in case of fallthru.
21382
21383 2011-04-07 Tom de Vries <tom@codesourcery.com>
21384
21385 PR target/43920
21386 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
21387 function.
21388 (old_insns_match_p): Change return type. Replace return false/true
21389 with return dir_none/dir_both. Use can_replace_by.
21390 (flow_find_cross_jump): Add dir_p parameter. Init replacement
21391 direction from dir_p. Register replacement direction in dir, last_dir
21392 and afterlast_dir. Handle new return type of old_insns_match_p using
21393 merge_dir. Return replacement direction in dir_p.
21394 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
21395 return type of old_insns_match_p.
21396 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
21397 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
21398 flow_find_cross_jump.
21399 * basic-block.h (enum replace_direction): New type.
21400 (flow_find_cross_jump): Add parameter to declaration.
21401
21402 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
21403
21404 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
21405 (AVXMODEDCVTPS2DQ): Ditto.
21406 (VEC_FLOAT_MODE): Ditto.
21407 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
21408 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
21409 (<any_logic:code><mode>3): Use VF mode iterator.
21410 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
21411 Use VF mode iterator.
21412 (copysign<mode>3): Use VF mode iterator.
21413 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
21414 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
21415 (*<any_logic:code><MODEF:mode>3): Merge with
21416 *avx_<any_logic:code><MODEF:mode>3.
21417 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
21418 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
21419 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
21420 (avx_cvtdq2ps<avxmodesuffix>): Remove.
21421 (sse2_cvtdq2ps): Use %v modifier.
21422 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
21423 (avx_cvtps2dq<avxmodesuffix>): Remove.
21424 (sse2_cvtps2dq): Use %v modifier.
21425 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
21426 (avx_cvttps2dq<avxmodesuffix>): Remove.
21427 (sse2_cvttps2dq): Use %v modifier.
21428 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
21429 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
21430 (sse2_cvtsd2siq): Fix insn template.
21431 (sse2_cvtsd2siq_2): Ditto.
21432 (sse2_cvttsd2siq): Ditto.
21433 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
21434 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
21435
21436 2011-04-06 Joseph Myers <joseph@codesourcery.com>
21437
21438 * gcov-io.c: Use GCC Runtime Library Exception.
21439
21440 2011-04-06 Jakub Jelinek <jakub@redhat.com>
21441
21442 PR debug/48466
21443 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
21444 as base_reg whatever register reg has been eliminated to, instead
21445 of hardcoding STACK_POINTER_REGNUM.
21446
21447 2011-04-06 Joseph Myers <joseph@codesourcery.com>
21448
21449 * doc/tm.texi.in: Document C target hooks as separate from general
21450 target hooks.
21451 * doc/tm.texi: Regenerate.
21452 * genhooks.c (struct hook_desc): Add docname field.
21453 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
21454 docname field.
21455 (hook_array): Include c-target.def.
21456 (emit_documentation): Use docname field in output.
21457 (emit_init_macros): Take docname argument. Only emit definitions
21458 for hooks matching docname.
21459 (main): Expect additional arguments in all cases. Pass argument
21460 to emit_init_macros.
21461 * target.def: Move initial macro definitions and comments to
21462 target-hooks-macros.h.
21463 (gcc_targetcm): Move to c-family/c-target.def.
21464 * target.h (targetcm): Move declaration to c-family/c-target.h.
21465 * targhooks.c (default_handle_c_option): Move to
21466 c-family/c-opts.c.
21467 * targhooks.h (default_handle_c_option): Move declaration to
21468 c-family/c-common.h.
21469 * target-hooks-macros.h: New file.
21470 * config.gcc (target_has_targetcm): Define and use to add to
21471 c_target_objs and cxx_target_objs.
21472 * config/default-c.c: New file.
21473 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
21474 of target.h and target-def.h.
21475 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
21476 (darwin_objc_construct_string, darwin_cfstring_ref_p,
21477 darwin_check_cfstring_format_arg): Make static.
21478 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
21479 TARGET_STRING_OBJECT_REF_TYPE_P,
21480 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
21481 * config/darwin-protos.h (darwin_objc_construct_string,
21482 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
21483 declare.
21484 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
21485 TARGET_STRING_OBJECT_REF_TYPE_P,
21486 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
21487 * config/t-darwin (darwin-c.o): Update dependencies.
21488 * system.h (TARGET_HAS_TARGETCM): Poison.
21489 * Makefile.in (TARGET_H): Update.
21490 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
21491 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
21492 (default-c.o): New target.
21493 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
21494 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
21495 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
21496 c-target.def.
21497 (build/genhooks.o): Update dependencies.
21498
21499 2011-04-06 Richard Guenther <rguenther@suse.de>
21500
21501 * ipa-inline.c (enum inlining_mode): Remove.
21502 (cgraph_flatten): Use some other token.
21503 (cgraph_edge_early_inlinable_p): New function, split out from ...
21504 (cgraph_perform_always_inlining): New function, split out from ...
21505 (cgraph_decide_inlining_incrementally): ... here.
21506 (cgraph_mark_inline_edge): Adjust.
21507 (cgraph_early_inlining): Re-structure.
21508 (pass_early_inline): Require SSA form.
21509
21510 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
21511 Julian Brown <julian@codesourcery.com>
21512 Mark Shinwell <shinwell@codesourcery.com>
21513
21514 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
21515 LO_REGS only for Thumb-1.
21516 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
21517 be used in short instructions when optimising for size on Thumb-2.
21518
21519 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
21520
21521 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
21522 associated with user returns to be preserved.
21523
21524 2011-04-06 Tristan Gingold <gingold@adacore.com>
21525
21526 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
21527 symbol_queue_size, DBXOUT_DECR_NESTING,
21528 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
21529 if XCOFF_DEBUGGING_INFO.
21530
21531 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
21532
21533 * config/i386/i386.md (attribute isa): New.
21534 (attribute enabled): New.
21535 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
21536 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
21537 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
21538 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
21539 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
21540 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21541 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
21542 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
21543
21544 * config/i386/sse.md (VF): New mode iterator.
21545 (VF1): Ditto.
21546 (VF2): Ditto.
21547 (VF_128): Ditto.
21548 (SSEMODEF4): Remove.
21549 (attribute sse): Handle V8SF and V4DF modes.
21550 (<absneg:code><mode>2): Use VF mode iterator.
21551 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
21552 mode iterator.
21553 (<plusminus_insn><mode>3): Use VF mode iterator.
21554 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
21555 Use VF mode iterator.
21556 (<sse>_vm<plusminus_insn><mode>3): Merge with
21557 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
21558 (mul<mode>3): Use VF mode iterator.
21559 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
21560 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
21561 mode iterator.
21562 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
21563 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
21564 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
21565 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
21566 mode iterator.
21567 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
21568 Use VF1 mode iterator.
21569 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
21570 (sqrt<VF2:mode>2): New expander.
21571 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
21572 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
21573 and sqrtv2df2. Use VF mode iterator.
21574 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
21575 mode iterator.
21576 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
21577 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
21578 Use VF1 mode iterator.
21579 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
21580 (<smaxmin:code><mode>3): Use VF mode iterator.
21581 (*<smaxmin:code><mode>3_finite): Merge with
21582 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
21583 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21584 (<sse>_vm<smaxmin:code><mode>2): Merge with
21585 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
21586 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
21587 mode iterator.
21588 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
21589 mode iterator.
21590 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
21591 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
21592 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
21593 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
21594 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
21595 VF mode iterator.
21596 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
21597 Use VF_128 mode iterator.
21598 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
21599 mode iterator.
21600 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
21601 VF_128 mode iterator.
21602 (vcond<mode>): Use VF mode iterator.
21603 * config/i386/predicates.md (sse_comparison_operator): Merge with
21604 avx_comparison_float_operator. Do not declare as special_predicate.
21605 * config/i386/i386.c (struct builtin_description): Update for renamed
21606 compare patterns.
21607 (ix86_expand_args_builtin): Ditto.
21608 (ix86_expand_sse_compare_mask): Ditto.
21609
21610 2011-04-06 Richard Guenther <rguenther@suse.de>
21611
21612 * tree-inline.c (estimate_num_insns): For calls simply account
21613 for all passed arguments and a used return value.
21614
21615 2011-04-06 Richard Guenther <rguenther@suse.de>
21616
21617 PR tree-optimization/47663
21618 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
21619 call_stmt_time fields.
21620 (cgraph_edge_inlinable_p): Declare.
21621 (cgraph_edge_recursive_p): New inline function.
21622 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
21623 (cgraph_clone_edge): Copy it.
21624 * ipa-inline.c (cgraph_estimate_edge_time): New function.
21625 Account for call stmt time.
21626 (cgraph_estimate_time_after_inlining): Take edge argument.
21627 (cgraph_estimate_edge_growth): Account call stmt size.
21628 (cgraph_estimate_size_after_inlining): Take edge argument.
21629 (cgraph_mark_inline_edge): Adjust.
21630 (cgraph_check_inline_limits): Likewise.
21631 (cgraph_recursive_inlining_p): Remove.
21632 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
21633 (cgraph_decide_recursive_inlining): Take edge argument and
21634 adjust.
21635 (cgraph_decide_inlining_of_small_functions): Do not avoid
21636 diags for recursive inlining here.
21637 (cgraph_flatten): Adjust.
21638 (cgraph_decide_inlining_incrementally): Likewise.
21639 (estimate_function_body_sizes): Remove call cost handling.
21640 (compute_inline_parameters): Initialize caller edge call costs.
21641 (cgraph_estimate_edge_growth): New function.
21642 (cgraph_estimate_growth): Use it.
21643 (cgraph_edge_badness): Likewise.
21644 (cgraph_check_inline_limits): Take an edge argument.
21645 (cgraph_decide_inlining_of_small_functions): Adjust.
21646 (cgraph_decide_inlining): Likewise.
21647 * tree-inline.c (estimate_num_insns): Only account for call
21648 return value if it is used.
21649 (expand_call_inline): Avoid diagnostics on recursive inline
21650 functions here.
21651 * lto-cgraph.c (lto_output_edge): Output edge call costs.
21652 (input_edge): Input edge call costs.
21653
21654 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21655
21656 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
21657
21658 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
21659
21660 * doc/invoke.texi (Spec Files): Fix typo.
21661
21662 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
21663
21664 * profile.c (branch_prob): Move declaration of local variable. Remove
21665 obsolete ??? comment. Expand the location explicitly instead of using
21666 the LOCATION_FILE and LOCATION_LINE macros.
21667
21668 2011-04-06 Wei Guozhi <carrot@google.com>
21669
21670 PR target/47855
21671 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
21672 (arm_cond_branch): Likewise.
21673 (arm_cond_branch_reversed): Likewise.
21674 (arm_jump): Likewise.
21675 (push_multi): Likewise.
21676 * config/arm/constraints.md (Py): New constraint.
21677
21678 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21679
21680 PR bootstrap/48471
21681 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
21682 Move these...
21683 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
21684 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
21685 #ifdef DBX_DEBUGGING_INFO.
21686
21687 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
21688
21689 PR bootstrap/48403
21690 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
21691 if old and new states differ.
21692
21693 2011-04-05 Joseph Myers <joseph@codesourcery.com>
21694
21695 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
21696 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
21697 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
21698 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
21699 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
21700 mcfv4e): Use Alias.
21701 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
21702 ColdFire options to -mcpu= options.
21703
21704 2011-04-05 Jeff Law <law@redhat.com>
21705
21706 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
21707 check if BB is a successor of LOOP->header and return
21708 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
21709
21710 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
21711
21712 * cprop.c (struct reg_use): Remove.
21713 (reg_use_table): Make an array of RTX.
21714 (find_used_regs, constprop_register, local_cprop_pass,
21715 bypass_block): Simplify users of reg_use_table.
21716 (cprop_insn): Likewise. Iterate if copy propagation succeeded
21717 on one of the uses found by find_used_regs.
21718
21719 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21720
21721 PR bootstrap/48469
21722 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
21723 declaration.
21724
21725 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21726
21727 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
21728 as an rtx.
21729 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
21730
21731 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
21732
21733 PR middle-end/48441
21734 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
21735
21736 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21737
21738 * combine.c: Include obstack.h.
21739 (struct insn_link): Define.
21740 (uid_log_links): Adjust type.
21741 (FOR_EACH_LOG_LINK): New macro.
21742 (insn_link_obstack): Declare.
21743 (alloc_insn_link): Define.
21744 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
21745 type of link variables.
21746 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
21747 (try_combine, record_promoted_values, distribute_notes): Likewise.
21748 (distribute_links): Likewise. Tweak prototype.
21749 (clear_log_links): Delete.
21750 (adjust_for_new_dest): Call alloc_insn_link.
21751 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
21752
21753 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21754
21755 * gcse.c (modify_mem_list): Convert to an array of VECs.
21756 (canon_modify_mem_list, compute_transp): Tweak formatting.
21757 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
21758 (load_killed_in_block_p): Likewise.
21759 (record_last_mem_set_info): Likewise.
21760 (clear_modify_mem_tables): Likewise.
21761
21762 2011-04-05 Tom de Vries <tom@codesourcery.com>
21763
21764 PR middle-end/48461
21765 * function.c (emit_use_return_register_into_block): Only define if
21766 HAVE_return.
21767
21768 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
21769
21770 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
21771
21772 2011-04-05 Joseph Myers <joseph@codesourcery.com>
21773
21774 * config/rx/rx-opts.h: New.
21775 * config/rx/rx.c (rx_cpu_type): Remove.
21776 (rx_handle_option): Don't assert that global structures are in
21777 use. Access variables via opts pointer. Defer most handling of
21778 OPT_mint_register_. Use error_at.
21779 (rx_option_override): Handle deferred OPT_mint_register_ here.
21780 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
21781 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
21782 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
21783 (rx_cpu_types): New Enum and EnumValue entries.
21784 (mint-register=): Use Defer and use Var accordingly.
21785
21786 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21787
21788 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
21789 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
21790 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
21791 Move these...
21792 (debug_free_queue, debug_nesting, symbol_queue_index):
21793 ...and these...
21794 * dbxout.c: ...to here. Make static.
21795
21796 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21797
21798 * gcse.c (modify_pair): Define. Define a VEC of it.
21799 (canon_modify_mem_list): Convert to an array of VECs.
21800 (free_insn_expr_list_list): Delete.
21801 (clear_modify_mem_tables): Call VEC_free instead.
21802 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
21803 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
21804 (canon_list_insert, compute_transp): Likewise.
21805
21806 2011-04-05 Tom de Vries <tom@codesourcery.com>
21807
21808 PR target/43920
21809 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
21810 for size.
21811
21812 2011-04-05 Tom de Vries <tom@codesourcery.com>
21813
21814 PR target/43920
21815 * function.c (emit_use_return_register_into_block): New function.
21816 (thread_prologue_and_epilogue_insns): Use
21817 emit_use_return_register_into_block.
21818
21819 2011-04-05 Tom de Vries <tom@codesourcery.com>
21820
21821 PR target/43920
21822 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
21823 insn.
21824
21825 2011-04-05 Tom de Vries <tom@codesourcery.com>
21826
21827 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
21828
21829 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
21830
21831 * config/arm/arm.md (define_constants for unspec): Replace with
21832 define_c_enum.
21833 (define_constants for unspecv): Replace with define_c_enum.
21834 * config/arm/neon.md (define_constants for unspec): Replace with
21835 define_c_enum.
21836
21837 2011-04-04 Richard Henderson <rth@redhat.com>
21838
21839 PR bootstrap/48400
21840 * dwarf2out.c (output_line_info): Always emit line info from
21841 at least one section.
21842 (dwarf2out_init): Create text_section_line_info here ...
21843 (set_cur_line_info_table): ... not here.
21844
21845 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
21846
21847 PR target/48380
21848 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
21849 not called.
21850
21851 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
21852
21853 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
21854
21855 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
21856 (expr_equiv_p): Remove.
21857 (insert_set_in_table): Look at <dest, src> pair instead of expr.
21858 (hash_scan_set): Update call to insert_set_in_table.
21859 (dump_hash_table): Dump <dest, src> pair.
21860 (lookup_set): Simplify. Lookup <dest, src> pair.
21861 (compute_transp): Remove, fold heavily simplified code into...
21862 (compute_local_properties): ...here. Expect COMP and TRANSP
21863 unconditionally.
21864 (find_avail_set): Take set directly from struct expr.
21865 (find_bypass-set): Likewise.
21866 (bypass_block): Likewise.
21867 (cprop_insn): Likewise. Remove redundant INSN_P test.
21868
21869 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
21870 checks on form of COND from find_implicit_sets to here.
21871 (find_implicit_sets): Cleanup control flow. Split critical edges
21872 if it exposes implicit sets. Allocate/resize implicit_sets as
21873 necessary.
21874 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
21875 changed something. Run df_analyze after find_implicit_sets if any
21876 edges were split. Do not allocate implicit_sets here.
21877
21878 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
21879 (gcse_obstack): Renamed to cprop_obstack.
21880 (GNEW, GNEWVEC, GNEWVAR): Remove.
21881 (gmalloc): Remove.
21882 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
21883 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
21884 (gcse_alloc): Likewise, and rename to cprop_alloc.
21885 (alloc_gcse_men, free_gcse_mem): Remove.
21886 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
21887 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
21888 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
21889
21890 * cprop.c (oprs_not_set_p): Remove.
21891 (mark_set, mark_clobber): Remove.
21892 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
21893 (reg_not_set_p): New function.
21894 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
21895 (cprop_insn): Likewise.
21896 (cprop_jump): Use FOR_EACH_EDGE.
21897
21898 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
21899
21900 PR bootstrap/48403
21901 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
21902 (rank_for_schedule): Use scheduled_insns vector instead of
21903 last_scheduled_insn.
21904 (ok_for_early_queue_removal): Likewise.
21905 (queue_to_ready): Search forward in nonscheduled_insns_begin if
21906 we have a dbg_cnt.
21907 (choose_ready): Likewise.
21908 (commit_schedule): Use VEC_iterate.
21909 (schedule_block): Initialize nonscheduled_insns_begin. If we have
21910 a dbg_cnt, use it and ensure the first insn is in the ready list.
21911 (haifa_sched_init): Allocate scheduled_insns.
21912 (sched_extend_ready_list): Don't allocate it; reserve space.
21913 (haifa_sched_finish): Free it.
21914
21915 2011-04-04 Joseph Myers <joseph@codesourcery.com>
21916
21917 * optc-gen.awk: Always remove type from Variable entry before
21918 recording in var_seen.
21919
21920 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
21921
21922 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
21923 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
21924 call to tidy_fallthru_edges.
21925
21926 2011-04-04 Joseph Myers <joseph@codesourcery.com>
21927
21928 * doc/options.texi (ToLower): Document.
21929 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
21930 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
21931 * opts.h (cl_option): Add cl_tolower field.
21932 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
21933 arguments with lowercase strings.
21934 * config/rx/rx.opt (mcpu=): Add ToLower.
21935 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
21936 argument.
21937
21938 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
21939
21940 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
21941
21942 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
21943
21944 * config/vax/vax.c: Include reload.h.
21945
21946 2011-04-04 Anatoly Sokolov <aesok@post.ru>
21947
21948 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
21949 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
21950 (sparc_preferred_reload_class): New function.
21951
21952 2011-04-04 Jakub Jelinek <jakub@redhat.com>
21953
21954 PR debug/48401
21955 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
21956 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
21957
21958 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
21959
21960 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
21961 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
21962
21963 2011-04-03 Anatoly Sokolov <aesok@post.ru>
21964
21965 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
21966 (ASM_OUTPUT_ALIGNED_BSS): Define.
21967
21968 2011-04-03 Michael Matz <matz@suse.de>
21969
21970 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
21971 and next_slot members.
21972 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
21973 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
21974 (lto_streamer_cache_append): Declare.
21975 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
21976 unsigned index, remove offset parameter, ensure that we append
21977 or update existing entries.
21978 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
21979 parameter, update next_slot for append.
21980 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
21981 parameter.
21982 (lto_streamer_cache_insert_at): Likewise.
21983 (lto_streamer_cache_append): New function.
21984 (lto_streamer_cache_lookup): Use unsigned index.
21985 (lto_streamer_cache_get): Likewise.
21986 (lto_record_common_node): Don't test tree_node_can_be_shared.
21987 (preload_common_node): Adjust call to lto_streamer_cache_insert.
21988 (lto_streamer_cache_delete): Don't free offsets member.
21989 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
21990 (lto_output_string_with_length): Use lto_output_data_stream.
21991 (lto_output_tree_header): Remove ix parameter, don't write it.
21992 (lto_output_builtin_tree): Likewise.
21993 (lto_write_tree): Adjust callers to above, don't track and write
21994 offset, write unsigned index.
21995 (output_unreferenced_globals): Don't emit all global vars.
21996 (write_global_references): Use unsigned indices.
21997 (lto_output_decl_state_refs): Likewise.
21998 (write_symbol): Likewise.
21999 * lto-streamer-in.c (lto_input_chain): Move earlier.
22000 (input_function): Use unsigned index.
22001 (input_alias_pairs): Don't read and then ignore all global vars.
22002 (lto_materialize_tree): Remove ix_p parameter, don't read index,
22003 don't pass it back, use lto_streamer_cache_append.
22004 (lto_register_var_decl_in_symtab): Use unsigned index.
22005 (lto_register_function_decl_in_symtab): Likewise.
22006 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
22007 index.
22008 (lto_get_builtin_tree): Don't read index, use
22009 lto_streamer_cache_append.
22010 (lto_read_tree): Adjust call to lto_materialize_tree.
22011
22012 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
22013 don't use function calls in arguments to MIN.
22014
22015 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
22016 twice.
22017
22018 * gimple.c (gimple_type_leader_entry): Mark deletable.
22019
22020 2011-04-03 Alan Modra <amodra@gmail.com>
22021
22022 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
22023
22024 2011-04-03 Michael Matz <matz@suse.de>
22025
22026 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
22027 an integer.
22028 * tree.h (tree_decl_non_common.vindex): Adjust comment.
22029
22030 2011-04-03 Michael Matz <matz@suse.de>
22031
22032 * cgraphbuild.c (record_reference): Canonicalize constructor values.
22033 * gimple-fold.c (canonicalize_constructor_val): Accept being called
22034 without function context.
22035 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
22036 current_function_decl and cfun.
22037
22038 2011-04-03 Michael Matz <matz@suse.de>
22039
22040 * tree.c (decl_init_priority_insert): Don't create entry for
22041 default priority.
22042 (decl_fini_priority_insert): Ditto.
22043 (fields_compatible_p, find_compatible_field): Remove.
22044 * tree.h (fields_compatible_p, find_compatible_field): Remove.
22045 * gimple.c (gimple_compare_field_offset): Adjust block comment.
22046
22047 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
22048
22049 * combine.c (try_combine): Remove useless local variable.
22050
22051 2011-04-03 Richard Guenther <rguenther@suse.de>
22052 Ira Rosen <ira.rosen@linaro.org>
22053
22054 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
22055 non-variable offsets and compare the remaining bases of the two
22056 accesses instead of looking for exact same data-ref.
22057
22058 2011-04-02 Kai Tietz <ktietz@redhat.com>
22059
22060 PR target/48416
22061 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
22062
22063 * i386.c (ix86_is_msabi_thiscall): New helper function.
22064 (ix86_is_type_thiscall): New helper function.
22065 (ix86_comp_type_attributes): Handle thiscall for method-functions
22066 special.
22067 (init_cumulative_args): Likewise.
22068 (find_drap_reg): Likewise.
22069 (ix86_static_chain): Likewise.
22070 (x86_this_parameter): Likewise.
22071 (x86_output_mi_thunk): Likewise.
22072
22073 2011-04-01 Olivier Hainque <hainque@adacore.com>
22074 Nicolas Setton <setton@adacore.com>
22075 Eric Botcazou <ebotcazou@adacore.com>
22076
22077 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
22078 (add_gnat_descriptive_type_attribute): New function.
22079 (gen_array_type_die): Call it.
22080 (gen_enumeration_type_die): Likewise.
22081 (gen_struct_or_union_type_die): Likewise.
22082 (modified_type_die): Likewise.
22083 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
22084 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
22085 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
22086
22087 2011-04-01 Jakub Jelinek <jakub@redhat.com>
22088
22089 PR bootstrap/48148
22090 * dwarf2out.c (resolve_addr): Don't call force_decl_die
22091 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
22092
22093 Revert:
22094 2011-03-17 Richard Guenther <rguenther@suse.de>
22095
22096 PR bootstrap/48148
22097 * lto-cgraph.c (input_overwrite_node): Clear the abstract
22098 origin for decls in other ltrans units.
22099 (input_varpool_node): Likewise.
22100
22101 2011-04-01 Jakub Jelinek <jakub@redhat.com>
22102
22103 PR middle-end/48335
22104 * expr.c (expand_assignment): Handle all possibilities
22105 if TO_RTX is CONCAT.
22106 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
22107 (store_split_bit_field): If SUBREG_REG (op0) or
22108 op0 itself has smaller mode than word, return it
22109 for offset 0 and const0_rtx for out-of-bounds stores.
22110 If word is const0_rtx, skip it.
22111
22112 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
22113
22114 * config/h8300/h8300.c (print_operand_address): Rename to...
22115 (h8300_print_operand_address): ...this. Make static. Adjust comments.
22116 Call h8300_print_operand and h8300_print_operand_address instead of
22117 print_operand and print_operand_address. Declare.
22118 (print_operand): Renake to...
22119 (h8300_print_operand): ...this. Make static. Adjust comments.
22120 Call h8300_print_operand instead of print_operand. Declare.
22121 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
22122 (h8300_register_move_cost): Likewise.
22123 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
22124 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
22125 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
22126 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
22127 * config/h8300/h8300-protos.h (print_operand): Delete.
22128 (print_operand_address): Delete.
22129
22130 2011-04-01 Richard Henderson <rth@redhat.com>
22131
22132 PR 48400
22133 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
22134 in strict mode before dwarf4. Re-order tests to early out
22135 before switching sections.
22136
22137 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
22138
22139 * config/h8300/constraints.md: New file.
22140 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
22141 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
22142 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
22143 * config/h8300/predicates.md (bit_operand): Likewise.
22144 (incdec_operand): Use satisfies_constraint_M and
22145 satisfies_constraint_O. Don't use C code block.
22146 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
22147 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
22148 (compute_mov_length): Use satisfies_constraint_G.
22149 (fix_bit_operand): Use satisfies_constraint_U.
22150 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
22151 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
22152 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
22153 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
22154 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
22155 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
22156 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22157 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
22158 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
22159 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
22160 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
22161 (EXTRA_MEMORY_CONSTRAINT): Delete.
22162
22163 2011-04-01 Andrew Pinski <pinskia@gmail.com>
22164 Michael Meissner <meissner@linux.vnet.ibm.com>
22165
22166 PR target/48262
22167 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
22168 operands, as per the specifications.
22169
22170 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
22171 (vec_extract_evenv4sf): Ditto.
22172 (vec_extract_evenv8hi): Ditto.
22173 (vec_extract_evenv16qi): Ditto.
22174 (vec_extract_oddv4si): Ditto.
22175
22176 2011-03-31 Mark Wielaard <mjw@redhat.com>
22177
22178 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
22179 high_pc attribute if the CU has no associated code. Only output
22180 DW_AT_entry_pc for CU if not generating strict dwarf and
22181 dwarf_version < 4.
22182
22183 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
22184
22185 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
22186 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
22187 out of ...
22188 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
22189 * final.c (final_start_function): Call the new function rather
22190 than using a NULL argument for dwarf2out_frame_debug.
22191
22192 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
22193 that contains the prologue.
22194
22195 * haifa-sched.c (queue_insn): New arg REASON. All callers
22196 changed. Print it in debugging output.
22197
22198 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
22199
22200 * sched-ebb.c (begin_schedule_ready): Remove second argument.
22201 Split most of the code into...
22202 (begin_move_insn): ... here. New function.
22203 (ebb_sched_info): Add a pointer to it.
22204 * haifa-sched.c (scheduled_insns): New static variable.
22205 (sched_extend_ready_list): Allocate it.
22206 (schedule_block): Use it to record the order of scheduled insns.
22207 Perform RTL changes to move insns only after all scheduling
22208 decisions have been made.
22209 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
22210 begin_move_insn field.
22211 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
22212 * sched-int.h (struct haifa_sched_info): Remove second argument
22213 from begin_schedule_ready hook. Add new member begin_move_insn.
22214 * sched-rgn.c (begin_schedule_ready): Remove second argument.
22215 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
22216
22217 * haifa-sched.c (prune_ready_list): New function, broken out of
22218 schedule_block.
22219 (schedule_block): Use it.
22220
22221 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22222
22223 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
22224
22225 2011-04-01 Kai Tietz <ktietz@redhat.com>
22226
22227 * config.gcc (*-*-mingw*): Allow as option the
22228 posix threading model.
22229 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
22230 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
22231 definition.
22232 (CPP_SPEC): Add pthread/no-pthread handling.
22233 (LIB_SPEC): Likewise.
22234 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
22235 (LIB_SPEC): Likewise.
22236 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
22237 flag to pass -pthread option for shared libgcc build.
22238 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
22239 for shared libgcc build.
22240 * config/i386/t-mingw-pthread: New file.
22241 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
22242 New define to enable use of library pthread by default.
22243 * config/i386/mingw.opt (pthread): New driver option.
22244 (no-pthread): New driver option.
22245 * config/i386/cygming.opt: Make sure trailing empty line is retained.
22246 * config/i386/mingw-w64.opt: Likewise.
22247
22248 2011-04-01 Gary Funck <gary@intrepid.com>
22249
22250 * c-decl.c (grokdeclarator): Fix formatting.
22251
22252 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
22253
22254 * expr.c (emit_block_move_via_movmem): Use n_generator_args
22255 instead of n_operands.
22256 (set_storage_via_setmem): Likewise.
22257 * optabs.c (maybe_gen_insn): Likewise.
22258 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
22259 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
22260 (mips_expand_builtin_direct): Likewise.
22261 * config/spu/spu.c (expand_builtin_args): Likewise.
22262
22263 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
22264
22265 * recog.h (insn_data_d): Add n_generator_args.
22266 * genoutput.c (data): Likewise.
22267 (output_insn_data): Print it.
22268 (max_opno, num_dups): Delete.
22269 (scan_operands): Just fill in "d->operand[...]".
22270 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
22271
22272 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
22273
22274 * gensupport.h (pattern_stats): New structure.
22275 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
22276 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
22277 (max_operand_1, max_operand_vec): Delete.
22278 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
22279
22280 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
22281
22282 * emit-rtl.c (emit_pattern_after_setloc): New function.
22283 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
22284 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
22285 (emit_pattern_after): New function.
22286 (emit_insn_after, emit_jump_insn_after): Call it.
22287 (emit_call_insn_after, emit_debug_insn_after): Likewise.
22288 (emit_pattern_before_setloc): New function.
22289 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
22290 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
22291 Likewise.
22292 (emit_pattern_before): New function.
22293 (emit_insn_before, emit_jump_insn_before): Call it.
22294 (emit_call_insn_before, emit_debug_insn_before): Likewise.
22295
22296 2011-03-31 Richard Henderson <rth@redhat.com>
22297
22298 * dwarf2out.c (dw_separate_line_info_ref): Remove.
22299 (dw_separate_line_info_entry): Remove.
22300 (enum dw_line_info_opcode): New.
22301 (dw_line_info_entry): Use it.
22302 (dw_line_info_table, dw_line_info_table_p): New.
22303 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
22304 (line_info_table, line_info_label_num): Remove.
22305 (line_info_table_in_use): Remove.
22306 (separate_line_info_table): Remove.
22307 (separate_line_info_table_allocated): Remove.
22308 (separate_line_info_table_in_use): Remove.
22309 (LINE_INFO_TABLE_INCREMENT): Remove.
22310 (line_info_label_num): New.
22311 (cur_line_info_table): New.
22312 (text_section_line_info, cold_text_section_line_info): New.
22313 (separate_line_info): New.
22314 (SEPARATE_LINE_CODE_LABEL): Remove.
22315 (print_dwarf_line_table): Remove.
22316 (debug_dwarf): Don't dump it.
22317 (output_one_line_info_table): New.
22318 (output_line_info): Use it.
22319 (new_line_info_table): New.
22320 (set_cur_line_info_table): New.
22321 (dwarf2out_switch_text_section): Use it.
22322 (dwarf2out_begin_function): Likewise.
22323 (push_dw_line_info_entry): New.
22324 (dwarf2out_source_line): Rewrite for new line info tables.
22325 (dwarf2out_init): Remove dead initailizations.
22326
22327 2011-03-31 Joseph Myers <joseph@codesourcery.com>
22328
22329 * opts.h (cl_option): Add comments to fields. Add bit-fields for
22330 various flags.
22331 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
22332 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
22333 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
22334 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
22335 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
22336 * opt-functions.awk (flag_init, switch_bit_fields): New.
22337 (switch_flags): Don't handle flags moved to bit-fields. Don't
22338 generate CL_MISSING_OK or CL_SAVE.
22339 * optc-gen.awk: Update to generate bit-field output as well as
22340 flags field.
22341 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
22342 bit-field instead of CL_REJECT_DRIVER flag.
22343 * opts-common.c (generate_canonical_option,
22344 decode_cmdline_option): Use bit-fields instead of CL_* flags.
22345 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
22346 instead of CL_REJECT_NEGATIVE flag.
22347 * toplev.c (print_switch_values): Use cl_report bit-field instead
22348 of CL_REPORT flag.
22349
22350 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
22351
22352 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
22353 a zero minimum index only if it is redundant.
22354
22355 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
22356
22357 PR rtl-optimization/48381
22358 * ira-color.c (assign_hard_reg): Use hard reg set intersection
22359 instead of ira_class_hard_reg_index for calculating conflicting
22360 hard registers.
22361
22362 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
22363
22364 * cprop.c: Clean up hash table building.
22365 (reg_avail_info): Remove.
22366 (oprs_available_p): Remove.
22367 (record_last_reg_set_info): Remove.
22368 (record_last_set_info): Remove.
22369 (reg_available_p): New function.
22370 (gcse_constant_p): Do not treat unfolded conditions as constants.
22371 (make_set_regs_unavailable): New function.
22372 (hash_scan_set): Simplify with new reg_available_p.
22373 (compute_hash_table_work): Traverse insns stream only once.
22374 Do not compute reg_avail_info. Traverse insns in reverse order.
22375 Record implicit sets after recording explicit sets from the block.
22376
22377 2011-03-31 Michael Matz <matz@suse.de>
22378
22379 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
22380
22381 2011-03-31 Anatoly Sokolov <aesok@post.ru>
22382
22383 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
22384 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
22385 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22386 (h8300_mode_dependent_address_p): New function.
22387 (h8300_get_index): Make static.
22388
22389 2011-03-31 Jeff Law <law@redhat.com>
22390
22391 * reload1.c (elimination_effects): Fix typo in recent change.
22392
22393 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
22394 typo potentially leading to null pointer dereference.
22395
22396 * caller-save.c (new_saved_hard_reg): Eliminate return value.
22397 (setup_save_areas): Corresponding changes to avoid useless
22398 assignments.
22399
22400 * jump.c (reversed_comparison_code_parts): Avoid successive return
22401 statements when REVERSE_CONDITION is defined.
22402
22403 * expr.c (expand_assignment): Avoid useless assignments.
22404 (expand_expr_real_1): Likewise.
22405 (expand_expr_real_2): Avoid useless statements.
22406
22407 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
22408
22409 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
22410
22411 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
22412 statements.
22413
22414 * stmt.c (expand_expr_stmt): Avoid useless assignment.
22415
22416 2011-03-31 Joseph Myers <joseph@codesourcery.com>
22417
22418 PR target/47109
22419 * doc/tm.texi.in (TARGET_VERSION): Remove.
22420 * doc/tm.texi: Regenerate.
22421 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
22422 * collect2.c (main): Don't use TARGET_VERSION.
22423 * mips-tdump.c (main): Don't use TARGET_VERSION.
22424 * mips-tfile.c (main): Don't use TARGET_VERSION.
22425 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
22426 * config/rs6000/vxworksae.h: Remove.
22427 * config/alpha/alpha.h (TARGET_VERSION): Remove.
22428 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
22429 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
22430 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
22431 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
22432 * config/arm/arm.h (TARGET_VERSION): Remove.
22433 * config/arm/coff.h (TARGET_VERSION): Remove.
22434 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
22435 * config/arm/elf.h (TARGET_VERSION): Remove.
22436 * config/arm/freebsd.h (TARGET_VERSION): Remove.
22437 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
22438 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
22439 * config/arm/pe.h (TARGET_VERSION): Remove.
22440 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
22441 * config/arm/semi.h (TARGET_VERSION): Remove.
22442 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
22443 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
22444 * config/arm/vxworks.h (TARGET_VERSION): Remove.
22445 * config/avr/avr.h (TARGET_VERSION): Remove.
22446 * config/bfin/bfin.h (TARGET_VERSION): Remove.
22447 * config/fr30/fr30.h (TARGET_VERSION): Remove.
22448 * config/frv/frv.h (TARGET_VERSION): Remove.
22449 * config/h8300/h8300.h (TARGET_VERSION): Remove.
22450 * config/i386/cygwin.h (TARGET_VERSION): Remove.
22451 * config/i386/darwin.h (TARGET_VERSION): Remove.
22452 * config/i386/darwin64.h (TARGET_VERSION): Remove.
22453 * config/i386/djgpp.h (TARGET_VERSION): Remove.
22454 * config/i386/freebsd.h (TARGET_VERSION): Remove.
22455 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
22456 * config/i386/gnu.h (TARGET_VERSION): Remove.
22457 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
22458 * config/i386/i386elf.h (TARGET_VERSION): Remove.
22459 * config/i386/linux.h (TARGET_VERSION): Remove.
22460 * config/i386/linux64.h (TARGET_VERSION): Remove.
22461 * config/i386/lynx.h (TARGET_VERSION): Remove.
22462 * config/i386/mingw32.h (TARGET_VERSION): Remove.
22463 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
22464 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
22465 * config/i386/netware.h (TARGET_VERSION): Remove.
22466 * config/i386/nto.h (TARGET_VERSION): Remove.
22467 * config/i386/openbsd.h (TARGET_VERSION): Remove.
22468 * config/i386/vxworks.h (TARGET_VERSION): Remove.
22469 * config/ia64/elf.h (TARGET_VERSION): Remove.
22470 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
22471 * config/ia64/hpux.h (TARGET_VERSION): Remove.
22472 * config/ia64/linux.h (TARGET_VERSION): Remove.
22473 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
22474 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
22475 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
22476 * config/lm32/lm32.h (TARGET_VERSION): Remove.
22477 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
22478 * config/m32c/m32c.h (TARGET_VERSION): Remove.
22479 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
22480 * config/m32r/m32r.h (TARGET_VERSION): Remove.
22481 * config/m68k/linux.h (TARGET_VERSION): Remove.
22482 * config/m68k/m68k.h (TARGET_VERSION): Remove.
22483 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
22484 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
22485 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
22486 * config/mep/mep.h (TARGET_VERSION): Remove.
22487 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
22488 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
22489 * config/mips/iris6.h (MACHINE_TYPE): Remove.
22490 * config/mips/linux.h (TARGET_VERSION): Remove.
22491 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
22492 * config/mips/vxworks.h (TARGET_VERSION): Remove.
22493 * config/mmix/mmix.h (TARGET_VERSION): Remove.
22494 * config/mn10300/linux.h (TARGET_VERSION): Remove.
22495 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
22496 * config/pa/pa.h (TARGET_VERSION): Remove.
22497 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
22498 * config/picochip/picochip.h (TARGET_VERSION): Remove.
22499 * config/rs6000/aix.h (TARGET_VERSION): Remove.
22500 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
22501 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
22502 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
22503 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
22504 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
22505 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
22506 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
22507 * config/rs6000/linux.h (TARGET_VERSION): Remove.
22508 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
22509 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
22510 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
22511 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
22512 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
22513 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
22514 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
22515 * config/s390/linux.h (TARGET_VERSION): Remove.
22516 * config/s390/s390.h (TARGET_VERSION): Remove.
22517 * config/s390/tpf.h (TARGET_VERSION): Remove.
22518 * config/score/score.h (TARGET_VERSION): Remove.
22519 * config/sh/linux.h (TARGET_VERSION): Remove.
22520 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
22521 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
22522 * config/sh/sh.h (TARGET_VERSION): Remove.
22523 * config/sh/sh64.h (TARGET_VERSION): Remove.
22524 * config/sh/superh.h (TARGET_VERSION): Remove.
22525 * config/sh/vxworks.h (TARGET_VERSION): Remove.
22526 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
22527 * config/sparc/linux.h (TARGET_VERSION): Remove.
22528 * config/sparc/linux64.h (TARGET_VERSION): Remove.
22529 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
22530 TARGET_NAME32, TARGET_NAME): Remove.
22531 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
22532 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
22533 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
22534 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
22535 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
22536 * config/spu/spu.h (TARGET_VERSION): Remove.
22537 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
22538 * config/v850/v850.h (TARGET_VERSION): Remove.
22539 * config/vax/linux.h (TARGET_VERSION): Remove.
22540 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
22541 * config/xtensa/elf.h (TARGET_VERSION): Remove.
22542 * config/xtensa/linux.h (TARGET_VERSION): Remove.
22543
22544 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
22545
22546 PR target/48142
22547 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
22548 frame-related from frame-unrelated adjustments to the stack pointer.
22549
22550 2011-03-31 Jakub Jelinek <jakub@redhat.com>
22551
22552 * common.opt (fdebug-types-section): Move earlier.
22553 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
22554
22555 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
22556
22557 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
22558 var.
22559
22560 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
22561
22562 * tree.h (CASE_CHAIN): Define.
22563 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
22564 (gimple_redirect_edge_and_branch): Likewise.
22565
22566 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
22567
22568 PR middle-end/48367
22569 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
22570 calculation.
22571
22572 2011-03-30 Jeff Law <law@redhat.com>
22573
22574 * PR bootstrap/48371
22575 * reload1.c (reload): Fix botch in last change.
22576
22577 * reload.h (struct reload): Fix typo introduced in last change.
22578
22579 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22580
22581 * config/arm/arm.opt (mhard-float, msoft-float): Mark
22582 Undocumented. Remove help text.
22583 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
22584 -mhard-float.
22585
22586 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22587
22588 * doc/options.texi (NegativeAlias): Document.
22589 (Alias): Mention NegativeAlias.
22590 * opt-functions.awk: Handle NegativeAlias.
22591 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
22592 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
22593 * opts.h (CL_NEGATIVE_ALIAS): Define.
22594 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
22595 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
22596 OPT_mspe_.
22597 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
22598 Alias entries.
22599 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
22600 mno-spe and mno-isel instead of mspe=no and -misel=no.
22601
22602 2011-03-29 Mark Wielaard <mjw@redhat.com>
22603
22604 * common.opt (fdebug-types-section): New flag.
22605 * doc/invoke.texi: Document new -fno-debug-types-section flag.
22606 * dwarf2out.c (use_debug_types): New define.
22607 (struct die_struct): Mark die_id with GTY desc use_debug_types.
22608 (print_die): Guard output of type unit signatures using
22609 use_debug_types.
22610 (build_abbrev_table): Replace assert of dwarf_version >= 4
22611 with assert on use_debug_types.
22612 (size_of_die): Likewise.
22613 (unmark_dies): Likewise.
22614 (value_format): Decide AT_ref_external form on use_debug_types.
22615 (output_die): Replace dwarf_version version check guard with
22616 use_debug_types where appropriate.
22617 (modified_type_die): Likewise.
22618 (gen_reference_type_die): Likewise.
22619 (dwarf2out_start_source_file): Likewise.
22620 (dwarf2out_end_source_file): Likewise.
22621 (prune_unused_types_walk_attribs): Likewise.
22622 (dwarf2out_finish): Likewise.
22623
22624 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
22625
22626 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
22627
22628 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22629
22630 PR rtl-optimization/48332
22631 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
22632 mode of input operand N and modeN to its actual mode.
22633
22634 2011-03-30 Jeff Law <law@redhat.com>
22635
22636 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
22637 define accessor macro.
22638 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
22639 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
22640 (reg_equiv_init): Likewise.
22641 (reg_equivs_size): New variable.
22642 (reg_equiv_init_size): Remove.
22643 (allocate_initial_values): Move prototype to here from....
22644 * integrate.h (allocate_initial_values): Remove prototype.
22645 * integrate.c: Include reload.h.
22646 (allocate_initial_values): Corresponding changes.
22647 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
22648 (fix_reg_equiv_init, no_equiv): Corresponding changes.
22649 (update_equiv_regs): Corresponding changes.
22650 (ira): Corresponding changes.
22651 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
22652 (push_secondary_reload): Corresponding changes.
22653 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
22654 (make_memloc, find_reloads_address): Corresponding changes.
22655 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
22656 (find_reloads_address_1): Corresponding changes.
22657 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
22658 (refers_to_regno_for_reload_p): Corresponding changes.
22659 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
22660 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
22661 * reload1.c: Include ggc.h.
22662 (grow_reg_equivs): New function.
22663 (replace_pseudos_in, reload): Corresponding changes.
22664 (calculate_needs_all_insns, alter_regs): Corresponding changes.
22665 (eliminate_regs_1, elimination_effects): Corresponding changes.
22666 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
22667 (delete_output_reload): Likewise.
22668 * caller-save.c (mark_referenced_regs): Corresponding changes.
22669 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
22670 * frv/predicates.md (frv_load_operand): Corresponding changes.
22671 * microblaze/microblaze.c (double_memory_operand): Corresponding
22672 changes.
22673 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
22674 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
22675 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
22676 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
22677 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
22678 changes.
22679 * pa/pa.c (emit_move_sequence): Corresponding changes.
22680 * vax/vax.c (nonindexed_address_p): Corresponding changes.
22681
22682 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22683
22684 PR target/47551
22685 * config/arm/arm.c (coproc_secondary_reload_class): Handle
22686 structure modes. Don't check neon_vector_mem_operand for
22687 vector or structure modes.
22688
22689 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22690 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22691
22692 PR target/43590
22693 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
22694 operand 1 and reshuffle the operands to match.
22695 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
22696
22697 2011-03-30 Christian Schüler <cschueler@gmx.de>
22698
22699 PR driver/48208
22700 * config/c.opt (F): Added 'Driver' to -F option.
22701
22702 PR driver/48260
22703 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
22704 handler function.
22705 * config/darwin.opt: Added '-arch' option.
22706
22707 2011-03-30 Nick Clifton <nickc@redhat.com>
22708
22709 * config/rx/rx.md: Add peepholes and patterns to combine
22710 extending loads and simple arithmetic instructions.
22711 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
22712 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
22713 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
22714 modes to use pre-decrement and post-increment addressing.
22715 (rx_is_restricted_memory_address): Add range checking of REG+INT
22716 addresses.
22717 (rx_print_operand): Add support for %Q. Fix handling of %Q.
22718 (rx_memory_move_cost): Adjust cost of stores.
22719 (rx_adjust_insn_length): New function.
22720
22721 2011-03-30 Jakub Jelinek <jakub@redhat.com>
22722
22723 PR c/48305
22724 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
22725 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
22726 matching arg00/arg01 types.
22727
22728 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
22729
22730 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
22731 last_location to UNKNOWN_LOCATION.
22732
22733 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
22734
22735 PR target/48349
22736 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
22737 FLOAT_SSE_REGS.
22738
22739 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22740 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22741
22742 PR bootstrap/48337
22743 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
22744 Init(PROCESSOR_V7).
22745 (sparc_cpu): Likewise.
22746 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
22747 PROCESSOR_V7.
22748
22749 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22750
22751 PR target/48336
22752 PR middle-end/48342
22753 PR rtl-optimization/48345
22754 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
22755 hard regs for given mode from profitable regs when doing secondary
22756 allocation.
22757
22758 2011-03-29 Jeff Law <law@redhat.com>
22759
22760 PR bootstrap/48327
22761 * tree-ssa-threadupdate.c (struct redirection_data): Remove
22762 do_not_duplicate field.
22763 (lookup_redirection_data): Corresponding changes.
22764 (create_duplicates): Always create a template block.
22765 (redirect_edges): Remove code which reused the original block
22766 when it was going to become unreachable code.
22767 (thread_block): Don't set do_not_duplicate field.
22768
22769 2011-03-29 Joseph Myers <joseph@codesourcery.com>
22770
22771 * lto-opts.c (register_user_option_p, lto_register_user_option):
22772 Make type argument unsigned.
22773 * lto-streamer.h (lto_register_user_option): Make type argument
22774 unsigned.
22775 * opth-gen.awk: Make CL_* macros unsigned.
22776 * opts-common.c (find_opt): Make lang_mask argument unsigned.
22777 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
22778 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
22779 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
22780 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
22781 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
22782 (find_opt): Make lang_mask argument unsigned.
22783
22784 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22785
22786 PR rtl-optimization/48331
22787 PR rtl-optimization/48334
22788 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
22789 for any used algorithm.
22790
22791 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22792
22793 * ira-conflicts.c (build_object_conflicts): Add unused attribute
22794 to parent_max.
22795
22796 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
22797
22798 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
22799 (alpha_option_override): Don't set alpha_sr_alias_set.
22800 (emit_frame_store_1): Use gen_frame_mem rather than calling
22801 set_mem_alias_set.
22802 (alpha_expand_epilogue): Ditto.
22803
22804 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
22805
22806 PR tree-optimization/48290
22807 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
22808 vectorization, check that relevant phis in the basic block after
22809 the inner loop are really inner loop's exit phis.
22810
22811 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
22812
22813 PR debug/48190
22814 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
22815 (cached_dw_loc_list_def): New structure.
22816 (cached_dw_loc_list): New typedef.
22817 (cached_dw_loc_list_table): New variable.
22818 (cached_dw_loc_list_table_hash): New function.
22819 (cached_dw_loc_list_table_eq): Likewise.
22820 (add_location_or_const_value_attribute): Take a bool cache_p.
22821 Cache the list when the parameter is true.
22822 (gen_formal_parameter_die): Update caller.
22823 (gen_variable_die): Likewise.
22824 (dwarf2out_finish): Likewise.
22825 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
22826 while generating debug info for the decl.
22827 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
22828 (dwarf2out_init): Initialize cached_dw_loc_list_table.
22829 (resolve_addr): Cache the result of resolving a chain of
22830 location lists.
22831
22832 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
22833
22834 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
22835 conflict object hard regset nodes have intersecting hard reg sets.
22836
22837 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
22838 after regstat_init_n_sets_and_refs.
22839
22840 * ira.c: Add more comments at the top.
22841 (setup_stack_reg_pressure_class, setup_pressure_classes):
22842 Add comments how we compute the register pressure classes.
22843 (setup_allocno_and_important_classes): Add more comments.
22844 (setup_class_translate_array, reorder_important_classes)
22845 (setup_reg_class_relations): Add comments.
22846
22847 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
22848 start of the file.
22849
22850 * ira-color.c: Add 2011 to the Copyright line.
22851 (assign_hard_reg): Add more comments.
22852 (improve_allocation): Ditto.
22853
22854 * ira-costs.c: Add 2011 to the Copyright line.
22855 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
22856 comments.
22857 (setup_regno_cost_classes_by_mode): Ditto.
22858
22859 Initial patches from ira-improv branch:
22860
22861 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
22862
22863 * ira-build.c (ira_create_object): Remove initialization of
22864 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
22865 (ira_create_allocno): Remove initialization of
22866 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
22867 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
22868 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
22869 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
22870 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
22871 Initialize ALLOCNO_ADD_DATA.
22872 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
22873 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
22874 ALLOCNO_REG.
22875 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
22876 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
22877
22878 * ira.c (ira_reallocate): Remove.
22879 (setup_pressure_classes): Call
22880 ira_init_register_move_cost_if_necessary. Use
22881 ira_register_move_cost instead of ira_get_register_move_cost.
22882 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
22883 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
22884
22885 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
22886 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
22887 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
22888 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
22889 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
22890 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
22891 Fix formatting.
22892 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
22893 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
22894 (struct allocno_color_data): New.
22895 (allocno_color_data_t): New typedef.
22896 (allocno_color_data): New definition.
22897 (ALLOCNO_COLOR_DATA): New macro.
22898 (struct object_color_data): New.
22899 (object_color_data_t): New typedef.
22900 (object_color_data): New definition.
22901 (OBJECT_COLOR_DATA): New macro.
22902 (update_copy_costs, calculate_allocno_spill_cost): Call
22903 ira_init_register_move_cost_if_necessary. Use
22904 ira_register_move_cost instead of ira_get_register_move_cost.
22905 (move_spill_restore, update_curr_costs): Ditto.
22906 (allocno_spill_priority): Make it inline.
22907 (color_pass): Allocate and free allocno_color_dat and object_color_data.
22908 (struct coalesce_data, coalesce_data_t): New.
22909 (allocno_coalesce_data): New definition.
22910 (ALLOCNO_COALESCE_DATA): New macro.
22911 (merge_allocnos, coalesced_allocno_conflict_p): Use
22912 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
22913 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
22914 (coalesce_allocnos): Ditto.
22915 (setup_coalesced_allocno_costs_and_nums): Ditto.
22916 (collect_spilled_coalesced_allocnos): Ditto.
22917 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
22918 (setup_slot_coalesced_allocno_live_ranges): Ditto.
22919 (coalesce_spill_slots): Ditto.
22920 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
22921 free allocno_coalesce_data.
22922
22923 * ira-conflicts.c: Fix formatting.
22924 (process_regs_for_copy): Call
22925 ira_init_register_move_cost_if_necessary. Use
22926 ira_register_move_cost instead of ira_get_register_move_cost.
22927 (build_object_conflicts): Optimize.
22928
22929 * ira-costs.c (record_reg_classes): Optimize. Call
22930 ira_init_register_move_cost_if_necessary. Use
22931 ira_register_move_cost, ira_may_move_in_cost, and
22932 ira_may_move_out_cost instead of ira_get_register_move_cost and
22933 ira_get_may_move_cost.
22934 (record_address_regs): Ditto.
22935 (scan_one_insn): Optimize.
22936 (find_costs_and_classes): Optimize.
22937 (process_bb_node_for_hard_reg_moves): Call
22938 ira_init_register_move_cost_if_necessary. Use
22939 ira_register_move_cost instead of ira_get_register_move_cost.
22940
22941 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
22942 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
22943 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
22944 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
22945 definitions.
22946 (ira_initiate_emit_data, ira_finish_emit_data)
22947 (create_new_allocno): New functions.
22948 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
22949 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
22950 Use ira_register_move_cost instead of ira_get_register_move_cost.
22951
22952 * ira-int.h: Fix some comments.
22953 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
22954 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
22955 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
22956 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
22957 add_data.
22958 (struct ira_allocno): Make mode and aclass a bitfield. Move other
22959 bitfield after mode. Make hard_regno a short int. Make
22960 hard_regno short. Remove first_coalesced_allocno and
22961 next_coalesced_allocno. Move mem_optimized_dest_p,
22962 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
22963 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
22964 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
22965 temp, colorable_p. Add new member add_data.
22966 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
22967 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
22968 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
22969 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
22970 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
22971 (ALLOCNO_ADD_DATA): New macro.
22972 (ira_emit_data_t): New typedef.
22973 (struct ira_emit_data): New. Move mem_optimized_dest_p,
22974 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
22975 from struct ira_allocno.
22976 (ALLOCNO_EMIT_DATA): New macro.
22977 (ira_allocno_emit_data, allocno_emit_reg): New.
22978 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
22979 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
22980 (OBJECT_ADD_DATA): New macro.
22981 (ira_reallocate): Remove.
22982 (ira_initiate_emit_data, ira_finish_emit_data): New.
22983 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
22984 (ira_init_register_move_cost_if_necessary): New.
22985 (ira_object_conflict_iter_next): Merge into
22986 ira_object_conflict_iter_cond.
22987 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
22988
22989 * ira-live.c (process_single_reg_class_operands): Call
22990 ira_init_register_move_cost_if_necessary. Use
22991 ira_register_move_cost instead of ira_get_register_move_cost.
22992
22993 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
22994
22995 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
22996
22997 * ira-costs.c: Fix formatting.
22998 (cost_classes, cost_classes_num): Remove.
22999 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
23000 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
23001 (cost_classes_del, cost_classes_htab): New.
23002 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
23003 (initiate_regno_cost_classes, setup_cost_classes): New.
23004 (setup_regno_cost_classes_by_aclass): New.
23005 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
23006 (record_reg_classes): Use regno_cost_classes instead of
23007 cost_classes. Move checking opposite operand up.
23008 (record_address_regs): Use regno_cost_classes
23009 instead of cost_classes.
23010 (scan_one_insn): Ditto. Use always general register.
23011 (print_allocno_costs): Use regno_cost_classes instead of
23012 cost_classes.
23013 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
23014 (find_costs_and_classes): Set up cost classes for each registers.
23015 Use also their mode for this. Use regno_cost_classes instead of
23016 cost_classes.
23017 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
23018 cost_classes.
23019 (free_ira_costs, ira_init_costs): Don't use cost_classes.
23020 (ira_costs, ira_set_pseudo_classes): Call
23021 initiate_regno_cost_classes and finish_regno_cost_classes.
23022
23023 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
23024
23025 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
23026
23027 * target.def (ira_cover_classes): Remove.
23028
23029 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
23030
23031 * doc/tm.texi.in: Ditto.
23032
23033 * ira-conflicts.c: Remove mentioning cover classes from the file.
23034 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
23035 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
23036
23037 * targhooks.c (default_ira_cover_classes): Remove.
23038
23039 * targhooks.h (default_ira_cover_classes): Ditto.
23040
23041 * haifa-sched.c: Remove mentioning cover classes from the file.
23042 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
23043 ira_pressure_classes and ira_pressure_classes_num instead of
23044 ira_reg_class_cover_size and ira_reg_class_cover. Use
23045 sched_regno_pressure_class instead of sched_regno_cover_class.
23046 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
23047 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
23048
23049 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
23050 classes from the file.
23051 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
23052 (struct object_hard_regs, struct object_hard_regs_node): New.
23053 (struct ira_object): New members profitable_hard_regs,
23054 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
23055 (struct ira_allocno): Rename cover_class to aclass. Rename
23056 cover_class_cost and updated_cover_class_cost to class_cost and
23057 updated_class_cost. Remove splay_removed_p and
23058 left_conflict_size. Add new members colorable_p.
23059 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
23060 (ALLOCNO_COLORABLE_P): New macro.
23061 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
23062 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
23063 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
23064 (OBJECT_...): Rename parameter C to O.
23065 (OBJECT_PROFITABLE_HARD_REGS): New macro.
23066 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
23067 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
23068 (struct target_ira_int): New members x_ira_max_memory_move_cost,
23069 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
23070 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
23071 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
23072 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
23073 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
23074 x_ira_reg_class_subunion.
23075 (ira_max_memory_move_cost, ira_max_register_move_cost)
23076 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
23077 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
23078 (ira_important_class_nums, ira_reg_class_superunion): New macros.
23079 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
23080 (ira_reg_class_union): Rename to ira_reg_class_subunion.
23081 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
23082 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
23083 (ira_tune_allocno_costs_and_cover_classes): Rename to
23084 ira_tune_allocno_costs.
23085 (ira_debug_hard_regs_forest): New.
23086 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
23087 (ira_object_conflict_iter_next): Fix comments.
23088 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
23089 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
23090 cover_class to aclass.
23091 (ira_allocate_and_accumulate_costs): Ditto.
23092 (ira_allocate_and_set_or_copy_costs): Ditto.
23093
23094 * opts.c (decode_options): Remove ira_cover_class check.
23095
23096 * ira-color.c: Remove mentioning cover classes from the file. Use
23097 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
23098 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
23099 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
23100 (splay-tree.h): Remove include.
23101 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
23102 before copy_freq_compare_func.
23103 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
23104 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
23105 New definitions.
23106 (hard_regs_roots, hard_regs_node_vec): Ditto.
23107 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
23108 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
23109 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
23110 (create_new_object_hard_regs_node): Ditto.
23111 (add_new_object_hard_regs_node_to_forest): Ditto.
23112 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
23113 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
23114 Ditto.
23115 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
23116 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
23117 (remove_unused_object_hard_regs_nodes): Ditto.
23118 (enumerate_object_hard_regs_nodes): Ditto.
23119 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
23120 (object_hard_regs_subnode_t): Ditto.
23121 (struct object_hard_regs_subnode): Ditto.
23122 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
23123 (setup_object_hard_regs_subnode_index): Ditto.
23124 (get_object_hard_regs_subnodes_num): Ditto.
23125 (form_object_hard_regs_nodes_forest): Ditto.
23126 (finish_object_hard_regs_nodes_tree): Ditto.
23127 (finish_object_hard_regs_nodes_forest): Ditto.
23128 (allocnos_have_intersected_live_ranges_p): Rename to
23129 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
23130 (pseudos_have_intersected_live_ranges_p): Rename to
23131 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
23132 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
23133 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
23134 (update_copy_costs): Remove assert. Skip cost update if the hard
23135 reg does not belong the class.
23136 (assign_hard_reg): Process only profitable hard regs.
23137 (uncolorable_allocnos_num): Make it scalar.
23138 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
23139 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
23140 and ira_reg_class_max_nregs.
23141 (bucket_allocno_compare_func): Check frequency first.
23142 (sort_bucket): Add compare function as a parameter.
23143 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
23144 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
23145 (push_allocno_to_stack): Rewrite for checking new allocno
23146 colorability.
23147 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
23148 (push_only_colorable): Pass new parameter to sort_bucket.
23149 (push_allocno_to_spill): Remove.
23150 (allocno_spill_priority_compare): Make it inline and rewrite.
23151 (splay_tree_allocate, splay_tree_free): Remove.
23152 (allocno_spill_sort_compare): New function.
23153 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
23154 build and use splay tree. Choose first allocno in uncolorable
23155 allocno bucket to spill. Remove setting spill cost.
23156 (all_conflicting_hard_regs): Remove.
23157 (setup_allocno_available_regs_num): Check only profitable hard
23158 regs. Print info about hard regs nodes.
23159 (setup_allocno_left_conflicts_size): Remove.
23160 (put_allocno_into_bucket): Don't call
23161 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
23162 (improve_allocation): New.
23163 (color_allocnos): Call setup_profitable_hard_regs,
23164 form_object_hard_regs_nodes_forest, improve_allocation,
23165 finish_object_hard_regs_nodes_forest. Setup spill cost.
23166 (print_loop_title): Use pressure classes.
23167 (color_allocnso): Ditto.
23168 (do_coloring): Remove allocation and freeing splay_tree_node_pool
23169 and allocnos_for_spilling.
23170 (ira_sort_regnos_for_alter_reg): Don't setup members
23171 {first,next}_coalesced_allocno.
23172 (color): Remove allocating and freeing removed_splay_allocno_vec.
23173 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
23174 prohibited_class_mode_regs.
23175
23176 * ira-lives.c: Remove mentioning cover classes from the file. Fix
23177 formatting.
23178 (update_allocno_pressure_excess_length): Use pressure classes.
23179 (inc_register_pressure, dec_register_pressure): Check for pressure
23180 class.
23181 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
23182 pressure class. Use ira_reg_class_nregs instead of
23183 ira_reg_class_max_nregs.
23184 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
23185 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
23186 (single_reg_class): Use ira_reg_class_nregs instead of
23187 ira_reg_class_max_nregs.
23188 (process_bb_node_lives): Use pressure classes.
23189
23190 * ira-emit.c: Remove mentioning cover classes from the file. Use
23191 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
23192 (change_loop): Use pressure classes.
23193 (modify_move_list): Call ira_set_allocno_class instead of
23194 ira_set_allocno_cover_class.
23195
23196 * ira-build.c: Remove mentioning cover classes from the file. Use
23197 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
23198 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
23199 ALLOCNO_UPDATED_CLASS_COST instead of
23200 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
23201 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
23202 (ira_create_allocno): Remove initialization of
23203 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
23204 ALLOCNO_COLORABLE_P.
23205 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
23206 Update conflict regs for the objects.
23207 (create_cap_allocno): Remove assert. Don't propagate
23208 ALLOCNO_AVAILABLE_REGS_NUM.
23209 (ira_free_allocno_costs): New function.
23210 (finish_allocno): Change a part of code into call of
23211 ira_free_allocno_costs.
23212 (low_pressure_loop_node_p): Use pressure classes.
23213 (object_range_compare_func): Don't compare classes.
23214 (setup_min_max_conflict_allocno_ids): Ditto.
23215
23216 * loop-invariant.c: Remove mentioning cover classes from the file.
23217 Use ira_pressure_classes and ira_pressure_classes_num instead of
23218 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
23219 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
23220 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
23221 Use reg_allocno_class instead of reg_cover_class.
23222 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
23223 STACK_REG_COVER_CLASS.
23224 (get_regno_cover_class): Rename to get_regno_pressure_class.
23225 (move_loop_invariants): Initialize and finalize regstat.
23226
23227 * ira.c: Remove mentioning cover classes from the file. Add
23228 comments about coloring without cover classes. Use ALLOCNO_CLASS
23229 instead of ALLOCNO_COVER_CLASS. Fix formatting.
23230 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
23231 setup_class_subset_and_memory_move_costs.
23232 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
23233 (setup_cover_and_important_classes): Rename to
23234 setup_allocno_and_important_classes.
23235 (setup_class_translate_array): New.
23236 (setup_class_translate): Call it for allocno and pressure classes.
23237 (cover_class_order): Rename to allocno_class_order.
23238 (comp_reg_classes_func): Use ira_allocno_class_translate instead
23239 of ira_class_translate.
23240 (reorder_important_classes): Set up ira_important_class_nums.
23241 (setup_reg_class_relations): Set up ira_reg_class_superunion.
23242 (print_class_cover): Rename to print_classes. Add parameter.
23243 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
23244 Print pressure classes too.
23245 (find_reg_class_closure): Rename to find_reg_classes. Don't call
23246 setup_reg_subclasses.
23247 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
23248 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
23249 (setup_prohibited_class_mode_regs): Use
23250 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
23251 (clarify_prohibited_class_mode_regs): New function.
23252 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
23253 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
23254 (ira_init_once): Initialize them.
23255 (free_register_move_costs): Process them.
23256 (ira_init): Move calls of find_reg_classes and
23257 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
23258 Call clarify_prohibited_class_mode_regs.
23259 (ira_no_alloc_reg): Remove.
23260 (too_high_register_pressure_p): Use pressure classes.
23261
23262 * sched-deps.c: Remove mentioning cover classes from the file.
23263 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
23264 ira_pressure_classes and ira_pressure_classes_num instead of
23265 ira_reg_class_cover_size and ira_reg_class_cover.
23266 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
23267 sched_regno_pressure_class instead of sched_regno_cover_class.
23268 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
23269 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
23270
23271 * ira.h: Add 2010 to Copyright.
23272 (ira_no_alloc_reg): Remove external.
23273 (struct target_ira): Rename x_ira_hard_regno_cover_class,
23274 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
23275 x_ira_class_translate to x_ira_hard_regno_allocno_class,
23276 x_ira_allocno_classes_num, x_ira_allocno_classes, and
23277 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
23278 x_ira_pressure_classes, x_ira_pressure_class_translate, and
23279 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
23280 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
23281 x_ira_no_alloc_regs.
23282 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
23283 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
23284 ira_allocno_classes_num and ira_allocno_classes.
23285 (ira_class_translate): Rename to ira_allocno_class_translate.
23286 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
23287 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
23288 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
23289 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
23290 (ira_no_alloc_regs): New.
23291
23292 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
23293 classes from the file. Use ALLOCNO_CLASS instead of
23294 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
23295 ALLOCNO_COVER_CLASS_COST.
23296 (regno_cover_class): Rename to regno_aclass.
23297 (record_reg_classes): Use ira_reg_class_subunion instead of
23298 ira_reg_class_union.
23299 (record_address_regs): Check overflow.
23300 (scan_one_insn): Ditto.
23301 (print_allocno_costs): Print total mem cost fore regional allocation.
23302 (print_pseudo_costs): Use REG_N_REFS.
23303 (find_costs_and_classes): Use classes intersected with them on the
23304 1st pass. Check overflow. Use ira_reg_class_subunion instead of
23305 ira_reg_class_union. Use ira_allocno_class_translate and
23306 regno_aclass instead of ira_class_translate and regno_cover_class.
23307 Modify code for finding regno_aclass. Setup preferred classes for
23308 the next pass.
23309 (setup_allocno_cover_class_and_costs): Rename to
23310 setup_allocno_class_and_costs. Use regno_aclass instead of
23311 regno_cover_class. Use ira_set_allocno_class instead of
23312 ira_set_allocno_cover_class.
23313 (init_costs, finish_costs): Use regno_aclass instead of
23314 regno_cover_class.
23315 (ira_costs): Use setup_allocno_class_and_costs instead of
23316 setup_allocno_cover_class_and_costs.
23317 (ira_tune_allocno_costs_and_cover_classes): Rename to
23318 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
23319 by processing objects. Use ira_reg_class_max_nregs instead of
23320 ira_reg_class_nregs.
23321
23322 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
23323
23324 * sched-int.h: Remove mentioning cover classes from the file.
23325 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
23326
23327 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
23328 classes from the file.
23329 (struct reg_pref): Rename coverclass into allocnoclass.
23330 (reg_cover_class): Rename to reg_allocno_class.
23331
23332 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
23333
23334 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
23335
23336 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
23337
23338 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
23339
23340 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
23341
23342 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
23343
23344 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
23345
23346 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
23347
23348 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
23349
23350 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
23351
23352 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
23353 (i386_ira_cover_classes): Ditto.
23354
23355 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
23356
23357 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
23358
23359 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
23360
23361 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
23362
23363 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
23364
23365 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
23366
23367 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
23368 (mips_ira_cover_classes): Ditto.
23369
23370 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
23371
23372 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
23373
23374 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
23375
23376 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
23377
23378 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
23379
23380 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
23381 (IRA_COVER_CLASSES_VSX): Ditto.
23382
23383 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
23384 (rs6000_ira_cover_classes): Ditto.
23385
23386 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
23387
23388 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
23389
23390 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
23391
23392 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
23393
23394 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
23395
23396 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
23397
23398 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
23399
23400 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
23401
23402 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
23403
23404 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
23405
23406 2011-03-29 Jakub Jelinek <jakub@redhat.com>
23407
23408 PR debug/48253
23409 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
23410 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
23411 dw_fde_unlikely_section_end_label, cold_in_std_section,
23412 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
23413 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
23414 fields.
23415 (output_fde): Use dw_fde_second_{begin,end} if second is
23416 true, otherwise dw_fde_{begin,end}.
23417 (output_call_frame_info): Test dw_fde_second_begin != NULL
23418 instead of dw_fde_switched_sections.
23419 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
23420 fields, initialize new fields. Initialize in_std_section
23421 unconditionally from the first partition.
23422 (dwarf2out_end_epilogue): Don't override dw_fde_end when
23423 dw_fde_second_begin is non-NULL.
23424 (dwarf2out_switch_text_section): Stop initializing removed
23425 dw_fde_struct fields, initialize new fields, initialize
23426 also dw_fde_end here. Set dw_fde_switch_cfi even when
23427 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
23428 (struct var_loc_list_def): Add last_before_switch field.
23429 (arange_table, arange_table_allocated, arange_table_in_use,
23430 ARANGE_TABLE_INCREMENT, add_arange): Removed.
23431 (size_of_aranges): Count !in_std_section and !second_in_std_section
23432 hunks in fdes, instead of looking at arange_table_in_use.
23433 (output_aranges): Add aranges_length argument, don't call
23434 size_of_aranges here. Instead of using aranges_table*
23435 emit ranges for fdes when !in_std_section resp.
23436 !second_in_std_section.
23437 (dw_loc_list): Break ranges crossing section switch.
23438 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
23439 use dw_fde_second_end instead of dw_fde_end as end of last range.
23440 (gen_subprogram_die): Don't call add_arange. Use
23441 dw_fde_{begin,end} for first partition and if switched
23442 section dw_fde_second_{begin,end} for the second.
23443 (var_location_switch_text_section_1,
23444 var_location_switch_text_section): New functions.
23445 (dwarf2out_begin_function): Initialize cold_text_section even
23446 when function_section () isn't text_section.
23447 (prune_unused_types): Don't walk arange_table.
23448 (dwarf2out_finish): Don't needlessly test
23449 flag_reorder_blocks_and_partition when testing cold_text_section_used.
23450 If info_section_emitted, call size_of_aranges and if it indicates
23451 non-empty .debug_aranges, call output_aranges with the computed
23452 size. Stop using removed dw_fde_struct fields, use
23453 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
23454 for second.
23455
23456 PR debug/48203
23457 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
23458 create ENTRY_VALUE if incoming or address of incoming's MEM
23459 is a hard REG.
23460 * dwarf2out.c (mem_loc_descriptor): Don't emit
23461 DW_OP_GNU_entry_value of DW_OP_fbreg.
23462 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
23463 on ENTRY_VALUE is able to find the canonical parameter VALUE.
23464 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
23465 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
23466 ENTRY_VALUE_EXPs.
23467 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
23468 is a REG_P or MEM_P with REG_P address, compute hash directly
23469 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
23470 (preserve_only_constants): Don't clear VALUES forwaring
23471 ENTRY_VALUE to some other VALUE.
23472
23473 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
23474
23475 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
23476 instead of GEN_INT.
23477
23478 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
23479
23480 * cfgexpand.c (expand_gimple_cond): Always set the source location and
23481 block before expanding the statement.
23482 (expand_gimple_stmt_1): Likewise. Set them here...
23483 (expand_gimple_stmt): ...and not here. Tidy.
23484 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
23485 unknown.
23486
23487 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
23488
23489 * Makefile.in: New rule for cprop.o.
23490 * gcse.c: Move constant/copy propagation to cprop.c.
23491 (compute_local_properties): Only handle expression tables.
23492 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
23493 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
23494 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
23495 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
23496 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
23497 compute_cprop_data, find_used_regs, try_replace_reg,
23498 find_avail_set, cprop_jump, constprop_register, cprop_insn,
23499 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
23500 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
23501 find_bypass_set, reg_killed_on_edge, bypass_block,
23502 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
23503 execute_rtl_cprop, pass_rtl_cprop): Move to...
23504 * cprop.c: ...here. New file, constant/copy propagation for RTL
23505 moved from gcse.c to here with minor cleanups in duplicated code.
23506
23507 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
23508
23509 * config/i386/i386.c (flag_opts): Fix a typo in
23510 -mavx256-split-unaligned-store.
23511
23512 2011-03-28 Anatoly Sokolov <aesok@post.ru>
23513
23514 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
23515 LIBCALL_VALUE): Remove macros.
23516 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23517 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23518 (h8300_function_value, h8300_libcall_value,
23519 h8300_function_value_regno_p): New functions.
23520
23521 2011-03-28 Anatoly Sokolov <aesok@post.ru>
23522
23523 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
23524
23525 2011-03-28 Jeff Law <law@redhat.com>
23526
23527 * tree-ssa-threadupdate.c (redirect_edges): Call
23528 create_edge_and_update_destination_phis as needed.
23529 (create_edge_and_update_destination_phis): Accept new BB argument.
23530 All callers updated.
23531 (thread_block): Do not update the profile when threading around
23532 intermediate blocks.
23533 (thread_single_edge): Likewise.
23534 (determine_bb_domination_status): If BB is not a successor of the
23535 loop header, return NONDOMINATING.
23536 (register_jump_thread): Note when we register a jump thread around
23537 an intermediate block.
23538 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
23539 (thread_across_edge): Use it.
23540
23541 2011-03-28 Tristan Gingold <gingold@adacore.com>
23542
23543 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
23544 when for_return is 2.
23545
23546 2011-03-28 Jeff Law <law@redhat.com>
23547
23548 * var-tracking.c (canonicalize_values_mark): Delete unused
23549 lhs assignment.
23550 (canonicalize_values_star, set_variable_part): Likewise.
23551 (clobber_variable_part, delete_variable_part): Likewise.
23552
23553 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
23554
23555 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
23556
23557 2011-03-28 Martin Jambor <mjambor@suse.cz>
23558
23559 * tree-inline.c (expand_call_inline): Do not check that destination
23560 node is analyzed.
23561 (optimize_inline_calls): Assert that destination node is analyzed.
23562 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
23563 not call tree_lowering_passes.
23564 * cgraph.h (cgraph_analyze_function): Declare.
23565 * cgraphunit.c (cgraph_analyze_function): Make public.
23566
23567 2011-03-28 Joseph Myers <joseph@codesourcery.com>
23568
23569 * config/sparc/sparc-opts.h: New.
23570 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
23571 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
23572 (sparc_option_override): Store processor_type enumeration rather
23573 than string in cpu_default. Remove name and enumeration from
23574 cpu_table. Directly default -mcpu then default -mtune from -mcpu
23575 without using sparc_select. Use target_flags_explicit instead of
23576 fpu_option_set.
23577 * config/sparc/sparc.h (enum processor_type): Move to
23578 sparc-opts.h.
23579 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
23580 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
23581 HeaderInclude entry.
23582 (mcpu=, mtune=): Use Var and Enum.
23583 (sparc_processor_type): New Enum and EnumValue entries.
23584
23585 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23586 Iain Sandoe <iains@gcc.gnu.org>
23587
23588 PR target/48245
23589 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
23590
23591 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
23592
23593 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
23594 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
23595 Insert new statements at it in lieu of STMT.
23596 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
23597 * tree-vect-stmts.c (vectorizable_store): Likewise.
23598 (vectorizable_load): Likewise.
23599
23600 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
23601
23602 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
23603 (divtf3): Ditto.
23604 (multf3): Ditto.
23605 (subtf3): Ditto.
23606
23607 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
23608
23609 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
23610 unaligned 256bit load/store.
23611 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
23612 (*avx_movdqu<avxmodesuffix>): Likewise.
23613
23614 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23615
23616 PR target/48288
23617 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
23618 * config/pa/pa.md (iordi3): Use new predicate in expander.
23619 (iorsi3): Likewise.
23620
23621 2011-03-27 Anatoly Sokolov <aesok@post.ru>
23622
23623 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
23624 FUNCTION_VALUE_REGNO_P): Remove macros.
23625 * config/mips/mips-protos.h (mips_function_value): Remove.
23626 * config/mips/mips.c (mips_function_value): Rename to...
23627 (mips_function_value_1): ... this. Make static. Handle receiving
23628 the function type in 'fn_decl_or_type' argument.
23629 (mips_function_value, mips_libcall_value,
23630 mips_function_value_regno_p): New function.
23631 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23632 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23633
23634 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
23635
23636 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
23637 and -mavx256-split-unaligned-store.
23638 (ix86_option_override_internal): Split 32-byte AVX unaligned
23639 load/store by default.
23640 (ix86_avx256_split_vector_move_misalign): New.
23641 (ix86_expand_vector_move_misalign): Use it.
23642
23643 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
23644 -mavx256-split-unaligned-store.
23645
23646 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
23647 256bit load/store. Generate unaligned store on misaligned memory
23648 operand.
23649 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
23650 256bit load/store.
23651 (*avx_movdqu<avxmodesuffix>): Likewise.
23652
23653 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
23654 -mavx256-split-unaligned-store.
23655
23656 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
23657
23658 PR target/38598
23659 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
23660 Update commentary.
23661
23662 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
23663
23664 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
23665 opno arguments with an expand_operand. Use create_input_operand.
23666 (mips_prepare_builtin_target): Delete.
23667 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
23668 functions.
23669 (mips_expand_builtin_direct): Use create_output_operand and
23670 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
23671 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
23672 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
23673
23674 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
23675
23676 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
23677 function.
23678 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
23679
23680 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
23681
23682 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
23683 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
23684 basic blocks and call commit_edge_insertions directly.
23685 (fixup_abnormal_edges): Move from here to...
23686 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
23687 on the edges and return whether some have actually been inserted.
23688 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
23689 compensation code.
23690
23691 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
23692
23693 PR rtl-optimization/48144
23694 * sel-sched-ir.c (merge_history_vect): Factor out from ...
23695 (merge_expr_data): ... here.
23696 (av_set_intersect): Rename to av_set_code_motion_filter.
23697 Update all callers. Call merge_history_vect when an expression
23698 is found in both sets.
23699 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
23700
23701 2011-03-26 Alan Modra <amodra@gmail.com>
23702
23703 * config/rs6000/predicates.md (word_offset_memref_op): Handle
23704 cmodel medium addresses.
23705 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
23706 64-bit gpr loads and stores.
23707 (rs6000_secondary_reload_ppc64): New function.
23708 * config/rs6000/rs6000-protos.h: Declare it.
23709 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
23710
23711 2011-03-26 Alan Modra <amodra@gmail.com>
23712
23713 PR target/47487
23714 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
23715 GNU Go in traceback table.
23716
23717 2011-03-25 Richard Henderson <rth@redhat.com>
23718
23719 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
23720 if there are exactly 6 operands.
23721 (set_storage_via_setmem): Similarly.
23722
23723 2011-03-25 Kai Tietz <ktietz@redhat.com>
23724
23725 * collect2.c (write_c_file_stat): Handle backslash
23726 as right-hand directory separator.
23727 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
23728 checking just for slash.
23729 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
23730 instead of checking for trailing slash.
23731 * gcc.c (record_temp_file): Use filename_cmp instead
23732 of strcmp.
23733 (do_spec_1): Likewise.
23734 (replace_outfile_spec_function): Likewise.
23735 (is_directory): Use filename_ncmp instead of strncmp.
23736 (print_multilib_info): Likewise.
23737 * gcov.c (find_source): Use filename_cmp instead
23738 instead of strcmp.
23739 (make_gcov_file_name): Fix order of slash/backslash
23740 checks.
23741 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
23742 (add_standard_paths): Likewise.
23743 * mips-tfile.c (saber_stop): Handle backslash.
23744 * prefix.c (update_path): Use filename_ncmp instead of
23745 strncmp.
23746 * profile.c (output_location): Use filename_cmp instead
23747 of strcmp.
23748 * read-md.c (handle_toplevel_file): Handle backslash.
23749 * tlink.c (frob_extension): Likewise.
23750 * tree-cfg.c (same_line_p): Use filename_cmp instead of
23751 strcmp.
23752 * tree-dump.c (dequeue_and_dump): Handle backslash.
23753 * tree.c (get_file_function_name): Likewise.
23754 * gengtype.c (read_input_list): Likewise.
23755 (get_file_realbasename): Likewise.
23756 (get_output_file_with_visibility): Use filename_cmp
23757 instead of strcmp.
23758
23759 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
23760
23761 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
23762 case to VFPv1.
23763
23764 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
23765
23766 * fold-const.c (expr_location_or): New function.
23767 (fold_truth_not_expr): Call it.
23768
23769 2011-03-25 Jeff Law <law@redhat.com>
23770
23771 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
23772 va_end.
23773 * c-family/c-common.c (def_fn_type): Likewise.
23774 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
23775 * emit-rtl.c (gen_rtvec): Likewise.
23776 * lto/lto-lang.c (def_fn_type): Likewise.
23777
23778 2011-03-25 Richard Guenther <rguenther@suse.de>
23779
23780 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
23781 also generate copies.
23782 (fini_copy_prop): Handle constant values properly.
23783
23784 2011-03-25 Jakub Jelinek <jakub@redhat.com>
23785
23786 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
23787 mode size instead of bitsize with DWARF2_ADDR_SIZE.
23788 (hash_loc_operands, compare_loc_operands): Handle
23789 DW_OP_GNU_entry_value.
23790
23791 2011-03-25 Kai Tietz <ktietz@redhat.com>
23792
23793 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
23794 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
23795 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
23796 comment and use macro TARGET_64BIT_MS_ABI instead.
23797 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
23798 and change default behavior for 32-bit MS_ABI.
23799 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
23800 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
23801 32-bit, too.
23802 (ix86_cfun_abi): Likewise.
23803 (ix86_maybe_switch_abi): Adjust comment.
23804 (init_cumulative_args): Check for bit-ness in MS_ABI case.
23805 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
23806 instead of checking for SYSV_ABI.
23807 (ix86_nsaved_sseregs): Likewise.
23808 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
23809 to 16 bytes.
23810 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
23811 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
23812 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
23813 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
23814 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
23815
23816 2011-03-25 Richard Guenther <rguenther@suse.de>
23817
23818 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
23819 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
23820 (verify_gimple): Remove.
23821 * tree-cfg.c (verify_gimple_call): Merge verification
23822 from verify_stmts.
23823 (verify_gimple_phi): Merge verification from verify_stmts.
23824 (verify_gimple_label): New function.
23825 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
23826 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
23827 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
23828 (verify_stmts): Rename to verify_gimple_in_cfg.
23829 (verify_gimple_in_cfg): New function.
23830 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
23831 * tree-ssa.c (verify_ssa): Likewise.
23832 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
23833
23834 2011-03-25 Richard Guenther <rguenther@suse.de>
23835
23836 * passes.c (init_optimization_passes): Add FRE pass after
23837 early SRA.
23838
23839 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
23840 Andrew Stubbs <ams@codesourcery.com>
23841
23842 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
23843 for Cortex-A8.
23844 (arm_movdi_vfp_cortexa8): New pattern.
23845 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
23846 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
23847 instructions when tuning for Cortex-A8. Set attribute "arch".
23848 * config/arm/arm.md: Move include arm-tune.md up a bit.
23849 (define_attr "arch"): Add "onlya8" and "nota8" values.
23850 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
23851
23852 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
23853
23854 PR bootstrap/48282
23855 Revert:
23856 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
23857
23858 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
23859 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
23860 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
23861 * passes.c (init_optimization_passes): Move
23862 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
23863
23864 2011-03-25 Kai Tietz <ktietz@redhat.com>
23865
23866 * c-typeck.c (comptypes_internal): Replace target
23867 hook call of comp_type_attributes by version in tree.c file.
23868 * gimple.c (gimple_types_compatible_p_1): Likewise.
23869 * tree-ssa.c (useless_type_conversion_p): Likewise.
23870 * tree.c (build_type_attribute_qual_variant): Likewise.
23871 (attribute_value_equal): New static helper function.
23872 (comp_type_attributes): New function.
23873 (merge_attributes): Use attribute_value_equal for comparison.
23874 (attribute_list_contained): Likewise.
23875 * tree.h (comp_type_attributes): New prototype.
23876
23877 2011-03-25 Richard Guenther <rguenther@suse.de>
23878
23879 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
23880 of complex types at -O0.
23881 (verify_gimple_assign_binary): Likewise.
23882 (verify_gimple_assign_ternary): Likewise.
23883
23884 2011-03-24 Mark Wielaard <mjw@redhat.com>
23885
23886 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
23887 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
23888
23889 2011-03-24 Mark Wielaard <mjw@redhat.com>
23890
23891 PR debug/48041
23892 * dwarf2out.c (output_abbrev_section): Only write table when
23893 abbrev_die_table_in_use > 1.
23894
23895 2011-02-24 Richard Henderson <rth@redhat.com>
23896
23897 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
23898 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
23899 (alpha_expand_unaligned_load_words): Use extql.
23900 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
23901 (emit_insxl): Handle all modes for consistency.
23902
23903 2011-02-24 Richard Henderson <rth@redhat.com>
23904
23905 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
23906 (alpha_expand_unaligned_load): Likewise.
23907 (alpha_expand_unaligned_store): Likewise.
23908 (alpha_expand_unaligned_load_words): Likewise.
23909 (alpha_expand_unaligned_store_words): Likewise.
23910 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
23911 (alpha_split_lock_test_and_set_12): Likewise.
23912 (print_operand, alpha_fold_builtin_extxx): Likewise.
23913 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
23914 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
23915 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
23916 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
23917 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
23918 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
23919 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
23920 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
23921 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
23922 (extwl, extll, extql): Similarly.
23923 (inswh, inslh, insqh): Similarly.
23924 (mskbl, mskwl, mskll, mskql): Similarly.
23925 (mskwh, msklh, mskqh): Similarly.
23926
23927 2011-02-24 Richard Henderson <rth@redhat.com>
23928
23929 * config/alpha/alpha.md (attribute isa): Add er, ner.
23930 (attribute enabled): Handle them.
23931 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
23932
23933 2011-02-24 Richard Henderson <rth@redhat.com>
23934
23935 * config/alpha/alpha.md (attribute isa): Add vms.
23936 (attribute enabled): Handle it.
23937 (*movsf): Merge *movsf_{nofix,fix,nofp}.
23938 (*movdf): Merge *movdf_{nofix,fix,nofp}.
23939 (*movtf): Rename from *movtf_internal for consistency.
23940 (*movsi): Merge with *movsi_nt_vms.
23941 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
23942 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
23943 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
23944 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
23945
23946 2011-02-24 Richard Henderson <rth@redhat.com>
23947
23948 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
23949 (extendqisi2, extendhisi2): Likewise.
23950 (extendqidi2): Simplify BWX/non-BWX expansions.
23951 (extendhidi2): Similarly.
23952
23953 2011-02-24 Richard Henderson <rth@redhat.com>
23954
23955 * config/alpha/alpha.md (attribute isa): New.
23956 (attribute enabled): New.
23957 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
23958 (zero_extendqisi2, zero_extendqidi2): Similarly.
23959 (zero_extendhisi2, zero_extendhidi2): Similarly.
23960 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
23961
23962 2011-02-24 Richard Henderson <rth@redhat.com>
23963
23964 * config/alpha/predicates.md (input_operand): Revert last change;
23965 update comment to mention 32-bit VMS rather than Windows.
23966
23967 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
23968
23969 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
23970 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
23971 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
23972 * passes.c (init_optimization_passes): Move
23973 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
23974
23975 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
23976
23977 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
23978
23979 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
23980
23981 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
23982 correctly.
23983
23984 2011-03-24 Jakub Jelinek <jakub@redhat.com>
23985
23986 PR debug/48204
23987 * simplify-rtx.c (simplify_const_unary_operation): Call
23988 real_convert when changing mode class with FLOAT_EXTEND.
23989
23990 2011-03-24 Nick Clifton <nickc@redhat.com>
23991
23992 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
23993 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
23994 * config/rx/rx.c (rx_option_override): Set align_jumps,
23995 align_loops and align_labels if not set by the user.
23996 (rx_align_for_label): New function.
23997 (rx_max_skip_for_label): New function.
23998 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
23999 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
24000 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
24001 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
24002 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
24003
24004 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
24005
24006 PR rtl-optimization/48263
24007 * optabs.c (expand_binop_directly): Reinstate convert_modes code
24008 and original commutative_p handling. Use maybe_gen_insn.
24009
24010 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24011
24012 * reload.c (find_reloads_subreg_address): Add address_reloaded
24013 parameter and return true there if the full address has been
24014 reloaded.
24015 (find_reloads_toplev): Pass address_reloaded flag.
24016 (find_reloads_address_1): Don't use address_reloaded parameter.
24017
24018 2011-03-24 Jeff Law <law@redhat.com>
24019
24020 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
24021 unused variable "ann".
24022 (remove_unused_locals): Likewise.
24023
24024 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
24025 statement.
24026
24027 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
24028 after it is freed.
24029
24030 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24031
24032 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
24033 for invalid symbolic addresses.
24034 (s390_secondary_reload): Don't use s390_check_symref_alignment for
24035 larl operands.
24036
24037 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
24038
24039 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
24040 the argument in calls to fold_truth_not_expr.
24041
24042 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
24043
24044 * tree.c (record_node_allocation_statistics): New function.
24045 (make_node_stat, copy_node_stat, build_string): Call it.
24046 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
24047 (build1_stat, build_omp_clause): Likewise.
24048
24049 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
24050
24051 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
24052 last commit.
24053
24054 2011-03-24 Richard Guenther <rguenther@suse.de>
24055
24056 PR tree-optimization/48271
24057 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
24058 blocks that still exist.
24059
24060 2011-03-24 Richard Guenther <rguenther@suse.de>
24061
24062 PR tree-optimization/48270
24063 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
24064 not free datarefs before ddrs.
24065
24066 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
24067
24068 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
24069 from the address built for a reference with variable offset.
24070
24071 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
24072
24073 PR target/48237
24074 * config/i386/i386.md (*movdf_internal_rex64): Do not split
24075 alternatives that can be handled with movq or movabsq insn.
24076 (*movdf_internal): Disable for !TARGET_64BIT.
24077 (*movdf_internal_nointeger): Ditto.
24078 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
24079
24080 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
24081
24082 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
24083 (FUNCTION_ARG_ADVANCE): Likewise.
24084 * tm.texi.in: Change references to them to hook references.
24085 * tm.texi: Regenerate.
24086 * targhooks.c (default_function_arg): Eliminate check for target macro.
24087 (default_function_incoming_arg): Likewise.
24088 (default_function_arg_advance): Likewise.
24089 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
24090 (function_arg_advance): Likewise.
24091 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
24092
24093 2011-03-24 Richard Guenther <rguenther@suse.de>
24094
24095 PR middle-end/48269
24096 * tree-object-size.c (addr_object_size): Do not double-account
24097 for MEM_REF offsets.
24098
24099 2011-03-24 Diego Novillo <dnovillo@google.com>
24100
24101 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
24102 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
24103 (lto_input_data_block): Move from lto-opts.c. Make extern.
24104 Update all users.
24105 (lto_input_string): Rename from input_string. Make extern.
24106 Update all users.
24107 * lto-streamer-out.c (lto_output_string_with_length): Rename from
24108 output_string_with_length.
24109 Output 0 to indicate a non-NULL string. Update all callers to
24110 not emit 0.
24111 (lto_output_string): Rename from output_string. Make extern.
24112 Update all users.
24113 (lto_output_decl_state_streams): Make extern.
24114 (lto_output_decl_state_refs): Make extern.
24115 * lto-streamer.h (lto_input_string): Declare.
24116 (lto_input_data_block): Declare.
24117 (lto_output_string): Declare.
24118 (lto_output_string_with_length): Declare.
24119 (lto_output_decl_state_streams): Declare.
24120 (lto_output_decl_state_refs): Declare.
24121
24122 2011-03-24 Richard Guenther <rguenther@suse.de>
24123
24124 PR tree-optimization/46562
24125 * tree.c (build_invariant_address): New function.
24126 * tree.h (build_invariant_address): Declare.
24127 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
24128 a renamed function moved ...
24129 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
24130 Take valueization callback parameter.
24131 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
24132 * gimple-fold.h: New file.
24133 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
24134 (ccp_fold, fold_const_aggregate_ref,
24135 fold_ctor_reference, fold_nonarray_ctor_reference,
24136 fold_array_ctor_reference, fold_string_cst_ctor_reference,
24137 get_base_constructor): Move ...
24138 * gimple-fold.c: ... here.
24139 (gimple_fold_stmt_to_constant_1): New function
24140 split out from ccp_fold. Take a valueization callback parameter.
24141 Valueize all operands.
24142 (gimple_fold_stmt_to_constant): New wrapper function.
24143 (fold_const_aggregate_ref_1): New function split out from
24144 fold_const_aggregate_ref. Take a valueization callback parameter.
24145 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
24146 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
24147 invariant POINTER_PLUS_EXPRs to invariant form.
24148 (vn_valueize): New function.
24149 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
24150 * tree-vrp.c (vrp_valueize): New function.
24151 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
24152 to fold statements to constants.
24153 * tree-ssa-pre.c (eliminate): Properly guard propagation of
24154 function declarations.
24155 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
24156 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
24157
24158 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
24159
24160 * config/h8300/predicates.md (jump_address_operand): Fix register
24161 mode check.
24162
24163 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
24164
24165 * doc/invoke.texi (max-stores-to-sink): Document.
24166 * params.h (MAX_STORES_TO_SINK): Define.
24167 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
24168 if either vectorization or if-conversion is disabled.
24169 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
24170 tree-vect-data-refs.c vect_equal_offsets.
24171 (dr_equal_offsets_p): New function.
24172 (find_data_references_in_bb): Remove static.
24173 * tree-data-ref.h (find_data_references_in_bb): Declare.
24174 (dr_equal_offsets_p): Likewise.
24175 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
24176 (vect_drs_dependent_in_basic_block): Update calls to
24177 vect_equal_offsets.
24178 (vect_check_interleaving): Likewise.
24179 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
24180 (cond_if_else_store_replacement): Rename to...
24181 (cond_if_else_store_replacement_1): ... this. Change arguments and
24182 documentation.
24183 (cond_if_else_store_replacement): New function.
24184 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
24185 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
24186
24187 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
24188
24189 PR target/46934
24190 * config/arm/arm.md (casesi): Use the gen_int_mode() function
24191 to subtract lower bound instead of GEN_INT().
24192
24193 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
24194
24195 PR other/48179
24196 PR other/48221
24197 PR other/48234
24198 * doc/extend.texi (Alignment): Move section to match order in TOC.
24199 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
24200 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
24201
24202 2011-03-23 Jeff Law <law@redhat.com>
24203
24204 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
24205 before removing the edge.
24206
24207 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
24208 it may have been freed by redirect_branch_edge or
24209 redirect_edge_succ_nodup.
24210
24211 2011-03-23 Richard Guenther <rguenther@suse.de>
24212
24213 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
24214 (check_va_list_escapes): Likewise.
24215 (check_all_va_list_escapes): Likewise.
24216
24217 2011-03-23 Richard Guenther <rguenther@suse.de>
24218
24219 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
24220 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
24221 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
24222 (alias.o): Likewise.
24223 (ipa-type-escape.o): Remove.
24224 (ipa-struct-reorg.o): Likewise.
24225 (GTFILES): Remove ipa-struct-reorg.c.
24226 * alias.c: Do not include ipa-type-escape.h.
24227 * tree-ssa-alias.c: Likewise.
24228 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
24229 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
24230 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
24231 and ipa-type-escape passes.
24232 * tree-pass.h (pass_ipa_type_escape): Remove.
24233 (pass_ipa_struct_reorg): Likewise.
24234 * ipa-struct-reorg.h: Remove.
24235 * ipa-struct-reorg.c: Likewise.
24236 * ipa-type-escape.h: Likewise.
24237 * ipa-type-escape.c: Likewise.
24238 * doc/invoke.texi (-fipa-struct-reorg): Remove.
24239 (--param struct-reorg-cold-struct-ratio): Likewise.
24240 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
24241 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
24242 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
24243
24244 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24245
24246 * config/s390/2084.md: Enable all insn reservations also for z9_ec
24247 cpu attribute value.
24248 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
24249 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
24250 * config/s390/s390.c (processor_flags_table): New constant array.
24251 (s390_handle_arch_option): Remove.
24252 (s390_handle_option): Remove s390_handle_arch_option invocations
24253 and OPT_mwarn_framesize_ handling.
24254 (s390_option_override): Remove s390_handle_arch_option invocation.
24255 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
24256 warnings.
24257 * config/s390/s390.md (cpu attribute): Add z9_ec value.
24258 * config/s390/s390.opt (s390_tune, s390_arch)
24259 (march=): Replace s390_arch_option enum and values with
24260 processor_type. Set variable name to s390_arch. Set
24261 initialization value.
24262 (mtune=): Replace s390_arch_option with processor_type. Set
24263 variable name to s390_tune. Set initialization value.
24264
24265 2011-03-23 Julian Brown <julian@codesourcery.com>
24266
24267 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
24268 accesses which are not naturally aligned.
24269
24270 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
24271
24272 PR target/47553
24273 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
24274
24275 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
24276
24277 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
24278 parameter from "int" to "enum insn_code".
24279 (expand_operand_type): New enum.
24280 (expand_operand): New structure.
24281 (create_expand_operand): New function.
24282 (create_fixed_operand, create_output_operand): Likewise
24283 (create_input_operand, create_convert_operand_to): Likewise.
24284 (create_convert_operand_from, create_address_operand): Likewise.
24285 (create_integer_operand): Likewise.
24286 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
24287 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
24288 (expand_insn, expand_jump_insn): Likewise.
24289 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
24290 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
24291 (expand_movstr, expand_builtin___clear_cache): Likewise.
24292 (expand_builtin_lock_release): Likewise.
24293 * explow.c (allocate_dynamic_stack_space): Likewise.
24294 (probe_stack_range): Likewise. Allow check_stack to FAIL,
24295 and use the default handling in that case.
24296 * expmed.c (check_predicate_volatile_ok): Delete.
24297 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
24298 (emit_cstore): Likewise.
24299 * expr.c (emit_block_move_via_movmem): Likewise.
24300 (set_storage_via_setmem, expand_assignment): Likewise.
24301 (emit_storent_insn, try_casesi): Likewise.
24302 (emit_single_push_insn): Likewise. Allow the expansion to fail.
24303 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
24304 (expand_vec_shift_expr, expand_binop_directly): Likewise.
24305 (expand_twoval_unop, expand_twoval_binop): Likewise.
24306 (expand_unop_direct, emit_indirect_jump): Likewise.
24307 (emit_conditional_move, vector_compare_rtx): Likewise.
24308 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
24309 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
24310 (expand_sync_lock_test_and_set): Likewise.
24311 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
24312 (emit_unop_insn): Likewise.
24313 (expand_copysign_absneg): Change icode to an insn_code.
24314 (create_convert_operand_from_type): New function.
24315 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
24316 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
24317 (expand_insn, expand_jump_insn): Likewise.
24318 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
24319 than const_int_operand for operand 2.
24320
24321 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24322
24323 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
24324 if possible.
24325
24326 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
24327
24328 * emit-rtl.c (emit_pattern_before_noloc): New function.
24329 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
24330 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
24331 (emit_pattern_after_noloc): New function.
24332 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
24333 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
24334
24335 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
24336
24337 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
24338 (__ffsDI2): Likewise.
24339
24340 2011-03-22 Richard Henderson <rth@redhat.com>
24341
24342 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
24343 of !TARGET_ABI_OPEN_VMS.
24344 (alpha_trampoline_init, alpha_start_function): Likewise.
24345 (alpha_expand_epilogue, alpha_file_start): Likewise.
24346 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
24347 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
24348 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
24349 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
24350 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
24351
24352 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24353
24354 * config/s390/s390-opts.h: New.
24355 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
24356 s390_arch_flags, s390_warn_framesize, s390_stack_size,
24357 s390_stack_guard): Remove.
24358 (s390_handle_arch_option): Return void. Take enum
24359 s390_arch_option value instead of string and searching array.
24360 (s390_handle_option): Don't assert that global structures are in
24361 use. Access variables via opts pointer. Use error_at. Don't use
24362 sscanf for -mstack-guard= or -mstack-size=. Update call to
24363 s390_handle_arch_option.
24364 (s390_option_override): Update call to s390_handle_arch_option.
24365 (s390_emit_prologue): Use %d format for s390_stack_size in
24366 diagnostic. Use %wd for HOST_WIDE_INT.
24367 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
24368 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
24369 * config/s390/s390.opt (config/s390/s390-opts.h): New
24370 HeaderInclude entry.
24371 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
24372 s390_arch_flags, s390_warn_framesize): New Variable entries.
24373 (s390_arch_option): New Enum and EnumValue entries.
24374 (march=): Use Enum instead of Var.
24375 (mstack-guard=, mstack-size=): Use UInteger and Var.
24376 (mtune=): Use Enum.
24377
24378 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24379
24380 * config/score/score.c (score_handle_option): Don't assert that
24381 global structures are in use. Access target_flags via opts
24382 pointer. Use value of -march= option to determine target_flags
24383 settings.
24384 * config/score/score.opt (march=): Use Enum.
24385 (score_arch): New Enum and EnumValue entries.
24386
24387 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24388
24389 * config/mep/mep.c (option_mtiny_specified): Remove.
24390 (mep_option_override): Move register handling for -mivc2 from
24391 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
24392 instead of option_mtiny_specified.
24393 (mep_handle_option): Access target_flags via opts pointer. Don't
24394 assert that global structures are in use. Defer part of -mivc2
24395 handling and move it to mep_option_override.
24396 * config/mep/mep.opt (IVC2): New Mask entry.
24397 (mivc2): Use Var and Defer instead of Mask.
24398
24399 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24400
24401 * config/v850/v850-opts.h: New.
24402 * config/v850/v850.c (small_memory): Replace with
24403 small_memory_physical_max array. Make that array static const.
24404 (v850_handle_memory_option): Take integer value of argument. Take
24405 gcc_options pointer, option text and location. Return void.
24406 Update for changes to small memory structures.
24407 (v850_handle_option): Access target_flags via opts pointer. Don't
24408 assert that global structures are in use. Update calls to
24409 v850_handle_memory_option.
24410 (v850_encode_data_area): Update references to small memory settings.
24411 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
24412 (enum small_memory_type): Move to v850-opts.h.
24413 * config/v850/v850.opt (config/v850/v850-opts.h): New
24414 HeaderInclude entry.
24415 (small_memory_max): New Variable entry.
24416 (msda): Replace by pair of options msda= and msda-. Use UInteger.
24417 (mtda, mzda): Likewise.
24418
24419 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24420
24421 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
24422 pointer. Don't assert that global structures are in use.
24423
24424 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24425
24426 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
24427 via opts pointer. Don't assert that global structures are in use.
24428
24429 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24430
24431 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
24432 (munix=93): Use Var.
24433 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
24434 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
24435 * config/pa/pa-opts.h: New.
24436 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
24437 (pa_handle_option): Don't assert that global structures are in
24438 use. Access target_flags via opts pointer. Don't handle
24439 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
24440 OPT_munix_98 here.
24441 (pa_option_override): Handle deferred OPT_mfixed_range_.
24442
24443 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24444
24445 * config/mn10300/mn10300-opts.h: New.
24446 * config/mn10300/mn10300.c (mn10300_processor,
24447 mn10300_tune_string): Remove.
24448 (mn10300_handle_option): Don't assert that global structures are
24449 in use. Access mn10300_processor via opts pointer. Don't handle
24450 OPT_mtune_ here.
24451 * config/mn10300/mn10300.h (enum processor_type): Move to
24452 mn10300-opts.h.
24453 (mn10300_processor): Remove.
24454 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
24455 HeaderInclude entry.
24456 (mn10300_processor): New Variable entry.
24457 (mtune=): Use Var.
24458
24459 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24460
24461 * config/microblaze/microblaze.c: Don't include opts.h.
24462 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
24463 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
24464 (mno-clearbss): Use Var and Warn.
24465
24466 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24467
24468 * config/m32r/m32r-opts.h: New.
24469 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
24470 (m32r_handle_option): Don't assert that global structures are in
24471 use. Access target_flags and m32r_cache_flush_func via opts
24472 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
24473 OPT_mno_flush_trap here.
24474 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
24475 include of m32r-opts.h.
24476 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
24477 HeaderInclude entry.
24478 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
24479 (mmodel=): Use Enum and Var.
24480 (m32r_model): New Enum and EnumValue entries.
24481 (mno-flush-trap): Use Var.
24482 (msdata=): Use Enum and Var.
24483 (m32r_sdata): New Enum and EnumValue entries.
24484
24485 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24486
24487 * config/m32c/m32c.c: Don't include opts.h.
24488 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
24489 m32c_handle_option): Remove.
24490 (m32c_option_override): Check global_options_set.x_target_memregs
24491 instead of target_memregs_set.
24492 * config/m32c/m32c.h (target_memregs): Remove.
24493 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
24494 variable.
24495
24496 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24497
24498 * config/iq2000/iq2000-opts.h: New.
24499 * config/iq2000/iq2000.c: Don't include opts.h.
24500 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
24501 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
24502 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
24503 HeaderInclude entry.
24504 (iq2000_tune): New Variable entry.
24505 (march=): Add comment. Use Enum.
24506 (iq2000_arch): New Enum and EnumValue entries.
24507 (mcpu=): Use Enum and Var.
24508 (iq2000_tune): New Enum and EnumValue entries.
24509
24510 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24511
24512 * config/ia64/ia64-opts.h: New.
24513 * config/ia64/ia64.c (ia64_tune): Remove.
24514 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
24515 here. Use error_at.
24516 (ia64_option_override): Handle deferred OPT_mfixed_range_.
24517 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
24518 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
24519 HeaderInclude entry.
24520 (ia64_tune): New Variable entry.
24521 (mfixed-range=): Use Defer and Var.
24522 (mtune=): Use Enum and Var.
24523 (ia64_tune): New Enum and EnumValue entries.
24524
24525 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24526
24527 * config/frv/frv-opts.h: New.
24528 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
24529 frv-opts.h.
24530 (frv_cpu_type): Remove.
24531 * config/frv/frv.c: Don't include opts.h.
24532 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
24533 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
24534 (frv_cpu_type): New Variable entry.
24535 (frv_cpu): New Enum and EnumValue entries.
24536
24537 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24538
24539 * config/cris/cris.c (cris_handle_option): Access target_flags via
24540 opts pointer. Don't assert that global structures are in use.
24541 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
24542 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
24543
24544 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24545
24546 * config/bfin/bfin-opts.h: New.
24547 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
24548 bfin_si_revision, bfin_workarounds): Remove.
24549 (bfin_cpus): Make static const.
24550 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
24551 not bfin_lib_id_given.
24552 (bfin_handle_option): Don't set bfin_lib_id_given. Access
24553 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
24554 pointer. Use error_at. Don't assert that global structures are in use.
24555 * config/bfin/bfin.h: Include bfin-opts.h.
24556 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
24557 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
24558 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
24559 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
24560 entries.
24561
24562 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24563
24564 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
24565 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
24566 or -msoft-float here.
24567 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
24568 -msoft-float and -mhard-float.
24569 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
24570 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24571 msoft-float.
24572 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
24573 -msoft-float.
24574 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
24575 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
24576 not mhard-float.
24577 (LIBGCC_SPEC): Don't handle -msoft-float.
24578 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
24579 -mhard-float.
24580 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24581 msoft-float.
24582 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
24583 -mfloat-abi=*, not -msoft-float and -mhard-float.
24584 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
24585 -msoft-float.
24586 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
24587 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
24588 mhard-float and msoft-float.
24589 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
24590 mfloat-abi=soft in comments, not mhard-float and msoft-float.
24591 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
24592 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
24593 mhard-float.
24594 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
24595 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
24596 msoft-float.
24597 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
24598 not mhard-float.
24599 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
24600 not msoft-float.
24601
24602 2011-03-22 Richard Henderson <rth@redhat.com>
24603
24604 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
24605 TARGET_ABI_WINDOWS_NT.
24606 (alpha_output_function_end_prologue): Likewise.
24607 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
24608 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
24609 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
24610 (trap, *movsi_nt_vms): Likewise.
24611 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
24612 (*tablejump_osf_nt_internal): Remove.
24613 * config/alpha/predicates.md (input_operand): Only test Pmode.
24614
24615 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24616
24617 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
24618 via opts pointer. Use error_at. Don't assert that global
24619 structures are in use.
24620
24621 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24622
24623 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
24624 (ix86_handle_option): Access ix86_isa_flags and
24625 ix86_isa_flags_explicit via opts pointer. Don't assert that
24626 global structures are in use.
24627 (ix86_function_specific_save, ix86_function_specific_restore):
24628 Update ix86_isa_flags_explicit field name.
24629 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
24630 (ix86_isa_flags_explicit): Rename TargetSave entry to
24631 x_ix86_isa_flags_explicit.
24632
24633 2011-03-22 Richard Henderson <rth@redhat.com>
24634
24635 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
24636 (alpha_option_override, direct_return): Likewise.
24637 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
24638 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
24639 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
24640 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
24641 (alpha_expand_epilogue, alpha_end_function): Likewise.
24642 (alpha_init_libfuncs): Likewise.
24643 (struct machine_function): Remove unicosmk members.
24644 (print_operand) ['t']: Remove.
24645 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
24646 unicosmk_output_module_name, unicosmk_output_common,
24647 current_section_align, unicosmk_output_text_section_asm_op,
24648 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
24649 unicosmk_section_type_flags, unicosmk_unique_section,
24650 unicosmk_asm_named_section, unicosmk_insert_attributes,
24651 unicosmk_output_align, unicosmk_defer_case_vector,
24652 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
24653 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
24654 unicosmk_output_ssib, unicosmk_add_call_info_word,
24655 unicosmk_extern_head, unicosmk_output_default_externs,
24656 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
24657 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
24658 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
24659 * config/alpha/alpha-protos.h: Update.
24660 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
24661 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
24662 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
24663 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
24664 (*mulsi_se, mulvsi3): Likewise.
24665 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
24666 (*divmodsi_internal, call, call_value, realign): Likewise.
24667 (moddi3, umoddi3): Likewise; remove duplicate expander.
24668 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
24669 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
24670 (*movdi_nofix): Remove r/U alternative.
24671 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
24672 * config/alpha/constraints.md ("U"): Remove.
24673 * config/alpha/predicates.md (call_operand"): Don't test
24674 TARGET_ABI_UNICOSMK.
24675
24676 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24677
24678 * target.def (handle_option): Take gcc_options and
24679 cl_decoded_option pointers and location_t.
24680 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
24681 * doc/tm.texi: Regenerate.
24682 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
24683 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
24684 * lto-opts.c (lto_reissue_options): Generate option structure for
24685 targetm.handle_option call.
24686 * opts.c (target_handle_option): Update call to
24687 targetm.handle_option. Remove assertions about values now passed
24688 down to hook.
24689 * targhooks.c (default_target_handle_option): New.
24690 * targhooks.h (default_target_handle_option): Declare.
24691 * config/alpha/alpha.c: Include opts.h.
24692 (alpha_handle_option): Update to new hook interface.
24693 * config/arm/arm.c: Include opts.h.
24694 (arm_handle_option): Update to new hook interface.
24695 * config/arm/t-arm (arm.o): Update dependencies.
24696 * config/bfin/bfin.c: Include opts.h.
24697 (bfin_handle_option): Update to new hook interface.
24698 * config/cris/cris.c: Include opts.h.
24699 (cris_handle_option): Update to new hook interface.
24700 * config/frv/frv.c: Include opts.h.
24701 (frv_handle_option): Update to new hook interface.
24702 * config/i386/i386.c: Include opts.h.
24703 (ix86_handle_option): Update to new hook interface.
24704 (ix86_valid_target_attribute_inner_p): Generate option structure
24705 for call to ix86_handle_option.
24706 * config/i386/t-i386 (i386.o): Update dependencies.
24707 * config/ia64/ia64.c: Include opts.h.
24708 (ia64_handle_option): Update to new hook interface.
24709 * config/ia64/t-ia64 (ia64.o): Update dependencies.
24710 * config/iq2000/iq2000.c: Include opts.h.
24711 (iq2000_handle_option): Update to new hook interface.
24712 * config/m32c/m32c.c: Include opts.h.
24713 (m32c_handle_option): Update to new hook interface.
24714 * config/m32r/m32r.c: Include opts.h.
24715 (m32r_handle_option): Update to new hook interface.
24716 * config/m68k/m68k.c: Include opts.h.
24717 (m68k_handle_option): Update to new hook interface.
24718 * config/mep/mep.c: Include opts.h.
24719 (mep_handle_option): Update to new hook interface.
24720 * config/microblaze/microblaze.c: Include opts.h.
24721 (microblaze_handle_option): Update to new hook interface.
24722 * config/mips/mips.c: Include opts.h.
24723 (mips_handle_option): Update to new hook interface.
24724 * config/mn10300/mn10300.c: Include opts.h.
24725 (mn10300_handle_option): Update to new hook interface.
24726 * config/pa/pa.c: Include opts.h.
24727 (pa_handle_option): Update to new hook interface.
24728 * config/pdp11/pdp11.c: Include opts.h.
24729 (pdp11_handle_option): Update to new hook interface.
24730 * config/rs6000/rs6000.c: Include opts.h.
24731 (rs6000_handle_option): Update to new hook interface.
24732 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
24733 * config/rx/rx.c: Include opts.h.
24734 (rx_handle_option): Update to new hook interface.
24735 * config/s390/s390.c: Include opts.h.
24736 (s390_handle_option): Update to new hook interface.
24737 * config/score/score.c: Include opts.h.
24738 (score_handle_option): Update to new hook interface.
24739 * config/sh/sh.c: Include opts.h.
24740 (sh_handle_option): Update to new hook interface.
24741 * config/sparc/sparc.c: Include opts.h.
24742 (sparc_handle_option): Update to new hook interface.
24743 * config/v850/v850.c: Include opts.h.
24744 (v850_handle_option): Update to new hook interface.
24745
24746 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24747
24748 * gcc.c (driver_unknown_option_callback): Only permit and save
24749 unknown -Wno- options.
24750 (driver_wrong_lang_callback): Save options directly instead of via
24751 driver_unknown_option_callback.
24752
24753 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
24754
24755 * combine.c (simplify_set): Try harder to find the best CC mode when
24756 simplifying a nested COMPARE on the RHS.
24757
24758 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24759
24760 * config/alpha/gnu.h: Remove.
24761 * config/arc: Remove directory.
24762 * config/arm/netbsd.h: Remove.
24763 * config/arm/t-pe: Remove.
24764 * config/crx: Remove directory.
24765 * config/i386/netbsd.h: Remove.
24766 * config/m68hc11: Remove directory.
24767 * config/m68k/uclinux-oldabi.h: Remove.
24768 * config/mcore/mcore-pe.h: Remove.
24769 * config/mcore/t-mcore-pe: Remove.
24770 * config/netbsd-aout.h: Remove.
24771 * config/rs6000/gnu.h: Remove.
24772 * config/sh/sh-symbian.h: Remove.
24773 * config/sh/symbian-base.c: Remove.
24774 * config/sh/symbian-c.c: Remove.
24775 * config/sh/symbian-cxx.c: Remove.
24776 * config/sh/symbian-post.h: Remove.
24777 * config/sh/symbian-pre.h: Remove.
24778 * config/sh/t-symbian: Remove.
24779 * config/svr3.h: Remove.
24780 * config/vax/netbsd.h: Remove.
24781 * config.build: Don't handle i[34567]86-*-pe.
24782 * config.gcc: Remove handling of deprecations for most deprecated
24783 targets.
24784 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
24785 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
24786 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
24787 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
24788 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
24789 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
24790 Remove cases.
24791 * config.host: Don't handle i[34567]86-*-pe.
24792 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
24793 (ASM_SPEC32): Don't handle -mcall-gnu.
24794 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
24795 -mcall-gnu.
24796 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
24797 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
24798 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
24799 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
24800 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
24801 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
24802 conditional on SYMBIAN.
24803 * configure.ac: Don't handle powerpc*-*-gnu*.
24804 * configure: Regenerate.
24805 * doc/extend.texi (interrupt attribute): Don't mention CRX.
24806 * doc/install-old.texi (m6811, m6812): Don't mention.
24807 * doc/install.texi (arc-*-elf*): Don't document multilib option.
24808 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
24809 (m68k-uclinuxoldabi): Don't mention.
24810 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
24811 Remove.
24812 (-mcall-gnu): Remove.
24813 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
24814 families): Remove constraint documentation.
24815
24816 2011-03-22 Marius Strobl <marius@FreeBSD.org>
24817
24818 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
24819 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
24820 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
24821
24822 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
24823
24824 PR target/48226
24825 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
24826 vector when peeking at the next token for vector, don't expand the
24827 keywords.
24828
24829 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
24830
24831 * config/avr/avr-protos.h (expand_epilogue): Change prototype
24832 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
24833 * config/avr/avr.c (init_cumulative_args)
24834 (avr_function_arg_advance): Use it.
24835 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
24836 sibcall epilogues.
24837 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
24838 (avr_function_ok_for_sibcall): ...this new function.
24839 (avr_lookup_function_attribute1): New static Function.
24840 (avr_naked_function_p, interrupt_function_p)
24841 (signal_function_p, avr_OS_task_function_p)
24842 (avr_OS_main_function_p): Use it.
24843 * config/avr/avr.md ("sibcall", "sibcall_value")
24844 ("sibcall_epilogue"): New expander.
24845 ("*call_insn", "*call_value_insn"): New insn.
24846 ("call_insn", "call_value_insn"): Remove
24847 ("call", "call_value", "epilogue"): Change expander to handle
24848 sibling calls.
24849
24850 2011-03-21 Nick Clifton <nickc@redhat.com>
24851
24852 * doc/invoke.texi (Overall Options): Move closing brace to end of
24853 options list.
24854 (Optimization Options): Add missing @gol.
24855 (Directory Options): Likewise.
24856 (i386 and x86-64 Options): Likewise.
24857 (RS6000 and PowerPC Options): Likewise.
24858 (i386 and x86-64 Windows Options): Likewise.
24859 (V850 Options): Add text missing from descriptions.
24860
24861 2011-03-22 Richard Henderson <rth@redhat.com>
24862
24863 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
24864 (avr_incoming_return_addr_rtx): New.
24865 (emit_push_byte): New.
24866 (expand_prologue): Use it. Remove incorrect dwarf annotation for
24867 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
24868 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
24869 (emit_pop_byte): New.
24870 (expand_epilogue): Use it. Pop frame pointer by bytes.
24871 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
24872 (INCOMING_RETURN_ADDR_RTX): New.
24873 (INCOMING_FRAME_SP_OFFSET): New.
24874 (ARG_POINTER_CFA_OFFSET): New.
24875 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
24876 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
24877 (pophi): Remove.
24878
24879 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
24880
24881 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
24882
24883 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
24884 (FUNCTION_ARG_ADVANCE): Likewise.
24885 * tm.texi.in: Change references to them to hook references.
24886 * tm.texi: Regenerate.
24887 * targhooks.c (default_function_arg): Eliminate check for target
24888 macro.
24889 (default_function_incoming_arg): Likewise.
24890 (default_function_arg_advance): Likewise.
24891 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
24892 (function_arg_advance): Likewise.
24893 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
24894
24895 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
24896
24897 * tree.c (build_call_1): New function.
24898 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
24899
24900 2011-03-22 Richard Guenther <rguenther@suse.de>
24901
24902 PR tree-optimization/48228
24903 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
24904 for single-arg PHIs.
24905
24906 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
24907
24908 PR rtl-optimization/48143
24909 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
24910 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
24911 sse2_cvtps2pd): Likewise.
24912
24913 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24914
24915 * recog.c (canonicalize_change_group): Use validate_unshare_change.
24916
24917 2011-03-22 Richard Guenther <rguenther@suse.de>
24918
24919 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
24920 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
24921 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
24922 and REALIGN_LOAD_EXPR.
24923 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
24924 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
24925 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
24926 DOT_PROD_EXPR case ...
24927 (expand_expr_real_2): ... here.
24928 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
24929 and REALIGN_LOAD_EXPR.
24930 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
24931 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
24932 (vect_create_epilog_for_reduction): Likewise.
24933 (vectorizable_reduction): Likewise.
24934 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
24935 * tree-vect-stmts.c (vectorizable_load): Likewise.
24936
24937 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
24938
24939 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
24940
24941 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24942
24943 * config/s390/s390.c (s390_delegitimize_address): Fix offset
24944 handling for PLTOFF/GOTOFF.
24945
24946 2011-03-22 Nick Clifton <nickc@redhat.com>
24947
24948 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
24949 trailing backslash from the end of the macro definition.
24950
24951 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24952
24953 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
24954 and PLT unspecs.
24955
24956 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
24957
24958 * expr.h (prepare_operand): Move to...
24959 * optabs.h (prepare_operand): ...here and change the insn code
24960 parameter from "int" to "enum insn_code".
24961 (insn_operand_matches): Declare.
24962 * expr.c (init_expr_target): Use insn_operand_matches.
24963 (compress_float_constant): Likewise.
24964 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
24965 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
24966 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
24967 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
24968 Likewise.
24969 (gen_cond_trap): Likewise.
24970 (prepare_operand): Likewise. Change icode to an insn_code.
24971 (insn_operand_matches): New function.
24972 * reload.c (find_reloads_address_1): Use insn_operand_matches.
24973 * reload1.c (gen_reload): Likewise.
24974 * targhooks.c (default_secondary_reload): Likewise.
24975
24976 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
24977
24978 * config/alpha/alpha.md (unspec): New define_c_enum.
24979 (unspecv): Ditto.
24980
24981 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
24982
24983 PR debug/48214
24984 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
24985 between a call and its CALL_ARG_LOCATION note.
24986
24987 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
24988
24989 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
24990
24991 2011-03-21 Jakub Jelinek <jakub@redhat.com>
24992
24993 PR c/42544
24994 PR c/48197
24995 * c-common.c (shorten_compare): If primopN is first sign-extended
24996 to opN and then zero-extended to result type, set primopN to opN.
24997
24998 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
24999
25000 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
25001 for barrier handlers.
25002
25003 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
25004
25005 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
25006 UNSPEC constants to be in the unspec enumeration, and redefine
25007 all UNSPECV constants to be in the unspecv enumeration, so that
25008 dumps print which unspec/unspec_volatile this is.
25009 * config/rs6000/vector.md (UNSPEC_*): Ditto.
25010 * config/rs6000/paired.md (UNSPEC_*): Ditto.
25011 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
25012 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
25013 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
25014
25015 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
25016 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
25017 UNSPECV_LWSYNC, since these are used as unspec_volatile.
25018 * config/rs6000/sync.md (isync, lwsync): Ditto.
25019
25020 2011-03-21 Richard Guenther <rguenther@suse.de>
25021
25022 * params.def (lto-min-partition): Fix typo.
25023
25024 2011-03-21 Richard Guenther <rguenther@suse.de>
25025
25026 PR c/47939
25027 * c-decl.c (grokdeclarator): Drop to the main variant only
25028 for array types. Drop flag_gen_aux_info check.
25029
25030 2011-03-21 Richard Guenther <rguenther@suse.de>
25031
25032 PR translation/47911
25033 * params.def (lto-partitions): Fix typo.
25034 (lto-min-partition): Fix wording.
25035
25036 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
25037
25038 * config/rs6000/t-freebsd: Remove duplication from file.
25039
25040 2011-03-21 Richard Guenther <rguenther@suse.de>
25041
25042 PR middle-end/47661
25043 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
25044
25045 2011-03-21 Richard Guenther <rguenther@suse.de>
25046
25047 PR lto/48210
25048 * params.def (lto-partitions): Require at least 1 partition.
25049
25050 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25051
25052 * gthr-solaris.h: Remove.
25053 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
25054 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
25055 (LIB_SPEC): Likewise.
25056 * config/sol2.opt (threads): Remove.
25057 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
25058 (sparc*-*-solaris2*): Likewise.
25059 * configure.ac (enable_threads): Enable solaris support.
25060 * configure: Regenerate.
25061 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
25062 * doc/install.texi (Configuration, --enable-threads=lib): Remove
25063 solaris.
25064
25065 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25066
25067 * config.gcc: Obsolete *-*-solaris2.8*.
25068 * doc/install.texi (Specific, *-*-solaris2*): Document it.
25069
25070 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25071
25072 PR bootstrap/48135
25073 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
25074 reference. Solaris 8 perl works.
25075
25076 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25077
25078 PR bootstrap/48135
25079 * doc/install.texi (Prerequisites): Move jar etc. up.
25080 Explain support library version requirements.
25081
25082 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25083
25084 PR bootstrap/48135
25085 * doc/install.texi (Prerequisites): Move Perl to build
25086 requirements. Always necessary on Solaris 2 with Sun ld.
25087
25088 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25089
25090 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
25091 binutils 2.21.
25092 (Specific, i?86-*-solaris2.[89]): Likewise.
25093 (Specific, i?86-*-solaris2.10): Likewise.
25094 (Specific, mips-sgi-irix6): Likewise.
25095 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
25096 Update for binutils 2.21.
25097
25098 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25099
25100 * configure.ac (gcc_cv_lto_plugin): Fix typo.
25101 Allow -fuse-linker-plugin for non-default plugin linker.
25102 * configure: Regenerate.
25103
25104 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
25105
25106 PR bootstrap/48167
25107 * gengtype.c (files_rules): Added rule for cp/parser.h.
25108
25109 2011-03-21 Jakub Jelinek <jakub@redhat.com>
25110
25111 PR target/48213
25112 * config/s390/s390.c (s390_delegitimize_address): Don't call
25113 lowpart_subreg if orig_x has BLKmode.
25114
25115 2011-03-21 Kai Tietz <ktietz@redhat.com>
25116
25117 PR target/12171
25118 * doc/plugins.texi: Adjust documentation for plugin register_callback.
25119 * tree.h (attribute_spec): Add new member affects_type_identity.
25120 * attribs.c (empty_attribute_table): Adjust attribute_spec
25121 initializers.
25122 * config/alpha/alpha.c: Likewise.
25123 * config/arc/arc.c: Likewise.
25124 * config/arm/arm.c: Likewise.
25125 * config/avr/avr.c: Likewise.
25126 * config/bfin/bfin.c: Likewise.
25127 * config/crx/crx.c: Likewise.
25128 * config/darwin.h: Likewise.
25129 * config/h8300/h8300.c: Likewise.
25130 * config/i386/cygming.h: Likewise.
25131 * config/i386/i386.c: Likewise.
25132 * config/ia64/ia64.c: Likewise.
25133 * config/m32c/m32c.c: Likewise.
25134 * config/m32r/m32r.c: Likewise.
25135 * config/m68hc11/m68hc11.c: Likewise.
25136 * config/m68k/m68k.c: Likewise.
25137 * config/mcore/mcore.c: Likewise.
25138 * config/mep/mep.c: Likewise.
25139 * config/microblaze/microblaze.c: Likewise.
25140 * config/mips/mips.c: Likewise.
25141 * config/rs6000/rs6000.c: Likewise.
25142 * config/rx/rx.c: Likewise.
25143 * config/sh/sh.c: Likewise.
25144 * config/sol2.h: Likewise.
25145 * config/sparc/sparc.c: Likewise.
25146 * config/spu/spu.c: Likewise.
25147 * config/stormy16/stormy16.c: Likewise.
25148 * config/v850/v850.c: Likewise.
25149
25150 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
25151
25152 * simplify-rtx.c (simplify_binary_operation_1): Handle
25153 (xor (and A B) C) case when B and C are both constants.
25154
25155 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
25156
25157 * tree-dfa.c (add_referenced_var): Fix typo in comment.
25158
25159 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
25160
25161 PR bootstrap/48168
25162 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
25163
25164 2011-03-20 Jakub Jelinek <jakub@redhat.com>
25165
25166 PR rtl-optimization/48156
25167 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
25168 assume df and df_lr are not NULL.
25169
25170 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
25171
25172 PR debug/48023
25173 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
25174 between a call and its CALL_ARG_LOCATION note.
25175
25176 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
25177
25178 PR debug/48178
25179 * config/sh/sh.c (find_barrier): Don't emit a constant pool
25180 between a call and its corresponding CALL_ARG_LOCATION note.
25181
25182 2011-03-19 Anatoly Sokolov <aesok@post.ru>
25183
25184 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
25185 instead of loop. Use HARD_REGISTER_NUM_P predicate.
25186 * haifa-sched.c (setup_ref_regs): Ditto.
25187 * caller-save.c (add_used_regs_1): Ditto.
25188 * dse.c (look_for_hardregs): Ditto.
25189 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
25190 * sched-rgn.c (check_live_1): Ditto.
25191
25192 2011-03-18 Joseph Myers <joseph@codesourcery.com>
25193
25194 * c-decl.c (diagnose_mismatched_decls): Give an error for
25195 redefining a typedef with variably modified type.
25196
25197 2011-03-18 Joseph Myers <joseph@codesourcery.com>
25198
25199 * c-decl.c (grokfield): Don't allow typedefs for structures or
25200 unions with no tag by default.
25201 * doc/extend.texi (Unnamed Fields): Update.
25202
25203 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
25204
25205 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
25206 Rewrite using indirect functions.
25207 (lwp_slwpcb): Ditto.
25208 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
25209 (avx_vinsertf128<mode>): Ditto.
25210
25211 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25212
25213 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
25214 unspecs.
25215
25216 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25217
25218 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
25219 splitting between a call and its corresponding CALL_ARG_LOCATION note.
25220
25221 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
25222
25223 PR rtl-optimization/48170
25224 * gcse.c (hoist_code): Remove bogus asserts.
25225
25226 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
25227
25228 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
25229 computation for prologue/epilogue.
25230
25231 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25232
25233 * Makefile.in (check-consistency): Remove.
25234
25235 2011-03-18 Jakub Jelinek <jakub@redhat.com>
25236
25237 PR debug/48176
25238 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
25239 arange_table_in_use is 0, but either text_section_used or
25240 cold_text_section_used is true. Don't call it if
25241 !info_section_emitted.
25242
25243 2011-03-18 Anatoly Sokolov <aesok@post.ru>
25244
25245 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
25246 FUNCTION_VALUE_REGNO_P): Remove.
25247 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
25248 Remove.
25249 * config/avr/avr.c (avr_ret_register): Make static inline.
25250 (avr_function_value_regno_p): New function.
25251 (avr_libcall_value): Make static. Add 'func' argument.
25252 (avr_function_value): Make static. Rename 'func' argument to
25253 'fn_decl_or_type', forward it to avr_libcall_value. Call
25254 avr_ret_register function instead of RET_REGISTER macro.
25255 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
25256
25257 2011-03-18 Jason Merrill <jason@redhat.com>
25258
25259 PR c++/23372
25260 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
25261
25262 2011-03-18 Richard Guenther <rguenther@suse.de>
25263
25264 * doc/install.texi (--enable-gold): Remove.
25265 (--with-plugin-ld): Document.
25266 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
25267
25268 2011-03-18 Andrew Pinski <pinskia@gmail.com>
25269
25270 PR middle-end/47790
25271 * expr.c (optimize_bitfield_assignment_op): Revamp to work
25272 again after expansion changes.
25273
25274 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
25275
25276 * combine.c (try_combine): Do simplification only call of
25277 subst() on i2 even when i1 is present. Update comments.
25278
25279 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
25280
25281 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
25282 and UNSPEC_PCREL_SYMOFF.
25283
25284 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25285
25286 * config/s390/s390.md: Use define_c_enum for the unspec constant
25287 definitions.
25288
25289 2011-03-18 Richard Henderson <rth@redhat.com>
25290 Jakub Jelinek <jakub@redhat.com>
25291
25292 PR bootstrap/48161
25293 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
25294 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
25295
25296 2011-03-17 Anatoly Sokolov <aesok@post.ru>
25297
25298 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
25299 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
25300 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
25301 Change return type to bool.
25302 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
25303
25304 2011-03-17 Jakub Jelinek <jakub@redhat.com>
25305
25306 PR debug/48163
25307 * var-tracking.c (prepare_call_arguments): If CALL target
25308 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
25309 pc instead of looking it up using cselib_lookup and use
25310 Pmode for it if x has VOIDmode.
25311 * dwarf2out.c (gen_subprogram_die): If also both first and
25312 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
25313
25314 PR debug/48163
25315 * function.c (assign_parms): For data.passed_pointer parms
25316 use MEM of data.entry_parm instead of data.entry_parm itself
25317 as DECL_INCOMING_RTL.
25318 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
25319 also when passed and declared mode is the same, DECL_RTL
25320 is a MEM with pseudo as address and DECL_INCOMING_RTL is
25321 a MEM too.
25322
25323 2011-03-16 Jeff Law <law@redhat.com>
25324
25325 PR rtl-optimization/37273
25326 * ira-costs.c (scan_one_insn): Detect constants living in memory and
25327 handle them like argument loads from stack slots. Do not double
25328 count memory for memory constants and argument loads from stack slots.
25329
25330 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
25331
25332 PR debug/48160
25333 * var-tracking.c (prepare_call_arguments): Check SUBREG.
25334
25335 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
25336
25337 PR target/48171
25338 * config/i386/i386.opt: Add Save to -mavx and -mfma.
25339
25340 2011-03-17 Jakub Jelinek <jakub@redhat.com>
25341
25342 PR bootstrap/48153
25343 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
25344 if dwarf_strict.
25345 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
25346 Clear call_arg_locations and call_arg_loc_last always.
25347
25348 PR middle-end/48152
25349 * var-tracking.c (prepare_call_arguments): If argument needs to be
25350 passed by reference, adjust argtype and mode.
25351
25352 2011-03-17 Richard Guenther <rguenther@suse.de>
25353
25354 PR middle-end/48134
25355 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
25356 a value make sure to fold the statement.
25357
25358 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
25359
25360 PR target/43872
25361 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
25362 return condition with !cfun->calls_alloca.
25363
25364 2011-03-17 Richard Guenther <rguenther@suse.de>
25365
25366 PR bootstrap/48148
25367 * lto-cgraph.c (input_overwrite_node): Clear the abstract
25368 origin for decls in other ltrans units.
25369 (input_varpool_node): Likewise.
25370
25371 2011-03-17 Richard Guenther <rguenther@suse.de>
25372
25373 PR middle-end/48165
25374 * tree-object-size.c (compute_object_offset): Properly return
25375 the offset operand of MEM_REFs as sizetype.
25376
25377 2011-03-17 Jakub Jelinek <jakub@redhat.com>
25378
25379 PR rtl-optimization/48141
25380 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
25381 * dse.c: Include params.h.
25382 (active_local_stores_len): New variable.
25383 (add_wild_read, dse_step1): Clear it when setting active_local_stores
25384 to NULL.
25385 (record_store, check_mem_read_rtx): Decrease it when removing
25386 from the chain.
25387 (scan_insn): Likewise. Increase it when adding to chain, if it
25388 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
25389 set active_local_stores to NULL before the addition.
25390 * Makefile.in (dse.o): Depend on $(PARAMS_H).
25391
25392 PR rtl-optimization/48141
25393 * dse.c (record_store): If no positions are needed in an insn
25394 that cannot be deleted, at least unchain it from active_local_stores.
25395
25396 2011-03-16 Dodji Seketeli <dodji@redhat.com>
25397
25398 PR debug/47510
25399 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
25400 (lookup_type_die_strip_naming_typedef): ... here.
25401 (get_context_die): Use it.
25402 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
25403 the anonymous struct named by the naming typedef.
25404
25405 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
25406
25407 PR target/48154
25408 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
25409 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
25410
25411 2011-03-16 Jeff Law <law@redhat.com>
25412
25413 * tree-vrp.c (identify_jump_threads): Slightly simplify type
25414 check for operands of conditional. Allow type to be a pointer.
25415
25416 2011-03-16 Richard Guenther <rguenther@suse.de>
25417
25418 PR tree-optimization/48149
25419 * fold-const.c (fold_binary_loc): Fold
25420 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
25421
25422 2011-03-16 Richard Guenther <rguenther@suse.de>
25423
25424 PR tree-optimization/26134
25425 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
25426 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
25427 (non_rewritable_mem_ref_base): Handle complex type component
25428 accesses, constrain offsets for vector and complex extracts
25429 more properly.
25430
25431 2011-03-16 Richard Guenther <rguenther@suse.de>
25432
25433 PR tree-optimization/48146
25434 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
25435 operands avoiding the need for renaming.
25436
25437 2011-03-16 Richard Guenther <rguenther@suse.de>
25438
25439 * gimple-fold.c (maybe_fold_reference): Open-code relevant
25440 constant folding. Move MEM_REF canonicalization first.
25441 Rely on fold_const_aggregate_ref for initializer folding.
25442 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
25443
25444 2011-03-16 Jakub Jelinek <jakub@redhat.com>
25445
25446 PR middle-end/48136
25447 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
25448 arg0/arg1 or their arguments are always fold converted to matching
25449 types.
25450
25451 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
25452 to nargs.
25453
25454 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25455
25456 PR lto/46944
25457 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
25458 Handle in-tree gold.
25459 (ld_vers): Extract binutils version for gold.
25460 (gcc_cv_ld_hidden): Handle gold here.
25461 (gcc_cv_lto_plugin): Determine level of linker plugin support.
25462 * configure: Regenerate.
25463 * config.in: Regenerate.
25464 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
25465 -fuse-linker-plugin otherwise.
25466 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
25467 (LINK_COMMAND_SPEC): Use it.
25468 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
25469
25470 2011-03-16 Jakub Jelinek <jakub@redhat.com>
25471
25472 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
25473 * calls.c: Remove debug.h include.
25474 (emit_call_1): Don't call virtual_call_token debug hook.
25475 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
25476 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
25477 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
25478 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
25479 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
25480 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
25481 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
25482 dwarf2out_virtual_call): Remove.
25483 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
25484 copy_call_info and virtual_call hooks.
25485 (dwarf2out_init): Don't initialize vcall_insn_table,
25486 debug_dcall_section and debug_vcall_section.
25487 (prune_unused_types): Don't mark nodes from dcall_table.
25488 (dwarf2out_finish): Don't output dcall or vcall tables.
25489 * final.c (final_scan_insn): Don't call direct_call or
25490 virtual_call debug hooks.
25491 * debug.h (struct gcc_debug_hooks): Remove direct_call,
25492 virtual_call_token, copy_call_info and virtual_call hooks.
25493 (debug_nothing_uid): Remove prototype.
25494 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
25495 copy_call_info and virtual_call hooks.
25496 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
25497 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
25498 * debug.c (do_nothing_debug_hooks): Likewise.
25499 (debug_nothing_uid): Remove.
25500 * doc/invoke.texi (-fenable-icf-debug): Remove.
25501 * common.opt (-fenable-icf-debug): Likewise.
25502
25503 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
25504 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
25505 call's MEM. Handle functions returning aggregate through a hidden
25506 first pointer. For virtual calls add clobbered pc to call arguments
25507 chain.
25508 * dwarf2out.c (gen_subprogram_die): Emit
25509 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
25510 can't be emitted.
25511
25512 PR debug/45882
25513 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
25514 * rtl.h (ENTRY_VALUE_EXP): Define.
25515 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
25516 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
25517 * print-rtl.c (print_rtx): Likewise.
25518 * gengtype.c (adjust_field_rtx_def): Likewise.
25519 * var-tracking.c (vt_add_function_parameter): Adjust
25520 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
25521 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
25522 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
25523 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
25524 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
25525
25526 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
25527 Call var_location debug hook even on CALL_INSNs.
25528 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
25529 * rtl.def (ENTRY_VALUE): New.
25530 * dwarf2out.c: Include cfglayout.h.
25531 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
25532 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
25533 (struct call_arg_loc_node): New type.
25534 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
25535 tail_call_site_count): New variables.
25536 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
25537 DW_TAG_GNU_call_site_parameter.
25538 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
25539 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
25540 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
25541 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
25542 and DW_AT_GNU_all_source_call_sites.
25543 (mem_loc_descriptor): Handle ENTRY_VALUE.
25544 (add_src_coords_attributes): Don't add enything if
25545 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
25546 (dwarf2out_abstract_function): Save and clear call_arg_location,
25547 call_site_count and tail_call_site_count around dwarf2out_decl call.
25548 (gen_call_site_die): New function.
25549 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
25550 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
25551 (dwarf2out_function_decl): Clear call_arg_locations,
25552 call_arg_loc_last, set call_site_count and tail_call_site_count
25553 to -1 and free block_map.
25554 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
25555 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
25556 followed by any real instructions.
25557 (dwarf2out_begin_function): Set call_site_count and
25558 tail_call_site_count to 0.
25559 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
25560 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
25561 attempt to force a DIE for it and worst case remove the attribute.
25562 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
25563 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
25564 the decl itself.
25565 * var-tracking.c: Include tm_p.h.
25566 (vt_stack_adjustments): For calls call note_register_arguments.
25567 (argument_reg_set): New variable.
25568 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
25569 ensure the VALUE is resolved.
25570 (call_arguments): New variable.
25571 (prepare_call_arguments): New function.
25572 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
25573 (struct expand_loc_callback_data): Add ignore_cur_loc field.
25574 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
25575 always use the best expression.
25576 (vt_expand_loc): Add ignore_cur_loc argument.
25577 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
25578 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
25579 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
25580 note for all calls.
25581 (vt_add_function_parameter): Use cselib_lookup_from_insn.
25582 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
25583 argument. Don't call cselib_preserve_only_values and
25584 cselib_reset_table.
25585 (note_register_arguments): New function.
25586 (vt_initialize): Compute argument_reg_set. Call
25587 vt_add_function_parameters before processing basic blocks instead of
25588 afterwards. For calls call prepare_call_arguments before calling
25589 cselib_process_insn.
25590 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
25591 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
25592 (var-tracking.o): Depend on $(TM_P_H).
25593 * cfglayout.h (insn_scope): New prototype.
25594 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
25595 * cfglayout.c (insn_scope): No longer static.
25596 * insn-notes.def (CALL_ARG_LOCATION): New.
25597 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
25598 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
25599 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
25600 nothing for DECL_EXTERNAL BLOCK_VARS.
25601
25602 2011-03-16 Alan Modra <amodra@gmail.com>
25603
25604 PR target/45844
25605 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
25606 create invalid offset address for vsx splat insn.
25607 * config/rs6000/predicates.md (splat_input_operand): New.
25608 * config/rs6000/vsx.md (vsx_splat_*): Use it.
25609
25610 2011-03-15 Xinliang David Li <davidxl@google.com>
25611
25612 PR c/47837
25613 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
25614 (normalize_preds): New function.
25615 (is_use_properly_guarded): Normalize def predicates.
25616
25617 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
25618
25619 PR target/46788
25620 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
25621 in the output template.
25622
25623 2011-03-15 Richard Guenther <rguenther@suse.de>
25624
25625 PR middle-end/47650
25626 * tree-pretty-print.c (dump_function_declaration): Properly
25627 dump unprototyped and varargs function types.
25628
25629 2011-03-15 Richard Guenther <rguenther@suse.de>
25630
25631 PR tree-optimization/13954
25632 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
25633 and friends.
25634
25635 2011-03-15 Richard Guenther <rguenther@suse.de>
25636
25637 PR tree-optimization/48037
25638 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
25639 selects into BIT_FIELD_REFs.
25640 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
25641 vector select.
25642
25643 2011-03-15 Jakub Jelinek <jakub@redhat.com>
25644
25645 PR tree-optimization/48129
25646 * builtins.c (fold_builtin_snprintf): Convert to type of
25647 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
25648 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
25649
25650 2011-03-15 Richard Guenther <rguenther@suse.de>
25651
25652 PR tree-optimization/41490
25653 * tree-ssa-dce.c (propagate_necessity): Handle returns without
25654 value but with VUSE.
25655 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
25656 return statements.
25657 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
25658 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
25659 * tree-tailcall.c (find_tail_calls): Ignore returns.
25660
25661 2011-03-15 Richard Guenther <rguenther@suse.de>
25662
25663 PR middle-end/48031
25664 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
25665 or variable-indexed array accesses when in gimple form.
25666
25667 2011-03-15 Richard Guenther <rguenther@suse.de>
25668
25669 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
25670
25671 2011-03-15 Alan Modra <amodra@gmail.com>
25672
25673 PR target/48032
25674 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
25675 presume symbol_refs without a symbol_ref_decl are suitably
25676 aligned, nor other trees we may see here. Handle anchor symbols.
25677 (legitimate_constant_pool_address_p): Comment. Add mode param.
25678 Check cmodel=medium addresses. Adjust all calls.
25679 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
25680 creating cmodel=medium optimized access to locals.
25681 * config/rs6000/constraints.md (R): Pass QImode to
25682 legitimate_constant_pool_address_p.
25683 * config/rs6000/predicates.md (input_operand): Pass mode to
25684 legitimate_constant_pool_address_p.
25685 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
25686 Update prototype.
25687
25688 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
25689
25690 PR target/48053
25691 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
25692 64-bit constants being loaded into registers other than GPRs such
25693 as loading 0 into a VSX register.
25694
25695 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25696
25697 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
25698
25699 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25700
25701 PR middle-end/47917
25702 * builtins.c (fold_builtin_snprintf): New function.
25703 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
25704 (fold_builtin_4): Likewise.
25705
25706 PR middle-end/38878
25707 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
25708 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
25709 and C - X == X also strip nops from +/-/p+ operand.
25710 When optimizing -X == C, fold C to arg0's type.
25711
25712 PR debug/47946
25713 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
25714 emit it as add_AT_int instead of add_AT_unsigned.
25715
25716 2011-03-14 Tom Tromey <tromey@redhat.com>
25717
25718 * unwind-dw2.c: Include sys/sdt.h if it exists.
25719 (_Unwind_DebugHook): Use STAP_PROBE2.
25720 * config.in, configure: Rebuild.
25721 * configure.ac: Check for sys/sdt.h.
25722
25723 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
25724
25725 * config/i386/i386.md (ROUND_FLOOR): New constant.
25726 (ROUND_CEIL): Ditto.
25727 (ROUND_TRUNC): Ditto.
25728 (ROUND_MXCSR): Ditto.
25729 (ROUND_NO_EXC): Ditto.
25730 (rint<mode>2): Use new defines instead of numerical constants.
25731 (floor<mode>2): Ditto.
25732 (ceil<mode>2): Ditto.
25733 (btrunc<mode>2): Ditto.
25734 * config/i386/i386-builtin-types.def: Define ROUND function type
25735 aliases.
25736 * config/i386/i386.c (enum ix86_builtins): Add
25737 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
25738 (struct builtin_description): Add
25739 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
25740 (ix86_expand_sse_round): New static function.
25741 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
25742 function types.
25743 (ix86_builtin_vectorized_function): Handle
25744 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
25745
25746 2011-03-14 Tom Tromey <tromey@redhat.com>
25747
25748 * c-parser.c (c_parser_asm_string_literal): Clear
25749 warn_overlength_strings.
25750
25751 2011-03-14 Tom Tromey <tromey@redhat.com>
25752
25753 * c-parser.c (disable_extension_diagnostics): Save
25754 warn_overlength_strings.
25755 (restore_extension_diagnostics): Restore warn_overlength_strings.
25756
25757 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25758
25759 * BASE-VER: Change to 4.7.0.
25760
25761 2011-03-14 Richard Guenther <rguenther@suse.de>
25762
25763 PR middle-end/48098
25764 * tree.c (build_vector_from_val): Adjust assert to requirements
25765 and reality.
25766
25767 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25768
25769 PR bootstrap/48102
25770 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
25771
25772 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
25773
25774 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
25775 terms of target_flags_explicit. Adjust copyright year.
25776
25777 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
25778 * config/rs6000/t-freebsd: New file. Add override for
25779 LIB2FUNCS_EXTRA.
25780
25781 2011-03-13 Chris Demetriou <cgd@google.com>
25782
25783 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
25784 (-fno-diagnostics-show-option): this, to reflect current default.
25785 (-Werror=): Update text about -fno-diagnostics-show-option.
25786
25787 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
25788
25789 PR target/48053
25790 * config/rs6000/predicates.md (easy_vector_constant_add_self,
25791 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
25792 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
25793 mode is not V2DImode or V2DFmode.
25794 (vspltis_constant): Do not handle V2DImode and V2DFmode.
25795 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
25796 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
25797 registers to 0.
25798 (movdi_internal64): Likewise.
25799
25800 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
25801
25802 PR tree-optimization/47127
25803 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
25804 parameter.
25805 (set_cloog_options): Same.
25806 (scop_to_clast): Same.
25807 (print_clast_stmt): Do not call cloog_state_malloc and
25808 cloog_state_free.
25809 (print_generated_program): Same.
25810 (gloog): Same.
25811 * graphite-clast-to-gimple.h (cloog_state): Declared.
25812 (scop_to_clast): Adjust declaration.
25813 * graphite.c (cloog_state): Defined here.
25814 (graphite_initialize): Call cloog_state_malloc.
25815 (graphite_finalize): Call cloog_state_free.
25816
25817 2011-03-11 Jason Merrill <jason@redhat.com>
25818
25819 * attribs.c (lookup_attribute_spec): Take const_tree.
25820 * tree.h: Adjust.
25821
25822 2011-03-11 Joseph Myers <joseph@codesourcery.com>
25823
25824 * config/sparc/sparc.c (sparc_option_override): Use
25825 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
25826
25827 2011-03-11 Richard Guenther <rguenther@suse.de>
25828
25829 PR tree-optimization/48067
25830 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
25831 multiplication result will be only used once on the target
25832 stmt.
25833
25834 2011-03-11 Richard Guenther <rguenther@suse.de>
25835
25836 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
25837
25838 2011-03-11 Richard Guenther <rguenther@suse.de>
25839
25840 PR lto/48073
25841 * tree.c (find_decls_types_r): Do not walk types only reachable
25842 from IDENTIFIER_NODEs.
25843
25844 2011-03-11 Jakub Jelinek <jakub@redhat.com>
25845
25846 PR middle-end/48044
25847 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
25848 all vnode->force_output nodes as needed.
25849
25850 2011-03-11 Jason Merrill <jason@redhat.com>
25851
25852 PR c++/48069
25853 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
25854 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
25855
25856 2011-03-11 Martin Jambor <mjambor@suse.cz>
25857
25858 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
25859 cgraph_node.
25860
25861 2011-03-11 Jakub Jelinek <jakub@redhat.com>
25862
25863 PR tree-optimization/48063
25864 * ipa-inline.c (cgraph_decide_inlining): Don't try to
25865 inline functions called once if !tree_can_inline_p (node->callers).
25866
25867 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
25868
25869 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
25870 extra_objs.
25871 * config/score/score3.c: Delete.
25872 * config/score/score3.h: Delete.
25873 * config/score/mul-div.S: Delete.
25874 * config/score/sfp-machine.h: Add new file.
25875 * config/score/constraints.md: Add new file.
25876 * config/score/t-score-softfp: Add new file.
25877 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
25878 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
25879 (score7_extra_constraint): Delete.
25880 (score7_option_override): Remove unused code.
25881 * config/score/score.c: Remove score3 and score5 define and code.
25882 * config/score/score.h: Remove score3 and score5 define and code.
25883 * config/score/score.md: Remove score3 template and unusual insn.
25884 * config/score/score.opt: Remove score3 and score5 options.
25885
25886 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25887
25888 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
25889 when _HPUX_SOURCE is defined.
25890 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
25891
25892 2011-03-10 Jason Merrill <jason@redhat.com>
25893
25894 PR c++/48029
25895 * stor-layout.c (layout_type): Don't set structural equality
25896 on arrays of incomplete type.
25897 * tree.c (type_hash_eq): Handle comparing them properly.
25898
25899 2011-03-10 Jakub Jelinek <jakub@redhat.com>
25900
25901 PR debug/48043
25902 * config/s390/s390.c (s390_delegitimize_address): Make sure the
25903 result mode matches original rtl mode.
25904
25905 2011-03-10 Nick Clifton <nickc@redhat.com>
25906
25907 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
25908 (andsi3, andsi3_flags): Fix timings for three operand alternative.
25909
25910 2011-03-09 Jakub Jelinek <jakub@redhat.com>
25911
25912 PR rtl-optimization/47866
25913 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
25914 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
25915 if target wasn't scalar.
25916 * function.c (assign_stack_temp_for_type): Assert that neither
25917 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
25918 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
25919 macro.
25920 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
25921
25922 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25923
25924 * config/s390/s390-protos.h (s390_label_align): New prototype.
25925 * config/s390/s390.c (s390_label_align): New function.
25926 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
25927
25928 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
25929
25930 PR target/47755
25931 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
25932 V2DI/V2DF constants. Only all 0's or all 1's are easy.
25933 (output_vec_const_move): Ditto.
25934
25935 2011-03-08 Anatoly Sokolov <aesok@post.ru>
25936
25937 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
25938 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
25939 * config/mips/mips.c (mips_preferred_reload_class): Make static.
25940 Change 'rclass' argument and result type to reg_class_t.
25941 (TARGET_PREFERRED_RELOAD_CLASS): Define.
25942
25943 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
25944
25945 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
25946 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
25947 (TARGET_MEMORY_MOVE_COST): Define.
25948 (avr_register_move_cost, avr_memory_move_cost): New Functions.
25949
25950 2011-03-08 Jakub Jelinek <jakub@redhat.com>
25951
25952 PR debug/47881
25953 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
25954 removed anything.
25955
25956 PR tree-optimization/48022
25957 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
25958 for EQ/NE_EXPR.
25959
25960 2011-03-07 Jakub Jelinek <jakub@redhat.com>
25961
25962 PR debug/47991
25963 * var-tracking.c (find_use_val): Return NULL for
25964 cui->sets && cui->store_p BLKmode MEMs.
25965
25966 2011-03-07 Anatoly Sokolov <aesok@post.ru>
25967
25968 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
25969 Remove.
25970 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
25971 xstormy16_print_operand_address): Remove.
25972 * config/stormy16/stormy16.c (xstormy16_print_operand,
25973 xstormy16_print_operand_address): Make static.
25974 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
25975
25976 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
25977
25978 PR target/47862
25979 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
25980 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
25981 before definition.
25982
25983 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
25984
25985 PR bootstrap/48000
25986 * cfgloopmanip.c (fix_bb_placements): Return immediately
25987 if FROM is BASE_LOOP's header.
25988
25989 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
25990
25991 * gimplify.c (gimplify_function_tree): Fix building calls
25992 to __builtin_return_address.
25993
25994 2011-03-07 Alan Modra <amodra@gmail.com>
25995
25996 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
25997 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
25998 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
25999 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
26000 return_mode args.
26001 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
26002 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
26003 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
26004 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
26005 * config/rs6000/rs6000.c
26006 (rs6000_elf_end_indicate_exec_stack): Rename to..
26007 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
26008 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
26009 (rs6000_file_start): ..here.
26010 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
26011 file scope variables.
26012 (call_ABI_of_interest): New function.
26013 (init_cumulative_args): Set above vars when function return value
26014 is a float, vector, or small struct.
26015 (rs6000_function_arg_advance_1): Likewise for function args.
26016 (rs6000_va_start): Set rs6000_passes_float if variable arg function
26017 references float args.
26018
26019 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
26020
26021 * doc/cfg.texi: Remove "See" before @ref.
26022 * doc/invoke.texi: Likewise.
26023
26024 2011-03-05 Jason Merrill <jason@redhat.com>
26025
26026 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
26027
26028 2011-03-05 Anthony Green <green@moxielogic.com>
26029
26030 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
26031
26032 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
26033
26034 PR rtl-optimization/47899
26035 * cfgloopmanip.c (fix_bb_placements): Fix first argument
26036 to flow_loop_nested_p when moving the loop upward.
26037
26038 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
26039
26040 PR target/47719
26041 * arm.md (movhi_insn_arch4): Accept any immediate constant.
26042
26043 2011-03-05 Jakub Jelinek <jakub@redhat.com>
26044
26045 PR tree-optimization/47967
26046 * ipa-cp.c (build_const_val): Return NULL instead of creating
26047 VIEW_CONVERT_EXPR for mismatching sizes.
26048 (ipcp_create_replace_map): Return NULL if build_const_val failed.
26049 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
26050 give up on versioning.
26051
26052 2011-03-05 Alan Modra <amodra@gmail.com>
26053
26054 PR target/47986
26055 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
26056 full cmodel medium/large lo_sum + high addresses.
26057
26058 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26059
26060 * config/s390/s390.c (s390_decompose_address): Reject non-literal
26061 pool references in UNSPEC_LTREL_OFFSET.
26062
26063 2011-03-04 Jan Hubicka <jh@suse.cz>
26064
26065 PR lto/47497
26066 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
26067 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
26068 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
26069 Add node pointers.
26070 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
26071 cgraph_add_thunk): Add node pointers.
26072 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
26073 associated to right node.
26074 (input_node): Update use of cgraph_same_body_alias
26075 and cgraph_add_thunk.
26076
26077 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
26078
26079 * config/i386/i386.opt (mprefer-avx128): New flag.
26080 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
26081 modes when the flag -mprefer-avx128 is on.
26082
26083 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
26084
26085 * dwarf2out.c (compare_loc_operands): Fix address handling.
26086
26087 2011-03-04 Alan Modra <amodra@gmail.com>
26088
26089 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
26090
26091 2011-03-04 Richard Guenther <rguenther@suse.de>
26092
26093 PR middle-end/47968
26094 * expmed.c (extract_bit_field_1): Prefer vector modes that
26095 vec_extract patterns can handle.
26096
26097 2011-03-04 Richard Guenther <rguenther@suse.de>
26098
26099 PR middle-end/47975
26100 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
26101
26102 2011-03-04 Richard Henderson <rth@redhat.com>
26103
26104 * explow.c (emit_stack_save): Remove 'after' parameter.
26105 (emit_stack_restore): Likewise.
26106 * expr.h: Update to match.
26107 * builtins.c, calls.c, stmt.c: Likewise.
26108 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
26109 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
26110 * function.c (expand_function_end): Insert the emit_stack_save
26111 sequence before parm_birth_insn instead of after.
26112
26113 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
26114
26115 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
26116 (ssse3_pmaddubsw128): Ditto.
26117 (ssse3_pmaddubsw): Ditto.
26118
26119 2011-03-03 Steve Ellcey <sje@cup.hp.com>
26120
26121 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
26122
26123 2011-03-03 Jakub Jelinek <jakub@redhat.com>
26124
26125 PR c/47963
26126 * gimplify.c (omp_add_variable): Only call omp_notice_variable
26127 on TYPE_SIZE_UNIT if it is a DECL.
26128
26129 PR debug/47283
26130 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
26131 first operand is not is_gimple_mem_ref_addr, try to fold it.
26132 If the operand still isn't is_gimple_mem_ref_addr, clear
26133 MEM_EXPR on op0.
26134
26135 2011-03-03 Richard Guenther <rguenther@suse.de>
26136
26137 PR middle-end/47283
26138 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
26139 match comment.
26140 (refs_may_alias_p_1): For release branches return true if
26141 we are confused by our input.
26142
26143 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26144
26145 * config/s390/s390.c (s390_function_value): Rename to ...
26146 (s390_function_and_libcall_value): ... this.
26147 (s390_function_value): New function.
26148 (s390_libcall_value): New function.
26149 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
26150 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
26151 target macro definitions.
26152 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
26153
26154 2011-03-02 Joseph Myers <joseph@codesourcery.com>
26155
26156 * config/i386/freebsd64.h (CC1_SPEC): Define.
26157 * config/i386/linux64.h (CC1_SPEC): Define.
26158 * config/i386/x86-64.h (CC1_SPEC): Don't define.
26159
26160 2011-03-02 Anatoly Sokolov <aesok@post.ru>
26161
26162 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
26163 Remove.
26164 * config/stormy16/stormy16.c: Include reload.h.
26165 (xstormy16_memory_move_cost): New function.
26166 (TARGET_MEMORY_MOVE_COST): Define.
26167
26168 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
26169
26170 PR rtl-optimization/47925
26171 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
26172 with side effects. Remove the more-specific check for volatile asms.
26173
26174 2011-03-02 Alan Modra <amodra@gmail.com>
26175
26176 PR target/47935
26177 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
26178 toc relative addresses for valid offsets.
26179
26180 2011-03-01 Richard Guenther <rguenther@suse.de>
26181
26182 PR tree-optimization/47890
26183 * tree-vect-loop.c (get_initial_def_for_induction): Set
26184 related stmt properly.
26185
26186 2011-03-01 Richard Guenther <rguenther@suse.de>
26187
26188 PR lto/47924
26189 * lto-streamer.c (lto_record_common_node): Also register
26190 the canonical type.
26191
26192 2011-03-01 Richard Guenther <rguenther@suse.de>
26193
26194 PR lto/46911
26195 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
26196 Do not stream DECL_ABSTRACT_ORIGIN.
26197 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
26198 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
26199 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
26200 Do not stream DECL_ABSTRACT_ORIGIN.
26201 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
26202 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
26203
26204 2011-02-28 Anatoly Sokolov <aesok@post.ru>
26205
26206 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
26207 FUNCTION_VALUE_REGNO_P): Remove.
26208 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
26209 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
26210 Add 'outgoing' argument.
26211 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
26212 function.
26213 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
26214 TARGET_FUNCTION_VALUE_REGNO_P): Define.
26215
26216 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
26217
26218 PR debug/28047
26219 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
26220 (lookup_filename): Likewise.
26221 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
26222
26223 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
26224 Jakub Jelinek <jakub@redhat.com>
26225
26226 PR middle-end/47893
26227 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
26228 (assign_stack_local_1): Change last argument type to int.
26229 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
26230 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
26231 don't record padding space into frame_space_list nor use those areas.
26232 (assign_stack_local): Adjust caller.
26233 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
26234 of assign_stack_local, pass 0 as last argument.
26235 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
26236 callers.
26237
26238 2011-02-28 Jakub Jelinek <jakub@redhat.com>
26239
26240 PR debug/47283
26241 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
26242 Use target address_mode and pointer_mode hooks instead of hardcoded
26243 Pmode and ptr_mode. Handle some simple cases of extending if
26244 POINTERS_EXTEND_UNSIGNED < 0.
26245 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
26246 Call convert_debug_memory_address.
26247 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
26248 convert_debug_memory_address.
26249
26250 PR middle-end/46790
26251 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
26252 * configure: Regenerated.
26253 * config.in: Regenerated.
26254 * varasm.c (default_function_section): Return NULL
26255 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
26256
26257 2011-02-28 Martin Jambor <mjambor@suse.cz>
26258
26259 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
26260 the description to match the printed values.
26261
26262 2011-02-28 Richard Guenther <rguenther@suse.de>
26263
26264 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
26265 of the copied scope tree.
26266
26267 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26268
26269 * doc/extend.texi (Function Attributes): Avoid deeply (and
26270 wrongly) nested tables.
26271
26272 2011-02-27 Jakub Jelinek <jakub@redhat.com>
26273
26274 PR middle-end/47903
26275 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
26276 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
26277 r isn't op0 nor op1.
26278
26279 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
26280
26281 * config/avr/avr.md: Remove magic comment for emacs.
26282
26283 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
26284
26285 PR target/45261
26286 * config/avr/avr.c (avr_option_override): Use error on bad options.
26287 (avr_help): New function.
26288 (TARGET_HELP): Define.
26289
26290 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
26291
26292 PR target/42240
26293 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
26294 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
26295
26296 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
26297
26298 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
26299 (ARM Options): Ditto.
26300 (i386 and x86-64 Options): Ditto.
26301 (RX Options): Ditto.
26302 (SPARC Options): Ditto.
26303
26304 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
26305
26306 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
26307 FreeBSD 6 and later. Generally use cpu generic.
26308
26309 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
26310
26311 * doc/cpp.texi: Update copyright years.
26312
26313 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
26314
26315 PR target/46898
26316 * config/lm32/lm32.md (ashrsi3): Added needed variable.
26317
26318 2011-02-25 Jon Beniston <jon@beniston.com>
26319
26320 PR target/46898
26321 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
26322 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
26323 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
26324 (lm32_block_move_inline): Add type cast to remove warning.
26325 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
26326 (gen_int_relational): Move declarations to start of function.
26327
26328 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
26329
26330 PR tree-optimization/45470
26331 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
26332 can throw internally only.
26333 * tree-vect-stmts.c (vectorizable_call): Likewise.
26334
26335 2011-02-24 Anatoly Sokolov <aesok@post.ru>
26336
26337 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
26338 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
26339 * config/stormy16/stormy16-protos.h
26340 (xstormy16_preferred_reload_class): Remove.
26341 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
26342 static. Change 'rclass' argument and return type to reg_class_t.
26343 (TARGET_PREFERRED_RELOAD_CLASS,
26344 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
26345
26346 2011-02-24 Richard Guenther <rguenther@suse.de>
26347
26348 * lto-streamer-in.c (input_bb): Do not find referenced vars
26349 in debug statements.
26350
26351 2011-02-23 Jason Merrill <jason@redhat.com>
26352
26353 * common.opt (fabi-version): Document v5 and v6.
26354
26355 2011-02-23 Richard Guenther <rguenther@suse.de>
26356
26357 PR tree-optimization/47849
26358 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
26359
26360 2011-02-23 Jie Zhang <jie@codesourcery.com>
26361
26362 * opts-common.c (decode_cmdline_option): Print empty string
26363 argument as "" in decoded->orig_option_with_args_text.
26364 * gcc.c (execute): Print empty string argument as ""
26365 in the verbose output.
26366 (do_spec_1): Keep empty string argument.
26367
26368 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
26369
26370 * config.gcc: Declare score-* and crx-* obsolete.
26371
26372 2011-02-23 Jie Zhang <jie@codesourcery.com>
26373
26374 PR rtl-optimization/47763
26375 * web.c (web_main): Ignore naked clobber when replacing register.
26376
26377 2011-02-22 Anatoly Sokolov <aesok@post.ru>
26378
26379 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
26380 Remove.
26381
26382 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
26383
26384 PR doc/47848
26385 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
26386
26387 2011-02-22 Mike Stump <mikestump@comcast.net>
26388
26389 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
26390 assembler.
26391 * configure: Regenerate.
26392
26393 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
26394
26395 PR rtl-optimization/46002
26396 * ira-color.c (update_copy_costs): Change class intersection
26397 test to reg_class_contents[] test of 'hard_regno'.
26398
26399 2011-02-21 Joseph Myers <joseph@codesourcery.com>
26400
26401 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
26402 than Driver option.
26403 * config/hpux11.opt (mt): Likewise.
26404 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
26405 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
26406 * config/vax/elf.opt (mno-asm-pic): Likewise.
26407 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
26408
26409 2011-02-21 Mike Stump <mikestump@comcast.net>
26410
26411 PR target/47822
26412 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
26413 tree so we can get save the type.
26414 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
26415 for CFString instead of trying to use past the end of the builtins.
26416 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
26417 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
26418 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
26419 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
26420 Rename to darwin_builtin_cfstring.
26421 (darwin_init_cfstring_builtins): Return the built type.
26422
26423 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
26424
26425 PR target/47840
26426 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
26427 (_mm256_insert_epi64): Use _mm_insert_epi64.
26428
26429 2011-02-21 Anatoly Sokolov <aesok@post.ru>
26430
26431 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26432 * config/stormy16/stormy16-protos.h
26433 (xstormy16_mode_dependent_address_p): Remove.
26434 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
26435 Make static. Change return type to bool. Change argument type to
26436 const_rtx. Remove dead code.
26437 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26438
26439 2011-02-21 Richard Guenther <rguenther@suse.de>
26440
26441 PR lto/47820
26442 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
26443 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
26444 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
26445 TUs context.
26446 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
26447 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
26448
26449 2011-02-20 Richard Guenther <rguenther@suse.de>
26450
26451 PR lto/47822
26452 * tree.c (free_lang_data_in_decl): Clean builtins from
26453 the TU decl BLOCK_VARS.
26454
26455 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
26456
26457 PR debug/47620
26458 PR debug/47630
26459 * haifa-sched.c (fix_tick_ready): Skip tick computation
26460 for debug insns.
26461
26462 2011-02-19 Richard Guenther <rguenther@suse.de>
26463
26464 PR lto/47647
26465 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
26466 Remove lazy BLOCK_VARS streaming.
26467 (lto_input_ts_block_tree_pointers): Likewise.
26468 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
26469
26470 2011-02-19 Joseph Myers <joseph@codesourcery.com>
26471
26472 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
26473
26474 2011-02-19 Joseph Myers <joseph@codesourcery.com>
26475
26476 * config/i386/biarch32.h, config/i386/mach.h,
26477 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
26478
26479 2011-02-19 Jakub Jelinek <jakub@redhat.com>
26480
26481 PR target/47800
26482 * config/i386/i386.md (peephole2 for shift and plus): Use
26483 operands[1] original mode in the first insn.
26484
26485 2011-02-18 Mike Stump <mikestump@comcast.net>
26486
26487 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
26488
26489 2011-02-18 Jan Hubicka <jh@suse.cz>
26490
26491 PR middle-end/47788
26492 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
26493 to zero when the function is not inlinable at all.
26494
26495 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26496
26497 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
26498 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
26499 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
26500 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
26501 * config/pa/t-pa64: Likewise.
26502 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
26503
26504 2011-02-18 Jakub Jelinek <jakub@redhat.com>
26505
26506 PR driver/47787
26507 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
26508
26509 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26510
26511 PR target/47792
26512 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
26513
26514 2011-02-18 Anatoly Sokolov <aesok@post.ru>
26515
26516 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
26517 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
26518 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
26519 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
26520 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
26521 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
26522 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
26523 m32r_load_postinc_p, m32r_store_preinc_predec_p,
26524 m32r_legitimate_address_p): New functions.
26525 * config/m32r/constraints.md (constraint "S"): Don't use
26526 STORE_PREINC_PREDEC_P.
26527 (constraint "U"): Don't use LOAD_POSTINC_P.
26528
26529 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
26530
26531 PR rtl-optimization/46178
26532 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
26533 compute ira_hard_regno_cover_class[].
26534
26535 2011-02-18 Richard Guenther <rguenther@suse.de>
26536
26537 PR lto/47798
26538 * lto-streamer.h (lto_global_var_decls): Declare.
26539 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
26540 statics for global var processing.
26541
26542 2011-02-18 Richard Guenther <rguenther@suse.de>
26543
26544 PR tree-optimization/47737
26545 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
26546 edge dominance check.
26547
26548 2011-02-18 Jakub Jelinek <jakub@redhat.com>
26549
26550 PR debug/47780
26551 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
26552 avoid invalid rtx sharing.
26553
26554 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
26555
26556 * doc/cpp.texi (Obsolete Features): Add background on the
26557 origin of assertions.
26558
26559 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
26560
26561 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
26562 objc_abi == 2.
26563 * config/darwin.c (output_objc_section_asm_op): Added support for
26564 ABI v1 and v2.
26565 (is_objc_metadata): New.
26566 (darwin_objc2_section): New.
26567 (darwin_objc1_section): New.
26568 (machopic_select_section): Added support for ABI v1 and v2.
26569 (darwin_emit_objc_zeroed): New.
26570 (darwin_output_aligned_bss): Detect objc metadata and treat it
26571 appropriately.
26572 (darwin_asm_output_aligned_decl_common): Same.
26573 (darwin_asm_output_aligned_decl_local): Same.
26574 * config/darwin-sections.def: Updated for ABI v1 and v2.
26575 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
26576 compiling Objective-C code for the NeXT runtime, default to using
26577 ABI version 0 for 32-bit, and version 2 for 64-bit.
26578
26579 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26580
26581 * common.opt (optimize_fast): New Variable.
26582 * opts.c (default_options_optimization): Use opts->x_optimize_fast
26583 instead of local variable ofast.
26584
26585 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
26586
26587 * doc/invoke.texi (fobjc-abi-version): Documented.
26588 (fobjc-nilcheck): Documented.
26589 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
26590 version.
26591
26592 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26593
26594 PR driver/47390
26595 * common.opt (export-dynamic): New Driver option.
26596 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
26597
26598 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26599
26600 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
26601
26602 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
26603 Jan Hubicka <jh@suse.cz>
26604
26605 PR debug/47106
26606 PR debug/47402
26607 * cfgexpand.c (account_used_vars_for_block): Remove.
26608 (estimated_stack_frame_size): Use referenced vars.
26609 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
26610 that were referenced in the original function. Test src_fn
26611 rather than cfun. Drop redundant get_var_ann.
26612 (setup_one_parameter): Drop redundant get_var_ann.
26613 (declare_return_variable): Likewise.
26614 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
26615 (copy_arguments_for_versioning): Drop redundant get_var_ann.
26616 * ipa-inline.c (compute_inline_parameters): Do not compute
26617 disregard_inline_limits here.
26618 (compute_inlinable_for_current, pass_inlinable): New.
26619 (pass_inline_parameters): Require PROP_referenced_vars.
26620 * cgraphunit.c (cgraph_process_new_functions): Don't run
26621 compute_inline_parameters explicitly unless function is in SSA form.
26622 (cgraph_analyze_function): Set .disregard_inline_limits.
26623 * tree-sra.c (convert_callers): Compute inliner parameters
26624 only for functions already in SSA form.
26625
26626 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26627
26628 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
26629 -mlittle-endian-data.
26630
26631 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26632
26633 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
26634 -mno-fpu, not -fpu and -no-fpu.
26635 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
26636 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
26637
26638 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
26639
26640 PR target/43653
26641 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
26642 input reload with PLUS RTX.
26643
26644 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26645
26646 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
26647 of InverseVar(MDMX).
26648
26649 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26650
26651 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
26652 --m4-340.
26653
26654 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26655
26656 * config/mn10300/mn10300.opt (mno-crt0): New.
26657
26658 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26659
26660 * config/m68k/uclinux.opt (static-libc): New Driver option.
26661
26662 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26663
26664 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
26665
26666 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26667
26668 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
26669 %{muser-extend-enabled}.
26670
26671 2011-02-16 Richard Guenther <rguenther@suse.de>
26672
26673 PR tree-optimization/47738
26674 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
26675 the TODO from tree_predictive_commoning.
26676
26677 2011-02-15 Jeff Law <law@redhat.com>
26678
26679 Revert
26680 2011-01-25 Jeff Law <law@redhat.com>
26681
26682 PR rtl-optimization/37273
26683 * ira-costs.c (scan_one_insn): Detect constants living in memory and
26684 handle them like argument loads from stack slots. Do not double
26685 count memory for memory constants and argument loads from stack slots.
26686
26687 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
26688
26689 PR target/47755
26690 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
26691 mode for vector constants. Remove code that checks for TImode.
26692
26693 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26694
26695 PR debug/47106
26696 PR debug/47402
26697 * cgraph.h (compute_inline_parameters): Return void.
26698 * ipa-inline.c (compute_inline_parameters): Adjust.
26699
26700 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26701
26702 PR debug/47106
26703 PR debug/47402
26704 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
26705 rather than decl.
26706 * cfgexpand.c (estimated_stack_frame_size): Likewise.
26707 * ipa-inline.c (compute_inline_parameters): Adjust.
26708
26709 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26710
26711 PR debug/47106
26712 PR debug/47402
26713 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
26714 Adjust all users. Pass FN to...
26715 * tree-flow-inline.h (first_referenced_var): ... this. Add
26716 fn argument.
26717 * ipa-struct-reorg.c: Adjust.
26718 * tree-dfa.c: Adjust.
26719 * tree-into-ssa.c: Adjust.
26720 * tree-sra.c: Adjust.
26721 * tree-ssa-alias.c: Adjust.
26722 * tree-ssa-live.c: Adjust.
26723 * tree-ssa.c: Adjust.
26724 * tree-ssanames.c: Adjust.
26725 * tree-tailcall.c: Adjust.
26726
26727 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26728
26729 PR debug/47106
26730 PR debug/47402
26731 * tree-flow.h (referenced_var_lookup): Add fn parameter.
26732 Adjust all callers.
26733 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
26734 * tree-flow-inline.h: Adjust.
26735 * gimple-pretty-print.c: Adjust.
26736 * tree-into-ssa.c: Adjust.
26737 * tree-ssa.c: Adjust.
26738 * cfgexpand.c: Adjust.
26739
26740 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26741
26742 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
26743 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26744 (EXTRA_CONSTRAINT): Delete.
26745 * config/iq2000/constraints.md: New file.
26746 * config/iq2000/iq2000.md: Include it.
26747 (define_insn ""): Delete.
26748 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
26749 unsupported constraint letters from patterns.
26750 (call_value, call_value_internal1): Likewise.
26751 (call_value_multiple_internal1): Likewise.
26752
26753 2011-02-15 Nick Clifton <nickc@redhat.com>
26754
26755 * config/mn10300/mn10300.c: Include tm-constrs.h.
26756 (struct liw_data): New data structure describing an LIW candidate
26757 instruction.
26758 (extract_bundle): Use struct liw_data. Allow small integer
26759 operands for some instructions.
26760 (check_liw_constraints): Use struct liw_data. Remove swapped
26761 parameter. Add comments describing the checks. Fix bug when
26762 assigning the source of liw1 to the source of liw2.
26763 (liw_candidate): Delete. Code moved into extract_bundle.
26764 (mn10300_bundle_liw): Use struct liw_data. Check constraints
26765 before swapping.
26766 * config/mn10300/predicates.md (liw_operand): New predicate.
26767 Allows registers and small integer constants.
26768 * config/mn10300/constraints.md (O): New constraint. Accetps
26769 integers in the range -8 to +7 inclusive.
26770 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
26771 for moving a small integer into a register. Give this alternative
26772 LIW attributes.
26773 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
26774 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
26775 using the J,K,L and M constraints,
26776 (liw): Remove SI mode on second operands to allow for HI and QI
26777 mode values.
26778 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
26779 instruction.
26780
26781 2011-02-15 Richard Guenther <rguenther@suse.de>
26782
26783 PR tree-optimization/47743
26784 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
26785 for a non-type-compatible VN lookup bail out.
26786
26787 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26788
26789 * config/fr30/constraints.md: New file.
26790 * config/fr30/fr30.md: Include it.
26791 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
26792 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26793 (EXTRA_CONSTRAINT): Delete.
26794
26795 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26796
26797 * config/frv/constraints.md: New file.
26798 * config/frv/predicates.md: Include it.
26799 * config/frv/frv.c (reg_class_from_letter): Delete.
26800 (frv_option_override): Don't initialize it.
26801 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
26802 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
26803 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
26804 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
26805 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
26806 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26807 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
26808 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
26809 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
26810 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
26811 (REG_CLASS_FROM_CONSTRAINT): Delete.
26812
26813 2011-02-15 Jakub Jelinek <jakub@redhat.com>
26814
26815 PR middle-end/47581
26816 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
26817 if frame size is 0 in a leaf function.
26818
26819 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26820
26821 PR pch/14940
26822 * config/alpha/host-osf.c: New file.
26823 * config/alpha/x-osf: New file.
26824 * config.host (alpha*-dec-osf*): Use it.
26825
26826 2011-02-14 Anatoly Sokolov <aesok@post.ru>
26827
26828 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26829 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
26830 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
26831 (rx_mode_dependent_address_p): ...this. Make static. Change argument
26832 type to const_rtx.
26833 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26834
26835 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
26836
26837 * config/stormy16/constraints.md: New file.
26838 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
26839 Use satisfies_constraint_Q and satisfies_constraint_R.
26840 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
26841 Delete.
26842 (xstormy16_legitiamte_address_p): Declare.
26843 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
26844 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26845 (EXTRA_CONSTRAINT): Delete.
26846 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
26847 Un-staticize.
26848 (xstormy16_extra_constraint_p): Delete.
26849
26850 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
26851
26852 PR tree-optimization/46494
26853 * loop-unroll.c (split_edge_and_insert): Adjust comment.
26854 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
26855 (pass_rtl_loop_done): Add TODO_verify_flow.
26856 * fwprop.c (pass_rtl_fwprop): Likewise.
26857 * modulo-sched.c (pass_sms): Likewise.
26858 * tree-ssa-dom.c (pass_dominator): Likewise.
26859 * tree-ssa-loop-ch.c (pass_ch): Likewise.
26860 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
26861 (pass_tree_loop_done): Likewise.
26862 * tree-ssa-pre.c (execute_pre): Likewise.
26863 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
26864 * tree-ssa-sink.c (pass_sink_code): Likewise.
26865 * tree-vrp.c (pass_vrp): Likewise.
26866
26867 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
26868
26869 * config/v850/constraints.md: New file.
26870 * config/v850/v850.md: Include it.
26871 * config/v850/predicates.md (reg_or_0_operand): Use
26872 satisfies_constraint_G.
26873 (special_symbolref_operand): Use satisfies_constraint_K.
26874 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
26875 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
26876 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
26877 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
26878 (EXTRA_CONSTRAINT): Delete.
26879 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
26880 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
26881 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
26882
26883 2011-02-14 Anatoly Sokolov <aesok@post.ru>
26884
26885 PR target/47696
26886 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
26887 description.
26888
26889 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
26890
26891 * config/mcore/constraints.md: New file.
26892 * config/mcore/mcore.md: Include it.
26893 * config/mcore/mcore.c (reg_class_from_letter): Delete.
26894 * config/mcore/mcore.h (reg_class_from_letter): Delete.
26895 (REG_CLASS_FROM_LETTER): Delete.
26896 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
26897 insn_const_int_ok_for_constraint.
26898 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
26899 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
26900 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26901 (EXTRA_CONSTRAINT): Delete.
26902
26903 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26904
26905 PR ada/41929
26906 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
26907 (IS_SIGHANDLER): Define.
26908 (sparc64_is_sighandler): New function, split off from
26909 sparc64_fallback_frame_state.
26910 (sparc_is_sighandler): New function, split off from
26911 sparc_fallback_frame_state.
26912 (sparc64_fallback_frame_state): Merge with ...
26913 (sparc_fallback_frame_state): ... this into ...
26914 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
26915 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
26916 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
26917 stack instead of hardcoded offsets.
26918
26919 2011-02-14 Andriy Gapon <avg@freebsd.org>
26920
26921 PR target/45808
26922 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
26923
26924 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26925
26926 * configure: Regenerate.
26927
26928 2011-02-12 Joseph Myers <joseph@codesourcery.com>
26929
26930 PR driver/45731
26931 * gcc.c (asm_options): Correct spec matching --target-help.
26932
26933 2011-02-12 Martin Jambor <mjambor@suse.cz>
26934
26935 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
26936 to gimple call error.
26937
26938 2011-02-12 Mike Stump <mikestump@comcast.net>
26939
26940 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
26941 comments in backslash regions.
26942
26943 2011-02-12 Mike Stump <mikestump@comcast.net>
26944 Jakub Jelinek <jakub@redhat.com>
26945 Iain Sandoe <iains@gcc.gnu.org>
26946
26947 PR target/47324
26948 * dwarf2out.c (output_cfa_loc): When required, apply the
26949 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
26950 (output_loc_sequence): Likewise.
26951 (output_loc_operands_raw): Likewise.
26952 (output_loc_sequence_raw): Likewise.
26953 (output_cfa_loc): Likewise.
26954 (output_loc_list): Suppress register number adjustment when
26955 calling output_loc_sequence()
26956 (output_die): Likewise.
26957
26958 2011-02-12 Anatoly Sokolov <aesok@post.ru>
26959
26960 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
26961 Remove macros.
26962 * config/xtensa/xtensa.c (xtensa_register_move_cost,
26963 xtensa_memory_move_cost): New functions.
26964 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
26965
26966 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
26967
26968 PR lto/47225
26969 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
26970 in the current directory.
26971 * configure: Rebuilt.
26972
26973 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
26974
26975 * config/darwin.c (darwin_override_options): Add a hunk missed
26976 from the commit of r168571. Trim comment line lengths and
26977 correct indents of the preceding block.
26978
26979 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
26980
26981 * gcc.c (driver_handle_option): Concatenate the argument to -F with
26982 the switch.
26983
26984 2011-02-11 Joseph Myers <joseph@codesourcery.com>
26985
26986 * common.opt (nostartfiles): New Driver option.
26987
26988 2011-02-11 Xinliang David Li <davidxl@google.com>
26989
26990 PR tree-optimization/47707
26991 * tree-chrec.c (convert_affine_scev): Keep type precision.
26992
26993 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
26994
26995 PR tree-optimization/47420
26996 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
26997
26998 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
26999
27000 PR rtl-optimization/47614
27001 * rtl.h (check_for_inc_dec): Declare.
27002 * dse.c (check_for_inc_dec): Externalize...
27003 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
27004 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
27005
27006 2011-02-11 Joseph Myers <joseph@codesourcery.com>
27007
27008 PR driver/47678
27009 * gcc.c (main): Do not compile inputs if there were errors in
27010 option handling.
27011 * opts-common.c (read_cmdline_option): Check for wrong language
27012 after other error checks.
27013
27014 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
27015
27016 * cgraph.c: Fix comment typos.
27017 * cgraph.h: Likewise.
27018 * cgraphunit.c: Likewise.
27019 * ipa-cp.c: Likewise.
27020 * ipa-inline.c: Likewise.
27021 * ipa-prop.c: Likewise.
27022 * ipa-pure-const.c: Likewise.
27023 * ipa-ref.c: Likewise.
27024 * ipa-reference.c: Likewise.
27025
27026 2011-02-11 Jakub Jelinek <jakub@redhat.com>
27027
27028 PR debug/47684
27029 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
27030
27031 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27032
27033 PR testsuite/47400
27034 * doc/sourcebuild.texi (Require Support): Document
27035 dg-require-ascii-locale.
27036
27037 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
27038
27039 * doc/lto.texi (Write summary): Fix missing parentheses.
27040
27041 2011-02-10 DJ Delorie <dj@redhat.com>
27042
27043 * config/m32c/m32c.c (m32c_option_override): Disable
27044 -fcombine-stack-adjustments until flag value tracking and compare
27045 optimization can be rewritten.
27046
27047 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
27048
27049 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
27050 PROCESSOR_POWER7.
27051 (PROCESSOR_DEFAULT64): Likewise.
27052
27053 2011-02-10 Richard Henderson <rth@redhat.com>
27054
27055 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
27056 change from 2011-02-03.
27057 * config/rx/rx.c (flags_from_code): Likewise.
27058 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
27059 is valid, n/pz otherwise.
27060 (rx_select_cc_mode): Return CCmode if Y is not zero.
27061
27062 2011-02-10 Richard Guenther <rguenther@suse.de>
27063
27064 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
27065
27066 2011-02-10 Richard Guenther <rguenther@suse.de>
27067
27068 PR tree-optimization/47677
27069 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
27070
27071 2011-02-10 Jakub Jelinek <jakub@redhat.com>
27072
27073 PR target/47665
27074 * combine.c (make_compound_operation): Only change shifts into
27075 multiplication for SCALAR_INT_MODE_P.
27076
27077 2011-02-10 Jie Zhang <jie@codesourcery.com>
27078
27079 PR testsuite/47622
27080 Revert
27081 2011-02-05 Jie Zhang <jie@codesourcery.com>
27082 PR debug/42631
27083 * web.c (entry_register): Don't clobber the number of the
27084 first uninitialized reference in used[].
27085
27086 2011-02-09 Richard Guenther <rguenther@suse.de>
27087
27088 PR tree-optimization/47664
27089 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
27090 all edges again.
27091
27092 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
27093
27094 PR target/46481
27095 PR target/47032
27096 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
27097 PROCESSOR_POWER7.
27098 (PROCESSOR_DEFAULT64): Same.
27099 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
27100
27101 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27102
27103 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
27104
27105 2011-02-09 Martin Jambor <mjambor@suse.cz>
27106
27107 PR middle-end/45505
27108 * tree-sra.c (struct access): New flags grp_scalar_read and
27109 grp_scalar_write. Changed description of assignment read and write
27110 flags.
27111 (dump_access): Dump new flags, reorder all of them.
27112 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
27113 to detect multiple scalar reads.
27114 (analyze_access_subtree): Use the new scalar read write flags instead
27115 of the old flags. Adjusted comments.
27116
27117 2011-02-08 DJ Delorie <dj@redhat.com>
27118
27119 PR target/47548
27120 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
27121 patterns.
27122
27123 2011-02-08 Joseph Myers <joseph@codesourcery.com>
27124
27125 * config/m68k/uclinux.opt: New.
27126 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
27127
27128 2011-02-08 Joseph Myers <joseph@codesourcery.com>
27129
27130 * config/cris/elf.opt (sim): New Driver option.
27131
27132 2011-02-08 Joseph Myers <joseph@codesourcery.com>
27133
27134 * config/xtensa/elf.opt: New.
27135 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
27136
27137 2011-02-08 Joseph Myers <joseph@codesourcery.com>
27138
27139 * config/vax/elf.opt: New.
27140 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
27141
27142 2011-02-08 Joseph Myers <joseph@codesourcery.com>
27143
27144 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
27145
27146 2011-02-08 Joseph Myers <joseph@codesourcery.com>
27147
27148 * config/gnu-user.opt: New.
27149 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
27150 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
27151 *-*-uclinux*): Use gnu-user.opt.
27152
27153 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
27154
27155 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
27156 * config/i386/gnu.h (CPP_SPEC): Likewise.
27157
27158 2011-02-08 Ian Lance Taylor <iant@google.com>
27159
27160 * common.opt (fcx-limited-range): Add SetByCombined flag.
27161 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
27162 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
27163 (fassociative-math, freciprocal-math): Likewise.
27164 (funsafe-math-optimizations): Likewise.
27165 * opth-gen.awk: Handle SetByCombined.
27166 * optc-gen.awk: Likewise.
27167 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
27168 (set_unsafe_math_optimizations_flags): Likewise.
27169 * doc/options.texi (Option properties): Document SetByCombined.
27170
27171 2011-02-08 Joseph Myers <joseph@codesourcery.com>
27172
27173 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
27174 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
27175 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
27176 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
27177 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
27178
27179 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
27180
27181 PR tree-optimization/46834
27182 PR tree-optimization/46994
27183 PR tree-optimization/46995
27184 * graphite-sese-to-poly.c (used_outside_reduction): New.
27185 (detect_commutative_reduction): Call used_outside_reduction.
27186 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
27187 translate_scalar_reduction_to_array only when at least one
27188 loop-phi/close-phi tuple has been detected.
27189
27190 2011-02-08 Richard Guenther <rguenther@suse.de>
27191
27192 PR middle-end/47639
27193 * tree-vect-generic.c (expand_vector_operations_1): Update
27194 stmts here ...
27195 (expand_vector_operations): ... not here. Cleanup EH info
27196 and the CFG if required.
27197
27198 2011-02-08 Richard Guenther <rguenther@suse.de>
27199
27200 PR tree-optimization/47641
27201 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
27202 require type compatibility.
27203
27204 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27205
27206 * gimple-low.c (lower_function_body): Don't remove the location of
27207 the return statement here.
27208 (lower_gimple_return): Do it here instead but only if the return
27209 statement is actually used twice.
27210
27211 2011-02-08 Richard Guenther <rguenther@suse.de>
27212
27213 PR tree-optimization/47632
27214 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
27215 unused up_to_stmt parameter, return whether cfg-cleanup is
27216 necessary, remove EH info properly.
27217 (forward_propagate_into_gimple_cond): Adjust caller.
27218 (forward_propagate_into_cond): Likewise.
27219 (forward_propagate_comparison): Likewise.
27220 (tree_ssa_forward_propagate_single_use_vars): Make
27221 forward_propagate_comparison case similar to the two others.
27222
27223 2011-02-08 Nick Clifton <nickc@redhat.com>
27224
27225 * config/mn10300/mn10300.opt (mliw): New command line option.
27226 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
27227 (liw_bundling): New automaton.
27228 (liw): New attribute.
27229 (liw_op): New attribute.
27230 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
27231 (movsi_internal): Add LIW attributes.
27232 (andsi3): Likewise.
27233 (iorsi3): Likewise.
27234 (xorsi3): Likewise.
27235 (addsi3): Separate register and immediate alternatives.
27236 Add LIW attributes.
27237 (subsi3): Likewise.
27238 (cmpsi): Likewise.
27239 (aslsi3): Likewise.
27240 (lshrsi3): Likewise.
27241 (ashrsi3): Likewise.
27242 (liw): New pattern.
27243 * config/mn10300/mn10300.c (liw_op_names): New
27244 (mn10300_print_operand): Handle 'W' operand descriptor.
27245 (extract_bundle): New function.
27246 (check_liw_constraints): New function.
27247 (liw_candidate): New function.
27248 (mn10300_bundle_liw): New function.
27249 (mn10300_reorg): New function.
27250 (TARGET_MACHINE_DEPENDENT_REORG): Define.
27251 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
27252 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
27253 __LIW__ or __NO_LIW__.
27254 * doc/invoke.texi: Describe the -mliw command line option.
27255
27256 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27257
27258 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
27259 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
27260 pthread_mutex_unlock): Remove.
27261 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
27262 * config/pa/t-pa64: Likewise.
27263 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
27264 shared libc if not linking against libpthread.
27265 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
27266
27267 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
27268
27269 PR target/47558
27270 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
27271 on 10.6 and later to ensure that we always use the unwinder from
27272 the system. Only add -no_compact_unwind when tarteting darwin
27273 10.6 or later.
27274
27275 2011-02-07 Steve Ellcey <sje@cup.hp.com>
27276
27277 PR target/46997
27278 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
27279 (vec_interleave_lowv2sf): Ditto.
27280 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
27281 (vec_extract_oddv2sf): Ditto.
27282
27283 2011-02-07 Mike Stump <mikestump@comcast.net>
27284
27285 PR target/42333
27286 Add __ieee_divdc3 entry point.
27287 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
27288 entry point.
27289 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
27290 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
27291 * config/darwin.c (darwin_rename_builtins): Add.
27292 * config/darwin-protos.h (darwin_rename_builtins): Add.
27293
27294 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
27295
27296 PR target/47636
27297 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
27298 for the condition.
27299
27300 2011-02-07 Mike Stump <mikestump@comcast.net>
27301
27302 * config/darwin.opt (mmacosx-version-min): Update default OS version.
27303
27304 2011-02-07 Denis Chertykov <chertykov@gmail.com>
27305
27306 PR target/47534
27307 * config/avr/libgcc.S (exit): Move .endfunc
27308
27309 2011-02-07 Richard Guenther <rguenther@suse.de>
27310
27311 PR tree-optimization/47615
27312 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
27313 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
27314 (run_scc_vn): Initialize it.
27315 (visit_reference_op_load): Use it.
27316 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
27317
27318 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27319
27320 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
27321 DImode trapping arithmetic libfuncs.
27322
27323 2011-02-07 Richard Guenther <rguenther@suse.de>
27324
27325 PR tree-optimization/47621
27326 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
27327 two duplicates ...
27328 (execute_update_addresses_taken): ... here. Make it more
27329 conservative in what we accept.
27330
27331 2011-02-06 Joseph Myers <joseph@codesourcery.com>
27332
27333 * config/sparc/freebsd.h (ASM_SPEC): Define.
27334 * config/sparc/vxworks.h (ASM_SPEC): Define.
27335
27336 2011-02-06 Joseph Myers <joseph@codesourcery.com>
27337
27338 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
27339
27340 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
27341
27342 * doc/invoke.texi: Remove reference to compiler internals from
27343 user documentation.
27344
27345 * reg-notes.def: Remove REG_VALUE_PROFILE.
27346 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
27347
27348 2011-02-05 Jakub Jelinek <jakub@redhat.com>
27349
27350 PR middle-end/47610
27351 * varasm.c (default_section_type_flags): If decl is NULL,
27352 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
27353
27354 2011-02-05 Jie Zhang <jie@codesourcery.com>
27355
27356 PR debug/42631
27357 * web.c (entry_register): Don't clobber the number of the
27358 first uninitialized reference in used[].
27359
27360 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
27361
27362 PR tree-optimization/46194
27363 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
27364 (build_classic_dist_vector_1): Do not represent classic distance
27365 vectors when the access functions are variating in different loops.
27366
27367 2011-02-04 Joseph Myers <joseph@codesourcery.com>
27368
27369 * config/mips/iris6.opt: New.
27370 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
27371
27372 2011-02-04 Richard Henderson <rth@redhat.com>
27373 Steve Ellcey <sje@cup.hp.com>
27374
27375 PR target/46997
27376 * config/ia64/predicates.md (mux1_brcst_element): New.
27377 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
27378 * config/ia64/ia64.c (ia64_unpack_assemble): New.
27379 (ia64_unpack_sign): New.
27380 (ia64_expand_unpack): Rewrite using new routines.
27381 (ia64_expand_widen_sum): Ditto.
27382 (ia64_expand_dot_prod_v8qi): Ditto.
27383 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
27384 routines, add endian check.
27385 (pmpy2_even): Rename from pmpy2_r, add endian check.
27386 (pmpy2_odd): Rename from pmpy2_l, add endian check.
27387 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
27388 (vec_widen_smult_hi_v4hi): Ditto.
27389 (vec_widen_umult_lo_v4hi): Ditto.
27390 (vec_widen_umult_hi_v4hi): Ditto.
27391 (mulv2si3): Change endian checks.
27392 (sdot_prodv4hi): Rewrite with new calls.
27393 (udot_prodv4hi): New.
27394 (vec_pack_ssat_v4hi): Add endian check.
27395 (vec_pack_usat_v4hi): Ditto.
27396 (vec_pack_ssat_v2si): Ditto.
27397 (max1_even): Rename from max1_r, add endian check.
27398 (max1_odd): Rename from max1_l, add endian check.
27399 (*mux1_rev): Format change.
27400 (*mux1_mix): Ditto.
27401 (*mux1_shuf): Ditto.
27402 (*mux1_alt): Ditto.
27403 (*mux1_brcst_v8qi): Use new predicate.
27404 (vec_extract_evenv8qi): Remove endian check.
27405 (vec_extract_oddv8qi): Ditto.
27406 (vec_interleave_lowv4hi): Format change.
27407 (vec_interleave_highv4hi): Ditto.
27408 (mix2_even): Rename from mix2_r, add endian check.
27409 (mix2_odd): Rename from mux2_l, add endian check.
27410 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
27411 (vec_extract_evenodd_helper): Format change.
27412 (vec_extract_evenv4hi): Remove endian check.
27413 (vec_extract_oddv4hi): Remove endian check.
27414 (vec_interleave_lowv2si): Format change.
27415 (vec_interleave_highv2si): Format change.
27416 (vec_initv2si): Remove endian check.
27417 (vecinit_v2si): Add endian check.
27418 (reduc_splus_v2sf): Add endian check.
27419 (reduc_smax_v2sf): Ditto.
27420 (reduc_smin_v2sf): Ditto.
27421 (vec_initv2sf): Remove endian check.
27422 (fpack): Add endian check.
27423 (fswap): Add endian check.
27424 (vec_interleave_highv2sf): Add endian check.
27425 (vec_interleave_lowv2sf): Add endian check.
27426 (fmix_lr): Add endian check.
27427 (vec_setv2sf): Format change.
27428 (*vec_extractv2sf_0_be): Use shift to extract operand.
27429 (*vec_extractv2sf_1_be): New.
27430 (vec_pack_trunc_v4hi): Add endian check.
27431 (vec_pack_trunc_v2si): Format change.
27432
27433 2011-02-04 Jakub Jelinek <jakub@redhat.com>
27434
27435 PR inline-asm/23200
27436 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
27437 do bb, locus and block comparison and disallow loads if it is not set.
27438 (stmt_is_replaceable_p): New function.
27439 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
27440 callers.
27441 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
27442 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
27443 SSA_NAME_DEF_STMT.
27444 * tree-flow.h (stmt_is_replaceable_p): New prototype.
27445
27446 2011-02-04 Joseph Myers <joseph@codesourcery.com>
27447
27448 * config/rs6000/xilinx.opt: New.
27449 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
27450
27451 2011-02-04 Joseph Myers <joseph@codesourcery.com>
27452
27453 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
27454
27455 2011-02-03 Anatoly Sokolov <aesok@post.ru>
27456
27457 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
27458 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
27459 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
27460 secondary_reload_info, xtensa_secondary_reload): Remove.
27461 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
27462 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
27463 (xtensa_preferred_reload_class): Make static. Change return and
27464 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
27465 Use CONST_DOUBLE_P predicate.
27466 (xtensa_preferred_output_reload_class): New function.
27467 (xtensa_secondary_reload): Make static.
27468
27469 2011-02-03 Joseph Myers <joseph@codesourcery.com>
27470
27471 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
27472 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
27473 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
27474
27475 2011-02-03 Jakub Jelinek <jakub@redhat.com>
27476
27477 PR middle-end/31490
27478 * output.h (SECTION_RELRO): Define.
27479 (SECTION_MACH_DEP): Adjust.
27480 (get_variable_section): New prototype.
27481 * varpool.c (varpool_finalize_named_section_flags): New function.
27482 (varpool_assemble_pending_decls): Call it.
27483 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
27484 * cgraphunit.c (cgraph_output_in_order): Call
27485 varpool_finalize_named_section_flags.
27486 * varasm.c (get_section): Allow section flags conflicts between
27487 relro and read-only sections if the section hasn't been declared yet.
27488 Set SECTION_OVERRIDE after diagnosing section type conflict.
27489 (get_variable_section): No longer static.
27490 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
27491 readonly sections that need relocations.
27492 (decl_readonly_section_1): New function.
27493 (decl_readonly_section): Use it.
27494
27495 Revert:
27496 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
27497 Steve Ellcey <sje@cup.hp.com>
27498
27499 PR middle-end/31490
27500 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
27501 if section attribute used.
27502
27503 2011-02-03 Jakub Jelinek <jakub@redhat.com>
27504
27505 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
27506 * config/darwin.c (SECTION_NO_ANCHOR): Define.
27507 (darwin_init_sections): Remove assertion.
27508
27509 2011-02-03 Nick Clifton <nickc@redhat.com>
27510
27511 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
27512 lt and ge.
27513 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
27514 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
27515 instead of "n" and "pz".
27516 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
27517 CC_FLAG_S.
27518
27519 2011-02-03 Jakub Jelinek <jakub@redhat.com>
27520
27521 PR target/47312
27522 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
27523 fma, expand FMA_EXPR as fma{,f,l} call.
27524
27525 PR lto/47274
27526 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
27527 copy them into a unsigned char variable and pass address of it to
27528 lto_output_data_stream.
27529
27530 PR target/47564
27531 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
27532 around backend_init_target and lang_dependent_init_target calls.
27533 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
27534 (verify_cgraph_node): Don't call set_cfun here. Use
27535 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
27536 Set error_found for incorrectly represented calls to thunks.
27537
27538 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
27539
27540 PR debug/43092
27541 PR rtl-optimization/43494
27542 * rtl.h (for_each_inc_dec_fn): New type.
27543 (for_each_inc_dec): Declare.
27544 * rtlanal.c (struct for_each_inc_dec_ops): New type.
27545 (for_each_inc_dec_find_inc_dec): New fn.
27546 (for_each_inc_dec_find_mem): New fn.
27547 (for_each_inc_dec): New fn.
27548 * dse.c (struct insn_size): Remove.
27549 (replace_inc_dec, replace_inc_dec_mem): Remove.
27550 (emit_inc_dec_insn_before): New fn.
27551 (check_for_inc_dec): Use it, along with for_each_inc_dec.
27552 (canon_address): Pass mem modes to cselib_lookup.
27553 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
27554 (cselib_lookup_from_insn): Likewise.
27555 (cselib_subst_to_values): Likewise.
27556 * cselib.c (find_slot_memmode): New var.
27557 (cselib_find_slot): New fn. Use it instead of
27558 htab_find_slot_with_hash everywhere.
27559 (entry_and_rtx_equal_p): Use find_slot_memmode.
27560 (autoinc_split): New fn.
27561 (rtx_equal_for_cselib_p): Rename and implement in terms of...
27562 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
27563 Deal with autoinc. Special-case recursion into MEMs.
27564 (cselib_hash_rtx): Likewise.
27565 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
27566 address and MEM modes.
27567 (cselib_subst_to_values): Add memmode, pass it on.
27568 Deal with autoinc.
27569 (cselib_lookup): Add memmode argument, pass it on.
27570 (cselib_lookup_from_insn): Add memmode.
27571 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
27572 (struct cselib_record_autoinc_data): New.
27573 (cselib_record_autoinc_cb): New fn.
27574 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
27575 mode to cselib_lookup. Reset autoinced REGs here instead of...
27576 (cselib_process_insn): ... here.
27577 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
27578 to cselib_lookup.
27579 (add_uses): Likewise, also to cselib_subst_to_values.
27580 (add_stores): Likewise.
27581 * sched-deps.c (add_insn_mem_dependence): Pass mode to
27582 cselib_subst_to_values.
27583 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
27584 * gcse.c (do_local_cprop): Adjusted.
27585 * postreload.c (reload_cse_simplify_set): Adjusted.
27586 (reload_cse_simplify_operands): Adjusted.
27587 * sel-sched-dump (debug_mem_addr_value): Pass mode.
27588
27589 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
27590
27591 PR tree-optimization/45122
27592 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
27593 unsafe assumptions when there's more than one loop exit.
27594
27595 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27596
27597 PR target/47272
27598 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27599 Document using vector double with the load/store builtins, and
27600 that the load/store builtins always use Altivec instructions.
27601
27602 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
27603 to use altivec memory instructions, even on VSX.
27604 (vector_altivec_store_<mode>): Ditto.
27605
27606 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
27607 function.
27608
27609 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27610 V2DF, V2DI support to load/store overloaded builtins.
27611
27612 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
27613 altivec load/store builtins for V2DF/V2DI types.
27614
27615 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27616 set avoid indexed addresses on power6 if -maltivec.
27617 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
27618 vector_altivec_load/vector_altivec_store builtins.
27619 (altivec_expand_st_builtin): Ditto.
27620 (altivec_expand_builtin): Add VSX memory builtins.
27621 (rs6000_init_builtins): Add V2DI types to internal types.
27622 (altivec_init_builtins): Add support for V2DF/V2DI altivec
27623 load/store builtins.
27624 (rs6000_address_for_altivec): Insure memory address is appropriate
27625 for Altivec.
27626
27627 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
27628 vec_vsx_ld and vec_vsx_st.
27629 (vsx_store_<mode>): Ditto.
27630
27631 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
27632 variables to hold long long types for VSX vector memory builtins.
27633 (RS6000_BTI_unsigned_long_long): Ditto.
27634 (long_long_integer_type_internal_node): Ditti.
27635 (long_long_unsigned_type_internal_node): Ditti.
27636
27637 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
27638 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
27639 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
27640
27641 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
27642 short cuts.
27643 (vec_vsx_st): Ditto.
27644
27645 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27646
27647 * config/pa/pa-hpux10.opt: New.
27648 * config/hpux11.opt (pthread): New Driver option.
27649 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
27650 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
27651
27652 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27653
27654 * config/ia64/vms.opt: New.
27655 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
27656
27657 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
27658
27659 PR target/47580
27660 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
27661 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
27662 generator functions.
27663 (vsx_floatuns<VSi><mode>2): Ditto.
27664 (vsx_fix_trunc<mode><VSi>2): Ditto.
27665 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
27666
27667 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27668
27669 * config/i386/djgpp.opt (posix): New Driver option.
27670
27671 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
27672
27673 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
27674 Move to the unsupported targets list.
27675
27676 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
27677
27678 PR rtl-optimization/47525
27679 * df-scan.c: Update copyright years.
27680 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
27681 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
27682
27683 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27684
27685 * config/i386/sysv4.h (TARGET_VERSION): Remove.
27686 (SUBTARGET_RETURN_IN_MEMORY): Remove.
27687 (ASM_OUTPUT_ASCII): Remove.
27688 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
27689
27690 2011-02-02 Jeff Law <law@redhat.com>
27691
27692 PR middle-end/47543
27693 * reload.c (find_reloads_address): Handle reg+d address where both
27694 components are invalid by reloading the entire address.
27695
27696 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
27697 Richard Guenther <rguenther@suse.de>
27698
27699 PR tree-optimization/40979
27700 PR bootstrap/47044
27701 * passes.c (init_optimization_passes): After LIM call copy_prop
27702 and DCE to clean up.
27703 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
27704
27705 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
27706
27707 PR tree-optimization/47576
27708 PR tree-optimization/47555
27709 * doc/invoke.texi (scev-max-expr-complexity): Documented.
27710 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27711 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
27712 * tree-scalar-evolution.c (follow_ssa_edge): Use
27713 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
27714
27715 2011-02-02 Richard Guenther <rguenther@suse.de>
27716
27717 PR tree-optimization/47566
27718 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
27719
27720 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
27721
27722 PR debug/47106
27723 PR debug/47402
27724 * tree-inline.c (declare_return_variable): Remove unused caller
27725 variable.
27726
27727 PR debug/47106
27728 PR debug/47402
27729 * tree-flow-inline.h (clear_is_used, is_used_p): New.
27730 * cfgexpand.c (account_used_vars_for_block): Use them.
27731 * tree-nrv.c (tree_nrv): Likewise.
27732 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
27733 (dump_scope_block): Likewise.
27734 (remove_unused_locals): Likewise.
27735
27736 PR debug/47106
27737 PR debug/47402
27738 * tree-inline.c (declare_return_variable): Add result decl to
27739 local decls only once.
27740 * gimple-low.c (record_vars_into): Mark newly-created variables
27741 as referenced.
27742
27743 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
27744
27745 PR debug/47498
27746 PR debug/47501
27747 PR debug/45136
27748 PR debug/45130
27749 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27750 debug insns.
27751 (no_real_insns_p, schedule_block, set_priorities): Drop special
27752 treatment of boundary debug insns.
27753 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27754 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
27755 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27756 (BOUNDARY_DEBUG_INSN_P): Likewise.
27757 (SCHEDULE_DEBUG_INSN_P): Likewise.
27758 * sched-rgn.c (init_ready_list): Drop special treatment of
27759 boundary debug insns.
27760 * final.c (rest_of_clean_state): Clear notes' BB.
27761
27762 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27763
27764 * config/openbsd.opt (assert=): New Driver option.
27765
27766 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27767
27768 * config/i386/nto.opt: New.
27769 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
27770
27771 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27772
27773 * config/i386/netware.opt: New.
27774 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
27775
27776 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27777
27778 * config/interix.opt (posix): New Driver option.
27779
27780 2011-02-01 DJ Delorie <dj@redhat.com>
27781
27782 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
27783
27784 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
27785 class for A0/A1.
27786
27787 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
27788
27789 PR tree-optimization/47561
27790 * toplev.c (process_options): Print the Graphite flags. Add
27791 flag_loop_flatten to the list of options requiring Graphite.
27792
27793 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27794
27795 * config/i386/cygming.opt (posix): New Driver option.
27796
27797 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27798
27799 * config/arm/vxworks.opt: New.
27800 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
27801
27802 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27803
27804 * config/alpha/elf.opt: New.
27805 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
27806 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
27807
27808 2011-02-01 Richard Guenther <rguenther@suse.de>
27809
27810 PR tree-optimization/47559
27811 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
27812 store-motion on references that can throw.
27813
27814 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
27815
27816 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
27817 * tree-pass.h (TDF_CSELIB): New macro.
27818 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
27819 cselib_lookup): Check for it rather than for TDF_DETAILS.
27820
27821 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
27822
27823 PR driver/47547
27824 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
27825 is HOST_BIT_BUCKET.
27826
27827 * opts.c (finish_options): Don't add x_aux_base_name if it is
27828 HOST_BIT_BUCKET.
27829
27830 2011-02-01 Richard Guenther <rguenther@suse.de>
27831
27832 PR tree-optimization/47555
27833 Revert
27834 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
27835
27836 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27837
27838 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
27839
27840 PR gcc/46692
27841 * config/lm32/t-lm32: Add multilib for all CPU options.
27842
27843 2011-02-01 Richard Guenther <rguenther@suse.de>
27844
27845 PR tree-optimization/47541
27846 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
27847 sure to have a field at offset zero.
27848
27849 2011-01-31 Joseph Myers <joseph@codesourcery.com>
27850
27851 * config/arc/arc.opt (EB, EL): New Driver options.
27852
27853 2011-01-31 Joseph Myers <joseph@codesourcery.com>
27854
27855 * config/alpha/osf5.opt: New.
27856 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
27857
27858 2011-01-31 Joseph Myers <joseph@codesourcery.com>
27859
27860 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
27861
27862 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
27863
27864 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
27865 -floop-interchange.
27866 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
27867 is an alias of -floop-interchange and that it requires the
27868 Graphite infrastructure.
27869 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
27870 flag_loop_interchange based on the value of flag_tree_loop_linear.
27871
27872 2011-01-31 Jakub Jelinek <jakub@redhat.com>
27873 Richard Guenther <rguenther@suse.de>
27874
27875 PR tree-optimization/47538
27876 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
27877 type instead of r1type, except for comparisons. For right
27878 shifts and comparisons punt if there are mismatches in
27879 sizetype vs. non-sizetype types.
27880
27881 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27882
27883 * doc/sourcebuild.texi (Effective-Target Keywords): Document
27884 avx_runtime.
27885
27886 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27887
27888 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
27889 version number.
27890 * configure: Regenerate.
27891
27892 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27893
27894 * configure.ac (gcc_cv_ld_static_option): Define.
27895 (gcc_cv_ld_dynamic_option): Define.
27896 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
27897 instead.
27898 (HAVE_LD_STATIC_DYNAMIC): Update message.
27899 (LD_STATIC_OPTION): Define.
27900 (LD_DYNAMIC_OPTION): Define.
27901 * configure: Regenerate.
27902 * config.in: Regenerate.
27903 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
27904 HAVE_LD_STATIC_DYNAMIC]: Use them.
27905
27906 2011-01-31 Nick Clifton <nickc@redhat.com>
27907
27908 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
27909 registers inside interrupt handlers if the handler is not a leaf
27910 function.
27911
27912 2011-01-31 Nick Clifton <nickc@redhat.com>
27913
27914 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
27915 reg_renumber returning an INVALID_REGNUM.
27916
27917 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
27918
27919 PR libgcj/44341
27920 * doc/install.texi: Document host options discarded when cross
27921 configuring target libraries.
27922
27923 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
27924
27925 Reverted:
27926 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
27927 PR debug/45136
27928 PR debug/45130
27929 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27930 debug insns.
27931 (no_real_insns_p, schedule_block, set_priorities): Drop special
27932 treatment of boundary debug insns.
27933 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27934 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
27935 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27936 (BOUNDARY_DEBUG_INSN_P): Likewise.
27937 (SCHEDULE_DEBUG_INSN_P): Likewise.
27938 * sched-rgn.c (init_ready_list): Drop special treatment of
27939 boundary debug insns.
27940 * final.c (rest_of_clean-state): Clear notes' BB.
27941
27942 2011-01-31 Alan Modra <amodra@gmail.com>
27943
27944 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
27945 toc relative expressions as we do in print_operand_address.
27946
27947 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
27948
27949 * doc/extend.texi: Follow spelling conventions.
27950 * doc/invoke.texi: Fix a typo.
27951
27952 2011-01-30 Joseph Myers <joseph@codesourcery.com>
27953
27954 * config/hpux11.opt: New.
27955 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
27956 ia64*-*-hpux*): Use hpux11.opt.
27957
27958 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
27959
27960 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
27961 to tmake_file.
27962
27963 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
27964
27965 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
27966 support sites.
27967
27968 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
27969
27970 * doc/install.texi (Binaries): Remove outdated reference for
27971 Motorola 68HC11/68HC12 downloads.
27972
27973 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
27974
27975 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
27976 Drepper's paper.
27977
27978 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
27979
27980 PR bootstrap/47147
27981 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
27982 used by NetBSD.
27983
27984 2011-01-28 Ahmad Sharif <asharif@google.com>
27985
27986 * value-prof.c (check_counter): Corrected error message.
27987
27988 2011-01-29 Jie Zhang <jie@codesourcery.com>
27989
27990 * config/arm/arm.c (arm_legitimize_reload_address): New.
27991 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
27992 arm_legitimize_reload_address.
27993 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
27994
27995 2011-01-28 Ian Lance Taylor <iant@google.com>
27996
27997 * godump.c (go_define): Ignore macros whose definitions include
27998 two adjacent operands.
27999
28000 2011-01-28 Jakub Jelinek <jakub@redhat.com>
28001
28002 PR target/42894
28003 * varasm.c (force_const_mem): Store copy of x in desc->constant
28004 instead of x itself.
28005 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
28006 itself into REG_EQUAL note.
28007
28008 2011-01-28 Joseph Myers <joseph@codesourcery.com>
28009
28010 * config/freebsd.opt (posix, rdynamic): New Driver options.
28011
28012 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28013
28014 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
28015 -Bstatic/-Bdynamic.
28016 * configure: Regenerate.
28017
28018 2011-01-27 Joseph Myers <joseph@codesourcery.com>
28019
28020 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
28021 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
28022
28023 2011-01-27 Anatoly Sokolov <aesok@post.ru>
28024
28025 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
28026 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
28027 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
28028 (s390_preferred_reload_class): Make static. Change return and
28029 'rclass' argument type to reg_class_t.
28030
28031 2011-01-27 Jan Hubicka <jh@suse.cz>
28032
28033 PR middle-end/46949
28034 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
28035 (process_function_and_variable_attributes): Check defined weakrefs.
28036
28037 2011-01-27 Martin Jambor <mjambor@suse.cz>
28038
28039 PR tree-optimization/47228
28040 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
28041 build_ref_for_offset.
28042
28043 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28044
28045 * config/spu/spu-elf.h (ASM_SPEC): Remove.
28046
28047 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
28048
28049 PR rtl-optimization/46856
28050 * postreload.c (reload_combine_recognize_const_pattern): Do not
28051 separate cc0 setter and user on cc0 targets.
28052
28053 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
28054
28055 PR c/43082
28056 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
28057 passed a VOID_TYPE expression, immediately emit an error and
28058 return error_mark_node.
28059
28060 2011-01-26 Jeff Law <law@redhat.com>
28061
28062 PR rtl-optimization/47464
28063 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
28064 rather than may_trap_p as needed.
28065
28066 2011-01-26 DJ Delorie <dj@redhat.com>
28067
28068 PR rtl-optimization/46878
28069 * combine.c (insn_a_feeds_b): Check for the implicit cc0
28070 setter/user dependency as well.
28071
28072 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
28073
28074 PR rtl-optimization/44469
28075 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
28076 after removing trivially dead basic blocks.
28077
28078 2011-01-26 Joseph Myers <joseph@codesourcery.com>
28079
28080 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
28081 * config/frv/frv.h (LINK_SPEC): Likewise.
28082 * config/i386/netware.h (LINK_SPEC): Likewise.
28083 * config/m68k/linux.h (ASM_SPEC): Likewise.
28084 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
28085 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
28086 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28087 * config/sparc/linux.h (ASM_SPEC): Likewise.
28088 * config/sparc/linux64.h (ASM_SPEC): Likewise.
28089 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28090
28091 2011-01-26 Joseph Myers <joseph@codesourcery.com>
28092
28093 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
28094 * config/frv/frv.h (ASM_SPEC): Likewise.
28095 * config/m68k/linux.h (ASM_SPEC): Likewise.
28096 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
28097 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
28098 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28099 * config/sparc/linux.h (ASM_SPEC): Likewise.
28100 * config/sparc/linux64.h (ASM_SPEC): Likewise.
28101 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28102
28103 2011-01-26 Joseph Myers <joseph@codesourcery.com>
28104
28105 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
28106 * config/frv/frv.h (LINK_SPEC): Likewise.
28107 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
28108
28109 2011-01-26 Joseph Myers <joseph@codesourcery.com>
28110
28111 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
28112 * config/frv/frv.h (ASM_SPEC): Likewise.
28113 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
28114 * config/m68k/linux.h (ASM_SPEC): Likewise.
28115 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
28116 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
28117 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28118 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
28119 * config/sparc/linux.h (ASM_SPEC): Likewise.
28120 * config/sparc/linux64.h (ASM_SPEC): Likewise.
28121 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28122 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
28123
28124 2011-01-26 Steve Ellcey <sje@cup.hp.com>
28125
28126 PR target/46997
28127 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
28128 (*mux2): Ditto.
28129 (vec_extract_evenodd_help): Ditto.
28130 (vec_extract_evenv4hi): Ditto.
28131 (vec_extract_oddv4hi): Ditto.
28132 (vec_interleave_lowv2si): Ditto.
28133 (vec_interleave_highv2si): Ditto.
28134 (vec_extract_evenv2si): Ditto.
28135 (vec_extract_oddv2si: Ditto.
28136 (vec_pack_trunc_v2si): Ditto.
28137
28138 2011-01-22 Jan Hubicka <jh@suse.cz>
28139
28140 PR target/47237
28141 * cgraph.h (cgraph_local_info): New field can_change_signature.
28142 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
28143 signature can change.
28144 (ipcp_estimate_growth): Call sequence simplify only if calle signature
28145 can change.
28146 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
28147 (cgraph_function_versioning): We can not change signature of functions
28148 that don't allow that.
28149 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
28150 (lto_input_node): Likewise.
28151 * ipa-inline.c (compute_inline_parameters): Compute
28152 local.can_change_signature.
28153 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
28154 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
28155 functions that can not change signature.
28156 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
28157 init_cumulative_args): Do not use local calling conventions
28158 for functions that can not change signature.
28159
28160 2011-01-22 Jan Hubicka <jh@suse.cz>
28161
28162 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
28163
28164 2011-01-26 Richard Guenther <rguenther@suse.de>
28165
28166 PR tree-optimization/47190
28167 * cgraphunit.c (process_common_attributes): New function.
28168 (process_function_and_variable_attributes): Use it.
28169
28170 2011-01-26 Richard Guenther <rguenther@suse.de>
28171
28172 PR lto/47423
28173 * cgraphbuild.c (record_eh_tables): Record reference to personality
28174 function.
28175
28176 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
28177
28178 PR debug/45454
28179 * sel-sched.c (moveup_expr): Don't let debug insns prevent
28180 non-debug insns from moving up.
28181
28182 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
28183
28184 PR target/40125
28185 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
28186 t-dlldir{,-x} fragment for build and add it to tmake_file.
28187 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
28188 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
28189 * config/i386/t-dlldir: New file.
28190 (SHLIB_DLLDIR): Define.
28191 * config/i386/t-dlldir-x: New file.
28192 (SHLIB_DLLDIR): Define.
28193 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
28194 (SHLIB_INSTALL): Use it.
28195
28196 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
28197
28198 PR target/47246
28199 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
28200 lower bound of the allowed Thumb-2 coprocessor load/store
28201 index range to -256. Add explaining comment.
28202
28203 2011-01-25 Ian Lance Taylor <iant@google.com>
28204
28205 * godump.c (go_define): Improve lexing of macro expansion to only
28206 accept expressions which match Go spec.
28207
28208 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
28209
28210 PR c++/43601
28211 * tree.c (handle_dll_attribute): Handle it.
28212 * doc/extend.texi (@item dllexport): Mention it.
28213 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
28214
28215 2011-01-25 Ian Lance Taylor <iant@google.com>
28216
28217 PR tree-optimization/26854
28218 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
28219 (decl_jump_unsafe): Move higher in file, with no other change.
28220 (bind): Set has_jump_unsafe_decl if appropriate.
28221 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
28222 (check_earlier_gotos): Likewise.
28223 (c_check_switch_jump_warnings): Likewise.
28224
28225 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
28226
28227 * doc/invoke.texi (Warning Options): Add missing hyphen.
28228 (-fprofile-dir): Minor grammatical fixes.
28229 (-fbranch-probabilities): Likewise.
28230
28231 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
28232
28233 PR debug/45136
28234 PR debug/45130
28235 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
28236 debug insns.
28237 (no_real_insns_p, schedule_block, set_priorities): Drop special
28238 treatment of boundary debug insns.
28239 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
28240 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
28241 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
28242 (BOUNDARY_DEBUG_INSN_P): Likewise.
28243 (SCHEDULE_DEBUG_INSN_P): Likewise.
28244 * sched-rgn.c (init_ready_list): Drop special treatment of
28245 boundary debug insns.
28246 * final.c (rest_of_clean-state): Clear notes' BB.
28247
28248 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28249
28250 * Makefile.in (LAMBDA_H): Removed.
28251 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
28252 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
28253 lambda-trans.o, and tree-loop-linear.o.
28254 (lto-symtab.o): Remove dependence on LAMBDA_H.
28255 (tree-loop-linear.o): Remove rule.
28256 (lambda-mat.o): Same.
28257 (lambda-trans.o): Same.
28258 (lambda-code.o): Same.
28259 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
28260 (tree-vect-slp.o): Same.
28261 * hwint.h (gcd): Moved here.
28262 (least_common_multiple): Same.
28263 * lambda-code.c: Removed.
28264 * lambda-mat.c: Removed.
28265 * lambda-trans.c: Removed.
28266 * lambda.h: Removed.
28267 * tree-loop-linear.c: Removed.
28268 * lto-symtab.c: Do not include lambda.h.
28269 * omega.c (gcd): Removed.
28270 * passes.c (init_optimization_passes): Remove pass_linear_transform.
28271 * tree-data-ref.c (print_lambda_vector): Moved here.
28272 (lambda_vector_copy): Same.
28273 (lambda_matrix_copy): Same.
28274 (lambda_matrix_id): Same.
28275 (lambda_vector_first_nz): Same.
28276 (lambda_matrix_row_add): Same.
28277 (lambda_matrix_row_exchange): Same.
28278 (lambda_vector_mult_const): Same.
28279 (lambda_vector_negate): Same.
28280 (lambda_matrix_row_negate): Same.
28281 (lambda_vector_equal): Same.
28282 (lambda_matrix_right_hermite): Same.
28283 * tree-data-ref.h: Do not include lambda.h.
28284 (lambda_vector): Moved here.
28285 (lambda_matrix): Same.
28286 (dependence_level): Same.
28287 (lambda_transform_legal_p): Removed declaration.
28288 (lambda_collect_parameters): Same.
28289 (lambda_compute_access_matrices): Same.
28290 (lambda_vector_gcd): Same.
28291 (lambda_vector_new): Same.
28292 (lambda_vector_clear): Same.
28293 (lambda_vector_lexico_pos): Same.
28294 (lambda_vector_zerop): Same.
28295 (lambda_matrix_new): Same.
28296 * tree-flow.h (least_common_multiple): Removed declaration.
28297 * tree-parloops.c (lambda_trans_matrix): Moved here.
28298 (LTM_MATRIX): Same.
28299 (LTM_ROWSIZE): Same.
28300 (LTM_COLSIZE): Same.
28301 (LTM_DENOMINATOR): Same.
28302 (lambda_trans_matrix_new): Same.
28303 (lambda_matrix_vector_mult): Same.
28304 (lambda_transform_legal_p): Same.
28305 * tree-pass.h (pass_linear_transform): Removed declaration.
28306 * tree-ssa-loop.c (tree_linear_transform): Removed.
28307 (gate_tree_linear_transform): Removed.
28308 (pass_linear_transform): Removed.
28309 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
28310 flag_loop_interchange.
28311
28312 2011-01-25 Jakub Jelinek <jakub@redhat.com>
28313
28314 PR tree-optimization/47265
28315 PR tree-optimization/47443
28316 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
28317 if name still has some uses.
28318
28319 2011-01-25 Martin Jambor <mjambor@suse.cz>
28320
28321 PR tree-optimization/47382
28322 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
28323 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
28324
28325 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
28326
28327 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
28328 sjlj_except_unwind_info.
28329
28330 2011-01-25 Richard Guenther <rguenther@suse.de>
28331
28332 PR tree-optimization/47426
28333 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
28334 visible functions results escape.
28335
28336 2011-01-25 Jakub Jelinek <jakub@redhat.com>
28337
28338 PR target/45701
28339 * config/arm/arm.c (any_sibcall_uses_r3): New function.
28340 (arm_get_frame_offsets): Use it.
28341
28342 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28343 Jakub Jelinek <jakub@redhat.com>
28344
28345 PR tree-optimization/47271
28346 * tree-if-conv.c (bb_postdominates_preds): New.
28347 (if_convertible_bb_p): Call bb_postdominates_preds.
28348 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
28349 (predicate_scalar_phi): Call bb_postdominates_preds.
28350
28351 2011-01-25 Nick Clifton <nickc@redhat.com>
28352
28353 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
28354 * config/rx/rx.c (rx_function_value): Likewise.
28355 (rx_promote_function_mode): Likewise.
28356 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
28357 in order to make it legitimate.
28358 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
28359 make sure that the first operand is the same as the result register.
28360 (addsi3_unspec): Delete.
28361 (subdi3): Do not accept immediate operands.
28362 (subdi3_internal): Likewise.
28363
28364 2011-01-25 Jeff Law <law@redhat.com>
28365
28366 PR rtl-optimization/37273
28367 * ira-costs.c (scan_one_insn): Detect constants living in memory and
28368 handle them like argument loads from stack slots. Do not double
28369 count memory for memory constants and argument loads from stack slots.
28370
28371 2011-01-25 Jakub Jelinek <jakub@redhat.com>
28372
28373 PR tree-optimization/47427
28374 PR tree-optimization/47428
28375 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
28376 coalesce if the new root var would be TREE_READONLY.
28377
28378 2011-01-25 Richard Guenther <rguenther@suse.de>
28379
28380 PR middle-end/47414
28381 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
28382 correct type for TBAA.
28383
28384 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28385
28386 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
28387 (close_phi_written_to_memory): Call for_each_index with
28388 dr_indices_valid_in_loop.
28389
28390 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28391
28392 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
28393 when it is initialized.
28394
28395 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28396
28397 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
28398 call to graphite_find_data_references_in_stmt.
28399 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
28400 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
28401 call to graphite_find_data_references_in_stmt.
28402 (analyze_drs_in_stmts): Same.
28403 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
28404 in which the scalar analysis of indices is performed.
28405 (create_data_ref): Same. Update call to dr_analyze_indices.
28406 (find_data_references_in_stmt): Update call to create_data_ref.
28407 (graphite_find_data_references_in_stmt): Same.
28408 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
28409 declaration.
28410 (create_data_ref): Same.
28411 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
28412 call to create_data_ref.
28413
28414 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28415
28416 * graphite-sese-to-poly.c (build_poly_scop): Move
28417 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
28418
28419 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28420
28421 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
28422 VAR_DECL, PARM_DECL, and RESULT_DECL.
28423
28424 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28425
28426 * graphite-dependences.c (reduction_dr_1): Allow several reductions
28427 in a reduction PBB.
28428 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
28429 that have already been marked as PBB_IS_REDUCTION.
28430
28431 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28432
28433 * graphite-scop-detection.c (same_close_phi_node): New.
28434 (remove_duplicate_close_phi): New.
28435 (make_close_phi_nodes_unique): New.
28436 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
28437
28438 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28439
28440 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
28441 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
28442 of both data references to be the same.
28443
28444 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28445
28446 * graphite-dependences.c (build_lexicographical_constraint): Remove
28447 the gdim parameter.
28448 (build_lexicographical_constraint): Adjust call to
28449 ppl_powerset_is_empty.
28450 (dependence_polyhedron): Same.
28451 (graphite_legal_transform_dr): Same.
28452 (graphite_carried_dependence_level_k): Same.
28453 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
28454 parameter.
28455 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
28456
28457 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28458
28459 * graphite-sese-to-poly.c
28460 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
28461 (close_phi_written_to_memory): New.
28462 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
28463 and unshare_expr.
28464
28465 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28466
28467 * doc/install.texi: Update the expected version number of PPL to 0.11.
28468 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
28469 #if PPL_VERSION_MINOR < 11.
28470
28471 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28472
28473 * graphite-dependences.c: Include graphite-cloog-util.h.
28474 (new_poly_ddr): Inlined into dependence_polyhedron.
28475 (free_poly_ddr): Moved close by new_poly_ddr.
28476 (dependence_polyhedron_1): Renamed dependence_polyhedron.
28477 Early return NULL when ppl_powerset_is_empty returns true.
28478 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
28479 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
28480 (graphite_legal_transform_dr): Call new_poly_ddr.
28481 (graphite_carried_dependence_level_k): Same.
28482 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
28483 (dot_transformed_deps_stmt_1): Removed.
28484 (dot_deps_stmt_1): Call dot_deps_stmt_2.
28485 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
28486 (dot_deps_1): Call dot_deps_2.
28487 * Makefile.in (graphite-dependences.o): Add missing dependence on
28488 graphite-cloog-util.h.
28489
28490 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28491
28492 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
28493 (build_lexicographical_constraint): Same.
28494 (dependence_polyhedron_1): Same.
28495 (graphite_legal_transform_dr): Same.
28496 (graphite_carried_dependence_level_k): Same.
28497 * graphite-ppl.c (ppl_powerset_is_empty): New.
28498 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
28499 * tree-data-ref.c (dump_data_reference): Print the basic block index.
28500
28501 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28502
28503 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
28504 the "a followed by b" relation and document it.
28505
28506 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28507
28508 * graphite-dependences.c (build_lexicographical_constraint): Stop the
28509 iteration when the bag of constraints is empty.
28510
28511 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28512
28513 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
28514
28515 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28516
28517 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
28518 nest and two loop depths as parameters.
28519 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
28520 lst_perfect_nestify.
28521
28522 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28523
28524 * graphite-dependences.c (print_pddr): Call
28525 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
28526
28527 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28528
28529 * graphite-ppl.c (debug_gmp_value): New.
28530 * graphite-ppl.h (debug_gmp_value): Declared.
28531
28532 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
28533
28534 * doc/install.texi: Document availability of cloog-0.16.
28535
28536 2011-01-25 Vladimir Kargov <kargov@gmail.com>
28537
28538 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
28539 invalid postdominance info.
28540
28541 2011-01-24 Jan Hubicka <jh@suse.cz>
28542
28543 PR c/21659
28544 * doc/extend.texi (weak pragma): Drop claim that it must
28545 appear before definition.
28546 * varasm.c (merge_weak, declare_weak): Only sanity check
28547 that DECL is not output at a time it is declared weak.
28548
28549 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
28550
28551 * machmode.def: Fixed comments.
28552
28553 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
28554
28555 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
28556
28557 2011-01-24 Paul Koning <ni1d@arrl.net>
28558
28559 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
28560 WORDS_BIG_ENDIAN.
28561
28562 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
28563
28564 PR target/46519
28565 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
28566 (block_info): Add scanned and prev.
28567 (move_or_delete_vzeroupper_2): Return if the basic block
28568 has been scanned and the upper 128bit state is unchanged
28569 from the last scan.
28570 (move_or_delete_vzeroupper_1): Return true if the exit
28571 state is changed.
28572 (move_or_delete_vzeroupper): Visit basic blocks using the
28573 work-list based algorithm based on vt_find_locations in
28574 var-tracking.c.
28575
28576 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
28577
28578 2011-01-24 Nick Clifton <nickc@redhat.com>
28579
28580 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
28581 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
28582 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
28583 then define __v850e1__.
28584 * doc/invoke.texi: Document -mv850es.
28585
28586 2011-01-24 Richard Henderson <rth@redhat.com>
28587
28588 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
28589 compound unordered comparisons.
28590 * config/rx/rx.c (rx_split_fp_compare): Remove.
28591 * config/rx/rx-protos.h: Update.
28592 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
28593 (cbranchsf4): Don't call rx_split_fp_compare.
28594 (*cbranchsf4): Use rx_split_cbranch.
28595 (*cmpsf): Don't accept "i" constraint.
28596 (*conditional_branch): Only valid after reload.
28597 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
28598
28599 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
28600
28601 PR target/47385
28602 * config/rs6000/altivec.md (vector constant splitters): Add
28603 support for creating vector single precision constants if -mvsx is
28604 used and we would create the constant using Altivec primitives.
28605
28606 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
28607 Richard Sandiford <rdsandiford@googlemail.com>
28608
28609 PR rtl-optimization/47166
28610 * reload1.c (emit_reload_insns): Disable the spill_reg_store
28611 mechanism for PRE_MODIFY and POST_MODIFY.
28612 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
28613 reloadreg.
28614
28615 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
28616
28617 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
28618
28619 2011-01-22 Jan Hubicka <jh@suse.cz>
28620
28621 PR lto/47333
28622 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
28623
28624 2011-01-22 Jan Hubicka <jh@suse.cz>
28625
28626 PR tree-optimization/43884
28627 PR lto/44334
28628 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
28629 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
28630
28631 2011-01-22 Anatoly Sokolov <aesok@post.ru>
28632
28633 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
28634 * config/s390/s390.c (s390_register_move_cost,
28635 s390_memory_move_cost): New.
28636 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
28637
28638 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28639
28640 PR middle-end/47401
28641 * except.c (sjlj_assign_call_site_values): Move setting the
28642 crtl->uses_eh_lsda flag to ...
28643 (sjlj_mark_call_sites): ... here.
28644 (sjlj_emit_function_enter): Support NULL dispatch label.
28645 (sjlj_build_landing_pads): In a function with no landing pads
28646 that still has must-not-throw regions, generate code to register
28647 a personality function with empty LSDA.
28648
28649 2011-01-21 Richard Henderson <rth@redhat.com>
28650
28651 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
28652
28653 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
28654
28655 * compare-elim.c: New file.
28656 * Makefile.in (OBJS-common): Add it.
28657 (compare-elim.o): New.
28658 * common.opt (fcompare-elim): New.
28659 * opts.c (default_options_table): Add OPT_fcompare_elim.
28660 * tree-pass.h (pass_compare_elim_after_reload): New.
28661 * passes.c (init_optimization_passes): Add it.
28662 * recog.h: Protect against re-inclusion.
28663 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
28664 * doc/invoke.texi (-fcompare-elim): Document it.
28665 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
28666 * doc/tm.texi: Rebuild.
28667
28668 2011-01-22 Nick Clifton <nickc@redhat.com>
28669
28670 * config/rx/rx.md (cstoresf4): Pass comparison operator to
28671 rx_split_fp_compare.
28672
28673 2011-01-22 Nick Clifton <nickc@redhat.com>
28674
28675 * config/rx/rx.md (UNSPEC_CONST): New.
28676 (deallocate_and_return): Wrap the amount popped off the stack in
28677 an UNSPEC_CONST in order to stop it being rejected by
28678 -mmax-constant-size.
28679 (pop_and_return): Add a "(return)" rtx.
28680 (call): Drop the immediate operand.
28681 (call_internal): Likewise.
28682 (call_value): Likewise.
28683 (call_value_internal): Likewise.
28684 (sibcall_internal): Likewise.
28685 (sibcall_value_internal): Likewise.
28686 (sibcall): Likewise. Generate an explicit call using
28687 sibcall_internal.
28688 (sibcall_value): Likewise.
28689 (mov<>): FAIL if a constant operand is not legitimate.
28690 (addsi3_unpsec): New pattern.
28691
28692 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
28693 (ok_for_max_constant): New function.
28694 (gen_safe_add): New function.
28695 (rx_expand_prologue): Use gen_safe_add.
28696 (rx_expand_epilogue): Likewise.
28697 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
28698 UNSPEC CONSTs.
28699
28700 2011-01-21 Jeff Law <law@redhat.com>
28701
28702 PR tree-optimization/47053
28703 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
28704 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
28705 statements are deleted.
28706 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
28707 is nonempty, then purge dead edges and cleanup the CFG.
28708
28709 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28710
28711 PR debug/47402
28712 Temporarily revert:
28713 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28714 PR debug/47106
28715 * tree-dfa.c (create_var_ann): Mark variable as used.
28716
28717 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28718
28719 PR middle-end/45566
28720 * except.c (convert_to_eh_region_ranges): Emit queued no-region
28721 notes from other section in hot/cold partitioning even if
28722 last_action is -3. Increment call_site_base.
28723
28724 PR rtl-optimization/47366
28725 * fwprop.c (forward_propagate_into): Return bool. If
28726 any changes are made, -fnon-call-exceptions is used and
28727 REG_EH_REGION note is present, call purge_dead_edges
28728 and return true if it purged anything.
28729 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
28730 any EH edges were purged.
28731
28732 2011-01-21 Jeff Law <law@redhat.com>
28733
28734 PR rtl-optimization/41619
28735 * caller-save.c (setup_save_areas): Break out code to determine
28736 which hard regs are live across calls by examining the reload chains
28737 so that it is always used.
28738 Eliminate code which checked REG_N_CALLS_CROSSED.
28739
28740 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28741
28742 PR tree-optimization/47355
28743 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
28744 NOP has non-debug uses beyond PHIs in new_bb.
28745
28746 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28747
28748 PR debug/47106
28749 * cfgexpand.c (account_used_vars_for_block): Only account vars
28750 that are annotated as used.
28751 (estimated_stack_frame_size): Don't set TREE_USED.
28752 * tree-dfa.c (create_var_ann): Mark variable as used.
28753
28754 2011-01-21 Richard Guenther <rguenther@suse.de>
28755
28756 PR middle-end/47395
28757 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
28758
28759 2011-01-21 Richard Guenther <rguenther@suse.de>
28760
28761 PR tree-optimization/47365
28762 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
28763 (vn_reference_lookup_pieces): Adjust.
28764 (vn_reference_lookup): Likewise.
28765 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
28766 (vn_reference_lookup_3): Only look through kills if in
28767 VN_WALKREWRITE mode.
28768 (vn_reference_lookup_pieces): Adjust.
28769 (vn_reference_lookup): Likewise.
28770 (visit_reference_op_load): Likewise.
28771 (visit_reference_op_store): Likewise.
28772 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
28773 (compute_avail): Likewise.
28774 (eliminate): Likewise.
28775
28776 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28777
28778 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
28779 DECL_IGNORED_P non-reg vars if they are used.
28780
28781 PR tree-optimization/47391
28782 * varpool.c (const_value_known_p): Return false if
28783 decl is volatile.
28784
28785 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
28786
28787 PR bootstrap/47215
28788 * config/i386/i386.c (ix86_local_alignment): Handle
28789 case for va_list_type_node is nil.
28790 (ix86_canonical_va_list_type): Likewise.
28791
28792 2011-01-21 Alan Modra <amodra@gmail.com>
28793
28794 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
28795 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
28796
28797 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28798
28799 * config/arm/arm.md (define_attr type): Rename f_load
28800 and f_store to f_fpa_load and f_fpa_store. Update.
28801 (write_conflict): Deal with rename fallout.
28802 (*push_fp_multi): Likewise.
28803 * config/arm/fpa.md (f_load): Use f_fpa_load.
28804 (f_store): Use f_fpa_store.
28805 (*movsf_fpa): Likewise.
28806 (*movdf_fpa): Likewise.
28807 (*movxf_fpa): Likewise.
28808 (*thumb2_movsf_fpa): Likewise.
28809 (*thumb2_movdf_fpa): Likewise.
28810 (*thumb2_movxf_fpa): Likewise.
28811 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
28812 f_loadd and f_stored.
28813 (*thumb2_movdi_vfp): Likewise.
28814 (*thumb2_movsf_vfp): Fix attribute to f_loads.
28815 (*thumb2_movsi_vfp): Likewise.
28816 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
28817 Use f_loads instead of f_load.
28818 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
28819
28820 2011-01-20 Anatoly Sokolov <aesok@post.ru>
28821
28822 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28823 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
28824 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28825 (xtensa_mode_dependent_address_p): New function.
28826 (constantpool_address_p): Make static. Change return type to bool.
28827 Change argument type to const_rtx. Use CONST_INT_P predicate.
28828
28829 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
28830
28831 PR debug/46583
28832 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
28833
28834 2011-01-20 Jakub Jelinek <jakub@redhat.com>
28835
28836 PR debug/47283
28837 * cfgexpand.c (expand_debug_expr): Instead of generating
28838 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
28839 etc. handling.
28840
28841 2011-01-20 Richard Guenther <rguenther@suse.de>
28842
28843 PR middle-end/47370
28844 * tree-inline.c (remap_gimple_op_r): Recurse manually for
28845 the pointer operand of MEM_REFs.
28846
28847 2011-01-20 Jakub Jelinek <jakub@redhat.com>
28848
28849 PR tree-optimization/46130
28850 * ipa-split.c (consider_split): If return_bb contains non-virtual
28851 PHIs other than for retval or if split_function would not adjust it,
28852 refuse to split.
28853
28854 2011-01-20 Richard Guenther <rguenther@suse.de>
28855
28856 PR tree-optimization/47167
28857 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
28858 Revert previous change, only avoid enumeral type changes.
28859
28860 2011-01-19 Mike Stump <mikestump@comcast.net>
28861
28862 * doc/tm.texi.in (BRANCH_COST): Englishify.
28863 * doc/tm.texi (BRANCH_COST): Likewise.
28864
28865 2011-01-19 Dodji Seketeli <dodji@redhat.com>
28866
28867 PR c++/47291
28868 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
28869 (gen_scheduled_generic_parms_dies): New functions.
28870 (gen_struct_or_union_type_die): Schedule template parameters DIEs
28871 generation for the end of CU compilation.
28872 (dwarf2out_finish): Generate template parameters DIEs here.
28873
28874 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
28875
28876 PR debug/46240
28877 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
28878 debug bind stmt on merge edges.
28879
28880 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
28881
28882 PR debug/47079
28883 PR debug/46724
28884 * function.c (instantiate_expr): Instantiate incoming rtl of
28885 implicit arguments, and recurse on VALUE_EXPRs.
28886 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
28887 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
28888
28889 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
28890
28891 * c-parser.c (c_parser_for_statement): Initialize
28892 collection_expression.
28893
28894 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28895
28896 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
28897
28898 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28899
28900 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
28901 (LINK_SHLIB_SPEC): Don't use %(link_path).
28902 (SUBTARGET_EXTRA_SPECS): Remove link_path.
28903
28904 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28905
28906 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
28907 (NO_SHARED_LIB_SUPPORT): Remove.
28908 (LINK_SHLIB_SPEC): Remove one conditional definition.
28909
28910 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28911
28912 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
28913 %{call_shared}.
28914 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
28915 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
28916 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
28917 %{call_shared} and conditionals on these options not being passed.
28918 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
28919 %{call_shared}.
28920
28921 2011-01-19 Jakub Jelinek <jakub@redhat.com>
28922
28923 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
28924 simplify.
28925
28926 * ipa-split.c: Spelling fixes.
28927
28928 2011-01-19 Richard Henderson <rth@redhat.com>
28929
28930 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
28931 (*mulsi3): Likewise.
28932
28933 * longlong.h [__mn10300__] (count_leading_zeros): New.
28934 [__mn10300__] (umul_ppmm, smul_ppmm): New.
28935 [__mn10300__] (add_ssaaaa, subddmmss): New.
28936 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
28937 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
28938
28939 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28940
28941 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
28942
28943 2011-01-19 Richard Henderson <rth@redhat.com>
28944
28945 * config/mn10300/mn10300.md (addsi3_flags): New.
28946 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
28947 (subsi3_flags, subc_internal, subdi3): New.
28948 (subdi3_internal, *subdi3_degenerate): New.
28949 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
28950
28951 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
28952 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
28953 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
28954 * config/mn10300/mn10300-protos.h: Update.
28955 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
28956 (return_ret): Likewise. Rename from return_internal_regs.
28957 (return_internal): Remove.
28958
28959 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
28960 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
28961 (mn10300_legitimate_constant_p): Likewise.
28962 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
28963 (mn10300_frame_size): New.
28964 (mn10300_expand_prologue): Use it.
28965 (mn10300_expand_epilogue): Likewise.
28966 (mn10300_initial_offset): Likewise.
28967 * config/mn10300/mn10300-protos.h: Update.
28968 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
28969 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
28970 (prologue, epilogue, return_internal): Tidy output code.
28971 (mn10300_store_multiple_operation, return): Likewise.
28972 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
28973 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
28974 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
28975 (load_pic, am33_load_pic): New.
28976 (mn10300_load_pic0, mn10300_load_pic1): New.
28977
28978 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
28979 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
28980 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
28981 (cc_flags_for_mode, cc_flags_for_code): New.
28982 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
28983 overflow flag is not valid. Validate that the flags we need
28984 for the comparison are valid.
28985 (mn10300_output_cmp): Remove.
28986 (mn10300_output_add): New.
28987 (mn10300_select_cc_mode): Use cc_flags_for_code.
28988 (mn10300_split_cbranch): New.
28989 (mn10300_match_ccmode): New.
28990 (mn10300_split_and_operand_count): New.
28991 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
28992 to the function.
28993 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
28994 (addsi3): ... here. Use mn10300_output_add.
28995 (*addsi3_flags): New.
28996 (*am33_subsi3, *mn10300_subsi3): Merge...
28997 (subsi3): ... here. Use attribute isa.
28998 (*subsi3_flags): New.
28999 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
29000 when possible.
29001 (*am33_andsi3, *mn10300_andsi3): Merge...
29002 (andsi3): ... here.
29003 (*andsi3_flags): New.
29004 (andsi3 splitters): New.
29005 (*am33_iorsi3, *mn10300_iorsi3): Merge...
29006 (iorsi3): ... here.
29007 (*iorsi3_flags): New.
29008 (*am33_xorsi3, *mn10300_xorsi3): Merge...
29009 (xorsi3): ... here.
29010 (*xorsi3_flags): New.
29011 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
29012 (one_cmplsi2): ... here.
29013 (*one_cmplsi2_flags): New.
29014 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
29015 instead of "dax" in constraints. Use mn10300_split_cbranch.
29016 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
29017 use matching constraints to eliminate a self-comparison.
29018 (*integer_conditional_branch): Rename from integer_conditional_branch.
29019 Use int_mode_flags to match CC_REG.
29020 (*cbranchsi4_btst, *btstsi): New.
29021 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
29022 mn10300_split_cbranch.
29023 (*am33_cmpsf): Rename from am33_cmpsf.
29024 (*float_conditional_branch): Rename from float_conditional_branch.
29025 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
29026 (zero_extendqisi2): ... here.
29027 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
29028 (zero_extendhisi2): ... here.
29029 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
29030 (extendqisi2): ... here.
29031 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
29032 (extendhisi2): ... here.
29033 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
29034 (ashlsi3): ... here.
29035 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
29036 (lshrsi3): ... here.
29037 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
29038 (ashrsi3): ... here.
29039 (consecutive add peephole): Remove.
29040 * config/mn10300/predicates.md (label_ref_operand): New.
29041 (int_mode_flags): New.
29042 (CCZN_comparison_operator): New.
29043
29044 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
29045 (throughput_42_latency_43): New reservation.
29046 (mulsidi3, umulsidi3): New expanders.
29047 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
29048 the MDR register to allocation; separately allocate the low and
29049 high parts of the DImode result.
29050 (umulsidi3_internal): Similarly.
29051 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
29052 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
29053 (udivsi3, umodsi3): Remove.
29054 (udivmodsi4, divmodsi4): New expanders.
29055 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
29056 (*divmodsi4): Simiarly.
29057 (ext_internal): New.
29058
29059 * config/mn10300/constraints.md ("z"): New constraint.
29060 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
29061 (FIXED_REGISTERS): Don't fix MDR.
29062 (CALL_USED_REGSITERS): Reformat nicely.
29063 (REG_ALLOC_ORDER): Add MDR.
29064 (enum regclass): Add MDR_REGS.
29065 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
29066 (IRA_COVER_CLASSES): Add MDR_REGS.
29067 (REGNO_REG_CLASS): Handle MDR_REG.
29068 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
29069 (mn10300_register_move_cost): Likewise.
29070 * config/mn10300/mn10300.md (MDR_REG): New.
29071 (*movsi_internal): Handle moves to/from MDR_REGS.
29072
29073 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
29074 POST_MODIFY.
29075 (mn10300_secondary_reload): Tidy combination reload classes.
29076 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
29077 addresses for AM33. Allow symbolic offsets for reg+imm.
29078 (mn10300_regno_in_class_p): New.
29079 (mn10300_legitimize_reload_address): New.
29080 * config/mn10300/mn10300.h (enum reg_class): Remove
29081 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
29082 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
29083 SP_OR_GENERAL_REGS.
29084 (REG_CLASS_NAMES): Update to match.
29085 (REG_CLASS_CONTENTS): Likewise.
29086 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
29087 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
29088 (REGNO_IN_RANGE_P): Remove.
29089 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
29090 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
29091 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
29092 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
29093 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
29094 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
29095 (REGNO_GENERAL_P): New.
29096 (HAVE_POST_MODIFY_DISP): New.
29097 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
29098 (LEGITIMIZE_RELOAD_ADDRESS): New.
29099 * config/mn10300/mn10300-protos.h: Update.
29100
29101 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
29102 DATA_REGS for AM33 stack-pointer destination.
29103 (mn10300_preferred_output_reload_class): Likewise.
29104 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
29105 into a form appropriate for ...
29106 (TARGET_SECONDARY_RELOAD): New.
29107 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
29108 * config/mn10300/mn10300-protos.h: Update.
29109 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
29110 reload_insi; use the "A" constraint for the scratch; handle AM33
29111 moves of sp to non-address registers.
29112
29113 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
29114 (*movqi_internal): ... here.
29115 (*am33_movhi, *mn10300_movhi): Merge into...
29116 (*movhi_internal): ... here.
29117 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
29118 as the source/destination of moves from/to SP.
29119 (movsf): Only allow for AM33-2.
29120 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
29121 any integer constant constraint. Only allow for AM33-2. Tidy
29122 all of the alternative outputs.
29123 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
29124 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
29125 for MN103.
29126 (udivsi3, umodsi3): New patterns for MN103 only.
29127
29128 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
29129
29130 * doc/tm.texi.in: Spell out that a lack of register class unions
29131 can lead to ICEs.
29132 * doc/tm.texi: Regenerate.
29133
29134 2011-01-19 Jakub Jelinek <jakub@redhat.com>
29135
29136 PR rtl-optimization/47337
29137 * dce.c (check_argument_store): New function.
29138 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
29139
29140 PR tree-optimization/47290
29141 * tree-eh.c (infinite_empty_loop_p): New function.
29142 (cleanup_empty_eh): Use it.
29143
29144 2011-01-18 Steve Ellcey <sje@cup.hp.com>
29145
29146 PR target/46997
29147 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
29148 (a64_expand_widen_sum): Ditto.
29149 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
29150 (vec_extract_evenodd_help): Ditto.
29151 (vec_extract_evenv4hi): Ditto.
29152 (vec_extract_oddv4hi): Ditto.
29153 (vec_extract_evenv2si): Ditto.
29154 (vec_extract_oddv2si): Ditto.
29155 (vec_extract_evenv2sf): Ditto.
29156 (vec_extract_oddv2sf): Ditto.
29157 (vec_pack_trunc_v4hi: Ditto.
29158 (vec_pack_trunc_v2si): Ditto.
29159 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
29160 (vec_interleave_highv8qi): Ditto.
29161 (mix1_r): Ditto.
29162 (vec_extract_oddv8qi): Ditto.
29163 (vec_interleave_lowv4hi): Ditto.
29164 (vec_interleave_highv4hi): Ditto.
29165 (vec_interleave_lowv2si): Ditto.
29166 (vec_interleave_highv2si): Ditto.
29167
29168 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29169
29170 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
29171 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
29172 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
29173 (pa_c_mode_for_suffix): New.
29174 (TARGET_EXPAND_BUILTIN): Define.
29175 (TARGET_C_MODE_FOR_SUFFIX): Define.
29176 (pa_builtins): Define.
29177 (pa_init_builtins): Register __float128 type and init new support
29178 builtins.
29179 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
29180 * config/pa/quadlib.c (_U_Qfcopysign): New.
29181
29182 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
29183
29184 PR middle-end/46894
29185 * explow.c (allocate_dynamic_stack_space): Do not assume more than
29186 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
29187 are defined.
29188
29189 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29190
29191 PR tree-optimization/47179
29192 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
29193 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
29194
29195 2011-01-18 Richard Guenther <rguenther@suse.de>
29196
29197 PR rtl-optimization/47216
29198 * emit-rtl.c: Include tree-flow.h.
29199 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
29200 of replicating it with different semantics.
29201 * Makefile.in (emit-rtl.o): Adjust.
29202
29203 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29204
29205 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
29206 (cortex_a9_dp): Handle neon types correctly.
29207
29208 2011-01-18 Jakub Jelinek <jakub@redhat.com>
29209
29210 PR rtl-optimization/47299
29211 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
29212 subtarget. Use normal multiplication if both operands are constants.
29213 * expmed.c (expand_widening_mult): Don't try to optimize constant
29214 multiplication if op0 has VOIDmode. Convert op1 constant to mode
29215 before using it.
29216
29217 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29218
29219 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
29220 spacing after 'e.g.', typos, comma, hyphenation.
29221
29222 2011-01-17 Richard Henderson <rth@redhat.com>
29223
29224 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
29225 (rx_restricted_mem_operand): New.
29226 (rx_shift_operand): Use register_operand.
29227 (rx_source_operand, rx_compare_operand): Likewise.
29228 * config/rx/rx.md (addsi3_flags): New expander.
29229 (adddi3): Rewrite as expander.
29230 (adc_internal, *adc_flags, adddi3_internal): New patterns.
29231 (subsi3_flags): New expander.
29232 (subdi3): Rewrite as expander.
29233 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
29234
29235 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
29236 (rx_init_builtins): Remove sat builtin.
29237 (rx_expand_builtin): Likewise.
29238 * config/rx/rx.md (ssaddsi3): New.
29239 (*sat): Rename from sat. Represent the CC_REG input.
29240
29241 * config/rx/predicates.md (rshift_operator): New.
29242 * config/rx/rx.c (rx_expand_insv): Remove.
29243 * config/rx/rx-protos.h: Update.
29244 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
29245 operand to the canonical position.
29246 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
29247 (*bitclr, *bitclr_in_memory): Similarly.
29248 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
29249 (insv): Retain the zero_extract in the expansion.
29250
29251 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
29252 (bswaphi2, bitinvert, revw): Likewise.
29253
29254 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
29255 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
29256 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
29257 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
29258 (bitset, bitset_in_memory): Likewise.
29259 (bitinvert, bitinvert_in_memory): Likewise.
29260 (bitclr, bitclr_in_memory): Likewise.
29261 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
29262 (rx_strend, rx_cmpstrn): Likewise.
29263 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
29264 (bitop peep2 patterns): Remove.
29265
29266 * config/rx/rx.c (rx_match_ccmode): New.
29267 * config/rx/rx-protos.h: Update.
29268 * config/rx/rx.md (abssi2): Clobber, don't set flags.
29269 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
29270 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
29271 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
29272 (fix_truncsfsi2, floatsisf2): Likewise.
29273 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
29274 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
29275 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
29276 (*subsi3_flags, *xorsi3_flags): New.
29277
29278 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
29279
29280 * config/rx/rx.c (rx_print_operand): Remove workaround for
29281 unsplit comparison operations.
29282
29283 * config/rx/rx.md (movsicc): Split after reload.
29284 (*movsicc): Merge *movsieq and *movsine via match_operator.
29285 (*stcc): New pattern.
29286
29287 * config/rx/rx.c (rx_float_compare_mode): Remove.
29288 * config/rx/rx.h (rx_float_compare_mode): Remove.
29289 * config/rx/rx.md (cstoresi4): Split after reload.
29290 (*sccc): New pattern.
29291
29292 * config/rx/predicates.md (label_ref_operand): New.
29293 (rx_z_comparison_operator): New.
29294 (rx_zs_comparison_operator): New.
29295 (rx_fp_comparison_operator): New.
29296 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
29297 Validate that the flags are set properly for the comparison.
29298 (rx_gen_cond_branch_template): Remove.
29299 (rx_cc_modes_compatible): Remove.
29300 (mode_from_flags): New.
29301 (flags_from_code): Rename from flags_needed_for_conditional.
29302 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
29303 (rx_select_cc_mode): Likewise.
29304 (rx_split_fp_compare): New.
29305 (rx_split_cbranch): New.
29306 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
29307 (*cbranchsi4): Use match_operator and rx_split_cbranch.
29308 (*cbranchsf4): Similarly.
29309 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
29310 match_operator and rx_split_cbranch.
29311 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
29312 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
29313 (*cmpsi): Rename from cmpsi.
29314 (*tstsi): Rename from tstsi.
29315 (*cmpsf): Rename from cmpsf; use CC_Fmode.
29316 (*conditional_branch): Rename from conditional_branch.
29317 (*reveresed_conditional_branch): Remove.
29318 (b<code>): Remove expander.
29319 * config/rx/rx-protos.h: Update.
29320
29321 * config/rx/rx.c (rx_compare_redundant): Remove.
29322 * config/rx/rx.md (cmpsi): Don't use it.
29323 * config/rx/rx-protos.h: Update.
29324
29325 * config/rx/rx-modes.def (CC_F): New mode.
29326 * config/rx/rx.c (rx_select_cc_mode): New.
29327 * config/rx/rx.h (SELECT_CC_MODE): Use it.
29328 * config/rx/rx-protos.h: Update.
29329
29330 2011-01-17 Richard Henderson <rth@redhat.com>
29331
29332 * except.c (dump_eh_tree): Fix stray ; after for statement.
29333
29334 2011-01-17 Richard Guenther <rguenther@suse.de>
29335
29336 PR tree-optimization/47313
29337 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
29338 handling before copying the body. Properly deal with
29339 by-reference result in SSA form.
29340
29341 2011-01-17 Ian Lance Taylor <iant@google.com>
29342
29343 PR target/47219
29344 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
29345 (struct_value_alias_set): Don't define.
29346 (sparc_option_override): Don't set sparc_sr_alias_set and
29347 struct_value_alias_set.
29348 (save_or_restore_regs): Use gen_frame_mem rather than calling
29349 set_mem_alias_set.
29350 (sparc_struct_value_rtx): Likewise.
29351
29352 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
29353
29354 PR target/47318
29355 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
29356 (_mm_maskstore_pd): Likewise.
29357 (_mm_maskload_ps): Likewise.
29358 (_mm_maskstore_ps): Likewise.
29359 (_mm256_maskload_pd): Change mask to __m256i.
29360 (_mm256_maskstore_pd): Likewise.
29361 (_mm256_maskload_ps): Likewise.
29362 (_mm256_maskstore_ps): Likewise.
29363
29364 * config/i386/i386-builtin-types.def: Updated.
29365 (ix86_expand_special_args_builtin): Likewise.
29366
29367 * config/i386/i386.c (bdesc_special_args): Update
29368 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
29369 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
29370 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
29371 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
29372
29373 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
29374 Use <avxpermvecmode> on mask register.
29375 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
29376
29377 2011-01-17 Olivier Hainque <hainque@adacore.com>
29378 Michael Haubenwallner <michael.haubenwallner@salomon.at>
29379 Eric Botcazou <ebotcazou@adacore.com>
29380
29381 PR target/46655
29382 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
29383 if <= USHRT_MAX in 32-bit mode.
29384
29385 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29386
29387 * doc/install.texi (Configuration, Specific): Wrap long
29388 lines in examples. Allow line wrapping in long options
29389 and URLs where beneficial for PDF output.
29390
29391 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
29392
29393 * config/mips/mips.c (mips_classify_symbol): Don't return
29394 SYMBOL_PC_RELATIVE for nonlocal labels.
29395
29396 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
29397
29398 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
29399
29400 2011-01-15 Jan Hubicka <jh@suse.cz>
29401
29402 PR tree-optimization/47276
29403 * ipa.c (function_and_variable_visibility): Do not try to mark alias
29404 declarations as needed.
29405
29406 2011-01-15 Martin Jambor <mjambor@suse.cz>
29407
29408 * common.opt (fdevirtualize): New flag.
29409 * doc/invoke.texi (Option Summary): Document it.
29410 * opts.c (default_options_table): Add devirtualize flag.
29411 * ipa-prop.c (detect_type_change): Return immediately if
29412 devirtualize flag is not set.
29413 (detect_type_change_ssa): Likewise.
29414 (compute_known_type_jump_func): Likewise.
29415 (ipa_analyze_virtual_call_uses): Likewise.
29416
29417 2011-01-14 Martin Jambor <mjambor@suse.cz>
29418
29419 PR tree-optimization/45934
29420 PR tree-optimization/46302
29421 * ipa-prop.c (type_change_info): New type.
29422 (stmt_may_be_vtbl_ptr_store): New function.
29423 (check_stmt_for_type_change): Likewise.
29424 (detect_type_change): Likewise.
29425 (detect_type_change_ssa): Likewise.
29426 (compute_complex_assign_jump_func): Check for dynamic type change.
29427 (compute_complex_ancestor_jump_func): Likewise.
29428 (compute_known_type_jump_func): Likewise.
29429 (compute_scalar_jump_functions): Likewise.
29430 (ipa_analyze_virtual_call_uses): Likewise.
29431 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
29432
29433 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29434
29435 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
29436 * config/i386/i386.opt (msse5): New Alias.
29437
29438 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29439
29440 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
29441 * config/sparc/linux64.h (CC1_SPEC): Likewise.
29442 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
29443 * config/sparc/sparc.h (CC1_SPEC): Likewise.
29444
29445 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29446
29447 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
29448 -mcpu options.
29449 * config/sparc/linux64.h (CC1_SPEC): Likewise.
29450 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
29451 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
29452 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
29453 Likewise.
29454 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
29455
29456 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29457
29458 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
29459
29460 2011-01-14 Mike Stump <mikestump@comcast.net>
29461
29462 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
29463 * config/fr30/fr30.md: Likweise
29464 (movsi_push): Likewise.
29465 (movsi_pop): Likewise.
29466 (enter_func): Likewise.
29467 * config/moxie/moxie.md (movsi_push): Likewise.
29468 (movsi_pop): Likewise.
29469
29470 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29471
29472 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
29473 %{no_archive} %{exact_version}.
29474 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
29475 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
29476 %{no_archive} %{exact_version}.
29477 * config/mips/openbsd.h (LINK_SPEC): Likewise.
29478 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
29479 * config/mips/vxworks.h: Likewise.
29480
29481 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29482
29483 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
29484
29485 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29486
29487 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
29488 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
29489
29490 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29491
29492 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
29493 -nodefaultlib.
29494
29495 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29496
29497 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
29498 for mcpu not cpu.
29499 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
29500 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
29501 not cpu.
29502 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
29503 Don't handle -shlib.
29504
29505 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29506
29507 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
29508 (CC1_SPEC): Don't handle -profile.
29509
29510 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29511
29512 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
29513 * config/mips/mips.h (CC1_SPEC): Likewise.
29514
29515 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29516
29517 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
29518 * config/mips/mips.h (CC1_SPEC): Likewise.
29519
29520 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29521
29522 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
29523 * config/m32r/linux.h (LINK_SPEC): Likewise.
29524 * config/mips/linux.h (LINK_SPEC): Likewise.
29525 * config/mips/linux64.h (LINK_SPEC): Likewise.
29526 * config/sparc/linux.h (LINK_SPEC): Likewise.
29527 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
29528 LINK_SPEC): Likewise.
29529 * config/xtensa/linux.h (LINK_SPEC): Likewise.
29530
29531 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29532
29533 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
29534 %{version:-v}.
29535 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
29536
29537 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29538
29539 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
29540 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
29541
29542 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29543
29544 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
29545
29546 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29547
29548 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
29549 supports -Bstatic/-Bdynamic.
29550 * configure: Regenerate.
29551
29552 2011-01-14 Jan Hubicka <jh@suse.cz>
29553 Jack Howarth <howarth@bromo.med.uc.edu>
29554
29555 PR target/46037
29556 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
29557 when checking debug_info_level. Test write_symbols instead of
29558 debug_hooks->var_location when setting flag_var_tracking_uninit.
29559
29560 2011-01-14 Richard Guenther <rguenther@suse.de>
29561
29562 PR tree-optimization/47179
29563 * target.def (ref_may_alias_errno): New target hook.
29564 * targhooks.h (default_ref_may_alias_errno): Declare.
29565 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
29566 (default_ref_may_alias_errno): New function.
29567 * target.h (struct ao_ref_s): Declare.
29568 * tree-ssa-alias.c: Include target.h.
29569 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
29570 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
29571 (targhooks.o): Likewise.
29572 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
29573 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
29574
29575 2011-01-14 Richard Guenther <rguenther@suse.de>
29576
29577 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
29578
29579 2011-01-14 Richard Guenther <rguenther@suse.de>
29580
29581 PR tree-optimization/47280
29582 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
29583 return CFG changes.
29584 (tree_ssa_forward_propagate_single_use_vars): Deal with
29585 CFG changes from associate_plusminus.
29586
29587 2011-01-14 Richard Guenther <rguenther@suse.de>
29588
29589 PR middle-end/47281
29590 Revert
29591 2011-01-11 Richard Guenther <rguenther@suse.de>
29592
29593 PR tree-optimization/46076
29594 * tree-ssa.c (useless_type_conversion_p): Conversions from
29595 unprototyped to empty argument list function types are useless.
29596
29597 2011-01-14 Richard Guenther <rguenther@suse.de>
29598
29599 PR tree-optimization/47286
29600 * tree-ssa-structalias.c (new_var_info): Register variables are global.
29601
29602 2011-01-14 Martin Jambor <mjambor@suse.cz>
29603
29604 PR middle-end/46823
29605 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
29606
29607 2011-01-13 Anatoly Sokolov <aesok@post.ru>
29608
29609 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
29610 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
29611 * config/xtensa/xtensa.c (xtensa_libcall_value,
29612 xtensa_function_value_regno_p): New functions.
29613 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
29614
29615 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
29616
29617 PR c++/47213
29618 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
29619 PE specific hook.
29620 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
29621 New function prototype.
29622 * config/i386/winnt.c (i386_pe_assemble_visibility):
29623 Warn only if attribute was specified by user.
29624
29625 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
29626
29627 PR target/47251
29628 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
29629 floating point.
29630 (floatunsdidf2_fcfidu): Ditto.
29631
29632 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29633
29634 * config/s390/s390.c (print_operand_address): Replace 'error' with
29635 'output_operand_lossage'.
29636 (print_operand): Likewise.
29637
29638 2011-01-13 Jeff Law <law@redhat.com>
29639
29640 PR rtl-optimization/39077
29641 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
29642 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
29643 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
29644 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
29645 * gcse.c (prune_insertions_deletions): New function.
29646 (compute_pre_data): Use it.
29647
29648 2011-01-13 Dodji Seketeli <dodji@redhat.com>
29649
29650 PR debug/PR46973
29651 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
29652 static function.
29653 (prune_unused_types_mark): Use it.
29654
29655 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
29656
29657 PR rtl-optimization/45352
29658 * sel-sched.c: Update copyright years.
29659 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
29660 in the advancing loop when we have issued issue_rate insns.
29661
29662 2011-01-12 Richard Henderson <rth@redhat.com>
29663
29664 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
29665 (TARGET_MD_ASM_CLOBBERS): New.
29666
29667 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
29668 (TARGET_DELEGITIMIZE_ADDRESS): New.
29669
29670 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
29671 (clzsi2, *bsch): New patterns.
29672
29673 * config/mn10300/mn10300.md (INT): New mode iterator.
29674 (*mov<INT>_clr): New pattern, and peep2 to generate it.
29675
29676 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
29677 flag_split_wide_types.
29678
29679 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
29680 (mn10300_trampoline_init): Rewrite without a template, an immediate
29681 load and a direct branch.
29682 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
29683
29684 2011-01-12 Anatoly Sokolov <aesok@post.ru>
29685
29686 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
29687 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
29688 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
29689 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
29690
29691 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
29692
29693 PR debug/47209
29694 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
29695 of type.
29696
29697 2011-01-12 Jan Hubicka <jh@suse.cz>
29698
29699 PR driver/47244
29700 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
29701 (PLUGIN_COND_CLOSE): New macro.
29702 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
29703
29704 2011-01-12 Richard Guenther <rguenther@suse.de>
29705
29706 PR lto/47259
29707 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
29708 register variables in a MEM_REF.
29709
29710 2011-01-12 Joseph Myers <joseph@codesourcery.com>
29711
29712 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
29713 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
29714 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
29715 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
29716 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
29717 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
29718 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
29719 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
29720 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
29721 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
29722 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
29723 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
29724 * config/gnu-user.h: New. Copied from linux.h.
29725 (LINUX_TARGET_STARTFILE_SPEC): Rename to
29726 GNU_USER_TARGET_STARTFILE_SPEC.
29727 (LINUX_TARGET_ENDFILE_SPEC): Rename to
29728 GNU_USER_TARGET_ENDFILE_SPEC.
29729 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
29730 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
29731 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
29732 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
29733 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
29734 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
29735 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
29736 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
29737 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
29738 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
29739 * config/arm/linux-eabi.h (CC1_SPEC): Use
29740 GNU_USER_TARGET_CC1_SPEC.
29741 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
29742 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
29743 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
29744 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
29745 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
29746 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
29747 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
29748 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
29749
29750 2011-01-12 Richard Guenther <rguenther@suse.de>
29751
29752 PR other/46946
29753 * doc/invoke.texi (ffast-math): Document it is turned on
29754 with -Ofast.
29755
29756 2011-01-12 Jan Hubicka <jh@suse.cz>
29757
29758 PR tree-optimization/47233
29759 * opts.c (common_handle_option): Disable ipa-reference with profile
29760 feedback.
29761
29762 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
29763
29764 * c-parser.c (c_parser_objc_at_property_declaration): Improved
29765 error message.
29766
29767 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
29768
29769 * c-parser.c (c_lex_one_token): Updated and reindented some
29770 comments. No changes in code.
29771
29772 2011-01-11 Ian Lance Taylor <iant@google.com>
29773
29774 * godump.c (go_output_var): Don't output the variable if there is
29775 already a type with the same name.
29776
29777 2011-01-11 Ian Lance Taylor <iant@google.com>
29778
29779 * godump.c (go_format_type): Don't generate float80.
29780
29781 2011-01-11 Richard Henderson <rth@redhat.com>
29782
29783 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
29784 declaration. Rewrite for both speed and size.
29785 (mn10300_address_cost_1): Remove.
29786 (mn10300_register_move_cost): New.
29787 (mn10300_memory_move_cost): New.
29788 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
29789 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
29790 extensions, shifts, BSWAP, CLZ.
29791 (mn10300_wide_const_load_uses_clr): Remove.
29792 (TARGET_REGISTER_MOVE_COST): New.
29793 (TARGET_MEMORY_MOVE_COST): New.
29794 * config/mn10300/mn10300-protos.h: Update.
29795 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
29796
29797 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
29798 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
29799 * config/mn10300/mn10300-protos.h: Update.
29800 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
29801 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
29802 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
29803 (*test_int_bitfield, *test_byte_bitfield): Remove.
29804 (*bit_test, *subreg_bit_test): Remove.
29805 * config/mn10300/predicates.md (const_8bit_operand): Remove.
29806
29807 * config/mn10300/constraints.md ("c"): Rename from "A".
29808 ("A", "D"): New constraint letters.
29809 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
29810 (fmssf4, fnmasf4, fnmssf4): Likewise.
29811
29812 * config/mn10300/mn10300.md (isa): New attribute.
29813 (enabled): New attribute.
29814
29815 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
29816 (abssf2, negsf2): Define only for hardware fp.
29817 (sqrtsf2): Reformat.
29818 (addsf3, subsf3, mulsf3): Merge expander and insn.
29819
29820 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
29821 (DEBUGGER_AUTO_OFFSET): Remove.
29822 (DEBUGGER_ARG_OFFSET): Remove.
29823
29824 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
29825 Emit register stores with the same offsets as the hardware.
29826 (mn10300_store_multiple_operation): Don't check that the register
29827 save offsets are monotonic.
29828 * config/mn10300/mn10300-protos.h: Update.
29829
29830 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
29831
29832 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
29833 in terms of the value on the stack, not the MDR register.
29834
29835 2011-01-11 Jan Hubicka <jh@suse.cz>
29836
29837 PR lto/45721
29838 PR lto/45375
29839 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
29840 (symbol_alias_set_destroy, symbol_alias_set_contains,
29841 propagate_aliases_backward): Declare.
29842 * lto-streamer-out.c (struct sets): New sturcture.
29843 (trivally_defined_alias): New function.
29844 (output_alias_pair_p): Rewrite.
29845 (output_unreferenced_globals): Fix output of alias pairs.
29846 (produce_symtab): Likewise.
29847 * ipa.c (function_and_variable_visibility): Set weak alias destination
29848 as needed in lto.
29849 * varasm.c (symbol_alias_set_t): Remove.
29850 (symbol_alias_set_destroy): Export.
29851 (propagate_aliases_forward, propagate_aliases_backward): New functions
29852 based on ...
29853 (compute_visible_aliases): ... this one; remove.
29854 (trivially_visible_alias): New
29855 (trivially_defined_alias): New.
29856 (remove_unreachable_alias_pairs): Rewrite.
29857 (finish_aliases_1): Reorganize code checking if alias is defined.
29858 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
29859 in LTO mode.
29860
29861 2011-01-11 Richard Guenther <rguenther@suse.de>
29862
29863 PR tree-optimization/46076
29864 * tree-ssa.c (useless_type_conversion_p): Conversions from
29865 unprototyped to empty argument list function types are useless.
29866
29867 2011-01-11 Richard Guenther <rguenther@suse.de>
29868
29869 PR middle-end/45235
29870 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
29871 volatile MEMs as MEM_READONLY_P.
29872
29873 2011-01-11 Richard Guenther <rguenther@suse.de>
29874
29875 PR tree-optimization/47239
29876 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
29877
29878 2011-01-11 Jeff Law <law@redhat.com>
29879
29880 PR tree-optimization/47086
29881 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
29882 IVs from statements that might throw.
29883
29884 2011-01-10 Jan Hubicka <jh@suse.cz>
29885
29886 PR lto/45375
29887 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
29888
29889 2011-01-10 Jan Hubicka <jh@suse.cz>
29890
29891 PR lto/45375
29892 * profile.c (read_profile_edge_counts): Ignore profile inconistency
29893 when correcting profile.
29894
29895 2011-01-10 Jan Hubicka <jh@suse.cz>
29896
29897 PR lto/46083
29898 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
29899 DECL_FINI_PRIORITY.
29900 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
29901 Restore DECL_FINI_PRIORITY.
29902
29903 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29904
29905 * doc/gimple.texi: Fix quoting of multi-word return values in
29906 @deftypefn statements. Ensure presence of return value. Wrap
29907 overlong @deftypefn lines.
29908 (is_gimple_operand, is_gimple_min_invariant_address): Remove
29909 descriptions of removed functions.
29910 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
29911 of multi-word return value in @deftypefn statement.
29912
29913 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29914
29915 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
29916 (Conditional Expressions, Logical Operators)
29917 (Statement and operand traversals): Do not indent smallexample
29918 code. Fix duplicate function argument in example.
29919
29920 2011-01-10 Jeff Law <law@redhat.com>
29921
29922 PR tree-optimization/47141
29923 * ipa-split.c (split_function): Handle case where we are
29924 returning a value and the return block has a virtual operand phi.
29925
29926 2011-01-10 Jan Hubicka <jh@suse.cz>
29927
29928 PR tree-optimization/47234
29929 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
29930 (pass_feedback_split_functions): Declare.
29931 * passes.c (init_optimization_passes): Add ipa-split as subpass of
29932 tree-profile.
29933 * ipa-split.c (gate_split_functions): Update comments; disable
29934 split-functions for profile_arc_flag and branch_probabilities.
29935 (gate_feedback_split_functions): New function.
29936 (execute_feedback_split_functions): New function.
29937 (pass_feedback_split_functions): New global var.
29938
29939 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
29940
29941 PR lto/46760
29942 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
29943 calling gimple_call_set_cannot_inline.
29944
29945 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
29946
29947 * config/darwin-sections.def: Remove unused section.
29948
29949 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
29950
29951 PR c++/47218
29952 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
29953
29954 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
29955
29956 PR objc/47232
29957 * c-parser.c (c_parser_declaration_or_fndef): Improved
29958 error message.
29959
29960 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
29961
29962 * config/i386/winnt.c (i386_pe_start_function): Make sure
29963 to switch back to function's section.
29964
29965 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
29966
29967 PR gcc/46902
29968 PR testsuite/46912
29969 * plugin.c: Move include of dlfcn.h from here...
29970 * system.h: ... to here.
29971
29972 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29973
29974 * doc/cpp.texi (C++ Named Operators): Fix markup for header
29975 file name.
29976 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
29977 two extra empty pages in PDF output.
29978
29979 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
29980
29981 PR objc/47078
29982 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
29983 for error recovery purposes behave as if it was not specified so
29984 that the default type is usd.
29985
29986 2011-01-07 Jan Hubicka <jh@suse.cz>
29987
29988 PR tree-optmization/46469
29989 * ipa.c (function_and_variable_visibility): Clear needed flags on
29990 nodes with external decls; handle weakrefs merging correctly.
29991
29992 2011-01-07 Joseph Myers <joseph@codesourcery.com>
29993
29994 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
29995 not false.
29996
29997 2011-01-07 Jan Hubicka <jh@suse.cz>
29998
29999 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
30000 and no longer claim that gold is required for linker plugin.
30001 * configure: Regenerate.
30002 * gcc.c (PLUGIN_COND): New macro.
30003 (LINK_COMMAND_SPEC): Use it.
30004 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
30005 * config.in (HAVE_LTO_PLUGIN): New.
30006 * configure.ac (--with-lto-plugin): New parameter; autodetect
30007 HAVE_LTO_PLUGIN.
30008
30009 2011-01-07 Jan Hubicka <jh@suse.cz>
30010
30011 PR tree-optimization/46367
30012 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
30013 when we can update original.
30014 (cgraph_mark_inline_edge): Sanity check.
30015 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
30016
30017 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30018
30019 * config/spu/spu.h (ASM_COMMENT_START): Define.
30020
30021 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
30022
30023 PR driver/42445
30024 * gcc.c (%>S): New.
30025 (SWITCH_KEEP_FOR_GCC): Likewise.
30026 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
30027 (do_spec_1): Handle "%>".
30028
30029 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
30030
30031 2011-01-07 Jakub Jelinek <jakub@redhat.com>
30032
30033 PR target/47201
30034 * config/i386/i386.c (ix86_delegitimize_address): If
30035 simplify_gen_subreg fails, return orig_x.
30036
30037 PR bootstrap/47187
30038 * value-prof.c (gimple_stringop_fixed_value): Handle
30039 lhs of the call properly.
30040
30041 2011-01-07 Jan Hubicka <jh@suse.cz>
30042
30043 PR lto/45375
30044 * lto-opt.c (lto_reissue_options): Set flag_shlib.
30045
30046 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
30047
30048 * target.def (function_switched_text_sections): New hook.
30049 * doc/tm.texi: Regenerated.
30050 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
30051 * final.c (default_function_switched_text_sections): New.
30052 (final_scan_insn): Call function_switched_text_sections when a
30053 mid-function section change occurs.
30054 * output.h (default_function_switched_text_sections): Declare.
30055 * config/darwin-protos.h (darwin_function_switched_text_sections):
30056 Likewise.
30057 * config/darwin.c (darwin_function_switched_text_sections): New.
30058 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
30059
30060 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
30061
30062 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
30063 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
30064 the secondary code fragment when outputting for DWARF == 2.
30065
30066 2011-01-07 Anatoly Sokolov <aesok@post.ru>
30067
30068 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
30069 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
30070 Remove.
30071 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
30072 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
30073
30074 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
30075
30076 PR debug/46704
30077 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
30078 when it is not empty.
30079
30080 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
30081
30082 Bobcat Enablement
30083 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
30084 (case ${target}): Add btver1.
30085 * config/i386/driver-i386.c (host_detect_local_cpu): Let
30086 -march=native recognize btver1 processors.
30087 * config/i386/i386-c.c (ix86_target_macros_internal): Add
30088 btver1 def_and_undef
30089 * config/i386/i386.c (struct processor_costs btver1_cost): New
30090 btver1 cost table.
30091 (m_BTVER1): New definition.
30092 (m_AMD_MULTIPLE): Includes m_BTVER1.
30093 (initial_ix86_tune_features): Add btver1 tune.
30094 (processor_target_table): Add btver1 entry.
30095 (static const char *const cpu_names): Add btver1 entry.
30096 (software_prefetching_beneficial_p): Add btver1.
30097 (ix86_option_override_internal): Add btver1 instruction sets.
30098 (ix86_issue_rate): Add btver1.
30099 (ix86_adjust_cost): Add btver1.
30100 * config/i386/i386.h (TARGET_BTVER1): New definition.
30101 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
30102 (enum processor_type): Add PROCESSOR_BTVER1.
30103 * config/i386/i386.md (define_attr "cpu"): Add btver1.
30104
30105 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30106
30107 PR target/43309
30108 * config/i386/i386.c (legitimize_tls_address)
30109 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
30110 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
30111 (tls_initial_exec_64_sun): New pattern.
30112
30113 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
30114
30115 * doc/invoke.texi (Overall Options): Improve wording and markup
30116 of the description of -wrapper.
30117
30118 2011-01-06 Joseph Myers <joseph@codesourcery.com>
30119
30120 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
30121 rdynamic, threads): New Driver options.
30122
30123 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30124
30125 PR target/38118
30126 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
30127 if coming from .tdata.
30128 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
30129
30130 2011-01-06 Jan Hubicka <jh@suse.cz>
30131
30132 PR lto/47188
30133 * collect2.c (main): Do not enable LTOmode when plugin is active.
30134
30135 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30136
30137 PR other/45915
30138 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
30139 --version output if supported.
30140 * configure: Regenerate.
30141
30142 2011-01-06 Joseph Myers <joseph@codesourcery.com>
30143
30144 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
30145 Driver options.
30146
30147 2011-01-06 Jakub Jelinek <jakub@redhat.com>
30148
30149 PR c/47150
30150 * c-convert.c (convert): When converting a complex expression
30151 other than COMPLEX_EXPR to a different complex type, ensure
30152 c_save_expr is called instead of save_expr, unless in_late_binary_op.
30153 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
30154 when converting COMPLEX_TYPE.
30155
30156 2011-01-06 Ira Rosen <irar@il.ibm.com>
30157
30158 PR tree-optimization/47139
30159 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
30160 only the last reduction value is used outside the loop. Update
30161 documentation.
30162
30163 2011-01-05 Joseph Myers <joseph@codesourcery.com>
30164
30165 * config/rtems.opt: New.
30166 * config.gcc (*-*-rtems*): Use rtems.opt.
30167
30168 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
30169
30170 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
30171 processors do not support 3DNow instructions.
30172
30173 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30174
30175 * config/spu/spu.c (spu_option_override): Set parameter
30176 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
30177
30178 2011-01-05 Jan Hubicka <jh@suse.cz>
30179
30180 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
30181 at the command line.
30182
30183 2011-01-05 Martin Jambor <mjambor@suse.cz>
30184
30185 PR lto/47162
30186 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
30187 deltas on streamed outgoing edges.
30188 (output_node_opt_summary): Output info for outgoing edges only when
30189 the node is in new parameter set.
30190 (output_cgraph_opt_summary): New parameter set, passed to the two
30191 aforementioned functions. Update its forward declaration and its
30192 callee too.
30193
30194 2011-01-05 Tom Tromey <tromey@redhat.com>
30195
30196 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
30197 operator to c_finish_omp_atomic.
30198 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
30199 (build_unary_op): Update.
30200 (build_modify_expr): Update.
30201 (build_asm_expr): Update.
30202
30203 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30204
30205 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
30206 newly inserted insns.
30207 (pad_bb): Likewise.
30208 (spu_emit_branch_hint): Likewise.
30209 (insert_hbrp_for_ilb_runout): Likewise.
30210 (spu_machine_dependent_reorg): Call df_finish_pass after
30211 schedule_insns returns.
30212
30213 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30214
30215 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
30216
30217 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
30218
30219 PR tree-optimization/47005
30220 * tree-sra.c (struct access): Add 'non_addressable' bit.
30221 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
30222 (decide_one_param_reduction): Return 0 if the parameter is passed by
30223 reference and one of the accesses in the group is non_addressable.
30224
30225 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
30226
30227 PR tree-optimization/47056
30228 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
30229 (mark_load): Likewise. Handle FUNCTION_DECL specially.
30230 (mark_store): Likewise. Pass STMT to ipa_record_reference.
30231
30232 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
30233
30234 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
30235 initializer. Skip view conversions from aggregate types.
30236
30237 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
30238
30239 PR bootstrap/47055
30240 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
30241
30242 2011-01-04 Philipp Thomas <pth@suse.de>
30243
30244 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
30245 obvious typo.
30246
30247 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30248
30249 * function.c (thread_prologue_and_epilogue_insns): Do not crash
30250 on empty epilogue sequences.
30251
30252 2011-01-04 Joseph Myers <joseph@codesourcery.com>
30253
30254 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
30255 non-static): New Driver options.
30256
30257 2011-01-04 Jie Zhang <jie@codesourcery.com>
30258
30259 PR driver/47137
30260 * gcc.c (default_compilers[]): Set combinable field to 0
30261 for all assembly languages.
30262
30263 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
30264
30265 * config/mips/loongson3a.md: New file.
30266 * config/mips/mips.md: Include loongson3a.md.
30267 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
30268 TUNE_LOONGSON_3A.
30269
30270 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
30271
30272 PR middle-end/47017
30273 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
30274 instead of convert_memory_address_addr_space on the base expression.
30275
30276 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30277
30278 * config/spu/spu.c (spu_option_override): Update error text
30279 for bad -march= / -mtune= values.
30280
30281 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30282
30283 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
30284 if branch-hint optimization will be performed.
30285
30286 2011-01-03 Jakub Jelinek <jakub@redhat.com>
30287
30288 PR tree-optimization/47148
30289 * ipa-split.c (split_function): Convert arguments to
30290 DECL_ARG_TYPE if possible.
30291
30292 PR tree-optimization/47155
30293 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
30294 when computing uns.
30295
30296 PR rtl-optimization/47157
30297 * combine.c (try_combine): If undobuf.other_insn becomes
30298 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
30299 and set *new_direct_jump_p too.
30300
30301 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
30302
30303 PR tree-optimization/47021
30304 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
30305
30306 2011-01-03 Jakub Jelinek <jakub@redhat.com>
30307
30308 * gcc.c (process_command): Update copyright notice dates.
30309 * gcov.c (print_version): Likewise.
30310 * gcov-dump.c (print_version): Likewise.
30311 * mips-tfile.c (main): Likewise.
30312 * mips-tdump.c (main): Likewise.
30313
30314 2011-01-03 Martin Jambor <mjambor@suse.cz>
30315
30316 PR tree-optimization/46801
30317 * tree-sra.c (type_internals_preclude_sra_p): Check whether
30318 aggregate fields start at byte boundary instead of the bit-field flag.
30319
30320 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
30321
30322 PR driver/47137
30323 * gcc.c (main): Revert revision 168407.
30324
30325 2011-01-03 Martin Jambor <mjambor@suse.cz>
30326
30327 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
30328
30329 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30330
30331 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
30332 vector optab to expand vector/scalar shift, update gimple to vector.
30333
30334 2011-01-03 Martin Jambor <mjambor@suse.cz>
30335
30336 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
30337 a thunk.
30338
30339 2011-01-03 Martin Jambor <mjambor@suse.cz>
30340
30341 PR tree-optimization/46984
30342 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
30343 HOST_WIDE_INT.
30344 (cgraph_create_indirect_edge): Fixed line length.
30345 (cgraph_indirect_call_info): Declare.
30346 (cgraph_make_edge_direct) Update declaration.
30347 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
30348 (cgraph_create_indirect_edge): Use it.
30349 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
30350 callees.
30351 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
30352 the new thunk_delta representation.
30353 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
30354 HOST_WIDE_INT.
30355 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
30356 (ipa_read_indirect_edge_info): Likewise.
30357 * lto-cgraph.c (output_edge_opt_summary): New function.
30358 (output_node_opt_summary): Call it on all outgoing edges.
30359 (input_edge_opt_summary): New function.
30360 (input_node_opt_summary): Call it on all outgoing edges.
30361
30362 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
30363
30364 PR driver/47137
30365 * gcc.c (main): Don't check have_o when settting combine_inputs.
30366
30367 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
30368
30369 * regrename.c: Add general comment describing the pass.
30370 (struct du_head): Remove 'length' field.
30371 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
30372 (regrename_optimize): Do not sort chains. Rework comments, add others.
30373 Force renaming to the preferred class (if any) in the first pass and do
30374 not consider registers that belong to it in the second pass.
30375 (create_new_chain): Do not set 'length' field.
30376 (scan_rtx_reg): Likewise.
30377
30378 2011-01-02 Jakub Jelinek <jakub@redhat.com>
30379
30380 PR tree-optimization/47140
30381 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
30382 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
30383 to bit_value_binop.
30384
30385 PR rtl-optimization/47028
30386 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
30387 parm_birth_insn instead of at the beginning of first bb.
30388
30389 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
30390
30391 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
30392 Remove the word "see" before "@pxref".
30393 * doc/rtl.texi: Remove the word "see" before "@pxref".
30394
30395 2011-01-01 Jan Hubicka <jh@suse.cz>
30396
30397 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
30398 memory.
30399
30400 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
30401
30402 PR target/38662
30403 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
30404
30405 \f
30406 Copyright (C) 2011 Free Software Foundation, Inc.
30407
30408 Copying and distribution of this file, with or without modification,
30409 are permitted in any medium without royalty provided the copyright
30410 notice and this notice are preserved.