1 2011-05-13 Richard Guenther <rguenther@suse.de>
3 PR tree-optimization/48172
4 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5 multiplying by number of iterations for equal step.
6 (vect_create_cond_for_alias_checks): Likewise.
8 2011-05-13 Andreas Schwab <schwab@redhat.com>
10 * configure.ac: Use AS_HELP_STRING throughout.
11 * configure: Regenerate.
13 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
15 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return
17 (ix86_emit_restore_regs_using_mov): Likewise.
18 (ix86_emit_restore_sse_regs_using_mov): Likewise.
20 2011-05-12 Anatoly Sokolov <aesok@post.ru>
22 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
23 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
24 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
25 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
26 RTX_OK_FOR_OLO10_P): ...here.
27 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
30 2011-05-12 Kai Tietz <ktietz@redhat.com>
32 * gimplify.c (gimple_boolify): Re-boolify expression
33 arguments even if expression type is of kind BOOLEAN_TYPE.
34 (gimplify_boolean_expr): Removed.
35 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
36 and XOR. Additional take care that we keep expression's type.
37 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
38 of TRUTH_AND|OR|XOR_EXPR.
40 2011-05-12 Jakub Jelinek <jakub@redhat.com>
42 PR tree-optimization/48975
43 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
44 on all bbs here and free and clear ifc_bbs at the end.
46 2011-05-12 Richard Guenther <rguenther@suse.de>
48 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
49 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
50 until after simple checks.
51 (gimple_types_compatible_p): Likewise.
52 (iterative_hash_gimple_type): Always hash pointer targets
53 and function return and argument types.
54 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
55 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
56 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
57 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
58 completely in the simple compare section.
59 (gimple_register_canonical_type): Query the cache again after
62 2011-05-12 Richard Guenther <rguenther@suse.de>
64 PR tree-optimization/48172
65 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
66 the number of iterations from the segment size calculation.
67 (vect_create_cond_for_alias_checks): Adjust.
69 2011-05-12 Jakub Jelinek <jakub@redhat.com>
72 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
73 if validate_subreg fails.
75 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
77 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
78 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
81 2011-05-12 DJ Delorie <dj@redhat.com>
83 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
84 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
85 created builtin into rx_builtins array.
86 (rx_builtin_decl): New function.
87 (TARGET_BUITLIN_DECL): Define.
90 2011-05-12 DJ Delorie <dj@redhat.com>
91 Nick Clifton <nickc@redhat.com>
93 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
94 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
95 (rx_is_legitimate_address): Add pre-decrement and post-increment
96 addressing in HImode and QImode. Fix test for out of range
98 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
99 (rx_align_for_label): Test label before extracting its usage
101 (rx_adjust_insn_lengths): Fix selection of insn codes.
102 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
104 2011-05-11 Jason Merrill <jason@redhat.com>
106 * tree.c (type_hash_canon): Use struct tree_type_non_common.
108 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
110 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
111 reindent the subsequent block.
113 2011-05-11 Satoru Takabayashi <satorux@google.com>
114 Paul Pluzhnikov <ppluzhnikov@google.com>
116 * doc/install.texi (Configuration): Document
117 --with-linker-hash-style.
118 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
119 * config.in: Add LINKER_HASH_STYLE.
120 * configure.ac: Add --with-linker-hash-style.
121 * configure: Regenerate.
123 2011-05-11 Richard Guenther <rguenther@suse.de>
126 * gimple.c (iterative_hash_canonical_type): Fix typo.
128 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
130 * config/i386/i386.c (legitimize_tls_address)
131 <TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
132 expanders directly for TARGET_GNU2_TLS. Determine pic and
133 __tls_get_addr symbol reference here. Update call to
134 gen_tls_global_dynamic_{32,64} for added arguments.
135 <TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
136 expanders directly for TARGET_GNU2_TLS. Determine
137 __tls_get_addr symbol reference here. Update call to
138 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
139 unique UNSPEC REG_EQUIV to libcall block.
140 (ix86_tls_get_addr): Declare static.
141 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
142 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
143 Do not determine pic and __tls_get_addr symbol reference here. Do not
144 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
145 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
146 (tls_global_dynamic_64): Add operand 2. Do not determine
147 __tls_get_addr symbol reference here. Do not call
148 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
149 (tls_local_dynamic_base64): Ditto for operand 1.
151 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
153 * function.c (expand_function_start): Initialize stack_check_probe_note
154 only if the generic stack checking mechanism is used.
156 2011-05-11 Richard Guenther <rguenther@suse.de>
158 PR tree-optimization/15256
159 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
160 (A & B) | C, combine (A op CST1) op CST2.
161 (tree_ssa_forward_propagate_single_use_vars): Only bother to
162 visit assigns that have uses.
164 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
166 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
167 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
168 (unpack_ts_type_common_value_fields): ...this. Update comment.
169 (unpack_value_fields): Adjust for renaming.
170 (lto_input_ts_type_tree_pointers): Split into...
171 (lto_input_ts_type_common_tree_pointer): ...this and...
172 (lto_input_ts_type_non_common_tree_pointers): ...this.
173 (lto_input_tree_pointers): Adjust for above split.
174 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
175 (pack_ts_type_common_value_fields): ...this. Update comment.
176 (lto_output_ts_type_tree_pointers): Split into...
177 (lto_output_ts_type_common_tree_pointers): ...this and...
178 (lto_output_ts_type_non_common_tree_pointers): ...this.
179 (lto_output_tree_pointers): Adjust for above split.
180 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
181 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
182 * stor-layout.c (vector_type_mode): Adjust location of mode field.
183 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
185 (struct tree_type): Split into...
186 (struct tree_type_common: ...this and...
187 (struct tree_type_with_lang_specific): ...this and...
188 (struct tree_type_non_common): ...this. Adjust accessor macros
190 (TYPE_VALUES_RAW): Define.
191 (union tree_node): Update for above changes.
192 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
194 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
195 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
196 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
197 * treestructu.def (TS_TYPE): Remove.
198 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
201 2011-05-11 Jakub Jelinek <jakub@redhat.com>
204 * tree-ssa.c (reset_debug_uses): New function.
205 * tree-flow.h (reset_debug_uses): New prototype.
206 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
207 * tree-loop-distribution.c (generate_loops_for_partition): Call
208 reset_debug_uses on the stmts that will be removed. Keep around
209 all debug stmts, don't count them as bits in partition bitmap.
210 (generate_builtin): Don't count debug stmts or labels as bits in
213 2011-05-11 Richard Guenther <rguenther@suse.de>
215 * gimple.c (gimple_type_hash_1): Merge with ...
216 (gimple_type_hash): ... this.
217 (gtc_visit): Remove mode parameter and simplify accordingly.
218 (gimple_types_compatible_p_1): Likewise.
219 (gimple_types_compatible_p): Likewise.
220 (iterative_hash_gimple_type): Likewise.
222 (gimple_type_eq): Adjust.
224 2011-05-11 Revital Eres <revital.eres@linaro.org>
226 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
227 enters the branch create an anti edge in the opposite direction
228 to prevent the creation of reg-moves.
229 * modulo-sched.c: Adjust comment to reflect the fact we are
230 scheduling closing branch.
231 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
232 (stage_count): New field in struct partial_schedule.
233 (calculate_stage_count): New function.
234 (normalize_sched_times): Rename to reset_sched_times and handle
235 incrementing the sched time of the nodes by a constant value
237 (duplicate_insns_of_cycles): Skip closing branch.
238 (sms_schedule_by_order): Schedule closing branch.
239 (ps_insn_find_column): Handle closing branch.
240 (sms_schedule): Call reset_sched_times and adjust the code to
241 support scheduling of the closing branch.
242 (ps_insert_empty_row): Update calls to normalize_sched_times
243 and rotate_partial_schedule functions.
245 2011-05-11 Richard Guenther <rguenther@suse.de>
248 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
250 2011-05-11 Joseph Myers <joseph@codesourcery.com>
252 * opts.c (finish_options): Move warning settings from process_options.
253 * toplev.c (process_options): Move warning settings to finish_options.
255 2011-05-11 Richard Guenther <rguenther@suse.de>
257 PR tree-optimization/18041
258 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
259 (simplify_bitwise_binary): ... this. Handle operand conversions
260 by applying them to the result instead.
261 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
263 2011-05-11 Richard Guenther <rguenther@suse.de>
265 * gimple.c (gimple_canonical_types_compatible_p): Split out
266 from gimple_types_compatible_p and friends. Do not recurse
268 (gimple_canonical_type_eq): Use it.
269 (iterative_hash_canonical_type): Split out from
270 iterative_hash_gimple_type and friends. Do not recurse
272 (gimple_canonical_type_hash): Use it, allocate the hash here.
274 2011-05-11 Revital Eres <revital.eres@linaro.org>
276 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
279 2011-05-11 Revital Eres <revital.eres@linaro.org>
281 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
282 instead of PREV_INSN.
284 2011-05-11 Revital Eres <revital.eres@linaro.org>
286 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
287 * loop-doloop.c (doloop_condition_get): Likewise.
288 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
290 * config/arm/arm.md (*addsi3_compare0): Remove "*".
292 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
294 * tree.def (CASE_LABEL_EXPR): Add an operand.
295 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
297 2011-05-10 Joseph Myers <joseph@codesourcery.com>
299 * c-decl.c (c_override_global_bindings_to_false): Remove.
300 (global_bindings_p): Don't check
301 c_override_global_bindings_to_false.
302 * c-tree.h (c_override_global_bindings_to_false): Remove.
303 * c-typeck.c (composite_type): Don't set
304 c_override_global_bindings_to_false.
306 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
308 PR target/48857, 48495
309 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
311 (VSX_MOVE_MODE): Ditto.
312 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
313 VSX vector types. Add V2DImode.
314 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
315 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
316 (MODES_TIEABLE_P): Ditto.
318 * config/rs6000/rs6000.c (rs6000_emit_move): Use
319 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
321 (init_cumulative_args): Ditto.
322 (rs6000_function_arg_boundary): Ditto.
323 (rs6000_function_arg_advance_1): Ditto.
324 (rs6000_function_arg): Ditto.
325 (rs6000_function_ok_for_sibcall): Ditto.
326 (emit_frame_save): Ditto.
327 (rs6000_function_value): Ditto.
328 (rs6000_libcall_value): Ditto.
330 2011-05-10 Joseph Myers <joseph@codesourcery.com>
332 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
333 i386/darwin-lib.h to $libgcc_tm_file.
334 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
336 2011-05-10 Joseph Myers <joseph@codesourcery.com>
338 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
340 2011-05-10 Joseph Myers <joseph@codesourcery.com>
342 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
343 * config/rs6000/rs6000-tables.opt: New file (generated).
344 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
345 rs6000/rs6000-tables.opt to extra_options.
346 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
347 * config/rs6000/rs6000.c (rs6000_select): Remove.
348 (processor_target_table): Move contents to rs6000-cpus.def.
349 (darwin_rs6000_override_options): Check
350 global_options_set.x_rs6000_cpu_index instead of
351 rs6000_select[1].string.
352 (rs6000_option_override_internal): Likewise.
353 (rs6000_handle_option): Don't assert that global structures are in
354 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
355 (rs6000_default_cpu): New variable.
356 (rs6000_file_start): Set it instead of local default_cpu. Check
357 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
358 global_options_set.x_rs6000_tune_index instead of rs6000_select.
359 (rs6000_darwin_file_start): Check rs6000_default_cpu and
360 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
361 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
362 rs6000_select): Remove.
363 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
365 (mcpu=, mtune=): Use Var, Init, Enum and Save.
366 * config/rs6000/t-rs6000
367 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
368 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
369 global_options_set.x_rs6000_cpu_index instead of
370 rs6000_select[1].string.
371 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
372 global_options_set.x_rs6000_cpu_index instead of
373 rs6000_select[1].string.
375 2011-05-10 Joseph Myers <joseph@codesourcery.com>
377 * config.gcc (libgcc_tm_file): Define instead of including files
378 from ../../libgcc/config/ in tm_file.
379 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
380 * configure: Regenerate.
381 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
382 libgcc_tm.h, cs-libgcc_tm.h): New.
383 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
384 (clean): Remove libgcc_tm.h.
385 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
386 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
387 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
389 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
392 * config/avr/avr.c (avr_ret_register): Return unsigned int
394 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
395 it to avr_libcall_value.
396 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
398 (avr_expand_binop_builtin): Ditto.
399 (avr_expand_unop_builtin): Ditto.
401 2011-05-10 DJ Delorie <dj@redhat.com>
403 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
404 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
405 * config/rx/rx.c (rx_align_for_label): Add label and
406 uses_threshold parameters. Do not align when the label is not
408 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
410 2011-05-10 Richard Guenther <rguenther@suse.de>
412 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
413 a series of conversions and apply foldings similar to what
415 (tree_ssa_forward_propagate_single_use_vars): Call it.
417 2011-05-10 Jakub Jelinek <jakub@redhat.com>
419 PR tree-optimization/48611
420 PR tree-optimization/48794
421 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
422 referenced from RESX or EH_DISPATCH arguments.
425 * dfp.c (decimal_to_decnumber): Handle conversion from
428 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
430 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
431 for !flag_prefer_avx128.
432 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
434 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
436 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
437 (fold_ternary_loc): Use expr_location_or.
439 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
442 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
443 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
444 Pmode and mem_mode is not VOIDmode.
446 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
448 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
449 TYPE_QUAL_RESTRICT): Convert to enum.
451 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
453 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
454 (const_pow2_1_to_8_operand): Ditto.
455 (const_pow2_1_to_128_operand): Ditto.
456 (const_pow2_1_to_32768_operand): Ditto.
457 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
458 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
459 in insn constraint to check integer value of operand 3.
460 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
462 (PINSR_MODE): New mode iterator.
463 (sse2p4_1): New mode attribute.
464 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
465 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
466 iterator. Use const_int_operand instead of
467 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
468 exact_log2 in insn constraint to check integer value of operand 3.
470 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
472 * config/i386/sse.md (blendbits): Remove mode attribute.
473 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
474 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
475 Check integer value of operand 3 in insn constraint.
477 2011-05-09 Richard Guenther <rguenther@suse.de>
479 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
481 (lto_symtab_merge): Likewise. Do not register types here.
482 (lto_symtab_merge_decls_2): Likewise.
483 (lto_symtab_merge_decls_1): Likewise.
484 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
485 * gimple.c (enum gtc_mode): Declare.
486 (gimple_types_compatible_p): Make static.
488 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
490 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
491 temporary register to match Pmode.
493 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
495 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
496 and *vec_concatv4si_1_avx.
498 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
500 PR rtl-optimization/48927
501 * ira-conflicts.c (commutative_constraint_p): Use
502 recog_data.alternative_enabled_p to disable alternatives where
503 "enabled" attribute is false.
504 (get_dup_num): Ditto.
505 * ira-lives.c (single_reg_class): Ditto.
506 (ira_implicitly_set_insn_hard_regs): Ditto.
508 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
510 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
511 (dataflow_set_preserve_mem_locs): Likewise.
513 2011-05-09 Philipp Thomas <pth@suse.de>
515 * config/mep/mep.c (mep_validate_vliw): Syntax description
516 should not be translated.
518 2011-05-09 Joseph Myers <joseph@codesourcery.com>
520 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
521 * config/mips/mips-tables.opt: New file (generated).
522 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
523 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
524 MIPS_ARCH_OPTION_NATIVE): Define.
525 * config/mips/mips.c (mips_cpu_info_table): Move contents to
527 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
528 mips_parse_cpu): Remove.
529 (mips_cpu_info_from_opt, mips_default_arch): New.
530 (mips_handle_option): Don't assert that global structures are in
531 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
532 (mips_option_override): Use new variables and functions to set
533 state of these options. Use strcmp to check for individual CPU names.
534 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
536 * config/mips/mips.opt (march=): Use ToLower and Enum.
537 (mips): Use ToLower, Enum and Var.
538 (mtune=): Use ToLower and Enum.
539 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
541 2011-05-08 Jan Hubicka <jh@suse.cz>
543 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
544 Arrange type pairs to be UID ordered.
545 (gimple_lookup_type_leader): Make inline.
547 2011-05-09 Nick Clifton <nickc@redhat.com>
550 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
554 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
557 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
559 * combine.c (simplify_comparison): Abstract out parts into...
560 (simplify_compare_const): ... new function.
561 (try_combine): Generalize parallel arithmetic/compare combining
562 to call simplify_compare_const() and CANONICALIZE_COMPARE().
564 2011-05-08 Jan Hubicka <jh@suse.cz>
566 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
567 (cgraph_create_virtual_clone): Call hooks once virtual clone
569 * cgraph.h (cgraph_clone_node): Update prototype.
570 * ipa-cp.c (ipcp_estimate_growth): Use
571 estimate_ipcp_clone_size_and_time.
572 * ipa-inline-transform.c (clone_inlined_nodes): Update.
573 * lto-cgraph.c (input_node): Update.
574 * ipa-inline.c (recursive_inlining): Update.
575 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
576 (evaluate_conditions_for_known_args): Break out from ...
577 (evaluate_conditions_for_edge): ... here.
578 (evaluate_conditions_for_ipcp_clone): New function.
579 (inline_node_duplication_hook): Update clone summary based
581 (estimate_callee_size_and_time): Rename to ...
582 (estimate_node_size_and_time): take NODE instead of EDGE;
583 take POSSIBLE_TRUTHS as argument.
584 (estimate_callee_size_and_time): Update.
585 (estimate_ipcp_clone_size_and_time): New function.
586 (do_estimate_edge_time): Update.
588 2011-05-08 Richard Guenther <rguenther@suse.de>
592 * expmed.c (expand_shift_1): Compute adjusted constant shift
595 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
597 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
599 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
601 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
603 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
605 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
607 2011-05-07 Jan Hubicka <jh@suse.cz>
609 * ipa-inline-transform.c (inline_call): Account when program size
611 * ipa-inline.c (relative_time_benefit): New function.
612 (edge_badness): Reorganize to be power 2 based; fix thinko when
613 computing badness for negative growth; update comments to match
614 reality; better dumps.
616 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
618 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
619 type to bool and adjust comment.
620 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
621 (fold_mathfn_compare): Remove calls to global_bindings_p.
622 (fold_inf_compare): Likewise.
623 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
624 * c-tree.h (global_bindings_p): Adjust prototype.
625 * c-decl.c (global_bindings_p): Return bool and simplify.
627 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
629 PR tree-optimization/48837
630 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
631 when accumulator transformation is performed.
633 2011-05-06 Jan Hubicka <jh@suse.cz>
635 * i386.h (ix86_tune_indices): Add
636 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
637 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
638 * i386.c (initial_ix86_tune_features): Add
639 X86_SOFTARE_PREFETCHING_BENEFICIAL.
640 (software_prefetching_beneficial_p): Remove predicate.
641 (ix86_option_override_internal): Use new macro.
643 2011-05-06 Jan Hubicka <jh@suse.cz>
645 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
647 2011-05-06 Jan Hubicka <jh@suse.cz>
649 * cgraph.c (cgraph_add_thunk): Create real function node instead
650 of alias node; finalize it and mark needed/reachale; arrange visibility
651 to be right and add it into the corresponding same comdat group list.
652 (dump_cgraph_node): Dump thunks.
653 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
654 cgraph_function_with_gimple_body_p,
655 cgraph_first_function_with_gimple_body,
656 cgraph_next_function_with_gimple_body): New functions.
657 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
659 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
660 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
661 * cgraphunit.c (cgraph_finalize_function): Only look into possible
662 devirtualization when optimizing.
663 (verify_cgraph_node): Verify thunks.
664 (cgraph_analyze_function): Analyze thunks.
665 (cgraph_mark_functions_to_output): Output thunks only in combination
666 with function they are assigned to.
667 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
668 alias into normal node.
669 (assemble_thunks): New functoin.
670 (cgraph_expand_function): Use it.
671 * lto-cgraph.c (lto_output_node): Stream thunks.
672 (input_overwrite_node): Stream in thunks.
673 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
674 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
675 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
676 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
677 (inline_analyze_function): Do not care about thunk jump functions.
678 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
679 * ipa-prop.c (ipa_prop_write_jump_functions): Use
680 cgraph_function_with_gimple_body_p.
681 * passes.c (do_per_function_toporder): Use
682 cgraph_function_with_gimple_body_p.
683 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
684 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
685 (function_called_by_processed_nodes_p): Likewise.
687 2011-05-06 Joseph Myers <joseph@codesourcery.com>
689 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
690 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
692 (mabi=): Replace with separate entries for mabi=altivec,
693 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
694 mabi=ieeelongdouble and mabi=ibmlongdouble.
695 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
696 check for -mabi=spe without SPE ABI support here.
697 (rs6000_handle_option): Replace OPT_mabi_ handling with
698 OPT_mabi_altivec and OPT_mabi_spe handling.
700 2011-05-06 Cary Coutant <ccoutant@google.com>
702 * dwarf2out.c (contains_subprogram_definition): New function.
703 (should_move_die_to_comdat): Call it.
705 2011-05-06 Jeff Law <law@redhat.com>
707 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
708 remove_ctrl_stmt_and_useless_edges.
709 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
710 (fixup_template_block, thread_single_edge): Likewise.
711 (mark_threaded_blocks): Use THREAD_TARGET.
713 2011-05-06 Alan Modra <amodra@gmail.com>
716 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
717 const0_rtx as the arg to the dummy __tls_get_addr libcall.
719 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
721 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
722 constraint modifier to "r".
724 2011-05-06 Joseph Myers <joseph@codesourcery.com>
726 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
727 fall through for OPT_mcmodel_.
729 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
731 * config/s390/s390.c (s390_asm_trampoline_template): Comment
733 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
735 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
738 * config/arm/arm.opt (marm): Document it.
739 (mthumb): Reject negative variant.
741 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
744 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
745 Fix typo in "ccvt" variable name.
747 2011-05-06 Tristan Gingold <gingold@adacore.com>
750 * config/vms/vms-ar.c (main): Remove cwd variable.
752 2011-05-06 Jakub Jelinek <jakub@redhat.com>
755 * var-tracking.c (prepare_call_arguments): Move else before #endif.
757 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
759 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
760 * gimplify.c (gimplify_switch_expr): Likewise.
761 * omp-low.c (expand_omp_sections): Likewise.
762 * tree-eh.c (lower_try_finally_switch): Likewise.
763 (lower_eh_dispatch): Likewise.
764 * tree.h (build_case_label): Declare.
765 * tree.c (build_case_label): Define.
767 2011-05-05 Jason Merrill <jason@redhat.com>
770 * tree-inline.c (copy_tree_r): Use copy_statement_list.
771 (copy_statement_list): Don't recurse.
772 * stor-layout.c (copy_self_referential_tree_r): Don't allow
775 2011-05-05 Joseph Myers <joseph@codesourcery.com>
777 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
778 through from -mfpu= handling.
779 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
781 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
783 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
786 2011-05-05 Steve Ellcey <sje@cup.hp.com>
788 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
790 (hppa[12]*-*-hpux11*): Ditto.
791 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
792 * config/ia64/hpux-unix2003.h: New.
793 * config/pa/pa-hpux1131.opt: New.
794 * config/pa/pa-hpux1131.h: New.
795 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
796 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
797 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
799 2011-05-05 Jakub Jelinek <jakub@redhat.com>
802 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
803 instead of mode as 3rd argument to recursive call.
804 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
805 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
807 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
808 don't give up if mode is Pmode and mem_mode is not VOIDmode.
809 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
810 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
812 2011-05-05 Julian Brown <julian@codesourcery.com>
814 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
815 parenthesis in D-register case.
817 2011-05-05 Joseph Myers <joseph@codesourcery.com>
819 * opt-functions.awk (var_type_struct): Handle Enum options.
820 * optc-gen.awk: Don't check range of variables of character type.
821 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
822 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
823 rs6000_sdata_name, rs6000_explicit_options): Remove.
824 (rs6000_option_override_internal): Check for -malign-power here.
825 Use global_options_set instead of rs6000_explicit_options.
826 (rs6000_parse_fpu_option): Remove.
827 (rs6000_handle_option): Access variables via opts and opts_set
828 pointers. Use error_at and warning_at. Add fall-through
829 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
830 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
831 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
832 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
833 here. Don't use rs6000_parse_fpu_option.
834 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
835 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
836 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
838 (mspe): Use Var and Save.
839 (mtraceback=): Use Enum and Var.
840 (rs6000_traceback_type): New Enum and EnumValue entries.
841 (mfloat-gprs=): Use Enum, Var and Save.
842 (rs6000_float_gprs): New Enum and EnumValue entries.
843 (mlong-double-): use Var and Save.
844 (msched-costly-dep=, minsert-sched-nops=): Use Var.
845 (malign-): Use Enum and Var.
846 (rs6000_alignment_flags): New Enum and EnumValue entries.
848 (fpu_type_t): New Enum and EnumValue entries.
849 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
850 global_options_set instead of rs6000_explicit_options.
851 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
852 global_options_set instead of rs6000_explicit_options.
853 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
854 global_options_set instead of rs6000_explicit_options.
855 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
856 global_options_set instead of rs6000_explicit_options.
857 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
858 global_options_set instead of rs6000_explicit_options.
859 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
860 global_options_set instead of rs6000_explicit_options.
861 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
863 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
864 global_options_set instead of rs6000_explicit_options.
865 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
866 (rs6000_cmodel): New Enum and EnumValue entries.
867 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
868 global_options_set instead of rs6000_explicit_options.
869 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
870 (mtls-size=): Use Enum and Var.
871 (rs6000_tls_size): New Enum and EnumValue entries.
873 2011-05-05 Michael Matz <matz@suse.de>
875 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
876 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
877 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
878 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
879 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
880 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
881 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
882 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
883 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
884 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
885 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
886 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
887 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
888 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
889 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
890 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
892 2011-05-05 Richard Guenther <rguenther@suse.de>
894 * expmed.c (expand_variable_shift): Rename to ...
895 (expand_shift_1): ... this. Take an expanded shift amount.
896 For rotates recurse directly not building trees for the shift amount.
897 (expand_variable_shift): Wrap around expand_shift_1.
898 (expand_shift): Adjust.
900 2011-05-05 Jakub Jelinek <jakub@redhat.com>
902 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
904 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
906 * tree.h (get_pending_sizes): Remove prototype.
907 (put_pending_size): Likewise.
908 (put_pending_sizes): Likewise.
909 * stor-layout.c (pending_sizes): Delete.
910 (get_pending_sizes): Likewise.
911 (put_pending_size): Likewise.
912 (put_pending_sizes): Likewise.
913 (variable_size): Do not call put_pending_size and tidy up.
914 * function.h (struct function): Remove dont_save_pending_sizes_p.
915 * lto-streamer-in.c (input_function): Do not stream it.
916 * lto-streamer-out.c (output_function): Likewise.
917 * tree-inline.c (initialize_cfun): Do not copy it.
918 * c-decl.c (store_parm_decls): Do not set it.
919 * omp-low.c (create_task_copyfn): Likewise.
920 * tree-optimize.c (tree_rest_of_compilation): Likewise.
922 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
924 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
926 (*movdf_internal): Ditto.
927 (*movdf_internal_nointeger): Ditto.
928 (*movsf_internal): Ditto.
930 2011-05-05 Joseph Myers <joseph@codesourcery.com>
932 * c-decl.c (finish_decl): Don't call get_pending_sizes.
933 (grokparm): Add parameter expr. Pass it to grokdeclarator.
934 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
935 (c_variable_size): Remove.
936 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
937 call put_pending_sizes.
938 (get_parm_info): Add parameter expr. Use it to set
939 arg_info->pending_sizes.
940 (store_parm_decls): Use arg_info->pending_sizes instead or calling
942 * c-parser.c (c_parser_parms_declarator): Update call to
943 c_parser_parms_list_declarator.
944 (c_parser_parms_list_declarator): Take parameter expr. Update
945 call to push_parm_decl. Update recursive call. Don't call
946 get_pending_sizes. Update calls to get_parm_info.
947 (c_parser_objc_method_definition): Update calls to
948 c_parser_objc_method_decl and objc_start_method_definition.
949 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
950 (c_parser_objc_method_decl): Add parameter expr. Update call to
952 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
953 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
954 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
956 2011-05-05 Michael Hope <michael.hope@linaro.org>
959 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
962 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
964 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
965 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
966 (spu_output_mi_thunk): New function.
968 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
970 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
971 targetm.asm_out.print_operand.
972 * config/sol2.c: Include target.h.
974 2011-05-04 Jan Hubicka <jh@suse.cz>
976 * ipa-inline.c (reset_edge_caches): New function.
977 (update_caller_keys): Add check_inlinablity_for; do not
978 reset edge caches; remove now unnecesary loop.
979 (update_callee_keys): Add comments; reset node_growth_cache of callee.
980 (update_all_callee_keys): Likewise.
981 (inline_small_functions): Sanity check cache; update code
984 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
986 PR rtl-optimization/47612
987 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
988 as the last insn of the sequence to be moved.
990 2011-05-04 Tobias Burnus <burnus@net-b.de>
993 * doc/invoke.texi (Ofast): Document that it
994 enables Fortran's -fno-protect-parens.
996 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
998 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1000 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
1002 * stor-layout.c (variable_size): Do not issue errors.
1004 2011-05-04 Richard Guenther <rguenther@suse.de>
1006 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1007 for array-ref indices.
1008 (tree_coverage_counter_addr): Likewise.
1009 (build_fn_info_type): Use size_int for index types.
1010 (build_gcov_info): Likewise.
1012 2011-05-04 Richard Guenther <rguenther@suse.de>
1014 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1016 * c-typeck.c (really_start_incremental_init): Use bitsize_int
1017 for constructor indices.
1018 (push_init_level): Likewise.
1020 2011-05-04 Richard Guenther <rguenther@suse.de>
1022 * explow.c (promote_mode): Move variable declarations before code.
1024 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1026 * tree.h (build_function_type_array): Declare.
1027 (build_varargs_function_type_array): Declare.
1028 (build_function_type_vec, build_varargs_function_type_vec): Define.
1029 * tree.c (build_function_type_array_1): New function.
1030 (build_function_type_array): New function.
1031 (build_varargs_function_type_array): New function.
1033 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
1035 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1036 before setting STMT_VINFO_TYPE.
1038 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1040 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1041 instead of spu_pass_by_reference.
1043 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1045 * calls.c (emit_library_call_value_1): Invoke
1046 promote_function_mode hook on libcall arguments.
1047 * explow.c (promote_function_mode, promote_mode): Handle TYPE
1048 argument being NULL.
1049 * targhooks.c (default_promote_function_mode): Lisewise.
1050 * config/s390/s390.c (s390_promote_function_mode): Likewise.
1051 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1053 * doc/tm.texi: Document that TYPE argument might be NULL.
1055 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1057 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1059 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1062 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1064 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1066 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1067 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1069 * mips-tfile.c: ... here.
1070 Don't include coretypes.h, tm.h, filenames.h.
1071 (saber_stop): Remove definition and all calls.
1072 [__SABER__]: Remove.
1073 (__LINE__): Remove default.
1074 (Size_t, Ptrdiff_t): Remove definitions.
1075 Replace by size_t, ptrdiff_t.
1076 [!MIPS_DEBUGGING_INFO]: Remove.
1077 (SHASH_SIZE, THASH_SIZE): Remove defaults.
1078 (progname): Add const.
1080 Replace all uses by static.
1081 (ALIGN_SYMTABLE_OFFSET): Remove default.
1082 * mips-tdump.c: Don't include coretypes.h, tm.h.
1083 Remove !MIPS_IS_STAB guard.
1084 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1085 $(TM_H), filenames.h dependencies.
1086 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1088 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1091 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1092 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1094 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1097 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1098 account and save/restore RETS.
1099 (PROFILE_BEFORE_PROLOGUE): Define.
1100 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
1101 the push insn to use predecrement.
1103 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1106 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1108 2011-05-04 Nick Clifton <nickc@redhat.com>
1110 * config/mn10300/mn10300.c: Include cfgloop.h.
1112 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
1113 Lcc or a FLcc insn into the instruction stream.
1114 (mn10300_block_contains_call): New function. Returns true if the
1115 given basic block contains a CALL insn.
1116 (mn10300_loop_contains_call_insn): New function. Returns true if
1117 the given loop contains a CALL insn.
1118 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
1119 to use the SETLB and Lcc or FLcc insns.
1120 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1121 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1122 * config/mn10300/mn10300.opt (msetlb): New option. Used to
1123 disable the SETLB optimization.
1124 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1125 __SETLB__ or __NO_SETLB__.
1126 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1127 (movsf_internal): Handle MDR register.
1128 (cmpsi): Make visible.
1129 (setlb): New pattern.
1131 (FLcc): New pattern.
1133 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1136 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1137 for reg<->xmm moves.
1138 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1139 (vec_concatv2di_rex64_sse): Ditto.
1140 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1141 (*vec_extractv2di_1_rex64): Ditto.
1144 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1146 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1148 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1150 2011-05-04 Richard Guenther <rguenther@suse.de>
1152 * tree.h (int_const_binop): Remove notrunc argument.
1153 * fold-const.c (int_const_binop): Remove notrunc argument. Always
1154 create integer constants that are properly truncated.
1155 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1156 (const_binop): Remove zero notrunc argument to int_const_binop.
1157 (size_binop_loc): Likewise.
1158 (fold_div_compare): Likewise.
1159 (maybe_canonicalize_comparison_1): Likewise.
1160 (fold_comparison): Likewise.
1161 (fold_binary_loc): Likewise.
1162 (multiple_of_p): Likewise.
1163 * expr.c (store_constructor): Likewise.
1164 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1165 (maybe_fold_stmt_addition): Likewise.
1166 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1167 * stor-layout.c (layout_type): Likewise.
1168 * tree-data-ref.c (tree_fold_divides_p): Likewise.
1169 * tree-sra.c (build_ref_for_offset): Likewise.
1170 (build_user_friendly_ref_for_offset): Likewise.
1171 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1172 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1173 * tree-ssa-loop-niter.c (inverse): Likewise.
1174 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1175 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1176 * tree-switch-conversion.c (check_range): Likewise.
1177 (build_constructors): Likewise.
1178 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1179 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1180 (extract_range_from_assert): Likewise.
1181 (vrp_int_const_binop): Likewise.
1182 (extract_range_from_binary_expr): Likewise.
1183 (extract_range_from_unary_expr): Likewise.
1184 (check_array_ref): Likewise.
1185 (find_case_label_range): Likewise.
1186 (simplify_div_or_mod_using_ranges): Likewise.
1187 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1188 comparing case labels for merging.
1190 2011-05-03 Mark Wielaard <mjw@redhat.com>
1192 * dwarf2out.c (debug_str_hash_forced): Removed.
1193 (gen_label_for_indirect_string): Removed.
1194 (get_debug_string_label): Removed.
1195 (AT_string_form): Generate label directly.
1196 (output_indirect_string): Test indirect_string_node for
1197 DW_FORM_strp instead of checking label and refcount.
1198 (prune_indirect_string): Removed.
1199 (prune_unused_types): Don't check debug_str_hash_forced or
1200 call prune_indirect_string.
1202 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1205 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1207 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1211 * combine.c (try_combine): Skip debug insns at m_split tests.
1213 2011-04-26 Mark Wielaard <mjw@redhat.com>
1216 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1217 when info_section_emitted.
1219 2011-05-03 Joseph Myers <joseph@codesourcery.com>
1221 * config/mips/mips-opts.h: New.
1222 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1224 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1225 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1226 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
1228 * config/mips/mips.h (enum mips_code_readable_setting): Move to
1230 (mips_abi, mips_code_readable): Don't declare.
1231 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1232 (mabi=): Use Enum and Var.
1233 (mips_abi): New Enum and EnumValue entries.
1234 (mcode-readable=): Use Enum and Var.
1235 (mips_code_readable_setting): New Enum and EnumValue entries.
1236 (mr10k-cache-barrier=): Use Enum and Var.
1237 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1239 2011-05-03 Jan Hubicka <jh@suse.cz>
1241 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1242 replace hash by pointer map.
1243 (cgraph_node_set_element_def, cgraph_node_set_element,
1244 const_cgraph_node_set_element, varpool_node_set_element_def,
1245 varpool_node_set_element, const_varpool_node_set_element): Remove.
1246 (free_cgraph_node_set, free_varpool_node_set): New function.
1247 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1248 * tree-emutls.c: Free varpool node set.
1249 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1250 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1251 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1252 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1253 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1254 Move here from ipa.c; implement using pointer_map
1255 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1256 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1257 debug_cgraph_node_set, varpool_node_set_new,
1258 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1259 dump_varpool_node_set, debug_varpool_node_set):
1260 Move to ipa-uitls.c.
1261 * passes.c (ipa_write_summaries): Update.
1263 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1265 From Mike Frysinger:
1266 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1267 bf542/bf544/bf547/bf548/bf549.
1269 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1271 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1273 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1276 * config/bfin/bfin.md (MOVCC): New mode_macro.
1277 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1278 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
1279 comments from generated assembly.
1281 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1284 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1285 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1286 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1287 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1288 * config/bfin/lib1funcs.asm (___muldi3): New function.
1290 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1292 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1293 build_function_type_list instead of build_function_type.
1294 Rearrange initialization of `args' to do so.
1296 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1298 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1299 instead of build_function_type.
1301 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1303 * config/rs6000/rs6000.c (spe_init_builtins): Call
1304 build_function_type_list instead of build_function_type.
1305 (paired_init_builtins, altivec_init_builtins): Likewise.
1306 (builtin_function_type): Likewise.
1308 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1310 * config/sh/sh.c (sh_media_init_builtins): Call
1311 build_function_type_list instead of build_function_type.
1313 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1315 * config/sparc/sparc.c (sparc_file_end): Call
1316 build_function_type_list instead of build_function_type.
1318 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1320 * config/alpha/alpha.c (alpha_init_builtins): Call
1321 build_function_type_list instead of build_function_type.
1323 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1325 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1326 build_function_type_list instead of build_function_type.
1328 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1330 * config/iq2000/i2000.c (iq2000_init_builtins): Call
1331 build_function_type_list instead of build_function_type.
1332 Delete `endlink' variable.
1334 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1336 * config/avr/avr.c (avr_init_builtins): Call
1337 build_function_type_list instead of build_function_type.
1339 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1341 * config/picochip/picochip.c (picochip_init_builtins): Call
1342 build_function_type_list instead of build_function_type.
1343 Delete `endlink' variable.
1345 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1347 * config/bfin/bfin.c (bfin_init_builtins): Call
1348 build_function_type_list instead of build_function_type.
1350 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1353 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1354 that's not CONST_INT. Seemingly redundant check is due to PR39768.
1356 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1359 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1360 libbffastfp overrides libgcc when -mfast-fp.
1362 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1364 Originally from Bernd Schmidt
1365 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1366 * config/bfin/bfin.c (override_options): Test it and error if
1369 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1371 Originally From Bernd Schmidt
1372 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1375 2011-05-03 Jeff Law <law@redhat.com>
1377 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1378 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1379 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1380 than accessing AUX field directly. Free the AUX field before
1382 (thread_block, thread_through_loop_header): Likewise.
1383 (thread_single_edge, mark_threaded_blocks): Likewise.
1384 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
1385 (register_jump_thread): Do not attempt to thread to a NULL edge.
1387 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1389 * function.c (init_function_start): Call decide_function_section.
1390 * varasm.c (decide_function_section): New function.
1391 (assemble_start_function): When not using
1392 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1393 or first_function_block_is_cold.
1394 * rtl.h (decide_function_section): Declare.
1396 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1397 Jakub Jelinek <jakub@redhat.com>
1400 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1401 only succeed if req_mode is the same as set_mode.
1403 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1405 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1406 * genemit.c (gen_exp): Handle RETURN.
1407 * emit-rtl.c (verify_rtx_sharing): Likewise.
1408 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1409 * rtl.c (copy_rtx): RETURN is shared.
1410 * rtl.h (enum global_rtl_index): Add GR_RETURN.
1412 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1413 * config/s390/s390.c (s390_emit_epilogue): Likewise.
1414 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1415 * config/cris/cris.c (cris_expand_return): Likewise.
1416 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1417 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1418 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1419 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1420 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1422 * config/v850/v850.c (expand_epilogue): Likewise.
1423 * config/bfin/bfin.c (bfin_expand_call): Likewise.
1424 * config/arm/arm.md (epilogue): Likewise.
1425 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1426 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1427 variable to ret_reg.
1429 2011-05-03 Richard Guenther <rguenther@suse.de>
1432 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1433 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1434 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1436 2011-05-03 Richard Guenther <rguenther@suse.de>
1438 * c-decl.c (grokdeclarator): Instead of looking at
1439 TREE_OVERFLOW check if the constant fits in the index type.
1441 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1443 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1444 (vec_store_lanes<mode><mode>): Likewise.
1446 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1448 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1449 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1450 convert_optab_index values.
1451 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1452 * genopinit.c (optabs): Initialize the new optabs.
1453 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1454 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1455 (expand_STORE_LANES): New functions.
1456 * tree.h (build_array_type_nelts): Declare.
1457 * tree.c (build_array_type_nelts): New function.
1458 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1459 (vect_model_load_cost): Likewise.
1460 (vect_store_lanes_supported, vect_load_lanes_supported)
1461 (vect_record_strided_load_vectors): Declare.
1462 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1463 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1464 (vect_transform_strided_load): Split out statement recording into...
1465 (vect_record_strided_load_vectors): ...this new function.
1466 * tree-vect-stmts.c (create_vector_array, read_vector_array)
1467 (write_vector_array, create_array_ref): New functions.
1468 (vect_model_store_cost): Add store_lanes_p argument.
1469 (vect_model_load_cost): Add load_lanes_p argument.
1470 (vectorizable_store): Try to use store-lanes functions for
1472 (vectorizable_load): Likewise load-lanes and loads.
1473 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1474 to vect_model_store_cost.
1475 (vect_build_slp_tree): Likewise vect_model_load_cost.
1477 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1479 * hooks.h (hook_bool_mode_uhwi_false): Declare.
1480 * hooks.c (hook_bool_mode_uhwi_false): New function.
1481 * target.def (array_mode_supported_p): New hook.
1482 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1483 * doc/tm.texi: Regenerate.
1484 * stor-layout.c (mode_for_array): New function.
1485 (layout_type): Use it.
1486 * config/arm/arm.c (arm_array_mode_supported_p): New function.
1487 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1489 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
1492 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1493 for -fstack-check if the size to allocate is negative.
1495 2011-05-02 Lawrence Crowl <crowl@google.com>
1497 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1498 (timevar_cond_start): New for starting a timer only when it is not
1500 (timevar_cond_stop): New for stopping a timer when it was not already
1503 * timevar.c (timevar_stop): Enable start/stop timers to start again.
1504 (timevar_cond_start): New as above.
1505 (timevar_cond_stop): New as above.
1507 * timevar.def: Add start/stop timers for compiler phases,
1508 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1509 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1510 and TV_PHASE_FINALIZE.
1511 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1512 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1513 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1514 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1515 Make unused TV_OVERLOAD into a start/stop timer.
1517 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1518 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1519 to indicate that they are start/stop timers.
1521 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1522 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1523 Move initialization to do_compile.
1524 (do_compile): Add initialization from above.
1525 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1527 * c-decl.c (c_write_global_declarations): Add start/stop of
1528 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1530 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1531 or TV_PARSE_INLINE, as appropriate.
1532 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1533 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1535 2011-05-02 Jason Merrill <jason@redhat.com>
1538 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1540 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
1543 * c-decl.c (finish_decl): Only create a composite if the types are
1546 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1548 * config/fr30/fr30-protos.h (Mmode): Don't define.
1549 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
1550 definition where used.
1551 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1552 define. Expand definitions where used.
1553 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1554 Expand definitions where used.
1555 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1556 rx_function_arg, rx_function_arg_advance,
1557 rx_function_arg_boundary): Expand definitions of those macros.
1558 * config/v850/v850-protos.h (Mmode): Don't define. Expand
1559 definition where used.
1561 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1563 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1565 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1566 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
1567 with *movv2sf_internal_rex64_avx.
1568 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1569 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1570 Use %v prefix in insn mnemonic to handle TARGET_AVX.
1571 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
1572 "vex" in "prefix" attribute calculation.
1573 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
1575 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
1578 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1579 inputs match the output.
1581 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
1584 * config/m68k/m68k.c (m68k_expand_prologue): Set
1585 current_function_static_stack_size.
1587 2011-05-02 Jan Hubicka <jh@suse.cz>
1589 * lto-streamer.c (lto_streamer_cache_insert_1,
1590 lto_streamer_cache_lookup, lto_streamer_cache_create,
1591 lto_streamer_cache_delete): Use pointer map instead of hashtable.
1592 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1594 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1596 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1597 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1598 config/m68k/t-opts: New files.
1599 * config/m68k/m68k-tables.opt: New file (generated).
1600 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1601 extra_options and m68k/t-opts to tmake_file.
1602 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1603 (all_isas): Initialize using m68k-isas.def.
1604 (all_microarchs): Initialize using m68k-microarchs.def.
1605 (m68k_find_selection): Remove.
1606 (m68k_handle_option): Don't assert that global structures are in
1607 use. Use error_at. Access variables via opts pointer. Don't
1608 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
1609 directly for -m68020-40 and -m68020-60.
1610 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1611 m68k_tune_entry here.
1612 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1614 (m68k_library_id_string): Remove declaration.
1615 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1616 (m68k_library_id_string): New Variable.
1617 (march=, mcpu=, mtune=): Use Enum and Var.
1619 2011-05-02 Richard Guenther <rguenther@suse.de>
1621 * varasm.c (output_constructor_regular_field): Compute zero-based
1622 index with double-ints. Make sure to ICE instead of producing
1624 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1625 in asserts. Properly use a signed type.
1627 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1629 * config/i386/sse.md (V): New mode iterator.
1630 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
1632 (V_256): Rename from AVX256MODE.
1633 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
1634 condition to all users.
1636 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
1637 condition to all users.
1638 (VF_128): Make V4SF mode unconditional.
1639 (VF_256): Rename from AVX256MODEF2P.
1640 (VI4F_128): Rename from SSEMODE4S.
1641 (VI8F_128): Rename from SSEMODE2D.
1642 (VI4F_256): Rename from AVX256MODE8P.
1643 (VI8F_256): Rename from AVX256MODE4P.
1644 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1645 (ssescalarmodesuffix): Remove SF and DF modes.
1646 (SSEMODE124): Remove.
1647 (SSEMODE1248): Ditto.
1648 (SSEMODEF2P): Ditto.
1649 (AVXMODEF2P): Ditto.
1650 (AVXMODEFDP): Ditto.
1651 (AVXMODEFSP): Ditto.
1652 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1654 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
1656 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1657 xop_pcmov_<mode>256. Use V mode iterator.
1659 Adjust RTX patterns globally for renamed mode attributes.
1661 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1663 * haifa-sched.c (sched_emit_insn): Emit insn before first
1664 non-scheduled insn. Inform back-end about new insn. Add
1665 new insn to scheduled_insns list.
1667 2011-05-02 Richard Guenther <rguenther@suse.de>
1669 PR tree-optimization/48822
1670 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1671 (process_scc): Indicate which iteration we start.
1673 2011-05-02 Jan Hubicka <jh@suse.cz>
1675 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1676 (lto_section_overrun): New.
1677 * lto-section-out.c (append_block): Rename to ...
1678 (lto_append_block): ... this one; export.
1679 (lto_output_1_stream): Move lto lto-streamer.h
1680 (lto_output_data_stream): Update.
1681 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1682 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1685 2011-05-02 Richard Guenther <rguenther@suse.de>
1687 * tree.c (tree_code_counts): New global array.
1688 (record_node_allocation_statistics): Count individual tree codes.
1689 (dump_tree_statistics): Dump individual code stats.
1691 2011-05-01 Jan Hubicka <jh@suse.cz>
1693 * ipa-inline.c (caller_growth_limits): Fix thinko when
1694 looking for largest stack frame.
1695 * ipa-inline.h (dump_inline_summary): Declare.
1696 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1698 (dump_inline_summary): Export.
1699 (debug_inline_summary): Declare as DEBUG_FUNCTION.
1701 2011-05-01 Anatoly Sokolov <aesok@post.ru>
1703 * reginfo.c (memory_move_cost): Change rclass argument type form
1704 'enum reg_class' to reg_class_t.
1705 * reload.h (memory_move_cost): Update prototype.
1706 * postreload.c reload_cse_simplify_set): Change type dclass var to
1708 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1710 (ira_allocate_and_set_costs): Change aclass argument type form
1711 'enum reg_class' to reg_class_t.
1712 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1713 Change aclass argument type to reg_class_t.
1714 (update_conflict_hard_reg_costs): Change type aclass and pref vars
1716 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1717 memory_move_cost call.
1719 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1720 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1721 Change type tmp var to reg_class_t.
1723 2011-04-30 Jan Hubicka <jh@suse.cz>
1725 * ipa-inline.c (can_inline_edge_p): Disregard limits when
1726 inlining into function with flatten attribute.
1727 (want_inline_small_function_p): Be more realistic about inlining
1728 cold calls where callee size grows.
1730 2011-04-30 Jan Hubicka <jh@suse.cz>
1732 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1735 2011-04-30 Anatoly Sokolov <aesok@post.ru>
1737 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1738 PRINT_OPERAND_PUNCT_VALID_P): Remove.
1739 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1740 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1741 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1742 (print_operand): Rename to...
1743 (sparc_print_operand): ...this. Make static. Adjust
1744 sparc_print_operand function call.
1745 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1748 2011-04-30 Jan Hubicka <jh@suse.cz>
1751 * ipa-inline.c (early_inliner): Disable when doing late
1752 addition of function.
1754 2011-04-30 Jakub Jelinek <jakub@redhat.com>
1756 * dwarf2out.c (get_address_mode): New inline.
1757 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1758 if not dwarf_strict emit
1759 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1760 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1761 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
1762 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1763 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1764 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1765 mem_loc_descriptor callers.
1766 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1767 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1768 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1769 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1770 (base_types): New variable.
1771 (get_base_type_offset, calc_base_type_die_sizes,
1772 base_type_for_mode, mark_base_types, base_type_cmp,
1773 move_marked_base_types): New functions.
1774 (calc_die_sizes): Assert that die_offset is 0 or equal to
1776 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1777 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
1778 callers. If not dwarf_strict, call mem_loc_descriptor even for
1779 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1780 (gen_subprogram_die): Don't give up on call site parameters
1781 with non-integral or large integral modes. Adjust
1782 mem_loc_descriptor callers.
1783 (prune_unused_types): Call prune_unused_types_mark on base_types
1785 (resolve_addr): Call mark_base_types.
1786 (dwarf2out_finish): Call move_marked_base_types.
1788 PR tree-optimization/48809
1789 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1791 (gen_inbound_check): Don't compute index_expr - range_min in utype
1792 again, instead reuse SSA_NAME initialized in build_arrays.
1793 Remove two useless gsi_for_stmt calls.
1795 2011-04-29 Jeff Law <law@redhat.com>
1797 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1799 2011-04-29 Martin Jambor <mjambor@suse.cz>
1801 * cgraph.h (cgraph_postorder): Remove declaration.
1802 * ipa-utils.h (ipa_free_postorder_info): Declare.
1803 (ipa_reverse_postorder): Likewise.
1804 * cgraphunit.c: Include ipa-utils.h.
1805 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1806 * ipa-inline.c: Include ipa-utils.h.
1807 (ipa_inline): Update call to ipa_reverse_postorder.
1808 * ipa-pure-const.c (propagate_pure_const): Update call to
1809 ipa_reduced_postorder and ipa_print_order. Call
1810 ipa_free_postorder_info to clean up.
1811 (propagate_nothrow): Likewise.
1812 * ipa-reference.c (propagate): Removed a useless call to
1813 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1814 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1815 * ipa.c: Include ipa-utils.h.
1816 (ipa_profile): Update call to ipa_reverse_postorder.
1817 (cgraph_postorder): Moved to...
1818 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1819 (ipa_utils_print_order): Renamed to ipa_print_order.
1820 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1822 (ipa_free_postorder_info): New function.
1823 * passes.c: Include ipa-utils.h.
1824 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1825 (ipa_write_summaries): Likewise.
1826 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1827 (cgraphunit.o): Likewise.
1829 (ipa-inline.o): Likewise.
1831 2011-04-29 Jan Hubicka <jh@suse.cz>
1833 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1834 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1835 * ipa-inline.h (clause_t): Turn into unsigned int.
1836 * ipa-inline-analysis.c (add_clause): Do more simplification.
1837 (and_predicates): Shortcut more cases.
1838 (predicates_equal_p): Move forward; check that clauses are properly
1840 (or_predicates): Shortcut more cases.
1841 (edge_execution_predicate): Rewrite as...
1842 (set_cond_stmt_execution_predicate): ... this function; handle
1843 __builtin_constant_p.
1844 (set_switch_stmt_execution_predicate): New .
1845 (compute_bb_predicates): New.
1846 (will_be_nonconstant_predicate): Update TODO.
1847 (estimate_function_body_sizes): Use compute_bb_predicates
1848 and free them later, always try to estimate if stmt is constant.
1849 (estimate_time_after_inlining, estimate_size_after_inlining):
1850 Gracefully handle optimized out edges.
1851 (read_predicate): Fix off by one error.
1853 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1855 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1857 2011-04-27 Xinliang David Li <davidxl@google.com>
1859 * tree-profile.c (init_ic_make_global_vars): Set
1860 tls attribute on ic vars.
1861 * coverage.c (coverage_end_function): Initialize
1862 function_list with zero.
1864 2011-04-29 Richard Guenther <rguenther@suse.de>
1866 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1867 for the type of the result.
1868 (fold_builtin_isascii): Likewise.
1869 (fold_builtin_toascii): Use integer_type_node where appropriate.
1870 (fold_builtin_logb): Likewise.
1871 (fold_builtin_frexp): Likewise.
1872 (fold_builtin_strstr): Likewise.
1873 (fold_builtin_strpbrk): Likewise.
1874 (fold_builtin_fputs): Likewise.
1875 (fold_builtin_sprintf): Likewise.
1876 (fold_builtin_snprintf): Likewise.
1877 (fold_builtin_printf): Likewise.
1878 (do_mpfr_remquo): Use a proper type for the assigned constant.
1879 (do_mpfr_lgamma_r): Likewise.
1880 * dwarf2out.c (resolve_one_addr): Use size_int.
1881 * except.c (init_eh): Likewise.
1882 (assign_filter_values): Use integer_type_node for filter values.
1883 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1885 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1886 for EH region numbers.
1887 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1888 for the shift amount.
1890 2011-04-29 Richard Guenther <rguenther@suse.de>
1892 * expr.h (expand_shift): Rename to ...
1893 (expand_variable_shift): ... this.
1894 (expand_shift): Take a constant shift amount.
1895 * expmed.c (expand_shift): Rename to ...
1896 (expand_variable_shift): ... this.
1897 (expand_shift): New wrapper around expand_variable_shift.
1898 * expr.c (convert_move, emit_group_load_1, emit_group_store,
1899 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1900 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1901 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1902 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1903 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1904 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1905 emit_store_flag_1, emit_store_flag): Likewise.
1906 * builtins.c (expand_builtin_signbit): Likewise.
1907 * calls.c (load_register_parameters): Likewise.
1908 * function.c (assign_parm_setup_block): Likewise.
1909 * lower-subreg.c (resolve_shift_zext): Likewise.
1910 * optabs.c (widen_bswap, expand_abs_nojump,
1911 expand_one_cmpl_abs_nojump, expand_float): Likewise.
1912 * spu/spu.c (spu_expand_extv): Likewise.
1913 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1915 2011-04-29 Richard Guenther <rguenther@suse.de>
1917 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1918 for the remapped region number.
1919 * predict.c (build_predict_expr): Use integer_type_node for the
1921 * fold-const.c (fold_binary_loc): Use integer_type_node for
1922 the shift amount. Use a proper type for the PLUS_EXPR operand.
1924 2011-04-29 Michael Matz <matz@suse.de>
1926 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1927 other trees that just builtins.
1928 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1930 2011-04-29 Richard Guenther <rguenther@suse.de>
1932 * tree-nested.c (get_trampoline_type): Use size_int.
1933 (get_nl_goto_field): Likewise.
1934 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1936 (lower_eh_constructs_2): Likewise.
1937 (lower_resx): Likewise.
1938 (lower_eh_dispatch): Likewise.
1939 * tree-mudflap.c (mf_build_string): Use size_int.
1940 (mudflap_register_call): Use integer_type_node for the flag.
1941 (mudflap_enqueue_constant): Use size_int.
1942 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1943 instead of rebuilding it.
1945 2011-04-29 Richard Guenther <rguenther@suse.de>
1947 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1948 Handle OBJ_TYPE_REF.
1949 (find_func_aliases_for_call): Use it more consistently.
1951 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
1953 * haifa-sched.c (last_nondebug_scheduled_insn): New.
1954 (rank_for_schedule): Use it.
1955 (schedule_block): Set it.
1957 2011-04-28 David Li <davidxl@google.com>
1959 * tree.c (crc32_string): Use crc32_byte.
1960 (crc32_byte): New function.
1961 * tree.h (crc32_byte): New function.
1962 * gcov.c (read_graph_file): Handle new cfg_cksum.
1963 (read_count_file): Ditto.
1964 * profile.c (instrument_values): Ditto.
1965 (get_exec_counts): Ditto.
1966 (read_profile_edge_counts): Ditto.
1967 (compute_branch_probabilities): Ditto.
1968 (compute_value_histograms): Ditto.
1969 (branch_prob): Ditto.
1970 (end_branch_prob): Ditto.
1971 * coverage.c (read_counts_file): Ditto.
1972 (get_coverage_counts): Ditto.
1973 (tree_coverage_counter_addr): Ditto.
1974 (coverage_checksum_string): Ditto.
1975 (coverage_begin_output): Ditto.
1976 (coverage_end_function): Ditto.
1977 (build_fn_info_type): Ditto.
1978 (build_fn_info_value): Ditto.
1979 * libgcov.c (gcov_exit): Ditto.
1980 * gcov-dump.c (tag_function): Ditto.
1981 (compute_checksum): Remove.
1983 2011-04-29 Alan Modra <amodra@gmail.com>
1985 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1986 unspec plus offset. Tidy macho code.
1988 2011-04-29 Martin Jambor <mjambor@suse.cz>
1990 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1991 node instead of a decl. Update all callers.
1992 * cgraph.h: Update declaration.
1994 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
1996 PR tree-optimization/48765
1997 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1998 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1999 to indicate if loop aware SLP is being used. Scan the statements
2000 and update the vectorization factor according to the type of
2001 vectorization before statement analysis.
2002 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2003 pass it to vect_analyze_loop_operations.
2004 (vectorizable_reduction): Set number of copies to 1 in case of pure
2006 * tree-vect-stmts.c (vectorizable_conversion,
2007 vectorizable_assignment, vectorizable_shift,
2008 vectorizable_operation, vectorizable_type_demotion,
2009 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2011 (vectorizable_condition): Move the check that it is not SLP
2012 vectorization before the number of copies check.
2013 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2014 to vectorize the loop using SLP.
2016 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2019 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2022 2011-04-28 Joseph Myers <joseph@codesourcery.com>
2024 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2025 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2026 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2027 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2028 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2030 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2031 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2032 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2033 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2034 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2035 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2037 * config/i386/linux.h (REG_NAME): Don't define.
2038 * config/i386/linux64.h (REG_NAME): Don't define.
2039 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2040 Undefine before defining.
2042 2011-04-28 Jan Hubicka <jh@suse.cz>
2044 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2045 nonconstant_names array.
2046 (estimate_function_body_sizes): Build nonconstant_names array; handle
2047 BUILT_IN_CONSTANT_P.
2049 2011-04-28 Richard Guenther <rguenther@suse.de>
2053 2011-04-28 Richard Guenther <rguenther@suse.de>
2055 * tree-ssa-structalias.c (solve_constraints): Build succ graph
2056 as late as possible.
2058 2011-04-28 Richard Guenther <rguenther@suse.de>
2060 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2061 (debug_constraint): Do it here.
2062 (dump_constraints): And here.
2063 (rewrite_constraints): And here.
2064 (dump_constraint_edge): Remove.
2065 (dump_constraint_graph): Rewrite to produce DOT output.
2066 (solve_constraints): Build succ graph as late as possible.
2067 Dump constraint graphs before and after solving.
2069 2011-04-28 Richard Guenther <rguenther@suse.de>
2071 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2072 New function split out from ...
2073 (find_func_aliases): ... here. Call it.
2074 (find_func_aliases_for_call): Likewise.
2076 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2078 * internal-fn.h (internal_fn_name_array): Declare.
2079 (internal_fn_flags_array): Likewise.
2081 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2083 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
2084 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2086 (ssemodefsuffix): Remove.
2087 (ssevecmodesuffix): New mode attribute.
2088 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2089 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2090 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2091 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2092 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2093 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2094 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2095 ssemodesuffix mode attribute.
2096 (float splitters): Use ssevecmodesuffix mode attribute.
2097 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2098 (sseinsmode): Rename from avxvecmode.
2099 (avxsizesuffix): Rename from avxmodesuffix.
2100 (sseintvecmode): Rename from avxpermvecmode.
2101 (ssedoublevecmode): Rename from ssedoublesizemode.
2102 (ssehalfvecmode): Rename from avxhalfvecmode.
2103 (ssescalarmode): Rename from avxscalarmode.
2104 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2105 templates for ssemodesuffix mode attribute.
2106 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2109 Adjust RTX patterns globally for renamed mode attributes.
2111 2011-04-27 Jan Hubcika <jh@suse.cz>
2113 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2114 * ipa-inline-analysis.c: Include alloc-pool.h.
2115 (edge_predicate_pool): New.
2116 (trye_predicate_p): New function
2117 (false_predicate_p): New function.
2118 (add_clause): Sanity check that false clauses are "optimized";
2119 never add clauses to predicate that is already known to be false.
2120 (and_predicate): Use flase_predicate_p.
2121 (evaulate_predicate): Rename to ...
2122 (evaluate_predicate): ... this one; update all callers; assert
2123 that false is not listed among possible truths.
2124 (dump_predicate): Use true_predicate_p.
2125 (account_size_time): Use false_predicate_p.
2126 (evaulate_conditions_for_edge): Rename to ...
2127 (evaluate_conditions_for_edge) ... this one.
2128 (edge_set_predicate): New function.
2129 (inline_edge_duplication_hook): Duplicate edge predicates.
2130 (inline_edge_removal_hook): Free edge predicates.
2131 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2132 (dump_inline_summary): Update.
2133 (estimate_function_body_sizes): Set edge predicates.
2134 (estimate_calls_size_and_time): Handle predicates.
2135 (estimate_callee_size_and_time): Update.
2136 (remap_predicate): Add toplev_predicate; update comment.
2137 (remap_edge_predicates): New function.
2138 (inline_merge_summary): Compute toplev predicate; update.
2139 (read_predicate): New function.
2140 (read_inline_edge_summary): Use it.
2141 (inline_read_section): Likewise.
2142 (write_predicate): New function.
2143 (write_inline_edge_summary): Use it.
2144 (inline_write_summary): Likewise.
2145 (inline_free_summary): Free alloc pool and edge summary vec.
2147 2011-04-27 Richard Guenther <rguenther@suse.de>
2149 * tree-ssa-structalias.c (changed_count): Remove.
2150 (changed): Use a bitmap.
2151 (unify_nodes): Adjust.
2152 (do_sd_constraint): Likewise.
2153 (do_ds_constraint): Likewise.
2154 (do_complex_constraint): Likewise.
2155 (solve_graph): Likewise.
2157 2011-04-27 Jan Hubicka <jh@suse.cz>
2159 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2161 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2163 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2164 (avx_vperm2f128_*_operand): Ditto.
2165 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2166 Use avx_vpermilp_parallel in insn condition.
2167 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2168 Use avx_vperm2f128_parallel in insn condition.
2170 2011-04-27 Richard Guenther <rguenther@suse.de>
2172 * Makefile.in (tree-ssa-structalias.o): Remove
2173 gt-tree-ssa-structalias.h dependency.
2174 (GTFILES): Remove tree-ssa-structalias.c.
2175 * tree.c (allocate_decl_uid): New function.
2176 (make_node_stat): Use it.
2177 (copy_node_stat): Likewise.
2178 * tree.h (allocate_decl_uid): Declare.
2179 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2180 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2181 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2182 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2183 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2184 (struct heapvar_map): Likewise.
2185 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2186 heapvar_insert): Likewise.
2187 (make_heapvar_for): Rename to ...
2188 (make_heapvar): ... this. Simplify.
2189 (fake_var_decl_obstack): New global var.
2190 (build_fake_var_decl): New function.
2191 (make_constraint_from_heapvar): Adjust.
2192 (handle_lhs_call): Likewise.
2193 (create_function_info_for): Likewise.
2194 (intra_create_variable_infos): Likewise.
2195 (init_alias_vars): Allocate fake_var_decl_obstack.
2196 (init_alias_heapvars, delete_alias_heapvars): Remove.
2197 (compute_points_to_sets): Do not call init_alias_heapvars.
2198 (ipa_pta_execute): Likewise.
2199 (delete_points_to_sets): Free fake_var_decl_obstack.
2201 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2203 * config/spu/divmovti4.c (union qword_UTItype): New data type.
2204 (si_from_UTItype, si_to_UTItype): New functions.
2205 (__udivmodti4): Use them to implement type-punning.
2206 * config/spu/multi3.c (union qword_TItype): New data type.
2207 (si_from_TItype, si_to_TItype): New functions.
2208 (__multi3): Use them to implement type-punning.
2210 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2212 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2214 2011-04-27 Jan Hubicka <jh@suse.cz>
2216 * ipa-prop.c (function_insertion_hook_holder): New holder.
2217 (ipa_add_new_function): New function.
2218 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2219 Register/deregister holder.
2221 2011-04-27 Richard Guenther <rguenther@suse.de>
2223 PR tree-optimization/48772
2224 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2226 2011-04-27 Richard Guenther <rguenther@suse.de>
2228 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2229 TARGET_MEM_REF handling.
2231 2011-04-27 Nick Clifton <nickc@redhat.com>
2233 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2234 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2235 (REG_CLASS_NAMES): Likewise.
2236 (REG_CLASS_CONTENTS): Likewise.
2237 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2238 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2239 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
2240 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
2241 (EVEN_REGS): New macro. Alias for QUAD_REGS.
2242 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2243 duplicate register classes.
2244 (frv_class_likely_spilled_p): Likewise.
2245 (frv_register_move_cost): Likewise.
2247 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2248 end of the regno_reg_class array.
2250 2011-04-27 Jakub Jelinek <jakub@redhat.com>
2253 * c-typeck.c (build_binary_op): Don't wrap arguments if
2254 int_operands is true.
2256 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
2259 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2260 targetm.calls.must_pass_in_stack for void type.
2262 2011-04-26 Jan Hubicka <jh@suse.cz>
2264 * cgraphbuild.c (build_cgraph_edges): Update call
2265 of cgraph_create_edge and cgraph_create_indirect_edge.
2266 * cgraph.c (cgraph_create_edge_including_clones,
2267 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2268 cgraph_update_edges_for_call_stmt_node): Do not take nest
2269 argument; do not initialize call_stmt_size/time.
2270 (dump_cgraph_node): Do not dump nest.
2271 (cgraph_clone_edge): Do not take loop_nest argument;
2272 do not propagate it; do not clone call_stmt_size/time.
2273 (cgraph_clone_node): Likewise.
2274 (cgraph_create_virtual_clone): Update.
2275 * cgraph.h (struct cgraph_edge): Remove
2276 call_stmt_size/call_stmt_time/loop_nest.
2277 (cgraph_create_edge, cgraph_create_indirect_edge,
2278 cgraph_create_edge_including_clones, cgraph_clone_node): Update
2280 * tree-emutls.c (gen_emutls_addr): Update.
2281 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2282 loop_nest; handle indirect calls, too.
2283 (clone_inlined_nodes): Do not care about updating inline summaries.
2284 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2285 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2286 stream call_stmt_size/call_stmt_time/loop_nest.
2287 * ipa-inline.c (edge_badness): Update.
2288 (ipa_inline): dump summaries after inlining.
2289 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2291 (inline_edge_summary): New function.
2292 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2293 (inline_edge_removal_hook): Handle edge summaries.
2294 (inline_edge_duplication_hook): New hook.
2295 (inline_summary_alloc): Alloc hooks.
2296 (initialize_growth_caches): Do not register removal hooks.
2297 (free_growth_caches); Do not free removal hook.
2298 (dump_inline_edge_summary): New function.
2299 (dump_inline_summary): Use it.
2300 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2301 (inline_update_callee_summaries): New function.
2302 (inline_merge_summary): Use it.
2303 (do_estimate_edge_time, do_estimate_edge_growth): Update.
2304 (read_inline_edge_summary): New function.
2305 (inline_read_section): Use it.
2306 (write_inline_edge_summary): New function.
2307 (inline_write_summary): Use it.
2308 (inline_free_summary): Free edge new holders.
2309 * tree-inline.c (copy_bb): Update.
2311 2011-04-26 Jason Merrill <jason@redhat.com>
2313 * tree-eh.c (lower_try_finally_switch): Create the label along with
2314 the CASE_LABEL_EXPR.
2316 2011-04-26 David S. Miller <davem@davemloft.net>
2317 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2319 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2320 * configure: Regenerate.
2322 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2325 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2327 (VEC_reduc): New code iterator and splitters for vector reduction.
2328 (VEC_reduc_name): Ditto.
2329 (VEC_reduc_rtx): Ditto.
2330 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2331 (reduc_<VEC_reduc_name>_v4sf): Ditto.
2333 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2334 support for extracting SF on VSX.
2336 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2337 generating xscvspdp.
2338 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2339 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2340 double add, minimum, maximum vector reduction.
2341 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2342 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2343 optimize double vector reduction.
2344 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2346 2011-04-26 Joseph Myers <joseph@codesourcery.com>
2348 * config/fr30/fr30.h (inhibit_libc): Don't define.
2349 * config/m32r/m32r-protos.h: Correct comment.
2350 * config/v850/v850.h (GHS_default_section_names,
2351 GHS_current_section_names): Use tree, not union tree_node *.
2353 2011-04-26 Xinliang David Li <davidxl@google.com>
2355 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2356 * c-family/c-opts.c (c_common_handle_option): Set
2357 warn_maybe_uninitialized.
2358 * opts.c (common_handle_option): Ditto.
2359 * common.opt: New option.
2360 * tree-ssa.c (warn_uninit): Add one more parameter.
2361 (warn_uninitialized_var): Pass warning code.
2362 * tree-flow.h: Interface change.
2365 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2367 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2368 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2369 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2371 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2373 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2374 * config/mips/mips.opt (mmips-tfile): Remove.
2376 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2377 mips-tdump reference to ...
2378 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
2379 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2380 reference by Tru64 UNIX.
2382 2011-04-26 Jakub Jelinek <jakub@redhat.com>
2385 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2386 is error_mark_node, set value to NULL.
2388 PR tree-optimization/48734
2389 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2390 if return value from maybe_fold_*_comparsions isn't something
2391 the code is prepared to handle.
2393 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
2395 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2397 (ext_QIreg_nomode_operands): Remove.
2398 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2402 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
2404 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2406 2011-04-26 Richard Guenther <rguenther@suse.de>
2408 * c-typeck.c (build_unary_op): Do not expand array-refs via
2409 pointer arithmetic. Only adjust qualifiers for function types.
2411 2011-04-26 Richard Guenther <rguenther@suse.de>
2414 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2415 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2416 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
2417 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2419 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2421 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2422 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2423 * doc/extend.texi: Document __underlying_type.
2425 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
2427 * config/rs6000/titan.md (automata_option "progress"): Remove.
2429 2011-04-25 Jeff Law <law@redhat.com>
2431 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2433 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2435 * system.h (ENUM_BITFIELD): Remove.
2437 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
2438 Eric Botcazou <ebotcazou@adacore.com>
2440 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2441 for STORE_FLAG_VALUE==-1 case.
2443 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
2446 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2447 LEGITIMATE_PIC_OPERAND_P.
2449 2011-04-24 Jan Hubicka <jh@suse.cz>
2451 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2453 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2454 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2455 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2456 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2457 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2458 Sanity check predicate length.
2459 (remap_predicate): Likewise; sanity check jump functions.
2460 (inline_read_section, inline_write_summary): Sanity check
2463 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2466 * doc/extend.texi (Type Traits): Document __is_standard_layout,
2467 __is_literal_type, and __is_trivial; update throughout about
2468 possibly cv-qualified void types.
2470 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
2472 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2473 testsuite and make it version agnostic.
2475 2011-04-22 Jan Hubicka <jh@suse.cz>
2477 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2479 2011-04-23 Jakub Jelinek <jakub@redhat.com>
2482 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2483 to VOID_TYPE even around MODIFY_EXPR.
2485 2011-04-22 Mike Stump <mikestump@comcast.net>
2487 * gensupport.c (read_md_rtx): Fix typo in comment.
2488 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2491 2011-04-22 Jan Hubicka <jh@suse.cz>
2493 * gengtype.c (open_base_files): Add ipa-inline.h include.
2494 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2495 ipa-prop.c; update all uses.
2496 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2497 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2498 merge summary of inlined function into former caller.
2499 * ipa-inline.c (max_benefit): Remove.
2500 (edge_badness): Compensate for removal of benefits.
2501 (update_caller_keys): Use
2502 reset_node_growth_cache/reset_edge_growth_cache.
2503 (update_callee_keys): Likewise.
2504 (update_all_callee_keys): Likewise.
2505 (inline_small_functions): Do not collect max_benefit; do not reset
2506 estimated_growth; call free_growth_caches and initialize_growth_caches.
2507 * ipa-inline.h (struct condition, type clause_t, struct predicate,
2508 struct size_time_entry): New structures.
2509 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2510 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2511 and estimated_growth.
2512 (edge_growth_cache_entry): New structure.
2513 (node_growth_cache, edge_growth_cache): New global vars.
2514 (estimate_growth): Turn into inline.
2515 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2516 initialize_growth_caches, free_growth_caches): Declare.
2517 (estimate_edge_growth): Rewrite.
2518 (estimate_edge_time): Implement as inline cache lookup.
2519 (reset_node_growth_cache, reset_edge_growth_cache): New inline
2521 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2522 (NUM_CONDITIONS): New constant.
2523 (predicate_conditions): New enum.
2524 (IS_NOT_CONSTANT): New constant.
2525 (edge_removal_hook_holder): New var.
2526 (node_growth_cache, edge_growth_cache): New global vars.
2527 (true_predicate, single_cond_predicate, false_predicate,
2528 not_inlined_predicate, add_condition, add_clause, and_predicates,
2529 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2530 dump_clause, dump_predicate, account_size_time,
2531 evaulate_conditions_for_edge): New functions.
2532 (inline_summary_alloc): Move to heap.
2533 (inline_node_removal_hook): Clear condition and entry vectors.
2534 (inline_edge_removal_hook): New function.
2535 (initialize_growth_caches, free_growth_caches): New function.
2536 (dump_inline_summary): Update.
2537 (edge_execution_predicate): New function.
2538 (will_be_nonconstant_predicate): New function.
2539 (estimate_function_body_sizes): Compute BB and constantness predicates.
2540 (compute_inline_parameters): Do not clear estimated_growth.
2541 (estimate_edge_size_and_time): New function.
2542 (estimate_calls_size_and_time): New function.
2543 (estimate_callee_size_and_time): New function.
2544 (remap_predicate): New function.
2545 (inline_merge_summary): New function.
2546 (do_estimate_edge_time): New function based on...
2547 (estimate_edge_time): ... this one.
2548 (do_estimate_edge_growth): New function.
2549 (do_estimate_growth): New function based on....
2550 (estimate_growth): ... this one.
2551 (inline_analyze_function): Analyze after deciding on jump functions.
2552 (inline_read_section): New function.
2553 (inline_read_summary): Use it.
2554 (inline_write_summary): Write all the new data.
2555 * ipa-prop.c (ipa_get_param_decl_index): Export.
2556 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2557 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2559 (ipa_get_lattice): Move here from ipa-cp.c
2560 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2561 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2562 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2563 cgraph_edge_inlinable_p): Remove.
2564 * cgraphunit.c: Include ipainline.h
2565 (cgraph_process_new_functions): Update call of
2566 compute_inline_parameters.
2568 2011-04-22 Richard Guenther <rguenther@suse.de>
2570 * tree.c (build_int_cst): Properly create canonicalized integer
2572 (build_int_cst_type): Remove scary comments.
2574 2011-04-22 Xinliang David Li <davidxl@google.com>
2576 * toplev.c (process_options): Enable -Werror=coverage-mismatch
2577 by default when -Wno-error is not specified.
2578 * opts-global.c (decode_options): Remove call to
2579 control_warning_options.
2581 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2583 PR tree-optimization/48717
2584 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2585 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2587 2011-04-22 Joseph Myers <joseph@codesourcery.com>
2589 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
2590 definition where used.
2592 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2595 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2596 TREE_STATIC variables declared inside of some OpenMP construct.
2598 2011-04-22 Martin Jambor <mjambor@suse.cz>
2601 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2603 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
2606 * c-typeck.c (pop_init_level): Do not warn about initializing
2609 2011-04-22 Alan Modra <amodra@gmail.com>
2611 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2612 when returning call_cookie.
2613 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2614 pointers, to functions with no more vector args than the current
2615 function, and some non-local calls for ABI_V4.
2616 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2617 sibcall_nonlocal_aix64): Combine to ..
2618 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
2619 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2620 (sibcall_value_nonlocal_aix<mode>): ..likewise.
2621 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2622 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
2624 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2625 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2626 sibcall_value_symbolic_64): Delete.
2628 2011-04-21 Xinliang David Li <davidxl@google.com>
2630 * cgraph.h: Remove pid.
2631 * cgraph.c: Remove pid.
2632 * value-prof.c (init_node_map): New function.
2633 (del_node_map): New function.
2634 (find_func_by_funcdef_no): New function.
2635 (gimple_ic_transform): Call new function.
2636 * cgraphunit.c (cgraph_finalize_function): Remove pid.
2637 * function.c (get_last_funcdef_no): New function.
2638 * function.h (get_last_funcdef_no): New function.
2639 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2640 to libgcov function.
2641 (tree-profiling): Call node map init and delete function.
2643 2011-04-21 Ian Lance Taylor <iant@google.com>
2645 * godump.c (go_format_type): Use exported Go name for anonymous
2648 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2650 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2651 Call builtin_function_type_list instead of builtin_function_type.
2652 (UNARY, BINARY, TRINARY, QUAD): Likewise.
2654 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2656 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2657 build_function_type_list instead of build_function_type.
2658 Delete variable `endlink'.
2660 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2662 * config/s390/s390.c (s390_init_builtins): Call
2663 build_function_type_list instead of build_function_type.
2665 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2667 * config/ia64/ia64.c (ia64_init_builtins): Call
2668 build_function_type_list instead of builtin_function_type.
2670 2011-04-21 Easwaran Raman <eraman@google.com>
2672 * cfgexpand.c (stack_var): Remove OFFSET...
2673 (add_stack_var): ...and its reference here...
2674 (expand_stack_vars): ...and here.
2675 (stack_var_cmp): Sort by descending order of size.
2676 (partition_stack_vars): Change heuristic.
2677 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2678 (dump_stack_var_partition): Add newline after each partition.
2680 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
2681 Jeff Law <law@redhat.com>
2683 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2684 * gengtype.c (matching_file_name_substitute): Likewise.
2686 2011-04-21 Richard Guenther <rguenther@suse.de>
2689 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2691 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2693 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2695 2011-04-21 Richard Guenther <rguenther@suse.de>
2697 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2700 2011-04-21 Richard Guenther <rguenther@suse.de>
2702 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2703 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2704 Use DECL_P, not SSA_VAR_P.
2705 (ptr_derefs_may_alias_p): Likewise.
2706 (ptr_deref_may_alias_ref_p_1): Likewise.
2707 (decl_refs_may_alias_p): Likewise.
2708 (refs_may_alias_p_1): Likewise.
2709 (ref_maybe_used_by_call_p_1): Likewise.
2710 (call_may_clobber_ref_p_1): Likewise.
2711 (indirect_ref_may_alias_decl_p): Assume indirect refrences
2712 are either MEM_REF or TARGET_MEM_REF.
2713 (indirect_refs_may_alias_p): Likewise.
2714 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2715 for MEM_EXPR of indirect calls.
2717 2011-04-21 Tristan Gingold <gingold@adacore.com>
2719 * vmsdbgout.c (write_srccorr): Compute file length from the string.
2720 (dst_file_info_struct): Remove flen field.
2721 (lookup_filename): Remove code that set flen field.
2723 2011-04-21 Tristan Gingold <gingold@adacore.com>
2725 * config/ia64/ia64.c (ia64_start_function): Add a guard.
2727 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
2730 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2731 vec_extract and vec_concat for non-SSE4_1 targets.
2733 2011-04-21 Richard Guenther <rguenther@suse.de>
2735 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2738 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2740 * config/i386/cygming.h (union tree_node, TREE): Don't define or
2742 (FILE): Don't undefine.
2744 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2746 * config/alpha/alpha.c (struct machine_function): Use rtx, not
2748 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2750 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2751 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2752 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2754 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
2755 definitions where used.
2756 * config/microblaze/microblaze.h (struct microblaze_args): Use
2757 rtx, not struct rtx_def *.
2758 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2760 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2761 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2762 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2763 not struct rtx_def *.
2764 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2766 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2768 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2770 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2772 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2773 operand_equal_p to compare DR_BASE_ADDRESSes.
2774 (vect_check_interleaving): Likewise.
2776 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2779 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2780 for all Neon struct constants.
2782 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2784 * target.def (legitimate_constant_p): New hook.
2785 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2786 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2787 * doc/tm.texi: Regenerate.
2788 * hooks.h (hook_bool_mode_rtx_true): Declare.
2789 * hooks.c (hook_bool_mode_rtx_true): Define.
2790 * system.h (LEGITIMATE_CONSTANT_P): Poison.
2791 * calls.c (precompute_register_parameters): Replace uses of
2792 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2793 (emit_library_call_value_1): Likewise.
2794 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2795 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2796 * ira-costs.c (scan_one_insn): Likewise.
2797 * recog.c (general_operand, immediate_operand): Likewise.
2798 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2799 * reload1.c (init_eliminable_invariants): Likewise.
2801 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2803 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2804 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2806 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2807 * config/alpha/predicates.md (input_operand): Update call to
2808 alpha_legitimate_constant_p.
2810 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2811 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2812 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2813 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2814 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2815 (arm_legitimate_constant_p): New functions.
2816 (arm_cannot_force_const_mem): Make static.
2818 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2820 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2821 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2822 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2823 instead of bfin_legitimate_constant_p.
2824 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2825 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2827 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2829 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2831 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2832 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2833 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2834 (frv_legitimate_constant_p): Make static. Add a mode argument.
2836 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2837 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2838 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2840 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2841 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2842 * config/i386/i386.c (legitimate_constant_p): Rename to...
2843 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2845 (ix86_cannot_force_const_mem): Update accordingly.
2846 (ix86_legitimate_address_p): Likewise.
2847 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2848 * config/i386/i386.md: Update commentary.
2850 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2851 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2852 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2853 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2855 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2857 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2858 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2859 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2860 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2862 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2863 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2864 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2866 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2867 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2868 (m32r_legitimate_constant_p): New function.
2870 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2871 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2872 LEGITIMATE_CONSTANT_P.
2873 (LEGITIMATE_CONSTANT_P): Delete.
2874 * config/m68k/m68k.c (m68k_expand_prologue): Call
2875 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2876 (m68k_legitimate_constant_p): New function.
2877 * config/m68k/m68k.md: Update comments.
2879 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2880 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2881 (mcore_legitimate_constant_p): New function.
2883 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2884 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2885 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2886 Add a mode argument.
2887 (mep_legitimate_address): Update accordingly.
2888 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2890 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2892 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2893 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2894 static. Check OP's mode for VOIDmode.
2895 (microblaze_legitimate_constant_p): New function.
2896 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2898 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2899 * config/mips/mips.c (mips_legitimate_constant_p): New function.
2900 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2901 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2902 * config/mips/predicates.md: Update comments.
2904 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2905 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2906 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2907 (mmix_legitimate_constant_p): Make static, return a bool, and take
2909 (mmix_print_operand_address): Update accordingly.
2911 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2913 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2914 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2915 static. Add a mode argument.
2916 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2918 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2920 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2921 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2922 (pa_legitimate_constant_p): New function.
2924 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2926 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2927 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2928 (pdp11_legitimate_constant_p): New function.
2930 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2931 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2932 (rs6000_legitimate_constant_p): New function.
2934 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2935 (rx_legitimate_constant_p): ...this.
2936 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2937 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2938 (rx_legitimate_constant_p): ...this.
2939 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2940 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2942 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2943 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2944 * config/s390/s390.c (legitimate_constant_p): Rename to...
2945 (s390_legitimate_constant_p): ...this. Make static, return a bool,
2946 and add a mode argument.
2947 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2949 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2951 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2952 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2953 (sh_legitimate_constant_p): New function.
2955 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2956 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2957 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2958 (legitimate_constant_p): Rename to...
2959 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
2961 (constant_address_p): Update accordingly.
2963 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2964 argument and return a bool.
2965 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2966 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2967 (spu_legitimate_constant_p): Add a mode argument and return a bool.
2968 (spu_rtx_costs): Update accordingly.
2969 * config/spu/predicates.md (vec_imm_operand): Likewise.
2971 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2973 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2974 * config/v850/v850.c (v850_legitimate_constant_p): New function.
2975 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2977 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2978 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2979 * config/vax/vax.c (legitimate_constant_p): Likewise.
2981 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2982 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2983 (xtensa_legitimate_constant_p): New function.
2985 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2987 * target.def (cannot_force_const_mem): Add a mode argument.
2988 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2989 * doc/tm.texi: Regenerate.
2990 * hooks.h (hook_bool_mode_rtx_false): Declare.
2991 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2992 (hook_bool_mode_const_rtx_true): Likewise.
2993 (hook_bool_mode_rtx_false): New function.
2994 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2995 to be non-VOID. Update call to cannot_force_const_mem.
2996 (find_reloads): Update accordingly.
2997 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2998 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3000 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3001 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3002 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3003 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3004 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3005 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3006 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3007 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3008 (m68k_cannot_force_const_mem): ...this new function.
3009 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3011 (mips_const_insns, mips_legitimize_const_move): Update calls.
3012 (mips_secondary_reload_class): Likewise.
3013 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3014 (pa_cannot_force_const_mem): ...this new function.
3015 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3016 (rs6000_cannot_force_const_mem): ...this new function.
3017 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3019 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3020 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3022 (xtensa_cannot_force_const_mem): ...this new function.
3024 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3026 * config/mips/mips.c (mips16_build_function_stub): Call
3027 build_function_type_list instead of build_function_type.
3028 (mips16_build_call_stub): Likewise.
3030 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3032 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3033 instead of build_function_type.
3035 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3037 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3038 instead of build_function_type.
3040 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
3043 * config/i386/i386.md (insv): Change operand 0 constraint to
3044 "register_operand". Change operand 1 and 2 constraint to
3045 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
3046 * config/i386/sse.md (sse4_1_pinsrb): Export.
3047 (sse2_pinsrw): Ditto.
3048 (sse4_1_pinsrd): Ditto.
3049 (sse4_1_pinsrq): Ditto.
3050 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3051 * config/i386/i386.c (ix86_expand_pinsr): New.
3053 2011-04-20 Easwaran Raman <eraman@google.com>
3055 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3056 containing union type only with -fstrict-aliasing.
3058 2011-04-20 Jim Meyering <meyering@redhat.com>
3060 Remove useless if-before-free tests.
3061 * calls.c (expand_call, save_area): Likewise.
3062 * cfgcleanup.c (try_forward_edges): Likewise.
3063 * collect2.c (collect_execute): Likewise.
3064 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3065 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3066 * coverage.c (coverage_checksum_string): Likewise.
3067 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3068 * cselib.c (cselib_init): Likewise.
3069 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3070 (df_set_clean_cfg): Likewise.
3071 * function.c (free_after_compilation): Likewise.
3072 * gcc.c (do_spec_1, main): Likewise.
3073 * gcov.c (create_file_names): Likewise.
3074 * gensupport.c (identify_predicable_attribute): Likewise.
3075 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3076 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3077 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3078 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3079 * ipa-pure-const.c (local_pure_const): Likewise.
3080 * ipa-reference.c (propagate): Likewise.
3081 * ira-costs.c (free_ira_costs): Likewise.
3082 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3083 * matrix-reorg.c (mat_free): Likewise.
3084 * prefix.c (get_key_value): Likewise.
3085 * profile.c (compute_value_histograms): Likewise.
3086 * reload1.c (free_reg_equiv): Likewise.
3087 * sched-deps.c (free_deps): Likewise.
3088 * sel-sched-ir.c (fence_clear): Likewise.
3089 * sese.c (set_rename, if_region_set_false_region): Likewise.
3090 * tree-data-ref.c (free_rdg): Likewise.
3091 * tree-eh.c (lower_try_finally): Likewise.
3092 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3093 * tree-ssa-live.c (delete_var_map): Likewise.
3094 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3095 * tree-ssa-pre.c (phi_trans_add): Likewise.
3097 2011-04-20 Jakub Jelinek <jakub@redhat.com>
3099 PR tree-optimization/48611
3100 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3101 beyond ERT_MUST_NOT_THROW region.
3103 2011-04-20 Catherine Moore <clm@codesourcery.com>
3105 * config/mips/mips.opt (mfix-24k): New.
3106 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3107 * config/mips/mips.md (length): Increase by 4 for stores if
3109 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3110 all noreorder if fixing 24K errata.
3111 * doc/invoke.texi: Document mfix-24k.
3113 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
3115 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3116 quad-word modes, reduce to 9-bit index range when above 1016 limit.
3118 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3120 * config/arm/arm.c (arm_gen_constant): Move movw support ....
3121 (const_ok_for_op): ... to here.
3123 2011-04-20 Kai Tietz <ktietz@redhat.com>
3125 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3126 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3128 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3130 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3132 2011-04-20 Richard Guenther <rguenther@suse.de>
3134 PR tree-optimization/47892
3135 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3138 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
3140 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3142 2011-04-20 Tristan Gingold <gingold@adacore.com>
3144 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3146 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
3150 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3151 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3152 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3153 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3154 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3156 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3159 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3160 (avr_asm_named_section, avr_asm_output_aligned_common,
3161 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3162 New functions to update...
3163 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3164 (avr_asm_init_sections): Overwrite section callbacks for
3165 data_section, bss_section.
3166 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3168 (avr_file_end): ...here.
3170 2011-04-20 Richard Guenther <rguenther@suse.de>
3173 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3174 objects and types here. Adjust for their offset before comparing.
3176 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3178 * tree-vect-stmts.c (vectorizable_store): Only chain one related
3181 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3183 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3184 (GIMPLE_H): Include $(INTERNAL_FN_H).
3185 (OBJS-common): Add internal-fn.o.
3186 (internal-fn.o): New rule.
3187 * internal-fn.def: New file.
3188 * internal-fn.h: Likewise.
3189 * internal-fn.c: Likewise.
3190 * gimple.h: Include internal-fn.h.
3191 (GF_CALL_INTERNAL): New gf_mask.
3192 (gimple_statement_call): Put fntype into a union with a new
3194 (gimple_build_call_internal): Declare.
3195 (gimple_build_call_internal_vec): Likewise.
3196 (gimple_call_same_target_p): Likewise.
3197 (gimple_call_internal_p): New function.
3198 (gimple_call_internal_fn): Likewise.
3199 (gimple_call_fntype): Return null for internal calls.
3200 (gimple_call_set_fntype): Assert that the function is not internal.
3201 (gimple_call_set_fn): Likewise.
3202 (gimple_call_set_fndecl): Likewise.
3203 (gimple_call_set_internal_fn): New function.
3204 (gimple_call_addr_fndecl): Handle null functions.
3205 (gimple_call_return_type): Likewise null types.
3206 * gimple.c (gimple_build_call_internal_1): New function.
3207 (gimple_build_call_internal): Likewise.
3208 (gimple_build_call_internal_vec): Likewise.
3209 (gimple_call_same_target_p): Likewise.
3210 (gimple_call_flags): Handle calls to internal functions.
3211 (gimple_call_fnspec): New function.
3212 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3213 (gimple_has_side_effects): Handle null functions.
3214 (gimple_rhs_has_side_effects): Likewise.
3215 (gimple_call_copy_skip_args): Handle calls to internal functions.
3216 * cfgexpand.c (expand_call_stmt): Likewise.
3217 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3218 * gimple-fold.c (gimple_fold_call): Handle null functions.
3219 (gimple_fold_stmt_to_constant_1): Don't fold
3220 calls to internal functions.
3221 * gimple-low.c (gimple_check_call_args): Handle calls to internal
3223 * gimple-pretty-print.c (dump_gimple_call): Likewise.
3224 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3225 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3226 (do_warn_unused_result): Likewise.
3227 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3228 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3229 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3230 the target of a call.
3231 (initialize_hash_element): Update accordingly.
3232 (hashable_expr_equal_p): Use gimple_call_same_target_p.
3233 (iterative_hash_hashable_expr): Handle calls to internal functions.
3234 (print_expr_hash_elt): Likewise.
3235 * tree-ssa-pre.c (can_value_number_call): Likewise.
3236 (eliminate): Handle null functions.
3237 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3238 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3239 (find_func_aliases): Likewise.
3240 * value-prof.c (gimple_ic_transform): Likewise.
3241 (gimple_indirect_call_to_profile): Likewise.
3242 * lto-streamer-in.c (input_gimple_stmt): Likewise.
3243 * lto-streamer-out.c (output_gimple_stmt): Likewise.
3245 2011-04-19 Jan Hubicka <jh@suse.cz>
3247 * ipa-inline-transform.c (save_inline_function_body): Add comments.
3248 * ipa-inline.c (inline_small_functions): Compute summaries first,
3249 populate heap later.
3251 2011-04-19 Jan Hubicka <jh@suse.cz>
3253 * cgraph.h (save_inline_function_body): Remove.
3254 * ipa-inline-transform.c: New file, broke out of...
3255 * ipa-inline.c: ... this one; Update toplevel comment.
3256 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3258 (update_noncloned_frequencies): Move to ipa-inline-transform.c
3259 (cgraph_mark_inline_edge): Rename to inline_call; move to
3260 ipa-inline-transform.c.
3261 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3262 move to ipa-inline-transform.c
3263 (recursive_inlining, inline_small_functions, flatten_function,
3264 ipa_inline, inline_always_inline_functions,
3265 early_inline_small_functions): Update.
3266 (inline_transform): Move to ipa-inline-transform.c.
3267 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3269 * Makefile.in (ipa-inline-transform.o): New file.
3270 * cgraphunit.c (save_inline_function_body): Move to
3271 ipa-inline-transform.c
3273 2011-04-19 DJ Delorie <dj@redhat.com>
3275 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3276 registers if we already know there aren't any.
3277 (m32c_emit_epilogue): Don't emit a barrier here.
3278 (m32c_emit_eh_epilogue): Likewise.
3279 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3280 operands at expand time.
3281 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3283 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3284 duplicates. Provide aliases instead.
3285 * config/m32c/prologue.md (eh_return): Emit a barrier here.
3286 (eh_epilogue): Add a "(return)" here as a hint to other parts of
3289 2011-04-19 Anatoly Sokolov <aesok@post.ru>
3291 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3292 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3293 (general_or_i64_p, sparc_register_move_cost): New function.
3295 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3297 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3298 Add lynx, mipssde. Sort table.
3300 2011-04-19 Xinliang David Li <davidxl@google.com>
3302 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3305 2011-04-19 Jakub Jelinek <jakub@redhat.com>
3308 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3309 is a SUBREG with non-MODE_INT mode inside of it.
3311 2011-04-19 Martin Jambor <mjambor@suse.cz>
3313 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3314 also according to actual contants.
3315 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3316 (gimple_fold_call): Use it.
3317 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3319 2011-04-19 Martin Jambor <mjambor@suse.cz>
3321 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3322 non-pointer assignments.
3324 2011-04-19 Martin Jambor <mjambor@suse.cz>
3326 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3327 account anc_offset and otr_type from the indirect edge info.
3328 * ipa-prop.c (get_ancestor_addr_info): New function.
3329 (compute_complex_ancestor_jump_func): Assignment analysis moved to
3330 get_ancestor_addr_info, call it.
3331 (ipa_note_param_call): Do not initialize information about polymorphic
3332 calls, return the indirect call graph edge. Remove the last
3333 parameter, adjust all callers.
3334 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3335 parameters. Initialize polymorphic information in the indirect edge.
3337 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3340 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3341 the types if they have different enumeration identifiers.
3343 2011-04-19 Jan Hubicka <jh@suse.cz>
3345 * cgraph.h (cgraph_optimize_for_size_p): Declare.
3346 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3347 * predict.c (cgraph_optimize_for_size_p): Break out from ...
3348 (optimize_function_for_size_p) ... here.
3350 2011-04-19 Richard Guenther <rguenther@suse.de>
3353 * tree.c (free_lang_data): Do not reset the decl-assembler-name
3356 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3358 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3359 if DECL_NO_INLINE_WARNING_P is set on the function.
3361 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
3364 * reload1.c (inc_for_reload): Return void. All callers changed.
3365 (emit_input_reload_insns): Don't try to delete previous output
3366 reloads to a register, or record spill_reg_store for autoincs.
3368 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
3370 * gengtype.h: Updated copyright year.
3371 (struct input_file_st): Add inpisplugin field.
3372 (type_fileloc): New function.
3374 (write_typed_struct_alloc_def): Add gcc_assert.
3375 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3376 (write_typed_alloc_defns): Don't output for plugin files.
3377 (input_file_by_name): Clear inpisplugin field.
3378 (main): Set inpisplugin field for plugin files.
3380 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
3382 * gengtype-state.c (string_eq): New.
3383 (read_state): Use string_eq instead of strcmp when creating the
3386 2011-04-19 Wei Guozhi <carrot@google.com>
3389 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3390 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3392 * config/arm/constraints.md (Uu): New constraint.
3393 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3395 2011-04-19 Tristan Gingold <gingold@adacore.com>
3397 * config.gcc (-*-*-*vms): Added.
3398 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3400 * config/vms/vms-ld.c: New file.
3401 * config/vms/vms-ar.c: New file.
3402 * config/vms/t-vmsnative: New file.
3404 2011-04-18 Xinliang David Li <davidxl@google.com>
3406 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3408 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3411 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3412 if TREE_TYPE (v) is non-NULL.
3414 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3415 gimple_get_virt_mehtod_for_binfo.
3416 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3417 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3419 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3421 2011-04-18 Michael Matz <matz@suse.de>
3422 Steve Ellcey <sje@cup.hp.com>
3424 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3425 use its mode as source mode if it isn't VOIDmode.
3427 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
3429 * doc/passes.texi: Fill crossref nodes.
3431 2011-04-18 Jim Meyering <meyering@redhat.com>
3433 Fix doubled-word typos in comments and strings
3434 * config/alpha/vms-unwind.h: s/for for/for/
3435 * config/arm/unwind-arm.h: Likewise.
3436 * config/microblaze/microblaze.c: Likewise.
3437 * config/sh/constraints.md: s/in in/in/
3438 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3440 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
3442 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3443 (AVX_FLOAT_MODE_P): Ditto.
3444 (AVX128_VEC_FLOAT_MODE_P): Ditto.
3445 (AVX256_VEC_FLOAT_MODE_P): Ditto.
3446 (AVX_VEC_FLOAT_MODE_P): Ditto.
3447 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3448 (UNSPEC_MASKSTORE): Ditto.
3449 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3450 Merge from <sse>_movmsk<ssemodesuffix> and
3451 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
3452 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
3454 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3455 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3456 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3458 2011-04-18 Jan Hubicka <jh@suse.cz>
3460 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3462 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3463 (want_inline_function_called_once_p): Break out the logic from
3465 (edge_badness): Ensure that profile is not misupdated.
3466 (lookup_recursive_calls): Prioritize by call frequencies.
3467 (inline_small_functions): Move program size estimates here;
3468 actually process whole queue even when unit growth has been
3469 met. (to properly compute inline_failed reasons and for the
3470 case unit size decrease.) Revisit comments on recursive inlining.
3471 (ipa_inline): Remove unit summary code; first inline hot calls
3472 of functions called once, cold calls next.
3473 (order, nnodes): Remove unused variables.
3474 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3475 (GTFILES): Remove ipa-inline.c
3476 * sel-sched.c (fill_insns): Silence uninitialized var warning.
3478 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3480 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3482 2011-04-18 Jie Zhang <jie@codesourcery.com>
3483 Richard Earnshaw <rearnsha@arm.com>
3485 * arm.c (neon_builtin_type_bits): Remove.
3486 (typedef enum neon_builtin_mode): New.
3487 (T_MAX): Don't define.
3488 (typedef enum neon_builtin_datum): Remove bits, codes[],
3489 num_vars and base_fcode. Add mode, code and fcode.
3490 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3491 VAR10): Change accordingly.
3492 (neon_builtin_data[]): Change accordingly
3493 (arm_init_neon_builtins): Change accordingly.
3494 (neon_builtin_compare): Remove.
3495 (locate_neon_builtin_icode): Remove.
3496 (arm_expand_neon_builtin): Change accordingly.
3498 * arm.h (enum arm_builtins): Move to ...
3499 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3501 * arm.c (arm_builtin_decl): Declare.
3502 (TARGET_BUILTIN_DECL): Define.
3503 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3504 (arm_builtin_decls[]): New.
3505 (arm_init_neon_builtins): Store builtin declarations in
3506 arm_builtin_decls[].
3507 (arm_init_tls_builtins): Likewise.
3508 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
3509 (arm_builtin_decl): New.
3511 2011-04-18 Richard Guenther <rguenther@suse.de>
3513 * tree.c (upper_bound_in_type): Build properly canonicalized
3515 (lower_bound_in_type): Likewise.
3517 2011-04-18 Richard Guenther <rguenther@suse.de>
3519 * gimple.h (gimple_call_addr_fndecl): New function.
3520 (gimple_call_fndecl): Use it.
3521 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3523 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3524 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3526 2011-04-18 Richard Guenther <rguenther@suse.de>
3529 * tree.c (build_string): STRING_CST is now derived from tree_typed.
3531 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3534 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3535 DECL_IN_CONSTANT_POOL without RTL.
3537 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
3538 Ira Rosen <ira.rosen@linaro.org>
3541 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3542 to match neon_vzip/vuzp/vtrn_internal.
3543 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3544 outputs explicitly dependent on both inputs.
3545 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3547 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3549 PR tree-optimization/48616
3550 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3551 whether the shift is by scalar or vector based on whether all SLP
3552 scalar stmts have the same rhs.
3554 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
3556 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3559 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3561 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3564 2011-04-17 Jan Hubicka <jh@suse.cz>
3566 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3567 * cgrpahunit.c (cgraph_finalize_function): Do not set
3568 finalized_by_frontend.
3569 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3570 finalized_by_frontend.
3572 2011-04-17 Jan Hubicka <jh@suse.cz>
3574 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3575 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3576 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3577 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3579 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3581 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3583 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
3586 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3587 is non-null before accessing it.
3588 (input_cgraph): Remove trailing spaces.
3590 2011-04-17 Revital Eres <revital.eres@linaro.org>
3592 * params.def (sms-min-sc): New param flag.
3593 * modulo-sched.c (sms_schedule): Use it.
3594 * doc/invoke.texi (sms-min-sc): Document it.
3596 2011-04-17 Jan Hubicka <jh@suse.cz>
3598 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3599 present, also set gimple_call_set_cannot_inline.
3600 * ipa-inline.c: Update toplevel comment.
3602 (cgraph_clone_inlined_nodes): Fix linebreaks.
3603 (cgraph_check_inline_limits): Restructure to ...
3604 (caller_growth_limits): ... this one; be more tolerant
3605 on growth in nested inline chains; add explanatory comment;
3606 fix stack accounting thinko introduced by previous patch.
3607 (cgraph_default_inline_p): Remove.
3608 (report_inline_failed_reason): New function.
3609 (can_inline_edge_p): New function.
3610 (can_early_inline_edge_p): New function.
3611 (leaf_node_p): Move upwards in file.
3612 (want_early_inline_function_p): New function.
3613 (want_inline_small_function_p): New function.
3614 (want_inline_self_recursive_call_p): New function.
3615 (cgraph_edge_badness): Rename to ...
3616 (edge_badness) ... this one; fix linebreaks.
3617 (update_edge_key): Update call of edge_baddness; add
3618 detailed dump about queue updates.
3619 (update_caller_keys): Use can_inline_edge_p and
3620 want_inline_small_function_p.
3621 (cgraph_decide_recursive_inlining): Rename to...
3622 (recursive_inlining): Use can_inline_edge_p and
3623 want_inline_self_recursive_call_p; simplify and remove no longer
3625 (cgraph_set_inline_failed): Remove.
3626 (add_new_edges_to_heap): Use can_inline_edge_p and
3627 want_inline_small_function_p.
3628 (cgraph_decide_inlining_of_small_functions): Rename to ...
3629 (inline_small_functions): ... this one; cleanup; use
3630 can/want predicates; cleanup debug ouput; work edges till fibheap
3631 is exhausted and do not stop once unit growth is reached; remove
3632 later loop processing remaining edges.
3633 (cgraph_flatten): Rename to ...
3634 (flatten_function): ... this one; use can_inline_edge_p
3635 and can_early_inline_edge_p predicates.
3636 (cgraph_decide_inlining): Rename to ...
3637 (ipa_inline): ... this one; remove unreachable nodes before
3638 inlining functions called once; simplify the pass.
3639 (cgraph_perform_always_inlining): Rename to ...
3640 (inline_always_inline_functions): ... this one; use
3641 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3642 (cgraph_decide_inlining_incrementally): Rename to ...
3643 (early_inline_small_functions): ... this one; simplify
3644 using new predicates; cleanup; make dumps prettier.
3645 (cgraph_early_inlining): Rename to ...
3646 (early_inliner): newer inline regular functions into always-inlines;
3647 fix updating of call stmt summaries.
3648 (pass_early_inline): Update for new names.
3649 (inline_transform): Fix formating.
3650 (gate_cgraph_decide_inlining): Rename to ...
3651 (pass_ipa_inline): ... this one.
3652 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3653 * ipa-inline-analysis.c (dump_inline_summary): Update.
3654 (compute_inline_parameters): Do not compute disregard_inline_limits;
3655 look for mismatching arguments.
3656 (estimate_growth): Fix handlig of non-trivial self recursion.
3657 (inline_read_summary): Do not read info->disregard_inline_limits.
3658 (inline_write_summary): Do not write info->disregard_inline_limits.
3659 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3660 and move all checks into can_inline_edge_p predicate; re-enable code
3661 comparing optimization levels.
3662 (expand_call_inline): Do not test inline_forbidden_into_p.
3663 * Makefile.in (ipa-inline.o): Update arguments.
3665 2011-04-17 Revital Eres <revital.eres@linaro.org>
3667 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3669 2011-04-17 Revital Eres <revital.eres@linaro.org>
3671 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3673 2011-04-17 Michael Matz <matz@suse.de>
3675 PR tree-optimization/48622
3677 * ipa-inline-analysis.c (inline_read_summary): Read size/time
3678 in same order as they're written.
3680 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3682 * config/pa/predicates.md: Reorganize and simplify predicates.
3683 Eliminate duplicate code checks.
3684 (arith_operand): Rename to arith14_operand
3685 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3686 * config/pa/pa.md: Use renamed operands.
3687 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3688 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3689 arith11_operand, adddi3_operand, indexed_memory_operand,
3690 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3691 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3692 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3693 move_dest_operand, move_src_operand, prefetch_cc_operand,
3694 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3695 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3696 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3697 div_operand, int5_operand, movb_comparison_operator,
3698 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3699 arith_double_operand, ireg_operand, lhs_lshift_operand,
3700 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3701 integer_store_memory_operand): Likewise.
3702 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3703 (integer_store_memory_operand, read_only_operand,
3704 function_label_operand, borx_reg_operand,
3705 non_hard_reg_operand): Likewise.
3706 (eq_neq_comparison_operator): Delete unused operator.
3707 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3708 function_label_operand.
3709 (emit_move_sequence): Likewise.
3711 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3713 * config/i386/sse.md (sseunpackmode): New mode attribute.
3714 (ssepackmode): Ditto.
3715 (vec_pack_trunc_<mode>): Macroize expander from
3716 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3717 (vec_unpacks_lo_<mode>): Macroize expander from
3718 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3719 (vec_unpacks_hi_<mode>): Macroize expander from
3720 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3721 (vec_unpacku_lo_<mode>): Macroize expander from
3722 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3723 (vec_unpacku_hi_<mode>): Macroize expander from
3724 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3725 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3726 ix86_expand_sse4_unpack.
3727 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3729 2011-04-16 Jan Hubicka <jh@suse.cz>
3731 * cgraphbuild.c: Include ipa-inline.h.
3732 (reset_inline_failed): Use initialize_inline_failed.
3733 * cgraph.c: Include ipa-inline.h.
3734 (cgraph_create_node_1): Do not initialize estimated_growth.
3735 (initialize_inline_failed): More to ipa-inline-analysis.c
3736 (dump_cgraph_node): Do not dump inline flags.
3737 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3738 and disregard_inline_limits flags.
3739 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3740 time, size, estimated_growth.
3741 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3743 * cgraphunit.c (cgraph_decide_is_function_needed): Use
3744 DECL_DISREGARD_INLINE_LIMITS.
3745 (cgraph_analyze_function): Do not initialize
3746 node->local.disregard_inline_limits.
3747 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3748 inlinable, versionable and disregard_inline_limits.
3749 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3750 cgraph_check_inline_limits, cgraph_default_inline_p,
3751 cgraph_edge_badness, update_caller_keys, update_callee_keys,
3752 add_new_edges_to_heap): Update.
3753 (cgraph_decide_inlining_of_small_function): Update; set
3754 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3755 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3756 cgraph_decide_inlining_incrementally): Update.
3757 * ipa-inline.h (inline_summary): Add inlinable, versionable,
3758 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3759 time, size and estimated_growth parameters.
3760 (estimate_edge_growth): Update.
3761 (initialize_inline_failed): Declare.
3762 * ipa-split.c: Include ipa-inline.h
3763 (execute_split_functions): Update.
3764 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3765 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3766 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3767 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3768 estimated_growth to INT_MIN.
3769 (inline_node_duplication_hook): Likewise.
3770 (dump_inline_summary): Dump new fields.
3771 (compute_inline_parameters): Update.
3772 (estimate_edge_time, estimate_time_after_inlining,
3773 estimate_size_after_inlining, estimate_growth, inline_read_summary,
3774 inline_write_summary):
3775 (initialize_inline_failed): Move here from cgraph.c.
3776 * tree-sra.c: Include ipa-inline.h.
3777 (ipa_sra_preliminary_function_checks): Update.
3778 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3781 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3783 * config/i386/sse.md (V16): New mode iterator.
3785 (AVXMODEQI, AVXMODEDI): Remove.
3786 (sse2, sse3): New mode attribute.
3787 (mov<mode>): Use V16 mode iterator.
3788 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3789 (push<mode>1): Use V16 mode iterator.
3790 (movmisalign<mode>): Ditto.
3791 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3792 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3793 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3794 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3795 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3796 avx_movdqu<avxmodesuffix>.
3797 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3798 *avx_movdqu<avxmodesuffix>.
3799 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3800 avx_lddqu<avxmodesuffix>.
3801 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3802 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3803 avx_movnt<AVXMODEDI:mode>.
3804 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3805 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3807 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
3810 * haifa-sched.c (prune_ready_list, schedule_block): Use
3811 sched_pressure_p rather than flag_sched_pressure.
3813 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3815 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3816 cgraph_get_node instead of cgraph_get_create_node.
3818 2011-04-15 Jakub Jelinek <jakub@redhat.com>
3820 * cfgexpand.c (expand_debug_expr): Use
3821 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3823 2011-04-15 Michael Matz <matz@suse.de>
3825 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3826 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3827 * function.c (gimplify_parameters): Ditto.
3828 * gimplify.c (gimplify_vla_decl): Ditto.
3830 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3831 (gimple_call_set_alloca_for_var): New inline function.
3832 (gimple_call_alloca_for_var_p): Ditto.
3833 * gimple.c (gimple_build_call_from_tree): Remember
3834 CALL_ALLOCA_FOR_VAR_P state.
3835 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3837 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3838 calls if they were for VLA objects.
3840 2011-04-15 Martin Jambor <mjambor@suse.cz>
3842 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3845 2011-04-15 Martin Jambor <mjambor@suse.cz>
3848 * tree-emutls.c (lower_emutls_function_body): Call
3849 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3852 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3854 * c-decl.c (detect_field_duplicates): Call
3855 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3857 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3859 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3860 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3861 * ipa-pure-const.c (check_stmt): Call it.
3862 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3864 2011-04-15 Richard Guenther <rguenther@suse.de>
3866 PR tree-optimization/48290
3867 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3868 Properly decide inhibiting propagation based on the valueized
3869 operand. Do loop-closed SSA form preserving here ...
3870 (init_copy_prop): ... not here.
3872 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3875 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3876 (*ieee_smax<mode>3): Likewise.
3878 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3880 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3881 Replace match_operand with match_dup for the third operand in
3884 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3886 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3887 to track processing of conditionals. Update all callers.
3888 (try_combine, simplify_if_then_else): Update.
3890 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3892 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3895 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
3897 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3898 instead of match_operand for operand 3.
3900 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
3902 * recog.h (insn_operand_data): Add an "allows_mem" field.
3903 * genoutput.c (output_operand_data): Initialize it.
3904 * optabs.c (maybe_legitimize_operand_same_code): New function.
3905 (maybe_legitimize_operand): Use it when matching the original
3908 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3910 * gimplify.c: Fix issues in comments throughout.
3911 (voidify_wrapper_expr): Fix long line.
3912 (build_stack_save_restore): Likewise.
3913 (gimplify_loop_expr): Likewise.
3914 (gimplify_compound_lval): Likewise.
3915 (gimplify_init_ctor_eval): Likewise.
3916 (gimplify_modify_expr_rhs): Likewise.
3917 (omp_notice_threadprivate_variable): Likewise.
3919 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3921 * cfgexpand.c (expand_call_stmt): Convert the function type to the
3922 original one if this is not a builtin function.
3924 2011-04-14 Jakub Jelinek <jakub@redhat.com>
3927 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3928 offset it as needed based on top 2 bits in operands[3], change
3929 MEM mode to SFmode and mask those 2 bits away from operands[3].
3931 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3933 * c-parser.c (c_parser_objc_protocol_definition): Updated for
3934 change from objc_declare_protocols() to objc_declare_protocol().
3936 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
3938 * config/i386/sse.md (sse4_1): New mode attribute.
3939 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3940 avx_blend<ssemodesuffix><avxmodesuffix> and
3941 sse4_1_blend<ssemodesuffix> using VF mode iterator.
3942 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3943 avx_blendv<ssemodesuffix><avxmodesuffix> and
3944 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3945 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3946 avx_dp<ssemodesuffix><avxmodesuffix> and
3947 sse4_1_dp<ssemodesuffix> using VF mode iterator.
3948 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3949 (sse4_1_packusdw): Merge with *avx_packusdw.
3950 (sse4_1_pblendvb): Merge with *avx_pblendvb.
3951 (sse4_1_pblendw): Merge with *avx_pblendw.
3952 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3953 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3954 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3956 (sse4_1_round<ssescalarmodesuffix>): Merge with
3957 *avx_round<ssescalarmodesuffix>.
3958 (aesenc): Merge with *avx_aesenc.
3959 (aesenclast): Merge with *avx_aesenclast.
3960 (aesdec): Merge with *avx_aesdec.
3961 (aesdeclast): Merge with *avx_aesdeclast.
3962 (pclmulqdq): Merge with *pclmulqdq.
3963 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3965 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3967 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
3970 * cfgexpand.c (get_decl_align_unit): Renamed to ...
3971 (align_local_variable): This. Update DECL_ALIGN.
3972 (add_stack_var): Updated.
3973 (expand_one_stack_var): Likewise.
3975 2011-04-14 Richard Guenther <rguenther@suse.de>
3977 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3979 (dse_initialize_block_local_data, dse_leave_block,
3980 record_voperand_set, get_stmt_uid): Likewise.
3981 (dse_possible_dead_store_p): Allow any kind of killing stmt.
3982 (dse_optimize_stmt): Remove voperand set handling code.
3983 Simplify and improve to handle any kind of killing stmt.
3984 (dse_record_phi): Remove.
3985 (dse_enter_block): Simplify.
3986 (tree_ssa_dse): Likewise.
3987 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3989 2011-04-14 Jan Hubicka <jh@suse.cz>
3991 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3992 * cgraph.h (struct inline_summary): Move to ipa-inline.h
3993 (cgraph_local_info): Remove inline_summary.
3994 * ipa-cp.c: Include ipa-inline.h.
3995 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3996 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3998 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3999 (input_overwrite_node): Do not set inline summary.
4000 (input_node): Do not stream inline summary.
4001 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4002 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4003 growth; we do not have inline parameters computed for that anyway.
4004 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4005 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4006 (inline_summary_t): New type and VECtor.
4007 (debug_inline_summary, dump_inline_summaries): Declare.
4008 (inline_summary): Use VOCtor.
4009 (estimate_edge_growth): Kill hack computing call stmt size directly.
4010 * lto-section-in.c (lto_section_name): Add inline section.
4011 * ipa-inline-analysis.c: Include lto-streamer.h
4012 (node_removal_hook_holder, node_duplication_hook_holder): New holders
4013 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4014 (inline_summary_vec): Define.
4015 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4016 dump_inline_summaries): New functions.
4017 (estimate_function_body_sizes): Properly compute size/time of outgoing
4019 (compute_inline_parameters): Alloc inline_summary; do not compute
4020 size/time of incomming calls.
4021 (estimate_edge_time): Avoid missing time summary hack.
4022 (inline_read_summary): Read inline summary info.
4023 (inline_write_summary): Write inline summary info.
4024 (inline_free_summary): Free all hooks and inline summary vector.
4025 * lto-streamer.h: Add LTO_section_inline_summary section.
4026 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4027 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4029 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4031 * tree-vectorizer.h (vect_strided_store_supported): Add a
4032 HOST_WIDE_INT argument.
4033 (vect_strided_load_supported): Likewise.
4034 (vect_permute_store_chain): Return void.
4035 (vect_transform_strided_load): Likewise.
4036 (vect_permute_load_chain): Delete.
4037 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4038 count argument. Check that the count is a power of two.
4039 (vect_strided_load_supported): Likewise.
4040 (vect_permute_store_chain): Return void. Update after above changes.
4041 Assert that the access is supported.
4042 (vect_permute_load_chain): Likewise.
4043 (vect_transform_strided_load): Return void.
4044 * tree-vect-stmts.c (vectorizable_store): Update calls after
4045 above interface changes.
4046 (vectorizable_load): Likewise.
4047 (vect_analyze_stmt): Don't check for strided powers of two here.
4049 2011-04-14 Richard Guenther <rguenther@suse.de>
4051 PR tree-optimization/48590
4052 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4053 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4054 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4055 BUILT_IN_STACK_SAVE.
4056 * tree-ssa-dce.c (propagate_necessity): Handle
4057 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4059 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4061 * c-parser.c (c_parser_objc_class_declaration): Updated call to
4064 2011-04-14 Richard Guenther <rguenther@suse.de>
4066 * tree.h (get_object_alignment_1): Declare.
4067 * builtins.c (get_object_alignment_1): Split out worker from ...
4068 (get_object_alignment): ... here.
4069 * fold-const.c (get_pointer_modulus_and_residue): Use
4070 get_object_alignment_1.
4072 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4074 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4076 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4077 parameter. Generalise code to handle arrays as well as vectors.
4078 (vect_setup_realignment): Update accordingly.
4079 * tree-vect-stmts.c (vectorizable_store): Likewise.
4080 (vectorizable_load): Likewise.
4082 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4084 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4085 within the per-copy loop.
4087 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4089 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4092 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4094 * doc/options.texi (Negative): Explicitly mention that the
4095 Negative chain must be circular.
4097 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
4099 * function.h (block_chainon): Declare.
4100 * function.c (block_chainon): Define.
4102 2011-04-14 Anatoly Sokolov <aesok@post.ru>
4103 Eric Weddington <eric.weddington@atmel.com>
4104 Georg-Johann Lay <avr@gjlay.de>
4106 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4108 (avr_init_builtins, avr_expand_builtin,
4109 avr_expand_delay_cycles, avr_expand_unop_builtin,
4110 avr_expand_binop_builtin ): New functions.
4111 (avr_builtin_id): New enum
4112 (struct avr_builtin_description): New struct
4113 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4114 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4116 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4117 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4118 UNSPECV_DELAY_CYCLES): new enumeration values
4119 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4120 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4121 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4122 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4123 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4124 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4125 "fmulsu"): New insns
4127 * config/avr/avr-c.c: fix line endings
4128 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4129 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4130 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4131 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4132 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4134 * doc/extend.texi (AVR Built-in Functions): New node
4135 (Target Builtins): Add documentation of AVR
4138 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
4141 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4142 alone. Error if non-const data has attribute progmem.
4144 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4146 * tree.h (struct tree_constructor): Include tree_typed instead of
4148 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4149 TS_TYPED instead of TS_COMMON.
4151 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4153 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4154 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4155 (sse2_psadbw): Merge with *avx_psadbw.
4156 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4157 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4158 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4159 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4160 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4161 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4162 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4163 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4164 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4165 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4166 (ssse3_palignrti): Merge with *avx_palignrti.
4168 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4170 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4171 * tree-ssanames.c (fini_ssanames): VEC_free it.
4172 (make_ssa_name_fn): Update for VECness of free_ssanames.
4173 (release_ssa_name, release_dead_ssa_names): Likewise.
4174 * tree.h (struct tree_ssa_name): Include tree_typed instead of
4176 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4177 TS_TYPED instead of TS_COMMON.
4179 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4181 * postreload-gcse.c (gcse_after_reload_main): Add calls to
4182 statistics_counter_event.
4183 * tree-ssa-copyrename.c (stats): Define.
4184 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
4185 statistics_counter_event.
4186 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4187 (bswap_stats, widen_mul_stats): Define.
4188 (insert_reciprocals): Increment rdivs_inserted.
4189 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
4190 rfuncs_inserted. Add calls to statistics_counter_event.
4191 (execute_cse_sincos_1): Increment inserted.
4192 (execute_cse_sincos): Zeroize sincos_stats. Add call to
4193 statistics_counter_event.
4194 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
4195 of bswap_stats. Add calls to statistics_counter_event.
4196 (convert_mult_to_widen): Increment widen_mults_inserted.
4197 (convert_plusminus_to_widen): Increment maccs_inserted.
4198 (convert_mult_to_fma): Increment fmas_inserted.
4199 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
4200 calls to statistics_counter_event.
4202 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
4204 PR rtl-optimization/48455
4205 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4206 `temp_costs->mem_cost'.
4208 2011-04-13 Jan Hubicka <jh@suse.cz>
4210 * ipa-inline.h: New file.
4211 * ipa-inline-analysis.c: New file. Broken out of ...
4212 * ipa-inline.c: ... this file; update toplevel comment;
4213 include ipa-inline.h
4214 (inline_summary): Move to ipa-inline.h
4215 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4216 ipa-inline-analysis.c.
4217 (cgraph_estimate_time_after_inlining): Rename to
4218 estiamte_time_after_inlining; move to ipa-inline-analysis.c
4219 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4220 to estimate_edge_growth.
4221 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4222 rename to estimate_size_after_inlining.
4223 (cgraph_mark_inline_edge): Update for new naming convention.
4224 (cgraph_check_inline_limits): Likewise.
4225 (cgraph_edge_badness): Likewise.
4226 (cgraph_decide_recursive_inlining): Likewise.
4227 (cgraph_decide_inlining_of_small_functions): Likewise.
4228 (cgraph_decide_inlining_incrementally): Likewise.
4229 (cgraph_estimate_growth): Rename to estimate_growth; move to
4230 ipa-inline-analysis.c.
4231 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4232 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4233 (compute_inline_parameters): Likewise.
4234 (compute_inline_parameters_for_current): Likewise.
4235 (pass_inline_parameters): Likewise.
4236 (inline_indirect_intraprocedural_analysis): Likewise.
4237 (analyze_function): Rename to inline_analyze_function; likewise.
4238 (add_new_function): Move to ipa-inline-analysis.c.
4239 (inline_generate_summary): Likewise.
4240 (inline_read_summary): Likewise.
4241 (inline_write_summary): Likewise.
4242 * Makefile.in (ipa-inline-analysis.c): New file.
4244 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4246 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4247 * configure: Regenerate.
4249 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4251 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4252 instead of tree_common.
4253 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4255 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4256 TS_TYPED rather than TS_COMMON.
4257 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4259 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
4262 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4263 r20 around calls of __tablejump_elpm__
4265 2011-04-13 Jakub Jelinek <jakub@redhat.com>
4268 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4270 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4272 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
4274 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4275 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4276 (cfi_vec): New typedef.
4277 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4278 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4279 (cie_cfi_vec): New static variable.
4280 (cie_cfi_head): Delete.
4281 (add_cfi): Accept a cfi_vec * as first argument. All callers and
4282 declaration changed. Use vector rather than list operations.
4283 (new_cfi): Don't initialize the dw_cfi_next field.
4284 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4285 rather than list operations.
4286 (lookup_cfa): Use vector rather than list operations.
4287 (output_cfis): New argument upto. Accept a cfi_vec rather than
4288 a dw_cfi_ref list head as argument. All callers changed.
4289 Iterate over the vector using upto as a maximum index.
4290 (output_all_cfis): New static function.
4291 (output_fde): Use vector rather than list operations. Use the
4292 new upto argument for output_cfis rather than manipulating a
4294 (dwarf2out_begin_prologue): Change initializations to match
4296 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4297 from the vector length rather than searching for the end of a list.
4298 Use output_all_cfis.
4299 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4301 2011-04-13 Nick Clifton <nickc@redhat.com>
4303 * config/rx/rx.md (movmemsi): Do not use this pattern when
4304 volatile pointers are involved.
4306 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4308 * config/i386/sse.md (pinsrbits): Remove.
4309 (sse2_packsswb): Merge with *avx_packsswb.
4310 (sse2_packssdw): Merge with *avx_packssdw.
4311 (sse2_packuswb): Merge with *avx_packuswb.
4312 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4313 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4314 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4315 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4316 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4317 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4318 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4319 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4320 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4321 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4322 (sse2_loadld): Merge with *avx_loadld.
4323 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4324 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4325 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4326 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4327 (vec_concatv2di): Merge with *vec_concatv2di_avx.
4329 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4331 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4333 * print-tree.c (print_node): Likewise.
4334 * tree-inline.c (copy_tree_r): Likewise.
4335 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4336 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4337 instead of TS_COMMON.
4338 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4339 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4340 (copy_node_stat): Zero TREE_CHAIN only if necessary.
4341 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4342 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4344 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4346 (TREE_CHAIN): Check for a TS_COMMON structure.
4347 (TREE_TYPE): Check for a TS_TYPED structure.
4349 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
4351 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4352 cgraph_get_create_node instead of cgraph_node.
4354 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4356 * c-parser.c (c_parser_initelt): Updated call to
4357 objc_build_message_expr.
4358 (c_parser_postfix_expression): Likewise.
4360 2011-04-12 Kai Tietz <ktietz@redhat.com>
4362 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4363 MASK_MS_BITFIELD_LAYOUT bit.
4365 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4367 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4368 assert it is always true.
4369 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4372 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4374 * c-parser.c (c_lex_one_token): Rewritten conditional used when
4375 compiling Objective-C to be more efficient.
4377 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
4379 * opts-common.c (decode_cmdline_options_to_array): Remove variable
4382 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4384 * recog.h, genoutput.c, optabs.c: Revert last patch.
4386 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4389 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4391 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4393 * recog.h (insn_operand_data): Add an "allows_mem" field.
4394 * genoutput.c (output_operand_data): Initialize it.
4395 * optabs.c (maybe_legitimize_operand_same_code): New function.
4396 (maybe_legitimize_operand): Use it when matching the original
4399 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4401 * genpreds.c (process_define_predicate): Move most processing
4402 to gensupport.c. Continue to validate the expression.
4403 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4404 (process_define_predicate): Move processing to gensupport.c.
4405 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4406 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4407 (compute_predicate_codes): Moved from genrecog.c. Add lineno
4409 (valid_predicate_name_p): New function, split out from old
4410 genpreds.c:process_define_predicate.
4411 (process_define_predicate): New function, combining code from
4412 old genpreds.c and genrecog.c functions.
4413 (process_rtx): Call it for DEFINE_PREDICATE and
4414 DEFINE_SPECIAL_PREDICATE.
4416 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4418 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4419 size of a '%A' memory reference.
4420 (T_DREG, T_QREG): New neon_builtin_type_bits.
4421 (arm_init_neon_builtins): Assert that the load and store operands
4422 are neon_struct_operands.
4423 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4424 (NEON_ARG_MEMORY): New builtin_arg.
4425 (neon_dereference_pointer): New function.
4426 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4427 Handle NEON_ARG_MEMORY.
4428 (arm_expand_neon_builtin): Update after above interface changes.
4429 Use NEON_ARG_MEMORY for loads and stores.
4430 * config/arm/predicates.md (neon_struct_operand): New predicate.
4431 * config/arm/iterators.md (V_two_elem): Tweak formatting.
4432 (V_three_elem): Use BLKmode for accesses that have no associated mode.
4433 (V_four_elem): Tweak formatting.
4434 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4435 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4436 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4437 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4438 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4439 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4440 (neon_vst4<mode>): Replace pointer operand with a memory operand.
4441 Use %A in the output template.
4442 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4443 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4444 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4445 the width of the memory access. Remove post-increment.
4446 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4448 2011-04-12 Nick Clifton <nickc@redhat.com>
4450 * config/v850/v850.c (expand_prologue): Do not use the CALLT
4451 instruction for interrupt handlers if the target is the basic V850
4453 (expand_epilogue): Likewise.
4455 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4457 PR rtl-optimization/48549
4458 * combine.c (propagate_for_debug): Also stop after BB_END of
4459 this_basic_block. Process LAST and just stop processing after it.
4460 (combine_instructions): If last_combined_insn has been deleted,
4461 set last_combined_insn to its PREV_INSN.
4463 2011-04-12 Richard Guenther <rguenther@suse.de>
4465 PR tree-optimization/46076
4466 * gimple.h (struct gimple_statement_call): Add fntype field.
4467 (gimple_call_fntype): Adjust.
4468 (gimple_call_set_fntype): New function.
4469 * gimple.c (gimple_build_call_1): Set the call function type.
4470 * gimplify.c (gimplify_call_expr): Preserve the function
4471 type the frontend used for the call.
4472 (gimplify_modify_expr): Likewise.
4473 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4475 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4477 * tree-ssa.c (useless_type_conversion_p): Function pointer
4478 conversions are useless.
4480 2011-04-12 Martin Jambor <mjambor@suse.cz>
4482 * cgraph.h (cgraph_node): Remove function declaration.
4483 (cgraph_create_node): Declare.
4484 (cgraph_get_create_node): Likewise.
4485 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4486 Updated all callers.
4487 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4488 the decl does not already exist. Call cgraph_get_create_node instead
4490 (cgraph_get_create_node): New function.
4491 (cgraph_same_body_alias): Update comment.
4492 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4493 assert it does not return NULL.
4494 (cgraph_update_edges_for_call_stmt): Likewise.
4495 (cgraph_clone_edge): Likewise.
4496 (cgraph_create_virtual_clone): Likewise.
4497 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4498 instead of cgraph_node.
4499 (cgraph_add_new_function): Call cgraph_create_node or
4500 cgraph_get_create_node instead of cgraph_node.
4501 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4502 instead of cgraph_node.
4503 (record_eh_tables): Likewise.
4504 (mark_address): Likewise.
4505 (mark_load): Likewise.
4506 (build_cgraph_edges): Call cgraph_get_create_node instead
4508 (rebuild_cgraph_edges): Likewise.
4509 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4510 instead of cgraph_node.
4511 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4513 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4514 cgraph_create_node instead of cgraph_node.
4515 * c-decl.c (finish_function): Call cgraph_get_create_node instead
4517 * lto-cgraph.c (input_node): Likewise.
4518 * lto-streamer-in.c (input_function): Likewise.
4519 * varasm.c (mark_decl_referenced): Likewise.
4520 (assemble_alias): Likewise.
4522 2011-04-12 Martin Jambor <mjambor@suse.cz>
4524 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4525 instead of cgraph_node and assert it does not return NULL.
4526 * lto-streamer-in.c (lto_read_body): Likewise.
4527 * omp-low.c (new_omp_context): Likewise.
4528 (create_task_copyfn): Likewise.
4529 * tree-emutls.c (lower_emutls_function_body): Likewise.
4530 * matrix-reorg.c (transform_allocation_sites): Likewise.
4532 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4535 * c-typeck.c (build_asm_expr): Error out on attempts to use
4536 void type outputs or inputs for constraints that allow reg or
4539 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
4540 Richard Earnshaw <rearnsha@arm.com>
4543 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4544 to use sign-magnitude offsets. Reject unsupported unaligned
4545 cases. Add detailed description in comments.
4546 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4547 condition from TARGET_32BIT to TARGET_ARM.
4549 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
4551 * tree.h (struct typed_tree): New.
4552 (struct tree_common): Include it instead of tree_base.
4553 (TREE_TYPE): Update for new location of type field.
4554 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4555 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4556 (union tree_node): Add typed field.
4557 * treestruct.def (TS_TYPED): New.
4558 * lto-streamer.c (check_handled_ts_structures): Handle it.
4559 * tree.c (MARK_TS_TYPED): New macro.
4560 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4562 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
4564 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4565 (force_nonfallthru): Do not alter the loop nest if no basic block
4568 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4570 * config/i386/sse.md (VI): New mode iterator.
4572 (AVX256MODEI): Ditto.
4573 (AVXMODEF4P): Ditto.
4574 (avxvecpsmode): Ditto.
4575 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
4576 (sse2_andnot<mode>3): New expander.
4577 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4578 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
4579 (<any_logic:code><mode>3): Use VI mode iterator.
4580 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4581 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
4582 (*andnottf3): Handle AVX three-operand constraints.
4583 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4585 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4586 Robert Millan <rmh@gnu.org>
4588 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4589 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4590 GNU_USER_DYNAMIC_LINKER64): Define.
4591 (REG_NAME): Don't undefine.
4592 (MD_UNWIND_SUPPORT): Undefine.
4593 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4594 (REG_NAME): Don't undefine.
4595 (MD_UNWIND_SUPPORT): Undefine.
4596 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4598 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4600 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4601 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4603 2011-04-11 Xinliang David Li <davidxl@google.com>
4605 * value-profile.c (check_ic_target): New function.
4606 (gimple_ic_transform): Sanity check indirect call target.
4607 * gimple-low.c (gimple_check_call_args): Interface change.
4608 (gimple_check_call_matching_types): New function.
4609 * tree-inline.c (tree_can_inline_p): Call new function.
4611 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
4613 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4614 tree-pretty-print.h & realmpfr.h.
4616 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
4619 * ira.c (setup_pressure_classes): Fix typo in loop condition.
4620 (setup_allocno_and_important_classes): Ditto.
4622 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4624 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4625 GNU_USER_DYNAMIC_LINKER.
4626 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4627 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4628 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4629 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4630 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4631 GNU_USER_TARGET_OS_CPP_BUILTINS.
4632 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4633 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4634 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4635 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4636 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4637 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4638 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4639 GNU_USER_TARGET_OS_CPP_BUILTINS.
4640 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4641 GNU_USER_DYNAMIC_LINKER.
4642 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4643 GNU_USER_TARGET_OS_CPP_BUILTINS.
4644 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4645 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4646 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4647 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4648 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4649 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4650 GNU_USER_DYNAMIC_LINKER64): Remove.
4651 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4652 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4653 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4654 GNU_USER_DYNAMIC_LINKER.
4655 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4656 GNU_USER_TARGET_OS_CPP_BUILTINS.
4657 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4658 GNU_USER_TARGET_OS_CPP_BUILTINS.
4659 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4660 to GNU_USER_TARGET_OS_CPP_BUILTINS.
4661 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4662 GNU_USER_TARGET_OS_CPP_BUILTINS.
4663 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4664 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4665 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4666 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4667 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4668 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4669 GNU_USER_DYNAMIC_LINKER.
4670 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4671 GNU_USER_TARGET_OS_CPP_BUILTINS.
4672 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4673 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4674 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4675 GNU_USER_DYNAMIC_LINKER.
4676 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4677 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4678 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4679 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4680 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4681 GNU_USER_DYNAMIC_LINKER.
4682 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4683 GNU_USER_DYNAMIC_LINKERN32.
4684 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4685 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
4686 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
4687 GNU_USER_DYNAMIC_LINKER32.
4688 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4689 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4690 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4691 GNU_USER_DYNAMIC_LINKER.
4692 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4693 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4694 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4695 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4696 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4697 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4698 GNU_USER_DYNAMIC_LINKER32.
4699 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4700 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4701 GNU_USER_DYNAMIC_LINKER.
4702 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4703 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4704 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4705 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
4706 GNU_USER_DYNAMIC_LINKER64.
4707 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4708 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4709 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4710 GNU_USER_DYNAMIC_LINKER.
4711 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4712 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4713 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4714 GNU_USER_DYNAMIC_LINKER.
4715 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4716 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4717 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4718 GNU_USER_DYNAMIC_LINKER32.
4719 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4720 GNU_USER_DYNAMIC_LINKER64.
4721 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4722 GNU_USER_DYNAMIC_LINKER64.
4723 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4724 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4725 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4726 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4727 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4729 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4731 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
4732 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4733 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4734 GNU_USER_DYNAMIC_LINKER.
4735 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4736 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
4737 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4738 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4739 GNU_USER_DYNAMIC_LINKER64.
4740 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4741 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4742 GNU_USER_LINK_EMULATION.
4743 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4744 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4745 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4746 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4747 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4748 CPP_SPEC, CC1_SPEC): Remove.
4749 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4750 (GNU_USER_DYNAMIC_LINKER): Define.
4751 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4752 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4753 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4754 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4755 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4756 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4757 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4758 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4759 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4760 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4761 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4762 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4763 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4764 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4765 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4766 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4767 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4768 GNU_USER_DYNAMIC_LINKER.
4769 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4770 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4771 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4772 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4773 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4774 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4775 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4776 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4777 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4778 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4780 2011-04-11 Kai Tietz <ktietz@redhat.com>
4784 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4785 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4787 (ix86_is_msabi_thiscall): Removed.
4788 (ix86_is_type_thiscall): Likewise.
4789 (ix86_get_callcvt): New function.
4790 (ix86_comp_type_attributes): Simplify check.
4791 (ix86_function_regparm): Use ix86_get_callcvt for calling
4792 convention attribute checks.
4793 (ix86_return_pops_args): Likewise.
4794 (ix86_static_chain): Likewise.
4795 (x86_this_parameter): Likewise.
4796 (x86_output_mi_thunk): Likewise.
4797 (ix86_function_type_abi): Optimize check for types without attributes.
4798 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4799 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4800 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4802 (IX86_BASE_CALLCVT): Helper macro.
4803 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4804 Use ix86_get_callcvt for calling convention attribute checks and avoid
4805 symbol-decoration for stdcall in TARGET_RTD case.
4806 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4808 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4811 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4813 * config/i386/sse.md (VI_128): New mode iterator.
4814 (VI12_128): Rename from SSEMODE12.
4815 (VI14_128): Rename from SSEMODE14.
4816 (VI124_128): New mode iterator.
4817 (VI24_128): Rename from SSEMODE248.
4818 (VI248_128): Rename from SSEMODE248.
4819 (SSEMODE124C8): Remove.
4820 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4821 (*sse2_<plusminus_insn><mode>3): Merge with
4822 *avx_<plusminus_insn><mode>3.
4823 (*mulv8hi3): Merge with *avx_mulv8hi3.
4824 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4825 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4826 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4827 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4828 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4829 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4830 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4831 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4832 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4833 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4834 (*<smaxmin:code>v8hi3): Ditto.
4835 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4836 (*<smaxmin:code>v16qi3): Ditto.
4837 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4838 (*sse2_eq<mode>3): Ditto.
4839 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4840 (*sse2_gt<mode>3): Ditto.
4841 (vcondv2di): Split out of vcond<mode>.
4842 (vconduv2di): Split out of vcondu<mode>.
4844 2011-04-11 Richard Guenther <rguenther@suse.de>
4846 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4847 before calling tree_low_cst.
4849 2011-04-11 Richard Guenther <rguenther@suse.de>
4851 * stor-layout.c (layout_type): Compute all array index size operations
4852 in the original type.
4853 (initialize_sizetypes): Add comment.
4854 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4856 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4858 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4860 2011-04-11 Martin Jambor <mjambor@suse.cz>
4862 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4863 of cgraph_node, handle NULL return value.
4864 (cgraph_global_info): Likewise.
4865 (cgraph_rtl_info): Likewise.
4866 * tree-inline.c (estimate_num_insns): Likewise.
4867 * gimplify.c (unshare_body): Likewise.
4868 (unvisit_body): Likewise.
4869 (gimplify_body): Likewise.
4870 * predict.c (optimize_function_for_size_p): Likewise.
4871 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4872 (call_may_clobber_ref_p_1): Likewise.
4873 * varasm.c (function_section_1): Likewise.
4874 (assemble_start_function): Likewise.
4876 2011-04-11 Martin Jambor <mjambor@suse.cz>
4878 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4880 * final.c (rest_of_clean_state): Likewise.
4881 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4882 * passes.c (pass_init_dump_file): Likewise.
4883 (execute_all_ipa_transforms): Likewise.
4884 (function_called_by_processed_nodes_p): Likewise.
4885 * predict.c (maybe_hot_frequency_p): Likewise.
4886 (probably_never_executed_bb_p): Likewise.
4887 (compute_function_frequency): Likewise.
4888 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4889 (unnest_nesting_tree_1): Likewise.
4890 (lower_nested_functions): Likewise.
4891 * tree-optimize.c (execute_fixup_cfg): Likewise.
4892 (tree_rest_of_compilation): Likewise.
4893 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4894 * tree-sra.c (ipa_early_sra): Likewise.
4895 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4896 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4897 * ipa.c (record_cdtor_fn): Likewise.
4898 * ipa-inline.c (cgraph_early_inlining): Likewise.
4899 (compute_inline_parameters_for_current): Likewise.
4900 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4901 * ipa-pure-const.c (local_pure_const): Likewise.
4902 * ipa-split.c (split_function): Likewise.
4903 (execute_split_functions): Likewise.
4904 * cgraphbuild.c (build_cgraph_edges): Likewise.
4905 (rebuild_cgraph_edges): Likewise.
4906 (cgraph_rebuild_references): Likewise.
4907 (remove_cgraph_callee_edges): Likewise.
4908 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4909 (verify_cgraph_node): Likewise.
4910 (cgraph_analyze_functions): Likewise.
4911 (cgraph_preserve_function_body_p): Likewise.
4912 (save_inline_function_body): Likewise.
4913 (save_inline_function_body): Likewise.
4914 * tree-inline.c (copy_bb): Likewise.
4915 (optimize_inline_calls): Likewise.
4917 2011-04-11 Martin Jambor <mjambor@suse.cz>
4919 PR tree-optimization/48195
4920 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4921 ipa_check_create_edge_args.
4922 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4923 ipa_check_create_edge_args.
4924 * ipa-inline.c (inline_generate_summary): Do not call
4925 ipa_check_create_node_params and ipa_check_create_edge_args.
4926 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4927 ipa_check_create_edge_args.
4929 2011-04-09 Anatoly Sokolov <aesok@post.ru>
4931 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4933 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4934 * function.c (record_hard_reg_sets): Likewise.
4935 * ira.c (compute_regs_asm_clobbered): Likewise.
4936 * sched-deps.c (sched_analyze_1): Likewise.
4937 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4939 2011-04-09 Xinliang David Li <davidxl@google.com>
4941 PR tree-optimization/PR48484
4942 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4943 has_valid_pred lazily
4945 2011-04-09 Duncan Sands <baldrick@free.fr>
4947 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4949 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
4951 * combine.c (combine_validate_cost): Adjust comments. Set registered
4952 cost of I0 to zero at the end, if any.
4954 2011-04-08 Xinliang David Li <davidxl@google.com>
4956 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4957 to insane profile data.
4959 2011-04-08 Xinliang David Li <davidxl@google.com>
4961 * ipa-cp.c (ipcp_update_profiling): Correct
4962 negative scale factor due to insane profile data.
4964 2011-04-08 Xinliang David Li <davidxl@google.com>
4966 * final.c (dump_basic_block_info): New function.
4967 (final): Dump basic block.
4968 (final_scan_insn): Remove old dump.
4970 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
4973 * config.gcc (i386-*-freebsd): Disable unwind table generation for
4976 2011-04-08 Michael Matz <matz@suse.de>
4979 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4981 (rebuild_jump_labels): Call rebuild_jump_labels_1.
4982 * rtl.h (rebuild_jump_labels_chain): Declare.
4983 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4984 insns inserted on edges.
4986 2011-04-08 Joseph Myers <joseph@codesourcery.com>
4988 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4989 * config/arm/arm-arches.def: New.
4990 * config/arm/arm-opts.h: New.
4991 * config/arm/genopt.sh: New.
4992 * config/arm/arm-tables.opt: New (generated).
4993 * config/arm/arm.c (arm_handle_option, arm_target_help,
4994 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4995 (all_architectures): Get most table contents from arm-arches.def.
4996 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4997 arm_selected_tune here.
4998 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4999 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5000 (march=, mcpu=, mtune=): Use Enum and Var.
5001 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5002 (arm.o): Update dependencies.
5004 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
5006 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5008 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5009 (write_typed_alloc_defns): Likewise.
5010 (main): Calls write_typed_alloc_defns with output_header.
5012 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
5015 * ira-color.c (setup_profitable_hard_regs): Add comments.
5016 Don't take prohibited hard regs into account.
5017 (setup_conflict_profitable_regs): Rename to
5018 get_conflict_profitable_regs.
5019 (check_hard_reg_p): Check prohibited hard regs.
5021 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5023 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5024 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5025 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5027 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5030 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5031 move from floating point to shift amount register.
5032 (emit_move_sequence): Remove secondary reload support for floating
5033 point to shift amount amount register copies.
5034 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5035 amount register copies.
5036 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5037 register, return false if mode isn't a scalar integer mode.
5038 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5040 2011-04-08 Richard Guenther <rguenther@suse.de>
5042 * gimple.c (gimple_call_flags): Remove kludge.
5044 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5046 * sel-sched.c (sel_region_init): Move call to
5047 sel_setup_region_sched_flags after setup_current_loop_nest.
5049 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
5051 PR rtl-optimization/48272
5052 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5053 init_insn_reg_pressure_info. Adjust a caller.
5054 * sched-int.h (init_insn_reg_pressure_info): Declare.
5055 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5056 when sched-pressure is enabled.
5058 2011-04-08 Richard Guenther <rguenther@suse.de>
5060 * gimple.c (gimple_set_modified): Do not queue calls to
5061 MODIFIED_NORETURN_CALLS here ...
5062 * tree-ssa-operands.c (update_stmt_operands): ... but here.
5064 2011-04-08 Richard Guenther <rguenther@suse.de>
5067 * toplev.c (lang_dependent_init): Do not open asm_out_file
5068 in WPA mode, nor perform debug machinery initialization.
5069 (finalize): Do not unlink asm_out_file in WPA mode.
5071 2011-04-08 Richard Guenther <rguenther@suse.de>
5073 * gimple.h (gimple_call_fntype): New function.
5074 (gimple_call_return_type): Use it.
5075 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5076 * gimple-low.c (gimple_check_call_args): Likewise.
5077 * gimple.c (gimple_call_flags): Likewise.
5078 (gimple_call_arg_flags): Likewise.
5079 (gimple_call_return_flags): Likewise.
5080 * tree-cfg.c (verify_gimple_call): Likewise.
5081 (do_warn_unused_result): Likewise.
5082 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5083 * value-prof.c (gimple_ic_transform): Fix fndecl check.
5085 2011-04-08 Dmitry Melnik <dm@ispras.ru>
5087 PR rtl-optimization/48235
5088 * sel-sched.c (code_motion_process_successors): Recompute the last
5089 insn in basic block if control flow changed.
5090 (code_motion_path_driver): Ditto. Recompute the first insn as well.
5091 Update condition for ilist_remove.
5093 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5095 PR rtl-optimization/48302
5096 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5097 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
5098 it to record added preheader blocks.
5099 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
5100 on to sel_add_loop_preheaders.
5101 (sel_region_init): Move call to setup_current_loop_nest after
5104 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5107 * cfgloop.h (loop_has_exit_edges): New helper.
5108 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5110 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5111 that have no exit edges.
5113 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5115 PR rtl-optimization/48442
5116 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
5117 all callers. Adjust assert.
5119 2011-04-08 Jakub Jelinek <jakub@redhat.com>
5121 PR tree-optimization/48377
5122 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5123 is_packed to true even for types with smaller TYPE_ALIGN than
5126 2011-04-08 Richard Guenther <rguenther@suse.de>
5129 * doc/tm.texi: Re-generate.
5131 2011-04-08 Wei Guozhi <carrot@google.com>
5134 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5135 * config/arm/arm.c (arm_attr_length_push_multi): New function.
5136 * config/arm/arm.md (*push_multi): Change the length computation to
5139 2011-04-08 Anatoly Sokolov <aesok@post.ru>
5141 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5142 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5143 * doc/tm.texi: Regenerate.
5144 * system.h (ASM_OUTPUT_BSS): Poison.
5145 * varasm.c (asm_output_bss): Remove function.
5146 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5148 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5149 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5150 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5151 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5153 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5155 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5157 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5159 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5161 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5164 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5166 * config/m68k/m68k.c (m68k_handle_option): Don't handle
5167 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5168 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5170 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5171 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5172 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5173 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5174 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5175 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5176 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5177 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5178 options. Don't map other m68k options manually. Don't handle
5179 old-style options as canonical.
5180 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5181 * doc/install.texi (m68k-*-*): Document binutils version requirement.
5183 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
5185 * basic-block.h (force_nonfallthru): Move to...
5186 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5187 (force_nonfallthru): ...here.
5188 * cfghooks.c (force_nonfallthru): New function.
5189 * cfgrtl.c (force_nonfallthru): Rename into...
5190 (rtl_force_nonfallthru): ...this.
5191 (commit_one_edge_insertion): Do not set AUX field.
5192 (commit_edge_insertions): Do not discover new basic blocks.
5193 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5194 (cfg_layout_rtl_cfg_hooks): Likewise.
5195 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5196 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
5197 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5199 2011-04-07 Anatoly Sokolov <aesok@post.ru>
5201 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5204 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
5206 * config/i386/sse.md: Update copyright year.
5207 (avxcvtvecmode): Remove.
5208 (sse_movhlps): Merge with *avx_movhlps.
5209 (sse_movlhps): Merge with *avx_movlhps.
5210 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5211 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5212 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5213 (sse_loadhps): Merge with *avx_loadhps.
5214 (sse_storelps): Merge with *avx_storelps.
5215 (sse_loadlps): Merge with *avx_loadlps.
5216 (sse_movss): Merge with *avx_movss.
5217 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5218 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5219 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5220 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5221 (vec_set<mode>_0): Ditto.
5222 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5223 (sse4_1_insertps): Merge with *avx_insertps.
5224 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5225 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5226 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5227 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5228 (sse2_storehpd): Merge with *avx_storehpd.
5229 (sse2_loadhpd): Merge with *avx_loadhpd.
5230 (sse2_loadlpd): Merge with *avx_loadlpd.
5231 (sse2_movsd): Merge with *avx_movsd.
5232 (*vec_concatv2df): Merge with *vec_concatv2df.
5234 2011-04-07 Jakub Jelinek <jakub@redhat.com>
5237 * combine.c (combine_instructions): Add last_combined_insn,
5238 update it if insn is after it, pass it to all try_combine calls.
5239 (try_combine): Add last_combined_insn parameter, pass it instead of
5240 i3 to propagate_for_debug.
5242 2011-04-07 Nick Clifton <nickc@redhat.com>
5244 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5245 to handle MDR <-> data register transfers.
5246 (movhi_internal): Likewise.
5248 2011-04-07 Alan Modra <amodra@gmail.com>
5250 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5251 previous stack info.
5253 2011-04-07 Tom de Vries <tom@codesourcery.com>
5256 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
5257 flow_find_cross_jump. Swap variables to implement backward replacement.
5258 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5260 2011-04-07 Tom de Vries <tom@codesourcery.com>
5263 * cfgcleanup.c (walk_to_nondebug_insn): New function.
5264 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
5266 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5267 src1 or src2. Redirect edges to the last basic block. Update
5268 frequency and count on multiple basic blocks in case of fallthru.
5270 2011-04-07 Tom de Vries <tom@codesourcery.com>
5273 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5275 (old_insns_match_p): Change return type. Replace return false/true
5276 with return dir_none/dir_both. Use can_replace_by.
5277 (flow_find_cross_jump): Add dir_p parameter. Init replacement
5278 direction from dir_p. Register replacement direction in dir, last_dir
5279 and afterlast_dir. Handle new return type of old_insns_match_p using
5280 merge_dir. Return replacement direction in dir_p.
5281 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5282 return type of old_insns_match_p.
5283 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5284 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5285 flow_find_cross_jump.
5286 * basic-block.h (enum replace_direction): New type.
5287 (flow_find_cross_jump): Add parameter to declaration.
5289 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5291 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5292 (AVXMODEDCVTPS2DQ): Ditto.
5293 (VEC_FLOAT_MODE): Ditto.
5294 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
5295 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5296 (<any_logic:code><mode>3): Use VF mode iterator.
5297 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5298 Use VF mode iterator.
5299 (copysign<mode>3): Use VF mode iterator.
5300 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
5301 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5302 (*<any_logic:code><MODEF:mode>3): Merge with
5303 *avx_<any_logic:code><MODEF:mode>3.
5304 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5305 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5306 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5307 (avx_cvtdq2ps<avxmodesuffix>): Remove.
5308 (sse2_cvtdq2ps): Use %v modifier.
5309 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5310 (avx_cvtps2dq<avxmodesuffix>): Remove.
5311 (sse2_cvtps2dq): Use %v modifier.
5312 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5313 (avx_cvttps2dq<avxmodesuffix>): Remove.
5314 (sse2_cvttps2dq): Use %v modifier.
5315 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5316 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5317 (sse2_cvtsd2siq): Fix insn template.
5318 (sse2_cvtsd2siq_2): Ditto.
5319 (sse2_cvttsd2siq): Ditto.
5320 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5321 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5323 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5325 * gcov-io.c: Use GCC Runtime Library Exception.
5327 2011-04-06 Jakub Jelinek <jakub@redhat.com>
5330 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5331 as base_reg whatever register reg has been eliminated to, instead
5332 of hardcoding STACK_POINTER_REGNUM.
5334 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5336 * doc/tm.texi.in: Document C target hooks as separate from general
5338 * doc/tm.texi: Regenerate.
5339 * genhooks.c (struct hook_desc): Add docname field.
5340 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
5342 (hook_array): Include c-target.def.
5343 (emit_documentation): Use docname field in output.
5344 (emit_init_macros): Take docname argument. Only emit definitions
5345 for hooks matching docname.
5346 (main): Expect additional arguments in all cases. Pass argument
5347 to emit_init_macros.
5348 * target.def: Move initial macro definitions and comments to
5349 target-hooks-macros.h.
5350 (gcc_targetcm): Move to c-family/c-target.def.
5351 * target.h (targetcm): Move declaration to c-family/c-target.h.
5352 * targhooks.c (default_handle_c_option): Move to
5354 * targhooks.h (default_handle_c_option): Move declaration to
5355 c-family/c-common.h.
5356 * target-hooks-macros.h: New file.
5357 * config.gcc (target_has_targetcm): Define and use to add to
5358 c_target_objs and cxx_target_objs.
5359 * config/default-c.c: New file.
5360 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5361 of target.h and target-def.h.
5362 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5363 (darwin_objc_construct_string, darwin_cfstring_ref_p,
5364 darwin_check_cfstring_format_arg): Make static.
5365 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5366 TARGET_STRING_OBJECT_REF_TYPE_P,
5367 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5368 * config/darwin-protos.h (darwin_objc_construct_string,
5369 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5371 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5372 TARGET_STRING_OBJECT_REF_TYPE_P,
5373 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5374 * config/t-darwin (darwin-c.o): Update dependencies.
5375 * system.h (TARGET_HAS_TARGETCM): Poison.
5376 * Makefile.in (TARGET_H): Update.
5377 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5378 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5379 (default-c.o): New target.
5380 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5381 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5382 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
5384 (build/genhooks.o): Update dependencies.
5386 2011-04-06 Richard Guenther <rguenther@suse.de>
5388 * ipa-inline.c (enum inlining_mode): Remove.
5389 (cgraph_flatten): Use some other token.
5390 (cgraph_edge_early_inlinable_p): New function, split out from ...
5391 (cgraph_perform_always_inlining): New function, split out from ...
5392 (cgraph_decide_inlining_incrementally): ... here.
5393 (cgraph_mark_inline_edge): Adjust.
5394 (cgraph_early_inlining): Re-structure.
5395 (pass_early_inline): Require SSA form.
5397 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
5398 Julian Brown <julian@codesourcery.com>
5399 Mark Shinwell <shinwell@codesourcery.com>
5401 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5402 LO_REGS only for Thumb-1.
5403 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5404 be used in short instructions when optimising for size on Thumb-2.
5406 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5408 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5409 associated with user returns to be preserved.
5411 2011-04-06 Tristan Gingold <gingold@adacore.com>
5413 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5414 symbol_queue_size, DBXOUT_DECR_NESTING,
5415 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5416 if XCOFF_DEBUGGING_INFO.
5418 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5420 * config/i386/i386.md (attribute isa): New.
5421 (attribute enabled): New.
5422 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5423 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5424 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5425 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5426 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5427 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5428 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5429 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5431 * config/i386/sse.md (VF): New mode iterator.
5435 (SSEMODEF4): Remove.
5436 (attribute sse): Handle V8SF and V4DF modes.
5437 (<absneg:code><mode>2): Use VF mode iterator.
5438 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
5440 (<plusminus_insn><mode>3): Use VF mode iterator.
5441 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5442 Use VF mode iterator.
5443 (<sse>_vm<plusminus_insn><mode>3): Merge with
5444 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
5445 (mul<mode>3): Use VF mode iterator.
5446 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
5447 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
5449 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5450 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5451 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
5452 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
5454 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5455 Use VF1 mode iterator.
5456 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5457 (sqrt<VF2:mode>2): New expander.
5458 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5459 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5460 and sqrtv2df2. Use VF mode iterator.
5461 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
5463 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5464 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5465 Use VF1 mode iterator.
5466 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5467 (<smaxmin:code><mode>3): Use VF mode iterator.
5468 (*<smaxmin:code><mode>3_finite): Merge with
5469 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
5470 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5471 (<sse>_vm<smaxmin:code><mode>2): Merge with
5472 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
5473 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
5475 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
5477 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5478 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5479 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5480 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5481 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
5483 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5484 Use VF_128 mode iterator.
5485 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
5487 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
5488 VF_128 mode iterator.
5489 (vcond<mode>): Use VF mode iterator.
5490 * config/i386/predicates.md (sse_comparison_operator): Merge with
5491 avx_comparison_float_operator. Do not declare as special_predicate.
5492 * config/i386/i386.c (struct builtin_description): Update for renamed
5494 (ix86_expand_args_builtin): Ditto.
5495 (ix86_expand_sse_compare_mask): Ditto.
5497 2011-04-06 Richard Guenther <rguenther@suse.de>
5499 * tree-inline.c (estimate_num_insns): For calls simply account
5500 for all passed arguments and a used return value.
5502 2011-04-06 Richard Guenther <rguenther@suse.de>
5504 PR tree-optimization/47663
5505 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5506 call_stmt_time fields.
5507 (cgraph_edge_inlinable_p): Declare.
5508 (cgraph_edge_recursive_p): New inline function.
5509 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5510 (cgraph_clone_edge): Copy it.
5511 * ipa-inline.c (cgraph_estimate_edge_time): New function.
5512 Account for call stmt time.
5513 (cgraph_estimate_time_after_inlining): Take edge argument.
5514 (cgraph_estimate_edge_growth): Account call stmt size.
5515 (cgraph_estimate_size_after_inlining): Take edge argument.
5516 (cgraph_mark_inline_edge): Adjust.
5517 (cgraph_check_inline_limits): Likewise.
5518 (cgraph_recursive_inlining_p): Remove.
5519 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5520 (cgraph_decide_recursive_inlining): Take edge argument and
5522 (cgraph_decide_inlining_of_small_functions): Do not avoid
5523 diags for recursive inlining here.
5524 (cgraph_flatten): Adjust.
5525 (cgraph_decide_inlining_incrementally): Likewise.
5526 (estimate_function_body_sizes): Remove call cost handling.
5527 (compute_inline_parameters): Initialize caller edge call costs.
5528 (cgraph_estimate_edge_growth): New function.
5529 (cgraph_estimate_growth): Use it.
5530 (cgraph_edge_badness): Likewise.
5531 (cgraph_check_inline_limits): Take an edge argument.
5532 (cgraph_decide_inlining_of_small_functions): Adjust.
5533 (cgraph_decide_inlining): Likewise.
5534 * tree-inline.c (estimate_num_insns): Only account for call
5535 return value if it is used.
5536 (expand_call_inline): Avoid diagnostics on recursive inline
5538 * lto-cgraph.c (lto_output_edge): Output edge call costs.
5539 (input_edge): Input edge call costs.
5541 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5543 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5545 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5547 * doc/invoke.texi (Spec Files): Fix typo.
5549 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5551 * profile.c (branch_prob): Move declaration of local variable. Remove
5552 obsolete ??? comment. Expand the location explicitly instead of using
5553 the LOCATION_FILE and LOCATION_LINE macros.
5555 2011-04-06 Wei Guozhi <carrot@google.com>
5558 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5559 (arm_cond_branch): Likewise.
5560 (arm_cond_branch_reversed): Likewise.
5561 (arm_jump): Likewise.
5562 (push_multi): Likewise.
5563 * config/arm/constraints.md (Py): New constraint.
5565 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5568 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5570 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5571 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5572 #ifdef DBX_DEBUGGING_INFO.
5574 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
5577 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5578 if old and new states differ.
5580 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5582 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5583 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5584 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5585 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5586 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5588 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5589 ColdFire options to -mcpu= options.
5591 2011-04-05 Jeff Law <law@redhat.com>
5593 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5594 check if BB is a successor of LOOP->header and return
5595 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5597 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5599 * cprop.c (struct reg_use): Remove.
5600 (reg_use_table): Make an array of RTX.
5601 (find_used_regs, constprop_register, local_cprop_pass,
5602 bypass_block): Simplify users of reg_use_table.
5603 (cprop_insn): Likewise. Iterate if copy propagation succeeded
5604 on one of the uses found by find_used_regs.
5606 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5609 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5612 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5614 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5616 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5618 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5621 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5623 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5625 * combine.c: Include obstack.h.
5626 (struct insn_link): Define.
5627 (uid_log_links): Adjust type.
5628 (FOR_EACH_LOG_LINK): New macro.
5629 (insn_link_obstack): Declare.
5630 (alloc_insn_link): Define.
5631 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
5632 type of link variables.
5633 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5634 (try_combine, record_promoted_values, distribute_notes): Likewise.
5635 (distribute_links): Likewise. Tweak prototype.
5636 (clear_log_links): Delete.
5637 (adjust_for_new_dest): Call alloc_insn_link.
5638 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5640 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5642 * gcse.c (modify_mem_list): Convert to an array of VECs.
5643 (canon_modify_mem_list, compute_transp): Tweak formatting.
5644 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
5645 (load_killed_in_block_p): Likewise.
5646 (record_last_mem_set_info): Likewise.
5647 (clear_modify_mem_tables): Likewise.
5649 2011-04-05 Tom de Vries <tom@codesourcery.com>
5652 * function.c (emit_use_return_register_into_block): Only define if
5655 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
5657 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5659 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5661 * config/rx/rx-opts.h: New.
5662 * config/rx/rx.c (rx_cpu_type): Remove.
5663 (rx_handle_option): Don't assert that global structures are in
5664 use. Access variables via opts pointer. Defer most handling of
5665 OPT_mint_register_. Use error_at.
5666 (rx_option_override): Handle deferred OPT_mint_register_ here.
5667 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5668 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5669 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5670 (rx_cpu_types): New Enum and EnumValue entries.
5671 (mint-register=): Use Defer and use Var accordingly.
5673 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5675 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5676 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5677 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5679 (debug_free_queue, debug_nesting, symbol_queue_index):
5681 * dbxout.c: ...to here. Make static.
5683 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5685 * gcse.c (modify_pair): Define. Define a VEC of it.
5686 (canon_modify_mem_list): Convert to an array of VECs.
5687 (free_insn_expr_list_list): Delete.
5688 (clear_modify_mem_tables): Call VEC_free instead.
5689 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5690 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5691 (canon_list_insert, compute_transp): Likewise.
5693 2011-04-05 Tom de Vries <tom@codesourcery.com>
5696 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5699 2011-04-05 Tom de Vries <tom@codesourcery.com>
5702 * function.c (emit_use_return_register_into_block): New function.
5703 (thread_prologue_and_epilogue_insns): Use
5704 emit_use_return_register_into_block.
5706 2011-04-05 Tom de Vries <tom@codesourcery.com>
5709 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5712 2011-04-05 Tom de Vries <tom@codesourcery.com>
5714 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5716 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
5718 * config/arm/arm.md (define_constants for unspec): Replace with
5720 (define_constants for unspecv): Replace with define_c_enum.
5721 * config/arm/neon.md (define_constants for unspec): Replace with
5724 2011-04-04 Richard Henderson <rth@redhat.com>
5727 * dwarf2out.c (output_line_info): Always emit line info from
5728 at least one section.
5729 (dwarf2out_init): Create text_section_line_info here ...
5730 (set_cur_line_info_table): ... not here.
5732 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
5735 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5738 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5740 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
5742 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5743 (expr_equiv_p): Remove.
5744 (insert_set_in_table): Look at <dest, src> pair instead of expr.
5745 (hash_scan_set): Update call to insert_set_in_table.
5746 (dump_hash_table): Dump <dest, src> pair.
5747 (lookup_set): Simplify. Lookup <dest, src> pair.
5748 (compute_transp): Remove, fold heavily simplified code into...
5749 (compute_local_properties): ...here. Expect COMP and TRANSP
5751 (find_avail_set): Take set directly from struct expr.
5752 (find_bypass-set): Likewise.
5753 (bypass_block): Likewise.
5754 (cprop_insn): Likewise. Remove redundant INSN_P test.
5756 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5757 checks on form of COND from find_implicit_sets to here.
5758 (find_implicit_sets): Cleanup control flow. Split critical edges
5759 if it exposes implicit sets. Allocate/resize implicit_sets as
5761 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5762 changed something. Run df_analyze after find_implicit_sets if any
5763 edges were split. Do not allocate implicit_sets here.
5765 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5766 (gcse_obstack): Renamed to cprop_obstack.
5767 (GNEW, GNEWVEC, GNEWVAR): Remove.
5769 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5770 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5771 (gcse_alloc): Likewise, and rename to cprop_alloc.
5772 (alloc_gcse_men, free_gcse_mem): Remove.
5773 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5774 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5775 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5777 * cprop.c (oprs_not_set_p): Remove.
5778 (mark_set, mark_clobber): Remove.
5779 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5780 (reg_not_set_p): New function.
5781 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5782 (cprop_insn): Likewise.
5783 (cprop_jump): Use FOR_EACH_EDGE.
5785 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
5788 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5789 (rank_for_schedule): Use scheduled_insns vector instead of
5790 last_scheduled_insn.
5791 (ok_for_early_queue_removal): Likewise.
5792 (queue_to_ready): Search forward in nonscheduled_insns_begin if
5794 (choose_ready): Likewise.
5795 (commit_schedule): Use VEC_iterate.
5796 (schedule_block): Initialize nonscheduled_insns_begin. If we have
5797 a dbg_cnt, use it and ensure the first insn is in the ready list.
5798 (haifa_sched_init): Allocate scheduled_insns.
5799 (sched_extend_ready_list): Don't allocate it; reserve space.
5800 (haifa_sched_finish): Free it.
5802 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5804 * optc-gen.awk: Always remove type from Variable entry before
5805 recording in var_seen.
5807 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
5809 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5810 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5811 call to tidy_fallthru_edges.
5813 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5815 * doc/options.texi (ToLower): Document.
5816 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5817 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5818 * opts.h (cl_option): Add cl_tolower field.
5819 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5820 arguments with lowercase strings.
5821 * config/rx/rx.opt (mcpu=): Add ToLower.
5822 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5825 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5827 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5829 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5831 * config/vax/vax.c: Include reload.h.
5833 2011-04-04 Anatoly Sokolov <aesok@post.ru>
5835 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5836 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5837 (sparc_preferred_reload_class): New function.
5839 2011-04-04 Jakub Jelinek <jakub@redhat.com>
5842 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5843 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5845 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5847 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5848 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5850 2011-04-03 Anatoly Sokolov <aesok@post.ru>
5852 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5853 (ASM_OUTPUT_ALIGNED_BSS): Define.
5855 2011-04-03 Michael Matz <matz@suse.de>
5857 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5858 and next_slot members.
5859 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5860 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5861 (lto_streamer_cache_append): Declare.
5862 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5863 unsigned index, remove offset parameter, ensure that we append
5864 or update existing entries.
5865 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5866 parameter, update next_slot for append.
5867 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5869 (lto_streamer_cache_insert_at): Likewise.
5870 (lto_streamer_cache_append): New function.
5871 (lto_streamer_cache_lookup): Use unsigned index.
5872 (lto_streamer_cache_get): Likewise.
5873 (lto_record_common_node): Don't test tree_node_can_be_shared.
5874 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5875 (lto_streamer_cache_delete): Don't free offsets member.
5876 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5877 (lto_output_string_with_length): Use lto_output_data_stream.
5878 (lto_output_tree_header): Remove ix parameter, don't write it.
5879 (lto_output_builtin_tree): Likewise.
5880 (lto_write_tree): Adjust callers to above, don't track and write
5881 offset, write unsigned index.
5882 (output_unreferenced_globals): Don't emit all global vars.
5883 (write_global_references): Use unsigned indices.
5884 (lto_output_decl_state_refs): Likewise.
5885 (write_symbol): Likewise.
5886 * lto-streamer-in.c (lto_input_chain): Move earlier.
5887 (input_function): Use unsigned index.
5888 (input_alias_pairs): Don't read and then ignore all global vars.
5889 (lto_materialize_tree): Remove ix_p parameter, don't read index,
5890 don't pass it back, use lto_streamer_cache_append.
5891 (lto_register_var_decl_in_symtab): Use unsigned index.
5892 (lto_register_function_decl_in_symtab): Likewise.
5893 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5895 (lto_get_builtin_tree): Don't read index, use
5896 lto_streamer_cache_append.
5897 (lto_read_tree): Adjust call to lto_materialize_tree.
5899 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5900 don't use function calls in arguments to MIN.
5902 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5905 * gimple.c (gimple_type_leader_entry): Mark deletable.
5907 2011-04-03 Alan Modra <amodra@gmail.com>
5909 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5911 2011-04-03 Michael Matz <matz@suse.de>
5913 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5915 * tree.h (tree_decl_non_common.vindex): Adjust comment.
5917 2011-04-03 Michael Matz <matz@suse.de>
5919 * cgraphbuild.c (record_reference): Canonicalize constructor values.
5920 * gimple-fold.c (canonicalize_constructor_val): Accept being called
5921 without function context.
5922 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5923 current_function_decl and cfun.
5925 2011-04-03 Michael Matz <matz@suse.de>
5927 * tree.c (decl_init_priority_insert): Don't create entry for
5929 (decl_fini_priority_insert): Ditto.
5930 (fields_compatible_p, find_compatible_field): Remove.
5931 * tree.h (fields_compatible_p, find_compatible_field): Remove.
5932 * gimple.c (gimple_compare_field_offset): Adjust block comment.
5934 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
5936 * combine.c (try_combine): Remove useless local variable.
5938 2011-04-03 Richard Guenther <rguenther@suse.de>
5939 Ira Rosen <ira.rosen@linaro.org>
5941 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5942 non-variable offsets and compare the remaining bases of the two
5943 accesses instead of looking for exact same data-ref.
5945 2011-04-02 Kai Tietz <ktietz@redhat.com>
5948 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5950 * i386.c (ix86_is_msabi_thiscall): New helper function.
5951 (ix86_is_type_thiscall): New helper function.
5952 (ix86_comp_type_attributes): Handle thiscall for method-functions
5954 (init_cumulative_args): Likewise.
5955 (find_drap_reg): Likewise.
5956 (ix86_static_chain): Likewise.
5957 (x86_this_parameter): Likewise.
5958 (x86_output_mi_thunk): Likewise.
5960 2011-04-01 Olivier Hainque <hainque@adacore.com>
5961 Nicolas Setton <setton@adacore.com>
5962 Eric Botcazou <ebotcazou@adacore.com>
5964 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5965 (add_gnat_descriptive_type_attribute): New function.
5966 (gen_array_type_die): Call it.
5967 (gen_enumeration_type_die): Likewise.
5968 (gen_struct_or_union_type_die): Likewise.
5969 (modified_type_die): Likewise.
5970 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5971 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5972 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5974 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5977 * dwarf2out.c (resolve_addr): Don't call force_decl_die
5978 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5981 2011-03-17 Richard Guenther <rguenther@suse.de>
5984 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5985 origin for decls in other ltrans units.
5986 (input_varpool_node): Likewise.
5988 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5991 * expr.c (expand_assignment): Handle all possibilities
5992 if TO_RTX is CONCAT.
5993 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5994 (store_split_bit_field): If SUBREG_REG (op0) or
5995 op0 itself has smaller mode than word, return it
5996 for offset 0 and const0_rtx for out-of-bounds stores.
5997 If word is const0_rtx, skip it.
5999 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
6001 * config/h8300/h8300.c (print_operand_address): Rename to...
6002 (h8300_print_operand_address): ...this. Make static. Adjust comments.
6003 Call h8300_print_operand and h8300_print_operand_address instead of
6004 print_operand and print_operand_address. Declare.
6005 (print_operand): Renake to...
6006 (h8300_print_operand): ...this. Make static. Adjust comments.
6007 Call h8300_print_operand instead of print_operand. Declare.
6008 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6009 (h8300_register_move_cost): Likewise.
6010 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6011 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6012 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6013 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6014 * config/h8300/h8300-protos.h (print_operand): Delete.
6015 (print_operand_address): Delete.
6017 2011-04-01 Richard Henderson <rth@redhat.com>
6020 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6021 in strict mode before dwarf4. Re-order tests to early out
6022 before switching sections.
6024 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
6026 * config/h8300/constraints.md: New file.
6027 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
6028 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6029 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6030 * config/h8300/predicates.md (bit_operand): Likewise.
6031 (incdec_operand): Use satisfies_constraint_M and
6032 satisfies_constraint_O. Don't use C code block.
6033 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6034 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6035 (compute_mov_length): Use satisfies_constraint_G.
6036 (fix_bit_operand): Use satisfies_constraint_U.
6037 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6038 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6039 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6040 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6041 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6042 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6043 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6044 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6045 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6046 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6047 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6048 (EXTRA_MEMORY_CONSTRAINT): Delete.
6050 2011-04-01 Andrew Pinski <pinskia@gmail.com>
6051 Michael Meissner <meissner@linux.vnet.ibm.com>
6054 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6055 operands, as per the specifications.
6057 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6058 (vec_extract_evenv4sf): Ditto.
6059 (vec_extract_evenv8hi): Ditto.
6060 (vec_extract_evenv16qi): Ditto.
6061 (vec_extract_oddv4si): Ditto.
6063 2011-03-31 Mark Wielaard <mjw@redhat.com>
6065 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6066 high_pc attribute if the CU has no associated code. Only output
6067 DW_AT_entry_pc for CU if not generating strict dwarf and
6070 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
6072 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6073 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6075 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6076 * final.c (final_start_function): Call the new function rather
6077 than using a NULL argument for dwarf2out_frame_debug.
6079 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6080 that contains the prologue.
6082 * haifa-sched.c (queue_insn): New arg REASON. All callers
6083 changed. Print it in debugging output.
6085 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6087 * sched-ebb.c (begin_schedule_ready): Remove second argument.
6088 Split most of the code into...
6089 (begin_move_insn): ... here. New function.
6090 (ebb_sched_info): Add a pointer to it.
6091 * haifa-sched.c (scheduled_insns): New static variable.
6092 (sched_extend_ready_list): Allocate it.
6093 (schedule_block): Use it to record the order of scheduled insns.
6094 Perform RTL changes to move insns only after all scheduling
6095 decisions have been made.
6096 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6097 begin_move_insn field.
6098 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6099 * sched-int.h (struct haifa_sched_info): Remove second argument
6100 from begin_schedule_ready hook. Add new member begin_move_insn.
6101 * sched-rgn.c (begin_schedule_ready): Remove second argument.
6102 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6104 * haifa-sched.c (prune_ready_list): New function, broken out of
6106 (schedule_block): Use it.
6108 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6110 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6112 2011-04-01 Kai Tietz <ktietz@redhat.com>
6114 * config.gcc (*-*-mingw*): Allow as option the
6115 posix threading model.
6116 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
6117 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6119 (CPP_SPEC): Add pthread/no-pthread handling.
6120 (LIB_SPEC): Likewise.
6121 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6122 (LIB_SPEC): Likewise.
6123 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6124 flag to pass -pthread option for shared libgcc build.
6125 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6126 for shared libgcc build.
6127 * config/i386/t-mingw-pthread: New file.
6128 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6129 New define to enable use of library pthread by default.
6130 * config/i386/mingw.opt (pthread): New driver option.
6131 (no-pthread): New driver option.
6132 * config/i386/cygming.opt: Make sure trailing empty line is retained.
6133 * config/i386/mingw-w64.opt: Likewise.
6135 2011-04-01 Gary Funck <gary@intrepid.com>
6137 * c-decl.c (grokdeclarator): Fix formatting.
6139 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6141 * expr.c (emit_block_move_via_movmem): Use n_generator_args
6142 instead of n_operands.
6143 (set_storage_via_setmem): Likewise.
6144 * optabs.c (maybe_gen_insn): Likewise.
6145 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6146 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6147 (mips_expand_builtin_direct): Likewise.
6148 * config/spu/spu.c (expand_builtin_args): Likewise.
6150 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6152 * recog.h (insn_data_d): Add n_generator_args.
6153 * genoutput.c (data): Likewise.
6154 (output_insn_data): Print it.
6155 (max_opno, num_dups): Delete.
6156 (scan_operands): Just fill in "d->operand[...]".
6157 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6159 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6161 * gensupport.h (pattern_stats): New structure.
6162 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6163 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6164 (max_operand_1, max_operand_vec): Delete.
6165 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6167 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
6169 * emit-rtl.c (emit_pattern_after_setloc): New function.
6170 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6171 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6172 (emit_pattern_after): New function.
6173 (emit_insn_after, emit_jump_insn_after): Call it.
6174 (emit_call_insn_after, emit_debug_insn_after): Likewise.
6175 (emit_pattern_before_setloc): New function.
6176 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6177 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6179 (emit_pattern_before): New function.
6180 (emit_insn_before, emit_jump_insn_before): Call it.
6181 (emit_call_insn_before, emit_debug_insn_before): Likewise.
6183 2011-03-31 Richard Henderson <rth@redhat.com>
6185 * dwarf2out.c (dw_separate_line_info_ref): Remove.
6186 (dw_separate_line_info_entry): Remove.
6187 (enum dw_line_info_opcode): New.
6188 (dw_line_info_entry): Use it.
6189 (dw_line_info_table, dw_line_info_table_p): New.
6190 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6191 (line_info_table, line_info_label_num): Remove.
6192 (line_info_table_in_use): Remove.
6193 (separate_line_info_table): Remove.
6194 (separate_line_info_table_allocated): Remove.
6195 (separate_line_info_table_in_use): Remove.
6196 (LINE_INFO_TABLE_INCREMENT): Remove.
6197 (line_info_label_num): New.
6198 (cur_line_info_table): New.
6199 (text_section_line_info, cold_text_section_line_info): New.
6200 (separate_line_info): New.
6201 (SEPARATE_LINE_CODE_LABEL): Remove.
6202 (print_dwarf_line_table): Remove.
6203 (debug_dwarf): Don't dump it.
6204 (output_one_line_info_table): New.
6205 (output_line_info): Use it.
6206 (new_line_info_table): New.
6207 (set_cur_line_info_table): New.
6208 (dwarf2out_switch_text_section): Use it.
6209 (dwarf2out_begin_function): Likewise.
6210 (push_dw_line_info_entry): New.
6211 (dwarf2out_source_line): Rewrite for new line info tables.
6212 (dwarf2out_init): Remove dead initailizations.
6214 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6216 * opts.h (cl_option): Add comments to fields. Add bit-fields for
6218 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6219 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6220 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6221 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6222 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6223 * opt-functions.awk (flag_init, switch_bit_fields): New.
6224 (switch_flags): Don't handle flags moved to bit-fields. Don't
6225 generate CL_MISSING_OK or CL_SAVE.
6226 * optc-gen.awk: Update to generate bit-field output as well as
6228 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6229 bit-field instead of CL_REJECT_DRIVER flag.
6230 * opts-common.c (generate_canonical_option,
6231 decode_cmdline_option): Use bit-fields instead of CL_* flags.
6232 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6233 instead of CL_REJECT_NEGATIVE flag.
6234 * toplev.c (print_switch_values): Use cl_report bit-field instead
6237 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6239 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6240 a zero minimum index only if it is redundant.
6242 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
6244 PR rtl-optimization/48381
6245 * ira-color.c (assign_hard_reg): Use hard reg set intersection
6246 instead of ira_class_hard_reg_index for calculating conflicting
6249 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
6251 * cprop.c: Clean up hash table building.
6252 (reg_avail_info): Remove.
6253 (oprs_available_p): Remove.
6254 (record_last_reg_set_info): Remove.
6255 (record_last_set_info): Remove.
6256 (reg_available_p): New function.
6257 (gcse_constant_p): Do not treat unfolded conditions as constants.
6258 (make_set_regs_unavailable): New function.
6259 (hash_scan_set): Simplify with new reg_available_p.
6260 (compute_hash_table_work): Traverse insns stream only once.
6261 Do not compute reg_avail_info. Traverse insns in reverse order.
6262 Record implicit sets after recording explicit sets from the block.
6264 2011-03-31 Michael Matz <matz@suse.de>
6266 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6268 2011-03-31 Anatoly Sokolov <aesok@post.ru>
6270 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6271 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6272 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6273 (h8300_mode_dependent_address_p): New function.
6274 (h8300_get_index): Make static.
6276 2011-03-31 Jeff Law <law@redhat.com>
6278 * reload1.c (elimination_effects): Fix typo in recent change.
6280 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6281 typo potentially leading to null pointer dereference.
6283 * caller-save.c (new_saved_hard_reg): Eliminate return value.
6284 (setup_save_areas): Corresponding changes to avoid useless
6287 * jump.c (reversed_comparison_code_parts): Avoid successive return
6288 statements when REVERSE_CONDITION is defined.
6290 * expr.c (expand_assignment): Avoid useless assignments.
6291 (expand_expr_real_1): Likewise.
6292 (expand_expr_real_2): Avoid useless statements.
6294 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6296 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6298 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6301 * stmt.c (expand_expr_stmt): Avoid useless assignment.
6303 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6306 * doc/tm.texi.in (TARGET_VERSION): Remove.
6307 * doc/tm.texi: Regenerate.
6308 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6309 * collect2.c (main): Don't use TARGET_VERSION.
6310 * mips-tdump.c (main): Don't use TARGET_VERSION.
6311 * mips-tfile.c (main): Don't use TARGET_VERSION.
6312 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6313 * config/rs6000/vxworksae.h: Remove.
6314 * config/alpha/alpha.h (TARGET_VERSION): Remove.
6315 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6316 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6317 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6318 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6319 * config/arm/arm.h (TARGET_VERSION): Remove.
6320 * config/arm/coff.h (TARGET_VERSION): Remove.
6321 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6322 * config/arm/elf.h (TARGET_VERSION): Remove.
6323 * config/arm/freebsd.h (TARGET_VERSION): Remove.
6324 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6325 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6326 * config/arm/pe.h (TARGET_VERSION): Remove.
6327 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6328 * config/arm/semi.h (TARGET_VERSION): Remove.
6329 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6330 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6331 * config/arm/vxworks.h (TARGET_VERSION): Remove.
6332 * config/avr/avr.h (TARGET_VERSION): Remove.
6333 * config/bfin/bfin.h (TARGET_VERSION): Remove.
6334 * config/fr30/fr30.h (TARGET_VERSION): Remove.
6335 * config/frv/frv.h (TARGET_VERSION): Remove.
6336 * config/h8300/h8300.h (TARGET_VERSION): Remove.
6337 * config/i386/cygwin.h (TARGET_VERSION): Remove.
6338 * config/i386/darwin.h (TARGET_VERSION): Remove.
6339 * config/i386/darwin64.h (TARGET_VERSION): Remove.
6340 * config/i386/djgpp.h (TARGET_VERSION): Remove.
6341 * config/i386/freebsd.h (TARGET_VERSION): Remove.
6342 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6343 * config/i386/gnu.h (TARGET_VERSION): Remove.
6344 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6345 * config/i386/i386elf.h (TARGET_VERSION): Remove.
6346 * config/i386/linux.h (TARGET_VERSION): Remove.
6347 * config/i386/linux64.h (TARGET_VERSION): Remove.
6348 * config/i386/lynx.h (TARGET_VERSION): Remove.
6349 * config/i386/mingw32.h (TARGET_VERSION): Remove.
6350 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6351 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6352 * config/i386/netware.h (TARGET_VERSION): Remove.
6353 * config/i386/nto.h (TARGET_VERSION): Remove.
6354 * config/i386/openbsd.h (TARGET_VERSION): Remove.
6355 * config/i386/vxworks.h (TARGET_VERSION): Remove.
6356 * config/ia64/elf.h (TARGET_VERSION): Remove.
6357 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6358 * config/ia64/hpux.h (TARGET_VERSION): Remove.
6359 * config/ia64/linux.h (TARGET_VERSION): Remove.
6360 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6361 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6362 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6363 * config/lm32/lm32.h (TARGET_VERSION): Remove.
6364 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6365 * config/m32c/m32c.h (TARGET_VERSION): Remove.
6366 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6367 * config/m32r/m32r.h (TARGET_VERSION): Remove.
6368 * config/m68k/linux.h (TARGET_VERSION): Remove.
6369 * config/m68k/m68k.h (TARGET_VERSION): Remove.
6370 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6371 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6372 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6373 * config/mep/mep.h (TARGET_VERSION): Remove.
6374 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6375 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6376 * config/mips/iris6.h (MACHINE_TYPE): Remove.
6377 * config/mips/linux.h (TARGET_VERSION): Remove.
6378 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6379 * config/mips/vxworks.h (TARGET_VERSION): Remove.
6380 * config/mmix/mmix.h (TARGET_VERSION): Remove.
6381 * config/mn10300/linux.h (TARGET_VERSION): Remove.
6382 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6383 * config/pa/pa.h (TARGET_VERSION): Remove.
6384 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6385 * config/picochip/picochip.h (TARGET_VERSION): Remove.
6386 * config/rs6000/aix.h (TARGET_VERSION): Remove.
6387 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6388 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6389 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6390 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6391 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6392 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6393 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6394 * config/rs6000/linux.h (TARGET_VERSION): Remove.
6395 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6396 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6397 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6398 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6399 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6400 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6401 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6402 * config/s390/linux.h (TARGET_VERSION): Remove.
6403 * config/s390/s390.h (TARGET_VERSION): Remove.
6404 * config/s390/tpf.h (TARGET_VERSION): Remove.
6405 * config/score/score.h (TARGET_VERSION): Remove.
6406 * config/sh/linux.h (TARGET_VERSION): Remove.
6407 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6408 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6409 * config/sh/sh.h (TARGET_VERSION): Remove.
6410 * config/sh/sh64.h (TARGET_VERSION): Remove.
6411 * config/sh/superh.h (TARGET_VERSION): Remove.
6412 * config/sh/vxworks.h (TARGET_VERSION): Remove.
6413 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6414 * config/sparc/linux.h (TARGET_VERSION): Remove.
6415 * config/sparc/linux64.h (TARGET_VERSION): Remove.
6416 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6417 TARGET_NAME32, TARGET_NAME): Remove.
6418 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6419 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6420 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6421 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6422 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6423 * config/spu/spu.h (TARGET_VERSION): Remove.
6424 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6425 * config/v850/v850.h (TARGET_VERSION): Remove.
6426 * config/vax/linux.h (TARGET_VERSION): Remove.
6427 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6428 * config/xtensa/elf.h (TARGET_VERSION): Remove.
6429 * config/xtensa/linux.h (TARGET_VERSION): Remove.
6431 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6434 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6435 frame-related from frame-unrelated adjustments to the stack pointer.
6437 2011-03-31 Jakub Jelinek <jakub@redhat.com>
6439 * common.opt (fdebug-types-section): Move earlier.
6440 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6442 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
6444 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6447 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
6449 * tree.h (CASE_CHAIN): Define.
6450 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6451 (gimple_redirect_edge_and_branch): Likewise.
6453 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6456 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6459 2011-03-30 Jeff Law <law@redhat.com>
6461 * PR bootstrap/48371
6462 * reload1.c (reload): Fix botch in last change.
6464 * reload.h (struct reload): Fix typo introduced in last change.
6466 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6468 * config/arm/arm.opt (mhard-float, msoft-float): Mark
6469 Undocumented. Remove help text.
6470 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6473 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6475 * doc/options.texi (NegativeAlias): Document.
6476 (Alias): Mention NegativeAlias.
6477 * opt-functions.awk: Handle NegativeAlias.
6478 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6479 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6480 * opts.h (CL_NEGATIVE_ALIAS): Define.
6481 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6482 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6484 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6486 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6487 mno-spe and mno-isel instead of mspe=no and -misel=no.
6489 2011-03-29 Mark Wielaard <mjw@redhat.com>
6491 * common.opt (fdebug-types-section): New flag.
6492 * doc/invoke.texi: Document new -fno-debug-types-section flag.
6493 * dwarf2out.c (use_debug_types): New define.
6494 (struct die_struct): Mark die_id with GTY desc use_debug_types.
6495 (print_die): Guard output of type unit signatures using
6497 (build_abbrev_table): Replace assert of dwarf_version >= 4
6498 with assert on use_debug_types.
6499 (size_of_die): Likewise.
6500 (unmark_dies): Likewise.
6501 (value_format): Decide AT_ref_external form on use_debug_types.
6502 (output_die): Replace dwarf_version version check guard with
6503 use_debug_types where appropriate.
6504 (modified_type_die): Likewise.
6505 (gen_reference_type_die): Likewise.
6506 (dwarf2out_start_source_file): Likewise.
6507 (dwarf2out_end_source_file): Likewise.
6508 (prune_unused_types_walk_attribs): Likewise.
6509 (dwarf2out_finish): Likewise.
6511 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6513 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6515 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6517 PR rtl-optimization/48332
6518 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6519 mode of input operand N and modeN to its actual mode.
6521 2011-03-30 Jeff Law <law@redhat.com>
6523 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6524 define accessor macro.
6525 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6526 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6527 (reg_equiv_init): Likewise.
6528 (reg_equivs_size): New variable.
6529 (reg_equiv_init_size): Remove.
6530 (allocate_initial_values): Move prototype to here from....
6531 * integrate.h (allocate_initial_values): Remove prototype.
6532 * integrate.c: Include reload.h.
6533 (allocate_initial_values): Corresponding changes.
6534 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6535 (fix_reg_equiv_init, no_equiv): Corresponding changes.
6536 (update_equiv_regs): Corresponding changes.
6537 (ira): Corresponding changes.
6538 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6539 (push_secondary_reload): Corresponding changes.
6540 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6541 (make_memloc, find_reloads_address): Corresponding changes.
6542 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6543 (find_reloads_address_1): Corresponding changes.
6544 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6545 (refers_to_regno_for_reload_p): Corresponding changes.
6546 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6547 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6548 * reload1.c: Include ggc.h.
6549 (grow_reg_equivs): New function.
6550 (replace_pseudos_in, reload): Corresponding changes.
6551 (calculate_needs_all_insns, alter_regs): Corresponding changes.
6552 (eliminate_regs_1, elimination_effects): Corresponding changes.
6553 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6554 (delete_output_reload): Likewise.
6555 * caller-save.c (mark_referenced_regs): Corresponding changes.
6556 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6557 * frv/predicates.md (frv_load_operand): Corresponding changes.
6558 * microblaze/microblaze.c (double_memory_operand): Corresponding
6560 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6561 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6562 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6563 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6564 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6566 * pa/pa.c (emit_move_sequence): Corresponding changes.
6567 * vax/vax.c (nonindexed_address_p): Corresponding changes.
6569 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6572 * config/arm/arm.c (coproc_secondary_reload_class): Handle
6573 structure modes. Don't check neon_vector_mem_operand for
6574 vector or structure modes.
6576 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6577 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6580 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6581 operand 1 and reshuffle the operands to match.
6582 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6584 2011-03-30 Christian Schüler <cschueler@gmx.de>
6587 * config/c.opt (F): Added 'Driver' to -F option.
6590 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6592 * config/darwin.opt: Added '-arch' option.
6594 2011-03-30 Nick Clifton <nickc@redhat.com>
6596 * config/rx/rx.md: Add peepholes and patterns to combine
6597 extending loads and simple arithmetic instructions.
6598 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6599 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6600 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6601 modes to use pre-decrement and post-increment addressing.
6602 (rx_is_restricted_memory_address): Add range checking of REG+INT
6604 (rx_print_operand): Add support for %Q. Fix handling of %Q.
6605 (rx_memory_move_cost): Adjust cost of stores.
6606 (rx_adjust_insn_length): New function.
6608 2011-03-30 Jakub Jelinek <jakub@redhat.com>
6611 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6612 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6613 matching arg00/arg01 types.
6615 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
6617 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6618 last_location to UNKNOWN_LOCATION.
6620 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
6623 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6626 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6627 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6630 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6632 (sparc_cpu): Likewise.
6633 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6636 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6640 PR rtl-optimization/48345
6641 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6642 hard regs for given mode from profitable regs when doing secondary
6645 2011-03-29 Jeff Law <law@redhat.com>
6648 * tree-ssa-threadupdate.c (struct redirection_data): Remove
6649 do_not_duplicate field.
6650 (lookup_redirection_data): Corresponding changes.
6651 (create_duplicates): Always create a template block.
6652 (redirect_edges): Remove code which reused the original block
6653 when it was going to become unreachable code.
6654 (thread_block): Don't set do_not_duplicate field.
6656 2011-03-29 Joseph Myers <joseph@codesourcery.com>
6658 * lto-opts.c (register_user_option_p, lto_register_user_option):
6659 Make type argument unsigned.
6660 * lto-streamer.h (lto_register_user_option): Make type argument
6662 * opth-gen.awk: Make CL_* macros unsigned.
6663 * opts-common.c (find_opt): Make lang_mask argument unsigned.
6664 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6665 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6666 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6667 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6668 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6669 (find_opt): Make lang_mask argument unsigned.
6671 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6673 PR rtl-optimization/48331
6674 PR rtl-optimization/48334
6675 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6676 for any used algorithm.
6678 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6680 * ira-conflicts.c (build_object_conflicts): Add unused attribute
6683 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
6685 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6686 (alpha_option_override): Don't set alpha_sr_alias_set.
6687 (emit_frame_store_1): Use gen_frame_mem rather than calling
6689 (alpha_expand_epilogue): Ditto.
6691 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
6693 PR tree-optimization/48290
6694 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6695 vectorization, check that relevant phis in the basic block after
6696 the inner loop are really inner loop's exit phis.
6698 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
6701 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6702 (cached_dw_loc_list_def): New structure.
6703 (cached_dw_loc_list): New typedef.
6704 (cached_dw_loc_list_table): New variable.
6705 (cached_dw_loc_list_table_hash): New function.
6706 (cached_dw_loc_list_table_eq): Likewise.
6707 (add_location_or_const_value_attribute): Take a bool cache_p.
6708 Cache the list when the parameter is true.
6709 (gen_formal_parameter_die): Update caller.
6710 (gen_variable_die): Likewise.
6711 (dwarf2out_finish): Likewise.
6712 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6713 while generating debug info for the decl.
6714 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6715 (dwarf2out_init): Initialize cached_dw_loc_list_table.
6716 (resolve_addr): Cache the result of resolving a chain of
6719 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
6721 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6722 conflict object hard regset nodes have intersecting hard reg sets.
6724 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6725 after regstat_init_n_sets_and_refs.
6727 * ira.c: Add more comments at the top.
6728 (setup_stack_reg_pressure_class, setup_pressure_classes):
6729 Add comments how we compute the register pressure classes.
6730 (setup_allocno_and_important_classes): Add more comments.
6731 (setup_class_translate_array, reorder_important_classes)
6732 (setup_reg_class_relations): Add comments.
6734 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
6737 * ira-color.c: Add 2011 to the Copyright line.
6738 (assign_hard_reg): Add more comments.
6739 (improve_allocation): Ditto.
6741 * ira-costs.c: Add 2011 to the Copyright line.
6742 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6744 (setup_regno_cost_classes_by_mode): Ditto.
6746 Initial patches from ira-improv branch:
6748 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6750 * ira-build.c (ira_create_object): Remove initialization of
6751 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
6752 (ira_create_allocno): Remove initialization of
6753 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6754 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6755 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6756 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6757 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6758 Initialize ALLOCNO_ADD_DATA.
6759 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6760 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6762 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
6763 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6765 * ira.c (ira_reallocate): Remove.
6766 (setup_pressure_classes): Call
6767 ira_init_register_move_cost_if_necessary. Use
6768 ira_register_move_cost instead of ira_get_register_move_cost.
6769 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6770 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6772 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6773 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6774 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6775 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6776 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6777 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6779 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6780 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6781 (struct allocno_color_data): New.
6782 (allocno_color_data_t): New typedef.
6783 (allocno_color_data): New definition.
6784 (ALLOCNO_COLOR_DATA): New macro.
6785 (struct object_color_data): New.
6786 (object_color_data_t): New typedef.
6787 (object_color_data): New definition.
6788 (OBJECT_COLOR_DATA): New macro.
6789 (update_copy_costs, calculate_allocno_spill_cost): Call
6790 ira_init_register_move_cost_if_necessary. Use
6791 ira_register_move_cost instead of ira_get_register_move_cost.
6792 (move_spill_restore, update_curr_costs): Ditto.
6793 (allocno_spill_priority): Make it inline.
6794 (color_pass): Allocate and free allocno_color_dat and object_color_data.
6795 (struct coalesce_data, coalesce_data_t): New.
6796 (allocno_coalesce_data): New definition.
6797 (ALLOCNO_COALESCE_DATA): New macro.
6798 (merge_allocnos, coalesced_allocno_conflict_p): Use
6799 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6800 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6801 (coalesce_allocnos): Ditto.
6802 (setup_coalesced_allocno_costs_and_nums): Ditto.
6803 (collect_spilled_coalesced_allocnos): Ditto.
6804 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6805 (setup_slot_coalesced_allocno_live_ranges): Ditto.
6806 (coalesce_spill_slots): Ditto.
6807 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
6808 free allocno_coalesce_data.
6810 * ira-conflicts.c: Fix formatting.
6811 (process_regs_for_copy): Call
6812 ira_init_register_move_cost_if_necessary. Use
6813 ira_register_move_cost instead of ira_get_register_move_cost.
6814 (build_object_conflicts): Optimize.
6816 * ira-costs.c (record_reg_classes): Optimize. Call
6817 ira_init_register_move_cost_if_necessary. Use
6818 ira_register_move_cost, ira_may_move_in_cost, and
6819 ira_may_move_out_cost instead of ira_get_register_move_cost and
6820 ira_get_may_move_cost.
6821 (record_address_regs): Ditto.
6822 (scan_one_insn): Optimize.
6823 (find_costs_and_classes): Optimize.
6824 (process_bb_node_for_hard_reg_moves): Call
6825 ira_init_register_move_cost_if_necessary. Use
6826 ira_register_move_cost instead of ira_get_register_move_cost.
6828 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6829 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6830 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6831 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6833 (ira_initiate_emit_data, ira_finish_emit_data)
6834 (create_new_allocno): New functions.
6835 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6836 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6837 Use ira_register_move_cost instead of ira_get_register_move_cost.
6839 * ira-int.h: Fix some comments.
6840 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6841 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6842 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6843 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6845 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6846 bitfield after mode. Make hard_regno a short int. Make
6847 hard_regno short. Remove first_coalesced_allocno and
6848 next_coalesced_allocno. Move mem_optimized_dest_p,
6849 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6850 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6851 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6852 temp, colorable_p. Add new member add_data.
6853 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6854 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6855 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6856 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6857 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6858 (ALLOCNO_ADD_DATA): New macro.
6859 (ira_emit_data_t): New typedef.
6860 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6861 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6862 from struct ira_allocno.
6863 (ALLOCNO_EMIT_DATA): New macro.
6864 (ira_allocno_emit_data, allocno_emit_reg): New.
6865 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6866 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6867 (OBJECT_ADD_DATA): New macro.
6868 (ira_reallocate): Remove.
6869 (ira_initiate_emit_data, ira_finish_emit_data): New.
6870 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6871 (ira_init_register_move_cost_if_necessary): New.
6872 (ira_object_conflict_iter_next): Merge into
6873 ira_object_conflict_iter_cond.
6874 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6876 * ira-live.c (process_single_reg_class_operands): Call
6877 ira_init_register_move_cost_if_necessary. Use
6878 ira_register_move_cost instead of ira_get_register_move_cost.
6880 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6882 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6884 * ira-costs.c: Fix formatting.
6885 (cost_classes, cost_classes_num): Remove.
6886 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6887 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6888 (cost_classes_del, cost_classes_htab): New.
6889 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6890 (initiate_regno_cost_classes, setup_cost_classes): New.
6891 (setup_regno_cost_classes_by_aclass): New.
6892 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6893 (record_reg_classes): Use regno_cost_classes instead of
6894 cost_classes. Move checking opposite operand up.
6895 (record_address_regs): Use regno_cost_classes
6896 instead of cost_classes.
6897 (scan_one_insn): Ditto. Use always general register.
6898 (print_allocno_costs): Use regno_cost_classes instead of
6900 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
6901 (find_costs_and_classes): Set up cost classes for each registers.
6902 Use also their mode for this. Use regno_cost_classes instead of
6904 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6906 (free_ira_costs, ira_init_costs): Don't use cost_classes.
6907 (ira_costs, ira_set_pseudo_classes): Call
6908 initiate_regno_cost_classes and finish_regno_cost_classes.
6910 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
6912 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6914 * target.def (ira_cover_classes): Remove.
6916 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6918 * doc/tm.texi.in: Ditto.
6920 * ira-conflicts.c: Remove mentioning cover classes from the file.
6921 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
6922 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
6924 * targhooks.c (default_ira_cover_classes): Remove.
6926 * targhooks.h (default_ira_cover_classes): Ditto.
6928 * haifa-sched.c: Remove mentioning cover classes from the file.
6929 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6930 ira_pressure_classes and ira_pressure_classes_num instead of
6931 ira_reg_class_cover_size and ira_reg_class_cover. Use
6932 sched_regno_pressure_class instead of sched_regno_cover_class.
6933 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6934 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6936 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
6937 classes from the file.
6938 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6939 (struct object_hard_regs, struct object_hard_regs_node): New.
6940 (struct ira_object): New members profitable_hard_regs,
6941 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6942 (struct ira_allocno): Rename cover_class to aclass. Rename
6943 cover_class_cost and updated_cover_class_cost to class_cost and
6944 updated_class_cost. Remove splay_removed_p and
6945 left_conflict_size. Add new members colorable_p.
6946 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6947 (ALLOCNO_COLORABLE_P): New macro.
6948 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6949 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6950 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6951 (OBJECT_...): Rename parameter C to O.
6952 (OBJECT_PROFITABLE_HARD_REGS): New macro.
6953 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6954 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6955 (struct target_ira_int): New members x_ira_max_memory_move_cost,
6956 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6957 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6958 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6959 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
6960 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
6961 x_ira_reg_class_subunion.
6962 (ira_max_memory_move_cost, ira_max_register_move_cost)
6963 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6964 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6965 (ira_important_class_nums, ira_reg_class_superunion): New macros.
6966 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6967 (ira_reg_class_union): Rename to ira_reg_class_subunion.
6968 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6969 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6970 (ira_tune_allocno_costs_and_cover_classes): Rename to
6971 ira_tune_allocno_costs.
6972 (ira_debug_hard_regs_forest): New.
6973 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6974 (ira_object_conflict_iter_next): Fix comments.
6975 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6976 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6977 cover_class to aclass.
6978 (ira_allocate_and_accumulate_costs): Ditto.
6979 (ira_allocate_and_set_or_copy_costs): Ditto.
6981 * opts.c (decode_options): Remove ira_cover_class check.
6983 * ira-color.c: Remove mentioning cover classes from the file. Use
6984 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6985 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6986 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6987 (splay-tree.h): Remove include.
6988 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6989 before copy_freq_compare_func.
6990 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6991 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6993 (hard_regs_roots, hard_regs_node_vec): Ditto.
6994 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6995 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6996 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6997 (create_new_object_hard_regs_node): Ditto.
6998 (add_new_object_hard_regs_node_to_forest): Ditto.
6999 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7000 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7002 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7003 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7004 (remove_unused_object_hard_regs_nodes): Ditto.
7005 (enumerate_object_hard_regs_nodes): Ditto.
7006 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7007 (object_hard_regs_subnode_t): Ditto.
7008 (struct object_hard_regs_subnode): Ditto.
7009 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7010 (setup_object_hard_regs_subnode_index): Ditto.
7011 (get_object_hard_regs_subnodes_num): Ditto.
7012 (form_object_hard_regs_nodes_forest): Ditto.
7013 (finish_object_hard_regs_nodes_tree): Ditto.
7014 (finish_object_hard_regs_nodes_forest): Ditto.
7015 (allocnos_have_intersected_live_ranges_p): Rename to
7016 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7017 (pseudos_have_intersected_live_ranges_p): Rename to
7018 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7019 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7020 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7021 (update_copy_costs): Remove assert. Skip cost update if the hard
7022 reg does not belong the class.
7023 (assign_hard_reg): Process only profitable hard regs.
7024 (uncolorable_allocnos_num): Make it scalar.
7025 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7026 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7027 and ira_reg_class_max_nregs.
7028 (bucket_allocno_compare_func): Check frequency first.
7029 (sort_bucket): Add compare function as a parameter.
7030 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7031 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7032 (push_allocno_to_stack): Rewrite for checking new allocno
7034 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
7035 (push_only_colorable): Pass new parameter to sort_bucket.
7036 (push_allocno_to_spill): Remove.
7037 (allocno_spill_priority_compare): Make it inline and rewrite.
7038 (splay_tree_allocate, splay_tree_free): Remove.
7039 (allocno_spill_sort_compare): New function.
7040 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
7041 build and use splay tree. Choose first allocno in uncolorable
7042 allocno bucket to spill. Remove setting spill cost.
7043 (all_conflicting_hard_regs): Remove.
7044 (setup_allocno_available_regs_num): Check only profitable hard
7045 regs. Print info about hard regs nodes.
7046 (setup_allocno_left_conflicts_size): Remove.
7047 (put_allocno_into_bucket): Don't call
7048 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
7049 (improve_allocation): New.
7050 (color_allocnos): Call setup_profitable_hard_regs,
7051 form_object_hard_regs_nodes_forest, improve_allocation,
7052 finish_object_hard_regs_nodes_forest. Setup spill cost.
7053 (print_loop_title): Use pressure classes.
7054 (color_allocnso): Ditto.
7055 (do_coloring): Remove allocation and freeing splay_tree_node_pool
7056 and allocnos_for_spilling.
7057 (ira_sort_regnos_for_alter_reg): Don't setup members
7058 {first,next}_coalesced_allocno.
7059 (color): Remove allocating and freeing removed_splay_allocno_vec.
7060 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7061 prohibited_class_mode_regs.
7063 * ira-lives.c: Remove mentioning cover classes from the file. Fix
7065 (update_allocno_pressure_excess_length): Use pressure classes.
7066 (inc_register_pressure, dec_register_pressure): Check for pressure
7068 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7069 pressure class. Use ira_reg_class_nregs instead of
7070 ira_reg_class_max_nregs.
7071 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7072 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7073 (single_reg_class): Use ira_reg_class_nregs instead of
7074 ira_reg_class_max_nregs.
7075 (process_bb_node_lives): Use pressure classes.
7077 * ira-emit.c: Remove mentioning cover classes from the file. Use
7078 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
7079 (change_loop): Use pressure classes.
7080 (modify_move_list): Call ira_set_allocno_class instead of
7081 ira_set_allocno_cover_class.
7083 * ira-build.c: Remove mentioning cover classes from the file. Use
7084 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7085 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
7086 ALLOCNO_UPDATED_CLASS_COST instead of
7087 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7088 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7089 (ira_create_allocno): Remove initialization of
7090 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
7091 ALLOCNO_COLORABLE_P.
7092 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7093 Update conflict regs for the objects.
7094 (create_cap_allocno): Remove assert. Don't propagate
7095 ALLOCNO_AVAILABLE_REGS_NUM.
7096 (ira_free_allocno_costs): New function.
7097 (finish_allocno): Change a part of code into call of
7098 ira_free_allocno_costs.
7099 (low_pressure_loop_node_p): Use pressure classes.
7100 (object_range_compare_func): Don't compare classes.
7101 (setup_min_max_conflict_allocno_ids): Ditto.
7103 * loop-invariant.c: Remove mentioning cover classes from the file.
7104 Use ira_pressure_classes and ira_pressure_classes_num instead of
7105 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7106 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7107 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7108 Use reg_allocno_class instead of reg_cover_class.
7109 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7110 STACK_REG_COVER_CLASS.
7111 (get_regno_cover_class): Rename to get_regno_pressure_class.
7112 (move_loop_invariants): Initialize and finalize regstat.
7114 * ira.c: Remove mentioning cover classes from the file. Add
7115 comments about coloring without cover classes. Use ALLOCNO_CLASS
7116 instead of ALLOCNO_COVER_CLASS. Fix formatting.
7117 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7118 setup_class_subset_and_memory_move_costs.
7119 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7120 (setup_cover_and_important_classes): Rename to
7121 setup_allocno_and_important_classes.
7122 (setup_class_translate_array): New.
7123 (setup_class_translate): Call it for allocno and pressure classes.
7124 (cover_class_order): Rename to allocno_class_order.
7125 (comp_reg_classes_func): Use ira_allocno_class_translate instead
7126 of ira_class_translate.
7127 (reorder_important_classes): Set up ira_important_class_nums.
7128 (setup_reg_class_relations): Set up ira_reg_class_superunion.
7129 (print_class_cover): Rename to print_classes. Add parameter.
7130 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7131 Print pressure classes too.
7132 (find_reg_class_closure): Rename to find_reg_classes. Don't call
7133 setup_reg_subclasses.
7134 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7135 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7136 (setup_prohibited_class_mode_regs): Use
7137 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7138 (clarify_prohibited_class_mode_regs): New function.
7139 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7140 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7141 (ira_init_once): Initialize them.
7142 (free_register_move_costs): Process them.
7143 (ira_init): Move calls of find_reg_classes and
7144 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7145 Call clarify_prohibited_class_mode_regs.
7146 (ira_no_alloc_reg): Remove.
7147 (too_high_register_pressure_p): Use pressure classes.
7149 * sched-deps.c: Remove mentioning cover classes from the file.
7150 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7151 ira_pressure_classes and ira_pressure_classes_num instead of
7152 ira_reg_class_cover_size and ira_reg_class_cover.
7153 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7154 sched_regno_pressure_class instead of sched_regno_cover_class.
7155 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
7156 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7158 * ira.h: Add 2010 to Copyright.
7159 (ira_no_alloc_reg): Remove external.
7160 (struct target_ira): Rename x_ira_hard_regno_cover_class,
7161 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7162 x_ira_class_translate to x_ira_hard_regno_allocno_class,
7163 x_ira_allocno_classes_num, x_ira_allocno_classes, and
7164 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
7165 x_ira_pressure_classes, x_ira_pressure_class_translate, and
7166 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
7167 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
7168 x_ira_no_alloc_regs.
7169 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7170 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7171 ira_allocno_classes_num and ira_allocno_classes.
7172 (ira_class_translate): Rename to ira_allocno_class_translate.
7173 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7174 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7175 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7176 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7177 (ira_no_alloc_regs): New.
7179 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
7180 classes from the file. Use ALLOCNO_CLASS instead of
7181 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
7182 ALLOCNO_COVER_CLASS_COST.
7183 (regno_cover_class): Rename to regno_aclass.
7184 (record_reg_classes): Use ira_reg_class_subunion instead of
7185 ira_reg_class_union.
7186 (record_address_regs): Check overflow.
7187 (scan_one_insn): Ditto.
7188 (print_allocno_costs): Print total mem cost fore regional allocation.
7189 (print_pseudo_costs): Use REG_N_REFS.
7190 (find_costs_and_classes): Use classes intersected with them on the
7191 1st pass. Check overflow. Use ira_reg_class_subunion instead of
7192 ira_reg_class_union. Use ira_allocno_class_translate and
7193 regno_aclass instead of ira_class_translate and regno_cover_class.
7194 Modify code for finding regno_aclass. Setup preferred classes for
7196 (setup_allocno_cover_class_and_costs): Rename to
7197 setup_allocno_class_and_costs. Use regno_aclass instead of
7198 regno_cover_class. Use ira_set_allocno_class instead of
7199 ira_set_allocno_cover_class.
7200 (init_costs, finish_costs): Use regno_aclass instead of
7202 (ira_costs): Use setup_allocno_class_and_costs instead of
7203 setup_allocno_cover_class_and_costs.
7204 (ira_tune_allocno_costs_and_cover_classes): Rename to
7205 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
7206 by processing objects. Use ira_reg_class_max_nregs instead of
7207 ira_reg_class_nregs.
7209 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7211 * sched-int.h: Remove mentioning cover classes from the file.
7212 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7214 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
7215 classes from the file.
7216 (struct reg_pref): Rename coverclass into allocnoclass.
7217 (reg_cover_class): Rename to reg_allocno_class.
7219 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7221 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7223 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7225 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7227 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7229 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7231 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7233 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7235 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7237 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7239 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7240 (i386_ira_cover_classes): Ditto.
7242 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7244 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7246 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7248 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7250 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7252 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7254 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7255 (mips_ira_cover_classes): Ditto.
7257 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7259 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7261 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7263 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7265 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7267 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7268 (IRA_COVER_CLASSES_VSX): Ditto.
7270 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7271 (rs6000_ira_cover_classes): Ditto.
7273 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7275 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7277 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7279 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7281 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7283 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7285 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7287 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7289 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7291 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7293 2011-03-29 Jakub Jelinek <jakub@redhat.com>
7296 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7297 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7298 dw_fde_unlikely_section_end_label, cold_in_std_section,
7299 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7300 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7302 (output_fde): Use dw_fde_second_{begin,end} if second is
7303 true, otherwise dw_fde_{begin,end}.
7304 (output_call_frame_info): Test dw_fde_second_begin != NULL
7305 instead of dw_fde_switched_sections.
7306 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7307 fields, initialize new fields. Initialize in_std_section
7308 unconditionally from the first partition.
7309 (dwarf2out_end_epilogue): Don't override dw_fde_end when
7310 dw_fde_second_begin is non-NULL.
7311 (dwarf2out_switch_text_section): Stop initializing removed
7312 dw_fde_struct fields, initialize new fields, initialize
7313 also dw_fde_end here. Set dw_fde_switch_cfi even when
7314 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
7315 (struct var_loc_list_def): Add last_before_switch field.
7316 (arange_table, arange_table_allocated, arange_table_in_use,
7317 ARANGE_TABLE_INCREMENT, add_arange): Removed.
7318 (size_of_aranges): Count !in_std_section and !second_in_std_section
7319 hunks in fdes, instead of looking at arange_table_in_use.
7320 (output_aranges): Add aranges_length argument, don't call
7321 size_of_aranges here. Instead of using aranges_table*
7322 emit ranges for fdes when !in_std_section resp.
7323 !second_in_std_section.
7324 (dw_loc_list): Break ranges crossing section switch.
7325 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7326 use dw_fde_second_end instead of dw_fde_end as end of last range.
7327 (gen_subprogram_die): Don't call add_arange. Use
7328 dw_fde_{begin,end} for first partition and if switched
7329 section dw_fde_second_{begin,end} for the second.
7330 (var_location_switch_text_section_1,
7331 var_location_switch_text_section): New functions.
7332 (dwarf2out_begin_function): Initialize cold_text_section even
7333 when function_section () isn't text_section.
7334 (prune_unused_types): Don't walk arange_table.
7335 (dwarf2out_finish): Don't needlessly test
7336 flag_reorder_blocks_and_partition when testing cold_text_section_used.
7337 If info_section_emitted, call size_of_aranges and if it indicates
7338 non-empty .debug_aranges, call output_aranges with the computed
7339 size. Stop using removed dw_fde_struct fields, use
7340 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7344 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7345 create ENTRY_VALUE if incoming or address of incoming's MEM
7347 * dwarf2out.c (mem_loc_descriptor): Don't emit
7348 DW_OP_GNU_entry_value of DW_OP_fbreg.
7349 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7350 on ENTRY_VALUE is able to find the canonical parameter VALUE.
7351 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7352 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7354 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7355 is a REG_P or MEM_P with REG_P address, compute hash directly
7356 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7357 (preserve_only_constants): Don't clear VALUES forwaring
7358 ENTRY_VALUE to some other VALUE.
7360 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
7362 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7365 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7367 * cfgexpand.c (expand_gimple_cond): Always set the source location and
7368 block before expanding the statement.
7369 (expand_gimple_stmt_1): Likewise. Set them here...
7370 (expand_gimple_stmt): ...and not here. Tidy.
7371 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7374 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7376 * Makefile.in: New rule for cprop.o.
7377 * gcse.c: Move constant/copy propagation to cprop.c.
7378 (compute_local_properties): Only handle expression tables.
7379 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7380 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7381 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7382 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7383 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7384 compute_cprop_data, find_used_regs, try_replace_reg,
7385 find_avail_set, cprop_jump, constprop_register, cprop_insn,
7386 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7387 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7388 find_bypass_set, reg_killed_on_edge, bypass_block,
7389 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7390 execute_rtl_cprop, pass_rtl_cprop): Move to...
7391 * cprop.c: ...here. New file, constant/copy propagation for RTL
7392 moved from gcse.c to here with minor cleanups in duplicated code.
7394 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
7396 * config/i386/i386.c (flag_opts): Fix a typo in
7397 -mavx256-split-unaligned-store.
7399 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7401 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7402 LIBCALL_VALUE): Remove macros.
7403 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7404 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7405 (h8300_function_value, h8300_libcall_value,
7406 h8300_function_value_regno_p): New functions.
7408 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7410 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7412 2011-03-28 Jeff Law <law@redhat.com>
7414 * tree-ssa-threadupdate.c (redirect_edges): Call
7415 create_edge_and_update_destination_phis as needed.
7416 (create_edge_and_update_destination_phis): Accept new BB argument.
7417 All callers updated.
7418 (thread_block): Do not update the profile when threading around
7419 intermediate blocks.
7420 (thread_single_edge): Likewise.
7421 (determine_bb_domination_status): If BB is not a successor of the
7422 loop header, return NONDOMINATING.
7423 (register_jump_thread): Note when we register a jump thread around
7424 an intermediate block.
7425 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7426 (thread_across_edge): Use it.
7428 2011-03-28 Tristan Gingold <gingold@adacore.com>
7430 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7431 when for_return is 2.
7433 2011-03-28 Jeff Law <law@redhat.com>
7435 * var-tracking.c (canonicalize_values_mark): Delete unused
7437 (canonicalize_values_star, set_variable_part): Likewise.
7438 (clobber_variable_part, delete_variable_part): Likewise.
7440 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7442 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7444 2011-03-28 Martin Jambor <mjambor@suse.cz>
7446 * tree-inline.c (expand_call_inline): Do not check that destination
7448 (optimize_inline_calls): Assert that destination node is analyzed.
7449 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7450 not call tree_lowering_passes.
7451 * cgraph.h (cgraph_analyze_function): Declare.
7452 * cgraphunit.c (cgraph_analyze_function): Make public.
7454 2011-03-28 Joseph Myers <joseph@codesourcery.com>
7456 * config/sparc/sparc-opts.h: New.
7457 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7458 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7459 (sparc_option_override): Store processor_type enumeration rather
7460 than string in cpu_default. Remove name and enumeration from
7461 cpu_table. Directly default -mcpu then default -mtune from -mcpu
7462 without using sparc_select. Use target_flags_explicit instead of
7464 * config/sparc/sparc.h (enum processor_type): Move to
7466 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7467 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7468 HeaderInclude entry.
7469 (mcpu=, mtune=): Use Var and Enum.
7470 (sparc_processor_type): New Enum and EnumValue entries.
7472 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7473 Iain Sandoe <iains@gcc.gnu.org>
7476 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7478 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7480 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7481 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7482 Insert new statements at it in lieu of STMT.
7483 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7484 * tree-vect-stmts.c (vectorizable_store): Likewise.
7485 (vectorizable_load): Likewise.
7487 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
7489 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7494 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7496 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7497 unaligned 256bit load/store.
7498 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7499 (*avx_movdqu<avxmodesuffix>): Likewise.
7501 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7504 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7505 * config/pa/pa.md (iordi3): Use new predicate in expander.
7508 2011-03-27 Anatoly Sokolov <aesok@post.ru>
7510 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7511 FUNCTION_VALUE_REGNO_P): Remove macros.
7512 * config/mips/mips-protos.h (mips_function_value): Remove.
7513 * config/mips/mips.c (mips_function_value): Rename to...
7514 (mips_function_value_1): ... this. Make static. Handle receiving
7515 the function type in 'fn_decl_or_type' argument.
7516 (mips_function_value, mips_libcall_value,
7517 mips_function_value_regno_p): New function.
7518 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7519 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7521 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7523 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7524 and -mavx256-split-unaligned-store.
7525 (ix86_option_override_internal): Split 32-byte AVX unaligned
7526 load/store by default.
7527 (ix86_avx256_split_vector_move_misalign): New.
7528 (ix86_expand_vector_move_misalign): Use it.
7530 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7531 -mavx256-split-unaligned-store.
7533 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7534 256bit load/store. Generate unaligned store on misaligned memory
7536 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7538 (*avx_movdqu<avxmodesuffix>): Likewise.
7540 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7541 -mavx256-split-unaligned-store.
7543 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7546 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7549 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7551 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7552 opno arguments with an expand_operand. Use create_input_operand.
7553 (mips_prepare_builtin_target): Delete.
7554 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7556 (mips_expand_builtin_direct): Use create_output_operand and
7557 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
7558 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
7559 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7561 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
7563 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7565 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7567 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7569 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7570 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
7571 basic blocks and call commit_edge_insertions directly.
7572 (fixup_abnormal_edges): Move from here to...
7573 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
7574 on the edges and return whether some have actually been inserted.
7575 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7578 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
7580 PR rtl-optimization/48144
7581 * sel-sched-ir.c (merge_history_vect): Factor out from ...
7582 (merge_expr_data): ... here.
7583 (av_set_intersect): Rename to av_set_code_motion_filter.
7584 Update all callers. Call merge_history_vect when an expression
7585 is found in both sets.
7586 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7588 2011-03-26 Alan Modra <amodra@gmail.com>
7590 * config/rs6000/predicates.md (word_offset_memref_op): Handle
7591 cmodel medium addresses.
7592 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7593 64-bit gpr loads and stores.
7594 (rs6000_secondary_reload_ppc64): New function.
7595 * config/rs6000/rs6000-protos.h: Declare it.
7596 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7598 2011-03-26 Alan Modra <amodra@gmail.com>
7601 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7602 GNU Go in traceback table.
7604 2011-03-25 Richard Henderson <rth@redhat.com>
7606 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7607 if there are exactly 6 operands.
7608 (set_storage_via_setmem): Similarly.
7610 2011-03-25 Kai Tietz <ktietz@redhat.com>
7612 * collect2.c (write_c_file_stat): Handle backslash
7613 as right-hand directory separator.
7614 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7615 checking just for slash.
7616 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7617 instead of checking for trailing slash.
7618 * gcc.c (record_temp_file): Use filename_cmp instead
7620 (do_spec_1): Likewise.
7621 (replace_outfile_spec_function): Likewise.
7622 (is_directory): Use filename_ncmp instead of strncmp.
7623 (print_multilib_info): Likewise.
7624 * gcov.c (find_source): Use filename_cmp instead
7626 (make_gcov_file_name): Fix order of slash/backslash
7628 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7629 (add_standard_paths): Likewise.
7630 * mips-tfile.c (saber_stop): Handle backslash.
7631 * prefix.c (update_path): Use filename_ncmp instead of
7633 * profile.c (output_location): Use filename_cmp instead
7635 * read-md.c (handle_toplevel_file): Handle backslash.
7636 * tlink.c (frob_extension): Likewise.
7637 * tree-cfg.c (same_line_p): Use filename_cmp instead of
7639 * tree-dump.c (dequeue_and_dump): Handle backslash.
7640 * tree.c (get_file_function_name): Likewise.
7641 * gengtype.c (read_input_list): Likewise.
7642 (get_file_realbasename): Likewise.
7643 (get_output_file_with_visibility): Use filename_cmp
7646 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
7648 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7651 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7653 * fold-const.c (expr_location_or): New function.
7654 (fold_truth_not_expr): Call it.
7656 2011-03-25 Jeff Law <law@redhat.com>
7658 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7660 * c-family/c-common.c (def_fn_type): Likewise.
7661 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7662 * emit-rtl.c (gen_rtvec): Likewise.
7663 * lto/lto-lang.c (def_fn_type): Likewise.
7665 2011-03-25 Richard Guenther <rguenther@suse.de>
7667 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7668 also generate copies.
7669 (fini_copy_prop): Handle constant values properly.
7671 2011-03-25 Jakub Jelinek <jakub@redhat.com>
7673 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7674 mode size instead of bitsize with DWARF2_ADDR_SIZE.
7675 (hash_loc_operands, compare_loc_operands): Handle
7676 DW_OP_GNU_entry_value.
7678 2011-03-25 Kai Tietz <ktietz@redhat.com>
7680 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7681 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7682 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7683 comment and use macro TARGET_64BIT_MS_ABI instead.
7684 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7685 and change default behavior for 32-bit MS_ABI.
7686 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7687 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7689 (ix86_cfun_abi): Likewise.
7690 (ix86_maybe_switch_abi): Adjust comment.
7691 (init_cumulative_args): Check for bit-ness in MS_ABI case.
7692 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7693 instead of checking for SYSV_ABI.
7694 (ix86_nsaved_sseregs): Likewise.
7695 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7697 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7698 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7699 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7700 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7701 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7703 2011-03-25 Richard Guenther <rguenther@suse.de>
7705 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7706 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7707 (verify_gimple): Remove.
7708 * tree-cfg.c (verify_gimple_call): Merge verification
7710 (verify_gimple_phi): Merge verification from verify_stmts.
7711 (verify_gimple_label): New function.
7712 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7713 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7714 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7715 (verify_stmts): Rename to verify_gimple_in_cfg.
7716 (verify_gimple_in_cfg): New function.
7717 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7718 * tree-ssa.c (verify_ssa): Likewise.
7719 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7721 2011-03-25 Richard Guenther <rguenther@suse.de>
7723 * passes.c (init_optimization_passes): Add FRE pass after
7726 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
7727 Andrew Stubbs <ams@codesourcery.com>
7729 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7731 (arm_movdi_vfp_cortexa8): New pattern.
7732 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7733 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7734 instructions when tuning for Cortex-A8. Set attribute "arch".
7735 * config/arm/arm.md: Move include arm-tune.md up a bit.
7736 (define_attr "arch"): Add "onlya8" and "nota8" values.
7737 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7739 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7743 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7745 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7746 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7747 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7748 * passes.c (init_optimization_passes): Move
7749 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7751 2011-03-25 Kai Tietz <ktietz@redhat.com>
7753 * c-typeck.c (comptypes_internal): Replace target
7754 hook call of comp_type_attributes by version in tree.c file.
7755 * gimple.c (gimple_types_compatible_p_1): Likewise.
7756 * tree-ssa.c (useless_type_conversion_p): Likewise.
7757 * tree.c (build_type_attribute_qual_variant): Likewise.
7758 (attribute_value_equal): New static helper function.
7759 (comp_type_attributes): New function.
7760 (merge_attributes): Use attribute_value_equal for comparison.
7761 (attribute_list_contained): Likewise.
7762 * tree.h (comp_type_attributes): New prototype.
7764 2011-03-25 Richard Guenther <rguenther@suse.de>
7766 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7767 of complex types at -O0.
7768 (verify_gimple_assign_binary): Likewise.
7769 (verify_gimple_assign_ternary): Likewise.
7771 2011-03-24 Mark Wielaard <mjw@redhat.com>
7773 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7774 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7776 2011-03-24 Mark Wielaard <mjw@redhat.com>
7779 * dwarf2out.c (output_abbrev_section): Only write table when
7780 abbrev_die_table_in_use > 1.
7782 2011-02-24 Richard Henderson <rth@redhat.com>
7784 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7785 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7786 (alpha_expand_unaligned_load_words): Use extql.
7787 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7788 (emit_insxl): Handle all modes for consistency.
7790 2011-02-24 Richard Henderson <rth@redhat.com>
7792 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7793 (alpha_expand_unaligned_load): Likewise.
7794 (alpha_expand_unaligned_store): Likewise.
7795 (alpha_expand_unaligned_load_words): Likewise.
7796 (alpha_expand_unaligned_store_words): Likewise.
7797 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7798 (alpha_split_lock_test_and_set_12): Likewise.
7799 (print_operand, alpha_fold_builtin_extxx): Likewise.
7800 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7801 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7802 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7803 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7804 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7805 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7806 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7807 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7808 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7809 (extwl, extll, extql): Similarly.
7810 (inswh, inslh, insqh): Similarly.
7811 (mskbl, mskwl, mskll, mskql): Similarly.
7812 (mskwh, msklh, mskqh): Similarly.
7814 2011-02-24 Richard Henderson <rth@redhat.com>
7816 * config/alpha/alpha.md (attribute isa): Add er, ner.
7817 (attribute enabled): Handle them.
7818 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7820 2011-02-24 Richard Henderson <rth@redhat.com>
7822 * config/alpha/alpha.md (attribute isa): Add vms.
7823 (attribute enabled): Handle it.
7824 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7825 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7826 (*movtf): Rename from *movtf_internal for consistency.
7827 (*movsi): Merge with *movsi_nt_vms.
7828 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7829 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7830 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7831 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7833 2011-02-24 Richard Henderson <rth@redhat.com>
7835 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7836 (extendqisi2, extendhisi2): Likewise.
7837 (extendqidi2): Simplify BWX/non-BWX expansions.
7838 (extendhidi2): Similarly.
7840 2011-02-24 Richard Henderson <rth@redhat.com>
7842 * config/alpha/alpha.md (attribute isa): New.
7843 (attribute enabled): New.
7844 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7845 (zero_extendqisi2, zero_extendqidi2): Similarly.
7846 (zero_extendhisi2, zero_extendhidi2): Similarly.
7847 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7849 2011-02-24 Richard Henderson <rth@redhat.com>
7851 * config/alpha/predicates.md (input_operand): Revert last change;
7852 update comment to mention 32-bit VMS rather than Windows.
7854 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7856 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7857 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7858 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7859 * passes.c (init_optimization_passes): Move
7860 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7862 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7864 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7866 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7868 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7871 2011-03-24 Jakub Jelinek <jakub@redhat.com>
7874 * simplify-rtx.c (simplify_const_unary_operation): Call
7875 real_convert when changing mode class with FLOAT_EXTEND.
7877 2011-03-24 Nick Clifton <nickc@redhat.com>
7879 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7880 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7881 * config/rx/rx.c (rx_option_override): Set align_jumps,
7882 align_loops and align_labels if not set by the user.
7883 (rx_align_for_label): New function.
7884 (rx_max_skip_for_label): New function.
7885 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7886 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7887 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7888 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7889 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7891 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7893 PR rtl-optimization/48263
7894 * optabs.c (expand_binop_directly): Reinstate convert_modes code
7895 and original commutative_p handling. Use maybe_gen_insn.
7897 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7899 * reload.c (find_reloads_subreg_address): Add address_reloaded
7900 parameter and return true there if the full address has been
7902 (find_reloads_toplev): Pass address_reloaded flag.
7903 (find_reloads_address_1): Don't use address_reloaded parameter.
7905 2011-03-24 Jeff Law <law@redhat.com>
7907 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7908 unused variable "ann".
7909 (remove_unused_locals): Likewise.
7911 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7914 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7917 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7919 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7920 for invalid symbolic addresses.
7921 (s390_secondary_reload): Don't use s390_check_symref_alignment for
7924 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7926 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7927 the argument in calls to fold_truth_not_expr.
7929 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7931 * tree.c (record_node_allocation_statistics): New function.
7932 (make_node_stat, copy_node_stat, build_string): Call it.
7933 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7934 (build1_stat, build_omp_clause): Likewise.
7936 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7938 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7941 2011-03-24 Richard Guenther <rguenther@suse.de>
7943 PR tree-optimization/48271
7944 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7945 blocks that still exist.
7947 2011-03-24 Richard Guenther <rguenther@suse.de>
7949 PR tree-optimization/48270
7950 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7951 not free datarefs before ddrs.
7953 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7955 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7956 from the address built for a reference with variable offset.
7958 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7961 * config/i386/i386.md (*movdf_internal_rex64): Do not split
7962 alternatives that can be handled with movq or movabsq insn.
7963 (*movdf_internal): Disable for !TARGET_64BIT.
7964 (*movdf_internal_nointeger): Ditto.
7965 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7967 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7969 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7970 (FUNCTION_ARG_ADVANCE): Likewise.
7971 * tm.texi.in: Change references to them to hook references.
7972 * tm.texi: Regenerate.
7973 * targhooks.c (default_function_arg): Eliminate check for target macro.
7974 (default_function_incoming_arg): Likewise.
7975 (default_function_arg_advance): Likewise.
7976 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7977 (function_arg_advance): Likewise.
7978 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7980 2011-03-24 Richard Guenther <rguenther@suse.de>
7983 * tree-object-size.c (addr_object_size): Do not double-account
7984 for MEM_REF offsets.
7986 2011-03-24 Diego Novillo <dnovillo@google.com>
7988 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7989 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7990 (lto_input_data_block): Move from lto-opts.c. Make extern.
7992 (lto_input_string): Rename from input_string. Make extern.
7994 * lto-streamer-out.c (lto_output_string_with_length): Rename from
7995 output_string_with_length.
7996 Output 0 to indicate a non-NULL string. Update all callers to
7998 (lto_output_string): Rename from output_string. Make extern.
8000 (lto_output_decl_state_streams): Make extern.
8001 (lto_output_decl_state_refs): Make extern.
8002 * lto-streamer.h (lto_input_string): Declare.
8003 (lto_input_data_block): Declare.
8004 (lto_output_string): Declare.
8005 (lto_output_string_with_length): Declare.
8006 (lto_output_decl_state_streams): Declare.
8007 (lto_output_decl_state_refs): Declare.
8009 2011-03-24 Richard Guenther <rguenther@suse.de>
8011 PR tree-optimization/46562
8012 * tree.c (build_invariant_address): New function.
8013 * tree.h (build_invariant_address): Declare.
8014 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8015 a renamed function moved ...
8016 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8017 Take valueization callback parameter.
8018 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8019 * gimple-fold.h: New file.
8020 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8021 (ccp_fold, fold_const_aggregate_ref,
8022 fold_ctor_reference, fold_nonarray_ctor_reference,
8023 fold_array_ctor_reference, fold_string_cst_ctor_reference,
8024 get_base_constructor): Move ...
8025 * gimple-fold.c: ... here.
8026 (gimple_fold_stmt_to_constant_1): New function
8027 split out from ccp_fold. Take a valueization callback parameter.
8028 Valueize all operands.
8029 (gimple_fold_stmt_to_constant): New wrapper function.
8030 (fold_const_aggregate_ref_1): New function split out from
8031 fold_const_aggregate_ref. Take a valueization callback parameter.
8032 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8033 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8034 invariant POINTER_PLUS_EXPRs to invariant form.
8035 (vn_valueize): New function.
8036 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8037 * tree-vrp.c (vrp_valueize): New function.
8038 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8039 to fold statements to constants.
8040 * tree-ssa-pre.c (eliminate): Properly guard propagation of
8041 function declarations.
8042 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8043 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8045 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8047 * config/h8300/predicates.md (jump_address_operand): Fix register
8050 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
8052 * doc/invoke.texi (max-stores-to-sink): Document.
8053 * params.h (MAX_STORES_TO_SINK): Define.
8054 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8055 if either vectorization or if-conversion is disabled.
8056 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8057 tree-vect-data-refs.c vect_equal_offsets.
8058 (dr_equal_offsets_p): New function.
8059 (find_data_references_in_bb): Remove static.
8060 * tree-data-ref.h (find_data_references_in_bb): Declare.
8061 (dr_equal_offsets_p): Likewise.
8062 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8063 (vect_drs_dependent_in_basic_block): Update calls to
8065 (vect_check_interleaving): Likewise.
8066 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8067 (cond_if_else_store_replacement): Rename to...
8068 (cond_if_else_store_replacement_1): ... this. Change arguments and
8070 (cond_if_else_store_replacement): New function.
8071 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8072 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8074 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
8077 * config/arm/arm.md (casesi): Use the gen_int_mode() function
8078 to subtract lower bound instead of GEN_INT().
8080 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
8085 * doc/extend.texi (Alignment): Move section to match order in TOC.
8086 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8087 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8089 2011-03-23 Jeff Law <law@redhat.com>
8091 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8092 before removing the edge.
8094 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8095 it may have been freed by redirect_branch_edge or
8096 redirect_edge_succ_nodup.
8098 2011-03-23 Richard Guenther <rguenther@suse.de>
8100 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8101 (check_va_list_escapes): Likewise.
8102 (check_all_va_list_escapes): Likewise.
8104 2011-03-23 Richard Guenther <rguenther@suse.de>
8106 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8107 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8108 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8109 (alias.o): Likewise.
8110 (ipa-type-escape.o): Remove.
8111 (ipa-struct-reorg.o): Likewise.
8112 (GTFILES): Remove ipa-struct-reorg.c.
8113 * alias.c: Do not include ipa-type-escape.h.
8114 * tree-ssa-alias.c: Likewise.
8115 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8116 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8117 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8118 and ipa-type-escape passes.
8119 * tree-pass.h (pass_ipa_type_escape): Remove.
8120 (pass_ipa_struct_reorg): Likewise.
8121 * ipa-struct-reorg.h: Remove.
8122 * ipa-struct-reorg.c: Likewise.
8123 * ipa-type-escape.h: Likewise.
8124 * ipa-type-escape.c: Likewise.
8125 * doc/invoke.texi (-fipa-struct-reorg): Remove.
8126 (--param struct-reorg-cold-struct-ratio): Likewise.
8127 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8128 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8129 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8131 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8133 * config/s390/2084.md: Enable all insn reservations also for z9_ec
8134 cpu attribute value.
8135 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8136 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8137 * config/s390/s390.c (processor_flags_table): New constant array.
8138 (s390_handle_arch_option): Remove.
8139 (s390_handle_option): Remove s390_handle_arch_option invocations
8140 and OPT_mwarn_framesize_ handling.
8141 (s390_option_override): Remove s390_handle_arch_option invocation.
8142 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8144 * config/s390/s390.md (cpu attribute): Add z9_ec value.
8145 * config/s390/s390.opt (s390_tune, s390_arch)
8146 (march=): Replace s390_arch_option enum and values with
8147 processor_type. Set variable name to s390_arch. Set
8148 initialization value.
8149 (mtune=): Replace s390_arch_option with processor_type. Set
8150 variable name to s390_tune. Set initialization value.
8152 2011-03-23 Julian Brown <julian@codesourcery.com>
8154 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8155 accesses which are not naturally aligned.
8157 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8160 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8162 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8164 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8165 parameter from "int" to "enum insn_code".
8166 (expand_operand_type): New enum.
8167 (expand_operand): New structure.
8168 (create_expand_operand): New function.
8169 (create_fixed_operand, create_output_operand): Likewise
8170 (create_input_operand, create_convert_operand_to): Likewise.
8171 (create_convert_operand_from, create_address_operand): Likewise.
8172 (create_integer_operand): Likewise.
8173 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8174 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8175 (expand_insn, expand_jump_insn): Likewise.
8176 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8177 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8178 (expand_movstr, expand_builtin___clear_cache): Likewise.
8179 (expand_builtin_lock_release): Likewise.
8180 * explow.c (allocate_dynamic_stack_space): Likewise.
8181 (probe_stack_range): Likewise. Allow check_stack to FAIL,
8182 and use the default handling in that case.
8183 * expmed.c (check_predicate_volatile_ok): Delete.
8184 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8185 (emit_cstore): Likewise.
8186 * expr.c (emit_block_move_via_movmem): Likewise.
8187 (set_storage_via_setmem, expand_assignment): Likewise.
8188 (emit_storent_insn, try_casesi): Likewise.
8189 (emit_single_push_insn): Likewise. Allow the expansion to fail.
8190 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8191 (expand_vec_shift_expr, expand_binop_directly): Likewise.
8192 (expand_twoval_unop, expand_twoval_binop): Likewise.
8193 (expand_unop_direct, emit_indirect_jump): Likewise.
8194 (emit_conditional_move, vector_compare_rtx): Likewise.
8195 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8196 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8197 (expand_sync_lock_test_and_set): Likewise.
8198 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
8199 (emit_unop_insn): Likewise.
8200 (expand_copysign_absneg): Change icode to an insn_code.
8201 (create_convert_operand_from_type): New function.
8202 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8203 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8204 (expand_insn, expand_jump_insn): Likewise.
8205 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8206 than const_int_operand for operand 2.
8208 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8210 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8213 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8215 * emit-rtl.c (emit_pattern_before_noloc): New function.
8216 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8217 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8218 (emit_pattern_after_noloc): New function.
8219 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8220 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8222 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8224 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8225 (__ffsDI2): Likewise.
8227 2011-03-22 Richard Henderson <rth@redhat.com>
8229 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8230 of !TARGET_ABI_OPEN_VMS.
8231 (alpha_trampoline_init, alpha_start_function): Likewise.
8232 (alpha_expand_epilogue, alpha_file_start): Likewise.
8233 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8234 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8235 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8236 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8237 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8239 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8241 * config/s390/s390-opts.h: New.
8242 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8243 s390_arch_flags, s390_warn_framesize, s390_stack_size,
8244 s390_stack_guard): Remove.
8245 (s390_handle_arch_option): Return void. Take enum
8246 s390_arch_option value instead of string and searching array.
8247 (s390_handle_option): Don't assert that global structures are in
8248 use. Access variables via opts pointer. Use error_at. Don't use
8249 sscanf for -mstack-guard= or -mstack-size=. Update call to
8250 s390_handle_arch_option.
8251 (s390_option_override): Update call to s390_handle_arch_option.
8252 (s390_emit_prologue): Use %d format for s390_stack_size in
8253 diagnostic. Use %wd for HOST_WIDE_INT.
8254 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8255 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8256 * config/s390/s390.opt (config/s390/s390-opts.h): New
8257 HeaderInclude entry.
8258 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8259 s390_arch_flags, s390_warn_framesize): New Variable entries.
8260 (s390_arch_option): New Enum and EnumValue entries.
8261 (march=): Use Enum instead of Var.
8262 (mstack-guard=, mstack-size=): Use UInteger and Var.
8265 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8267 * config/score/score.c (score_handle_option): Don't assert that
8268 global structures are in use. Access target_flags via opts
8269 pointer. Use value of -march= option to determine target_flags
8271 * config/score/score.opt (march=): Use Enum.
8272 (score_arch): New Enum and EnumValue entries.
8274 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8276 * config/mep/mep.c (option_mtiny_specified): Remove.
8277 (mep_option_override): Move register handling for -mivc2 from
8278 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
8279 instead of option_mtiny_specified.
8280 (mep_handle_option): Access target_flags via opts pointer. Don't
8281 assert that global structures are in use. Defer part of -mivc2
8282 handling and move it to mep_option_override.
8283 * config/mep/mep.opt (IVC2): New Mask entry.
8284 (mivc2): Use Var and Defer instead of Mask.
8286 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8288 * config/v850/v850-opts.h: New.
8289 * config/v850/v850.c (small_memory): Replace with
8290 small_memory_physical_max array. Make that array static const.
8291 (v850_handle_memory_option): Take integer value of argument. Take
8292 gcc_options pointer, option text and location. Return void.
8293 Update for changes to small memory structures.
8294 (v850_handle_option): Access target_flags via opts pointer. Don't
8295 assert that global structures are in use. Update calls to
8296 v850_handle_memory_option.
8297 (v850_encode_data_area): Update references to small memory settings.
8298 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8299 (enum small_memory_type): Move to v850-opts.h.
8300 * config/v850/v850.opt (config/v850/v850-opts.h): New
8301 HeaderInclude entry.
8302 (small_memory_max): New Variable entry.
8303 (msda): Replace by pair of options msda= and msda-. Use UInteger.
8304 (mtda, mzda): Likewise.
8306 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8308 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8309 pointer. Don't assert that global structures are in use.
8311 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8313 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8314 via opts pointer. Don't assert that global structures are in use.
8316 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8318 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8319 (munix=93): Use Var.
8320 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8321 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8322 * config/pa/pa-opts.h: New.
8323 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8324 (pa_handle_option): Don't assert that global structures are in
8325 use. Access target_flags via opts pointer. Don't handle
8326 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8328 (pa_option_override): Handle deferred OPT_mfixed_range_.
8330 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8332 * config/mn10300/mn10300-opts.h: New.
8333 * config/mn10300/mn10300.c (mn10300_processor,
8334 mn10300_tune_string): Remove.
8335 (mn10300_handle_option): Don't assert that global structures are
8336 in use. Access mn10300_processor via opts pointer. Don't handle
8338 * config/mn10300/mn10300.h (enum processor_type): Move to
8340 (mn10300_processor): Remove.
8341 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8342 HeaderInclude entry.
8343 (mn10300_processor): New Variable entry.
8346 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8348 * config/microblaze/microblaze.c: Don't include opts.h.
8349 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8350 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8351 (mno-clearbss): Use Var and Warn.
8353 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8355 * config/m32r/m32r-opts.h: New.
8356 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8357 (m32r_handle_option): Don't assert that global structures are in
8358 use. Access target_flags and m32r_cache_flush_func via opts
8359 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
8360 OPT_mno_flush_trap here.
8361 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8362 include of m32r-opts.h.
8363 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8364 HeaderInclude entry.
8365 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8366 (mmodel=): Use Enum and Var.
8367 (m32r_model): New Enum and EnumValue entries.
8368 (mno-flush-trap): Use Var.
8369 (msdata=): Use Enum and Var.
8370 (m32r_sdata): New Enum and EnumValue entries.
8372 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8374 * config/m32c/m32c.c: Don't include opts.h.
8375 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8376 m32c_handle_option): Remove.
8377 (m32c_option_override): Check global_options_set.x_target_memregs
8378 instead of target_memregs_set.
8379 * config/m32c/m32c.h (target_memregs): Remove.
8380 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8383 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8385 * config/iq2000/iq2000-opts.h: New.
8386 * config/iq2000/iq2000.c: Don't include opts.h.
8387 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8388 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8389 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8390 HeaderInclude entry.
8391 (iq2000_tune): New Variable entry.
8392 (march=): Add comment. Use Enum.
8393 (iq2000_arch): New Enum and EnumValue entries.
8394 (mcpu=): Use Enum and Var.
8395 (iq2000_tune): New Enum and EnumValue entries.
8397 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8399 * config/ia64/ia64-opts.h: New.
8400 * config/ia64/ia64.c (ia64_tune): Remove.
8401 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8403 (ia64_option_override): Handle deferred OPT_mfixed_range_.
8404 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8405 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8406 HeaderInclude entry.
8407 (ia64_tune): New Variable entry.
8408 (mfixed-range=): Use Defer and Var.
8409 (mtune=): Use Enum and Var.
8410 (ia64_tune): New Enum and EnumValue entries.
8412 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8414 * config/frv/frv-opts.h: New.
8415 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8417 (frv_cpu_type): Remove.
8418 * config/frv/frv.c: Don't include opts.h.
8419 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8420 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8421 (frv_cpu_type): New Variable entry.
8422 (frv_cpu): New Enum and EnumValue entries.
8424 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8426 * config/cris/cris.c (cris_handle_option): Access target_flags via
8427 opts pointer. Don't assert that global structures are in use.
8428 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8429 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8431 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8433 * config/bfin/bfin-opts.h: New.
8434 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8435 bfin_si_revision, bfin_workarounds): Remove.
8436 (bfin_cpus): Make static const.
8437 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8438 not bfin_lib_id_given.
8439 (bfin_handle_option): Don't set bfin_lib_id_given. Access
8440 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8441 pointer. Use error_at. Don't assert that global structures are in use.
8442 * config/bfin/bfin.h: Include bfin-opts.h.
8443 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8444 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8445 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8446 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8449 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8451 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8452 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8453 or -msoft-float here.
8454 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8455 -msoft-float and -mhard-float.
8456 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8457 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8459 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8461 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8462 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8464 (LIBGCC_SPEC): Don't handle -msoft-float.
8465 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8467 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8469 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8470 -mfloat-abi=*, not -msoft-float and -mhard-float.
8471 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8473 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8474 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8475 mhard-float and msoft-float.
8476 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8477 mfloat-abi=soft in comments, not mhard-float and msoft-float.
8478 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8479 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8481 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8482 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8484 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8486 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8489 2011-03-22 Richard Henderson <rth@redhat.com>
8491 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8492 TARGET_ABI_WINDOWS_NT.
8493 (alpha_output_function_end_prologue): Likewise.
8494 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8495 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8496 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8497 (trap, *movsi_nt_vms): Likewise.
8498 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8499 (*tablejump_osf_nt_internal): Remove.
8500 * config/alpha/predicates.md (input_operand): Only test Pmode.
8502 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8504 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8505 via opts pointer. Use error_at. Don't assert that global
8506 structures are in use.
8508 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8510 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8511 (ix86_handle_option): Access ix86_isa_flags and
8512 ix86_isa_flags_explicit via opts pointer. Don't assert that
8513 global structures are in use.
8514 (ix86_function_specific_save, ix86_function_specific_restore):
8515 Update ix86_isa_flags_explicit field name.
8516 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8517 (ix86_isa_flags_explicit): Rename TargetSave entry to
8518 x_ix86_isa_flags_explicit.
8520 2011-03-22 Richard Henderson <rth@redhat.com>
8522 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8523 (alpha_option_override, direct_return): Likewise.
8524 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8525 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8526 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8527 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8528 (alpha_expand_epilogue, alpha_end_function): Likewise.
8529 (alpha_init_libfuncs): Likewise.
8530 (struct machine_function): Remove unicosmk members.
8531 (print_operand) ['t']: Remove.
8532 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8533 unicosmk_output_module_name, unicosmk_output_common,
8534 current_section_align, unicosmk_output_text_section_asm_op,
8535 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8536 unicosmk_section_type_flags, unicosmk_unique_section,
8537 unicosmk_asm_named_section, unicosmk_insert_attributes,
8538 unicosmk_output_align, unicosmk_defer_case_vector,
8539 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8540 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8541 unicosmk_output_ssib, unicosmk_add_call_info_word,
8542 unicosmk_extern_head, unicosmk_output_default_externs,
8543 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8544 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8545 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8546 * config/alpha/alpha-protos.h: Update.
8547 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8548 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8549 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8550 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8551 (*mulsi_se, mulvsi3): Likewise.
8552 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8553 (*divmodsi_internal, call, call_value, realign): Likewise.
8554 (moddi3, umoddi3): Likewise; remove duplicate expander.
8555 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8556 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8557 (*movdi_nofix): Remove r/U alternative.
8558 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8559 * config/alpha/constraints.md ("U"): Remove.
8560 * config/alpha/predicates.md (call_operand"): Don't test
8561 TARGET_ABI_UNICOSMK.
8563 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8565 * target.def (handle_option): Take gcc_options and
8566 cl_decoded_option pointers and location_t.
8567 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8568 * doc/tm.texi: Regenerate.
8569 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8570 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8571 * lto-opts.c (lto_reissue_options): Generate option structure for
8572 targetm.handle_option call.
8573 * opts.c (target_handle_option): Update call to
8574 targetm.handle_option. Remove assertions about values now passed
8576 * targhooks.c (default_target_handle_option): New.
8577 * targhooks.h (default_target_handle_option): Declare.
8578 * config/alpha/alpha.c: Include opts.h.
8579 (alpha_handle_option): Update to new hook interface.
8580 * config/arm/arm.c: Include opts.h.
8581 (arm_handle_option): Update to new hook interface.
8582 * config/arm/t-arm (arm.o): Update dependencies.
8583 * config/bfin/bfin.c: Include opts.h.
8584 (bfin_handle_option): Update to new hook interface.
8585 * config/cris/cris.c: Include opts.h.
8586 (cris_handle_option): Update to new hook interface.
8587 * config/frv/frv.c: Include opts.h.
8588 (frv_handle_option): Update to new hook interface.
8589 * config/i386/i386.c: Include opts.h.
8590 (ix86_handle_option): Update to new hook interface.
8591 (ix86_valid_target_attribute_inner_p): Generate option structure
8592 for call to ix86_handle_option.
8593 * config/i386/t-i386 (i386.o): Update dependencies.
8594 * config/ia64/ia64.c: Include opts.h.
8595 (ia64_handle_option): Update to new hook interface.
8596 * config/ia64/t-ia64 (ia64.o): Update dependencies.
8597 * config/iq2000/iq2000.c: Include opts.h.
8598 (iq2000_handle_option): Update to new hook interface.
8599 * config/m32c/m32c.c: Include opts.h.
8600 (m32c_handle_option): Update to new hook interface.
8601 * config/m32r/m32r.c: Include opts.h.
8602 (m32r_handle_option): Update to new hook interface.
8603 * config/m68k/m68k.c: Include opts.h.
8604 (m68k_handle_option): Update to new hook interface.
8605 * config/mep/mep.c: Include opts.h.
8606 (mep_handle_option): Update to new hook interface.
8607 * config/microblaze/microblaze.c: Include opts.h.
8608 (microblaze_handle_option): Update to new hook interface.
8609 * config/mips/mips.c: Include opts.h.
8610 (mips_handle_option): Update to new hook interface.
8611 * config/mn10300/mn10300.c: Include opts.h.
8612 (mn10300_handle_option): Update to new hook interface.
8613 * config/pa/pa.c: Include opts.h.
8614 (pa_handle_option): Update to new hook interface.
8615 * config/pdp11/pdp11.c: Include opts.h.
8616 (pdp11_handle_option): Update to new hook interface.
8617 * config/rs6000/rs6000.c: Include opts.h.
8618 (rs6000_handle_option): Update to new hook interface.
8619 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8620 * config/rx/rx.c: Include opts.h.
8621 (rx_handle_option): Update to new hook interface.
8622 * config/s390/s390.c: Include opts.h.
8623 (s390_handle_option): Update to new hook interface.
8624 * config/score/score.c: Include opts.h.
8625 (score_handle_option): Update to new hook interface.
8626 * config/sh/sh.c: Include opts.h.
8627 (sh_handle_option): Update to new hook interface.
8628 * config/sparc/sparc.c: Include opts.h.
8629 (sparc_handle_option): Update to new hook interface.
8630 * config/v850/v850.c: Include opts.h.
8631 (v850_handle_option): Update to new hook interface.
8633 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8635 * gcc.c (driver_unknown_option_callback): Only permit and save
8636 unknown -Wno- options.
8637 (driver_wrong_lang_callback): Save options directly instead of via
8638 driver_unknown_option_callback.
8640 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8642 * combine.c (simplify_set): Try harder to find the best CC mode when
8643 simplifying a nested COMPARE on the RHS.
8645 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8647 * config/alpha/gnu.h: Remove.
8648 * config/arc: Remove directory.
8649 * config/arm/netbsd.h: Remove.
8650 * config/arm/t-pe: Remove.
8651 * config/crx: Remove directory.
8652 * config/i386/netbsd.h: Remove.
8653 * config/m68hc11: Remove directory.
8654 * config/m68k/uclinux-oldabi.h: Remove.
8655 * config/mcore/mcore-pe.h: Remove.
8656 * config/mcore/t-mcore-pe: Remove.
8657 * config/netbsd-aout.h: Remove.
8658 * config/rs6000/gnu.h: Remove.
8659 * config/sh/sh-symbian.h: Remove.
8660 * config/sh/symbian-base.c: Remove.
8661 * config/sh/symbian-c.c: Remove.
8662 * config/sh/symbian-cxx.c: Remove.
8663 * config/sh/symbian-post.h: Remove.
8664 * config/sh/symbian-pre.h: Remove.
8665 * config/sh/t-symbian: Remove.
8666 * config/svr3.h: Remove.
8667 * config/vax/netbsd.h: Remove.
8668 * config.build: Don't handle i[34567]86-*-pe.
8669 * config.gcc: Remove handling of deprecations for most deprecated
8671 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8672 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8673 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8674 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8675 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8676 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8678 * config.host: Don't handle i[34567]86-*-pe.
8679 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8680 (ASM_SPEC32): Don't handle -mcall-gnu.
8681 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8683 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8684 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8685 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8686 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8687 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8688 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8689 conditional on SYMBIAN.
8690 * configure.ac: Don't handle powerpc*-*-gnu*.
8691 * configure: Regenerate.
8692 * doc/extend.texi (interrupt attribute): Don't mention CRX.
8693 * doc/install-old.texi (m6811, m6812): Don't mention.
8694 * doc/install.texi (arc-*-elf*): Don't document multilib option.
8695 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8696 (m68k-uclinuxoldabi): Don't mention.
8697 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8699 (-mcall-gnu): Remove.
8700 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8701 families): Remove constraint documentation.
8703 2011-03-22 Marius Strobl <marius@FreeBSD.org>
8705 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8706 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8707 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8709 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8712 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8713 vector when peeking at the next token for vector, don't expand the
8716 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
8718 * config/avr/avr-protos.h (expand_epilogue): Change prototype
8719 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8720 * config/avr/avr.c (init_cumulative_args)
8721 (avr_function_arg_advance): Use it.
8722 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8724 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8725 (avr_function_ok_for_sibcall): ...this new function.
8726 (avr_lookup_function_attribute1): New static Function.
8727 (avr_naked_function_p, interrupt_function_p)
8728 (signal_function_p, avr_OS_task_function_p)
8729 (avr_OS_main_function_p): Use it.
8730 * config/avr/avr.md ("sibcall", "sibcall_value")
8731 ("sibcall_epilogue"): New expander.
8732 ("*call_insn", "*call_value_insn"): New insn.
8733 ("call_insn", "call_value_insn"): Remove
8734 ("call", "call_value", "epilogue"): Change expander to handle
8737 2011-03-21 Nick Clifton <nickc@redhat.com>
8739 * doc/invoke.texi (Overall Options): Move closing brace to end of
8741 (Optimization Options): Add missing @gol.
8742 (Directory Options): Likewise.
8743 (i386 and x86-64 Options): Likewise.
8744 (RS6000 and PowerPC Options): Likewise.
8745 (i386 and x86-64 Windows Options): Likewise.
8746 (V850 Options): Add text missing from descriptions.
8748 2011-03-22 Richard Henderson <rth@redhat.com>
8750 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8751 (avr_incoming_return_addr_rtx): New.
8752 (emit_push_byte): New.
8753 (expand_prologue): Use it. Remove incorrect dwarf annotation for
8754 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
8755 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
8756 (emit_pop_byte): New.
8757 (expand_epilogue): Use it. Pop frame pointer by bytes.
8758 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8759 (INCOMING_RETURN_ADDR_RTX): New.
8760 (INCOMING_FRAME_SP_OFFSET): New.
8761 (ARG_POINTER_CFA_OFFSET): New.
8762 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8763 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8766 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8768 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8770 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8771 (FUNCTION_ARG_ADVANCE): Likewise.
8772 * tm.texi.in: Change references to them to hook references.
8773 * tm.texi: Regenerate.
8774 * targhooks.c (default_function_arg): Eliminate check for target
8776 (default_function_incoming_arg): Likewise.
8777 (default_function_arg_advance): Likewise.
8778 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8779 (function_arg_advance): Likewise.
8780 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8782 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8784 * tree.c (build_call_1): New function.
8785 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8787 2011-03-22 Richard Guenther <rguenther@suse.de>
8789 PR tree-optimization/48228
8790 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8791 for single-arg PHIs.
8793 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
8795 PR rtl-optimization/48143
8796 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8797 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8798 sse2_cvtps2pd): Likewise.
8800 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8802 * recog.c (canonicalize_change_group): Use validate_unshare_change.
8804 2011-03-22 Richard Guenther <rguenther@suse.de>
8806 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8807 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8808 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8809 and REALIGN_LOAD_EXPR.
8810 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8811 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8812 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8813 DOT_PROD_EXPR case ...
8814 (expand_expr_real_2): ... here.
8815 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8816 and REALIGN_LOAD_EXPR.
8817 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8818 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8819 (vect_create_epilog_for_reduction): Likewise.
8820 (vectorizable_reduction): Likewise.
8821 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8822 * tree-vect-stmts.c (vectorizable_load): Likewise.
8824 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8826 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8828 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8830 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8831 handling for PLTOFF/GOTOFF.
8833 2011-03-22 Nick Clifton <nickc@redhat.com>
8835 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8836 trailing backslash from the end of the macro definition.
8838 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8840 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8843 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8845 * expr.h (prepare_operand): Move to...
8846 * optabs.h (prepare_operand): ...here and change the insn code
8847 parameter from "int" to "enum insn_code".
8848 (insn_operand_matches): Declare.
8849 * expr.c (init_expr_target): Use insn_operand_matches.
8850 (compress_float_constant): Likewise.
8851 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8852 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8853 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8854 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8856 (gen_cond_trap): Likewise.
8857 (prepare_operand): Likewise. Change icode to an insn_code.
8858 (insn_operand_matches): New function.
8859 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8860 * reload1.c (gen_reload): Likewise.
8861 * targhooks.c (default_secondary_reload): Likewise.
8863 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8865 * config/alpha/alpha.md (unspec): New define_c_enum.
8868 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8871 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8872 between a call and its CALL_ARG_LOCATION note.
8874 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8876 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8878 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8882 * c-common.c (shorten_compare): If primopN is first sign-extended
8883 to opN and then zero-extended to result type, set primopN to opN.
8885 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8887 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8888 for barrier handlers.
8890 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8892 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8893 UNSPEC constants to be in the unspec enumeration, and redefine
8894 all UNSPECV constants to be in the unspecv enumeration, so that
8895 dumps print which unspec/unspec_volatile this is.
8896 * config/rs6000/vector.md (UNSPEC_*): Ditto.
8897 * config/rs6000/paired.md (UNSPEC_*): Ditto.
8898 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8899 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8900 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8902 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8903 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8904 UNSPECV_LWSYNC, since these are used as unspec_volatile.
8905 * config/rs6000/sync.md (isync, lwsync): Ditto.
8907 2011-03-21 Richard Guenther <rguenther@suse.de>
8909 * params.def (lto-min-partition): Fix typo.
8911 2011-03-21 Richard Guenther <rguenther@suse.de>
8914 * c-decl.c (grokdeclarator): Drop to the main variant only
8915 for array types. Drop flag_gen_aux_info check.
8917 2011-03-21 Richard Guenther <rguenther@suse.de>
8919 PR translation/47911
8920 * params.def (lto-partitions): Fix typo.
8921 (lto-min-partition): Fix wording.
8923 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
8925 * config/rs6000/t-freebsd: Remove duplication from file.
8927 2011-03-21 Richard Guenther <rguenther@suse.de>
8930 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8932 2011-03-21 Richard Guenther <rguenther@suse.de>
8935 * params.def (lto-partitions): Require at least 1 partition.
8937 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8939 * gthr-solaris.h: Remove.
8940 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8941 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8942 (LIB_SPEC): Likewise.
8943 * config/sol2.opt (threads): Remove.
8944 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8945 (sparc*-*-solaris2*): Likewise.
8946 * configure.ac (enable_threads): Enable solaris support.
8947 * configure: Regenerate.
8948 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8949 * doc/install.texi (Configuration, --enable-threads=lib): Remove
8952 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8954 * config.gcc: Obsolete *-*-solaris2.8*.
8955 * doc/install.texi (Specific, *-*-solaris2*): Document it.
8957 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8960 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8961 reference. Solaris 8 perl works.
8963 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8966 * doc/install.texi (Prerequisites): Move jar etc. up.
8967 Explain support library version requirements.
8969 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8972 * doc/install.texi (Prerequisites): Move Perl to build
8973 requirements. Always necessary on Solaris 2 with Sun ld.
8975 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8977 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8979 (Specific, i?86-*-solaris2.[89]): Likewise.
8980 (Specific, i?86-*-solaris2.10): Likewise.
8981 (Specific, mips-sgi-irix6): Likewise.
8982 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8983 Update for binutils 2.21.
8985 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8987 * configure.ac (gcc_cv_lto_plugin): Fix typo.
8988 Allow -fuse-linker-plugin for non-default plugin linker.
8989 * configure: Regenerate.
8991 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
8994 * gengtype.c (files_rules): Added rule for cp/parser.h.
8996 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8999 * config/s390/s390.c (s390_delegitimize_address): Don't call
9000 lowpart_subreg if orig_x has BLKmode.
9002 2011-03-21 Kai Tietz <ktietz@redhat.com>
9005 * doc/plugins.texi: Adjust documentation for plugin register_callback.
9006 * tree.h (attribute_spec): Add new member affects_type_identity.
9007 * attribs.c (empty_attribute_table): Adjust attribute_spec
9009 * config/alpha/alpha.c: Likewise.
9010 * config/arc/arc.c: Likewise.
9011 * config/arm/arm.c: Likewise.
9012 * config/avr/avr.c: Likewise.
9013 * config/bfin/bfin.c: Likewise.
9014 * config/crx/crx.c: Likewise.
9015 * config/darwin.h: Likewise.
9016 * config/h8300/h8300.c: Likewise.
9017 * config/i386/cygming.h: Likewise.
9018 * config/i386/i386.c: Likewise.
9019 * config/ia64/ia64.c: Likewise.
9020 * config/m32c/m32c.c: Likewise.
9021 * config/m32r/m32r.c: Likewise.
9022 * config/m68hc11/m68hc11.c: Likewise.
9023 * config/m68k/m68k.c: Likewise.
9024 * config/mcore/mcore.c: Likewise.
9025 * config/mep/mep.c: Likewise.
9026 * config/microblaze/microblaze.c: Likewise.
9027 * config/mips/mips.c: Likewise.
9028 * config/rs6000/rs6000.c: Likewise.
9029 * config/rx/rx.c: Likewise.
9030 * config/sh/sh.c: Likewise.
9031 * config/sol2.h: Likewise.
9032 * config/sparc/sparc.c: Likewise.
9033 * config/spu/spu.c: Likewise.
9034 * config/stormy16/stormy16.c: Likewise.
9035 * config/v850/v850.c: Likewise.
9037 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9039 * simplify-rtx.c (simplify_binary_operation_1): Handle
9040 (xor (and A B) C) case when B and C are both constants.
9042 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
9044 * tree-dfa.c (add_referenced_var): Fix typo in comment.
9046 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
9049 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9051 2011-03-20 Jakub Jelinek <jakub@redhat.com>
9053 PR rtl-optimization/48156
9054 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9055 assume df and df_lr are not NULL.
9057 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9060 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9061 between a call and its CALL_ARG_LOCATION note.
9063 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
9066 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9067 between a call and its corresponding CALL_ARG_LOCATION note.
9069 2011-03-19 Anatoly Sokolov <aesok@post.ru>
9071 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9072 instead of loop. Use HARD_REGISTER_NUM_P predicate.
9073 * haifa-sched.c (setup_ref_regs): Ditto.
9074 * caller-save.c (add_used_regs_1): Ditto.
9075 * dse.c (look_for_hardregs): Ditto.
9076 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9077 * sched-rgn.c (check_live_1): Ditto.
9079 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9081 * c-decl.c (diagnose_mismatched_decls): Give an error for
9082 redefining a typedef with variably modified type.
9084 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9086 * c-decl.c (grokfield): Don't allow typedefs for structures or
9087 unions with no tag by default.
9088 * doc/extend.texi (Unnamed Fields): Update.
9090 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
9092 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9093 Rewrite using indirect functions.
9094 (lwp_slwpcb): Ditto.
9095 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9096 (avx_vinsertf128<mode>): Ditto.
9098 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9100 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9103 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9105 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9106 splitting between a call and its corresponding CALL_ARG_LOCATION note.
9108 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9110 PR rtl-optimization/48170
9111 * gcse.c (hoist_code): Remove bogus asserts.
9113 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
9115 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9116 computation for prologue/epilogue.
9118 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9120 * Makefile.in (check-consistency): Remove.
9122 2011-03-18 Jakub Jelinek <jakub@redhat.com>
9125 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9126 arange_table_in_use is 0, but either text_section_used or
9127 cold_text_section_used is true. Don't call it if
9128 !info_section_emitted.
9130 2011-03-18 Anatoly Sokolov <aesok@post.ru>
9132 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9133 FUNCTION_VALUE_REGNO_P): Remove.
9134 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9136 * config/avr/avr.c (avr_ret_register): Make static inline.
9137 (avr_function_value_regno_p): New function.
9138 (avr_libcall_value): Make static. Add 'func' argument.
9139 (avr_function_value): Make static. Rename 'func' argument to
9140 'fn_decl_or_type', forward it to avr_libcall_value. Call
9141 avr_ret_register function instead of RET_REGISTER macro.
9142 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9144 2011-03-18 Jason Merrill <jason@redhat.com>
9147 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9149 2011-03-18 Richard Guenther <rguenther@suse.de>
9151 * doc/install.texi (--enable-gold): Remove.
9152 (--with-plugin-ld): Document.
9153 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9155 2011-03-18 Andrew Pinski <pinskia@gmail.com>
9158 * expr.c (optimize_bitfield_assignment_op): Revamp to work
9159 again after expansion changes.
9161 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
9163 * combine.c (try_combine): Do simplification only call of
9164 subst() on i2 even when i1 is present. Update comments.
9166 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
9168 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9169 and UNSPEC_PCREL_SYMOFF.
9171 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9173 * config/s390/s390.md: Use define_c_enum for the unspec constant
9176 2011-03-18 Richard Henderson <rth@redhat.com>
9177 Jakub Jelinek <jakub@redhat.com>
9180 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9181 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9183 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9186 * combine.c (cant_combine_insn_p): Don't check zero/sign
9187 extended hard registers.
9189 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9192 * combine.c (cant_combine_insn_p): Check zero/sign extended
9195 2011-03-17 Anatoly Sokolov <aesok@post.ru>
9197 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9198 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9199 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9200 Change return type to bool.
9201 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9203 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9206 * var-tracking.c (prepare_call_arguments): If CALL target
9207 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9208 pc instead of looking it up using cselib_lookup and use
9209 Pmode for it if x has VOIDmode.
9210 * dwarf2out.c (gen_subprogram_die): If also both first and
9211 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9214 * function.c (assign_parms): For data.passed_pointer parms
9215 use MEM of data.entry_parm instead of data.entry_parm itself
9216 as DECL_INCOMING_RTL.
9217 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9218 also when passed and declared mode is the same, DECL_RTL
9219 is a MEM with pseudo as address and DECL_INCOMING_RTL is
9222 2011-03-16 Jeff Law <law@redhat.com>
9224 PR rtl-optimization/37273
9225 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9226 handle them like argument loads from stack slots. Do not double
9227 count memory for memory constants and argument loads from stack slots.
9229 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9232 * var-tracking.c (prepare_call_arguments): Check SUBREG.
9234 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9237 * config/i386/i386.opt: Add Save to -mavx and -mfma.
9239 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9242 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9244 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9245 Clear call_arg_locations and call_arg_loc_last always.
9248 * var-tracking.c (prepare_call_arguments): If argument needs to be
9249 passed by reference, adjust argtype and mode.
9251 2011-03-17 Richard Guenther <rguenther@suse.de>
9254 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9255 a value make sure to fold the statement.
9257 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
9260 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9261 return condition with !cfun->calls_alloca.
9263 2011-03-17 Richard Guenther <rguenther@suse.de>
9266 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9267 origin for decls in other ltrans units.
9268 (input_varpool_node): Likewise.
9270 2011-03-17 Richard Guenther <rguenther@suse.de>
9273 * tree-object-size.c (compute_object_offset): Properly return
9274 the offset operand of MEM_REFs as sizetype.
9276 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9278 PR rtl-optimization/48141
9279 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9280 * dse.c: Include params.h.
9281 (active_local_stores_len): New variable.
9282 (add_wild_read, dse_step1): Clear it when setting active_local_stores
9284 (record_store, check_mem_read_rtx): Decrease it when removing
9286 (scan_insn): Likewise. Increase it when adding to chain, if it
9287 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9288 set active_local_stores to NULL before the addition.
9289 * Makefile.in (dse.o): Depend on $(PARAMS_H).
9291 PR rtl-optimization/48141
9292 * dse.c (record_store): If no positions are needed in an insn
9293 that cannot be deleted, at least unchain it from active_local_stores.
9295 2011-03-16 Dodji Seketeli <dodji@redhat.com>
9298 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9299 (lookup_type_die_strip_naming_typedef): ... here.
9300 (get_context_die): Use it.
9301 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9302 the anonymous struct named by the naming typedef.
9304 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
9307 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9308 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9310 2011-03-16 Jeff Law <law@redhat.com>
9312 * tree-vrp.c (identify_jump_threads): Slightly simplify type
9313 check for operands of conditional. Allow type to be a pointer.
9315 2011-03-16 Richard Guenther <rguenther@suse.de>
9317 PR tree-optimization/48149
9318 * fold-const.c (fold_binary_loc): Fold
9319 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9321 2011-03-16 Richard Guenther <rguenther@suse.de>
9323 PR tree-optimization/26134
9324 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9325 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9326 (non_rewritable_mem_ref_base): Handle complex type component
9327 accesses, constrain offsets for vector and complex extracts
9330 2011-03-16 Richard Guenther <rguenther@suse.de>
9332 PR tree-optimization/48146
9333 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9334 operands avoiding the need for renaming.
9336 2011-03-16 Richard Guenther <rguenther@suse.de>
9338 * gimple-fold.c (maybe_fold_reference): Open-code relevant
9339 constant folding. Move MEM_REF canonicalization first.
9340 Rely on fold_const_aggregate_ref for initializer folding.
9341 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9343 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9346 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9347 arg0/arg1 or their arguments are always fold converted to matching
9350 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9353 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9356 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9357 Handle in-tree gold.
9358 (ld_vers): Extract binutils version for gold.
9359 (gcc_cv_ld_hidden): Handle gold here.
9360 (gcc_cv_lto_plugin): Determine level of linker plugin support.
9361 * configure: Regenerate.
9362 * config.in: Regenerate.
9363 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9364 -fuse-linker-plugin otherwise.
9365 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
9366 (LINK_COMMAND_SPEC): Use it.
9367 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9369 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9371 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9372 * calls.c: Remove debug.h include.
9373 (emit_call_1): Don't call virtual_call_token debug hook.
9374 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9375 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9376 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9377 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9378 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9379 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9380 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9381 dwarf2out_virtual_call): Remove.
9382 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9383 copy_call_info and virtual_call hooks.
9384 (dwarf2out_init): Don't initialize vcall_insn_table,
9385 debug_dcall_section and debug_vcall_section.
9386 (prune_unused_types): Don't mark nodes from dcall_table.
9387 (dwarf2out_finish): Don't output dcall or vcall tables.
9388 * final.c (final_scan_insn): Don't call direct_call or
9389 virtual_call debug hooks.
9390 * debug.h (struct gcc_debug_hooks): Remove direct_call,
9391 virtual_call_token, copy_call_info and virtual_call hooks.
9392 (debug_nothing_uid): Remove prototype.
9393 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9394 copy_call_info and virtual_call hooks.
9395 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9396 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9397 * debug.c (do_nothing_debug_hooks): Likewise.
9398 (debug_nothing_uid): Remove.
9399 * doc/invoke.texi (-fenable-icf-debug): Remove.
9400 * common.opt (-fenable-icf-debug): Likewise.
9402 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9403 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9404 call's MEM. Handle functions returning aggregate through a hidden
9405 first pointer. For virtual calls add clobbered pc to call arguments
9407 * dwarf2out.c (gen_subprogram_die): Emit
9408 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9412 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9413 * rtl.h (ENTRY_VALUE_EXP): Define.
9414 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9415 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9416 * print-rtl.c (print_rtx): Likewise.
9417 * gengtype.c (adjust_field_rtx_def): Likewise.
9418 * var-tracking.c (vt_add_function_parameter): Adjust
9419 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9420 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9421 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9422 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9423 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9425 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9426 Call var_location debug hook even on CALL_INSNs.
9427 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9428 * rtl.def (ENTRY_VALUE): New.
9429 * dwarf2out.c: Include cfglayout.h.
9430 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9431 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9432 (struct call_arg_loc_node): New type.
9433 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9434 tail_call_site_count): New variables.
9435 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9436 DW_TAG_GNU_call_site_parameter.
9437 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9438 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9439 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9440 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9441 and DW_AT_GNU_all_source_call_sites.
9442 (mem_loc_descriptor): Handle ENTRY_VALUE.
9443 (add_src_coords_attributes): Don't add enything if
9444 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9445 (dwarf2out_abstract_function): Save and clear call_arg_location,
9446 call_site_count and tail_call_site_count around dwarf2out_decl call.
9447 (gen_call_site_die): New function.
9448 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9449 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9450 (dwarf2out_function_decl): Clear call_arg_locations,
9451 call_arg_loc_last, set call_site_count and tail_call_site_count
9452 to -1 and free block_map.
9453 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9454 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
9455 followed by any real instructions.
9456 (dwarf2out_begin_function): Set call_site_count and
9457 tail_call_site_count to 0.
9458 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9459 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9460 attempt to force a DIE for it and worst case remove the attribute.
9461 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9462 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9464 * var-tracking.c: Include tm_p.h.
9465 (vt_stack_adjustments): For calls call note_register_arguments.
9466 (argument_reg_set): New variable.
9467 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9468 ensure the VALUE is resolved.
9469 (call_arguments): New variable.
9470 (prepare_call_arguments): New function.
9471 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9472 (struct expand_loc_callback_data): Add ignore_cur_loc field.
9473 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9474 always use the best expression.
9475 (vt_expand_loc): Add ignore_cur_loc argument.
9476 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9477 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9478 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9480 (vt_add_function_parameter): Use cselib_lookup_from_insn.
9481 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9482 argument. Don't call cselib_preserve_only_values and
9484 (note_register_arguments): New function.
9485 (vt_initialize): Compute argument_reg_set. Call
9486 vt_add_function_parameters before processing basic blocks instead of
9487 afterwards. For calls call prepare_call_arguments before calling
9488 cselib_process_insn.
9489 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9490 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9491 (var-tracking.o): Depend on $(TM_P_H).
9492 * cfglayout.h (insn_scope): New prototype.
9493 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9494 * cfglayout.c (insn_scope): No longer static.
9495 * insn-notes.def (CALL_ARG_LOCATION): New.
9496 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9497 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9498 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9499 nothing for DECL_EXTERNAL BLOCK_VARS.
9501 2011-03-16 Alan Modra <amodra@gmail.com>
9504 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9505 create invalid offset address for vsx splat insn.
9506 * config/rs6000/predicates.md (splat_input_operand): New.
9507 * config/rs6000/vsx.md (vsx_splat_*): Use it.
9509 2011-03-15 Xinliang David Li <davidxl@google.com>
9512 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9513 (normalize_preds): New function.
9514 (is_use_properly_guarded): Normalize def predicates.
9516 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9519 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9520 in the output template.
9522 2011-03-15 Richard Guenther <rguenther@suse.de>
9525 * tree-pretty-print.c (dump_function_declaration): Properly
9526 dump unprototyped and varargs function types.
9528 2011-03-15 Richard Guenther <rguenther@suse.de>
9530 PR tree-optimization/13954
9531 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9534 2011-03-15 Richard Guenther <rguenther@suse.de>
9536 PR tree-optimization/48037
9537 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9538 selects into BIT_FIELD_REFs.
9539 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9542 2011-03-15 Jakub Jelinek <jakub@redhat.com>
9544 PR tree-optimization/48129
9545 * builtins.c (fold_builtin_snprintf): Convert to type of
9546 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9547 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9549 2011-03-15 Richard Guenther <rguenther@suse.de>
9551 PR tree-optimization/41490
9552 * tree-ssa-dce.c (propagate_necessity): Handle returns without
9553 value but with VUSE.
9554 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9556 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9557 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9558 * tree-tailcall.c (find_tail_calls): Ignore returns.
9560 2011-03-15 Richard Guenther <rguenther@suse.de>
9563 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9564 or variable-indexed array accesses when in gimple form.
9566 2011-03-15 Richard Guenther <rguenther@suse.de>
9568 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9570 2011-03-15 Alan Modra <amodra@gmail.com>
9573 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9574 presume symbol_refs without a symbol_ref_decl are suitably
9575 aligned, nor other trees we may see here. Handle anchor symbols.
9576 (legitimate_constant_pool_address_p): Comment. Add mode param.
9577 Check cmodel=medium addresses. Adjust all calls.
9578 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9579 creating cmodel=medium optimized access to locals.
9580 * config/rs6000/constraints.md (R): Pass QImode to
9581 legitimate_constant_pool_address_p.
9582 * config/rs6000/predicates.md (input_operand): Pass mode to
9583 legitimate_constant_pool_address_p.
9584 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9587 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9590 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9591 64-bit constants being loaded into registers other than GPRs such
9592 as loading 0 into a VSX register.
9594 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9596 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9598 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9601 * builtins.c (fold_builtin_snprintf): New function.
9602 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9603 (fold_builtin_4): Likewise.
9606 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9607 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
9608 and C - X == X also strip nops from +/-/p+ operand.
9609 When optimizing -X == C, fold C to arg0's type.
9612 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9613 emit it as add_AT_int instead of add_AT_unsigned.
9615 2011-03-14 Tom Tromey <tromey@redhat.com>
9617 * unwind-dw2.c: Include sys/sdt.h if it exists.
9618 (_Unwind_DebugHook): Use STAP_PROBE2.
9619 * config.in, configure: Rebuild.
9620 * configure.ac: Check for sys/sdt.h.
9622 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
9624 * config/i386/i386.md (ROUND_FLOOR): New constant.
9625 (ROUND_CEIL): Ditto.
9626 (ROUND_TRUNC): Ditto.
9627 (ROUND_MXCSR): Ditto.
9628 (ROUND_NO_EXC): Ditto.
9629 (rint<mode>2): Use new defines instead of numerical constants.
9630 (floor<mode>2): Ditto.
9631 (ceil<mode>2): Ditto.
9632 (btrunc<mode>2): Ditto.
9633 * config/i386/i386-builtin-types.def: Define ROUND function type
9635 * config/i386/i386.c (enum ix86_builtins): Add
9636 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9637 (struct builtin_description): Add
9638 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9639 (ix86_expand_sse_round): New static function.
9640 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9642 (ix86_builtin_vectorized_function): Handle
9643 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9645 2011-03-14 Tom Tromey <tromey@redhat.com>
9647 * c-parser.c (c_parser_asm_string_literal): Clear
9648 warn_overlength_strings.
9650 2011-03-14 Tom Tromey <tromey@redhat.com>
9652 * c-parser.c (disable_extension_diagnostics): Save
9653 warn_overlength_strings.
9654 (restore_extension_diagnostics): Restore warn_overlength_strings.
9656 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9658 * BASE-VER: Change to 4.7.0.
9660 2011-03-14 Richard Guenther <rguenther@suse.de>
9663 * tree.c (build_vector_from_val): Adjust assert to requirements
9666 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9669 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9671 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
9673 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9674 terms of target_flags_explicit. Adjust copyright year.
9676 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9677 * config/rs6000/t-freebsd: New file. Add override for
9680 2011-03-13 Chris Demetriou <cgd@google.com>
9682 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9683 (-fno-diagnostics-show-option): this, to reflect current default.
9684 (-Werror=): Update text about -fno-diagnostics-show-option.
9686 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
9689 * config/rs6000/predicates.md (easy_vector_constant_add_self,
9690 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9691 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9692 mode is not V2DImode or V2DFmode.
9693 (vspltis_constant): Do not handle V2DImode and V2DFmode.
9694 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9695 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9697 (movdi_internal64): Likewise.
9699 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
9701 PR tree-optimization/47127
9702 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9704 (set_cloog_options): Same.
9705 (scop_to_clast): Same.
9706 (print_clast_stmt): Do not call cloog_state_malloc and
9708 (print_generated_program): Same.
9710 * graphite-clast-to-gimple.h (cloog_state): Declared.
9711 (scop_to_clast): Adjust declaration.
9712 * graphite.c (cloog_state): Defined here.
9713 (graphite_initialize): Call cloog_state_malloc.
9714 (graphite_finalize): Call cloog_state_free.
9716 2011-03-11 Jason Merrill <jason@redhat.com>
9718 * attribs.c (lookup_attribute_spec): Take const_tree.
9721 2011-03-11 Joseph Myers <joseph@codesourcery.com>
9723 * config/sparc/sparc.c (sparc_option_override): Use
9724 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9726 2011-03-11 Richard Guenther <rguenther@suse.de>
9728 PR tree-optimization/48067
9729 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9730 multiplication result will be only used once on the target
9733 2011-03-11 Richard Guenther <rguenther@suse.de>
9735 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9737 2011-03-11 Richard Guenther <rguenther@suse.de>
9740 * tree.c (find_decls_types_r): Do not walk types only reachable
9741 from IDENTIFIER_NODEs.
9743 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9746 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9747 all vnode->force_output nodes as needed.
9749 2011-03-11 Jason Merrill <jason@redhat.com>
9752 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9753 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9755 2011-03-11 Martin Jambor <mjambor@suse.cz>
9757 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9760 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9762 PR tree-optimization/48063
9763 * ipa-inline.c (cgraph_decide_inlining): Don't try to
9764 inline functions called once if !tree_can_inline_p (node->callers).
9766 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9768 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9770 * config/score/score3.c: Delete.
9771 * config/score/score3.h: Delete.
9772 * config/score/mul-div.S: Delete.
9773 * config/score/sfp-machine.h: Add new file.
9774 * config/score/constraints.md: Add new file.
9775 * config/score/t-score-softfp: Add new file.
9776 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9777 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9778 (score7_extra_constraint): Delete.
9779 (score7_option_override): Remove unused code.
9780 * config/score/score.c: Remove score3 and score5 define and code.
9781 * config/score/score.h: Remove score3 and score5 define and code.
9782 * config/score/score.md: Remove score3 template and unusual insn.
9783 * config/score/score.opt: Remove score3 and score5 options.
9785 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9787 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9788 when _HPUX_SOURCE is defined.
9789 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9791 2011-03-10 Jason Merrill <jason@redhat.com>
9794 * stor-layout.c (layout_type): Don't set structural equality
9795 on arrays of incomplete type.
9796 * tree.c (type_hash_eq): Handle comparing them properly.
9798 2011-03-10 Jakub Jelinek <jakub@redhat.com>
9801 * config/s390/s390.c (s390_delegitimize_address): Make sure the
9802 result mode matches original rtl mode.
9804 2011-03-10 Nick Clifton <nickc@redhat.com>
9806 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9807 (andsi3, andsi3_flags): Fix timings for three operand alternative.
9809 2011-03-09 Jakub Jelinek <jakub@redhat.com>
9811 PR rtl-optimization/47866
9812 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9813 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9814 if target wasn't scalar.
9815 * function.c (assign_stack_temp_for_type): Assert that neither
9816 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9817 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9819 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9821 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9823 * config/s390/s390-protos.h (s390_label_align): New prototype.
9824 * config/s390/s390.c (s390_label_align): New function.
9825 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9827 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9830 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9831 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9832 (output_vec_const_move): Ditto.
9834 2011-03-08 Anatoly Sokolov <aesok@post.ru>
9836 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9837 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9838 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9839 Change 'rclass' argument and result type to reg_class_t.
9840 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9842 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
9844 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9845 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9846 (TARGET_MEMORY_MOVE_COST): Define.
9847 (avr_register_move_cost, avr_memory_move_cost): New Functions.
9849 2011-03-08 Jakub Jelinek <jakub@redhat.com>
9852 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9855 PR tree-optimization/48022
9856 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9859 2011-03-07 Jakub Jelinek <jakub@redhat.com>
9862 * var-tracking.c (find_use_val): Return NULL for
9863 cui->sets && cui->store_p BLKmode MEMs.
9865 2011-03-07 Anatoly Sokolov <aesok@post.ru>
9867 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9869 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9870 xstormy16_print_operand_address): Remove.
9871 * config/stormy16/stormy16.c (xstormy16_print_operand,
9872 xstormy16_print_operand_address): Make static.
9873 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9875 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
9878 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9879 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9882 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
9885 * cfgloopmanip.c (fix_bb_placements): Return immediately
9886 if FROM is BASE_LOOP's header.
9888 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
9890 * gimplify.c (gimplify_function_tree): Fix building calls
9891 to __builtin_return_address.
9893 2011-03-07 Alan Modra <amodra@gmail.com>
9895 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9896 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9897 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9898 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9900 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9901 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9902 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9903 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9904 * config/rs6000/rs6000.c
9905 (rs6000_elf_end_indicate_exec_stack): Rename to..
9906 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
9907 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
9908 (rs6000_file_start): ..here.
9909 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9910 file scope variables.
9911 (call_ABI_of_interest): New function.
9912 (init_cumulative_args): Set above vars when function return value
9913 is a float, vector, or small struct.
9914 (rs6000_function_arg_advance_1): Likewise for function args.
9915 (rs6000_va_start): Set rs6000_passes_float if variable arg function
9916 references float args.
9918 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
9920 * doc/cfg.texi: Remove "See" before @ref.
9921 * doc/invoke.texi: Likewise.
9923 2011-03-05 Jason Merrill <jason@redhat.com>
9925 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9927 2011-03-05 Anthony Green <green@moxielogic.com>
9929 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9931 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
9933 PR rtl-optimization/47899
9934 * cfgloopmanip.c (fix_bb_placements): Fix first argument
9935 to flow_loop_nested_p when moving the loop upward.
9937 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
9940 * arm.md (movhi_insn_arch4): Accept any immediate constant.
9942 2011-03-05 Jakub Jelinek <jakub@redhat.com>
9944 PR tree-optimization/47967
9945 * ipa-cp.c (build_const_val): Return NULL instead of creating
9946 VIEW_CONVERT_EXPR for mismatching sizes.
9947 (ipcp_create_replace_map): Return NULL if build_const_val failed.
9948 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9949 give up on versioning.
9951 2011-03-05 Alan Modra <amodra@gmail.com>
9954 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9955 full cmodel medium/large lo_sum + high addresses.
9957 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9959 * config/s390/s390.c (s390_decompose_address): Reject non-literal
9960 pool references in UNSPEC_LTREL_OFFSET.
9962 2011-03-04 Jan Hubicka <jh@suse.cz>
9965 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9966 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9967 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9969 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9970 cgraph_add_thunk): Add node pointers.
9971 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9972 associated to right node.
9973 (input_node): Update use of cgraph_same_body_alias
9974 and cgraph_add_thunk.
9976 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
9978 * config/i386/i386.opt (mprefer-avx128): New flag.
9979 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9980 modes when the flag -mprefer-avx128 is on.
9982 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
9984 * dwarf2out.c (compare_loc_operands): Fix address handling.
9986 2011-03-04 Alan Modra <amodra@gmail.com>
9988 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9990 2011-03-04 Richard Guenther <rguenther@suse.de>
9993 * expmed.c (extract_bit_field_1): Prefer vector modes that
9994 vec_extract patterns can handle.
9996 2011-03-04 Richard Guenther <rguenther@suse.de>
9999 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10001 2011-03-04 Richard Henderson <rth@redhat.com>
10003 * explow.c (emit_stack_save): Remove 'after' parameter.
10004 (emit_stack_restore): Likewise.
10005 * expr.h: Update to match.
10006 * builtins.c, calls.c, stmt.c: Likewise.
10007 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10008 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10009 * function.c (expand_function_end): Insert the emit_stack_save
10010 sequence before parm_birth_insn instead of after.
10012 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
10014 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10015 (ssse3_pmaddubsw128): Ditto.
10016 (ssse3_pmaddubsw): Ditto.
10018 2011-03-03 Steve Ellcey <sje@cup.hp.com>
10020 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10022 2011-03-03 Jakub Jelinek <jakub@redhat.com>
10025 * gimplify.c (omp_add_variable): Only call omp_notice_variable
10026 on TYPE_SIZE_UNIT if it is a DECL.
10029 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10030 first operand is not is_gimple_mem_ref_addr, try to fold it.
10031 If the operand still isn't is_gimple_mem_ref_addr, clear
10034 2011-03-03 Richard Guenther <rguenther@suse.de>
10036 PR middle-end/47283
10037 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10039 (refs_may_alias_p_1): For release branches return true if
10040 we are confused by our input.
10042 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10044 * config/s390/s390.c (s390_function_value): Rename to ...
10045 (s390_function_and_libcall_value): ... this.
10046 (s390_function_value): New function.
10047 (s390_libcall_value): New function.
10048 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10049 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10050 target macro definitions.
10051 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10053 2011-03-02 Joseph Myers <joseph@codesourcery.com>
10055 * config/i386/freebsd64.h (CC1_SPEC): Define.
10056 * config/i386/linux64.h (CC1_SPEC): Define.
10057 * config/i386/x86-64.h (CC1_SPEC): Don't define.
10059 2011-03-02 Anatoly Sokolov <aesok@post.ru>
10061 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10063 * config/stormy16/stormy16.c: Include reload.h.
10064 (xstormy16_memory_move_cost): New function.
10065 (TARGET_MEMORY_MOVE_COST): Define.
10067 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
10069 PR rtl-optimization/47925
10070 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10071 with side effects. Remove the more-specific check for volatile asms.
10073 2011-03-02 Alan Modra <amodra@gmail.com>
10076 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10077 toc relative addresses for valid offsets.
10079 2011-03-01 Richard Guenther <rguenther@suse.de>
10081 PR tree-optimization/47890
10082 * tree-vect-loop.c (get_initial_def_for_induction): Set
10083 related stmt properly.
10085 2011-03-01 Richard Guenther <rguenther@suse.de>
10088 * lto-streamer.c (lto_record_common_node): Also register
10089 the canonical type.
10091 2011-03-01 Richard Guenther <rguenther@suse.de>
10094 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10095 Do not stream DECL_ABSTRACT_ORIGIN.
10096 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10097 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10098 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10099 Do not stream DECL_ABSTRACT_ORIGIN.
10100 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10101 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10103 2011-02-28 Anatoly Sokolov <aesok@post.ru>
10105 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10106 FUNCTION_VALUE_REGNO_P): Remove.
10107 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10108 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10109 Add 'outgoing' argument.
10110 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10112 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10113 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10115 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
10118 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10119 (lookup_filename): Likewise.
10120 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10122 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
10123 Jakub Jelinek <jakub@redhat.com>
10125 PR middle-end/47893
10126 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10127 (assign_stack_local_1): Change last argument type to int.
10128 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10129 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
10130 don't record padding space into frame_space_list nor use those areas.
10131 (assign_stack_local): Adjust caller.
10132 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10133 of assign_stack_local, pass 0 as last argument.
10134 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10137 2011-02-28 Jakub Jelinek <jakub@redhat.com>
10140 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10141 Use target address_mode and pointer_mode hooks instead of hardcoded
10142 Pmode and ptr_mode. Handle some simple cases of extending if
10143 POINTERS_EXTEND_UNSIGNED < 0.
10144 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10145 Call convert_debug_memory_address.
10146 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10147 convert_debug_memory_address.
10149 PR middle-end/46790
10150 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10151 * configure: Regenerated.
10152 * config.in: Regenerated.
10153 * varasm.c (default_function_section): Return NULL
10154 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10156 2011-02-28 Martin Jambor <mjambor@suse.cz>
10158 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10159 the description to match the printed values.
10161 2011-02-28 Richard Guenther <rguenther@suse.de>
10163 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10164 of the copied scope tree.
10166 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10168 * doc/extend.texi (Function Attributes): Avoid deeply (and
10169 wrongly) nested tables.
10171 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10173 PR middle-end/47903
10174 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10175 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10176 r isn't op0 nor op1.
10178 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10180 * config/avr/avr.md: Remove magic comment for emacs.
10182 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10185 * config/avr/avr.c (avr_option_override): Use error on bad options.
10186 (avr_help): New function.
10187 (TARGET_HELP): Define.
10189 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
10192 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10193 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10195 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
10197 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10198 (ARM Options): Ditto.
10199 (i386 and x86-64 Options): Ditto.
10200 (RX Options): Ditto.
10201 (SPARC Options): Ditto.
10203 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
10205 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10206 FreeBSD 6 and later. Generally use cpu generic.
10208 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
10210 * doc/cpp.texi: Update copyright years.
10212 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
10215 * config/lm32/lm32.md (ashrsi3): Added needed variable.
10217 2011-02-25 Jon Beniston <jon@beniston.com>
10220 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10221 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10222 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10223 (lm32_block_move_inline): Add type cast to remove warning.
10224 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10225 (gen_int_relational): Move declarations to start of function.
10227 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
10229 PR tree-optimization/45470
10230 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10231 can throw internally only.
10232 * tree-vect-stmts.c (vectorizable_call): Likewise.
10234 2011-02-24 Anatoly Sokolov <aesok@post.ru>
10236 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10237 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10238 * config/stormy16/stormy16-protos.h
10239 (xstormy16_preferred_reload_class): Remove.
10240 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10241 static. Change 'rclass' argument and return type to reg_class_t.
10242 (TARGET_PREFERRED_RELOAD_CLASS,
10243 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10245 2011-02-24 Richard Guenther <rguenther@suse.de>
10247 * lto-streamer-in.c (input_bb): Do not find referenced vars
10248 in debug statements.
10250 2011-02-23 Jason Merrill <jason@redhat.com>
10252 * common.opt (fabi-version): Document v5 and v6.
10254 2011-02-23 Richard Guenther <rguenther@suse.de>
10256 PR tree-optimization/47849
10257 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10259 2011-02-23 Jie Zhang <jie@codesourcery.com>
10261 * opts-common.c (decode_cmdline_option): Print empty string
10262 argument as "" in decoded->orig_option_with_args_text.
10263 * gcc.c (execute): Print empty string argument as ""
10264 in the verbose output.
10265 (do_spec_1): Keep empty string argument.
10267 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
10269 * config.gcc: Declare score-* and crx-* obsolete.
10271 2011-02-23 Jie Zhang <jie@codesourcery.com>
10273 PR rtl-optimization/47763
10274 * web.c (web_main): Ignore naked clobber when replacing register.
10276 2011-02-22 Anatoly Sokolov <aesok@post.ru>
10278 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10281 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
10284 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10286 2011-02-22 Mike Stump <mikestump@comcast.net>
10288 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10290 * configure: Regenerate.
10292 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
10294 PR rtl-optimization/46002
10295 * ira-color.c (update_copy_costs): Change class intersection
10296 test to reg_class_contents[] test of 'hard_regno'.
10298 2011-02-21 Joseph Myers <joseph@codesourcery.com>
10300 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10301 than Driver option.
10302 * config/hpux11.opt (mt): Likewise.
10303 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10304 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10305 * config/vax/elf.opt (mno-asm-pic): Likewise.
10306 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10308 2011-02-21 Mike Stump <mikestump@comcast.net>
10311 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10312 tree so we can get save the type.
10313 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10314 for CFString instead of trying to use past the end of the builtins.
10315 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10316 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10317 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10318 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10319 Rename to darwin_builtin_cfstring.
10320 (darwin_init_cfstring_builtins): Return the built type.
10322 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
10325 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10326 (_mm256_insert_epi64): Use _mm_insert_epi64.
10328 2011-02-21 Anatoly Sokolov <aesok@post.ru>
10330 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10331 * config/stormy16/stormy16-protos.h
10332 (xstormy16_mode_dependent_address_p): Remove.
10333 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10334 Make static. Change return type to bool. Change argument type to
10335 const_rtx. Remove dead code.
10336 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10338 2011-02-21 Richard Guenther <rguenther@suse.de>
10341 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10342 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10343 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10345 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10346 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10348 2011-02-20 Richard Guenther <rguenther@suse.de>
10351 * tree.c (free_lang_data_in_decl): Clean builtins from
10352 the TU decl BLOCK_VARS.
10354 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
10358 * haifa-sched.c (fix_tick_ready): Skip tick computation
10361 2011-02-19 Richard Guenther <rguenther@suse.de>
10364 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10365 Remove lazy BLOCK_VARS streaming.
10366 (lto_input_ts_block_tree_pointers): Likewise.
10367 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10369 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10371 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10373 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10375 * config/i386/biarch32.h, config/i386/mach.h,
10376 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10378 2011-02-19 Jakub Jelinek <jakub@redhat.com>
10381 * config/i386/i386.md (peephole2 for shift and plus): Use
10382 operands[1] original mode in the first insn.
10384 2011-02-18 Mike Stump <mikestump@comcast.net>
10386 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10388 2011-02-18 Jan Hubicka <jh@suse.cz>
10390 PR middle-end/47788
10391 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10392 to zero when the function is not inlinable at all.
10394 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10396 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10397 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10398 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10399 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10400 * config/pa/t-pa64: Likewise.
10401 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10403 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10406 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10408 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10411 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10413 2011-02-18 Anatoly Sokolov <aesok@post.ru>
10415 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10416 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10417 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10418 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10419 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10420 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10421 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10422 m32r_load_postinc_p, m32r_store_preinc_predec_p,
10423 m32r_legitimate_address_p): New functions.
10424 * config/m32r/constraints.md (constraint "S"): Don't use
10425 STORE_PREINC_PREDEC_P.
10426 (constraint "U"): Don't use LOAD_POSTINC_P.
10428 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
10430 PR rtl-optimization/46178
10431 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10432 compute ira_hard_regno_cover_class[].
10434 2011-02-18 Richard Guenther <rguenther@suse.de>
10437 * lto-streamer.h (lto_global_var_decls): Declare.
10438 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10439 statics for global var processing.
10441 2011-02-18 Richard Guenther <rguenther@suse.de>
10443 PR tree-optimization/47737
10444 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10445 edge dominance check.
10447 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10450 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10451 avoid invalid rtx sharing.
10453 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
10455 * doc/cpp.texi (Obsolete Features): Add background on the
10456 origin of assertions.
10458 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
10460 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10462 * config/darwin.c (output_objc_section_asm_op): Added support for
10464 (is_objc_metadata): New.
10465 (darwin_objc2_section): New.
10466 (darwin_objc1_section): New.
10467 (machopic_select_section): Added support for ABI v1 and v2.
10468 (darwin_emit_objc_zeroed): New.
10469 (darwin_output_aligned_bss): Detect objc metadata and treat it
10471 (darwin_asm_output_aligned_decl_common): Same.
10472 (darwin_asm_output_aligned_decl_local): Same.
10473 * config/darwin-sections.def: Updated for ABI v1 and v2.
10474 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10475 compiling Objective-C code for the NeXT runtime, default to using
10476 ABI version 0 for 32-bit, and version 2 for 64-bit.
10478 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10480 * common.opt (optimize_fast): New Variable.
10481 * opts.c (default_options_optimization): Use opts->x_optimize_fast
10482 instead of local variable ofast.
10484 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
10486 * doc/invoke.texi (fobjc-abi-version): Documented.
10487 (fobjc-nilcheck): Documented.
10488 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10491 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10494 * common.opt (export-dynamic): New Driver option.
10495 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10497 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10499 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10501 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
10502 Jan Hubicka <jh@suse.cz>
10506 * cfgexpand.c (account_used_vars_for_block): Remove.
10507 (estimated_stack_frame_size): Use referenced vars.
10508 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10509 that were referenced in the original function. Test src_fn
10510 rather than cfun. Drop redundant get_var_ann.
10511 (setup_one_parameter): Drop redundant get_var_ann.
10512 (declare_return_variable): Likewise.
10513 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10514 (copy_arguments_for_versioning): Drop redundant get_var_ann.
10515 * ipa-inline.c (compute_inline_parameters): Do not compute
10516 disregard_inline_limits here.
10517 (compute_inlinable_for_current, pass_inlinable): New.
10518 (pass_inline_parameters): Require PROP_referenced_vars.
10519 * cgraphunit.c (cgraph_process_new_functions): Don't run
10520 compute_inline_parameters explicitly unless function is in SSA form.
10521 (cgraph_analyze_function): Set .disregard_inline_limits.
10522 * tree-sra.c (convert_callers): Compute inliner parameters
10523 only for functions already in SSA form.
10525 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10527 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10528 -mlittle-endian-data.
10530 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10532 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10533 -mno-fpu, not -fpu and -no-fpu.
10534 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10535 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10537 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
10540 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10541 input reload with PLUS RTX.
10543 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10545 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10546 of InverseVar(MDMX).
10548 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10550 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10553 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10555 * config/mn10300/mn10300.opt (mno-crt0): New.
10557 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10559 * config/m68k/uclinux.opt (static-libc): New Driver option.
10561 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10563 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10565 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10567 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10568 %{muser-extend-enabled}.
10570 2011-02-16 Richard Guenther <rguenther@suse.de>
10572 PR tree-optimization/47738
10573 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10574 the TODO from tree_predictive_commoning.
10576 2011-02-15 Jeff Law <law@redhat.com>
10579 2011-01-25 Jeff Law <law@redhat.com>
10581 PR rtl-optimization/37273
10582 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10583 handle them like argument loads from stack slots. Do not double
10584 count memory for memory constants and argument loads from stack slots.
10586 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10588 PR middle-end/47725
10589 * combine.c (cant_combine_insn_p): Revert the last change.
10591 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10594 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10595 mode for vector constants. Remove code that checks for TImode.
10597 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10601 * cgraph.h (compute_inline_parameters): Return void.
10602 * ipa-inline.c (compute_inline_parameters): Adjust.
10604 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10608 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10610 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10611 * ipa-inline.c (compute_inline_parameters): Adjust.
10613 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10617 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10618 Adjust all users. Pass FN to...
10619 * tree-flow-inline.h (first_referenced_var): ... this. Add
10621 * ipa-struct-reorg.c: Adjust.
10622 * tree-dfa.c: Adjust.
10623 * tree-into-ssa.c: Adjust.
10624 * tree-sra.c: Adjust.
10625 * tree-ssa-alias.c: Adjust.
10626 * tree-ssa-live.c: Adjust.
10627 * tree-ssa.c: Adjust.
10628 * tree-ssanames.c: Adjust.
10629 * tree-tailcall.c: Adjust.
10631 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10635 * tree-flow.h (referenced_var_lookup): Add fn parameter.
10636 Adjust all callers.
10637 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10638 * tree-flow-inline.h: Adjust.
10639 * gimple-pretty-print.c: Adjust.
10640 * tree-into-ssa.c: Adjust.
10641 * tree-ssa.c: Adjust.
10642 * cfgexpand.c: Adjust.
10644 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10646 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10647 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10648 (EXTRA_CONSTRAINT): Delete.
10649 * config/iq2000/constraints.md: New file.
10650 * config/iq2000/iq2000.md: Include it.
10651 (define_insn ""): Delete.
10652 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10653 unsupported constraint letters from patterns.
10654 (call_value, call_value_internal1): Likewise.
10655 (call_value_multiple_internal1): Likewise.
10657 2011-02-15 Nick Clifton <nickc@redhat.com>
10659 * config/mn10300/mn10300.c: Include tm-constrs.h.
10660 (struct liw_data): New data structure describing an LIW candidate
10662 (extract_bundle): Use struct liw_data. Allow small integer
10663 operands for some instructions.
10664 (check_liw_constraints): Use struct liw_data. Remove swapped
10665 parameter. Add comments describing the checks. Fix bug when
10666 assigning the source of liw1 to the source of liw2.
10667 (liw_candidate): Delete. Code moved into extract_bundle.
10668 (mn10300_bundle_liw): Use struct liw_data. Check constraints
10670 * config/mn10300/predicates.md (liw_operand): New predicate.
10671 Allows registers and small integer constants.
10672 * config/mn10300/constraints.md (O): New constraint. Accetps
10673 integers in the range -8 to +7 inclusive.
10674 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10675 for moving a small integer into a register. Give this alternative
10677 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10678 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10679 using the J,K,L and M constraints,
10680 (liw): Remove SI mode on second operands to allow for HI and QI
10682 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
10685 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10687 PR middle-end/47725
10688 * combine.c (cant_combine_insn_p): Check zero/sign extended
10691 2011-02-15 Richard Guenther <rguenther@suse.de>
10693 PR tree-optimization/47743
10694 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10695 for a non-type-compatible VN lookup bail out.
10697 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10699 * config/fr30/constraints.md: New file.
10700 * config/fr30/fr30.md: Include it.
10701 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10702 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10703 (EXTRA_CONSTRAINT): Delete.
10705 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10707 * config/frv/constraints.md: New file.
10708 * config/frv/predicates.md: Include it.
10709 * config/frv/frv.c (reg_class_from_letter): Delete.
10710 (frv_option_override): Don't initialize it.
10711 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10712 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10713 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10714 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10715 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10716 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10717 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10718 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10719 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10720 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10721 (REG_CLASS_FROM_CONSTRAINT): Delete.
10723 2011-02-15 Jakub Jelinek <jakub@redhat.com>
10725 PR middle-end/47581
10726 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10727 if frame size is 0 in a leaf function.
10729 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10732 * config/alpha/host-osf.c: New file.
10733 * config/alpha/x-osf: New file.
10734 * config.host (alpha*-dec-osf*): Use it.
10736 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10738 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10739 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10740 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10741 (rx_mode_dependent_address_p): ...this. Make static. Change argument
10743 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10745 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10747 * config/stormy16/constraints.md: New file.
10748 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10749 Use satisfies_constraint_Q and satisfies_constraint_R.
10750 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10752 (xstormy16_legitiamte_address_p): Declare.
10753 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10754 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10755 (EXTRA_CONSTRAINT): Delete.
10756 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10758 (xstormy16_extra_constraint_p): Delete.
10760 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
10762 PR tree-optimization/46494
10763 * loop-unroll.c (split_edge_and_insert): Adjust comment.
10764 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10765 (pass_rtl_loop_done): Add TODO_verify_flow.
10766 * fwprop.c (pass_rtl_fwprop): Likewise.
10767 * modulo-sched.c (pass_sms): Likewise.
10768 * tree-ssa-dom.c (pass_dominator): Likewise.
10769 * tree-ssa-loop-ch.c (pass_ch): Likewise.
10770 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10771 (pass_tree_loop_done): Likewise.
10772 * tree-ssa-pre.c (execute_pre): Likewise.
10773 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10774 * tree-ssa-sink.c (pass_sink_code): Likewise.
10775 * tree-vrp.c (pass_vrp): Likewise.
10777 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10779 * config/v850/constraints.md: New file.
10780 * config/v850/v850.md: Include it.
10781 * config/v850/predicates.md (reg_or_0_operand): Use
10782 satisfies_constraint_G.
10783 (special_symbolref_operand): Use satisfies_constraint_K.
10784 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10785 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10786 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10787 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10788 (EXTRA_CONSTRAINT): Delete.
10789 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10790 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10791 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10793 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10796 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10799 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10801 * config/mcore/constraints.md: New file.
10802 * config/mcore/mcore.md: Include it.
10803 * config/mcore/mcore.c (reg_class_from_letter): Delete.
10804 * config/mcore/mcore.h (reg_class_from_letter): Delete.
10805 (REG_CLASS_FROM_LETTER): Delete.
10806 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10807 insn_const_int_ok_for_constraint.
10808 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10809 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10810 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10811 (EXTRA_CONSTRAINT): Delete.
10813 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10816 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10817 (IS_SIGHANDLER): Define.
10818 (sparc64_is_sighandler): New function, split off from
10819 sparc64_fallback_frame_state.
10820 (sparc_is_sighandler): New function, split off from
10821 sparc_fallback_frame_state.
10822 (sparc64_fallback_frame_state): Merge with ...
10823 (sparc_fallback_frame_state): ... this into ...
10824 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10825 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10826 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10827 stack instead of hardcoded offsets.
10829 2011-02-14 Andriy Gapon <avg@freebsd.org>
10832 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10834 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10836 * configure: Regenerate.
10838 2011-02-12 Joseph Myers <joseph@codesourcery.com>
10841 * gcc.c (asm_options): Correct spec matching --target-help.
10843 2011-02-12 Martin Jambor <mjambor@suse.cz>
10845 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10846 to gimple call error.
10848 2011-02-12 Mike Stump <mikestump@comcast.net>
10850 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10851 comments in backslash regions.
10853 2011-02-12 Mike Stump <mikestump@comcast.net>
10854 Jakub Jelinek <jakub@redhat.com>
10855 Iain Sandoe <iains@gcc.gnu.org>
10858 * dwarf2out.c (output_cfa_loc): When required, apply the
10859 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10860 (output_loc_sequence): Likewise.
10861 (output_loc_operands_raw): Likewise.
10862 (output_loc_sequence_raw): Likewise.
10863 (output_cfa_loc): Likewise.
10864 (output_loc_list): Suppress register number adjustment when
10865 calling output_loc_sequence()
10866 (output_die): Likewise.
10868 2011-02-12 Anatoly Sokolov <aesok@post.ru>
10870 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10872 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10873 xtensa_memory_move_cost): New functions.
10874 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10876 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
10879 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10880 in the current directory.
10881 * configure: Rebuilt.
10883 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10885 * config/darwin.c (darwin_override_options): Add a hunk missed
10886 from the commit of r168571. Trim comment line lengths and
10887 correct indents of the preceding block.
10889 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10891 * gcc.c (driver_handle_option): Concatenate the argument to -F with
10894 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10896 * common.opt (nostartfiles): New Driver option.
10898 2011-02-11 Xinliang David Li <davidxl@google.com>
10900 PR tree-optimization/47707
10901 * tree-chrec.c (convert_affine_scev): Keep type precision.
10903 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
10905 PR tree-optimization/47420
10906 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10908 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
10910 PR rtl-optimization/47614
10911 * rtl.h (check_for_inc_dec): Declare.
10912 * dse.c (check_for_inc_dec): Externalize...
10913 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10914 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10916 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10919 * gcc.c (main): Do not compile inputs if there were errors in
10921 * opts-common.c (read_cmdline_option): Check for wrong language
10922 after other error checks.
10924 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
10926 * cgraph.c: Fix comment typos.
10927 * cgraph.h: Likewise.
10928 * cgraphunit.c: Likewise.
10929 * ipa-cp.c: Likewise.
10930 * ipa-inline.c: Likewise.
10931 * ipa-prop.c: Likewise.
10932 * ipa-pure-const.c: Likewise.
10933 * ipa-ref.c: Likewise.
10934 * ipa-reference.c: Likewise.
10936 2011-02-11 Jakub Jelinek <jakub@redhat.com>
10939 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10941 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10944 * doc/sourcebuild.texi (Require Support): Document
10945 dg-require-ascii-locale.
10947 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
10949 * doc/lto.texi (Write summary): Fix missing parentheses.
10951 2011-02-10 DJ Delorie <dj@redhat.com>
10953 * config/m32c/m32c.c (m32c_option_override): Disable
10954 -fcombine-stack-adjustments until flag value tracking and compare
10955 optimization can be rewritten.
10957 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
10959 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10961 (PROCESSOR_DEFAULT64): Likewise.
10963 2011-02-10 Richard Henderson <rth@redhat.com>
10965 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10966 change from 2011-02-03.
10967 * config/rx/rx.c (flags_from_code): Likewise.
10968 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10969 is valid, n/pz otherwise.
10970 (rx_select_cc_mode): Return CCmode if Y is not zero.
10972 2011-02-10 Richard Guenther <rguenther@suse.de>
10974 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10976 2011-02-10 Richard Guenther <rguenther@suse.de>
10978 PR tree-optimization/47677
10979 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10981 2011-02-10 Jakub Jelinek <jakub@redhat.com>
10984 * combine.c (make_compound_operation): Only change shifts into
10985 multiplication for SCALAR_INT_MODE_P.
10987 2011-02-10 Jie Zhang <jie@codesourcery.com>
10991 2011-02-05 Jie Zhang <jie@codesourcery.com>
10993 * web.c (entry_register): Don't clobber the number of the
10994 first uninitialized reference in used[].
10996 2011-02-09 Richard Guenther <rguenther@suse.de>
10998 PR tree-optimization/47664
10999 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11002 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
11006 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11008 (PROCESSOR_DEFAULT64): Same.
11009 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11011 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11013 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11015 2011-02-09 Martin Jambor <mjambor@suse.cz>
11017 PR middle-end/45505
11018 * tree-sra.c (struct access): New flags grp_scalar_read and
11019 grp_scalar_write. Changed description of assignment read and write
11021 (dump_access): Dump new flags, reorder all of them.
11022 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11023 to detect multiple scalar reads.
11024 (analyze_access_subtree): Use the new scalar read write flags instead
11025 of the old flags. Adjusted comments.
11027 2011-02-08 DJ Delorie <dj@redhat.com>
11030 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11033 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11035 * config/m68k/uclinux.opt: New.
11036 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11038 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11040 * config/cris/elf.opt (sim): New Driver option.
11042 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11044 * config/xtensa/elf.opt: New.
11045 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11047 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11049 * config/vax/elf.opt: New.
11050 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11052 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11054 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11056 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11058 * config/gnu-user.opt: New.
11059 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11060 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11061 *-*-uclinux*): Use gnu-user.opt.
11063 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
11065 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11066 * config/i386/gnu.h (CPP_SPEC): Likewise.
11068 2011-02-08 Ian Lance Taylor <iant@google.com>
11070 * common.opt (fcx-limited-range): Add SetByCombined flag.
11071 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11072 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11073 (fassociative-math, freciprocal-math): Likewise.
11074 (funsafe-math-optimizations): Likewise.
11075 * opth-gen.awk: Handle SetByCombined.
11076 * optc-gen.awk: Likewise.
11077 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11078 (set_unsafe_math_optimizations_flags): Likewise.
11079 * doc/options.texi (Option properties): Document SetByCombined.
11081 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11083 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11084 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11085 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11086 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11087 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11089 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
11091 PR tree-optimization/46834
11092 PR tree-optimization/46994
11093 PR tree-optimization/46995
11094 * graphite-sese-to-poly.c (used_outside_reduction): New.
11095 (detect_commutative_reduction): Call used_outside_reduction.
11096 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11097 translate_scalar_reduction_to_array only when at least one
11098 loop-phi/close-phi tuple has been detected.
11100 2011-02-08 Richard Guenther <rguenther@suse.de>
11102 PR middle-end/47639
11103 * tree-vect-generic.c (expand_vector_operations_1): Update
11105 (expand_vector_operations): ... not here. Cleanup EH info
11106 and the CFG if required.
11108 2011-02-08 Richard Guenther <rguenther@suse.de>
11110 PR tree-optimization/47641
11111 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11112 require type compatibility.
11114 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11116 * gimple-low.c (lower_function_body): Don't remove the location of
11117 the return statement here.
11118 (lower_gimple_return): Do it here instead but only if the return
11119 statement is actually used twice.
11121 2011-02-08 Richard Guenther <rguenther@suse.de>
11123 PR tree-optimization/47632
11124 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11125 unused up_to_stmt parameter, return whether cfg-cleanup is
11126 necessary, remove EH info properly.
11127 (forward_propagate_into_gimple_cond): Adjust caller.
11128 (forward_propagate_into_cond): Likewise.
11129 (forward_propagate_comparison): Likewise.
11130 (tree_ssa_forward_propagate_single_use_vars): Make
11131 forward_propagate_comparison case similar to the two others.
11133 2011-02-08 Nick Clifton <nickc@redhat.com>
11135 * config/mn10300/mn10300.opt (mliw): New command line option.
11136 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11137 (liw_bundling): New automaton.
11138 (liw): New attribute.
11139 (liw_op): New attribute.
11140 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11141 (movsi_internal): Add LIW attributes.
11142 (andsi3): Likewise.
11143 (iorsi3): Likewise.
11144 (xorsi3): Likewise.
11145 (addsi3): Separate register and immediate alternatives.
11146 Add LIW attributes.
11147 (subsi3): Likewise.
11149 (aslsi3): Likewise.
11150 (lshrsi3): Likewise.
11151 (ashrsi3): Likewise.
11152 (liw): New pattern.
11153 * config/mn10300/mn10300.c (liw_op_names): New
11154 (mn10300_print_operand): Handle 'W' operand descriptor.
11155 (extract_bundle): New function.
11156 (check_liw_constraints): New function.
11157 (liw_candidate): New function.
11158 (mn10300_bundle_liw): New function.
11159 (mn10300_reorg): New function.
11160 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11161 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11162 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11163 __LIW__ or __NO_LIW__.
11164 * doc/invoke.texi: Describe the -mliw command line option.
11166 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11168 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11169 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11170 pthread_mutex_unlock): Remove.
11171 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11172 * config/pa/t-pa64: Likewise.
11173 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11174 shared libc if not linking against libpthread.
11175 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11177 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
11180 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11181 on 10.6 and later to ensure that we always use the unwinder from
11182 the system. Only add -no_compact_unwind when tarteting darwin
11185 2011-02-07 Steve Ellcey <sje@cup.hp.com>
11188 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11189 (vec_interleave_lowv2sf): Ditto.
11190 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11191 (vec_extract_oddv2sf): Ditto.
11193 2011-02-07 Mike Stump <mikestump@comcast.net>
11196 Add __ieee_divdc3 entry point.
11197 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11199 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11200 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11201 * config/darwin.c (darwin_rename_builtins): Add.
11202 * config/darwin-protos.h (darwin_rename_builtins): Add.
11204 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
11207 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11210 2011-02-07 Mike Stump <mikestump@comcast.net>
11212 * config/darwin.opt (mmacosx-version-min): Update default OS version.
11214 2011-02-07 Denis Chertykov <chertykov@gmail.com>
11217 * config/avr/libgcc.S (exit): Move .endfunc
11219 2011-02-07 Richard Guenther <rguenther@suse.de>
11221 PR tree-optimization/47615
11222 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11223 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11224 (run_scc_vn): Initialize it.
11225 (visit_reference_op_load): Use it.
11226 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11228 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11230 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11231 DImode trapping arithmetic libfuncs.
11233 2011-02-07 Richard Guenther <rguenther@suse.de>
11235 PR tree-optimization/47621
11236 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11238 (execute_update_addresses_taken): ... here. Make it more
11239 conservative in what we accept.
11241 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11243 * config/sparc/freebsd.h (ASM_SPEC): Define.
11244 * config/sparc/vxworks.h (ASM_SPEC): Define.
11246 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11248 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11250 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
11252 * doc/invoke.texi: Remove reference to compiler internals from
11253 user documentation.
11255 * reg-notes.def: Remove REG_VALUE_PROFILE.
11256 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11258 2011-02-05 Jakub Jelinek <jakub@redhat.com>
11260 PR middle-end/47610
11261 * varasm.c (default_section_type_flags): If decl is NULL,
11262 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11264 2011-02-05 Jie Zhang <jie@codesourcery.com>
11267 * web.c (entry_register): Don't clobber the number of the
11268 first uninitialized reference in used[].
11270 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
11272 PR tree-optimization/46194
11273 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11274 (build_classic_dist_vector_1): Do not represent classic distance
11275 vectors when the access functions are variating in different loops.
11277 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11279 * config/mips/iris6.opt: New.
11280 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11282 2011-02-04 Richard Henderson <rth@redhat.com>
11283 Steve Ellcey <sje@cup.hp.com>
11286 * config/ia64/predicates.md (mux1_brcst_element): New.
11287 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11288 * config/ia64/ia64.c (ia64_unpack_assemble): New.
11289 (ia64_unpack_sign): New.
11290 (ia64_expand_unpack): Rewrite using new routines.
11291 (ia64_expand_widen_sum): Ditto.
11292 (ia64_expand_dot_prod_v8qi): Ditto.
11293 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11294 routines, add endian check.
11295 (pmpy2_even): Rename from pmpy2_r, add endian check.
11296 (pmpy2_odd): Rename from pmpy2_l, add endian check.
11297 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11298 (vec_widen_smult_hi_v4hi): Ditto.
11299 (vec_widen_umult_lo_v4hi): Ditto.
11300 (vec_widen_umult_hi_v4hi): Ditto.
11301 (mulv2si3): Change endian checks.
11302 (sdot_prodv4hi): Rewrite with new calls.
11303 (udot_prodv4hi): New.
11304 (vec_pack_ssat_v4hi): Add endian check.
11305 (vec_pack_usat_v4hi): Ditto.
11306 (vec_pack_ssat_v2si): Ditto.
11307 (max1_even): Rename from max1_r, add endian check.
11308 (max1_odd): Rename from max1_l, add endian check.
11309 (*mux1_rev): Format change.
11310 (*mux1_mix): Ditto.
11311 (*mux1_shuf): Ditto.
11312 (*mux1_alt): Ditto.
11313 (*mux1_brcst_v8qi): Use new predicate.
11314 (vec_extract_evenv8qi): Remove endian check.
11315 (vec_extract_oddv8qi): Ditto.
11316 (vec_interleave_lowv4hi): Format change.
11317 (vec_interleave_highv4hi): Ditto.
11318 (mix2_even): Rename from mix2_r, add endian check.
11319 (mix2_odd): Rename from mux2_l, add endian check.
11320 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11321 (vec_extract_evenodd_helper): Format change.
11322 (vec_extract_evenv4hi): Remove endian check.
11323 (vec_extract_oddv4hi): Remove endian check.
11324 (vec_interleave_lowv2si): Format change.
11325 (vec_interleave_highv2si): Format change.
11326 (vec_initv2si): Remove endian check.
11327 (vecinit_v2si): Add endian check.
11328 (reduc_splus_v2sf): Add endian check.
11329 (reduc_smax_v2sf): Ditto.
11330 (reduc_smin_v2sf): Ditto.
11331 (vec_initv2sf): Remove endian check.
11332 (fpack): Add endian check.
11333 (fswap): Add endian check.
11334 (vec_interleave_highv2sf): Add endian check.
11335 (vec_interleave_lowv2sf): Add endian check.
11336 (fmix_lr): Add endian check.
11337 (vec_setv2sf): Format change.
11338 (*vec_extractv2sf_0_be): Use shift to extract operand.
11339 (*vec_extractv2sf_1_be): New.
11340 (vec_pack_trunc_v4hi): Add endian check.
11341 (vec_pack_trunc_v2si): Format change.
11343 2011-02-04 Jakub Jelinek <jakub@redhat.com>
11345 PR inline-asm/23200
11346 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
11347 do bb, locus and block comparison and disallow loads if it is not set.
11348 (stmt_is_replaceable_p): New function.
11349 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11351 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11352 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11354 * tree-flow.h (stmt_is_replaceable_p): New prototype.
11356 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11358 * config/rs6000/xilinx.opt: New.
11359 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11361 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11363 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11365 2011-02-03 Anatoly Sokolov <aesok@post.ru>
11367 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11368 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11369 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11370 secondary_reload_info, xtensa_secondary_reload): Remove.
11371 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11372 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11373 (xtensa_preferred_reload_class): Make static. Change return and
11374 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11375 Use CONST_DOUBLE_P predicate.
11376 (xtensa_preferred_output_reload_class): New function.
11377 (xtensa_secondary_reload): Make static.
11379 2011-02-03 Joseph Myers <joseph@codesourcery.com>
11381 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11382 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11383 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11385 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11387 PR middle-end/31490
11388 * output.h (SECTION_RELRO): Define.
11389 (SECTION_MACH_DEP): Adjust.
11390 (get_variable_section): New prototype.
11391 * varpool.c (varpool_finalize_named_section_flags): New function.
11392 (varpool_assemble_pending_decls): Call it.
11393 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11394 * cgraphunit.c (cgraph_output_in_order): Call
11395 varpool_finalize_named_section_flags.
11396 * varasm.c (get_section): Allow section flags conflicts between
11397 relro and read-only sections if the section hasn't been declared yet.
11398 Set SECTION_OVERRIDE after diagnosing section type conflict.
11399 (get_variable_section): No longer static.
11400 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11401 readonly sections that need relocations.
11402 (decl_readonly_section_1): New function.
11403 (decl_readonly_section): Use it.
11406 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
11407 Steve Ellcey <sje@cup.hp.com>
11409 PR middle-end/31490
11410 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11411 if section attribute used.
11413 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11415 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11416 * config/darwin.c (SECTION_NO_ANCHOR): Define.
11417 (darwin_init_sections): Remove assertion.
11419 2011-02-03 Nick Clifton <nickc@redhat.com>
11421 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11423 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11424 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11425 instead of "n" and "pz".
11426 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11429 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11432 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11433 fma, expand FMA_EXPR as fma{,f,l} call.
11436 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11437 copy them into a unsigned char variable and pass address of it to
11438 lto_output_data_stream.
11441 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11442 around backend_init_target and lang_dependent_init_target calls.
11443 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11444 (verify_cgraph_node): Don't call set_cfun here. Use
11445 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11446 Set error_found for incorrectly represented calls to thunks.
11448 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11451 PR rtl-optimization/43494
11452 * rtl.h (for_each_inc_dec_fn): New type.
11453 (for_each_inc_dec): Declare.
11454 * rtlanal.c (struct for_each_inc_dec_ops): New type.
11455 (for_each_inc_dec_find_inc_dec): New fn.
11456 (for_each_inc_dec_find_mem): New fn.
11457 (for_each_inc_dec): New fn.
11458 * dse.c (struct insn_size): Remove.
11459 (replace_inc_dec, replace_inc_dec_mem): Remove.
11460 (emit_inc_dec_insn_before): New fn.
11461 (check_for_inc_dec): Use it, along with for_each_inc_dec.
11462 (canon_address): Pass mem modes to cselib_lookup.
11463 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
11464 (cselib_lookup_from_insn): Likewise.
11465 (cselib_subst_to_values): Likewise.
11466 * cselib.c (find_slot_memmode): New var.
11467 (cselib_find_slot): New fn. Use it instead of
11468 htab_find_slot_with_hash everywhere.
11469 (entry_and_rtx_equal_p): Use find_slot_memmode.
11470 (autoinc_split): New fn.
11471 (rtx_equal_for_cselib_p): Rename and implement in terms of...
11472 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
11473 Deal with autoinc. Special-case recursion into MEMs.
11474 (cselib_hash_rtx): Likewise.
11475 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
11476 address and MEM modes.
11477 (cselib_subst_to_values): Add memmode, pass it on.
11479 (cselib_lookup): Add memmode argument, pass it on.
11480 (cselib_lookup_from_insn): Add memmode.
11481 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11482 (struct cselib_record_autoinc_data): New.
11483 (cselib_record_autoinc_cb): New fn.
11484 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
11485 mode to cselib_lookup. Reset autoinced REGs here instead of...
11486 (cselib_process_insn): ... here.
11487 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11489 (add_uses): Likewise, also to cselib_subst_to_values.
11490 (add_stores): Likewise.
11491 * sched-deps.c (add_insn_mem_dependence): Pass mode to
11492 cselib_subst_to_values.
11493 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
11494 * gcse.c (do_local_cprop): Adjusted.
11495 * postreload.c (reload_cse_simplify_set): Adjusted.
11496 (reload_cse_simplify_operands): Adjusted.
11497 * sel-sched-dump (debug_mem_addr_value): Pass mode.
11499 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11501 PR tree-optimization/45122
11502 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11503 unsafe assumptions when there's more than one loop exit.
11505 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11508 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11509 Document using vector double with the load/store builtins, and
11510 that the load/store builtins always use Altivec instructions.
11512 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11513 to use altivec memory instructions, even on VSX.
11514 (vector_altivec_store_<mode>): Ditto.
11516 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11519 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11520 V2DF, V2DI support to load/store overloaded builtins.
11522 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11523 altivec load/store builtins for V2DF/V2DI types.
11525 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11526 set avoid indexed addresses on power6 if -maltivec.
11527 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11528 vector_altivec_load/vector_altivec_store builtins.
11529 (altivec_expand_st_builtin): Ditto.
11530 (altivec_expand_builtin): Add VSX memory builtins.
11531 (rs6000_init_builtins): Add V2DI types to internal types.
11532 (altivec_init_builtins): Add support for V2DF/V2DI altivec
11533 load/store builtins.
11534 (rs6000_address_for_altivec): Insure memory address is appropriate
11537 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11538 vec_vsx_ld and vec_vsx_st.
11539 (vsx_store_<mode>): Ditto.
11541 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11542 variables to hold long long types for VSX vector memory builtins.
11543 (RS6000_BTI_unsigned_long_long): Ditto.
11544 (long_long_integer_type_internal_node): Ditti.
11545 (long_long_unsigned_type_internal_node): Ditti.
11547 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11548 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11549 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11551 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11553 (vec_vsx_st): Ditto.
11555 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11557 * config/pa/pa-hpux10.opt: New.
11558 * config/hpux11.opt (pthread): New Driver option.
11559 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11560 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11562 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11564 * config/ia64/vms.opt: New.
11565 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11567 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11570 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11571 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11572 generator functions.
11573 (vsx_floatuns<VSi><mode>2): Ditto.
11574 (vsx_fix_trunc<mode><VSi>2): Ditto.
11575 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11577 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11579 * config/i386/djgpp.opt (posix): New Driver option.
11581 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
11583 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11584 Move to the unsupported targets list.
11586 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
11588 PR rtl-optimization/47525
11589 * df-scan.c: Update copyright years.
11590 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11591 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11593 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11595 * config/i386/sysv4.h (TARGET_VERSION): Remove.
11596 (SUBTARGET_RETURN_IN_MEMORY): Remove.
11597 (ASM_OUTPUT_ASCII): Remove.
11598 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11600 2011-02-02 Jeff Law <law@redhat.com>
11602 PR middle-end/47543
11603 * reload.c (find_reloads_address): Handle reg+d address where both
11604 components are invalid by reloading the entire address.
11606 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11607 Richard Guenther <rguenther@suse.de>
11609 PR tree-optimization/40979
11611 * passes.c (init_optimization_passes): After LIM call copy_prop
11612 and DCE to clean up.
11613 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11615 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11617 PR tree-optimization/47576
11618 PR tree-optimization/47555
11619 * doc/invoke.texi (scev-max-expr-complexity): Documented.
11620 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11621 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11622 * tree-scalar-evolution.c (follow_ssa_edge): Use
11623 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11625 2011-02-02 Richard Guenther <rguenther@suse.de>
11627 PR tree-optimization/47566
11628 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11630 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11634 * tree-inline.c (declare_return_variable): Remove unused caller
11639 * tree-flow-inline.h (clear_is_used, is_used_p): New.
11640 * cfgexpand.c (account_used_vars_for_block): Use them.
11641 * tree-nrv.c (tree_nrv): Likewise.
11642 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11643 (dump_scope_block): Likewise.
11644 (remove_unused_locals): Likewise.
11648 * tree-inline.c (declare_return_variable): Add result decl to
11649 local decls only once.
11650 * gimple-low.c (record_vars_into): Mark newly-created variables
11653 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11659 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11661 (no_real_insns_p, schedule_block, set_priorities): Drop special
11662 treatment of boundary debug insns.
11663 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11664 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11665 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11666 (BOUNDARY_DEBUG_INSN_P): Likewise.
11667 (SCHEDULE_DEBUG_INSN_P): Likewise.
11668 * sched-rgn.c (init_ready_list): Drop special treatment of
11669 boundary debug insns.
11670 * final.c (rest_of_clean_state): Clear notes' BB.
11672 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11674 * config/openbsd.opt (assert=): New Driver option.
11676 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11678 * config/i386/nto.opt: New.
11679 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11681 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11683 * config/i386/netware.opt: New.
11684 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11686 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11688 * config/interix.opt (posix): New Driver option.
11690 2011-02-01 DJ Delorie <dj@redhat.com>
11692 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11694 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11697 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
11699 PR tree-optimization/47561
11700 * toplev.c (process_options): Print the Graphite flags. Add
11701 flag_loop_flatten to the list of options requiring Graphite.
11703 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11705 * config/i386/cygming.opt (posix): New Driver option.
11707 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11709 * config/arm/vxworks.opt: New.
11710 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11712 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11714 * config/alpha/elf.opt: New.
11715 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11716 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11718 2011-02-01 Richard Guenther <rguenther@suse.de>
11720 PR tree-optimization/47559
11721 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11722 store-motion on references that can throw.
11724 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
11726 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11727 * tree-pass.h (TDF_CSELIB): New macro.
11728 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11729 cselib_lookup): Check for it rather than for TDF_DETAILS.
11731 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
11734 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11735 is HOST_BIT_BUCKET.
11737 * opts.c (finish_options): Don't add x_aux_base_name if it is
11740 2011-02-01 Richard Guenther <rguenther@suse.de>
11742 PR tree-optimization/47555
11744 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
11746 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11748 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
11751 * config/lm32/t-lm32: Add multilib for all CPU options.
11753 2011-02-01 Richard Guenther <rguenther@suse.de>
11755 PR tree-optimization/47541
11756 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11757 sure to have a field at offset zero.
11759 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11761 * config/arc/arc.opt (EB, EL): New Driver options.
11763 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11765 * config/alpha/osf5.opt: New.
11766 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11768 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11770 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11772 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
11774 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11775 -floop-interchange.
11776 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11777 is an alias of -floop-interchange and that it requires the
11778 Graphite infrastructure.
11779 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11780 flag_loop_interchange based on the value of flag_tree_loop_linear.
11782 2011-01-31 Jakub Jelinek <jakub@redhat.com>
11783 Richard Guenther <rguenther@suse.de>
11785 PR tree-optimization/47538
11786 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11787 type instead of r1type, except for comparisons. For right
11788 shifts and comparisons punt if there are mismatches in
11789 sizetype vs. non-sizetype types.
11791 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11793 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11796 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11798 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11800 * configure: Regenerate.
11802 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11804 * configure.ac (gcc_cv_ld_static_option): Define.
11805 (gcc_cv_ld_dynamic_option): Define.
11806 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11808 (HAVE_LD_STATIC_DYNAMIC): Update message.
11809 (LD_STATIC_OPTION): Define.
11810 (LD_DYNAMIC_OPTION): Define.
11811 * configure: Regenerate.
11812 * config.in: Regenerate.
11813 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11814 HAVE_LD_STATIC_DYNAMIC]: Use them.
11816 2011-01-31 Nick Clifton <nickc@redhat.com>
11818 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11819 registers inside interrupt handlers if the handler is not a leaf
11822 2011-01-31 Nick Clifton <nickc@redhat.com>
11824 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11825 reg_renumber returning an INVALID_REGNUM.
11827 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11830 * doc/install.texi: Document host options discarded when cross
11831 configuring target libraries.
11833 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11836 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11839 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11841 (no_real_insns_p, schedule_block, set_priorities): Drop special
11842 treatment of boundary debug insns.
11843 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11844 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11845 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11846 (BOUNDARY_DEBUG_INSN_P): Likewise.
11847 (SCHEDULE_DEBUG_INSN_P): Likewise.
11848 * sched-rgn.c (init_ready_list): Drop special treatment of
11849 boundary debug insns.
11850 * final.c (rest_of_clean-state): Clear notes' BB.
11852 2011-01-31 Alan Modra <amodra@gmail.com>
11854 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11855 toc relative expressions as we do in print_operand_address.
11857 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
11859 * doc/extend.texi: Follow spelling conventions.
11860 * doc/invoke.texi: Fix a typo.
11862 2011-01-30 Joseph Myers <joseph@codesourcery.com>
11864 * config/hpux11.opt: New.
11865 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11866 ia64*-*-hpux*): Use hpux11.opt.
11868 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
11870 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11873 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11875 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11878 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11880 * doc/install.texi (Binaries): Remove outdated reference for
11881 Motorola 68HC11/68HC12 downloads.
11883 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11885 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11888 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
11891 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11894 2011-01-28 Ahmad Sharif <asharif@google.com>
11896 * value-prof.c (check_counter): Corrected error message.
11898 2011-01-29 Jie Zhang <jie@codesourcery.com>
11900 * config/arm/arm.c (arm_legitimize_reload_address): New.
11901 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11902 arm_legitimize_reload_address.
11903 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11905 2011-01-28 Ian Lance Taylor <iant@google.com>
11907 * godump.c (go_define): Ignore macros whose definitions include
11908 two adjacent operands.
11910 2011-01-28 Jakub Jelinek <jakub@redhat.com>
11913 * varasm.c (force_const_mem): Store copy of x in desc->constant
11914 instead of x itself.
11915 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11916 itself into REG_EQUAL note.
11918 2011-01-28 Joseph Myers <joseph@codesourcery.com>
11920 * config/freebsd.opt (posix, rdynamic): New Driver options.
11922 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11924 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11925 -Bstatic/-Bdynamic.
11926 * configure: Regenerate.
11928 2011-01-27 Joseph Myers <joseph@codesourcery.com>
11930 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11931 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11933 2011-01-27 Anatoly Sokolov <aesok@post.ru>
11935 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11936 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11937 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11938 (s390_preferred_reload_class): Make static. Change return and
11939 'rclass' argument type to reg_class_t.
11941 2011-01-27 Jan Hubicka <jh@suse.cz>
11943 PR middle-end/46949
11944 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11945 (process_function_and_variable_attributes): Check defined weakrefs.
11947 2011-01-27 Martin Jambor <mjambor@suse.cz>
11949 PR tree-optimization/47228
11950 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11951 build_ref_for_offset.
11953 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11955 * config/spu/spu-elf.h (ASM_SPEC): Remove.
11957 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
11959 PR rtl-optimization/46856
11960 * postreload.c (reload_combine_recognize_const_pattern): Do not
11961 separate cc0 setter and user on cc0 targets.
11963 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
11966 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11967 passed a VOID_TYPE expression, immediately emit an error and
11968 return error_mark_node.
11970 2011-01-26 Jeff Law <law@redhat.com>
11972 PR rtl-optimization/47464
11973 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11974 rather than may_trap_p as needed.
11976 2011-01-26 DJ Delorie <dj@redhat.com>
11978 PR rtl-optimization/46878
11979 * combine.c (insn_a_feeds_b): Check for the implicit cc0
11980 setter/user dependency as well.
11982 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11984 PR rtl-optimization/44469
11985 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11986 after removing trivially dead basic blocks.
11988 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11990 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11991 * config/frv/frv.h (LINK_SPEC): Likewise.
11992 * config/i386/netware.h (LINK_SPEC): Likewise.
11993 * config/m68k/linux.h (ASM_SPEC): Likewise.
11994 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11995 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11996 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11997 * config/sparc/linux.h (ASM_SPEC): Likewise.
11998 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11999 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12001 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12003 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12004 * config/frv/frv.h (ASM_SPEC): Likewise.
12005 * config/m68k/linux.h (ASM_SPEC): Likewise.
12006 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12007 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12008 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12009 * config/sparc/linux.h (ASM_SPEC): Likewise.
12010 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12011 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12013 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12015 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12016 * config/frv/frv.h (LINK_SPEC): Likewise.
12017 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12019 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12021 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12022 * config/frv/frv.h (ASM_SPEC): Likewise.
12023 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12024 * config/m68k/linux.h (ASM_SPEC): Likewise.
12025 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12026 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12027 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12028 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12029 * config/sparc/linux.h (ASM_SPEC): Likewise.
12030 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12031 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12032 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12034 2011-01-26 Steve Ellcey <sje@cup.hp.com>
12037 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12039 (vec_extract_evenodd_help): Ditto.
12040 (vec_extract_evenv4hi): Ditto.
12041 (vec_extract_oddv4hi): Ditto.
12042 (vec_interleave_lowv2si): Ditto.
12043 (vec_interleave_highv2si): Ditto.
12044 (vec_extract_evenv2si): Ditto.
12045 (vec_extract_oddv2si: Ditto.
12046 (vec_pack_trunc_v2si): Ditto.
12048 2011-01-22 Jan Hubicka <jh@suse.cz>
12051 * cgraph.h (cgraph_local_info): New field can_change_signature.
12052 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12053 signature can change.
12054 (ipcp_estimate_growth): Call sequence simplify only if calle signature
12056 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12057 (cgraph_function_versioning): We can not change signature of functions
12058 that don't allow that.
12059 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12060 (lto_input_node): Likewise.
12061 * ipa-inline.c (compute_inline_parameters): Compute
12062 local.can_change_signature.
12063 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12064 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12065 functions that can not change signature.
12066 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12067 init_cumulative_args): Do not use local calling conventions
12068 for functions that can not change signature.
12070 2011-01-22 Jan Hubicka <jh@suse.cz>
12072 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12074 2011-01-26 Richard Guenther <rguenther@suse.de>
12076 PR tree-optimization/47190
12077 * cgraphunit.c (process_common_attributes): New function.
12078 (process_function_and_variable_attributes): Use it.
12080 2011-01-26 Richard Guenther <rguenther@suse.de>
12083 * cgraphbuild.c (record_eh_tables): Record reference to personality
12086 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
12089 * sel-sched.c (moveup_expr): Don't let debug insns prevent
12090 non-debug insns from moving up.
12092 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12095 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12096 t-dlldir{,-x} fragment for build and add it to tmake_file.
12097 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12098 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12099 * config/i386/t-dlldir: New file.
12100 (SHLIB_DLLDIR): Define.
12101 * config/i386/t-dlldir-x: New file.
12102 (SHLIB_DLLDIR): Define.
12103 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12104 (SHLIB_INSTALL): Use it.
12106 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
12109 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12110 lower bound of the allowed Thumb-2 coprocessor load/store
12111 index range to -256. Add explaining comment.
12113 2011-01-25 Ian Lance Taylor <iant@google.com>
12115 * godump.c (go_define): Improve lexing of macro expansion to only
12116 accept expressions which match Go spec.
12118 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12121 * tree.c (handle_dll_attribute): Handle it.
12122 * doc/extend.texi (@item dllexport): Mention it.
12123 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12125 2011-01-25 Ian Lance Taylor <iant@google.com>
12127 PR tree-optimization/26854
12128 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12129 (decl_jump_unsafe): Move higher in file, with no other change.
12130 (bind): Set has_jump_unsafe_decl if appropriate.
12131 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12132 (check_earlier_gotos): Likewise.
12133 (c_check_switch_jump_warnings): Likewise.
12135 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
12137 * doc/invoke.texi (Warning Options): Add missing hyphen.
12138 (-fprofile-dir): Minor grammatical fixes.
12139 (-fbranch-probabilities): Likewise.
12141 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12145 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12147 (no_real_insns_p, schedule_block, set_priorities): Drop special
12148 treatment of boundary debug insns.
12149 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12150 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12151 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12152 (BOUNDARY_DEBUG_INSN_P): Likewise.
12153 (SCHEDULE_DEBUG_INSN_P): Likewise.
12154 * sched-rgn.c (init_ready_list): Drop special treatment of
12155 boundary debug insns.
12156 * final.c (rest_of_clean-state): Clear notes' BB.
12158 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12160 * Makefile.in (LAMBDA_H): Removed.
12161 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12162 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12163 lambda-trans.o, and tree-loop-linear.o.
12164 (lto-symtab.o): Remove dependence on LAMBDA_H.
12165 (tree-loop-linear.o): Remove rule.
12166 (lambda-mat.o): Same.
12167 (lambda-trans.o): Same.
12168 (lambda-code.o): Same.
12169 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12170 (tree-vect-slp.o): Same.
12171 * hwint.h (gcd): Moved here.
12172 (least_common_multiple): Same.
12173 * lambda-code.c: Removed.
12174 * lambda-mat.c: Removed.
12175 * lambda-trans.c: Removed.
12176 * lambda.h: Removed.
12177 * tree-loop-linear.c: Removed.
12178 * lto-symtab.c: Do not include lambda.h.
12179 * omega.c (gcd): Removed.
12180 * passes.c (init_optimization_passes): Remove pass_linear_transform.
12181 * tree-data-ref.c (print_lambda_vector): Moved here.
12182 (lambda_vector_copy): Same.
12183 (lambda_matrix_copy): Same.
12184 (lambda_matrix_id): Same.
12185 (lambda_vector_first_nz): Same.
12186 (lambda_matrix_row_add): Same.
12187 (lambda_matrix_row_exchange): Same.
12188 (lambda_vector_mult_const): Same.
12189 (lambda_vector_negate): Same.
12190 (lambda_matrix_row_negate): Same.
12191 (lambda_vector_equal): Same.
12192 (lambda_matrix_right_hermite): Same.
12193 * tree-data-ref.h: Do not include lambda.h.
12194 (lambda_vector): Moved here.
12195 (lambda_matrix): Same.
12196 (dependence_level): Same.
12197 (lambda_transform_legal_p): Removed declaration.
12198 (lambda_collect_parameters): Same.
12199 (lambda_compute_access_matrices): Same.
12200 (lambda_vector_gcd): Same.
12201 (lambda_vector_new): Same.
12202 (lambda_vector_clear): Same.
12203 (lambda_vector_lexico_pos): Same.
12204 (lambda_vector_zerop): Same.
12205 (lambda_matrix_new): Same.
12206 * tree-flow.h (least_common_multiple): Removed declaration.
12207 * tree-parloops.c (lambda_trans_matrix): Moved here.
12208 (LTM_MATRIX): Same.
12209 (LTM_ROWSIZE): Same.
12210 (LTM_COLSIZE): Same.
12211 (LTM_DENOMINATOR): Same.
12212 (lambda_trans_matrix_new): Same.
12213 (lambda_matrix_vector_mult): Same.
12214 (lambda_transform_legal_p): Same.
12215 * tree-pass.h (pass_linear_transform): Removed declaration.
12216 * tree-ssa-loop.c (tree_linear_transform): Removed.
12217 (gate_tree_linear_transform): Removed.
12218 (pass_linear_transform): Removed.
12219 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12220 flag_loop_interchange.
12222 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12224 PR tree-optimization/47265
12225 PR tree-optimization/47443
12226 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12227 if name still has some uses.
12229 2011-01-25 Martin Jambor <mjambor@suse.cz>
12231 PR tree-optimization/47382
12232 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12233 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12235 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
12237 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12238 sjlj_except_unwind_info.
12240 2011-01-25 Richard Guenther <rguenther@suse.de>
12242 PR tree-optimization/47426
12243 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12244 visible functions results escape.
12246 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12249 * config/arm/arm.c (any_sibcall_uses_r3): New function.
12250 (arm_get_frame_offsets): Use it.
12252 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12253 Jakub Jelinek <jakub@redhat.com>
12255 PR tree-optimization/47271
12256 * tree-if-conv.c (bb_postdominates_preds): New.
12257 (if_convertible_bb_p): Call bb_postdominates_preds.
12258 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12259 (predicate_scalar_phi): Call bb_postdominates_preds.
12261 2011-01-25 Nick Clifton <nickc@redhat.com>
12263 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12264 * config/rx/rx.c (rx_function_value): Likewise.
12265 (rx_promote_function_mode): Likewise.
12266 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12267 in order to make it legitimate.
12268 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12269 make sure that the first operand is the same as the result register.
12270 (addsi3_unspec): Delete.
12271 (subdi3): Do not accept immediate operands.
12272 (subdi3_internal): Likewise.
12274 2011-01-25 Jeff Law <law@redhat.com>
12276 PR rtl-optimization/37273
12277 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12278 handle them like argument loads from stack slots. Do not double
12279 count memory for memory constants and argument loads from stack slots.
12281 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12283 PR tree-optimization/47427
12284 PR tree-optimization/47428
12285 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12286 coalesce if the new root var would be TREE_READONLY.
12288 2011-01-25 Richard Guenther <rguenther@suse.de>
12290 PR middle-end/47414
12291 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12292 correct type for TBAA.
12294 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12296 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12297 (close_phi_written_to_memory): Call for_each_index with
12298 dr_indices_valid_in_loop.
12300 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12302 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12303 when it is initialized.
12305 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12307 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12308 call to graphite_find_data_references_in_stmt.
12309 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12310 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
12311 call to graphite_find_data_references_in_stmt.
12312 (analyze_drs_in_stmts): Same.
12313 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12314 in which the scalar analysis of indices is performed.
12315 (create_data_ref): Same. Update call to dr_analyze_indices.
12316 (find_data_references_in_stmt): Update call to create_data_ref.
12317 (graphite_find_data_references_in_stmt): Same.
12318 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12320 (create_data_ref): Same.
12321 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12322 call to create_data_ref.
12324 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12326 * graphite-sese-to-poly.c (build_poly_scop): Move
12327 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12329 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12331 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12332 VAR_DECL, PARM_DECL, and RESULT_DECL.
12334 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12336 * graphite-dependences.c (reduction_dr_1): Allow several reductions
12337 in a reduction PBB.
12338 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12339 that have already been marked as PBB_IS_REDUCTION.
12341 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12343 * graphite-scop-detection.c (same_close_phi_node): New.
12344 (remove_duplicate_close_phi): New.
12345 (make_close_phi_nodes_unique): New.
12346 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12348 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12350 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12351 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12352 of both data references to be the same.
12354 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12356 * graphite-dependences.c (build_lexicographical_constraint): Remove
12357 the gdim parameter.
12358 (build_lexicographical_constraint): Adjust call to
12359 ppl_powerset_is_empty.
12360 (dependence_polyhedron): Same.
12361 (graphite_legal_transform_dr): Same.
12362 (graphite_carried_dependence_level_k): Same.
12363 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12365 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12367 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12369 * graphite-sese-to-poly.c
12370 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12371 (close_phi_written_to_memory): New.
12372 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12375 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12377 * doc/install.texi: Update the expected version number of PPL to 0.11.
12378 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12379 #if PPL_VERSION_MINOR < 11.
12381 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12383 * graphite-dependences.c: Include graphite-cloog-util.h.
12384 (new_poly_ddr): Inlined into dependence_polyhedron.
12385 (free_poly_ddr): Moved close by new_poly_ddr.
12386 (dependence_polyhedron_1): Renamed dependence_polyhedron.
12387 Early return NULL when ppl_powerset_is_empty returns true.
12388 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
12389 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
12390 (graphite_legal_transform_dr): Call new_poly_ddr.
12391 (graphite_carried_dependence_level_k): Same.
12392 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
12393 (dot_transformed_deps_stmt_1): Removed.
12394 (dot_deps_stmt_1): Call dot_deps_stmt_2.
12395 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
12396 (dot_deps_1): Call dot_deps_2.
12397 * Makefile.in (graphite-dependences.o): Add missing dependence on
12398 graphite-cloog-util.h.
12400 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12402 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12403 (build_lexicographical_constraint): Same.
12404 (dependence_polyhedron_1): Same.
12405 (graphite_legal_transform_dr): Same.
12406 (graphite_carried_dependence_level_k): Same.
12407 * graphite-ppl.c (ppl_powerset_is_empty): New.
12408 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12409 * tree-data-ref.c (dump_data_reference): Print the basic block index.
12411 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12413 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12414 the "a followed by b" relation and document it.
12416 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12418 * graphite-dependences.c (build_lexicographical_constraint): Stop the
12419 iteration when the bag of constraints is empty.
12421 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12423 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12425 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12427 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12428 nest and two loop depths as parameters.
12429 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12430 lst_perfect_nestify.
12432 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12434 * graphite-dependences.c (print_pddr): Call
12435 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12437 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12439 * graphite-ppl.c (debug_gmp_value): New.
12440 * graphite-ppl.h (debug_gmp_value): Declared.
12442 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
12444 * doc/install.texi: Document availability of cloog-0.16.
12446 2011-01-25 Vladimir Kargov <kargov@gmail.com>
12448 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12449 invalid postdominance info.
12451 2011-01-24 Jan Hubicka <jh@suse.cz>
12454 * doc/extend.texi (weak pragma): Drop claim that it must
12455 appear before definition.
12456 * varasm.c (merge_weak, declare_weak): Only sanity check
12457 that DECL is not output at a time it is declared weak.
12459 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
12461 * machmode.def: Fixed comments.
12463 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
12465 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12467 2011-01-24 Paul Koning <ni1d@arrl.net>
12469 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12472 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
12475 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12476 (block_info): Add scanned and prev.
12477 (move_or_delete_vzeroupper_2): Return if the basic block
12478 has been scanned and the upper 128bit state is unchanged
12479 from the last scan.
12480 (move_or_delete_vzeroupper_1): Return true if the exit
12482 (move_or_delete_vzeroupper): Visit basic blocks using the
12483 work-list based algorithm based on vt_find_locations in
12486 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12488 2011-01-24 Nick Clifton <nickc@redhat.com>
12490 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12491 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12492 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
12493 then define __v850e1__.
12494 * doc/invoke.texi: Document -mv850es.
12496 2011-01-24 Richard Henderson <rth@redhat.com>
12498 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12499 compound unordered comparisons.
12500 * config/rx/rx.c (rx_split_fp_compare): Remove.
12501 * config/rx/rx-protos.h: Update.
12502 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12503 (cbranchsf4): Don't call rx_split_fp_compare.
12504 (*cbranchsf4): Use rx_split_cbranch.
12505 (*cmpsf): Don't accept "i" constraint.
12506 (*conditional_branch): Only valid after reload.
12507 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
12509 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12512 * config/rs6000/altivec.md (vector constant splitters): Add
12513 support for creating vector single precision constants if -mvsx is
12514 used and we would create the constant using Altivec primitives.
12516 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
12517 Richard Sandiford <rdsandiford@googlemail.com>
12519 PR rtl-optimization/47166
12520 * reload1.c (emit_reload_insns): Disable the spill_reg_store
12521 mechanism for PRE_MODIFY and POST_MODIFY.
12522 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12525 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
12527 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12529 2011-01-22 Jan Hubicka <jh@suse.cz>
12532 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12534 2011-01-22 Jan Hubicka <jh@suse.cz>
12536 PR tree-optimization/43884
12538 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12539 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12541 2011-01-22 Anatoly Sokolov <aesok@post.ru>
12543 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12544 * config/s390/s390.c (s390_register_move_cost,
12545 s390_memory_move_cost): New.
12546 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12548 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12550 PR middle-end/47401
12551 * except.c (sjlj_assign_call_site_values): Move setting the
12552 crtl->uses_eh_lsda flag to ...
12553 (sjlj_mark_call_sites): ... here.
12554 (sjlj_emit_function_enter): Support NULL dispatch label.
12555 (sjlj_build_landing_pads): In a function with no landing pads
12556 that still has must-not-throw regions, generate code to register
12557 a personality function with empty LSDA.
12559 2011-01-21 Richard Henderson <rth@redhat.com>
12561 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12563 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12565 * compare-elim.c: New file.
12566 * Makefile.in (OBJS-common): Add it.
12567 (compare-elim.o): New.
12568 * common.opt (fcompare-elim): New.
12569 * opts.c (default_options_table): Add OPT_fcompare_elim.
12570 * tree-pass.h (pass_compare_elim_after_reload): New.
12571 * passes.c (init_optimization_passes): Add it.
12572 * recog.h: Protect against re-inclusion.
12573 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12574 * doc/invoke.texi (-fcompare-elim): Document it.
12575 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12576 * doc/tm.texi: Rebuild.
12578 2011-01-22 Nick Clifton <nickc@redhat.com>
12580 * config/rx/rx.md (cstoresf4): Pass comparison operator to
12581 rx_split_fp_compare.
12583 2011-01-22 Nick Clifton <nickc@redhat.com>
12585 * config/rx/rx.md (UNSPEC_CONST): New.
12586 (deallocate_and_return): Wrap the amount popped off the stack in
12587 an UNSPEC_CONST in order to stop it being rejected by
12588 -mmax-constant-size.
12589 (pop_and_return): Add a "(return)" rtx.
12590 (call): Drop the immediate operand.
12591 (call_internal): Likewise.
12592 (call_value): Likewise.
12593 (call_value_internal): Likewise.
12594 (sibcall_internal): Likewise.
12595 (sibcall_value_internal): Likewise.
12596 (sibcall): Likewise. Generate an explicit call using
12598 (sibcall_value): Likewise.
12599 (mov<>): FAIL if a constant operand is not legitimate.
12600 (addsi3_unpsec): New pattern.
12602 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12603 (ok_for_max_constant): New function.
12604 (gen_safe_add): New function.
12605 (rx_expand_prologue): Use gen_safe_add.
12606 (rx_expand_epilogue): Likewise.
12607 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
12610 2011-01-21 Jeff Law <law@redhat.com>
12612 PR tree-optimization/47053
12613 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12614 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12615 statements are deleted.
12616 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
12617 is nonempty, then purge dead edges and cleanup the CFG.
12619 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12622 Temporarily revert:
12623 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12625 * tree-dfa.c (create_var_ann): Mark variable as used.
12627 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12629 PR middle-end/45566
12630 * except.c (convert_to_eh_region_ranges): Emit queued no-region
12631 notes from other section in hot/cold partitioning even if
12632 last_action is -3. Increment call_site_base.
12634 PR rtl-optimization/47366
12635 * fwprop.c (forward_propagate_into): Return bool. If
12636 any changes are made, -fnon-call-exceptions is used and
12637 REG_EH_REGION note is present, call purge_dead_edges
12638 and return true if it purged anything.
12639 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12640 any EH edges were purged.
12642 2011-01-21 Jeff Law <law@redhat.com>
12644 PR rtl-optimization/41619
12645 * caller-save.c (setup_save_areas): Break out code to determine
12646 which hard regs are live across calls by examining the reload chains
12647 so that it is always used.
12648 Eliminate code which checked REG_N_CALLS_CROSSED.
12650 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12652 PR tree-optimization/47355
12653 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12654 NOP has non-debug uses beyond PHIs in new_bb.
12656 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12659 * cfgexpand.c (account_used_vars_for_block): Only account vars
12660 that are annotated as used.
12661 (estimated_stack_frame_size): Don't set TREE_USED.
12662 * tree-dfa.c (create_var_ann): Mark variable as used.
12664 2011-01-21 Richard Guenther <rguenther@suse.de>
12666 PR middle-end/47395
12667 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12669 2011-01-21 Richard Guenther <rguenther@suse.de>
12671 PR tree-optimization/47365
12672 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12673 (vn_reference_lookup_pieces): Adjust.
12674 (vn_reference_lookup): Likewise.
12675 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12676 (vn_reference_lookup_3): Only look through kills if in
12677 VN_WALKREWRITE mode.
12678 (vn_reference_lookup_pieces): Adjust.
12679 (vn_reference_lookup): Likewise.
12680 (visit_reference_op_load): Likewise.
12681 (visit_reference_op_store): Likewise.
12682 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12683 (compute_avail): Likewise.
12684 (eliminate): Likewise.
12686 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12688 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12689 DECL_IGNORED_P non-reg vars if they are used.
12691 PR tree-optimization/47391
12692 * varpool.c (const_value_known_p): Return false if
12695 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
12698 * config/i386/i386.c (ix86_local_alignment): Handle
12699 case for va_list_type_node is nil.
12700 (ix86_canonical_va_list_type): Likewise.
12702 2011-01-21 Alan Modra <amodra@gmail.com>
12704 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12705 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12707 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12709 * config/arm/arm.md (define_attr type): Rename f_load
12710 and f_store to f_fpa_load and f_fpa_store. Update.
12711 (write_conflict): Deal with rename fallout.
12712 (*push_fp_multi): Likewise.
12713 * config/arm/fpa.md (f_load): Use f_fpa_load.
12714 (f_store): Use f_fpa_store.
12715 (*movsf_fpa): Likewise.
12716 (*movdf_fpa): Likewise.
12717 (*movxf_fpa): Likewise.
12718 (*thumb2_movsf_fpa): Likewise.
12719 (*thumb2_movdf_fpa): Likewise.
12720 (*thumb2_movxf_fpa): Likewise.
12721 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12722 f_loadd and f_stored.
12723 (*thumb2_movdi_vfp): Likewise.
12724 (*thumb2_movsf_vfp): Fix attribute to f_loads.
12725 (*thumb2_movsi_vfp): Likewise.
12726 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12727 Use f_loads instead of f_load.
12728 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12730 2011-01-20 Anatoly Sokolov <aesok@post.ru>
12732 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12733 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12734 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12735 (xtensa_mode_dependent_address_p): New function.
12736 (constantpool_address_p): Make static. Change return type to bool.
12737 Change argument type to const_rtx. Use CONST_INT_P predicate.
12739 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
12742 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12744 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12747 * cfgexpand.c (expand_debug_expr): Instead of generating
12748 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12751 2011-01-20 Richard Guenther <rguenther@suse.de>
12753 PR middle-end/47370
12754 * tree-inline.c (remap_gimple_op_r): Recurse manually for
12755 the pointer operand of MEM_REFs.
12757 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12759 PR tree-optimization/46130
12760 * ipa-split.c (consider_split): If return_bb contains non-virtual
12761 PHIs other than for retval or if split_function would not adjust it,
12764 2011-01-20 Richard Guenther <rguenther@suse.de>
12766 PR tree-optimization/47167
12767 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12768 Revert previous change, only avoid enumeral type changes.
12770 2011-01-19 Mike Stump <mikestump@comcast.net>
12772 * doc/tm.texi.in (BRANCH_COST): Englishify.
12773 * doc/tm.texi (BRANCH_COST): Likewise.
12775 2011-01-19 Dodji Seketeli <dodji@redhat.com>
12778 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12779 (gen_scheduled_generic_parms_dies): New functions.
12780 (gen_struct_or_union_type_die): Schedule template parameters DIEs
12781 generation for the end of CU compilation.
12782 (dwarf2out_finish): Generate template parameters DIEs here.
12784 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12787 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12788 debug bind stmt on merge edges.
12790 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12794 * function.c (instantiate_expr): Instantiate incoming rtl of
12795 implicit arguments, and recurse on VALUE_EXPRs.
12796 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12797 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12799 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12801 * c-parser.c (c_parser_for_statement): Initialize
12802 collection_expression.
12804 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12806 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12808 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12810 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12811 (LINK_SHLIB_SPEC): Don't use %(link_path).
12812 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12814 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12816 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12817 (NO_SHARED_LIB_SUPPORT): Remove.
12818 (LINK_SHLIB_SPEC): Remove one conditional definition.
12820 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12822 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12824 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12825 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12826 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12827 %{call_shared} and conditionals on these options not being passed.
12828 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12831 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12833 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12836 * ipa-split.c: Spelling fixes.
12838 2011-01-19 Richard Henderson <rth@redhat.com>
12840 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12841 (*mulsi3): Likewise.
12843 * longlong.h [__mn10300__] (count_leading_zeros): New.
12844 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12845 [__mn10300__] (add_ssaaaa, subddmmss): New.
12846 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12847 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12849 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12851 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12853 2011-01-19 Richard Henderson <rth@redhat.com>
12855 * config/mn10300/mn10300.md (addsi3_flags): New.
12856 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12857 (subsi3_flags, subc_internal, subdi3): New.
12858 (subdi3_internal, *subdi3_degenerate): New.
12859 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12861 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12862 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12863 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12864 * config/mn10300/mn10300-protos.h: Update.
12865 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12866 (return_ret): Likewise. Rename from return_internal_regs.
12867 (return_internal): Remove.
12869 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12870 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12871 (mn10300_legitimate_constant_p): Likewise.
12872 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12873 (mn10300_frame_size): New.
12874 (mn10300_expand_prologue): Use it.
12875 (mn10300_expand_epilogue): Likewise.
12876 (mn10300_initial_offset): Likewise.
12877 * config/mn10300/mn10300-protos.h: Update.
12878 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12879 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12880 (prologue, epilogue, return_internal): Tidy output code.
12881 (mn10300_store_multiple_operation, return): Likewise.
12882 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12883 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12884 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12885 (load_pic, am33_load_pic): New.
12886 (mn10300_load_pic0, mn10300_load_pic1): New.
12888 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12889 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12890 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12891 (cc_flags_for_mode, cc_flags_for_code): New.
12892 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12893 overflow flag is not valid. Validate that the flags we need
12894 for the comparison are valid.
12895 (mn10300_output_cmp): Remove.
12896 (mn10300_output_add): New.
12897 (mn10300_select_cc_mode): Use cc_flags_for_code.
12898 (mn10300_split_cbranch): New.
12899 (mn10300_match_ccmode): New.
12900 (mn10300_split_and_operand_count): New.
12901 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12903 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12904 (addsi3): ... here. Use mn10300_output_add.
12905 (*addsi3_flags): New.
12906 (*am33_subsi3, *mn10300_subsi3): Merge...
12907 (subsi3): ... here. Use attribute isa.
12908 (*subsi3_flags): New.
12909 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
12911 (*am33_andsi3, *mn10300_andsi3): Merge...
12912 (andsi3): ... here.
12913 (*andsi3_flags): New.
12914 (andsi3 splitters): New.
12915 (*am33_iorsi3, *mn10300_iorsi3): Merge...
12916 (iorsi3): ... here.
12917 (*iorsi3_flags): New.
12918 (*am33_xorsi3, *mn10300_xorsi3): Merge...
12919 (xorsi3): ... here.
12920 (*xorsi3_flags): New.
12921 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12922 (one_cmplsi2): ... here.
12923 (*one_cmplsi2_flags): New.
12924 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
12925 instead of "dax" in constraints. Use mn10300_split_cbranch.
12926 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
12927 use matching constraints to eliminate a self-comparison.
12928 (*integer_conditional_branch): Rename from integer_conditional_branch.
12929 Use int_mode_flags to match CC_REG.
12930 (*cbranchsi4_btst, *btstsi): New.
12931 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
12932 mn10300_split_cbranch.
12933 (*am33_cmpsf): Rename from am33_cmpsf.
12934 (*float_conditional_branch): Rename from float_conditional_branch.
12935 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12936 (zero_extendqisi2): ... here.
12937 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12938 (zero_extendhisi2): ... here.
12939 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12940 (extendqisi2): ... here.
12941 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12942 (extendhisi2): ... here.
12943 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12944 (ashlsi3): ... here.
12945 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12946 (lshrsi3): ... here.
12947 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12948 (ashrsi3): ... here.
12949 (consecutive add peephole): Remove.
12950 * config/mn10300/predicates.md (label_ref_operand): New.
12951 (int_mode_flags): New.
12952 (CCZN_comparison_operator): New.
12954 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12955 (throughput_42_latency_43): New reservation.
12956 (mulsidi3, umulsidi3): New expanders.
12957 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
12958 the MDR register to allocation; separately allocate the low and
12959 high parts of the DImode result.
12960 (umulsidi3_internal): Similarly.
12961 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12962 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
12963 (udivsi3, umodsi3): Remove.
12964 (udivmodsi4, divmodsi4): New expanders.
12965 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
12966 (*divmodsi4): Simiarly.
12967 (ext_internal): New.
12969 * config/mn10300/constraints.md ("z"): New constraint.
12970 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12971 (FIXED_REGISTERS): Don't fix MDR.
12972 (CALL_USED_REGSITERS): Reformat nicely.
12973 (REG_ALLOC_ORDER): Add MDR.
12974 (enum regclass): Add MDR_REGS.
12975 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12976 (IRA_COVER_CLASSES): Add MDR_REGS.
12977 (REGNO_REG_CLASS): Handle MDR_REG.
12978 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12979 (mn10300_register_move_cost): Likewise.
12980 * config/mn10300/mn10300.md (MDR_REG): New.
12981 (*movsi_internal): Handle moves to/from MDR_REGS.
12983 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12985 (mn10300_secondary_reload): Tidy combination reload classes.
12986 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12987 addresses for AM33. Allow symbolic offsets for reg+imm.
12988 (mn10300_regno_in_class_p): New.
12989 (mn10300_legitimize_reload_address): New.
12990 * config/mn10300/mn10300.h (enum reg_class): Remove
12991 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12992 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
12993 SP_OR_GENERAL_REGS.
12994 (REG_CLASS_NAMES): Update to match.
12995 (REG_CLASS_CONTENTS): Likewise.
12996 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12997 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12998 (REGNO_IN_RANGE_P): Remove.
12999 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13000 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13001 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13002 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13003 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13004 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13005 (REGNO_GENERAL_P): New.
13006 (HAVE_POST_MODIFY_DISP): New.
13007 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13008 (LEGITIMIZE_RELOAD_ADDRESS): New.
13009 * config/mn10300/mn10300-protos.h: Update.
13011 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13012 DATA_REGS for AM33 stack-pointer destination.
13013 (mn10300_preferred_output_reload_class): Likewise.
13014 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13015 into a form appropriate for ...
13016 (TARGET_SECONDARY_RELOAD): New.
13017 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13018 * config/mn10300/mn10300-protos.h: Update.
13019 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13020 reload_insi; use the "A" constraint for the scratch; handle AM33
13021 moves of sp to non-address registers.
13023 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13024 (*movqi_internal): ... here.
13025 (*am33_movhi, *mn10300_movhi): Merge into...
13026 (*movhi_internal): ... here.
13027 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
13028 as the source/destination of moves from/to SP.
13029 (movsf): Only allow for AM33-2.
13030 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13031 any integer constant constraint. Only allow for AM33-2. Tidy
13032 all of the alternative outputs.
13033 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13034 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
13036 (udivsi3, umodsi3): New patterns for MN103 only.
13038 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
13040 * doc/tm.texi.in: Spell out that a lack of register class unions
13042 * doc/tm.texi: Regenerate.
13044 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13046 PR rtl-optimization/47337
13047 * dce.c (check_argument_store): New function.
13048 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
13050 PR tree-optimization/47290
13051 * tree-eh.c (infinite_empty_loop_p): New function.
13052 (cleanup_empty_eh): Use it.
13054 2011-01-18 Steve Ellcey <sje@cup.hp.com>
13057 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13058 (a64_expand_widen_sum): Ditto.
13059 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13060 (vec_extract_evenodd_help): Ditto.
13061 (vec_extract_evenv4hi): Ditto.
13062 (vec_extract_oddv4hi): Ditto.
13063 (vec_extract_evenv2si): Ditto.
13064 (vec_extract_oddv2si): Ditto.
13065 (vec_extract_evenv2sf): Ditto.
13066 (vec_extract_oddv2sf): Ditto.
13067 (vec_pack_trunc_v4hi: Ditto.
13068 (vec_pack_trunc_v2si): Ditto.
13069 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13070 (vec_interleave_highv8qi): Ditto.
13072 (vec_extract_oddv8qi): Ditto.
13073 (vec_interleave_lowv4hi): Ditto.
13074 (vec_interleave_highv4hi): Ditto.
13075 (vec_interleave_lowv2si): Ditto.
13076 (vec_interleave_highv2si): Ditto.
13078 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13080 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13081 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13082 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
13083 (pa_c_mode_for_suffix): New.
13084 (TARGET_EXPAND_BUILTIN): Define.
13085 (TARGET_C_MODE_FOR_SUFFIX): Define.
13086 (pa_builtins): Define.
13087 (pa_init_builtins): Register __float128 type and init new support
13089 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13090 * config/pa/quadlib.c (_U_Qfcopysign): New.
13092 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
13094 PR middle-end/46894
13095 * explow.c (allocate_dynamic_stack_space): Do not assume more than
13096 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13099 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13101 PR tree-optimization/47179
13102 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13103 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13105 2011-01-18 Richard Guenther <rguenther@suse.de>
13107 PR rtl-optimization/47216
13108 * emit-rtl.c: Include tree-flow.h.
13109 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13110 of replicating it with different semantics.
13111 * Makefile.in (emit-rtl.o): Adjust.
13113 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13115 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13116 (cortex_a9_dp): Handle neon types correctly.
13118 2011-01-18 Jakub Jelinek <jakub@redhat.com>
13120 PR rtl-optimization/47299
13121 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13122 subtarget. Use normal multiplication if both operands are constants.
13123 * expmed.c (expand_widening_mult): Don't try to optimize constant
13124 multiplication if op0 has VOIDmode. Convert op1 constant to mode
13127 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13129 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
13130 spacing after 'e.g.', typos, comma, hyphenation.
13132 2011-01-17 Richard Henderson <rth@redhat.com>
13134 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13135 (rx_restricted_mem_operand): New.
13136 (rx_shift_operand): Use register_operand.
13137 (rx_source_operand, rx_compare_operand): Likewise.
13138 * config/rx/rx.md (addsi3_flags): New expander.
13139 (adddi3): Rewrite as expander.
13140 (adc_internal, *adc_flags, adddi3_internal): New patterns.
13141 (subsi3_flags): New expander.
13142 (subdi3): Rewrite as expander.
13143 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13145 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13146 (rx_init_builtins): Remove sat builtin.
13147 (rx_expand_builtin): Likewise.
13148 * config/rx/rx.md (ssaddsi3): New.
13149 (*sat): Rename from sat. Represent the CC_REG input.
13151 * config/rx/predicates.md (rshift_operator): New.
13152 * config/rx/rx.c (rx_expand_insv): Remove.
13153 * config/rx/rx-protos.h: Update.
13154 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
13155 operand to the canonical position.
13156 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13157 (*bitclr, *bitclr_in_memory): Similarly.
13158 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13159 (insv): Retain the zero_extract in the expansion.
13161 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13162 (bswaphi2, bitinvert, revw): Likewise.
13164 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13165 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13166 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13167 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13168 (bitset, bitset_in_memory): Likewise.
13169 (bitinvert, bitinvert_in_memory): Likewise.
13170 (bitclr, bitclr_in_memory): Likewise.
13171 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13172 (rx_strend, rx_cmpstrn): Likewise.
13173 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
13174 (bitop peep2 patterns): Remove.
13176 * config/rx/rx.c (rx_match_ccmode): New.
13177 * config/rx/rx-protos.h: Update.
13178 * config/rx/rx.md (abssi2): Clobber, don't set flags.
13179 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13180 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13181 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13182 (fix_truncsfsi2, floatsisf2): Likewise.
13183 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13184 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13185 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13186 (*subsi3_flags, *xorsi3_flags): New.
13188 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13190 * config/rx/rx.c (rx_print_operand): Remove workaround for
13191 unsplit comparison operations.
13193 * config/rx/rx.md (movsicc): Split after reload.
13194 (*movsicc): Merge *movsieq and *movsine via match_operator.
13195 (*stcc): New pattern.
13197 * config/rx/rx.c (rx_float_compare_mode): Remove.
13198 * config/rx/rx.h (rx_float_compare_mode): Remove.
13199 * config/rx/rx.md (cstoresi4): Split after reload.
13200 (*sccc): New pattern.
13202 * config/rx/predicates.md (label_ref_operand): New.
13203 (rx_z_comparison_operator): New.
13204 (rx_zs_comparison_operator): New.
13205 (rx_fp_comparison_operator): New.
13206 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13207 Validate that the flags are set properly for the comparison.
13208 (rx_gen_cond_branch_template): Remove.
13209 (rx_cc_modes_compatible): Remove.
13210 (mode_from_flags): New.
13211 (flags_from_code): Rename from flags_needed_for_conditional.
13212 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13213 (rx_select_cc_mode): Likewise.
13214 (rx_split_fp_compare): New.
13215 (rx_split_cbranch): New.
13216 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13217 (*cbranchsi4): Use match_operator and rx_split_cbranch.
13218 (*cbranchsf4): Similarly.
13219 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
13220 match_operator and rx_split_cbranch.
13221 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13222 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
13223 (*cmpsi): Rename from cmpsi.
13224 (*tstsi): Rename from tstsi.
13225 (*cmpsf): Rename from cmpsf; use CC_Fmode.
13226 (*conditional_branch): Rename from conditional_branch.
13227 (*reveresed_conditional_branch): Remove.
13228 (b<code>): Remove expander.
13229 * config/rx/rx-protos.h: Update.
13231 * config/rx/rx.c (rx_compare_redundant): Remove.
13232 * config/rx/rx.md (cmpsi): Don't use it.
13233 * config/rx/rx-protos.h: Update.
13235 * config/rx/rx-modes.def (CC_F): New mode.
13236 * config/rx/rx.c (rx_select_cc_mode): New.
13237 * config/rx/rx.h (SELECT_CC_MODE): Use it.
13238 * config/rx/rx-protos.h: Update.
13240 2011-01-17 Richard Henderson <rth@redhat.com>
13242 * except.c (dump_eh_tree): Fix stray ; after for statement.
13244 2011-01-17 Richard Guenther <rguenther@suse.de>
13246 PR tree-optimization/47313
13247 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13248 handling before copying the body. Properly deal with
13249 by-reference result in SSA form.
13251 2011-01-17 Ian Lance Taylor <iant@google.com>
13254 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13255 (struct_value_alias_set): Don't define.
13256 (sparc_option_override): Don't set sparc_sr_alias_set and
13257 struct_value_alias_set.
13258 (save_or_restore_regs): Use gen_frame_mem rather than calling
13260 (sparc_struct_value_rtx): Likewise.
13262 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
13265 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13266 (_mm_maskstore_pd): Likewise.
13267 (_mm_maskload_ps): Likewise.
13268 (_mm_maskstore_ps): Likewise.
13269 (_mm256_maskload_pd): Change mask to __m256i.
13270 (_mm256_maskstore_pd): Likewise.
13271 (_mm256_maskload_ps): Likewise.
13272 (_mm256_maskstore_ps): Likewise.
13274 * config/i386/i386-builtin-types.def: Updated.
13275 (ix86_expand_special_args_builtin): Likewise.
13277 * config/i386/i386.c (bdesc_special_args): Update
13278 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13279 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13280 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13281 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13283 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13284 Use <avxpermvecmode> on mask register.
13285 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13287 2011-01-17 Olivier Hainque <hainque@adacore.com>
13288 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13289 Eric Botcazou <ebotcazou@adacore.com>
13292 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13293 if <= USHRT_MAX in 32-bit mode.
13295 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13297 * doc/install.texi (Configuration, Specific): Wrap long
13298 lines in examples. Allow line wrapping in long options
13299 and URLs where beneficial for PDF output.
13301 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
13303 * config/mips/mips.c (mips_classify_symbol): Don't return
13304 SYMBOL_PC_RELATIVE for nonlocal labels.
13306 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
13308 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13310 2011-01-15 Jan Hubicka <jh@suse.cz>
13312 PR tree-optimization/47276
13313 * ipa.c (function_and_variable_visibility): Do not try to mark alias
13314 declarations as needed.
13316 2011-01-15 Martin Jambor <mjambor@suse.cz>
13318 * common.opt (fdevirtualize): New flag.
13319 * doc/invoke.texi (Option Summary): Document it.
13320 * opts.c (default_options_table): Add devirtualize flag.
13321 * ipa-prop.c (detect_type_change): Return immediately if
13322 devirtualize flag is not set.
13323 (detect_type_change_ssa): Likewise.
13324 (compute_known_type_jump_func): Likewise.
13325 (ipa_analyze_virtual_call_uses): Likewise.
13327 2011-01-14 Martin Jambor <mjambor@suse.cz>
13329 PR tree-optimization/45934
13330 PR tree-optimization/46302
13331 * ipa-prop.c (type_change_info): New type.
13332 (stmt_may_be_vtbl_ptr_store): New function.
13333 (check_stmt_for_type_change): Likewise.
13334 (detect_type_change): Likewise.
13335 (detect_type_change_ssa): Likewise.
13336 (compute_complex_assign_jump_func): Check for dynamic type change.
13337 (compute_complex_ancestor_jump_func): Likewise.
13338 (compute_known_type_jump_func): Likewise.
13339 (compute_scalar_jump_functions): Likewise.
13340 (ipa_analyze_virtual_call_uses): Likewise.
13341 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13343 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13345 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13346 * config/i386/i386.opt (msse5): New Alias.
13348 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13350 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13351 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13352 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13353 * config/sparc/sparc.h (CC1_SPEC): Likewise.
13355 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13357 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13359 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13360 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13361 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13362 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13364 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13366 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13368 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13370 2011-01-14 Mike Stump <mikestump@comcast.net>
13372 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13373 * config/fr30/fr30.md: Likweise
13374 (movsi_push): Likewise.
13375 (movsi_pop): Likewise.
13376 (enter_func): Likewise.
13377 * config/moxie/moxie.md (movsi_push): Likewise.
13378 (movsi_pop): Likewise.
13380 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13382 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13383 %{no_archive} %{exact_version}.
13384 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13385 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13386 %{no_archive} %{exact_version}.
13387 * config/mips/openbsd.h (LINK_SPEC): Likewise.
13388 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13389 * config/mips/vxworks.h: Likewise.
13391 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13393 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13395 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13397 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13398 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13400 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13402 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13405 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13407 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13409 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13410 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13412 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13413 Don't handle -shlib.
13415 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13417 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13418 (CC1_SPEC): Don't handle -profile.
13420 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13422 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13423 * config/mips/mips.h (CC1_SPEC): Likewise.
13425 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13427 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13428 * config/mips/mips.h (CC1_SPEC): Likewise.
13430 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13432 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13433 * config/m32r/linux.h (LINK_SPEC): Likewise.
13434 * config/mips/linux.h (LINK_SPEC): Likewise.
13435 * config/mips/linux64.h (LINK_SPEC): Likewise.
13436 * config/sparc/linux.h (LINK_SPEC): Likewise.
13437 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13438 LINK_SPEC): Likewise.
13439 * config/xtensa/linux.h (LINK_SPEC): Likewise.
13441 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13443 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13445 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13447 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13449 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13450 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13452 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13454 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13456 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13458 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13459 supports -Bstatic/-Bdynamic.
13460 * configure: Regenerate.
13462 2011-01-14 Jan Hubicka <jh@suse.cz>
13463 Jack Howarth <howarth@bromo.med.uc.edu>
13466 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13467 when checking debug_info_level. Test write_symbols instead of
13468 debug_hooks->var_location when setting flag_var_tracking_uninit.
13470 2011-01-14 Richard Guenther <rguenther@suse.de>
13472 PR tree-optimization/47179
13473 * target.def (ref_may_alias_errno): New target hook.
13474 * targhooks.h (default_ref_may_alias_errno): Declare.
13475 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13476 (default_ref_may_alias_errno): New function.
13477 * target.h (struct ao_ref_s): Declare.
13478 * tree-ssa-alias.c: Include target.h.
13479 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13480 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13481 (targhooks.o): Likewise.
13482 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13483 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13485 2011-01-14 Richard Guenther <rguenther@suse.de>
13487 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
13489 2011-01-14 Richard Guenther <rguenther@suse.de>
13491 PR tree-optimization/47280
13492 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13493 return CFG changes.
13494 (tree_ssa_forward_propagate_single_use_vars): Deal with
13495 CFG changes from associate_plusminus.
13497 2011-01-14 Richard Guenther <rguenther@suse.de>
13499 PR middle-end/47281
13501 2011-01-11 Richard Guenther <rguenther@suse.de>
13503 PR tree-optimization/46076
13504 * tree-ssa.c (useless_type_conversion_p): Conversions from
13505 unprototyped to empty argument list function types are useless.
13507 2011-01-14 Richard Guenther <rguenther@suse.de>
13509 PR tree-optimization/47286
13510 * tree-ssa-structalias.c (new_var_info): Register variables are global.
13512 2011-01-14 Martin Jambor <mjambor@suse.cz>
13514 PR middle-end/46823
13515 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13517 2011-01-13 Anatoly Sokolov <aesok@post.ru>
13519 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13520 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13521 * config/xtensa/xtensa.c (xtensa_libcall_value,
13522 xtensa_function_value_regno_p): New functions.
13523 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13525 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
13528 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13530 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13531 New function prototype.
13532 * config/i386/winnt.c (i386_pe_assemble_visibility):
13533 Warn only if attribute was specified by user.
13535 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13538 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13540 (floatunsdidf2_fcfidu): Ditto.
13542 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13544 * config/s390/s390.c (print_operand_address): Replace 'error' with
13545 'output_operand_lossage'.
13546 (print_operand): Likewise.
13548 2011-01-13 Jeff Law <law@redhat.com>
13550 PR rtl-optimization/39077
13551 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13552 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13553 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13554 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13555 * gcse.c (prune_insertions_deletions): New function.
13556 (compute_pre_data): Use it.
13558 2011-01-13 Dodji Seketeli <dodji@redhat.com>
13561 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13563 (prune_unused_types_mark): Use it.
13565 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
13567 PR rtl-optimization/45352
13568 * sel-sched.c: Update copyright years.
13569 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13570 in the advancing loop when we have issued issue_rate insns.
13572 2011-01-12 Richard Henderson <rth@redhat.com>
13574 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13575 (TARGET_MD_ASM_CLOBBERS): New.
13577 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13578 (TARGET_DELEGITIMIZE_ADDRESS): New.
13580 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13581 (clzsi2, *bsch): New patterns.
13583 * config/mn10300/mn10300.md (INT): New mode iterator.
13584 (*mov<INT>_clr): New pattern, and peep2 to generate it.
13586 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13587 flag_split_wide_types.
13589 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13590 (mn10300_trampoline_init): Rewrite without a template, an immediate
13591 load and a direct branch.
13592 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13594 2011-01-12 Anatoly Sokolov <aesok@post.ru>
13596 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13597 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13598 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13599 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13601 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
13604 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13607 2011-01-12 Jan Hubicka <jh@suse.cz>
13610 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13611 (PLUGIN_COND_CLOSE): New macro.
13612 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13614 2011-01-12 Richard Guenther <rguenther@suse.de>
13617 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13618 register variables in a MEM_REF.
13620 2011-01-12 Joseph Myers <joseph@codesourcery.com>
13622 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13623 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13624 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13625 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13626 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13627 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13628 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13629 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13630 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13631 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13632 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13633 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13634 * config/gnu-user.h: New. Copied from linux.h.
13635 (LINUX_TARGET_STARTFILE_SPEC): Rename to
13636 GNU_USER_TARGET_STARTFILE_SPEC.
13637 (LINUX_TARGET_ENDFILE_SPEC): Rename to
13638 GNU_USER_TARGET_ENDFILE_SPEC.
13639 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13640 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13641 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13642 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13643 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13644 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13645 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13646 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13647 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13648 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13649 * config/arm/linux-eabi.h (CC1_SPEC): Use
13650 GNU_USER_TARGET_CC1_SPEC.
13651 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13652 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13653 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13654 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13655 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13656 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13657 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13658 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13660 2011-01-12 Richard Guenther <rguenther@suse.de>
13663 * doc/invoke.texi (ffast-math): Document it is turned on
13666 2011-01-12 Jan Hubicka <jh@suse.cz>
13668 PR tree-optimization/47233
13669 * opts.c (common_handle_option): Disable ipa-reference with profile
13672 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13674 * c-parser.c (c_parser_objc_at_property_declaration): Improved
13677 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13679 * c-parser.c (c_lex_one_token): Updated and reindented some
13680 comments. No changes in code.
13682 2011-01-11 Ian Lance Taylor <iant@google.com>
13684 * godump.c (go_output_var): Don't output the variable if there is
13685 already a type with the same name.
13687 2011-01-11 Ian Lance Taylor <iant@google.com>
13689 * godump.c (go_format_type): Don't generate float80.
13691 2011-01-11 Richard Henderson <rth@redhat.com>
13693 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13694 declaration. Rewrite for both speed and size.
13695 (mn10300_address_cost_1): Remove.
13696 (mn10300_register_move_cost): New.
13697 (mn10300_memory_move_cost): New.
13698 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
13699 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
13700 extensions, shifts, BSWAP, CLZ.
13701 (mn10300_wide_const_load_uses_clr): Remove.
13702 (TARGET_REGISTER_MOVE_COST): New.
13703 (TARGET_MEMORY_MOVE_COST): New.
13704 * config/mn10300/mn10300-protos.h: Update.
13705 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13707 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13708 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13709 * config/mn10300/mn10300-protos.h: Update.
13710 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13711 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13712 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13713 (*test_int_bitfield, *test_byte_bitfield): Remove.
13714 (*bit_test, *subreg_bit_test): Remove.
13715 * config/mn10300/predicates.md (const_8bit_operand): Remove.
13717 * config/mn10300/constraints.md ("c"): Rename from "A".
13718 ("A", "D"): New constraint letters.
13719 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13720 (fmssf4, fnmasf4, fnmssf4): Likewise.
13722 * config/mn10300/mn10300.md (isa): New attribute.
13723 (enabled): New attribute.
13725 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13726 (abssf2, negsf2): Define only for hardware fp.
13727 (sqrtsf2): Reformat.
13728 (addsf3, subsf3, mulsf3): Merge expander and insn.
13730 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13731 (DEBUGGER_AUTO_OFFSET): Remove.
13732 (DEBUGGER_ARG_OFFSET): Remove.
13734 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13735 Emit register stores with the same offsets as the hardware.
13736 (mn10300_store_multiple_operation): Don't check that the register
13737 save offsets are monotonic.
13738 * config/mn10300/mn10300-protos.h: Update.
13740 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13742 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13743 in terms of the value on the stack, not the MDR register.
13745 2011-01-11 Jan Hubicka <jh@suse.cz>
13749 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13750 (symbol_alias_set_destroy, symbol_alias_set_contains,
13751 propagate_aliases_backward): Declare.
13752 * lto-streamer-out.c (struct sets): New sturcture.
13753 (trivally_defined_alias): New function.
13754 (output_alias_pair_p): Rewrite.
13755 (output_unreferenced_globals): Fix output of alias pairs.
13756 (produce_symtab): Likewise.
13757 * ipa.c (function_and_variable_visibility): Set weak alias destination
13759 * varasm.c (symbol_alias_set_t): Remove.
13760 (symbol_alias_set_destroy): Export.
13761 (propagate_aliases_forward, propagate_aliases_backward): New functions
13763 (compute_visible_aliases): ... this one; remove.
13764 (trivially_visible_alias): New
13765 (trivially_defined_alias): New.
13766 (remove_unreachable_alias_pairs): Rewrite.
13767 (finish_aliases_1): Reorganize code checking if alias is defined.
13768 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13771 2011-01-11 Richard Guenther <rguenther@suse.de>
13773 PR tree-optimization/46076
13774 * tree-ssa.c (useless_type_conversion_p): Conversions from
13775 unprototyped to empty argument list function types are useless.
13777 2011-01-11 Richard Guenther <rguenther@suse.de>
13779 PR middle-end/45235
13780 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13781 volatile MEMs as MEM_READONLY_P.
13783 2011-01-11 Richard Guenther <rguenther@suse.de>
13785 PR tree-optimization/47239
13786 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13788 2011-01-11 Jeff Law <law@redhat.com>
13790 PR tree-optimization/47086
13791 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13792 IVs from statements that might throw.
13794 2011-01-10 Jan Hubicka <jh@suse.cz>
13797 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13799 2011-01-10 Jan Hubicka <jh@suse.cz>
13802 * profile.c (read_profile_edge_counts): Ignore profile inconistency
13803 when correcting profile.
13805 2011-01-10 Jan Hubicka <jh@suse.cz>
13808 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13809 DECL_FINI_PRIORITY.
13810 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13811 Restore DECL_FINI_PRIORITY.
13813 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13815 * doc/gimple.texi: Fix quoting of multi-word return values in
13816 @deftypefn statements. Ensure presence of return value. Wrap
13817 overlong @deftypefn lines.
13818 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13819 descriptions of removed functions.
13820 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13821 of multi-word return value in @deftypefn statement.
13823 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13825 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13826 (Conditional Expressions, Logical Operators)
13827 (Statement and operand traversals): Do not indent smallexample
13828 code. Fix duplicate function argument in example.
13830 2011-01-10 Jeff Law <law@redhat.com>
13832 PR tree-optimization/47141
13833 * ipa-split.c (split_function): Handle case where we are
13834 returning a value and the return block has a virtual operand phi.
13836 2011-01-10 Jan Hubicka <jh@suse.cz>
13838 PR tree-optimization/47234
13839 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13840 (pass_feedback_split_functions): Declare.
13841 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13843 * ipa-split.c (gate_split_functions): Update comments; disable
13844 split-functions for profile_arc_flag and branch_probabilities.
13845 (gate_feedback_split_functions): New function.
13846 (execute_feedback_split_functions): New function.
13847 (pass_feedback_split_functions): New global var.
13849 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13852 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13853 calling gimple_call_set_cannot_inline.
13855 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13857 * config/darwin-sections.def: Remove unused section.
13859 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13862 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13864 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13867 * c-parser.c (c_parser_declaration_or_fndef): Improved
13870 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
13872 * config/i386/winnt.c (i386_pe_start_function): Make sure
13873 to switch back to function's section.
13875 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13879 * plugin.c: Move include of dlfcn.h from here...
13880 * system.h: ... to here.
13882 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13884 * doc/cpp.texi (C++ Named Operators): Fix markup for header
13886 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13887 two extra empty pages in PDF output.
13889 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
13892 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13893 for error recovery purposes behave as if it was not specified so
13894 that the default type is usd.
13896 2011-01-07 Jan Hubicka <jh@suse.cz>
13898 PR tree-optmization/46469
13899 * ipa.c (function_and_variable_visibility): Clear needed flags on
13900 nodes with external decls; handle weakrefs merging correctly.
13902 2011-01-07 Joseph Myers <joseph@codesourcery.com>
13904 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13907 2011-01-07 Jan Hubicka <jh@suse.cz>
13909 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13910 and no longer claim that gold is required for linker plugin.
13911 * configure: Regenerate.
13912 * gcc.c (PLUGIN_COND): New macro.
13913 (LINK_COMMAND_SPEC): Use it.
13914 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13915 * config.in (HAVE_LTO_PLUGIN): New.
13916 * configure.ac (--with-lto-plugin): New parameter; autodetect
13919 2011-01-07 Jan Hubicka <jh@suse.cz>
13921 PR tree-optimization/46367
13922 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13923 when we can update original.
13924 (cgraph_mark_inline_edge): Sanity check.
13925 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13927 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13929 * config/spu/spu.h (ASM_COMMENT_START): Define.
13931 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
13934 * gcc.c (%>S): New.
13935 (SWITCH_KEEP_FOR_GCC): Likewise.
13936 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13937 (do_spec_1): Handle "%>".
13939 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13941 2011-01-07 Jakub Jelinek <jakub@redhat.com>
13944 * config/i386/i386.c (ix86_delegitimize_address): If
13945 simplify_gen_subreg fails, return orig_x.
13948 * value-prof.c (gimple_stringop_fixed_value): Handle
13949 lhs of the call properly.
13951 2011-01-07 Jan Hubicka <jh@suse.cz>
13954 * lto-opt.c (lto_reissue_options): Set flag_shlib.
13956 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13958 * target.def (function_switched_text_sections): New hook.
13959 * doc/tm.texi: Regenerated.
13960 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13961 * final.c (default_function_switched_text_sections): New.
13962 (final_scan_insn): Call function_switched_text_sections when a
13963 mid-function section change occurs.
13964 * output.h (default_function_switched_text_sections): Declare.
13965 * config/darwin-protos.h (darwin_function_switched_text_sections):
13967 * config/darwin.c (darwin_function_switched_text_sections): New.
13968 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13970 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13972 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
13973 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
13974 the secondary code fragment when outputting for DWARF == 2.
13976 2011-01-07 Anatoly Sokolov <aesok@post.ru>
13978 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13979 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13981 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13982 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13984 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
13987 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13988 when it is not empty.
13990 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
13993 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13994 (case ${target}): Add btver1.
13995 * config/i386/driver-i386.c (host_detect_local_cpu): Let
13996 -march=native recognize btver1 processors.
13997 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13998 btver1 def_and_undef
13999 * config/i386/i386.c (struct processor_costs btver1_cost): New
14001 (m_BTVER1): New definition.
14002 (m_AMD_MULTIPLE): Includes m_BTVER1.
14003 (initial_ix86_tune_features): Add btver1 tune.
14004 (processor_target_table): Add btver1 entry.
14005 (static const char *const cpu_names): Add btver1 entry.
14006 (software_prefetching_beneficial_p): Add btver1.
14007 (ix86_option_override_internal): Add btver1 instruction sets.
14008 (ix86_issue_rate): Add btver1.
14009 (ix86_adjust_cost): Add btver1.
14010 * config/i386/i386.h (TARGET_BTVER1): New definition.
14011 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14012 (enum processor_type): Add PROCESSOR_BTVER1.
14013 * config/i386/i386.md (define_attr "cpu"): Add btver1.
14015 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14018 * config/i386/i386.c (legitimize_tls_address)
14019 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14020 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14021 (tls_initial_exec_64_sun): New pattern.
14023 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14025 * doc/invoke.texi (Overall Options): Improve wording and markup
14026 of the description of -wrapper.
14028 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14030 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14031 rdynamic, threads): New Driver options.
14033 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14036 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14037 if coming from .tdata.
14038 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14040 2011-01-06 Jan Hubicka <jh@suse.cz>
14043 * collect2.c (main): Do not enable LTOmode when plugin is active.
14045 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14048 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14049 --version output if supported.
14050 * configure: Regenerate.
14052 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14054 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14057 2011-01-06 Jakub Jelinek <jakub@redhat.com>
14060 * c-convert.c (convert): When converting a complex expression
14061 other than COMPLEX_EXPR to a different complex type, ensure
14062 c_save_expr is called instead of save_expr, unless in_late_binary_op.
14063 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14064 when converting COMPLEX_TYPE.
14066 2011-01-06 Ira Rosen <irar@il.ibm.com>
14068 PR tree-optimization/47139
14069 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14070 only the last reduction value is used outside the loop. Update
14073 2011-01-05 Joseph Myers <joseph@codesourcery.com>
14075 * config/rtems.opt: New.
14076 * config.gcc (*-*-rtems*): Use rtems.opt.
14078 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
14080 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14081 processors do not support 3DNow instructions.
14083 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14085 * config/spu/spu.c (spu_option_override): Set parameter
14086 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14088 2011-01-05 Jan Hubicka <jh@suse.cz>
14090 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14091 at the command line.
14093 2011-01-05 Martin Jambor <mjambor@suse.cz>
14096 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14097 deltas on streamed outgoing edges.
14098 (output_node_opt_summary): Output info for outgoing edges only when
14099 the node is in new parameter set.
14100 (output_cgraph_opt_summary): New parameter set, passed to the two
14101 aforementioned functions. Update its forward declaration and its
14104 2011-01-05 Tom Tromey <tromey@redhat.com>
14106 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14107 operator to c_finish_omp_atomic.
14108 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14109 (build_unary_op): Update.
14110 (build_modify_expr): Update.
14111 (build_asm_expr): Update.
14113 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14115 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14116 newly inserted insns.
14117 (pad_bb): Likewise.
14118 (spu_emit_branch_hint): Likewise.
14119 (insert_hbrp_for_ilb_runout): Likewise.
14120 (spu_machine_dependent_reorg): Call df_finish_pass after
14121 schedule_insns returns.
14123 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14125 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14127 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
14129 PR tree-optimization/47005
14130 * tree-sra.c (struct access): Add 'non_addressable' bit.
14131 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14132 (decide_one_param_reduction): Return 0 if the parameter is passed by
14133 reference and one of the accesses in the group is non_addressable.
14135 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14137 PR tree-optimization/47056
14138 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14139 (mark_load): Likewise. Handle FUNCTION_DECL specially.
14140 (mark_store): Likewise. Pass STMT to ipa_record_reference.
14142 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14144 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14145 initializer. Skip view conversions from aggregate types.
14147 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
14150 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14152 2011-01-04 Philipp Thomas <pth@suse.de>
14154 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14157 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14159 * function.c (thread_prologue_and_epilogue_insns): Do not crash
14160 on empty epilogue sequences.
14162 2011-01-04 Joseph Myers <joseph@codesourcery.com>
14164 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14165 non-static): New Driver options.
14167 2011-01-04 Jie Zhang <jie@codesourcery.com>
14170 * gcc.c (default_compilers[]): Set combinable field to 0
14171 for all assembly languages.
14173 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
14175 * config/mips/loongson3a.md: New file.
14176 * config/mips/mips.md: Include loongson3a.md.
14177 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14180 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
14182 PR middle-end/47017
14183 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14184 instead of convert_memory_address_addr_space on the base expression.
14186 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14188 * config/spu/spu.c (spu_option_override): Update error text
14189 for bad -march= / -mtune= values.
14191 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14193 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14194 if branch-hint optimization will be performed.
14196 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14198 PR tree-optimization/47148
14199 * ipa-split.c (split_function): Convert arguments to
14200 DECL_ARG_TYPE if possible.
14202 PR tree-optimization/47155
14203 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14204 when computing uns.
14206 PR rtl-optimization/47157
14207 * combine.c (try_combine): If undobuf.other_insn becomes
14208 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14209 and set *new_direct_jump_p too.
14211 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
14213 PR tree-optimization/47021
14214 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14216 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14218 * gcc.c (process_command): Update copyright notice dates.
14219 * gcov.c (print_version): Likewise.
14220 * gcov-dump.c (print_version): Likewise.
14221 * mips-tfile.c (main): Likewise.
14222 * mips-tdump.c (main): Likewise.
14224 2011-01-03 Martin Jambor <mjambor@suse.cz>
14226 PR tree-optimization/46801
14227 * tree-sra.c (type_internals_preclude_sra_p): Check whether
14228 aggregate fields start at byte boundary instead of the bit-field flag.
14230 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
14233 * gcc.c (main): Revert revision 168407.
14235 2011-01-03 Martin Jambor <mjambor@suse.cz>
14237 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14239 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14241 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14242 vector optab to expand vector/scalar shift, update gimple to vector.
14244 2011-01-03 Martin Jambor <mjambor@suse.cz>
14246 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14249 2011-01-03 Martin Jambor <mjambor@suse.cz>
14251 PR tree-optimization/46984
14252 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14254 (cgraph_create_indirect_edge): Fixed line length.
14255 (cgraph_indirect_call_info): Declare.
14256 (cgraph_make_edge_direct) Update declaration.
14257 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14258 (cgraph_create_indirect_edge): Use it.
14259 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
14261 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14262 the new thunk_delta representation.
14263 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14265 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14266 (ipa_read_indirect_edge_info): Likewise.
14267 * lto-cgraph.c (output_edge_opt_summary): New function.
14268 (output_node_opt_summary): Call it on all outgoing edges.
14269 (input_edge_opt_summary): New function.
14270 (input_node_opt_summary): Call it on all outgoing edges.
14272 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
14275 * gcc.c (main): Don't check have_o when settting combine_inputs.
14277 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
14279 * regrename.c: Add general comment describing the pass.
14280 (struct du_head): Remove 'length' field.
14281 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14282 (regrename_optimize): Do not sort chains. Rework comments, add others.
14283 Force renaming to the preferred class (if any) in the first pass and do
14284 not consider registers that belong to it in the second pass.
14285 (create_new_chain): Do not set 'length' field.
14286 (scan_rtx_reg): Likewise.
14288 2011-01-02 Jakub Jelinek <jakub@redhat.com>
14290 PR tree-optimization/47140
14291 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14292 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14293 to bit_value_binop.
14295 PR rtl-optimization/47028
14296 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14297 parm_birth_insn instead of at the beginning of first bb.
14299 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
14301 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14302 Remove the word "see" before "@pxref".
14303 * doc/rtl.texi: Remove the word "see" before "@pxref".
14305 2011-01-01 Jan Hubicka <jh@suse.cz>
14307 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14310 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
14313 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14316 Copyright (C) 2011 Free Software Foundation, Inc.
14318 Copying and distribution of this file, with or without modification,
14319 are permitted in any medium without royalty provided the copyright
14320 notice and this notice are preserved.