1 2011-05-13 Andreas Schwab <schwab@redhat.com>
3 * configure.ac: Use AS_HELP_STRING throughout.
4 * configure: Regenerate.
6 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
8 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return
10 (ix86_emit_restore_regs_using_mov): Likewise.
11 (ix86_emit_restore_sse_regs_using_mov): Likewise.
13 2011-05-12 Anatoly Sokolov <aesok@post.ru>
15 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
16 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
17 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
18 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
19 RTX_OK_FOR_OLO10_P): ...here.
20 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
23 2011-05-12 Kai Tietz <ktietz@redhat.com>
25 * gimplify.c (gimple_boolify): Re-boolify expression
26 arguments even if expression type is of kind BOOLEAN_TYPE.
27 (gimplify_boolean_expr): Removed.
28 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
29 and XOR. Additional take care that we keep expression's type.
30 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
31 of TRUTH_AND|OR|XOR_EXPR.
33 2011-05-12 Jakub Jelinek <jakub@redhat.com>
35 PR tree-optimization/48975
36 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
37 on all bbs here and free and clear ifc_bbs at the end.
39 2011-05-12 Richard Guenther <rguenther@suse.de>
41 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
42 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
43 until after simple checks.
44 (gimple_types_compatible_p): Likewise.
45 (iterative_hash_gimple_type): Always hash pointer targets
46 and function return and argument types.
47 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
48 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
49 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
50 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
51 completely in the simple compare section.
52 (gimple_register_canonical_type): Query the cache again after
55 2011-05-12 Richard Guenther <rguenther@suse.de>
57 PR tree-optimization/48172
58 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
59 the number of iterations from the segment size calculation.
60 (vect_create_cond_for_alias_checks): Adjust.
62 2011-05-12 Jakub Jelinek <jakub@redhat.com>
65 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
66 if validate_subreg fails.
68 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
70 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
71 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
74 2011-05-12 DJ Delorie <dj@redhat.com>
76 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
77 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
78 created builtin into rx_builtins array.
79 (rx_builtin_decl): New function.
80 (TARGET_BUITLIN_DECL): Define.
83 2011-05-12 DJ Delorie <dj@redhat.com>
84 Nick Clifton <nickc@redhat.com>
86 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
87 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
88 (rx_is_legitimate_address): Add pre-decrement and post-increment
89 addressing in HImode and QImode. Fix test for out of range
91 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
92 (rx_align_for_label): Test label before extracting its usage
94 (rx_adjust_insn_lengths): Fix selection of insn codes.
95 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
97 2011-05-11 Jason Merrill <jason@redhat.com>
99 * tree.c (type_hash_canon): Use struct tree_type_non_common.
101 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
103 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
104 reindent the subsequent block.
106 2011-05-11 Satoru Takabayashi <satorux@google.com>
107 Paul Pluzhnikov <ppluzhnikov@google.com>
109 * doc/install.texi (Configuration): Document
110 --with-linker-hash-style.
111 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
112 * config.in: Add LINKER_HASH_STYLE.
113 * configure.ac: Add --with-linker-hash-style.
114 * configure: Regenerate.
116 2011-05-11 Richard Guenther <rguenther@suse.de>
119 * gimple.c (iterative_hash_canonical_type): Fix typo.
121 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
123 * config/i386/i386.c (legitimize_tls_address)
124 <TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
125 expanders directly for TARGET_GNU2_TLS. Determine pic and
126 __tls_get_addr symbol reference here. Update call to
127 gen_tls_global_dynamic_{32,64} for added arguments.
128 <TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
129 expanders directly for TARGET_GNU2_TLS. Determine
130 __tls_get_addr symbol reference here. Update call to
131 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
132 unique UNSPEC REG_EQUIV to libcall block.
133 (ix86_tls_get_addr): Declare static.
134 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
135 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
136 Do not determine pic and __tls_get_addr symbol reference here. Do not
137 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
138 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
139 (tls_global_dynamic_64): Add operand 2. Do not determine
140 __tls_get_addr symbol reference here. Do not call
141 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
142 (tls_local_dynamic_base64): Ditto for operand 1.
144 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
146 * function.c (expand_function_start): Initialize stack_check_probe_note
147 only if the generic stack checking mechanism is used.
149 2011-05-11 Richard Guenther <rguenther@suse.de>
151 PR tree-optimization/15256
152 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
153 (A & B) | C, combine (A op CST1) op CST2.
154 (tree_ssa_forward_propagate_single_use_vars): Only bother to
155 visit assigns that have uses.
157 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
159 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
160 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
161 (unpack_ts_type_common_value_fields): ...this. Update comment.
162 (unpack_value_fields): Adjust for renaming.
163 (lto_input_ts_type_tree_pointers): Split into...
164 (lto_input_ts_type_common_tree_pointer): ...this and...
165 (lto_input_ts_type_non_common_tree_pointers): ...this.
166 (lto_input_tree_pointers): Adjust for above split.
167 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
168 (pack_ts_type_common_value_fields): ...this. Update comment.
169 (lto_output_ts_type_tree_pointers): Split into...
170 (lto_output_ts_type_common_tree_pointers): ...this and...
171 (lto_output_ts_type_non_common_tree_pointers): ...this.
172 (lto_output_tree_pointers): Adjust for above split.
173 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
174 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
175 * stor-layout.c (vector_type_mode): Adjust location of mode field.
176 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
178 (struct tree_type): Split into...
179 (struct tree_type_common: ...this and...
180 (struct tree_type_with_lang_specific): ...this and...
181 (struct tree_type_non_common): ...this. Adjust accessor macros
183 (TYPE_VALUES_RAW): Define.
184 (union tree_node): Update for above changes.
185 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
187 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
188 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
189 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
190 * treestructu.def (TS_TYPE): Remove.
191 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
194 2011-05-11 Jakub Jelinek <jakub@redhat.com>
197 * tree-ssa.c (reset_debug_uses): New function.
198 * tree-flow.h (reset_debug_uses): New prototype.
199 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
200 * tree-loop-distribution.c (generate_loops_for_partition): Call
201 reset_debug_uses on the stmts that will be removed. Keep around
202 all debug stmts, don't count them as bits in partition bitmap.
203 (generate_builtin): Don't count debug stmts or labels as bits in
206 2011-05-11 Richard Guenther <rguenther@suse.de>
208 * gimple.c (gimple_type_hash_1): Merge with ...
209 (gimple_type_hash): ... this.
210 (gtc_visit): Remove mode parameter and simplify accordingly.
211 (gimple_types_compatible_p_1): Likewise.
212 (gimple_types_compatible_p): Likewise.
213 (iterative_hash_gimple_type): Likewise.
215 (gimple_type_eq): Adjust.
217 2011-05-11 Revital Eres <revital.eres@linaro.org>
219 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
220 enters the branch create an anti edge in the opposite direction
221 to prevent the creation of reg-moves.
222 * modulo-sched.c: Adjust comment to reflect the fact we are
223 scheduling closing branch.
224 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
225 (stage_count): New field in struct partial_schedule.
226 (calculate_stage_count): New function.
227 (normalize_sched_times): Rename to reset_sched_times and handle
228 incrementing the sched time of the nodes by a constant value
230 (duplicate_insns_of_cycles): Skip closing branch.
231 (sms_schedule_by_order): Schedule closing branch.
232 (ps_insn_find_column): Handle closing branch.
233 (sms_schedule): Call reset_sched_times and adjust the code to
234 support scheduling of the closing branch.
235 (ps_insert_empty_row): Update calls to normalize_sched_times
236 and rotate_partial_schedule functions.
238 2011-05-11 Richard Guenther <rguenther@suse.de>
241 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
243 2011-05-11 Joseph Myers <joseph@codesourcery.com>
245 * opts.c (finish_options): Move warning settings from process_options.
246 * toplev.c (process_options): Move warning settings to finish_options.
248 2011-05-11 Richard Guenther <rguenther@suse.de>
250 PR tree-optimization/18041
251 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
252 (simplify_bitwise_binary): ... this. Handle operand conversions
253 by applying them to the result instead.
254 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
256 2011-05-11 Richard Guenther <rguenther@suse.de>
258 * gimple.c (gimple_canonical_types_compatible_p): Split out
259 from gimple_types_compatible_p and friends. Do not recurse
261 (gimple_canonical_type_eq): Use it.
262 (iterative_hash_canonical_type): Split out from
263 iterative_hash_gimple_type and friends. Do not recurse
265 (gimple_canonical_type_hash): Use it, allocate the hash here.
267 2011-05-11 Revital Eres <revital.eres@linaro.org>
269 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
272 2011-05-11 Revital Eres <revital.eres@linaro.org>
274 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
275 instead of PREV_INSN.
277 2011-05-11 Revital Eres <revital.eres@linaro.org>
279 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
280 * loop-doloop.c (doloop_condition_get): Likewise.
281 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
283 * config/arm/arm.md (*addsi3_compare0): Remove "*".
285 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
287 * tree.def (CASE_LABEL_EXPR): Add an operand.
288 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
290 2011-05-10 Joseph Myers <joseph@codesourcery.com>
292 * c-decl.c (c_override_global_bindings_to_false): Remove.
293 (global_bindings_p): Don't check
294 c_override_global_bindings_to_false.
295 * c-tree.h (c_override_global_bindings_to_false): Remove.
296 * c-typeck.c (composite_type): Don't set
297 c_override_global_bindings_to_false.
299 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
301 PR target/48857, 48495
302 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
304 (VSX_MOVE_MODE): Ditto.
305 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
306 VSX vector types. Add V2DImode.
307 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
308 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
309 (MODES_TIEABLE_P): Ditto.
311 * config/rs6000/rs6000.c (rs6000_emit_move): Use
312 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
314 (init_cumulative_args): Ditto.
315 (rs6000_function_arg_boundary): Ditto.
316 (rs6000_function_arg_advance_1): Ditto.
317 (rs6000_function_arg): Ditto.
318 (rs6000_function_ok_for_sibcall): Ditto.
319 (emit_frame_save): Ditto.
320 (rs6000_function_value): Ditto.
321 (rs6000_libcall_value): Ditto.
323 2011-05-10 Joseph Myers <joseph@codesourcery.com>
325 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
326 i386/darwin-lib.h to $libgcc_tm_file.
327 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
329 2011-05-10 Joseph Myers <joseph@codesourcery.com>
331 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
333 2011-05-10 Joseph Myers <joseph@codesourcery.com>
335 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
336 * config/rs6000/rs6000-tables.opt: New file (generated).
337 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
338 rs6000/rs6000-tables.opt to extra_options.
339 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
340 * config/rs6000/rs6000.c (rs6000_select): Remove.
341 (processor_target_table): Move contents to rs6000-cpus.def.
342 (darwin_rs6000_override_options): Check
343 global_options_set.x_rs6000_cpu_index instead of
344 rs6000_select[1].string.
345 (rs6000_option_override_internal): Likewise.
346 (rs6000_handle_option): Don't assert that global structures are in
347 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
348 (rs6000_default_cpu): New variable.
349 (rs6000_file_start): Set it instead of local default_cpu. Check
350 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
351 global_options_set.x_rs6000_tune_index instead of rs6000_select.
352 (rs6000_darwin_file_start): Check rs6000_default_cpu and
353 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
354 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
355 rs6000_select): Remove.
356 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
358 (mcpu=, mtune=): Use Var, Init, Enum and Save.
359 * config/rs6000/t-rs6000
360 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
361 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
362 global_options_set.x_rs6000_cpu_index instead of
363 rs6000_select[1].string.
364 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
365 global_options_set.x_rs6000_cpu_index instead of
366 rs6000_select[1].string.
368 2011-05-10 Joseph Myers <joseph@codesourcery.com>
370 * config.gcc (libgcc_tm_file): Define instead of including files
371 from ../../libgcc/config/ in tm_file.
372 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
373 * configure: Regenerate.
374 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
375 libgcc_tm.h, cs-libgcc_tm.h): New.
376 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
377 (clean): Remove libgcc_tm.h.
378 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
379 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
380 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
382 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
385 * config/avr/avr.c (avr_ret_register): Return unsigned int
387 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
388 it to avr_libcall_value.
389 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
391 (avr_expand_binop_builtin): Ditto.
392 (avr_expand_unop_builtin): Ditto.
394 2011-05-10 DJ Delorie <dj@redhat.com>
396 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
397 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
398 * config/rx/rx.c (rx_align_for_label): Add label and
399 uses_threshold parameters. Do not align when the label is not
401 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
403 2011-05-10 Richard Guenther <rguenther@suse.de>
405 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
406 a series of conversions and apply foldings similar to what
408 (tree_ssa_forward_propagate_single_use_vars): Call it.
410 2011-05-10 Jakub Jelinek <jakub@redhat.com>
412 PR tree-optimization/48611
413 PR tree-optimization/48794
414 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
415 referenced from RESX or EH_DISPATCH arguments.
418 * dfp.c (decimal_to_decnumber): Handle conversion from
421 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
423 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
424 for !flag_prefer_avx128.
425 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
427 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
429 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
430 (fold_ternary_loc): Use expr_location_or.
432 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
435 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
436 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
437 Pmode and mem_mode is not VOIDmode.
439 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
441 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
442 TYPE_QUAL_RESTRICT): Convert to enum.
444 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
446 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
447 (const_pow2_1_to_8_operand): Ditto.
448 (const_pow2_1_to_128_operand): Ditto.
449 (const_pow2_1_to_32768_operand): Ditto.
450 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
451 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
452 in insn constraint to check integer value of operand 3.
453 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
455 (PINSR_MODE): New mode iterator.
456 (sse2p4_1): New mode attribute.
457 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
458 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
459 iterator. Use const_int_operand instead of
460 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
461 exact_log2 in insn constraint to check integer value of operand 3.
463 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
465 * config/i386/sse.md (blendbits): Remove mode attribute.
466 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
467 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
468 Check integer value of operand 3 in insn constraint.
470 2011-05-09 Richard Guenther <rguenther@suse.de>
472 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
474 (lto_symtab_merge): Likewise. Do not register types here.
475 (lto_symtab_merge_decls_2): Likewise.
476 (lto_symtab_merge_decls_1): Likewise.
477 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
478 * gimple.c (enum gtc_mode): Declare.
479 (gimple_types_compatible_p): Make static.
481 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
483 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
484 temporary register to match Pmode.
486 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
488 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
489 and *vec_concatv4si_1_avx.
491 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
493 PR rtl-optimization/48927
494 * ira-conflicts.c (commutative_constraint_p): Use
495 recog_data.alternative_enabled_p to disable alternatives where
496 "enabled" attribute is false.
497 (get_dup_num): Ditto.
498 * ira-lives.c (single_reg_class): Ditto.
499 (ira_implicitly_set_insn_hard_regs): Ditto.
501 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
503 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
504 (dataflow_set_preserve_mem_locs): Likewise.
506 2011-05-09 Philipp Thomas <pth@suse.de>
508 * config/mep/mep.c (mep_validate_vliw): Syntax description
509 should not be translated.
511 2011-05-09 Joseph Myers <joseph@codesourcery.com>
513 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
514 * config/mips/mips-tables.opt: New file (generated).
515 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
516 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
517 MIPS_ARCH_OPTION_NATIVE): Define.
518 * config/mips/mips.c (mips_cpu_info_table): Move contents to
520 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
521 mips_parse_cpu): Remove.
522 (mips_cpu_info_from_opt, mips_default_arch): New.
523 (mips_handle_option): Don't assert that global structures are in
524 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
525 (mips_option_override): Use new variables and functions to set
526 state of these options. Use strcmp to check for individual CPU names.
527 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
529 * config/mips/mips.opt (march=): Use ToLower and Enum.
530 (mips): Use ToLower, Enum and Var.
531 (mtune=): Use ToLower and Enum.
532 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
534 2011-05-08 Jan Hubicka <jh@suse.cz>
536 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
537 Arrange type pairs to be UID ordered.
538 (gimple_lookup_type_leader): Make inline.
540 2011-05-09 Nick Clifton <nickc@redhat.com>
543 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
547 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
550 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
552 * combine.c (simplify_comparison): Abstract out parts into...
553 (simplify_compare_const): ... new function.
554 (try_combine): Generalize parallel arithmetic/compare combining
555 to call simplify_compare_const() and CANONICALIZE_COMPARE().
557 2011-05-08 Jan Hubicka <jh@suse.cz>
559 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
560 (cgraph_create_virtual_clone): Call hooks once virtual clone
562 * cgraph.h (cgraph_clone_node): Update prototype.
563 * ipa-cp.c (ipcp_estimate_growth): Use
564 estimate_ipcp_clone_size_and_time.
565 * ipa-inline-transform.c (clone_inlined_nodes): Update.
566 * lto-cgraph.c (input_node): Update.
567 * ipa-inline.c (recursive_inlining): Update.
568 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
569 (evaluate_conditions_for_known_args): Break out from ...
570 (evaluate_conditions_for_edge): ... here.
571 (evaluate_conditions_for_ipcp_clone): New function.
572 (inline_node_duplication_hook): Update clone summary based
574 (estimate_callee_size_and_time): Rename to ...
575 (estimate_node_size_and_time): take NODE instead of EDGE;
576 take POSSIBLE_TRUTHS as argument.
577 (estimate_callee_size_and_time): Update.
578 (estimate_ipcp_clone_size_and_time): New function.
579 (do_estimate_edge_time): Update.
581 2011-05-08 Richard Guenther <rguenther@suse.de>
585 * expmed.c (expand_shift_1): Compute adjusted constant shift
588 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
590 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
592 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
594 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
596 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
598 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
600 2011-05-07 Jan Hubicka <jh@suse.cz>
602 * ipa-inline-transform.c (inline_call): Account when program size
604 * ipa-inline.c (relative_time_benefit): New function.
605 (edge_badness): Reorganize to be power 2 based; fix thinko when
606 computing badness for negative growth; update comments to match
607 reality; better dumps.
609 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
611 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
612 type to bool and adjust comment.
613 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
614 (fold_mathfn_compare): Remove calls to global_bindings_p.
615 (fold_inf_compare): Likewise.
616 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
617 * c-tree.h (global_bindings_p): Adjust prototype.
618 * c-decl.c (global_bindings_p): Return bool and simplify.
620 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
622 PR tree-optimization/48837
623 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
624 when accumulator transformation is performed.
626 2011-05-06 Jan Hubicka <jh@suse.cz>
628 * i386.h (ix86_tune_indices): Add
629 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
630 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
631 * i386.c (initial_ix86_tune_features): Add
632 X86_SOFTARE_PREFETCHING_BENEFICIAL.
633 (software_prefetching_beneficial_p): Remove predicate.
634 (ix86_option_override_internal): Use new macro.
636 2011-05-06 Jan Hubicka <jh@suse.cz>
638 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
640 2011-05-06 Jan Hubicka <jh@suse.cz>
642 * cgraph.c (cgraph_add_thunk): Create real function node instead
643 of alias node; finalize it and mark needed/reachale; arrange visibility
644 to be right and add it into the corresponding same comdat group list.
645 (dump_cgraph_node): Dump thunks.
646 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
647 cgraph_function_with_gimple_body_p,
648 cgraph_first_function_with_gimple_body,
649 cgraph_next_function_with_gimple_body): New functions.
650 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
652 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
653 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
654 * cgraphunit.c (cgraph_finalize_function): Only look into possible
655 devirtualization when optimizing.
656 (verify_cgraph_node): Verify thunks.
657 (cgraph_analyze_function): Analyze thunks.
658 (cgraph_mark_functions_to_output): Output thunks only in combination
659 with function they are assigned to.
660 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
661 alias into normal node.
662 (assemble_thunks): New functoin.
663 (cgraph_expand_function): Use it.
664 * lto-cgraph.c (lto_output_node): Stream thunks.
665 (input_overwrite_node): Stream in thunks.
666 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
667 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
668 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
669 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
670 (inline_analyze_function): Do not care about thunk jump functions.
671 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
672 * ipa-prop.c (ipa_prop_write_jump_functions): Use
673 cgraph_function_with_gimple_body_p.
674 * passes.c (do_per_function_toporder): Use
675 cgraph_function_with_gimple_body_p.
676 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
677 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
678 (function_called_by_processed_nodes_p): Likewise.
680 2011-05-06 Joseph Myers <joseph@codesourcery.com>
682 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
683 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
685 (mabi=): Replace with separate entries for mabi=altivec,
686 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
687 mabi=ieeelongdouble and mabi=ibmlongdouble.
688 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
689 check for -mabi=spe without SPE ABI support here.
690 (rs6000_handle_option): Replace OPT_mabi_ handling with
691 OPT_mabi_altivec and OPT_mabi_spe handling.
693 2011-05-06 Cary Coutant <ccoutant@google.com>
695 * dwarf2out.c (contains_subprogram_definition): New function.
696 (should_move_die_to_comdat): Call it.
698 2011-05-06 Jeff Law <law@redhat.com>
700 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
701 remove_ctrl_stmt_and_useless_edges.
702 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
703 (fixup_template_block, thread_single_edge): Likewise.
704 (mark_threaded_blocks): Use THREAD_TARGET.
706 2011-05-06 Alan Modra <amodra@gmail.com>
709 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
710 const0_rtx as the arg to the dummy __tls_get_addr libcall.
712 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
714 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
715 constraint modifier to "r".
717 2011-05-06 Joseph Myers <joseph@codesourcery.com>
719 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
720 fall through for OPT_mcmodel_.
722 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
724 * config/s390/s390.c (s390_asm_trampoline_template): Comment
726 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
728 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
731 * config/arm/arm.opt (marm): Document it.
732 (mthumb): Reject negative variant.
734 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
737 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
738 Fix typo in "ccvt" variable name.
740 2011-05-06 Tristan Gingold <gingold@adacore.com>
743 * config/vms/vms-ar.c (main): Remove cwd variable.
745 2011-05-06 Jakub Jelinek <jakub@redhat.com>
748 * var-tracking.c (prepare_call_arguments): Move else before #endif.
750 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
752 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
753 * gimplify.c (gimplify_switch_expr): Likewise.
754 * omp-low.c (expand_omp_sections): Likewise.
755 * tree-eh.c (lower_try_finally_switch): Likewise.
756 (lower_eh_dispatch): Likewise.
757 * tree.h (build_case_label): Declare.
758 * tree.c (build_case_label): Define.
760 2011-05-05 Jason Merrill <jason@redhat.com>
763 * tree-inline.c (copy_tree_r): Use copy_statement_list.
764 (copy_statement_list): Don't recurse.
765 * stor-layout.c (copy_self_referential_tree_r): Don't allow
768 2011-05-05 Joseph Myers <joseph@codesourcery.com>
770 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
771 through from -mfpu= handling.
772 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
774 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
776 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
779 2011-05-05 Steve Ellcey <sje@cup.hp.com>
781 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
783 (hppa[12]*-*-hpux11*): Ditto.
784 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
785 * config/ia64/hpux-unix2003.h: New.
786 * config/pa/pa-hpux1131.opt: New.
787 * config/pa/pa-hpux1131.h: New.
788 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
789 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
790 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
792 2011-05-05 Jakub Jelinek <jakub@redhat.com>
795 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
796 instead of mode as 3rd argument to recursive call.
797 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
798 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
800 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
801 don't give up if mode is Pmode and mem_mode is not VOIDmode.
802 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
803 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
805 2011-05-05 Julian Brown <julian@codesourcery.com>
807 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
808 parenthesis in D-register case.
810 2011-05-05 Joseph Myers <joseph@codesourcery.com>
812 * opt-functions.awk (var_type_struct): Handle Enum options.
813 * optc-gen.awk: Don't check range of variables of character type.
814 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
815 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
816 rs6000_sdata_name, rs6000_explicit_options): Remove.
817 (rs6000_option_override_internal): Check for -malign-power here.
818 Use global_options_set instead of rs6000_explicit_options.
819 (rs6000_parse_fpu_option): Remove.
820 (rs6000_handle_option): Access variables via opts and opts_set
821 pointers. Use error_at and warning_at. Add fall-through
822 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
823 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
824 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
825 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
826 here. Don't use rs6000_parse_fpu_option.
827 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
828 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
829 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
831 (mspe): Use Var and Save.
832 (mtraceback=): Use Enum and Var.
833 (rs6000_traceback_type): New Enum and EnumValue entries.
834 (mfloat-gprs=): Use Enum, Var and Save.
835 (rs6000_float_gprs): New Enum and EnumValue entries.
836 (mlong-double-): use Var and Save.
837 (msched-costly-dep=, minsert-sched-nops=): Use Var.
838 (malign-): Use Enum and Var.
839 (rs6000_alignment_flags): New Enum and EnumValue entries.
841 (fpu_type_t): New Enum and EnumValue entries.
842 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
843 global_options_set instead of rs6000_explicit_options.
844 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
845 global_options_set instead of rs6000_explicit_options.
846 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
847 global_options_set instead of rs6000_explicit_options.
848 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
849 global_options_set instead of rs6000_explicit_options.
850 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
851 global_options_set instead of rs6000_explicit_options.
852 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
853 global_options_set instead of rs6000_explicit_options.
854 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
856 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
857 global_options_set instead of rs6000_explicit_options.
858 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
859 (rs6000_cmodel): New Enum and EnumValue entries.
860 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
861 global_options_set instead of rs6000_explicit_options.
862 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
863 (mtls-size=): Use Enum and Var.
864 (rs6000_tls_size): New Enum and EnumValue entries.
866 2011-05-05 Michael Matz <matz@suse.de>
868 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
869 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
870 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
871 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
872 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
873 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
874 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
875 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
876 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
877 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
878 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
879 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
880 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
881 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
882 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
883 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
885 2011-05-05 Richard Guenther <rguenther@suse.de>
887 * expmed.c (expand_variable_shift): Rename to ...
888 (expand_shift_1): ... this. Take an expanded shift amount.
889 For rotates recurse directly not building trees for the shift amount.
890 (expand_variable_shift): Wrap around expand_shift_1.
891 (expand_shift): Adjust.
893 2011-05-05 Jakub Jelinek <jakub@redhat.com>
895 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
897 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
899 * tree.h (get_pending_sizes): Remove prototype.
900 (put_pending_size): Likewise.
901 (put_pending_sizes): Likewise.
902 * stor-layout.c (pending_sizes): Delete.
903 (get_pending_sizes): Likewise.
904 (put_pending_size): Likewise.
905 (put_pending_sizes): Likewise.
906 (variable_size): Do not call put_pending_size and tidy up.
907 * function.h (struct function): Remove dont_save_pending_sizes_p.
908 * lto-streamer-in.c (input_function): Do not stream it.
909 * lto-streamer-out.c (output_function): Likewise.
910 * tree-inline.c (initialize_cfun): Do not copy it.
911 * c-decl.c (store_parm_decls): Do not set it.
912 * omp-low.c (create_task_copyfn): Likewise.
913 * tree-optimize.c (tree_rest_of_compilation): Likewise.
915 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
917 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
919 (*movdf_internal): Ditto.
920 (*movdf_internal_nointeger): Ditto.
921 (*movsf_internal): Ditto.
923 2011-05-05 Joseph Myers <joseph@codesourcery.com>
925 * c-decl.c (finish_decl): Don't call get_pending_sizes.
926 (grokparm): Add parameter expr. Pass it to grokdeclarator.
927 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
928 (c_variable_size): Remove.
929 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
930 call put_pending_sizes.
931 (get_parm_info): Add parameter expr. Use it to set
932 arg_info->pending_sizes.
933 (store_parm_decls): Use arg_info->pending_sizes instead or calling
935 * c-parser.c (c_parser_parms_declarator): Update call to
936 c_parser_parms_list_declarator.
937 (c_parser_parms_list_declarator): Take parameter expr. Update
938 call to push_parm_decl. Update recursive call. Don't call
939 get_pending_sizes. Update calls to get_parm_info.
940 (c_parser_objc_method_definition): Update calls to
941 c_parser_objc_method_decl and objc_start_method_definition.
942 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
943 (c_parser_objc_method_decl): Add parameter expr. Update call to
945 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
946 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
947 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
949 2011-05-05 Michael Hope <michael.hope@linaro.org>
952 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
955 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
957 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
958 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
959 (spu_output_mi_thunk): New function.
961 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
963 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
964 targetm.asm_out.print_operand.
965 * config/sol2.c: Include target.h.
967 2011-05-04 Jan Hubicka <jh@suse.cz>
969 * ipa-inline.c (reset_edge_caches): New function.
970 (update_caller_keys): Add check_inlinablity_for; do not
971 reset edge caches; remove now unnecesary loop.
972 (update_callee_keys): Add comments; reset node_growth_cache of callee.
973 (update_all_callee_keys): Likewise.
974 (inline_small_functions): Sanity check cache; update code
977 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
979 PR rtl-optimization/47612
980 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
981 as the last insn of the sequence to be moved.
983 2011-05-04 Tobias Burnus <burnus@net-b.de>
986 * doc/invoke.texi (Ofast): Document that it
987 enables Fortran's -fno-protect-parens.
989 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
991 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
993 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
995 * stor-layout.c (variable_size): Do not issue errors.
997 2011-05-04 Richard Guenther <rguenther@suse.de>
999 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1000 for array-ref indices.
1001 (tree_coverage_counter_addr): Likewise.
1002 (build_fn_info_type): Use size_int for index types.
1003 (build_gcov_info): Likewise.
1005 2011-05-04 Richard Guenther <rguenther@suse.de>
1007 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1009 * c-typeck.c (really_start_incremental_init): Use bitsize_int
1010 for constructor indices.
1011 (push_init_level): Likewise.
1013 2011-05-04 Richard Guenther <rguenther@suse.de>
1015 * explow.c (promote_mode): Move variable declarations before code.
1017 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1019 * tree.h (build_function_type_array): Declare.
1020 (build_varargs_function_type_array): Declare.
1021 (build_function_type_vec, build_varargs_function_type_vec): Define.
1022 * tree.c (build_function_type_array_1): New function.
1023 (build_function_type_array): New function.
1024 (build_varargs_function_type_array): New function.
1026 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
1028 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1029 before setting STMT_VINFO_TYPE.
1031 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1033 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1034 instead of spu_pass_by_reference.
1036 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1038 * calls.c (emit_library_call_value_1): Invoke
1039 promote_function_mode hook on libcall arguments.
1040 * explow.c (promote_function_mode, promote_mode): Handle TYPE
1041 argument being NULL.
1042 * targhooks.c (default_promote_function_mode): Lisewise.
1043 * config/s390/s390.c (s390_promote_function_mode): Likewise.
1044 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1046 * doc/tm.texi: Document that TYPE argument might be NULL.
1048 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1050 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1052 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1055 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1057 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1059 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1060 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1062 * mips-tfile.c: ... here.
1063 Don't include coretypes.h, tm.h, filenames.h.
1064 (saber_stop): Remove definition and all calls.
1065 [__SABER__]: Remove.
1066 (__LINE__): Remove default.
1067 (Size_t, Ptrdiff_t): Remove definitions.
1068 Replace by size_t, ptrdiff_t.
1069 [!MIPS_DEBUGGING_INFO]: Remove.
1070 (SHASH_SIZE, THASH_SIZE): Remove defaults.
1071 (progname): Add const.
1073 Replace all uses by static.
1074 (ALIGN_SYMTABLE_OFFSET): Remove default.
1075 * mips-tdump.c: Don't include coretypes.h, tm.h.
1076 Remove !MIPS_IS_STAB guard.
1077 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1078 $(TM_H), filenames.h dependencies.
1079 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1081 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1084 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1085 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1087 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1090 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1091 account and save/restore RETS.
1092 (PROFILE_BEFORE_PROLOGUE): Define.
1093 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
1094 the push insn to use predecrement.
1096 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1099 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1101 2011-05-04 Nick Clifton <nickc@redhat.com>
1103 * config/mn10300/mn10300.c: Include cfgloop.h.
1105 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
1106 Lcc or a FLcc insn into the instruction stream.
1107 (mn10300_block_contains_call): New function. Returns true if the
1108 given basic block contains a CALL insn.
1109 (mn10300_loop_contains_call_insn): New function. Returns true if
1110 the given loop contains a CALL insn.
1111 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
1112 to use the SETLB and Lcc or FLcc insns.
1113 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1114 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1115 * config/mn10300/mn10300.opt (msetlb): New option. Used to
1116 disable the SETLB optimization.
1117 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1118 __SETLB__ or __NO_SETLB__.
1119 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1120 (movsf_internal): Handle MDR register.
1121 (cmpsi): Make visible.
1122 (setlb): New pattern.
1124 (FLcc): New pattern.
1126 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1129 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1130 for reg<->xmm moves.
1131 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1132 (vec_concatv2di_rex64_sse): Ditto.
1133 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1134 (*vec_extractv2di_1_rex64): Ditto.
1137 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1139 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1141 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1143 2011-05-04 Richard Guenther <rguenther@suse.de>
1145 * tree.h (int_const_binop): Remove notrunc argument.
1146 * fold-const.c (int_const_binop): Remove notrunc argument. Always
1147 create integer constants that are properly truncated.
1148 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1149 (const_binop): Remove zero notrunc argument to int_const_binop.
1150 (size_binop_loc): Likewise.
1151 (fold_div_compare): Likewise.
1152 (maybe_canonicalize_comparison_1): Likewise.
1153 (fold_comparison): Likewise.
1154 (fold_binary_loc): Likewise.
1155 (multiple_of_p): Likewise.
1156 * expr.c (store_constructor): Likewise.
1157 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1158 (maybe_fold_stmt_addition): Likewise.
1159 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1160 * stor-layout.c (layout_type): Likewise.
1161 * tree-data-ref.c (tree_fold_divides_p): Likewise.
1162 * tree-sra.c (build_ref_for_offset): Likewise.
1163 (build_user_friendly_ref_for_offset): Likewise.
1164 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1165 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1166 * tree-ssa-loop-niter.c (inverse): Likewise.
1167 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1168 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1169 * tree-switch-conversion.c (check_range): Likewise.
1170 (build_constructors): Likewise.
1171 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1172 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1173 (extract_range_from_assert): Likewise.
1174 (vrp_int_const_binop): Likewise.
1175 (extract_range_from_binary_expr): Likewise.
1176 (extract_range_from_unary_expr): Likewise.
1177 (check_array_ref): Likewise.
1178 (find_case_label_range): Likewise.
1179 (simplify_div_or_mod_using_ranges): Likewise.
1180 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1181 comparing case labels for merging.
1183 2011-05-03 Mark Wielaard <mjw@redhat.com>
1185 * dwarf2out.c (debug_str_hash_forced): Removed.
1186 (gen_label_for_indirect_string): Removed.
1187 (get_debug_string_label): Removed.
1188 (AT_string_form): Generate label directly.
1189 (output_indirect_string): Test indirect_string_node for
1190 DW_FORM_strp instead of checking label and refcount.
1191 (prune_indirect_string): Removed.
1192 (prune_unused_types): Don't check debug_str_hash_forced or
1193 call prune_indirect_string.
1195 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1198 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1200 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1204 * combine.c (try_combine): Skip debug insns at m_split tests.
1206 2011-04-26 Mark Wielaard <mjw@redhat.com>
1209 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1210 when info_section_emitted.
1212 2011-05-03 Joseph Myers <joseph@codesourcery.com>
1214 * config/mips/mips-opts.h: New.
1215 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1217 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1218 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1219 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
1221 * config/mips/mips.h (enum mips_code_readable_setting): Move to
1223 (mips_abi, mips_code_readable): Don't declare.
1224 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1225 (mabi=): Use Enum and Var.
1226 (mips_abi): New Enum and EnumValue entries.
1227 (mcode-readable=): Use Enum and Var.
1228 (mips_code_readable_setting): New Enum and EnumValue entries.
1229 (mr10k-cache-barrier=): Use Enum and Var.
1230 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1232 2011-05-03 Jan Hubicka <jh@suse.cz>
1234 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1235 replace hash by pointer map.
1236 (cgraph_node_set_element_def, cgraph_node_set_element,
1237 const_cgraph_node_set_element, varpool_node_set_element_def,
1238 varpool_node_set_element, const_varpool_node_set_element): Remove.
1239 (free_cgraph_node_set, free_varpool_node_set): New function.
1240 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1241 * tree-emutls.c: Free varpool node set.
1242 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1243 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1244 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1245 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1246 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1247 Move here from ipa.c; implement using pointer_map
1248 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1249 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1250 debug_cgraph_node_set, varpool_node_set_new,
1251 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1252 dump_varpool_node_set, debug_varpool_node_set):
1253 Move to ipa-uitls.c.
1254 * passes.c (ipa_write_summaries): Update.
1256 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1258 From Mike Frysinger:
1259 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1260 bf542/bf544/bf547/bf548/bf549.
1262 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1264 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1266 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1269 * config/bfin/bfin.md (MOVCC): New mode_macro.
1270 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1271 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
1272 comments from generated assembly.
1274 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1277 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1278 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1279 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1280 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1281 * config/bfin/lib1funcs.asm (___muldi3): New function.
1283 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1285 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1286 build_function_type_list instead of build_function_type.
1287 Rearrange initialization of `args' to do so.
1289 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1291 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1292 instead of build_function_type.
1294 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1296 * config/rs6000/rs6000.c (spe_init_builtins): Call
1297 build_function_type_list instead of build_function_type.
1298 (paired_init_builtins, altivec_init_builtins): Likewise.
1299 (builtin_function_type): Likewise.
1301 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1303 * config/sh/sh.c (sh_media_init_builtins): Call
1304 build_function_type_list instead of build_function_type.
1306 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1308 * config/sparc/sparc.c (sparc_file_end): Call
1309 build_function_type_list instead of build_function_type.
1311 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1313 * config/alpha/alpha.c (alpha_init_builtins): Call
1314 build_function_type_list instead of build_function_type.
1316 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1318 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1319 build_function_type_list instead of build_function_type.
1321 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1323 * config/iq2000/i2000.c (iq2000_init_builtins): Call
1324 build_function_type_list instead of build_function_type.
1325 Delete `endlink' variable.
1327 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1329 * config/avr/avr.c (avr_init_builtins): Call
1330 build_function_type_list instead of build_function_type.
1332 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1334 * config/picochip/picochip.c (picochip_init_builtins): Call
1335 build_function_type_list instead of build_function_type.
1336 Delete `endlink' variable.
1338 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1340 * config/bfin/bfin.c (bfin_init_builtins): Call
1341 build_function_type_list instead of build_function_type.
1343 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1346 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1347 that's not CONST_INT. Seemingly redundant check is due to PR39768.
1349 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1352 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1353 libbffastfp overrides libgcc when -mfast-fp.
1355 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1357 Originally from Bernd Schmidt
1358 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1359 * config/bfin/bfin.c (override_options): Test it and error if
1362 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1364 Originally From Bernd Schmidt
1365 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1368 2011-05-03 Jeff Law <law@redhat.com>
1370 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1371 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1372 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1373 than accessing AUX field directly. Free the AUX field before
1375 (thread_block, thread_through_loop_header): Likewise.
1376 (thread_single_edge, mark_threaded_blocks): Likewise.
1377 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
1378 (register_jump_thread): Do not attempt to thread to a NULL edge.
1380 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1382 * function.c (init_function_start): Call decide_function_section.
1383 * varasm.c (decide_function_section): New function.
1384 (assemble_start_function): When not using
1385 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1386 or first_function_block_is_cold.
1387 * rtl.h (decide_function_section): Declare.
1389 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1390 Jakub Jelinek <jakub@redhat.com>
1393 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1394 only succeed if req_mode is the same as set_mode.
1396 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1398 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1399 * genemit.c (gen_exp): Handle RETURN.
1400 * emit-rtl.c (verify_rtx_sharing): Likewise.
1401 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1402 * rtl.c (copy_rtx): RETURN is shared.
1403 * rtl.h (enum global_rtl_index): Add GR_RETURN.
1405 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1406 * config/s390/s390.c (s390_emit_epilogue): Likewise.
1407 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1408 * config/cris/cris.c (cris_expand_return): Likewise.
1409 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1410 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1411 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1412 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1413 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1415 * config/v850/v850.c (expand_epilogue): Likewise.
1416 * config/bfin/bfin.c (bfin_expand_call): Likewise.
1417 * config/arm/arm.md (epilogue): Likewise.
1418 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1419 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1420 variable to ret_reg.
1422 2011-05-03 Richard Guenther <rguenther@suse.de>
1425 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1426 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1427 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1429 2011-05-03 Richard Guenther <rguenther@suse.de>
1431 * c-decl.c (grokdeclarator): Instead of looking at
1432 TREE_OVERFLOW check if the constant fits in the index type.
1434 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1436 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1437 (vec_store_lanes<mode><mode>): Likewise.
1439 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1441 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1442 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1443 convert_optab_index values.
1444 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1445 * genopinit.c (optabs): Initialize the new optabs.
1446 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1447 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1448 (expand_STORE_LANES): New functions.
1449 * tree.h (build_array_type_nelts): Declare.
1450 * tree.c (build_array_type_nelts): New function.
1451 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1452 (vect_model_load_cost): Likewise.
1453 (vect_store_lanes_supported, vect_load_lanes_supported)
1454 (vect_record_strided_load_vectors): Declare.
1455 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1456 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1457 (vect_transform_strided_load): Split out statement recording into...
1458 (vect_record_strided_load_vectors): ...this new function.
1459 * tree-vect-stmts.c (create_vector_array, read_vector_array)
1460 (write_vector_array, create_array_ref): New functions.
1461 (vect_model_store_cost): Add store_lanes_p argument.
1462 (vect_model_load_cost): Add load_lanes_p argument.
1463 (vectorizable_store): Try to use store-lanes functions for
1465 (vectorizable_load): Likewise load-lanes and loads.
1466 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1467 to vect_model_store_cost.
1468 (vect_build_slp_tree): Likewise vect_model_load_cost.
1470 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1472 * hooks.h (hook_bool_mode_uhwi_false): Declare.
1473 * hooks.c (hook_bool_mode_uhwi_false): New function.
1474 * target.def (array_mode_supported_p): New hook.
1475 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1476 * doc/tm.texi: Regenerate.
1477 * stor-layout.c (mode_for_array): New function.
1478 (layout_type): Use it.
1479 * config/arm/arm.c (arm_array_mode_supported_p): New function.
1480 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1482 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
1485 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1486 for -fstack-check if the size to allocate is negative.
1488 2011-05-02 Lawrence Crowl <crowl@google.com>
1490 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1491 (timevar_cond_start): New for starting a timer only when it is not
1493 (timevar_cond_stop): New for stopping a timer when it was not already
1496 * timevar.c (timevar_stop): Enable start/stop timers to start again.
1497 (timevar_cond_start): New as above.
1498 (timevar_cond_stop): New as above.
1500 * timevar.def: Add start/stop timers for compiler phases,
1501 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1502 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1503 and TV_PHASE_FINALIZE.
1504 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1505 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1506 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1507 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1508 Make unused TV_OVERLOAD into a start/stop timer.
1510 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1511 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1512 to indicate that they are start/stop timers.
1514 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1515 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1516 Move initialization to do_compile.
1517 (do_compile): Add initialization from above.
1518 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1520 * c-decl.c (c_write_global_declarations): Add start/stop of
1521 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1523 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1524 or TV_PARSE_INLINE, as appropriate.
1525 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1526 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1528 2011-05-02 Jason Merrill <jason@redhat.com>
1531 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1533 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
1536 * c-decl.c (finish_decl): Only create a composite if the types are
1539 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1541 * config/fr30/fr30-protos.h (Mmode): Don't define.
1542 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
1543 definition where used.
1544 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1545 define. Expand definitions where used.
1546 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1547 Expand definitions where used.
1548 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1549 rx_function_arg, rx_function_arg_advance,
1550 rx_function_arg_boundary): Expand definitions of those macros.
1551 * config/v850/v850-protos.h (Mmode): Don't define. Expand
1552 definition where used.
1554 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1556 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1558 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1559 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
1560 with *movv2sf_internal_rex64_avx.
1561 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1562 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1563 Use %v prefix in insn mnemonic to handle TARGET_AVX.
1564 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
1565 "vex" in "prefix" attribute calculation.
1566 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
1568 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
1571 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1572 inputs match the output.
1574 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
1577 * config/m68k/m68k.c (m68k_expand_prologue): Set
1578 current_function_static_stack_size.
1580 2011-05-02 Jan Hubicka <jh@suse.cz>
1582 * lto-streamer.c (lto_streamer_cache_insert_1,
1583 lto_streamer_cache_lookup, lto_streamer_cache_create,
1584 lto_streamer_cache_delete): Use pointer map instead of hashtable.
1585 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1587 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1589 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1590 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1591 config/m68k/t-opts: New files.
1592 * config/m68k/m68k-tables.opt: New file (generated).
1593 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1594 extra_options and m68k/t-opts to tmake_file.
1595 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1596 (all_isas): Initialize using m68k-isas.def.
1597 (all_microarchs): Initialize using m68k-microarchs.def.
1598 (m68k_find_selection): Remove.
1599 (m68k_handle_option): Don't assert that global structures are in
1600 use. Use error_at. Access variables via opts pointer. Don't
1601 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
1602 directly for -m68020-40 and -m68020-60.
1603 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1604 m68k_tune_entry here.
1605 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1607 (m68k_library_id_string): Remove declaration.
1608 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1609 (m68k_library_id_string): New Variable.
1610 (march=, mcpu=, mtune=): Use Enum and Var.
1612 2011-05-02 Richard Guenther <rguenther@suse.de>
1614 * varasm.c (output_constructor_regular_field): Compute zero-based
1615 index with double-ints. Make sure to ICE instead of producing
1617 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1618 in asserts. Properly use a signed type.
1620 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1622 * config/i386/sse.md (V): New mode iterator.
1623 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
1625 (V_256): Rename from AVX256MODE.
1626 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
1627 condition to all users.
1629 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
1630 condition to all users.
1631 (VF_128): Make V4SF mode unconditional.
1632 (VF_256): Rename from AVX256MODEF2P.
1633 (VI4F_128): Rename from SSEMODE4S.
1634 (VI8F_128): Rename from SSEMODE2D.
1635 (VI4F_256): Rename from AVX256MODE8P.
1636 (VI8F_256): Rename from AVX256MODE4P.
1637 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1638 (ssescalarmodesuffix): Remove SF and DF modes.
1639 (SSEMODE124): Remove.
1640 (SSEMODE1248): Ditto.
1641 (SSEMODEF2P): Ditto.
1642 (AVXMODEF2P): Ditto.
1643 (AVXMODEFDP): Ditto.
1644 (AVXMODEFSP): Ditto.
1645 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1647 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
1649 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1650 xop_pcmov_<mode>256. Use V mode iterator.
1652 Adjust RTX patterns globally for renamed mode attributes.
1654 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1656 * haifa-sched.c (sched_emit_insn): Emit insn before first
1657 non-scheduled insn. Inform back-end about new insn. Add
1658 new insn to scheduled_insns list.
1660 2011-05-02 Richard Guenther <rguenther@suse.de>
1662 PR tree-optimization/48822
1663 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1664 (process_scc): Indicate which iteration we start.
1666 2011-05-02 Jan Hubicka <jh@suse.cz>
1668 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1669 (lto_section_overrun): New.
1670 * lto-section-out.c (append_block): Rename to ...
1671 (lto_append_block): ... this one; export.
1672 (lto_output_1_stream): Move lto lto-streamer.h
1673 (lto_output_data_stream): Update.
1674 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1675 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1678 2011-05-02 Richard Guenther <rguenther@suse.de>
1680 * tree.c (tree_code_counts): New global array.
1681 (record_node_allocation_statistics): Count individual tree codes.
1682 (dump_tree_statistics): Dump individual code stats.
1684 2011-05-01 Jan Hubicka <jh@suse.cz>
1686 * ipa-inline.c (caller_growth_limits): Fix thinko when
1687 looking for largest stack frame.
1688 * ipa-inline.h (dump_inline_summary): Declare.
1689 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1691 (dump_inline_summary): Export.
1692 (debug_inline_summary): Declare as DEBUG_FUNCTION.
1694 2011-05-01 Anatoly Sokolov <aesok@post.ru>
1696 * reginfo.c (memory_move_cost): Change rclass argument type form
1697 'enum reg_class' to reg_class_t.
1698 * reload.h (memory_move_cost): Update prototype.
1699 * postreload.c reload_cse_simplify_set): Change type dclass var to
1701 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1703 (ira_allocate_and_set_costs): Change aclass argument type form
1704 'enum reg_class' to reg_class_t.
1705 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1706 Change aclass argument type to reg_class_t.
1707 (update_conflict_hard_reg_costs): Change type aclass and pref vars
1709 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1710 memory_move_cost call.
1712 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1713 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1714 Change type tmp var to reg_class_t.
1716 2011-04-30 Jan Hubicka <jh@suse.cz>
1718 * ipa-inline.c (can_inline_edge_p): Disregard limits when
1719 inlining into function with flatten attribute.
1720 (want_inline_small_function_p): Be more realistic about inlining
1721 cold calls where callee size grows.
1723 2011-04-30 Jan Hubicka <jh@suse.cz>
1725 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1728 2011-04-30 Anatoly Sokolov <aesok@post.ru>
1730 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1731 PRINT_OPERAND_PUNCT_VALID_P): Remove.
1732 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1733 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1734 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1735 (print_operand): Rename to...
1736 (sparc_print_operand): ...this. Make static. Adjust
1737 sparc_print_operand function call.
1738 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1741 2011-04-30 Jan Hubicka <jh@suse.cz>
1744 * ipa-inline.c (early_inliner): Disable when doing late
1745 addition of function.
1747 2011-04-30 Jakub Jelinek <jakub@redhat.com>
1749 * dwarf2out.c (get_address_mode): New inline.
1750 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1751 if not dwarf_strict emit
1752 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1753 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1754 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
1755 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1756 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1757 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1758 mem_loc_descriptor callers.
1759 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1760 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1761 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1762 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1763 (base_types): New variable.
1764 (get_base_type_offset, calc_base_type_die_sizes,
1765 base_type_for_mode, mark_base_types, base_type_cmp,
1766 move_marked_base_types): New functions.
1767 (calc_die_sizes): Assert that die_offset is 0 or equal to
1769 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1770 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
1771 callers. If not dwarf_strict, call mem_loc_descriptor even for
1772 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1773 (gen_subprogram_die): Don't give up on call site parameters
1774 with non-integral or large integral modes. Adjust
1775 mem_loc_descriptor callers.
1776 (prune_unused_types): Call prune_unused_types_mark on base_types
1778 (resolve_addr): Call mark_base_types.
1779 (dwarf2out_finish): Call move_marked_base_types.
1781 PR tree-optimization/48809
1782 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1784 (gen_inbound_check): Don't compute index_expr - range_min in utype
1785 again, instead reuse SSA_NAME initialized in build_arrays.
1786 Remove two useless gsi_for_stmt calls.
1788 2011-04-29 Jeff Law <law@redhat.com>
1790 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1792 2011-04-29 Martin Jambor <mjambor@suse.cz>
1794 * cgraph.h (cgraph_postorder): Remove declaration.
1795 * ipa-utils.h (ipa_free_postorder_info): Declare.
1796 (ipa_reverse_postorder): Likewise.
1797 * cgraphunit.c: Include ipa-utils.h.
1798 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1799 * ipa-inline.c: Include ipa-utils.h.
1800 (ipa_inline): Update call to ipa_reverse_postorder.
1801 * ipa-pure-const.c (propagate_pure_const): Update call to
1802 ipa_reduced_postorder and ipa_print_order. Call
1803 ipa_free_postorder_info to clean up.
1804 (propagate_nothrow): Likewise.
1805 * ipa-reference.c (propagate): Removed a useless call to
1806 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1807 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1808 * ipa.c: Include ipa-utils.h.
1809 (ipa_profile): Update call to ipa_reverse_postorder.
1810 (cgraph_postorder): Moved to...
1811 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1812 (ipa_utils_print_order): Renamed to ipa_print_order.
1813 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1815 (ipa_free_postorder_info): New function.
1816 * passes.c: Include ipa-utils.h.
1817 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1818 (ipa_write_summaries): Likewise.
1819 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1820 (cgraphunit.o): Likewise.
1822 (ipa-inline.o): Likewise.
1824 2011-04-29 Jan Hubicka <jh@suse.cz>
1826 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1827 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1828 * ipa-inline.h (clause_t): Turn into unsigned int.
1829 * ipa-inline-analysis.c (add_clause): Do more simplification.
1830 (and_predicates): Shortcut more cases.
1831 (predicates_equal_p): Move forward; check that clauses are properly
1833 (or_predicates): Shortcut more cases.
1834 (edge_execution_predicate): Rewrite as...
1835 (set_cond_stmt_execution_predicate): ... this function; handle
1836 __builtin_constant_p.
1837 (set_switch_stmt_execution_predicate): New .
1838 (compute_bb_predicates): New.
1839 (will_be_nonconstant_predicate): Update TODO.
1840 (estimate_function_body_sizes): Use compute_bb_predicates
1841 and free them later, always try to estimate if stmt is constant.
1842 (estimate_time_after_inlining, estimate_size_after_inlining):
1843 Gracefully handle optimized out edges.
1844 (read_predicate): Fix off by one error.
1846 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1848 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1850 2011-04-27 Xinliang David Li <davidxl@google.com>
1852 * tree-profile.c (init_ic_make_global_vars): Set
1853 tls attribute on ic vars.
1854 * coverage.c (coverage_end_function): Initialize
1855 function_list with zero.
1857 2011-04-29 Richard Guenther <rguenther@suse.de>
1859 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1860 for the type of the result.
1861 (fold_builtin_isascii): Likewise.
1862 (fold_builtin_toascii): Use integer_type_node where appropriate.
1863 (fold_builtin_logb): Likewise.
1864 (fold_builtin_frexp): Likewise.
1865 (fold_builtin_strstr): Likewise.
1866 (fold_builtin_strpbrk): Likewise.
1867 (fold_builtin_fputs): Likewise.
1868 (fold_builtin_sprintf): Likewise.
1869 (fold_builtin_snprintf): Likewise.
1870 (fold_builtin_printf): Likewise.
1871 (do_mpfr_remquo): Use a proper type for the assigned constant.
1872 (do_mpfr_lgamma_r): Likewise.
1873 * dwarf2out.c (resolve_one_addr): Use size_int.
1874 * except.c (init_eh): Likewise.
1875 (assign_filter_values): Use integer_type_node for filter values.
1876 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1878 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1879 for EH region numbers.
1880 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1881 for the shift amount.
1883 2011-04-29 Richard Guenther <rguenther@suse.de>
1885 * expr.h (expand_shift): Rename to ...
1886 (expand_variable_shift): ... this.
1887 (expand_shift): Take a constant shift amount.
1888 * expmed.c (expand_shift): Rename to ...
1889 (expand_variable_shift): ... this.
1890 (expand_shift): New wrapper around expand_variable_shift.
1891 * expr.c (convert_move, emit_group_load_1, emit_group_store,
1892 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1893 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1894 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1895 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1896 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1897 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1898 emit_store_flag_1, emit_store_flag): Likewise.
1899 * builtins.c (expand_builtin_signbit): Likewise.
1900 * calls.c (load_register_parameters): Likewise.
1901 * function.c (assign_parm_setup_block): Likewise.
1902 * lower-subreg.c (resolve_shift_zext): Likewise.
1903 * optabs.c (widen_bswap, expand_abs_nojump,
1904 expand_one_cmpl_abs_nojump, expand_float): Likewise.
1905 * spu/spu.c (spu_expand_extv): Likewise.
1906 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1908 2011-04-29 Richard Guenther <rguenther@suse.de>
1910 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1911 for the remapped region number.
1912 * predict.c (build_predict_expr): Use integer_type_node for the
1914 * fold-const.c (fold_binary_loc): Use integer_type_node for
1915 the shift amount. Use a proper type for the PLUS_EXPR operand.
1917 2011-04-29 Michael Matz <matz@suse.de>
1919 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1920 other trees that just builtins.
1921 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1923 2011-04-29 Richard Guenther <rguenther@suse.de>
1925 * tree-nested.c (get_trampoline_type): Use size_int.
1926 (get_nl_goto_field): Likewise.
1927 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1929 (lower_eh_constructs_2): Likewise.
1930 (lower_resx): Likewise.
1931 (lower_eh_dispatch): Likewise.
1932 * tree-mudflap.c (mf_build_string): Use size_int.
1933 (mudflap_register_call): Use integer_type_node for the flag.
1934 (mudflap_enqueue_constant): Use size_int.
1935 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1936 instead of rebuilding it.
1938 2011-04-29 Richard Guenther <rguenther@suse.de>
1940 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1941 Handle OBJ_TYPE_REF.
1942 (find_func_aliases_for_call): Use it more consistently.
1944 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
1946 * haifa-sched.c (last_nondebug_scheduled_insn): New.
1947 (rank_for_schedule): Use it.
1948 (schedule_block): Set it.
1950 2011-04-28 David Li <davidxl@google.com>
1952 * tree.c (crc32_string): Use crc32_byte.
1953 (crc32_byte): New function.
1954 * tree.h (crc32_byte): New function.
1955 * gcov.c (read_graph_file): Handle new cfg_cksum.
1956 (read_count_file): Ditto.
1957 * profile.c (instrument_values): Ditto.
1958 (get_exec_counts): Ditto.
1959 (read_profile_edge_counts): Ditto.
1960 (compute_branch_probabilities): Ditto.
1961 (compute_value_histograms): Ditto.
1962 (branch_prob): Ditto.
1963 (end_branch_prob): Ditto.
1964 * coverage.c (read_counts_file): Ditto.
1965 (get_coverage_counts): Ditto.
1966 (tree_coverage_counter_addr): Ditto.
1967 (coverage_checksum_string): Ditto.
1968 (coverage_begin_output): Ditto.
1969 (coverage_end_function): Ditto.
1970 (build_fn_info_type): Ditto.
1971 (build_fn_info_value): Ditto.
1972 * libgcov.c (gcov_exit): Ditto.
1973 * gcov-dump.c (tag_function): Ditto.
1974 (compute_checksum): Remove.
1976 2011-04-29 Alan Modra <amodra@gmail.com>
1978 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1979 unspec plus offset. Tidy macho code.
1981 2011-04-29 Martin Jambor <mjambor@suse.cz>
1983 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1984 node instead of a decl. Update all callers.
1985 * cgraph.h: Update declaration.
1987 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
1989 PR tree-optimization/48765
1990 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1991 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1992 to indicate if loop aware SLP is being used. Scan the statements
1993 and update the vectorization factor according to the type of
1994 vectorization before statement analysis.
1995 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1996 pass it to vect_analyze_loop_operations.
1997 (vectorizable_reduction): Set number of copies to 1 in case of pure
1999 * tree-vect-stmts.c (vectorizable_conversion,
2000 vectorizable_assignment, vectorizable_shift,
2001 vectorizable_operation, vectorizable_type_demotion,
2002 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2004 (vectorizable_condition): Move the check that it is not SLP
2005 vectorization before the number of copies check.
2006 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2007 to vectorize the loop using SLP.
2009 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2012 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2015 2011-04-28 Joseph Myers <joseph@codesourcery.com>
2017 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2018 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2019 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2020 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2021 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2023 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2024 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2025 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2026 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2027 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2028 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2030 * config/i386/linux.h (REG_NAME): Don't define.
2031 * config/i386/linux64.h (REG_NAME): Don't define.
2032 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2033 Undefine before defining.
2035 2011-04-28 Jan Hubicka <jh@suse.cz>
2037 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2038 nonconstant_names array.
2039 (estimate_function_body_sizes): Build nonconstant_names array; handle
2040 BUILT_IN_CONSTANT_P.
2042 2011-04-28 Richard Guenther <rguenther@suse.de>
2046 2011-04-28 Richard Guenther <rguenther@suse.de>
2048 * tree-ssa-structalias.c (solve_constraints): Build succ graph
2049 as late as possible.
2051 2011-04-28 Richard Guenther <rguenther@suse.de>
2053 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2054 (debug_constraint): Do it here.
2055 (dump_constraints): And here.
2056 (rewrite_constraints): And here.
2057 (dump_constraint_edge): Remove.
2058 (dump_constraint_graph): Rewrite to produce DOT output.
2059 (solve_constraints): Build succ graph as late as possible.
2060 Dump constraint graphs before and after solving.
2062 2011-04-28 Richard Guenther <rguenther@suse.de>
2064 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2065 New function split out from ...
2066 (find_func_aliases): ... here. Call it.
2067 (find_func_aliases_for_call): Likewise.
2069 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2071 * internal-fn.h (internal_fn_name_array): Declare.
2072 (internal_fn_flags_array): Likewise.
2074 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2076 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
2077 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2079 (ssemodefsuffix): Remove.
2080 (ssevecmodesuffix): New mode attribute.
2081 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2082 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2083 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2084 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2085 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2086 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2087 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2088 ssemodesuffix mode attribute.
2089 (float splitters): Use ssevecmodesuffix mode attribute.
2090 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2091 (sseinsmode): Rename from avxvecmode.
2092 (avxsizesuffix): Rename from avxmodesuffix.
2093 (sseintvecmode): Rename from avxpermvecmode.
2094 (ssedoublevecmode): Rename from ssedoublesizemode.
2095 (ssehalfvecmode): Rename from avxhalfvecmode.
2096 (ssescalarmode): Rename from avxscalarmode.
2097 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2098 templates for ssemodesuffix mode attribute.
2099 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2102 Adjust RTX patterns globally for renamed mode attributes.
2104 2011-04-27 Jan Hubcika <jh@suse.cz>
2106 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2107 * ipa-inline-analysis.c: Include alloc-pool.h.
2108 (edge_predicate_pool): New.
2109 (trye_predicate_p): New function
2110 (false_predicate_p): New function.
2111 (add_clause): Sanity check that false clauses are "optimized";
2112 never add clauses to predicate that is already known to be false.
2113 (and_predicate): Use flase_predicate_p.
2114 (evaulate_predicate): Rename to ...
2115 (evaluate_predicate): ... this one; update all callers; assert
2116 that false is not listed among possible truths.
2117 (dump_predicate): Use true_predicate_p.
2118 (account_size_time): Use false_predicate_p.
2119 (evaulate_conditions_for_edge): Rename to ...
2120 (evaluate_conditions_for_edge) ... this one.
2121 (edge_set_predicate): New function.
2122 (inline_edge_duplication_hook): Duplicate edge predicates.
2123 (inline_edge_removal_hook): Free edge predicates.
2124 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2125 (dump_inline_summary): Update.
2126 (estimate_function_body_sizes): Set edge predicates.
2127 (estimate_calls_size_and_time): Handle predicates.
2128 (estimate_callee_size_and_time): Update.
2129 (remap_predicate): Add toplev_predicate; update comment.
2130 (remap_edge_predicates): New function.
2131 (inline_merge_summary): Compute toplev predicate; update.
2132 (read_predicate): New function.
2133 (read_inline_edge_summary): Use it.
2134 (inline_read_section): Likewise.
2135 (write_predicate): New function.
2136 (write_inline_edge_summary): Use it.
2137 (inline_write_summary): Likewise.
2138 (inline_free_summary): Free alloc pool and edge summary vec.
2140 2011-04-27 Richard Guenther <rguenther@suse.de>
2142 * tree-ssa-structalias.c (changed_count): Remove.
2143 (changed): Use a bitmap.
2144 (unify_nodes): Adjust.
2145 (do_sd_constraint): Likewise.
2146 (do_ds_constraint): Likewise.
2147 (do_complex_constraint): Likewise.
2148 (solve_graph): Likewise.
2150 2011-04-27 Jan Hubicka <jh@suse.cz>
2152 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2154 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2156 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2157 (avx_vperm2f128_*_operand): Ditto.
2158 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2159 Use avx_vpermilp_parallel in insn condition.
2160 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2161 Use avx_vperm2f128_parallel in insn condition.
2163 2011-04-27 Richard Guenther <rguenther@suse.de>
2165 * Makefile.in (tree-ssa-structalias.o): Remove
2166 gt-tree-ssa-structalias.h dependency.
2167 (GTFILES): Remove tree-ssa-structalias.c.
2168 * tree.c (allocate_decl_uid): New function.
2169 (make_node_stat): Use it.
2170 (copy_node_stat): Likewise.
2171 * tree.h (allocate_decl_uid): Declare.
2172 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2173 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2174 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2175 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2176 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2177 (struct heapvar_map): Likewise.
2178 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2179 heapvar_insert): Likewise.
2180 (make_heapvar_for): Rename to ...
2181 (make_heapvar): ... this. Simplify.
2182 (fake_var_decl_obstack): New global var.
2183 (build_fake_var_decl): New function.
2184 (make_constraint_from_heapvar): Adjust.
2185 (handle_lhs_call): Likewise.
2186 (create_function_info_for): Likewise.
2187 (intra_create_variable_infos): Likewise.
2188 (init_alias_vars): Allocate fake_var_decl_obstack.
2189 (init_alias_heapvars, delete_alias_heapvars): Remove.
2190 (compute_points_to_sets): Do not call init_alias_heapvars.
2191 (ipa_pta_execute): Likewise.
2192 (delete_points_to_sets): Free fake_var_decl_obstack.
2194 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2196 * config/spu/divmovti4.c (union qword_UTItype): New data type.
2197 (si_from_UTItype, si_to_UTItype): New functions.
2198 (__udivmodti4): Use them to implement type-punning.
2199 * config/spu/multi3.c (union qword_TItype): New data type.
2200 (si_from_TItype, si_to_TItype): New functions.
2201 (__multi3): Use them to implement type-punning.
2203 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2205 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2207 2011-04-27 Jan Hubicka <jh@suse.cz>
2209 * ipa-prop.c (function_insertion_hook_holder): New holder.
2210 (ipa_add_new_function): New function.
2211 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2212 Register/deregister holder.
2214 2011-04-27 Richard Guenther <rguenther@suse.de>
2216 PR tree-optimization/48772
2217 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2219 2011-04-27 Richard Guenther <rguenther@suse.de>
2221 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2222 TARGET_MEM_REF handling.
2224 2011-04-27 Nick Clifton <nickc@redhat.com>
2226 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2227 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2228 (REG_CLASS_NAMES): Likewise.
2229 (REG_CLASS_CONTENTS): Likewise.
2230 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2231 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2232 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
2233 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
2234 (EVEN_REGS): New macro. Alias for QUAD_REGS.
2235 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2236 duplicate register classes.
2237 (frv_class_likely_spilled_p): Likewise.
2238 (frv_register_move_cost): Likewise.
2240 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2241 end of the regno_reg_class array.
2243 2011-04-27 Jakub Jelinek <jakub@redhat.com>
2246 * c-typeck.c (build_binary_op): Don't wrap arguments if
2247 int_operands is true.
2249 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
2252 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2253 targetm.calls.must_pass_in_stack for void type.
2255 2011-04-26 Jan Hubicka <jh@suse.cz>
2257 * cgraphbuild.c (build_cgraph_edges): Update call
2258 of cgraph_create_edge and cgraph_create_indirect_edge.
2259 * cgraph.c (cgraph_create_edge_including_clones,
2260 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2261 cgraph_update_edges_for_call_stmt_node): Do not take nest
2262 argument; do not initialize call_stmt_size/time.
2263 (dump_cgraph_node): Do not dump nest.
2264 (cgraph_clone_edge): Do not take loop_nest argument;
2265 do not propagate it; do not clone call_stmt_size/time.
2266 (cgraph_clone_node): Likewise.
2267 (cgraph_create_virtual_clone): Update.
2268 * cgraph.h (struct cgraph_edge): Remove
2269 call_stmt_size/call_stmt_time/loop_nest.
2270 (cgraph_create_edge, cgraph_create_indirect_edge,
2271 cgraph_create_edge_including_clones, cgraph_clone_node): Update
2273 * tree-emutls.c (gen_emutls_addr): Update.
2274 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2275 loop_nest; handle indirect calls, too.
2276 (clone_inlined_nodes): Do not care about updating inline summaries.
2277 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2278 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2279 stream call_stmt_size/call_stmt_time/loop_nest.
2280 * ipa-inline.c (edge_badness): Update.
2281 (ipa_inline): dump summaries after inlining.
2282 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2284 (inline_edge_summary): New function.
2285 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2286 (inline_edge_removal_hook): Handle edge summaries.
2287 (inline_edge_duplication_hook): New hook.
2288 (inline_summary_alloc): Alloc hooks.
2289 (initialize_growth_caches): Do not register removal hooks.
2290 (free_growth_caches); Do not free removal hook.
2291 (dump_inline_edge_summary): New function.
2292 (dump_inline_summary): Use it.
2293 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2294 (inline_update_callee_summaries): New function.
2295 (inline_merge_summary): Use it.
2296 (do_estimate_edge_time, do_estimate_edge_growth): Update.
2297 (read_inline_edge_summary): New function.
2298 (inline_read_section): Use it.
2299 (write_inline_edge_summary): New function.
2300 (inline_write_summary): Use it.
2301 (inline_free_summary): Free edge new holders.
2302 * tree-inline.c (copy_bb): Update.
2304 2011-04-26 Jason Merrill <jason@redhat.com>
2306 * tree-eh.c (lower_try_finally_switch): Create the label along with
2307 the CASE_LABEL_EXPR.
2309 2011-04-26 David S. Miller <davem@davemloft.net>
2310 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2312 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2313 * configure: Regenerate.
2315 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2318 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2320 (VEC_reduc): New code iterator and splitters for vector reduction.
2321 (VEC_reduc_name): Ditto.
2322 (VEC_reduc_rtx): Ditto.
2323 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2324 (reduc_<VEC_reduc_name>_v4sf): Ditto.
2326 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2327 support for extracting SF on VSX.
2329 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2330 generating xscvspdp.
2331 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2332 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2333 double add, minimum, maximum vector reduction.
2334 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2335 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2336 optimize double vector reduction.
2337 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2339 2011-04-26 Joseph Myers <joseph@codesourcery.com>
2341 * config/fr30/fr30.h (inhibit_libc): Don't define.
2342 * config/m32r/m32r-protos.h: Correct comment.
2343 * config/v850/v850.h (GHS_default_section_names,
2344 GHS_current_section_names): Use tree, not union tree_node *.
2346 2011-04-26 Xinliang David Li <davidxl@google.com>
2348 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2349 * c-family/c-opts.c (c_common_handle_option): Set
2350 warn_maybe_uninitialized.
2351 * opts.c (common_handle_option): Ditto.
2352 * common.opt: New option.
2353 * tree-ssa.c (warn_uninit): Add one more parameter.
2354 (warn_uninitialized_var): Pass warning code.
2355 * tree-flow.h: Interface change.
2358 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2360 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2361 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2362 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2364 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2366 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2367 * config/mips/mips.opt (mmips-tfile): Remove.
2369 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2370 mips-tdump reference to ...
2371 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
2372 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2373 reference by Tru64 UNIX.
2375 2011-04-26 Jakub Jelinek <jakub@redhat.com>
2378 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2379 is error_mark_node, set value to NULL.
2381 PR tree-optimization/48734
2382 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2383 if return value from maybe_fold_*_comparsions isn't something
2384 the code is prepared to handle.
2386 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
2388 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2390 (ext_QIreg_nomode_operands): Remove.
2391 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2395 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
2397 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2399 2011-04-26 Richard Guenther <rguenther@suse.de>
2401 * c-typeck.c (build_unary_op): Do not expand array-refs via
2402 pointer arithmetic. Only adjust qualifiers for function types.
2404 2011-04-26 Richard Guenther <rguenther@suse.de>
2407 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2408 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2409 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
2410 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2412 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2414 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2415 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2416 * doc/extend.texi: Document __underlying_type.
2418 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
2420 * config/rs6000/titan.md (automata_option "progress"): Remove.
2422 2011-04-25 Jeff Law <law@redhat.com>
2424 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2426 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2428 * system.h (ENUM_BITFIELD): Remove.
2430 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
2431 Eric Botcazou <ebotcazou@adacore.com>
2433 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2434 for STORE_FLAG_VALUE==-1 case.
2436 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
2439 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2440 LEGITIMATE_PIC_OPERAND_P.
2442 2011-04-24 Jan Hubicka <jh@suse.cz>
2444 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2446 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2447 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2448 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2449 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2450 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2451 Sanity check predicate length.
2452 (remap_predicate): Likewise; sanity check jump functions.
2453 (inline_read_section, inline_write_summary): Sanity check
2456 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2459 * doc/extend.texi (Type Traits): Document __is_standard_layout,
2460 __is_literal_type, and __is_trivial; update throughout about
2461 possibly cv-qualified void types.
2463 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
2465 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2466 testsuite and make it version agnostic.
2468 2011-04-22 Jan Hubicka <jh@suse.cz>
2470 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2472 2011-04-23 Jakub Jelinek <jakub@redhat.com>
2475 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2476 to VOID_TYPE even around MODIFY_EXPR.
2478 2011-04-22 Mike Stump <mikestump@comcast.net>
2480 * gensupport.c (read_md_rtx): Fix typo in comment.
2481 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2484 2011-04-22 Jan Hubicka <jh@suse.cz>
2486 * gengtype.c (open_base_files): Add ipa-inline.h include.
2487 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2488 ipa-prop.c; update all uses.
2489 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2490 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2491 merge summary of inlined function into former caller.
2492 * ipa-inline.c (max_benefit): Remove.
2493 (edge_badness): Compensate for removal of benefits.
2494 (update_caller_keys): Use
2495 reset_node_growth_cache/reset_edge_growth_cache.
2496 (update_callee_keys): Likewise.
2497 (update_all_callee_keys): Likewise.
2498 (inline_small_functions): Do not collect max_benefit; do not reset
2499 estimated_growth; call free_growth_caches and initialize_growth_caches.
2500 * ipa-inline.h (struct condition, type clause_t, struct predicate,
2501 struct size_time_entry): New structures.
2502 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2503 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2504 and estimated_growth.
2505 (edge_growth_cache_entry): New structure.
2506 (node_growth_cache, edge_growth_cache): New global vars.
2507 (estimate_growth): Turn into inline.
2508 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2509 initialize_growth_caches, free_growth_caches): Declare.
2510 (estimate_edge_growth): Rewrite.
2511 (estimate_edge_time): Implement as inline cache lookup.
2512 (reset_node_growth_cache, reset_edge_growth_cache): New inline
2514 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2515 (NUM_CONDITIONS): New constant.
2516 (predicate_conditions): New enum.
2517 (IS_NOT_CONSTANT): New constant.
2518 (edge_removal_hook_holder): New var.
2519 (node_growth_cache, edge_growth_cache): New global vars.
2520 (true_predicate, single_cond_predicate, false_predicate,
2521 not_inlined_predicate, add_condition, add_clause, and_predicates,
2522 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2523 dump_clause, dump_predicate, account_size_time,
2524 evaulate_conditions_for_edge): New functions.
2525 (inline_summary_alloc): Move to heap.
2526 (inline_node_removal_hook): Clear condition and entry vectors.
2527 (inline_edge_removal_hook): New function.
2528 (initialize_growth_caches, free_growth_caches): New function.
2529 (dump_inline_summary): Update.
2530 (edge_execution_predicate): New function.
2531 (will_be_nonconstant_predicate): New function.
2532 (estimate_function_body_sizes): Compute BB and constantness predicates.
2533 (compute_inline_parameters): Do not clear estimated_growth.
2534 (estimate_edge_size_and_time): New function.
2535 (estimate_calls_size_and_time): New function.
2536 (estimate_callee_size_and_time): New function.
2537 (remap_predicate): New function.
2538 (inline_merge_summary): New function.
2539 (do_estimate_edge_time): New function based on...
2540 (estimate_edge_time): ... this one.
2541 (do_estimate_edge_growth): New function.
2542 (do_estimate_growth): New function based on....
2543 (estimate_growth): ... this one.
2544 (inline_analyze_function): Analyze after deciding on jump functions.
2545 (inline_read_section): New function.
2546 (inline_read_summary): Use it.
2547 (inline_write_summary): Write all the new data.
2548 * ipa-prop.c (ipa_get_param_decl_index): Export.
2549 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2550 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2552 (ipa_get_lattice): Move here from ipa-cp.c
2553 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2554 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2555 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2556 cgraph_edge_inlinable_p): Remove.
2557 * cgraphunit.c: Include ipainline.h
2558 (cgraph_process_new_functions): Update call of
2559 compute_inline_parameters.
2561 2011-04-22 Richard Guenther <rguenther@suse.de>
2563 * tree.c (build_int_cst): Properly create canonicalized integer
2565 (build_int_cst_type): Remove scary comments.
2567 2011-04-22 Xinliang David Li <davidxl@google.com>
2569 * toplev.c (process_options): Enable -Werror=coverage-mismatch
2570 by default when -Wno-error is not specified.
2571 * opts-global.c (decode_options): Remove call to
2572 control_warning_options.
2574 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2576 PR tree-optimization/48717
2577 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2578 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2580 2011-04-22 Joseph Myers <joseph@codesourcery.com>
2582 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
2583 definition where used.
2585 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2588 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2589 TREE_STATIC variables declared inside of some OpenMP construct.
2591 2011-04-22 Martin Jambor <mjambor@suse.cz>
2594 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2596 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
2599 * c-typeck.c (pop_init_level): Do not warn about initializing
2602 2011-04-22 Alan Modra <amodra@gmail.com>
2604 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2605 when returning call_cookie.
2606 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2607 pointers, to functions with no more vector args than the current
2608 function, and some non-local calls for ABI_V4.
2609 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2610 sibcall_nonlocal_aix64): Combine to ..
2611 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
2612 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2613 (sibcall_value_nonlocal_aix<mode>): ..likewise.
2614 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2615 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
2617 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2618 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2619 sibcall_value_symbolic_64): Delete.
2621 2011-04-21 Xinliang David Li <davidxl@google.com>
2623 * cgraph.h: Remove pid.
2624 * cgraph.c: Remove pid.
2625 * value-prof.c (init_node_map): New function.
2626 (del_node_map): New function.
2627 (find_func_by_funcdef_no): New function.
2628 (gimple_ic_transform): Call new function.
2629 * cgraphunit.c (cgraph_finalize_function): Remove pid.
2630 * function.c (get_last_funcdef_no): New function.
2631 * function.h (get_last_funcdef_no): New function.
2632 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2633 to libgcov function.
2634 (tree-profiling): Call node map init and delete function.
2636 2011-04-21 Ian Lance Taylor <iant@google.com>
2638 * godump.c (go_format_type): Use exported Go name for anonymous
2641 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2643 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2644 Call builtin_function_type_list instead of builtin_function_type.
2645 (UNARY, BINARY, TRINARY, QUAD): Likewise.
2647 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2649 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2650 build_function_type_list instead of build_function_type.
2651 Delete variable `endlink'.
2653 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2655 * config/s390/s390.c (s390_init_builtins): Call
2656 build_function_type_list instead of build_function_type.
2658 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2660 * config/ia64/ia64.c (ia64_init_builtins): Call
2661 build_function_type_list instead of builtin_function_type.
2663 2011-04-21 Easwaran Raman <eraman@google.com>
2665 * cfgexpand.c (stack_var): Remove OFFSET...
2666 (add_stack_var): ...and its reference here...
2667 (expand_stack_vars): ...and here.
2668 (stack_var_cmp): Sort by descending order of size.
2669 (partition_stack_vars): Change heuristic.
2670 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2671 (dump_stack_var_partition): Add newline after each partition.
2673 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
2674 Jeff Law <law@redhat.com>
2676 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2677 * gengtype.c (matching_file_name_substitute): Likewise.
2679 2011-04-21 Richard Guenther <rguenther@suse.de>
2682 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2684 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2686 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2688 2011-04-21 Richard Guenther <rguenther@suse.de>
2690 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2693 2011-04-21 Richard Guenther <rguenther@suse.de>
2695 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2696 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2697 Use DECL_P, not SSA_VAR_P.
2698 (ptr_derefs_may_alias_p): Likewise.
2699 (ptr_deref_may_alias_ref_p_1): Likewise.
2700 (decl_refs_may_alias_p): Likewise.
2701 (refs_may_alias_p_1): Likewise.
2702 (ref_maybe_used_by_call_p_1): Likewise.
2703 (call_may_clobber_ref_p_1): Likewise.
2704 (indirect_ref_may_alias_decl_p): Assume indirect refrences
2705 are either MEM_REF or TARGET_MEM_REF.
2706 (indirect_refs_may_alias_p): Likewise.
2707 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2708 for MEM_EXPR of indirect calls.
2710 2011-04-21 Tristan Gingold <gingold@adacore.com>
2712 * vmsdbgout.c (write_srccorr): Compute file length from the string.
2713 (dst_file_info_struct): Remove flen field.
2714 (lookup_filename): Remove code that set flen field.
2716 2011-04-21 Tristan Gingold <gingold@adacore.com>
2718 * config/ia64/ia64.c (ia64_start_function): Add a guard.
2720 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
2723 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2724 vec_extract and vec_concat for non-SSE4_1 targets.
2726 2011-04-21 Richard Guenther <rguenther@suse.de>
2728 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2731 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2733 * config/i386/cygming.h (union tree_node, TREE): Don't define or
2735 (FILE): Don't undefine.
2737 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2739 * config/alpha/alpha.c (struct machine_function): Use rtx, not
2741 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2743 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2744 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2745 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2747 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
2748 definitions where used.
2749 * config/microblaze/microblaze.h (struct microblaze_args): Use
2750 rtx, not struct rtx_def *.
2751 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2753 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2754 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2755 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2756 not struct rtx_def *.
2757 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2759 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2761 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2763 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2765 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2766 operand_equal_p to compare DR_BASE_ADDRESSes.
2767 (vect_check_interleaving): Likewise.
2769 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2772 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2773 for all Neon struct constants.
2775 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2777 * target.def (legitimate_constant_p): New hook.
2778 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2779 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2780 * doc/tm.texi: Regenerate.
2781 * hooks.h (hook_bool_mode_rtx_true): Declare.
2782 * hooks.c (hook_bool_mode_rtx_true): Define.
2783 * system.h (LEGITIMATE_CONSTANT_P): Poison.
2784 * calls.c (precompute_register_parameters): Replace uses of
2785 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2786 (emit_library_call_value_1): Likewise.
2787 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2788 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2789 * ira-costs.c (scan_one_insn): Likewise.
2790 * recog.c (general_operand, immediate_operand): Likewise.
2791 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2792 * reload1.c (init_eliminable_invariants): Likewise.
2794 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2796 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2797 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2799 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2800 * config/alpha/predicates.md (input_operand): Update call to
2801 alpha_legitimate_constant_p.
2803 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2804 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2805 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2806 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2807 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2808 (arm_legitimate_constant_p): New functions.
2809 (arm_cannot_force_const_mem): Make static.
2811 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2813 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2814 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2815 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2816 instead of bfin_legitimate_constant_p.
2817 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2818 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2820 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2822 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2824 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2825 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2826 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2827 (frv_legitimate_constant_p): Make static. Add a mode argument.
2829 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2830 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2831 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2833 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2834 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2835 * config/i386/i386.c (legitimate_constant_p): Rename to...
2836 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2838 (ix86_cannot_force_const_mem): Update accordingly.
2839 (ix86_legitimate_address_p): Likewise.
2840 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2841 * config/i386/i386.md: Update commentary.
2843 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2844 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2845 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2846 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2848 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2850 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2851 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2852 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2853 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2855 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2856 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2857 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2859 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2860 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2861 (m32r_legitimate_constant_p): New function.
2863 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2864 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2865 LEGITIMATE_CONSTANT_P.
2866 (LEGITIMATE_CONSTANT_P): Delete.
2867 * config/m68k/m68k.c (m68k_expand_prologue): Call
2868 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2869 (m68k_legitimate_constant_p): New function.
2870 * config/m68k/m68k.md: Update comments.
2872 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2873 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2874 (mcore_legitimate_constant_p): New function.
2876 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2877 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2878 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2879 Add a mode argument.
2880 (mep_legitimate_address): Update accordingly.
2881 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2883 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2885 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2886 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2887 static. Check OP's mode for VOIDmode.
2888 (microblaze_legitimate_constant_p): New function.
2889 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2891 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2892 * config/mips/mips.c (mips_legitimate_constant_p): New function.
2893 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2894 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2895 * config/mips/predicates.md: Update comments.
2897 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2898 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2899 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2900 (mmix_legitimate_constant_p): Make static, return a bool, and take
2902 (mmix_print_operand_address): Update accordingly.
2904 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2906 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2907 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2908 static. Add a mode argument.
2909 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2911 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2913 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2914 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2915 (pa_legitimate_constant_p): New function.
2917 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2919 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2920 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2921 (pdp11_legitimate_constant_p): New function.
2923 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2924 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2925 (rs6000_legitimate_constant_p): New function.
2927 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2928 (rx_legitimate_constant_p): ...this.
2929 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2930 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2931 (rx_legitimate_constant_p): ...this.
2932 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2933 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2935 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2936 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2937 * config/s390/s390.c (legitimate_constant_p): Rename to...
2938 (s390_legitimate_constant_p): ...this. Make static, return a bool,
2939 and add a mode argument.
2940 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2942 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2944 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2945 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2946 (sh_legitimate_constant_p): New function.
2948 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2949 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2950 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2951 (legitimate_constant_p): Rename to...
2952 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
2954 (constant_address_p): Update accordingly.
2956 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2957 argument and return a bool.
2958 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2959 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2960 (spu_legitimate_constant_p): Add a mode argument and return a bool.
2961 (spu_rtx_costs): Update accordingly.
2962 * config/spu/predicates.md (vec_imm_operand): Likewise.
2964 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2966 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2967 * config/v850/v850.c (v850_legitimate_constant_p): New function.
2968 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2970 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2971 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2972 * config/vax/vax.c (legitimate_constant_p): Likewise.
2974 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2975 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2976 (xtensa_legitimate_constant_p): New function.
2978 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2980 * target.def (cannot_force_const_mem): Add a mode argument.
2981 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2982 * doc/tm.texi: Regenerate.
2983 * hooks.h (hook_bool_mode_rtx_false): Declare.
2984 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2985 (hook_bool_mode_const_rtx_true): Likewise.
2986 (hook_bool_mode_rtx_false): New function.
2987 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2988 to be non-VOID. Update call to cannot_force_const_mem.
2989 (find_reloads): Update accordingly.
2990 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2991 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2993 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2994 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2995 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2996 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2997 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2998 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2999 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3000 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3001 (m68k_cannot_force_const_mem): ...this new function.
3002 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3004 (mips_const_insns, mips_legitimize_const_move): Update calls.
3005 (mips_secondary_reload_class): Likewise.
3006 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3007 (pa_cannot_force_const_mem): ...this new function.
3008 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3009 (rs6000_cannot_force_const_mem): ...this new function.
3010 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3012 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3013 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3015 (xtensa_cannot_force_const_mem): ...this new function.
3017 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3019 * config/mips/mips.c (mips16_build_function_stub): Call
3020 build_function_type_list instead of build_function_type.
3021 (mips16_build_call_stub): Likewise.
3023 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3025 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3026 instead of build_function_type.
3028 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3030 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3031 instead of build_function_type.
3033 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
3036 * config/i386/i386.md (insv): Change operand 0 constraint to
3037 "register_operand". Change operand 1 and 2 constraint to
3038 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
3039 * config/i386/sse.md (sse4_1_pinsrb): Export.
3040 (sse2_pinsrw): Ditto.
3041 (sse4_1_pinsrd): Ditto.
3042 (sse4_1_pinsrq): Ditto.
3043 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3044 * config/i386/i386.c (ix86_expand_pinsr): New.
3046 2011-04-20 Easwaran Raman <eraman@google.com>
3048 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3049 containing union type only with -fstrict-aliasing.
3051 2011-04-20 Jim Meyering <meyering@redhat.com>
3053 Remove useless if-before-free tests.
3054 * calls.c (expand_call, save_area): Likewise.
3055 * cfgcleanup.c (try_forward_edges): Likewise.
3056 * collect2.c (collect_execute): Likewise.
3057 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3058 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3059 * coverage.c (coverage_checksum_string): Likewise.
3060 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3061 * cselib.c (cselib_init): Likewise.
3062 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3063 (df_set_clean_cfg): Likewise.
3064 * function.c (free_after_compilation): Likewise.
3065 * gcc.c (do_spec_1, main): Likewise.
3066 * gcov.c (create_file_names): Likewise.
3067 * gensupport.c (identify_predicable_attribute): Likewise.
3068 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3069 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3070 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3071 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3072 * ipa-pure-const.c (local_pure_const): Likewise.
3073 * ipa-reference.c (propagate): Likewise.
3074 * ira-costs.c (free_ira_costs): Likewise.
3075 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3076 * matrix-reorg.c (mat_free): Likewise.
3077 * prefix.c (get_key_value): Likewise.
3078 * profile.c (compute_value_histograms): Likewise.
3079 * reload1.c (free_reg_equiv): Likewise.
3080 * sched-deps.c (free_deps): Likewise.
3081 * sel-sched-ir.c (fence_clear): Likewise.
3082 * sese.c (set_rename, if_region_set_false_region): Likewise.
3083 * tree-data-ref.c (free_rdg): Likewise.
3084 * tree-eh.c (lower_try_finally): Likewise.
3085 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3086 * tree-ssa-live.c (delete_var_map): Likewise.
3087 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3088 * tree-ssa-pre.c (phi_trans_add): Likewise.
3090 2011-04-20 Jakub Jelinek <jakub@redhat.com>
3092 PR tree-optimization/48611
3093 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3094 beyond ERT_MUST_NOT_THROW region.
3096 2011-04-20 Catherine Moore <clm@codesourcery.com>
3098 * config/mips/mips.opt (mfix-24k): New.
3099 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3100 * config/mips/mips.md (length): Increase by 4 for stores if
3102 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3103 all noreorder if fixing 24K errata.
3104 * doc/invoke.texi: Document mfix-24k.
3106 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
3108 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3109 quad-word modes, reduce to 9-bit index range when above 1016 limit.
3111 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3113 * config/arm/arm.c (arm_gen_constant): Move movw support ....
3114 (const_ok_for_op): ... to here.
3116 2011-04-20 Kai Tietz <ktietz@redhat.com>
3118 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3119 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3121 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3123 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3125 2011-04-20 Richard Guenther <rguenther@suse.de>
3127 PR tree-optimization/47892
3128 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3131 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
3133 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3135 2011-04-20 Tristan Gingold <gingold@adacore.com>
3137 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3139 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
3143 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3144 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3145 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3146 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3147 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3149 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3152 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3153 (avr_asm_named_section, avr_asm_output_aligned_common,
3154 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3155 New functions to update...
3156 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3157 (avr_asm_init_sections): Overwrite section callbacks for
3158 data_section, bss_section.
3159 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3161 (avr_file_end): ...here.
3163 2011-04-20 Richard Guenther <rguenther@suse.de>
3166 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3167 objects and types here. Adjust for their offset before comparing.
3169 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3171 * tree-vect-stmts.c (vectorizable_store): Only chain one related
3174 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3176 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3177 (GIMPLE_H): Include $(INTERNAL_FN_H).
3178 (OBJS-common): Add internal-fn.o.
3179 (internal-fn.o): New rule.
3180 * internal-fn.def: New file.
3181 * internal-fn.h: Likewise.
3182 * internal-fn.c: Likewise.
3183 * gimple.h: Include internal-fn.h.
3184 (GF_CALL_INTERNAL): New gf_mask.
3185 (gimple_statement_call): Put fntype into a union with a new
3187 (gimple_build_call_internal): Declare.
3188 (gimple_build_call_internal_vec): Likewise.
3189 (gimple_call_same_target_p): Likewise.
3190 (gimple_call_internal_p): New function.
3191 (gimple_call_internal_fn): Likewise.
3192 (gimple_call_fntype): Return null for internal calls.
3193 (gimple_call_set_fntype): Assert that the function is not internal.
3194 (gimple_call_set_fn): Likewise.
3195 (gimple_call_set_fndecl): Likewise.
3196 (gimple_call_set_internal_fn): New function.
3197 (gimple_call_addr_fndecl): Handle null functions.
3198 (gimple_call_return_type): Likewise null types.
3199 * gimple.c (gimple_build_call_internal_1): New function.
3200 (gimple_build_call_internal): Likewise.
3201 (gimple_build_call_internal_vec): Likewise.
3202 (gimple_call_same_target_p): Likewise.
3203 (gimple_call_flags): Handle calls to internal functions.
3204 (gimple_call_fnspec): New function.
3205 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3206 (gimple_has_side_effects): Handle null functions.
3207 (gimple_rhs_has_side_effects): Likewise.
3208 (gimple_call_copy_skip_args): Handle calls to internal functions.
3209 * cfgexpand.c (expand_call_stmt): Likewise.
3210 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3211 * gimple-fold.c (gimple_fold_call): Handle null functions.
3212 (gimple_fold_stmt_to_constant_1): Don't fold
3213 calls to internal functions.
3214 * gimple-low.c (gimple_check_call_args): Handle calls to internal
3216 * gimple-pretty-print.c (dump_gimple_call): Likewise.
3217 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3218 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3219 (do_warn_unused_result): Likewise.
3220 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3221 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3222 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3223 the target of a call.
3224 (initialize_hash_element): Update accordingly.
3225 (hashable_expr_equal_p): Use gimple_call_same_target_p.
3226 (iterative_hash_hashable_expr): Handle calls to internal functions.
3227 (print_expr_hash_elt): Likewise.
3228 * tree-ssa-pre.c (can_value_number_call): Likewise.
3229 (eliminate): Handle null functions.
3230 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3231 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3232 (find_func_aliases): Likewise.
3233 * value-prof.c (gimple_ic_transform): Likewise.
3234 (gimple_indirect_call_to_profile): Likewise.
3235 * lto-streamer-in.c (input_gimple_stmt): Likewise.
3236 * lto-streamer-out.c (output_gimple_stmt): Likewise.
3238 2011-04-19 Jan Hubicka <jh@suse.cz>
3240 * ipa-inline-transform.c (save_inline_function_body): Add comments.
3241 * ipa-inline.c (inline_small_functions): Compute summaries first,
3242 populate heap later.
3244 2011-04-19 Jan Hubicka <jh@suse.cz>
3246 * cgraph.h (save_inline_function_body): Remove.
3247 * ipa-inline-transform.c: New file, broke out of...
3248 * ipa-inline.c: ... this one; Update toplevel comment.
3249 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3251 (update_noncloned_frequencies): Move to ipa-inline-transform.c
3252 (cgraph_mark_inline_edge): Rename to inline_call; move to
3253 ipa-inline-transform.c.
3254 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3255 move to ipa-inline-transform.c
3256 (recursive_inlining, inline_small_functions, flatten_function,
3257 ipa_inline, inline_always_inline_functions,
3258 early_inline_small_functions): Update.
3259 (inline_transform): Move to ipa-inline-transform.c.
3260 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3262 * Makefile.in (ipa-inline-transform.o): New file.
3263 * cgraphunit.c (save_inline_function_body): Move to
3264 ipa-inline-transform.c
3266 2011-04-19 DJ Delorie <dj@redhat.com>
3268 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3269 registers if we already know there aren't any.
3270 (m32c_emit_epilogue): Don't emit a barrier here.
3271 (m32c_emit_eh_epilogue): Likewise.
3272 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3273 operands at expand time.
3274 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3276 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3277 duplicates. Provide aliases instead.
3278 * config/m32c/prologue.md (eh_return): Emit a barrier here.
3279 (eh_epilogue): Add a "(return)" here as a hint to other parts of
3282 2011-04-19 Anatoly Sokolov <aesok@post.ru>
3284 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3285 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3286 (general_or_i64_p, sparc_register_move_cost): New function.
3288 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3290 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3291 Add lynx, mipssde. Sort table.
3293 2011-04-19 Xinliang David Li <davidxl@google.com>
3295 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3298 2011-04-19 Jakub Jelinek <jakub@redhat.com>
3301 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3302 is a SUBREG with non-MODE_INT mode inside of it.
3304 2011-04-19 Martin Jambor <mjambor@suse.cz>
3306 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3307 also according to actual contants.
3308 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3309 (gimple_fold_call): Use it.
3310 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3312 2011-04-19 Martin Jambor <mjambor@suse.cz>
3314 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3315 non-pointer assignments.
3317 2011-04-19 Martin Jambor <mjambor@suse.cz>
3319 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3320 account anc_offset and otr_type from the indirect edge info.
3321 * ipa-prop.c (get_ancestor_addr_info): New function.
3322 (compute_complex_ancestor_jump_func): Assignment analysis moved to
3323 get_ancestor_addr_info, call it.
3324 (ipa_note_param_call): Do not initialize information about polymorphic
3325 calls, return the indirect call graph edge. Remove the last
3326 parameter, adjust all callers.
3327 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3328 parameters. Initialize polymorphic information in the indirect edge.
3330 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3333 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3334 the types if they have different enumeration identifiers.
3336 2011-04-19 Jan Hubicka <jh@suse.cz>
3338 * cgraph.h (cgraph_optimize_for_size_p): Declare.
3339 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3340 * predict.c (cgraph_optimize_for_size_p): Break out from ...
3341 (optimize_function_for_size_p) ... here.
3343 2011-04-19 Richard Guenther <rguenther@suse.de>
3346 * tree.c (free_lang_data): Do not reset the decl-assembler-name
3349 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3351 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3352 if DECL_NO_INLINE_WARNING_P is set on the function.
3354 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
3357 * reload1.c (inc_for_reload): Return void. All callers changed.
3358 (emit_input_reload_insns): Don't try to delete previous output
3359 reloads to a register, or record spill_reg_store for autoincs.
3361 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
3363 * gengtype.h: Updated copyright year.
3364 (struct input_file_st): Add inpisplugin field.
3365 (type_fileloc): New function.
3367 (write_typed_struct_alloc_def): Add gcc_assert.
3368 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3369 (write_typed_alloc_defns): Don't output for plugin files.
3370 (input_file_by_name): Clear inpisplugin field.
3371 (main): Set inpisplugin field for plugin files.
3373 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
3375 * gengtype-state.c (string_eq): New.
3376 (read_state): Use string_eq instead of strcmp when creating the
3379 2011-04-19 Wei Guozhi <carrot@google.com>
3382 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3383 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3385 * config/arm/constraints.md (Uu): New constraint.
3386 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3388 2011-04-19 Tristan Gingold <gingold@adacore.com>
3390 * config.gcc (-*-*-*vms): Added.
3391 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3393 * config/vms/vms-ld.c: New file.
3394 * config/vms/vms-ar.c: New file.
3395 * config/vms/t-vmsnative: New file.
3397 2011-04-18 Xinliang David Li <davidxl@google.com>
3399 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3401 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3404 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3405 if TREE_TYPE (v) is non-NULL.
3407 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3408 gimple_get_virt_mehtod_for_binfo.
3409 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3410 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3412 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3414 2011-04-18 Michael Matz <matz@suse.de>
3415 Steve Ellcey <sje@cup.hp.com>
3417 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3418 use its mode as source mode if it isn't VOIDmode.
3420 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
3422 * doc/passes.texi: Fill crossref nodes.
3424 2011-04-18 Jim Meyering <meyering@redhat.com>
3426 Fix doubled-word typos in comments and strings
3427 * config/alpha/vms-unwind.h: s/for for/for/
3428 * config/arm/unwind-arm.h: Likewise.
3429 * config/microblaze/microblaze.c: Likewise.
3430 * config/sh/constraints.md: s/in in/in/
3431 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3433 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
3435 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3436 (AVX_FLOAT_MODE_P): Ditto.
3437 (AVX128_VEC_FLOAT_MODE_P): Ditto.
3438 (AVX256_VEC_FLOAT_MODE_P): Ditto.
3439 (AVX_VEC_FLOAT_MODE_P): Ditto.
3440 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3441 (UNSPEC_MASKSTORE): Ditto.
3442 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3443 Merge from <sse>_movmsk<ssemodesuffix> and
3444 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
3445 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
3447 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3448 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3449 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3451 2011-04-18 Jan Hubicka <jh@suse.cz>
3453 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3455 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3456 (want_inline_function_called_once_p): Break out the logic from
3458 (edge_badness): Ensure that profile is not misupdated.
3459 (lookup_recursive_calls): Prioritize by call frequencies.
3460 (inline_small_functions): Move program size estimates here;
3461 actually process whole queue even when unit growth has been
3462 met. (to properly compute inline_failed reasons and for the
3463 case unit size decrease.) Revisit comments on recursive inlining.
3464 (ipa_inline): Remove unit summary code; first inline hot calls
3465 of functions called once, cold calls next.
3466 (order, nnodes): Remove unused variables.
3467 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3468 (GTFILES): Remove ipa-inline.c
3469 * sel-sched.c (fill_insns): Silence uninitialized var warning.
3471 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3473 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3475 2011-04-18 Jie Zhang <jie@codesourcery.com>
3476 Richard Earnshaw <rearnsha@arm.com>
3478 * arm.c (neon_builtin_type_bits): Remove.
3479 (typedef enum neon_builtin_mode): New.
3480 (T_MAX): Don't define.
3481 (typedef enum neon_builtin_datum): Remove bits, codes[],
3482 num_vars and base_fcode. Add mode, code and fcode.
3483 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3484 VAR10): Change accordingly.
3485 (neon_builtin_data[]): Change accordingly
3486 (arm_init_neon_builtins): Change accordingly.
3487 (neon_builtin_compare): Remove.
3488 (locate_neon_builtin_icode): Remove.
3489 (arm_expand_neon_builtin): Change accordingly.
3491 * arm.h (enum arm_builtins): Move to ...
3492 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3494 * arm.c (arm_builtin_decl): Declare.
3495 (TARGET_BUILTIN_DECL): Define.
3496 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3497 (arm_builtin_decls[]): New.
3498 (arm_init_neon_builtins): Store builtin declarations in
3499 arm_builtin_decls[].
3500 (arm_init_tls_builtins): Likewise.
3501 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
3502 (arm_builtin_decl): New.
3504 2011-04-18 Richard Guenther <rguenther@suse.de>
3506 * tree.c (upper_bound_in_type): Build properly canonicalized
3508 (lower_bound_in_type): Likewise.
3510 2011-04-18 Richard Guenther <rguenther@suse.de>
3512 * gimple.h (gimple_call_addr_fndecl): New function.
3513 (gimple_call_fndecl): Use it.
3514 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3516 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3517 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3519 2011-04-18 Richard Guenther <rguenther@suse.de>
3522 * tree.c (build_string): STRING_CST is now derived from tree_typed.
3524 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3527 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3528 DECL_IN_CONSTANT_POOL without RTL.
3530 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
3531 Ira Rosen <ira.rosen@linaro.org>
3534 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3535 to match neon_vzip/vuzp/vtrn_internal.
3536 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3537 outputs explicitly dependent on both inputs.
3538 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3540 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3542 PR tree-optimization/48616
3543 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3544 whether the shift is by scalar or vector based on whether all SLP
3545 scalar stmts have the same rhs.
3547 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
3549 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3552 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3554 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3557 2011-04-17 Jan Hubicka <jh@suse.cz>
3559 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3560 * cgrpahunit.c (cgraph_finalize_function): Do not set
3561 finalized_by_frontend.
3562 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3563 finalized_by_frontend.
3565 2011-04-17 Jan Hubicka <jh@suse.cz>
3567 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3568 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3569 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3570 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3572 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3574 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3576 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
3579 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3580 is non-null before accessing it.
3581 (input_cgraph): Remove trailing spaces.
3583 2011-04-17 Revital Eres <revital.eres@linaro.org>
3585 * params.def (sms-min-sc): New param flag.
3586 * modulo-sched.c (sms_schedule): Use it.
3587 * doc/invoke.texi (sms-min-sc): Document it.
3589 2011-04-17 Jan Hubicka <jh@suse.cz>
3591 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3592 present, also set gimple_call_set_cannot_inline.
3593 * ipa-inline.c: Update toplevel comment.
3595 (cgraph_clone_inlined_nodes): Fix linebreaks.
3596 (cgraph_check_inline_limits): Restructure to ...
3597 (caller_growth_limits): ... this one; be more tolerant
3598 on growth in nested inline chains; add explanatory comment;
3599 fix stack accounting thinko introduced by previous patch.
3600 (cgraph_default_inline_p): Remove.
3601 (report_inline_failed_reason): New function.
3602 (can_inline_edge_p): New function.
3603 (can_early_inline_edge_p): New function.
3604 (leaf_node_p): Move upwards in file.
3605 (want_early_inline_function_p): New function.
3606 (want_inline_small_function_p): New function.
3607 (want_inline_self_recursive_call_p): New function.
3608 (cgraph_edge_badness): Rename to ...
3609 (edge_badness) ... this one; fix linebreaks.
3610 (update_edge_key): Update call of edge_baddness; add
3611 detailed dump about queue updates.
3612 (update_caller_keys): Use can_inline_edge_p and
3613 want_inline_small_function_p.
3614 (cgraph_decide_recursive_inlining): Rename to...
3615 (recursive_inlining): Use can_inline_edge_p and
3616 want_inline_self_recursive_call_p; simplify and remove no longer
3618 (cgraph_set_inline_failed): Remove.
3619 (add_new_edges_to_heap): Use can_inline_edge_p and
3620 want_inline_small_function_p.
3621 (cgraph_decide_inlining_of_small_functions): Rename to ...
3622 (inline_small_functions): ... this one; cleanup; use
3623 can/want predicates; cleanup debug ouput; work edges till fibheap
3624 is exhausted and do not stop once unit growth is reached; remove
3625 later loop processing remaining edges.
3626 (cgraph_flatten): Rename to ...
3627 (flatten_function): ... this one; use can_inline_edge_p
3628 and can_early_inline_edge_p predicates.
3629 (cgraph_decide_inlining): Rename to ...
3630 (ipa_inline): ... this one; remove unreachable nodes before
3631 inlining functions called once; simplify the pass.
3632 (cgraph_perform_always_inlining): Rename to ...
3633 (inline_always_inline_functions): ... this one; use
3634 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3635 (cgraph_decide_inlining_incrementally): Rename to ...
3636 (early_inline_small_functions): ... this one; simplify
3637 using new predicates; cleanup; make dumps prettier.
3638 (cgraph_early_inlining): Rename to ...
3639 (early_inliner): newer inline regular functions into always-inlines;
3640 fix updating of call stmt summaries.
3641 (pass_early_inline): Update for new names.
3642 (inline_transform): Fix formating.
3643 (gate_cgraph_decide_inlining): Rename to ...
3644 (pass_ipa_inline): ... this one.
3645 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3646 * ipa-inline-analysis.c (dump_inline_summary): Update.
3647 (compute_inline_parameters): Do not compute disregard_inline_limits;
3648 look for mismatching arguments.
3649 (estimate_growth): Fix handlig of non-trivial self recursion.
3650 (inline_read_summary): Do not read info->disregard_inline_limits.
3651 (inline_write_summary): Do not write info->disregard_inline_limits.
3652 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3653 and move all checks into can_inline_edge_p predicate; re-enable code
3654 comparing optimization levels.
3655 (expand_call_inline): Do not test inline_forbidden_into_p.
3656 * Makefile.in (ipa-inline.o): Update arguments.
3658 2011-04-17 Revital Eres <revital.eres@linaro.org>
3660 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3662 2011-04-17 Revital Eres <revital.eres@linaro.org>
3664 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3666 2011-04-17 Michael Matz <matz@suse.de>
3668 PR tree-optimization/48622
3670 * ipa-inline-analysis.c (inline_read_summary): Read size/time
3671 in same order as they're written.
3673 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3675 * config/pa/predicates.md: Reorganize and simplify predicates.
3676 Eliminate duplicate code checks.
3677 (arith_operand): Rename to arith14_operand
3678 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3679 * config/pa/pa.md: Use renamed operands.
3680 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3681 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3682 arith11_operand, adddi3_operand, indexed_memory_operand,
3683 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3684 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3685 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3686 move_dest_operand, move_src_operand, prefetch_cc_operand,
3687 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3688 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3689 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3690 div_operand, int5_operand, movb_comparison_operator,
3691 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3692 arith_double_operand, ireg_operand, lhs_lshift_operand,
3693 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3694 integer_store_memory_operand): Likewise.
3695 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3696 (integer_store_memory_operand, read_only_operand,
3697 function_label_operand, borx_reg_operand,
3698 non_hard_reg_operand): Likewise.
3699 (eq_neq_comparison_operator): Delete unused operator.
3700 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3701 function_label_operand.
3702 (emit_move_sequence): Likewise.
3704 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3706 * config/i386/sse.md (sseunpackmode): New mode attribute.
3707 (ssepackmode): Ditto.
3708 (vec_pack_trunc_<mode>): Macroize expander from
3709 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3710 (vec_unpacks_lo_<mode>): Macroize expander from
3711 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3712 (vec_unpacks_hi_<mode>): Macroize expander from
3713 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3714 (vec_unpacku_lo_<mode>): Macroize expander from
3715 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3716 (vec_unpacku_hi_<mode>): Macroize expander from
3717 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3718 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3719 ix86_expand_sse4_unpack.
3720 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3722 2011-04-16 Jan Hubicka <jh@suse.cz>
3724 * cgraphbuild.c: Include ipa-inline.h.
3725 (reset_inline_failed): Use initialize_inline_failed.
3726 * cgraph.c: Include ipa-inline.h.
3727 (cgraph_create_node_1): Do not initialize estimated_growth.
3728 (initialize_inline_failed): More to ipa-inline-analysis.c
3729 (dump_cgraph_node): Do not dump inline flags.
3730 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3731 and disregard_inline_limits flags.
3732 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3733 time, size, estimated_growth.
3734 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3736 * cgraphunit.c (cgraph_decide_is_function_needed): Use
3737 DECL_DISREGARD_INLINE_LIMITS.
3738 (cgraph_analyze_function): Do not initialize
3739 node->local.disregard_inline_limits.
3740 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3741 inlinable, versionable and disregard_inline_limits.
3742 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3743 cgraph_check_inline_limits, cgraph_default_inline_p,
3744 cgraph_edge_badness, update_caller_keys, update_callee_keys,
3745 add_new_edges_to_heap): Update.
3746 (cgraph_decide_inlining_of_small_function): Update; set
3747 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3748 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3749 cgraph_decide_inlining_incrementally): Update.
3750 * ipa-inline.h (inline_summary): Add inlinable, versionable,
3751 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3752 time, size and estimated_growth parameters.
3753 (estimate_edge_growth): Update.
3754 (initialize_inline_failed): Declare.
3755 * ipa-split.c: Include ipa-inline.h
3756 (execute_split_functions): Update.
3757 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3758 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3759 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3760 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3761 estimated_growth to INT_MIN.
3762 (inline_node_duplication_hook): Likewise.
3763 (dump_inline_summary): Dump new fields.
3764 (compute_inline_parameters): Update.
3765 (estimate_edge_time, estimate_time_after_inlining,
3766 estimate_size_after_inlining, estimate_growth, inline_read_summary,
3767 inline_write_summary):
3768 (initialize_inline_failed): Move here from cgraph.c.
3769 * tree-sra.c: Include ipa-inline.h.
3770 (ipa_sra_preliminary_function_checks): Update.
3771 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3774 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3776 * config/i386/sse.md (V16): New mode iterator.
3778 (AVXMODEQI, AVXMODEDI): Remove.
3779 (sse2, sse3): New mode attribute.
3780 (mov<mode>): Use V16 mode iterator.
3781 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3782 (push<mode>1): Use V16 mode iterator.
3783 (movmisalign<mode>): Ditto.
3784 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3785 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3786 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3787 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3788 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3789 avx_movdqu<avxmodesuffix>.
3790 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3791 *avx_movdqu<avxmodesuffix>.
3792 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3793 avx_lddqu<avxmodesuffix>.
3794 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3795 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3796 avx_movnt<AVXMODEDI:mode>.
3797 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3798 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3800 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
3803 * haifa-sched.c (prune_ready_list, schedule_block): Use
3804 sched_pressure_p rather than flag_sched_pressure.
3806 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3808 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3809 cgraph_get_node instead of cgraph_get_create_node.
3811 2011-04-15 Jakub Jelinek <jakub@redhat.com>
3813 * cfgexpand.c (expand_debug_expr): Use
3814 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3816 2011-04-15 Michael Matz <matz@suse.de>
3818 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3819 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3820 * function.c (gimplify_parameters): Ditto.
3821 * gimplify.c (gimplify_vla_decl): Ditto.
3823 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3824 (gimple_call_set_alloca_for_var): New inline function.
3825 (gimple_call_alloca_for_var_p): Ditto.
3826 * gimple.c (gimple_build_call_from_tree): Remember
3827 CALL_ALLOCA_FOR_VAR_P state.
3828 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3830 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3831 calls if they were for VLA objects.
3833 2011-04-15 Martin Jambor <mjambor@suse.cz>
3835 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3838 2011-04-15 Martin Jambor <mjambor@suse.cz>
3841 * tree-emutls.c (lower_emutls_function_body): Call
3842 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3845 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3847 * c-decl.c (detect_field_duplicates): Call
3848 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3850 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3852 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3853 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3854 * ipa-pure-const.c (check_stmt): Call it.
3855 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3857 2011-04-15 Richard Guenther <rguenther@suse.de>
3859 PR tree-optimization/48290
3860 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3861 Properly decide inhibiting propagation based on the valueized
3862 operand. Do loop-closed SSA form preserving here ...
3863 (init_copy_prop): ... not here.
3865 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3868 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3869 (*ieee_smax<mode>3): Likewise.
3871 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3873 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3874 Replace match_operand with match_dup for the third operand in
3877 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3879 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3880 to track processing of conditionals. Update all callers.
3881 (try_combine, simplify_if_then_else): Update.
3883 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3885 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3888 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
3890 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3891 instead of match_operand for operand 3.
3893 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
3895 * recog.h (insn_operand_data): Add an "allows_mem" field.
3896 * genoutput.c (output_operand_data): Initialize it.
3897 * optabs.c (maybe_legitimize_operand_same_code): New function.
3898 (maybe_legitimize_operand): Use it when matching the original
3901 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3903 * gimplify.c: Fix issues in comments throughout.
3904 (voidify_wrapper_expr): Fix long line.
3905 (build_stack_save_restore): Likewise.
3906 (gimplify_loop_expr): Likewise.
3907 (gimplify_compound_lval): Likewise.
3908 (gimplify_init_ctor_eval): Likewise.
3909 (gimplify_modify_expr_rhs): Likewise.
3910 (omp_notice_threadprivate_variable): Likewise.
3912 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3914 * cfgexpand.c (expand_call_stmt): Convert the function type to the
3915 original one if this is not a builtin function.
3917 2011-04-14 Jakub Jelinek <jakub@redhat.com>
3920 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3921 offset it as needed based on top 2 bits in operands[3], change
3922 MEM mode to SFmode and mask those 2 bits away from operands[3].
3924 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3926 * c-parser.c (c_parser_objc_protocol_definition): Updated for
3927 change from objc_declare_protocols() to objc_declare_protocol().
3929 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
3931 * config/i386/sse.md (sse4_1): New mode attribute.
3932 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3933 avx_blend<ssemodesuffix><avxmodesuffix> and
3934 sse4_1_blend<ssemodesuffix> using VF mode iterator.
3935 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3936 avx_blendv<ssemodesuffix><avxmodesuffix> and
3937 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3938 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3939 avx_dp<ssemodesuffix><avxmodesuffix> and
3940 sse4_1_dp<ssemodesuffix> using VF mode iterator.
3941 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3942 (sse4_1_packusdw): Merge with *avx_packusdw.
3943 (sse4_1_pblendvb): Merge with *avx_pblendvb.
3944 (sse4_1_pblendw): Merge with *avx_pblendw.
3945 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3946 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3947 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3949 (sse4_1_round<ssescalarmodesuffix>): Merge with
3950 *avx_round<ssescalarmodesuffix>.
3951 (aesenc): Merge with *avx_aesenc.
3952 (aesenclast): Merge with *avx_aesenclast.
3953 (aesdec): Merge with *avx_aesdec.
3954 (aesdeclast): Merge with *avx_aesdeclast.
3955 (pclmulqdq): Merge with *pclmulqdq.
3956 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3958 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3960 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
3963 * cfgexpand.c (get_decl_align_unit): Renamed to ...
3964 (align_local_variable): This. Update DECL_ALIGN.
3965 (add_stack_var): Updated.
3966 (expand_one_stack_var): Likewise.
3968 2011-04-14 Richard Guenther <rguenther@suse.de>
3970 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3972 (dse_initialize_block_local_data, dse_leave_block,
3973 record_voperand_set, get_stmt_uid): Likewise.
3974 (dse_possible_dead_store_p): Allow any kind of killing stmt.
3975 (dse_optimize_stmt): Remove voperand set handling code.
3976 Simplify and improve to handle any kind of killing stmt.
3977 (dse_record_phi): Remove.
3978 (dse_enter_block): Simplify.
3979 (tree_ssa_dse): Likewise.
3980 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3982 2011-04-14 Jan Hubicka <jh@suse.cz>
3984 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3985 * cgraph.h (struct inline_summary): Move to ipa-inline.h
3986 (cgraph_local_info): Remove inline_summary.
3987 * ipa-cp.c: Include ipa-inline.h.
3988 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3989 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3991 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3992 (input_overwrite_node): Do not set inline summary.
3993 (input_node): Do not stream inline summary.
3994 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3995 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3996 growth; we do not have inline parameters computed for that anyway.
3997 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3998 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3999 (inline_summary_t): New type and VECtor.
4000 (debug_inline_summary, dump_inline_summaries): Declare.
4001 (inline_summary): Use VOCtor.
4002 (estimate_edge_growth): Kill hack computing call stmt size directly.
4003 * lto-section-in.c (lto_section_name): Add inline section.
4004 * ipa-inline-analysis.c: Include lto-streamer.h
4005 (node_removal_hook_holder, node_duplication_hook_holder): New holders
4006 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4007 (inline_summary_vec): Define.
4008 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4009 dump_inline_summaries): New functions.
4010 (estimate_function_body_sizes): Properly compute size/time of outgoing
4012 (compute_inline_parameters): Alloc inline_summary; do not compute
4013 size/time of incomming calls.
4014 (estimate_edge_time): Avoid missing time summary hack.
4015 (inline_read_summary): Read inline summary info.
4016 (inline_write_summary): Write inline summary info.
4017 (inline_free_summary): Free all hooks and inline summary vector.
4018 * lto-streamer.h: Add LTO_section_inline_summary section.
4019 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4020 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4022 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4024 * tree-vectorizer.h (vect_strided_store_supported): Add a
4025 HOST_WIDE_INT argument.
4026 (vect_strided_load_supported): Likewise.
4027 (vect_permute_store_chain): Return void.
4028 (vect_transform_strided_load): Likewise.
4029 (vect_permute_load_chain): Delete.
4030 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4031 count argument. Check that the count is a power of two.
4032 (vect_strided_load_supported): Likewise.
4033 (vect_permute_store_chain): Return void. Update after above changes.
4034 Assert that the access is supported.
4035 (vect_permute_load_chain): Likewise.
4036 (vect_transform_strided_load): Return void.
4037 * tree-vect-stmts.c (vectorizable_store): Update calls after
4038 above interface changes.
4039 (vectorizable_load): Likewise.
4040 (vect_analyze_stmt): Don't check for strided powers of two here.
4042 2011-04-14 Richard Guenther <rguenther@suse.de>
4044 PR tree-optimization/48590
4045 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4046 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4047 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4048 BUILT_IN_STACK_SAVE.
4049 * tree-ssa-dce.c (propagate_necessity): Handle
4050 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4052 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4054 * c-parser.c (c_parser_objc_class_declaration): Updated call to
4057 2011-04-14 Richard Guenther <rguenther@suse.de>
4059 * tree.h (get_object_alignment_1): Declare.
4060 * builtins.c (get_object_alignment_1): Split out worker from ...
4061 (get_object_alignment): ... here.
4062 * fold-const.c (get_pointer_modulus_and_residue): Use
4063 get_object_alignment_1.
4065 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4067 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4069 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4070 parameter. Generalise code to handle arrays as well as vectors.
4071 (vect_setup_realignment): Update accordingly.
4072 * tree-vect-stmts.c (vectorizable_store): Likewise.
4073 (vectorizable_load): Likewise.
4075 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4077 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4078 within the per-copy loop.
4080 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4082 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4085 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4087 * doc/options.texi (Negative): Explicitly mention that the
4088 Negative chain must be circular.
4090 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
4092 * function.h (block_chainon): Declare.
4093 * function.c (block_chainon): Define.
4095 2011-04-14 Anatoly Sokolov <aesok@post.ru>
4096 Eric Weddington <eric.weddington@atmel.com>
4097 Georg-Johann Lay <avr@gjlay.de>
4099 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4101 (avr_init_builtins, avr_expand_builtin,
4102 avr_expand_delay_cycles, avr_expand_unop_builtin,
4103 avr_expand_binop_builtin ): New functions.
4104 (avr_builtin_id): New enum
4105 (struct avr_builtin_description): New struct
4106 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4107 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4109 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4110 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4111 UNSPECV_DELAY_CYCLES): new enumeration values
4112 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4113 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4114 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4115 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4116 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4117 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4118 "fmulsu"): New insns
4120 * config/avr/avr-c.c: fix line endings
4121 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4122 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4123 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4124 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4125 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4127 * doc/extend.texi (AVR Built-in Functions): New node
4128 (Target Builtins): Add documentation of AVR
4131 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
4134 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4135 alone. Error if non-const data has attribute progmem.
4137 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4139 * tree.h (struct tree_constructor): Include tree_typed instead of
4141 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4142 TS_TYPED instead of TS_COMMON.
4144 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4146 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4147 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4148 (sse2_psadbw): Merge with *avx_psadbw.
4149 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4150 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4151 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4152 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4153 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4154 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4155 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4156 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4157 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4158 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4159 (ssse3_palignrti): Merge with *avx_palignrti.
4161 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4163 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4164 * tree-ssanames.c (fini_ssanames): VEC_free it.
4165 (make_ssa_name_fn): Update for VECness of free_ssanames.
4166 (release_ssa_name, release_dead_ssa_names): Likewise.
4167 * tree.h (struct tree_ssa_name): Include tree_typed instead of
4169 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4170 TS_TYPED instead of TS_COMMON.
4172 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4174 * postreload-gcse.c (gcse_after_reload_main): Add calls to
4175 statistics_counter_event.
4176 * tree-ssa-copyrename.c (stats): Define.
4177 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
4178 statistics_counter_event.
4179 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4180 (bswap_stats, widen_mul_stats): Define.
4181 (insert_reciprocals): Increment rdivs_inserted.
4182 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
4183 rfuncs_inserted. Add calls to statistics_counter_event.
4184 (execute_cse_sincos_1): Increment inserted.
4185 (execute_cse_sincos): Zeroize sincos_stats. Add call to
4186 statistics_counter_event.
4187 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
4188 of bswap_stats. Add calls to statistics_counter_event.
4189 (convert_mult_to_widen): Increment widen_mults_inserted.
4190 (convert_plusminus_to_widen): Increment maccs_inserted.
4191 (convert_mult_to_fma): Increment fmas_inserted.
4192 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
4193 calls to statistics_counter_event.
4195 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
4197 PR rtl-optimization/48455
4198 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4199 `temp_costs->mem_cost'.
4201 2011-04-13 Jan Hubicka <jh@suse.cz>
4203 * ipa-inline.h: New file.
4204 * ipa-inline-analysis.c: New file. Broken out of ...
4205 * ipa-inline.c: ... this file; update toplevel comment;
4206 include ipa-inline.h
4207 (inline_summary): Move to ipa-inline.h
4208 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4209 ipa-inline-analysis.c.
4210 (cgraph_estimate_time_after_inlining): Rename to
4211 estiamte_time_after_inlining; move to ipa-inline-analysis.c
4212 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4213 to estimate_edge_growth.
4214 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4215 rename to estimate_size_after_inlining.
4216 (cgraph_mark_inline_edge): Update for new naming convention.
4217 (cgraph_check_inline_limits): Likewise.
4218 (cgraph_edge_badness): Likewise.
4219 (cgraph_decide_recursive_inlining): Likewise.
4220 (cgraph_decide_inlining_of_small_functions): Likewise.
4221 (cgraph_decide_inlining_incrementally): Likewise.
4222 (cgraph_estimate_growth): Rename to estimate_growth; move to
4223 ipa-inline-analysis.c.
4224 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4225 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4226 (compute_inline_parameters): Likewise.
4227 (compute_inline_parameters_for_current): Likewise.
4228 (pass_inline_parameters): Likewise.
4229 (inline_indirect_intraprocedural_analysis): Likewise.
4230 (analyze_function): Rename to inline_analyze_function; likewise.
4231 (add_new_function): Move to ipa-inline-analysis.c.
4232 (inline_generate_summary): Likewise.
4233 (inline_read_summary): Likewise.
4234 (inline_write_summary): Likewise.
4235 * Makefile.in (ipa-inline-analysis.c): New file.
4237 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4239 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4240 * configure: Regenerate.
4242 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4244 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4245 instead of tree_common.
4246 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4248 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4249 TS_TYPED rather than TS_COMMON.
4250 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4252 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
4255 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4256 r20 around calls of __tablejump_elpm__
4258 2011-04-13 Jakub Jelinek <jakub@redhat.com>
4261 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4263 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4265 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
4267 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4268 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4269 (cfi_vec): New typedef.
4270 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4271 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4272 (cie_cfi_vec): New static variable.
4273 (cie_cfi_head): Delete.
4274 (add_cfi): Accept a cfi_vec * as first argument. All callers and
4275 declaration changed. Use vector rather than list operations.
4276 (new_cfi): Don't initialize the dw_cfi_next field.
4277 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4278 rather than list operations.
4279 (lookup_cfa): Use vector rather than list operations.
4280 (output_cfis): New argument upto. Accept a cfi_vec rather than
4281 a dw_cfi_ref list head as argument. All callers changed.
4282 Iterate over the vector using upto as a maximum index.
4283 (output_all_cfis): New static function.
4284 (output_fde): Use vector rather than list operations. Use the
4285 new upto argument for output_cfis rather than manipulating a
4287 (dwarf2out_begin_prologue): Change initializations to match
4289 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4290 from the vector length rather than searching for the end of a list.
4291 Use output_all_cfis.
4292 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4294 2011-04-13 Nick Clifton <nickc@redhat.com>
4296 * config/rx/rx.md (movmemsi): Do not use this pattern when
4297 volatile pointers are involved.
4299 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4301 * config/i386/sse.md (pinsrbits): Remove.
4302 (sse2_packsswb): Merge with *avx_packsswb.
4303 (sse2_packssdw): Merge with *avx_packssdw.
4304 (sse2_packuswb): Merge with *avx_packuswb.
4305 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4306 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4307 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4308 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4309 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4310 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4311 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4312 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4313 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4314 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4315 (sse2_loadld): Merge with *avx_loadld.
4316 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4317 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4318 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4319 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4320 (vec_concatv2di): Merge with *vec_concatv2di_avx.
4322 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4324 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4326 * print-tree.c (print_node): Likewise.
4327 * tree-inline.c (copy_tree_r): Likewise.
4328 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4329 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4330 instead of TS_COMMON.
4331 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4332 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4333 (copy_node_stat): Zero TREE_CHAIN only if necessary.
4334 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4335 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4337 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4339 (TREE_CHAIN): Check for a TS_COMMON structure.
4340 (TREE_TYPE): Check for a TS_TYPED structure.
4342 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
4344 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4345 cgraph_get_create_node instead of cgraph_node.
4347 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4349 * c-parser.c (c_parser_initelt): Updated call to
4350 objc_build_message_expr.
4351 (c_parser_postfix_expression): Likewise.
4353 2011-04-12 Kai Tietz <ktietz@redhat.com>
4355 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4356 MASK_MS_BITFIELD_LAYOUT bit.
4358 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4360 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4361 assert it is always true.
4362 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4365 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4367 * c-parser.c (c_lex_one_token): Rewritten conditional used when
4368 compiling Objective-C to be more efficient.
4370 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
4372 * opts-common.c (decode_cmdline_options_to_array): Remove variable
4375 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4377 * recog.h, genoutput.c, optabs.c: Revert last patch.
4379 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4382 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4384 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4386 * recog.h (insn_operand_data): Add an "allows_mem" field.
4387 * genoutput.c (output_operand_data): Initialize it.
4388 * optabs.c (maybe_legitimize_operand_same_code): New function.
4389 (maybe_legitimize_operand): Use it when matching the original
4392 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4394 * genpreds.c (process_define_predicate): Move most processing
4395 to gensupport.c. Continue to validate the expression.
4396 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4397 (process_define_predicate): Move processing to gensupport.c.
4398 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4399 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4400 (compute_predicate_codes): Moved from genrecog.c. Add lineno
4402 (valid_predicate_name_p): New function, split out from old
4403 genpreds.c:process_define_predicate.
4404 (process_define_predicate): New function, combining code from
4405 old genpreds.c and genrecog.c functions.
4406 (process_rtx): Call it for DEFINE_PREDICATE and
4407 DEFINE_SPECIAL_PREDICATE.
4409 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4411 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4412 size of a '%A' memory reference.
4413 (T_DREG, T_QREG): New neon_builtin_type_bits.
4414 (arm_init_neon_builtins): Assert that the load and store operands
4415 are neon_struct_operands.
4416 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4417 (NEON_ARG_MEMORY): New builtin_arg.
4418 (neon_dereference_pointer): New function.
4419 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4420 Handle NEON_ARG_MEMORY.
4421 (arm_expand_neon_builtin): Update after above interface changes.
4422 Use NEON_ARG_MEMORY for loads and stores.
4423 * config/arm/predicates.md (neon_struct_operand): New predicate.
4424 * config/arm/iterators.md (V_two_elem): Tweak formatting.
4425 (V_three_elem): Use BLKmode for accesses that have no associated mode.
4426 (V_four_elem): Tweak formatting.
4427 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4428 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4429 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4430 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4431 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4432 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4433 (neon_vst4<mode>): Replace pointer operand with a memory operand.
4434 Use %A in the output template.
4435 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4436 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4437 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4438 the width of the memory access. Remove post-increment.
4439 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4441 2011-04-12 Nick Clifton <nickc@redhat.com>
4443 * config/v850/v850.c (expand_prologue): Do not use the CALLT
4444 instruction for interrupt handlers if the target is the basic V850
4446 (expand_epilogue): Likewise.
4448 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4450 PR rtl-optimization/48549
4451 * combine.c (propagate_for_debug): Also stop after BB_END of
4452 this_basic_block. Process LAST and just stop processing after it.
4453 (combine_instructions): If last_combined_insn has been deleted,
4454 set last_combined_insn to its PREV_INSN.
4456 2011-04-12 Richard Guenther <rguenther@suse.de>
4458 PR tree-optimization/46076
4459 * gimple.h (struct gimple_statement_call): Add fntype field.
4460 (gimple_call_fntype): Adjust.
4461 (gimple_call_set_fntype): New function.
4462 * gimple.c (gimple_build_call_1): Set the call function type.
4463 * gimplify.c (gimplify_call_expr): Preserve the function
4464 type the frontend used for the call.
4465 (gimplify_modify_expr): Likewise.
4466 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4468 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4470 * tree-ssa.c (useless_type_conversion_p): Function pointer
4471 conversions are useless.
4473 2011-04-12 Martin Jambor <mjambor@suse.cz>
4475 * cgraph.h (cgraph_node): Remove function declaration.
4476 (cgraph_create_node): Declare.
4477 (cgraph_get_create_node): Likewise.
4478 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4479 Updated all callers.
4480 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4481 the decl does not already exist. Call cgraph_get_create_node instead
4483 (cgraph_get_create_node): New function.
4484 (cgraph_same_body_alias): Update comment.
4485 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4486 assert it does not return NULL.
4487 (cgraph_update_edges_for_call_stmt): Likewise.
4488 (cgraph_clone_edge): Likewise.
4489 (cgraph_create_virtual_clone): Likewise.
4490 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4491 instead of cgraph_node.
4492 (cgraph_add_new_function): Call cgraph_create_node or
4493 cgraph_get_create_node instead of cgraph_node.
4494 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4495 instead of cgraph_node.
4496 (record_eh_tables): Likewise.
4497 (mark_address): Likewise.
4498 (mark_load): Likewise.
4499 (build_cgraph_edges): Call cgraph_get_create_node instead
4501 (rebuild_cgraph_edges): Likewise.
4502 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4503 instead of cgraph_node.
4504 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4506 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4507 cgraph_create_node instead of cgraph_node.
4508 * c-decl.c (finish_function): Call cgraph_get_create_node instead
4510 * lto-cgraph.c (input_node): Likewise.
4511 * lto-streamer-in.c (input_function): Likewise.
4512 * varasm.c (mark_decl_referenced): Likewise.
4513 (assemble_alias): Likewise.
4515 2011-04-12 Martin Jambor <mjambor@suse.cz>
4517 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4518 instead of cgraph_node and assert it does not return NULL.
4519 * lto-streamer-in.c (lto_read_body): Likewise.
4520 * omp-low.c (new_omp_context): Likewise.
4521 (create_task_copyfn): Likewise.
4522 * tree-emutls.c (lower_emutls_function_body): Likewise.
4523 * matrix-reorg.c (transform_allocation_sites): Likewise.
4525 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4528 * c-typeck.c (build_asm_expr): Error out on attempts to use
4529 void type outputs or inputs for constraints that allow reg or
4532 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
4533 Richard Earnshaw <rearnsha@arm.com>
4536 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4537 to use sign-magnitude offsets. Reject unsupported unaligned
4538 cases. Add detailed description in comments.
4539 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4540 condition from TARGET_32BIT to TARGET_ARM.
4542 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
4544 * tree.h (struct typed_tree): New.
4545 (struct tree_common): Include it instead of tree_base.
4546 (TREE_TYPE): Update for new location of type field.
4547 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4548 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4549 (union tree_node): Add typed field.
4550 * treestruct.def (TS_TYPED): New.
4551 * lto-streamer.c (check_handled_ts_structures): Handle it.
4552 * tree.c (MARK_TS_TYPED): New macro.
4553 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4555 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
4557 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4558 (force_nonfallthru): Do not alter the loop nest if no basic block
4561 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4563 * config/i386/sse.md (VI): New mode iterator.
4565 (AVX256MODEI): Ditto.
4566 (AVXMODEF4P): Ditto.
4567 (avxvecpsmode): Ditto.
4568 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
4569 (sse2_andnot<mode>3): New expander.
4570 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4571 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
4572 (<any_logic:code><mode>3): Use VI mode iterator.
4573 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4574 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
4575 (*andnottf3): Handle AVX three-operand constraints.
4576 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4578 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4579 Robert Millan <rmh@gnu.org>
4581 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4582 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4583 GNU_USER_DYNAMIC_LINKER64): Define.
4584 (REG_NAME): Don't undefine.
4585 (MD_UNWIND_SUPPORT): Undefine.
4586 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4587 (REG_NAME): Don't undefine.
4588 (MD_UNWIND_SUPPORT): Undefine.
4589 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4591 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4593 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4594 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4596 2011-04-11 Xinliang David Li <davidxl@google.com>
4598 * value-profile.c (check_ic_target): New function.
4599 (gimple_ic_transform): Sanity check indirect call target.
4600 * gimple-low.c (gimple_check_call_args): Interface change.
4601 (gimple_check_call_matching_types): New function.
4602 * tree-inline.c (tree_can_inline_p): Call new function.
4604 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
4606 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4607 tree-pretty-print.h & realmpfr.h.
4609 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
4612 * ira.c (setup_pressure_classes): Fix typo in loop condition.
4613 (setup_allocno_and_important_classes): Ditto.
4615 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4617 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4618 GNU_USER_DYNAMIC_LINKER.
4619 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4620 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4621 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4622 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4623 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4624 GNU_USER_TARGET_OS_CPP_BUILTINS.
4625 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4626 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4627 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4628 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4629 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4630 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4631 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4632 GNU_USER_TARGET_OS_CPP_BUILTINS.
4633 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4634 GNU_USER_DYNAMIC_LINKER.
4635 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4636 GNU_USER_TARGET_OS_CPP_BUILTINS.
4637 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4638 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4639 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4640 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4641 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4642 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4643 GNU_USER_DYNAMIC_LINKER64): Remove.
4644 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4645 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4646 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4647 GNU_USER_DYNAMIC_LINKER.
4648 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4649 GNU_USER_TARGET_OS_CPP_BUILTINS.
4650 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4651 GNU_USER_TARGET_OS_CPP_BUILTINS.
4652 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4653 to GNU_USER_TARGET_OS_CPP_BUILTINS.
4654 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4655 GNU_USER_TARGET_OS_CPP_BUILTINS.
4656 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4657 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4658 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4659 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4660 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4661 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4662 GNU_USER_DYNAMIC_LINKER.
4663 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4664 GNU_USER_TARGET_OS_CPP_BUILTINS.
4665 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4666 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4667 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4668 GNU_USER_DYNAMIC_LINKER.
4669 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4670 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4671 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4672 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4673 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4674 GNU_USER_DYNAMIC_LINKER.
4675 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4676 GNU_USER_DYNAMIC_LINKERN32.
4677 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4678 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
4679 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
4680 GNU_USER_DYNAMIC_LINKER32.
4681 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4682 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4683 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4684 GNU_USER_DYNAMIC_LINKER.
4685 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4686 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4687 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4688 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4689 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4690 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4691 GNU_USER_DYNAMIC_LINKER32.
4692 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4693 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4694 GNU_USER_DYNAMIC_LINKER.
4695 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4696 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4697 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4698 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
4699 GNU_USER_DYNAMIC_LINKER64.
4700 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4701 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4702 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4703 GNU_USER_DYNAMIC_LINKER.
4704 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4705 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4706 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4707 GNU_USER_DYNAMIC_LINKER.
4708 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4709 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4710 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4711 GNU_USER_DYNAMIC_LINKER32.
4712 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4713 GNU_USER_DYNAMIC_LINKER64.
4714 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4715 GNU_USER_DYNAMIC_LINKER64.
4716 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4717 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4718 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4719 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4720 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4722 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4724 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
4725 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4726 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4727 GNU_USER_DYNAMIC_LINKER.
4728 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4729 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
4730 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4731 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4732 GNU_USER_DYNAMIC_LINKER64.
4733 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4734 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4735 GNU_USER_LINK_EMULATION.
4736 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4737 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4738 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4739 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4740 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4741 CPP_SPEC, CC1_SPEC): Remove.
4742 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4743 (GNU_USER_DYNAMIC_LINKER): Define.
4744 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4745 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4746 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4747 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4748 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4749 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4750 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4751 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4752 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4753 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4754 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4755 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4756 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4757 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4758 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4759 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4760 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4761 GNU_USER_DYNAMIC_LINKER.
4762 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4763 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4764 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4765 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4766 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4767 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4768 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4769 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4770 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4771 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4773 2011-04-11 Kai Tietz <ktietz@redhat.com>
4777 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4778 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4780 (ix86_is_msabi_thiscall): Removed.
4781 (ix86_is_type_thiscall): Likewise.
4782 (ix86_get_callcvt): New function.
4783 (ix86_comp_type_attributes): Simplify check.
4784 (ix86_function_regparm): Use ix86_get_callcvt for calling
4785 convention attribute checks.
4786 (ix86_return_pops_args): Likewise.
4787 (ix86_static_chain): Likewise.
4788 (x86_this_parameter): Likewise.
4789 (x86_output_mi_thunk): Likewise.
4790 (ix86_function_type_abi): Optimize check for types without attributes.
4791 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4792 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4793 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4795 (IX86_BASE_CALLCVT): Helper macro.
4796 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4797 Use ix86_get_callcvt for calling convention attribute checks and avoid
4798 symbol-decoration for stdcall in TARGET_RTD case.
4799 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4801 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4804 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4806 * config/i386/sse.md (VI_128): New mode iterator.
4807 (VI12_128): Rename from SSEMODE12.
4808 (VI14_128): Rename from SSEMODE14.
4809 (VI124_128): New mode iterator.
4810 (VI24_128): Rename from SSEMODE248.
4811 (VI248_128): Rename from SSEMODE248.
4812 (SSEMODE124C8): Remove.
4813 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4814 (*sse2_<plusminus_insn><mode>3): Merge with
4815 *avx_<plusminus_insn><mode>3.
4816 (*mulv8hi3): Merge with *avx_mulv8hi3.
4817 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4818 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4819 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4820 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4821 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4822 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4823 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4824 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4825 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4826 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4827 (*<smaxmin:code>v8hi3): Ditto.
4828 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4829 (*<smaxmin:code>v16qi3): Ditto.
4830 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4831 (*sse2_eq<mode>3): Ditto.
4832 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4833 (*sse2_gt<mode>3): Ditto.
4834 (vcondv2di): Split out of vcond<mode>.
4835 (vconduv2di): Split out of vcondu<mode>.
4837 2011-04-11 Richard Guenther <rguenther@suse.de>
4839 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4840 before calling tree_low_cst.
4842 2011-04-11 Richard Guenther <rguenther@suse.de>
4844 * stor-layout.c (layout_type): Compute all array index size operations
4845 in the original type.
4846 (initialize_sizetypes): Add comment.
4847 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4849 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4851 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4853 2011-04-11 Martin Jambor <mjambor@suse.cz>
4855 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4856 of cgraph_node, handle NULL return value.
4857 (cgraph_global_info): Likewise.
4858 (cgraph_rtl_info): Likewise.
4859 * tree-inline.c (estimate_num_insns): Likewise.
4860 * gimplify.c (unshare_body): Likewise.
4861 (unvisit_body): Likewise.
4862 (gimplify_body): Likewise.
4863 * predict.c (optimize_function_for_size_p): Likewise.
4864 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4865 (call_may_clobber_ref_p_1): Likewise.
4866 * varasm.c (function_section_1): Likewise.
4867 (assemble_start_function): Likewise.
4869 2011-04-11 Martin Jambor <mjambor@suse.cz>
4871 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4873 * final.c (rest_of_clean_state): Likewise.
4874 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4875 * passes.c (pass_init_dump_file): Likewise.
4876 (execute_all_ipa_transforms): Likewise.
4877 (function_called_by_processed_nodes_p): Likewise.
4878 * predict.c (maybe_hot_frequency_p): Likewise.
4879 (probably_never_executed_bb_p): Likewise.
4880 (compute_function_frequency): Likewise.
4881 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4882 (unnest_nesting_tree_1): Likewise.
4883 (lower_nested_functions): Likewise.
4884 * tree-optimize.c (execute_fixup_cfg): Likewise.
4885 (tree_rest_of_compilation): Likewise.
4886 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4887 * tree-sra.c (ipa_early_sra): Likewise.
4888 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4889 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4890 * ipa.c (record_cdtor_fn): Likewise.
4891 * ipa-inline.c (cgraph_early_inlining): Likewise.
4892 (compute_inline_parameters_for_current): Likewise.
4893 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4894 * ipa-pure-const.c (local_pure_const): Likewise.
4895 * ipa-split.c (split_function): Likewise.
4896 (execute_split_functions): Likewise.
4897 * cgraphbuild.c (build_cgraph_edges): Likewise.
4898 (rebuild_cgraph_edges): Likewise.
4899 (cgraph_rebuild_references): Likewise.
4900 (remove_cgraph_callee_edges): Likewise.
4901 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4902 (verify_cgraph_node): Likewise.
4903 (cgraph_analyze_functions): Likewise.
4904 (cgraph_preserve_function_body_p): Likewise.
4905 (save_inline_function_body): Likewise.
4906 (save_inline_function_body): Likewise.
4907 * tree-inline.c (copy_bb): Likewise.
4908 (optimize_inline_calls): Likewise.
4910 2011-04-11 Martin Jambor <mjambor@suse.cz>
4912 PR tree-optimization/48195
4913 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4914 ipa_check_create_edge_args.
4915 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4916 ipa_check_create_edge_args.
4917 * ipa-inline.c (inline_generate_summary): Do not call
4918 ipa_check_create_node_params and ipa_check_create_edge_args.
4919 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4920 ipa_check_create_edge_args.
4922 2011-04-09 Anatoly Sokolov <aesok@post.ru>
4924 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4926 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4927 * function.c (record_hard_reg_sets): Likewise.
4928 * ira.c (compute_regs_asm_clobbered): Likewise.
4929 * sched-deps.c (sched_analyze_1): Likewise.
4930 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4932 2011-04-09 Xinliang David Li <davidxl@google.com>
4934 PR tree-optimization/PR48484
4935 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4936 has_valid_pred lazily
4938 2011-04-09 Duncan Sands <baldrick@free.fr>
4940 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4942 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
4944 * combine.c (combine_validate_cost): Adjust comments. Set registered
4945 cost of I0 to zero at the end, if any.
4947 2011-04-08 Xinliang David Li <davidxl@google.com>
4949 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4950 to insane profile data.
4952 2011-04-08 Xinliang David Li <davidxl@google.com>
4954 * ipa-cp.c (ipcp_update_profiling): Correct
4955 negative scale factor due to insane profile data.
4957 2011-04-08 Xinliang David Li <davidxl@google.com>
4959 * final.c (dump_basic_block_info): New function.
4960 (final): Dump basic block.
4961 (final_scan_insn): Remove old dump.
4963 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
4966 * config.gcc (i386-*-freebsd): Disable unwind table generation for
4969 2011-04-08 Michael Matz <matz@suse.de>
4972 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4974 (rebuild_jump_labels): Call rebuild_jump_labels_1.
4975 * rtl.h (rebuild_jump_labels_chain): Declare.
4976 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4977 insns inserted on edges.
4979 2011-04-08 Joseph Myers <joseph@codesourcery.com>
4981 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4982 * config/arm/arm-arches.def: New.
4983 * config/arm/arm-opts.h: New.
4984 * config/arm/genopt.sh: New.
4985 * config/arm/arm-tables.opt: New (generated).
4986 * config/arm/arm.c (arm_handle_option, arm_target_help,
4987 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4988 (all_architectures): Get most table contents from arm-arches.def.
4989 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4990 arm_selected_tune here.
4991 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4992 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4993 (march=, mcpu=, mtune=): Use Enum and Var.
4994 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4995 (arm.o): Update dependencies.
4997 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
4999 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5001 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5002 (write_typed_alloc_defns): Likewise.
5003 (main): Calls write_typed_alloc_defns with output_header.
5005 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
5008 * ira-color.c (setup_profitable_hard_regs): Add comments.
5009 Don't take prohibited hard regs into account.
5010 (setup_conflict_profitable_regs): Rename to
5011 get_conflict_profitable_regs.
5012 (check_hard_reg_p): Check prohibited hard regs.
5014 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5016 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5017 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5018 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5020 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5023 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5024 move from floating point to shift amount register.
5025 (emit_move_sequence): Remove secondary reload support for floating
5026 point to shift amount amount register copies.
5027 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5028 amount register copies.
5029 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5030 register, return false if mode isn't a scalar integer mode.
5031 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5033 2011-04-08 Richard Guenther <rguenther@suse.de>
5035 * gimple.c (gimple_call_flags): Remove kludge.
5037 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5039 * sel-sched.c (sel_region_init): Move call to
5040 sel_setup_region_sched_flags after setup_current_loop_nest.
5042 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
5044 PR rtl-optimization/48272
5045 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5046 init_insn_reg_pressure_info. Adjust a caller.
5047 * sched-int.h (init_insn_reg_pressure_info): Declare.
5048 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5049 when sched-pressure is enabled.
5051 2011-04-08 Richard Guenther <rguenther@suse.de>
5053 * gimple.c (gimple_set_modified): Do not queue calls to
5054 MODIFIED_NORETURN_CALLS here ...
5055 * tree-ssa-operands.c (update_stmt_operands): ... but here.
5057 2011-04-08 Richard Guenther <rguenther@suse.de>
5060 * toplev.c (lang_dependent_init): Do not open asm_out_file
5061 in WPA mode, nor perform debug machinery initialization.
5062 (finalize): Do not unlink asm_out_file in WPA mode.
5064 2011-04-08 Richard Guenther <rguenther@suse.de>
5066 * gimple.h (gimple_call_fntype): New function.
5067 (gimple_call_return_type): Use it.
5068 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5069 * gimple-low.c (gimple_check_call_args): Likewise.
5070 * gimple.c (gimple_call_flags): Likewise.
5071 (gimple_call_arg_flags): Likewise.
5072 (gimple_call_return_flags): Likewise.
5073 * tree-cfg.c (verify_gimple_call): Likewise.
5074 (do_warn_unused_result): Likewise.
5075 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5076 * value-prof.c (gimple_ic_transform): Fix fndecl check.
5078 2011-04-08 Dmitry Melnik <dm@ispras.ru>
5080 PR rtl-optimization/48235
5081 * sel-sched.c (code_motion_process_successors): Recompute the last
5082 insn in basic block if control flow changed.
5083 (code_motion_path_driver): Ditto. Recompute the first insn as well.
5084 Update condition for ilist_remove.
5086 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5088 PR rtl-optimization/48302
5089 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5090 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
5091 it to record added preheader blocks.
5092 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
5093 on to sel_add_loop_preheaders.
5094 (sel_region_init): Move call to setup_current_loop_nest after
5097 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5100 * cfgloop.h (loop_has_exit_edges): New helper.
5101 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5103 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5104 that have no exit edges.
5106 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5108 PR rtl-optimization/48442
5109 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
5110 all callers. Adjust assert.
5112 2011-04-08 Jakub Jelinek <jakub@redhat.com>
5114 PR tree-optimization/48377
5115 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5116 is_packed to true even for types with smaller TYPE_ALIGN than
5119 2011-04-08 Richard Guenther <rguenther@suse.de>
5122 * doc/tm.texi: Re-generate.
5124 2011-04-08 Wei Guozhi <carrot@google.com>
5127 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5128 * config/arm/arm.c (arm_attr_length_push_multi): New function.
5129 * config/arm/arm.md (*push_multi): Change the length computation to
5132 2011-04-08 Anatoly Sokolov <aesok@post.ru>
5134 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5135 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5136 * doc/tm.texi: Regenerate.
5137 * system.h (ASM_OUTPUT_BSS): Poison.
5138 * varasm.c (asm_output_bss): Remove function.
5139 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5141 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5142 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5143 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5144 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5146 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5148 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5150 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5152 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5154 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5157 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5159 * config/m68k/m68k.c (m68k_handle_option): Don't handle
5160 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5161 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5163 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5164 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5165 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5166 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5167 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5168 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5169 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5170 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5171 options. Don't map other m68k options manually. Don't handle
5172 old-style options as canonical.
5173 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5174 * doc/install.texi (m68k-*-*): Document binutils version requirement.
5176 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
5178 * basic-block.h (force_nonfallthru): Move to...
5179 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5180 (force_nonfallthru): ...here.
5181 * cfghooks.c (force_nonfallthru): New function.
5182 * cfgrtl.c (force_nonfallthru): Rename into...
5183 (rtl_force_nonfallthru): ...this.
5184 (commit_one_edge_insertion): Do not set AUX field.
5185 (commit_edge_insertions): Do not discover new basic blocks.
5186 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5187 (cfg_layout_rtl_cfg_hooks): Likewise.
5188 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5189 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
5190 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5192 2011-04-07 Anatoly Sokolov <aesok@post.ru>
5194 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5197 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
5199 * config/i386/sse.md: Update copyright year.
5200 (avxcvtvecmode): Remove.
5201 (sse_movhlps): Merge with *avx_movhlps.
5202 (sse_movlhps): Merge with *avx_movlhps.
5203 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5204 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5205 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5206 (sse_loadhps): Merge with *avx_loadhps.
5207 (sse_storelps): Merge with *avx_storelps.
5208 (sse_loadlps): Merge with *avx_loadlps.
5209 (sse_movss): Merge with *avx_movss.
5210 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5211 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5212 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5213 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5214 (vec_set<mode>_0): Ditto.
5215 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5216 (sse4_1_insertps): Merge with *avx_insertps.
5217 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5218 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5219 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5220 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5221 (sse2_storehpd): Merge with *avx_storehpd.
5222 (sse2_loadhpd): Merge with *avx_loadhpd.
5223 (sse2_loadlpd): Merge with *avx_loadlpd.
5224 (sse2_movsd): Merge with *avx_movsd.
5225 (*vec_concatv2df): Merge with *vec_concatv2df.
5227 2011-04-07 Jakub Jelinek <jakub@redhat.com>
5230 * combine.c (combine_instructions): Add last_combined_insn,
5231 update it if insn is after it, pass it to all try_combine calls.
5232 (try_combine): Add last_combined_insn parameter, pass it instead of
5233 i3 to propagate_for_debug.
5235 2011-04-07 Nick Clifton <nickc@redhat.com>
5237 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5238 to handle MDR <-> data register transfers.
5239 (movhi_internal): Likewise.
5241 2011-04-07 Alan Modra <amodra@gmail.com>
5243 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5244 previous stack info.
5246 2011-04-07 Tom de Vries <tom@codesourcery.com>
5249 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
5250 flow_find_cross_jump. Swap variables to implement backward replacement.
5251 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5253 2011-04-07 Tom de Vries <tom@codesourcery.com>
5256 * cfgcleanup.c (walk_to_nondebug_insn): New function.
5257 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
5259 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5260 src1 or src2. Redirect edges to the last basic block. Update
5261 frequency and count on multiple basic blocks in case of fallthru.
5263 2011-04-07 Tom de Vries <tom@codesourcery.com>
5266 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5268 (old_insns_match_p): Change return type. Replace return false/true
5269 with return dir_none/dir_both. Use can_replace_by.
5270 (flow_find_cross_jump): Add dir_p parameter. Init replacement
5271 direction from dir_p. Register replacement direction in dir, last_dir
5272 and afterlast_dir. Handle new return type of old_insns_match_p using
5273 merge_dir. Return replacement direction in dir_p.
5274 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5275 return type of old_insns_match_p.
5276 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5277 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5278 flow_find_cross_jump.
5279 * basic-block.h (enum replace_direction): New type.
5280 (flow_find_cross_jump): Add parameter to declaration.
5282 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5284 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5285 (AVXMODEDCVTPS2DQ): Ditto.
5286 (VEC_FLOAT_MODE): Ditto.
5287 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
5288 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5289 (<any_logic:code><mode>3): Use VF mode iterator.
5290 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5291 Use VF mode iterator.
5292 (copysign<mode>3): Use VF mode iterator.
5293 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
5294 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5295 (*<any_logic:code><MODEF:mode>3): Merge with
5296 *avx_<any_logic:code><MODEF:mode>3.
5297 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5298 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5299 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5300 (avx_cvtdq2ps<avxmodesuffix>): Remove.
5301 (sse2_cvtdq2ps): Use %v modifier.
5302 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5303 (avx_cvtps2dq<avxmodesuffix>): Remove.
5304 (sse2_cvtps2dq): Use %v modifier.
5305 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5306 (avx_cvttps2dq<avxmodesuffix>): Remove.
5307 (sse2_cvttps2dq): Use %v modifier.
5308 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5309 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5310 (sse2_cvtsd2siq): Fix insn template.
5311 (sse2_cvtsd2siq_2): Ditto.
5312 (sse2_cvttsd2siq): Ditto.
5313 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5314 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5316 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5318 * gcov-io.c: Use GCC Runtime Library Exception.
5320 2011-04-06 Jakub Jelinek <jakub@redhat.com>
5323 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5324 as base_reg whatever register reg has been eliminated to, instead
5325 of hardcoding STACK_POINTER_REGNUM.
5327 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5329 * doc/tm.texi.in: Document C target hooks as separate from general
5331 * doc/tm.texi: Regenerate.
5332 * genhooks.c (struct hook_desc): Add docname field.
5333 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
5335 (hook_array): Include c-target.def.
5336 (emit_documentation): Use docname field in output.
5337 (emit_init_macros): Take docname argument. Only emit definitions
5338 for hooks matching docname.
5339 (main): Expect additional arguments in all cases. Pass argument
5340 to emit_init_macros.
5341 * target.def: Move initial macro definitions and comments to
5342 target-hooks-macros.h.
5343 (gcc_targetcm): Move to c-family/c-target.def.
5344 * target.h (targetcm): Move declaration to c-family/c-target.h.
5345 * targhooks.c (default_handle_c_option): Move to
5347 * targhooks.h (default_handle_c_option): Move declaration to
5348 c-family/c-common.h.
5349 * target-hooks-macros.h: New file.
5350 * config.gcc (target_has_targetcm): Define and use to add to
5351 c_target_objs and cxx_target_objs.
5352 * config/default-c.c: New file.
5353 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5354 of target.h and target-def.h.
5355 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5356 (darwin_objc_construct_string, darwin_cfstring_ref_p,
5357 darwin_check_cfstring_format_arg): Make static.
5358 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5359 TARGET_STRING_OBJECT_REF_TYPE_P,
5360 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5361 * config/darwin-protos.h (darwin_objc_construct_string,
5362 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5364 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5365 TARGET_STRING_OBJECT_REF_TYPE_P,
5366 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5367 * config/t-darwin (darwin-c.o): Update dependencies.
5368 * system.h (TARGET_HAS_TARGETCM): Poison.
5369 * Makefile.in (TARGET_H): Update.
5370 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5371 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5372 (default-c.o): New target.
5373 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5374 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5375 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
5377 (build/genhooks.o): Update dependencies.
5379 2011-04-06 Richard Guenther <rguenther@suse.de>
5381 * ipa-inline.c (enum inlining_mode): Remove.
5382 (cgraph_flatten): Use some other token.
5383 (cgraph_edge_early_inlinable_p): New function, split out from ...
5384 (cgraph_perform_always_inlining): New function, split out from ...
5385 (cgraph_decide_inlining_incrementally): ... here.
5386 (cgraph_mark_inline_edge): Adjust.
5387 (cgraph_early_inlining): Re-structure.
5388 (pass_early_inline): Require SSA form.
5390 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
5391 Julian Brown <julian@codesourcery.com>
5392 Mark Shinwell <shinwell@codesourcery.com>
5394 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5395 LO_REGS only for Thumb-1.
5396 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5397 be used in short instructions when optimising for size on Thumb-2.
5399 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5401 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5402 associated with user returns to be preserved.
5404 2011-04-06 Tristan Gingold <gingold@adacore.com>
5406 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5407 symbol_queue_size, DBXOUT_DECR_NESTING,
5408 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5409 if XCOFF_DEBUGGING_INFO.
5411 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5413 * config/i386/i386.md (attribute isa): New.
5414 (attribute enabled): New.
5415 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5416 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5417 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5418 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5419 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5420 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5421 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5422 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5424 * config/i386/sse.md (VF): New mode iterator.
5428 (SSEMODEF4): Remove.
5429 (attribute sse): Handle V8SF and V4DF modes.
5430 (<absneg:code><mode>2): Use VF mode iterator.
5431 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
5433 (<plusminus_insn><mode>3): Use VF mode iterator.
5434 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5435 Use VF mode iterator.
5436 (<sse>_vm<plusminus_insn><mode>3): Merge with
5437 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
5438 (mul<mode>3): Use VF mode iterator.
5439 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
5440 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
5442 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5443 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5444 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
5445 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
5447 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5448 Use VF1 mode iterator.
5449 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5450 (sqrt<VF2:mode>2): New expander.
5451 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5452 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5453 and sqrtv2df2. Use VF mode iterator.
5454 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
5456 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5457 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5458 Use VF1 mode iterator.
5459 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5460 (<smaxmin:code><mode>3): Use VF mode iterator.
5461 (*<smaxmin:code><mode>3_finite): Merge with
5462 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
5463 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5464 (<sse>_vm<smaxmin:code><mode>2): Merge with
5465 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
5466 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
5468 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
5470 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5471 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5472 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5473 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5474 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
5476 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5477 Use VF_128 mode iterator.
5478 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
5480 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
5481 VF_128 mode iterator.
5482 (vcond<mode>): Use VF mode iterator.
5483 * config/i386/predicates.md (sse_comparison_operator): Merge with
5484 avx_comparison_float_operator. Do not declare as special_predicate.
5485 * config/i386/i386.c (struct builtin_description): Update for renamed
5487 (ix86_expand_args_builtin): Ditto.
5488 (ix86_expand_sse_compare_mask): Ditto.
5490 2011-04-06 Richard Guenther <rguenther@suse.de>
5492 * tree-inline.c (estimate_num_insns): For calls simply account
5493 for all passed arguments and a used return value.
5495 2011-04-06 Richard Guenther <rguenther@suse.de>
5497 PR tree-optimization/47663
5498 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5499 call_stmt_time fields.
5500 (cgraph_edge_inlinable_p): Declare.
5501 (cgraph_edge_recursive_p): New inline function.
5502 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5503 (cgraph_clone_edge): Copy it.
5504 * ipa-inline.c (cgraph_estimate_edge_time): New function.
5505 Account for call stmt time.
5506 (cgraph_estimate_time_after_inlining): Take edge argument.
5507 (cgraph_estimate_edge_growth): Account call stmt size.
5508 (cgraph_estimate_size_after_inlining): Take edge argument.
5509 (cgraph_mark_inline_edge): Adjust.
5510 (cgraph_check_inline_limits): Likewise.
5511 (cgraph_recursive_inlining_p): Remove.
5512 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5513 (cgraph_decide_recursive_inlining): Take edge argument and
5515 (cgraph_decide_inlining_of_small_functions): Do not avoid
5516 diags for recursive inlining here.
5517 (cgraph_flatten): Adjust.
5518 (cgraph_decide_inlining_incrementally): Likewise.
5519 (estimate_function_body_sizes): Remove call cost handling.
5520 (compute_inline_parameters): Initialize caller edge call costs.
5521 (cgraph_estimate_edge_growth): New function.
5522 (cgraph_estimate_growth): Use it.
5523 (cgraph_edge_badness): Likewise.
5524 (cgraph_check_inline_limits): Take an edge argument.
5525 (cgraph_decide_inlining_of_small_functions): Adjust.
5526 (cgraph_decide_inlining): Likewise.
5527 * tree-inline.c (estimate_num_insns): Only account for call
5528 return value if it is used.
5529 (expand_call_inline): Avoid diagnostics on recursive inline
5531 * lto-cgraph.c (lto_output_edge): Output edge call costs.
5532 (input_edge): Input edge call costs.
5534 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5536 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5538 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5540 * doc/invoke.texi (Spec Files): Fix typo.
5542 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5544 * profile.c (branch_prob): Move declaration of local variable. Remove
5545 obsolete ??? comment. Expand the location explicitly instead of using
5546 the LOCATION_FILE and LOCATION_LINE macros.
5548 2011-04-06 Wei Guozhi <carrot@google.com>
5551 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5552 (arm_cond_branch): Likewise.
5553 (arm_cond_branch_reversed): Likewise.
5554 (arm_jump): Likewise.
5555 (push_multi): Likewise.
5556 * config/arm/constraints.md (Py): New constraint.
5558 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5561 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5563 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5564 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5565 #ifdef DBX_DEBUGGING_INFO.
5567 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
5570 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5571 if old and new states differ.
5573 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5575 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5576 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5577 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5578 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5579 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5581 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5582 ColdFire options to -mcpu= options.
5584 2011-04-05 Jeff Law <law@redhat.com>
5586 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5587 check if BB is a successor of LOOP->header and return
5588 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5590 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5592 * cprop.c (struct reg_use): Remove.
5593 (reg_use_table): Make an array of RTX.
5594 (find_used_regs, constprop_register, local_cprop_pass,
5595 bypass_block): Simplify users of reg_use_table.
5596 (cprop_insn): Likewise. Iterate if copy propagation succeeded
5597 on one of the uses found by find_used_regs.
5599 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5602 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5605 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5607 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5609 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5611 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5614 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5616 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5618 * combine.c: Include obstack.h.
5619 (struct insn_link): Define.
5620 (uid_log_links): Adjust type.
5621 (FOR_EACH_LOG_LINK): New macro.
5622 (insn_link_obstack): Declare.
5623 (alloc_insn_link): Define.
5624 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
5625 type of link variables.
5626 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5627 (try_combine, record_promoted_values, distribute_notes): Likewise.
5628 (distribute_links): Likewise. Tweak prototype.
5629 (clear_log_links): Delete.
5630 (adjust_for_new_dest): Call alloc_insn_link.
5631 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5633 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5635 * gcse.c (modify_mem_list): Convert to an array of VECs.
5636 (canon_modify_mem_list, compute_transp): Tweak formatting.
5637 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
5638 (load_killed_in_block_p): Likewise.
5639 (record_last_mem_set_info): Likewise.
5640 (clear_modify_mem_tables): Likewise.
5642 2011-04-05 Tom de Vries <tom@codesourcery.com>
5645 * function.c (emit_use_return_register_into_block): Only define if
5648 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
5650 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5652 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5654 * config/rx/rx-opts.h: New.
5655 * config/rx/rx.c (rx_cpu_type): Remove.
5656 (rx_handle_option): Don't assert that global structures are in
5657 use. Access variables via opts pointer. Defer most handling of
5658 OPT_mint_register_. Use error_at.
5659 (rx_option_override): Handle deferred OPT_mint_register_ here.
5660 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5661 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5662 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5663 (rx_cpu_types): New Enum and EnumValue entries.
5664 (mint-register=): Use Defer and use Var accordingly.
5666 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5668 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5669 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5670 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5672 (debug_free_queue, debug_nesting, symbol_queue_index):
5674 * dbxout.c: ...to here. Make static.
5676 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5678 * gcse.c (modify_pair): Define. Define a VEC of it.
5679 (canon_modify_mem_list): Convert to an array of VECs.
5680 (free_insn_expr_list_list): Delete.
5681 (clear_modify_mem_tables): Call VEC_free instead.
5682 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5683 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5684 (canon_list_insert, compute_transp): Likewise.
5686 2011-04-05 Tom de Vries <tom@codesourcery.com>
5689 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5692 2011-04-05 Tom de Vries <tom@codesourcery.com>
5695 * function.c (emit_use_return_register_into_block): New function.
5696 (thread_prologue_and_epilogue_insns): Use
5697 emit_use_return_register_into_block.
5699 2011-04-05 Tom de Vries <tom@codesourcery.com>
5702 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5705 2011-04-05 Tom de Vries <tom@codesourcery.com>
5707 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5709 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
5711 * config/arm/arm.md (define_constants for unspec): Replace with
5713 (define_constants for unspecv): Replace with define_c_enum.
5714 * config/arm/neon.md (define_constants for unspec): Replace with
5717 2011-04-04 Richard Henderson <rth@redhat.com>
5720 * dwarf2out.c (output_line_info): Always emit line info from
5721 at least one section.
5722 (dwarf2out_init): Create text_section_line_info here ...
5723 (set_cur_line_info_table): ... not here.
5725 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
5728 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5731 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5733 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
5735 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5736 (expr_equiv_p): Remove.
5737 (insert_set_in_table): Look at <dest, src> pair instead of expr.
5738 (hash_scan_set): Update call to insert_set_in_table.
5739 (dump_hash_table): Dump <dest, src> pair.
5740 (lookup_set): Simplify. Lookup <dest, src> pair.
5741 (compute_transp): Remove, fold heavily simplified code into...
5742 (compute_local_properties): ...here. Expect COMP and TRANSP
5744 (find_avail_set): Take set directly from struct expr.
5745 (find_bypass-set): Likewise.
5746 (bypass_block): Likewise.
5747 (cprop_insn): Likewise. Remove redundant INSN_P test.
5749 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5750 checks on form of COND from find_implicit_sets to here.
5751 (find_implicit_sets): Cleanup control flow. Split critical edges
5752 if it exposes implicit sets. Allocate/resize implicit_sets as
5754 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5755 changed something. Run df_analyze after find_implicit_sets if any
5756 edges were split. Do not allocate implicit_sets here.
5758 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5759 (gcse_obstack): Renamed to cprop_obstack.
5760 (GNEW, GNEWVEC, GNEWVAR): Remove.
5762 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5763 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5764 (gcse_alloc): Likewise, and rename to cprop_alloc.
5765 (alloc_gcse_men, free_gcse_mem): Remove.
5766 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5767 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5768 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5770 * cprop.c (oprs_not_set_p): Remove.
5771 (mark_set, mark_clobber): Remove.
5772 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5773 (reg_not_set_p): New function.
5774 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5775 (cprop_insn): Likewise.
5776 (cprop_jump): Use FOR_EACH_EDGE.
5778 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
5781 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5782 (rank_for_schedule): Use scheduled_insns vector instead of
5783 last_scheduled_insn.
5784 (ok_for_early_queue_removal): Likewise.
5785 (queue_to_ready): Search forward in nonscheduled_insns_begin if
5787 (choose_ready): Likewise.
5788 (commit_schedule): Use VEC_iterate.
5789 (schedule_block): Initialize nonscheduled_insns_begin. If we have
5790 a dbg_cnt, use it and ensure the first insn is in the ready list.
5791 (haifa_sched_init): Allocate scheduled_insns.
5792 (sched_extend_ready_list): Don't allocate it; reserve space.
5793 (haifa_sched_finish): Free it.
5795 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5797 * optc-gen.awk: Always remove type from Variable entry before
5798 recording in var_seen.
5800 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
5802 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5803 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5804 call to tidy_fallthru_edges.
5806 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5808 * doc/options.texi (ToLower): Document.
5809 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5810 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5811 * opts.h (cl_option): Add cl_tolower field.
5812 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5813 arguments with lowercase strings.
5814 * config/rx/rx.opt (mcpu=): Add ToLower.
5815 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5818 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5820 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5822 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5824 * config/vax/vax.c: Include reload.h.
5826 2011-04-04 Anatoly Sokolov <aesok@post.ru>
5828 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5829 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5830 (sparc_preferred_reload_class): New function.
5832 2011-04-04 Jakub Jelinek <jakub@redhat.com>
5835 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5836 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5838 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5840 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5841 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5843 2011-04-03 Anatoly Sokolov <aesok@post.ru>
5845 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5846 (ASM_OUTPUT_ALIGNED_BSS): Define.
5848 2011-04-03 Michael Matz <matz@suse.de>
5850 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5851 and next_slot members.
5852 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5853 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5854 (lto_streamer_cache_append): Declare.
5855 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5856 unsigned index, remove offset parameter, ensure that we append
5857 or update existing entries.
5858 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5859 parameter, update next_slot for append.
5860 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5862 (lto_streamer_cache_insert_at): Likewise.
5863 (lto_streamer_cache_append): New function.
5864 (lto_streamer_cache_lookup): Use unsigned index.
5865 (lto_streamer_cache_get): Likewise.
5866 (lto_record_common_node): Don't test tree_node_can_be_shared.
5867 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5868 (lto_streamer_cache_delete): Don't free offsets member.
5869 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5870 (lto_output_string_with_length): Use lto_output_data_stream.
5871 (lto_output_tree_header): Remove ix parameter, don't write it.
5872 (lto_output_builtin_tree): Likewise.
5873 (lto_write_tree): Adjust callers to above, don't track and write
5874 offset, write unsigned index.
5875 (output_unreferenced_globals): Don't emit all global vars.
5876 (write_global_references): Use unsigned indices.
5877 (lto_output_decl_state_refs): Likewise.
5878 (write_symbol): Likewise.
5879 * lto-streamer-in.c (lto_input_chain): Move earlier.
5880 (input_function): Use unsigned index.
5881 (input_alias_pairs): Don't read and then ignore all global vars.
5882 (lto_materialize_tree): Remove ix_p parameter, don't read index,
5883 don't pass it back, use lto_streamer_cache_append.
5884 (lto_register_var_decl_in_symtab): Use unsigned index.
5885 (lto_register_function_decl_in_symtab): Likewise.
5886 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5888 (lto_get_builtin_tree): Don't read index, use
5889 lto_streamer_cache_append.
5890 (lto_read_tree): Adjust call to lto_materialize_tree.
5892 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5893 don't use function calls in arguments to MIN.
5895 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5898 * gimple.c (gimple_type_leader_entry): Mark deletable.
5900 2011-04-03 Alan Modra <amodra@gmail.com>
5902 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5904 2011-04-03 Michael Matz <matz@suse.de>
5906 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5908 * tree.h (tree_decl_non_common.vindex): Adjust comment.
5910 2011-04-03 Michael Matz <matz@suse.de>
5912 * cgraphbuild.c (record_reference): Canonicalize constructor values.
5913 * gimple-fold.c (canonicalize_constructor_val): Accept being called
5914 without function context.
5915 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5916 current_function_decl and cfun.
5918 2011-04-03 Michael Matz <matz@suse.de>
5920 * tree.c (decl_init_priority_insert): Don't create entry for
5922 (decl_fini_priority_insert): Ditto.
5923 (fields_compatible_p, find_compatible_field): Remove.
5924 * tree.h (fields_compatible_p, find_compatible_field): Remove.
5925 * gimple.c (gimple_compare_field_offset): Adjust block comment.
5927 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
5929 * combine.c (try_combine): Remove useless local variable.
5931 2011-04-03 Richard Guenther <rguenther@suse.de>
5932 Ira Rosen <ira.rosen@linaro.org>
5934 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5935 non-variable offsets and compare the remaining bases of the two
5936 accesses instead of looking for exact same data-ref.
5938 2011-04-02 Kai Tietz <ktietz@redhat.com>
5941 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5943 * i386.c (ix86_is_msabi_thiscall): New helper function.
5944 (ix86_is_type_thiscall): New helper function.
5945 (ix86_comp_type_attributes): Handle thiscall for method-functions
5947 (init_cumulative_args): Likewise.
5948 (find_drap_reg): Likewise.
5949 (ix86_static_chain): Likewise.
5950 (x86_this_parameter): Likewise.
5951 (x86_output_mi_thunk): Likewise.
5953 2011-04-01 Olivier Hainque <hainque@adacore.com>
5954 Nicolas Setton <setton@adacore.com>
5955 Eric Botcazou <ebotcazou@adacore.com>
5957 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5958 (add_gnat_descriptive_type_attribute): New function.
5959 (gen_array_type_die): Call it.
5960 (gen_enumeration_type_die): Likewise.
5961 (gen_struct_or_union_type_die): Likewise.
5962 (modified_type_die): Likewise.
5963 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5964 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5965 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5967 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5970 * dwarf2out.c (resolve_addr): Don't call force_decl_die
5971 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5974 2011-03-17 Richard Guenther <rguenther@suse.de>
5977 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5978 origin for decls in other ltrans units.
5979 (input_varpool_node): Likewise.
5981 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5984 * expr.c (expand_assignment): Handle all possibilities
5985 if TO_RTX is CONCAT.
5986 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5987 (store_split_bit_field): If SUBREG_REG (op0) or
5988 op0 itself has smaller mode than word, return it
5989 for offset 0 and const0_rtx for out-of-bounds stores.
5990 If word is const0_rtx, skip it.
5992 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
5994 * config/h8300/h8300.c (print_operand_address): Rename to...
5995 (h8300_print_operand_address): ...this. Make static. Adjust comments.
5996 Call h8300_print_operand and h8300_print_operand_address instead of
5997 print_operand and print_operand_address. Declare.
5998 (print_operand): Renake to...
5999 (h8300_print_operand): ...this. Make static. Adjust comments.
6000 Call h8300_print_operand instead of print_operand. Declare.
6001 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6002 (h8300_register_move_cost): Likewise.
6003 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6004 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6005 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6006 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6007 * config/h8300/h8300-protos.h (print_operand): Delete.
6008 (print_operand_address): Delete.
6010 2011-04-01 Richard Henderson <rth@redhat.com>
6013 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6014 in strict mode before dwarf4. Re-order tests to early out
6015 before switching sections.
6017 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
6019 * config/h8300/constraints.md: New file.
6020 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
6021 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6022 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6023 * config/h8300/predicates.md (bit_operand): Likewise.
6024 (incdec_operand): Use satisfies_constraint_M and
6025 satisfies_constraint_O. Don't use C code block.
6026 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6027 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6028 (compute_mov_length): Use satisfies_constraint_G.
6029 (fix_bit_operand): Use satisfies_constraint_U.
6030 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6031 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6032 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6033 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6034 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6035 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6036 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6037 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6038 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6039 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6040 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6041 (EXTRA_MEMORY_CONSTRAINT): Delete.
6043 2011-04-01 Andrew Pinski <pinskia@gmail.com>
6044 Michael Meissner <meissner@linux.vnet.ibm.com>
6047 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6048 operands, as per the specifications.
6050 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6051 (vec_extract_evenv4sf): Ditto.
6052 (vec_extract_evenv8hi): Ditto.
6053 (vec_extract_evenv16qi): Ditto.
6054 (vec_extract_oddv4si): Ditto.
6056 2011-03-31 Mark Wielaard <mjw@redhat.com>
6058 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6059 high_pc attribute if the CU has no associated code. Only output
6060 DW_AT_entry_pc for CU if not generating strict dwarf and
6063 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
6065 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6066 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6068 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6069 * final.c (final_start_function): Call the new function rather
6070 than using a NULL argument for dwarf2out_frame_debug.
6072 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6073 that contains the prologue.
6075 * haifa-sched.c (queue_insn): New arg REASON. All callers
6076 changed. Print it in debugging output.
6078 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6080 * sched-ebb.c (begin_schedule_ready): Remove second argument.
6081 Split most of the code into...
6082 (begin_move_insn): ... here. New function.
6083 (ebb_sched_info): Add a pointer to it.
6084 * haifa-sched.c (scheduled_insns): New static variable.
6085 (sched_extend_ready_list): Allocate it.
6086 (schedule_block): Use it to record the order of scheduled insns.
6087 Perform RTL changes to move insns only after all scheduling
6088 decisions have been made.
6089 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6090 begin_move_insn field.
6091 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6092 * sched-int.h (struct haifa_sched_info): Remove second argument
6093 from begin_schedule_ready hook. Add new member begin_move_insn.
6094 * sched-rgn.c (begin_schedule_ready): Remove second argument.
6095 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6097 * haifa-sched.c (prune_ready_list): New function, broken out of
6099 (schedule_block): Use it.
6101 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6103 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6105 2011-04-01 Kai Tietz <ktietz@redhat.com>
6107 * config.gcc (*-*-mingw*): Allow as option the
6108 posix threading model.
6109 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
6110 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6112 (CPP_SPEC): Add pthread/no-pthread handling.
6113 (LIB_SPEC): Likewise.
6114 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6115 (LIB_SPEC): Likewise.
6116 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6117 flag to pass -pthread option for shared libgcc build.
6118 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6119 for shared libgcc build.
6120 * config/i386/t-mingw-pthread: New file.
6121 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6122 New define to enable use of library pthread by default.
6123 * config/i386/mingw.opt (pthread): New driver option.
6124 (no-pthread): New driver option.
6125 * config/i386/cygming.opt: Make sure trailing empty line is retained.
6126 * config/i386/mingw-w64.opt: Likewise.
6128 2011-04-01 Gary Funck <gary@intrepid.com>
6130 * c-decl.c (grokdeclarator): Fix formatting.
6132 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6134 * expr.c (emit_block_move_via_movmem): Use n_generator_args
6135 instead of n_operands.
6136 (set_storage_via_setmem): Likewise.
6137 * optabs.c (maybe_gen_insn): Likewise.
6138 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6139 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6140 (mips_expand_builtin_direct): Likewise.
6141 * config/spu/spu.c (expand_builtin_args): Likewise.
6143 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6145 * recog.h (insn_data_d): Add n_generator_args.
6146 * genoutput.c (data): Likewise.
6147 (output_insn_data): Print it.
6148 (max_opno, num_dups): Delete.
6149 (scan_operands): Just fill in "d->operand[...]".
6150 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6152 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6154 * gensupport.h (pattern_stats): New structure.
6155 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6156 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6157 (max_operand_1, max_operand_vec): Delete.
6158 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6160 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
6162 * emit-rtl.c (emit_pattern_after_setloc): New function.
6163 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6164 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6165 (emit_pattern_after): New function.
6166 (emit_insn_after, emit_jump_insn_after): Call it.
6167 (emit_call_insn_after, emit_debug_insn_after): Likewise.
6168 (emit_pattern_before_setloc): New function.
6169 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6170 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6172 (emit_pattern_before): New function.
6173 (emit_insn_before, emit_jump_insn_before): Call it.
6174 (emit_call_insn_before, emit_debug_insn_before): Likewise.
6176 2011-03-31 Richard Henderson <rth@redhat.com>
6178 * dwarf2out.c (dw_separate_line_info_ref): Remove.
6179 (dw_separate_line_info_entry): Remove.
6180 (enum dw_line_info_opcode): New.
6181 (dw_line_info_entry): Use it.
6182 (dw_line_info_table, dw_line_info_table_p): New.
6183 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6184 (line_info_table, line_info_label_num): Remove.
6185 (line_info_table_in_use): Remove.
6186 (separate_line_info_table): Remove.
6187 (separate_line_info_table_allocated): Remove.
6188 (separate_line_info_table_in_use): Remove.
6189 (LINE_INFO_TABLE_INCREMENT): Remove.
6190 (line_info_label_num): New.
6191 (cur_line_info_table): New.
6192 (text_section_line_info, cold_text_section_line_info): New.
6193 (separate_line_info): New.
6194 (SEPARATE_LINE_CODE_LABEL): Remove.
6195 (print_dwarf_line_table): Remove.
6196 (debug_dwarf): Don't dump it.
6197 (output_one_line_info_table): New.
6198 (output_line_info): Use it.
6199 (new_line_info_table): New.
6200 (set_cur_line_info_table): New.
6201 (dwarf2out_switch_text_section): Use it.
6202 (dwarf2out_begin_function): Likewise.
6203 (push_dw_line_info_entry): New.
6204 (dwarf2out_source_line): Rewrite for new line info tables.
6205 (dwarf2out_init): Remove dead initailizations.
6207 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6209 * opts.h (cl_option): Add comments to fields. Add bit-fields for
6211 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6212 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6213 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6214 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6215 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6216 * opt-functions.awk (flag_init, switch_bit_fields): New.
6217 (switch_flags): Don't handle flags moved to bit-fields. Don't
6218 generate CL_MISSING_OK or CL_SAVE.
6219 * optc-gen.awk: Update to generate bit-field output as well as
6221 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6222 bit-field instead of CL_REJECT_DRIVER flag.
6223 * opts-common.c (generate_canonical_option,
6224 decode_cmdline_option): Use bit-fields instead of CL_* flags.
6225 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6226 instead of CL_REJECT_NEGATIVE flag.
6227 * toplev.c (print_switch_values): Use cl_report bit-field instead
6230 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6232 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6233 a zero minimum index only if it is redundant.
6235 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
6237 PR rtl-optimization/48381
6238 * ira-color.c (assign_hard_reg): Use hard reg set intersection
6239 instead of ira_class_hard_reg_index for calculating conflicting
6242 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
6244 * cprop.c: Clean up hash table building.
6245 (reg_avail_info): Remove.
6246 (oprs_available_p): Remove.
6247 (record_last_reg_set_info): Remove.
6248 (record_last_set_info): Remove.
6249 (reg_available_p): New function.
6250 (gcse_constant_p): Do not treat unfolded conditions as constants.
6251 (make_set_regs_unavailable): New function.
6252 (hash_scan_set): Simplify with new reg_available_p.
6253 (compute_hash_table_work): Traverse insns stream only once.
6254 Do not compute reg_avail_info. Traverse insns in reverse order.
6255 Record implicit sets after recording explicit sets from the block.
6257 2011-03-31 Michael Matz <matz@suse.de>
6259 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6261 2011-03-31 Anatoly Sokolov <aesok@post.ru>
6263 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6264 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6265 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6266 (h8300_mode_dependent_address_p): New function.
6267 (h8300_get_index): Make static.
6269 2011-03-31 Jeff Law <law@redhat.com>
6271 * reload1.c (elimination_effects): Fix typo in recent change.
6273 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6274 typo potentially leading to null pointer dereference.
6276 * caller-save.c (new_saved_hard_reg): Eliminate return value.
6277 (setup_save_areas): Corresponding changes to avoid useless
6280 * jump.c (reversed_comparison_code_parts): Avoid successive return
6281 statements when REVERSE_CONDITION is defined.
6283 * expr.c (expand_assignment): Avoid useless assignments.
6284 (expand_expr_real_1): Likewise.
6285 (expand_expr_real_2): Avoid useless statements.
6287 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6289 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6291 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6294 * stmt.c (expand_expr_stmt): Avoid useless assignment.
6296 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6299 * doc/tm.texi.in (TARGET_VERSION): Remove.
6300 * doc/tm.texi: Regenerate.
6301 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6302 * collect2.c (main): Don't use TARGET_VERSION.
6303 * mips-tdump.c (main): Don't use TARGET_VERSION.
6304 * mips-tfile.c (main): Don't use TARGET_VERSION.
6305 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6306 * config/rs6000/vxworksae.h: Remove.
6307 * config/alpha/alpha.h (TARGET_VERSION): Remove.
6308 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6309 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6310 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6311 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6312 * config/arm/arm.h (TARGET_VERSION): Remove.
6313 * config/arm/coff.h (TARGET_VERSION): Remove.
6314 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6315 * config/arm/elf.h (TARGET_VERSION): Remove.
6316 * config/arm/freebsd.h (TARGET_VERSION): Remove.
6317 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6318 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6319 * config/arm/pe.h (TARGET_VERSION): Remove.
6320 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6321 * config/arm/semi.h (TARGET_VERSION): Remove.
6322 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6323 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6324 * config/arm/vxworks.h (TARGET_VERSION): Remove.
6325 * config/avr/avr.h (TARGET_VERSION): Remove.
6326 * config/bfin/bfin.h (TARGET_VERSION): Remove.
6327 * config/fr30/fr30.h (TARGET_VERSION): Remove.
6328 * config/frv/frv.h (TARGET_VERSION): Remove.
6329 * config/h8300/h8300.h (TARGET_VERSION): Remove.
6330 * config/i386/cygwin.h (TARGET_VERSION): Remove.
6331 * config/i386/darwin.h (TARGET_VERSION): Remove.
6332 * config/i386/darwin64.h (TARGET_VERSION): Remove.
6333 * config/i386/djgpp.h (TARGET_VERSION): Remove.
6334 * config/i386/freebsd.h (TARGET_VERSION): Remove.
6335 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6336 * config/i386/gnu.h (TARGET_VERSION): Remove.
6337 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6338 * config/i386/i386elf.h (TARGET_VERSION): Remove.
6339 * config/i386/linux.h (TARGET_VERSION): Remove.
6340 * config/i386/linux64.h (TARGET_VERSION): Remove.
6341 * config/i386/lynx.h (TARGET_VERSION): Remove.
6342 * config/i386/mingw32.h (TARGET_VERSION): Remove.
6343 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6344 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6345 * config/i386/netware.h (TARGET_VERSION): Remove.
6346 * config/i386/nto.h (TARGET_VERSION): Remove.
6347 * config/i386/openbsd.h (TARGET_VERSION): Remove.
6348 * config/i386/vxworks.h (TARGET_VERSION): Remove.
6349 * config/ia64/elf.h (TARGET_VERSION): Remove.
6350 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6351 * config/ia64/hpux.h (TARGET_VERSION): Remove.
6352 * config/ia64/linux.h (TARGET_VERSION): Remove.
6353 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6354 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6355 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6356 * config/lm32/lm32.h (TARGET_VERSION): Remove.
6357 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6358 * config/m32c/m32c.h (TARGET_VERSION): Remove.
6359 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6360 * config/m32r/m32r.h (TARGET_VERSION): Remove.
6361 * config/m68k/linux.h (TARGET_VERSION): Remove.
6362 * config/m68k/m68k.h (TARGET_VERSION): Remove.
6363 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6364 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6365 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6366 * config/mep/mep.h (TARGET_VERSION): Remove.
6367 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6368 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6369 * config/mips/iris6.h (MACHINE_TYPE): Remove.
6370 * config/mips/linux.h (TARGET_VERSION): Remove.
6371 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6372 * config/mips/vxworks.h (TARGET_VERSION): Remove.
6373 * config/mmix/mmix.h (TARGET_VERSION): Remove.
6374 * config/mn10300/linux.h (TARGET_VERSION): Remove.
6375 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6376 * config/pa/pa.h (TARGET_VERSION): Remove.
6377 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6378 * config/picochip/picochip.h (TARGET_VERSION): Remove.
6379 * config/rs6000/aix.h (TARGET_VERSION): Remove.
6380 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6381 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6382 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6383 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6384 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6385 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6386 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6387 * config/rs6000/linux.h (TARGET_VERSION): Remove.
6388 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6389 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6390 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6391 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6392 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6393 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6394 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6395 * config/s390/linux.h (TARGET_VERSION): Remove.
6396 * config/s390/s390.h (TARGET_VERSION): Remove.
6397 * config/s390/tpf.h (TARGET_VERSION): Remove.
6398 * config/score/score.h (TARGET_VERSION): Remove.
6399 * config/sh/linux.h (TARGET_VERSION): Remove.
6400 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6401 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6402 * config/sh/sh.h (TARGET_VERSION): Remove.
6403 * config/sh/sh64.h (TARGET_VERSION): Remove.
6404 * config/sh/superh.h (TARGET_VERSION): Remove.
6405 * config/sh/vxworks.h (TARGET_VERSION): Remove.
6406 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6407 * config/sparc/linux.h (TARGET_VERSION): Remove.
6408 * config/sparc/linux64.h (TARGET_VERSION): Remove.
6409 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6410 TARGET_NAME32, TARGET_NAME): Remove.
6411 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6412 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6413 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6414 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6415 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6416 * config/spu/spu.h (TARGET_VERSION): Remove.
6417 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6418 * config/v850/v850.h (TARGET_VERSION): Remove.
6419 * config/vax/linux.h (TARGET_VERSION): Remove.
6420 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6421 * config/xtensa/elf.h (TARGET_VERSION): Remove.
6422 * config/xtensa/linux.h (TARGET_VERSION): Remove.
6424 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6427 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6428 frame-related from frame-unrelated adjustments to the stack pointer.
6430 2011-03-31 Jakub Jelinek <jakub@redhat.com>
6432 * common.opt (fdebug-types-section): Move earlier.
6433 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6435 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
6437 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6440 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
6442 * tree.h (CASE_CHAIN): Define.
6443 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6444 (gimple_redirect_edge_and_branch): Likewise.
6446 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6449 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6452 2011-03-30 Jeff Law <law@redhat.com>
6454 * PR bootstrap/48371
6455 * reload1.c (reload): Fix botch in last change.
6457 * reload.h (struct reload): Fix typo introduced in last change.
6459 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6461 * config/arm/arm.opt (mhard-float, msoft-float): Mark
6462 Undocumented. Remove help text.
6463 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6466 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6468 * doc/options.texi (NegativeAlias): Document.
6469 (Alias): Mention NegativeAlias.
6470 * opt-functions.awk: Handle NegativeAlias.
6471 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6472 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6473 * opts.h (CL_NEGATIVE_ALIAS): Define.
6474 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6475 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6477 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6479 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6480 mno-spe and mno-isel instead of mspe=no and -misel=no.
6482 2011-03-29 Mark Wielaard <mjw@redhat.com>
6484 * common.opt (fdebug-types-section): New flag.
6485 * doc/invoke.texi: Document new -fno-debug-types-section flag.
6486 * dwarf2out.c (use_debug_types): New define.
6487 (struct die_struct): Mark die_id with GTY desc use_debug_types.
6488 (print_die): Guard output of type unit signatures using
6490 (build_abbrev_table): Replace assert of dwarf_version >= 4
6491 with assert on use_debug_types.
6492 (size_of_die): Likewise.
6493 (unmark_dies): Likewise.
6494 (value_format): Decide AT_ref_external form on use_debug_types.
6495 (output_die): Replace dwarf_version version check guard with
6496 use_debug_types where appropriate.
6497 (modified_type_die): Likewise.
6498 (gen_reference_type_die): Likewise.
6499 (dwarf2out_start_source_file): Likewise.
6500 (dwarf2out_end_source_file): Likewise.
6501 (prune_unused_types_walk_attribs): Likewise.
6502 (dwarf2out_finish): Likewise.
6504 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6506 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6508 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6510 PR rtl-optimization/48332
6511 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6512 mode of input operand N and modeN to its actual mode.
6514 2011-03-30 Jeff Law <law@redhat.com>
6516 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6517 define accessor macro.
6518 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6519 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6520 (reg_equiv_init): Likewise.
6521 (reg_equivs_size): New variable.
6522 (reg_equiv_init_size): Remove.
6523 (allocate_initial_values): Move prototype to here from....
6524 * integrate.h (allocate_initial_values): Remove prototype.
6525 * integrate.c: Include reload.h.
6526 (allocate_initial_values): Corresponding changes.
6527 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6528 (fix_reg_equiv_init, no_equiv): Corresponding changes.
6529 (update_equiv_regs): Corresponding changes.
6530 (ira): Corresponding changes.
6531 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6532 (push_secondary_reload): Corresponding changes.
6533 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6534 (make_memloc, find_reloads_address): Corresponding changes.
6535 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6536 (find_reloads_address_1): Corresponding changes.
6537 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6538 (refers_to_regno_for_reload_p): Corresponding changes.
6539 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6540 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6541 * reload1.c: Include ggc.h.
6542 (grow_reg_equivs): New function.
6543 (replace_pseudos_in, reload): Corresponding changes.
6544 (calculate_needs_all_insns, alter_regs): Corresponding changes.
6545 (eliminate_regs_1, elimination_effects): Corresponding changes.
6546 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6547 (delete_output_reload): Likewise.
6548 * caller-save.c (mark_referenced_regs): Corresponding changes.
6549 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6550 * frv/predicates.md (frv_load_operand): Corresponding changes.
6551 * microblaze/microblaze.c (double_memory_operand): Corresponding
6553 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6554 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6555 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6556 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6557 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6559 * pa/pa.c (emit_move_sequence): Corresponding changes.
6560 * vax/vax.c (nonindexed_address_p): Corresponding changes.
6562 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6565 * config/arm/arm.c (coproc_secondary_reload_class): Handle
6566 structure modes. Don't check neon_vector_mem_operand for
6567 vector or structure modes.
6569 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6570 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6573 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6574 operand 1 and reshuffle the operands to match.
6575 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6577 2011-03-30 Christian Schüler <cschueler@gmx.de>
6580 * config/c.opt (F): Added 'Driver' to -F option.
6583 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6585 * config/darwin.opt: Added '-arch' option.
6587 2011-03-30 Nick Clifton <nickc@redhat.com>
6589 * config/rx/rx.md: Add peepholes and patterns to combine
6590 extending loads and simple arithmetic instructions.
6591 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6592 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6593 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6594 modes to use pre-decrement and post-increment addressing.
6595 (rx_is_restricted_memory_address): Add range checking of REG+INT
6597 (rx_print_operand): Add support for %Q. Fix handling of %Q.
6598 (rx_memory_move_cost): Adjust cost of stores.
6599 (rx_adjust_insn_length): New function.
6601 2011-03-30 Jakub Jelinek <jakub@redhat.com>
6604 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6605 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6606 matching arg00/arg01 types.
6608 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
6610 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6611 last_location to UNKNOWN_LOCATION.
6613 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
6616 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6619 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6620 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6623 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6625 (sparc_cpu): Likewise.
6626 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6629 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6633 PR rtl-optimization/48345
6634 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6635 hard regs for given mode from profitable regs when doing secondary
6638 2011-03-29 Jeff Law <law@redhat.com>
6641 * tree-ssa-threadupdate.c (struct redirection_data): Remove
6642 do_not_duplicate field.
6643 (lookup_redirection_data): Corresponding changes.
6644 (create_duplicates): Always create a template block.
6645 (redirect_edges): Remove code which reused the original block
6646 when it was going to become unreachable code.
6647 (thread_block): Don't set do_not_duplicate field.
6649 2011-03-29 Joseph Myers <joseph@codesourcery.com>
6651 * lto-opts.c (register_user_option_p, lto_register_user_option):
6652 Make type argument unsigned.
6653 * lto-streamer.h (lto_register_user_option): Make type argument
6655 * opth-gen.awk: Make CL_* macros unsigned.
6656 * opts-common.c (find_opt): Make lang_mask argument unsigned.
6657 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6658 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6659 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6660 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6661 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6662 (find_opt): Make lang_mask argument unsigned.
6664 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6666 PR rtl-optimization/48331
6667 PR rtl-optimization/48334
6668 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6669 for any used algorithm.
6671 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6673 * ira-conflicts.c (build_object_conflicts): Add unused attribute
6676 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
6678 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6679 (alpha_option_override): Don't set alpha_sr_alias_set.
6680 (emit_frame_store_1): Use gen_frame_mem rather than calling
6682 (alpha_expand_epilogue): Ditto.
6684 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
6686 PR tree-optimization/48290
6687 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6688 vectorization, check that relevant phis in the basic block after
6689 the inner loop are really inner loop's exit phis.
6691 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
6694 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6695 (cached_dw_loc_list_def): New structure.
6696 (cached_dw_loc_list): New typedef.
6697 (cached_dw_loc_list_table): New variable.
6698 (cached_dw_loc_list_table_hash): New function.
6699 (cached_dw_loc_list_table_eq): Likewise.
6700 (add_location_or_const_value_attribute): Take a bool cache_p.
6701 Cache the list when the parameter is true.
6702 (gen_formal_parameter_die): Update caller.
6703 (gen_variable_die): Likewise.
6704 (dwarf2out_finish): Likewise.
6705 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6706 while generating debug info for the decl.
6707 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6708 (dwarf2out_init): Initialize cached_dw_loc_list_table.
6709 (resolve_addr): Cache the result of resolving a chain of
6712 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
6714 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6715 conflict object hard regset nodes have intersecting hard reg sets.
6717 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6718 after regstat_init_n_sets_and_refs.
6720 * ira.c: Add more comments at the top.
6721 (setup_stack_reg_pressure_class, setup_pressure_classes):
6722 Add comments how we compute the register pressure classes.
6723 (setup_allocno_and_important_classes): Add more comments.
6724 (setup_class_translate_array, reorder_important_classes)
6725 (setup_reg_class_relations): Add comments.
6727 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
6730 * ira-color.c: Add 2011 to the Copyright line.
6731 (assign_hard_reg): Add more comments.
6732 (improve_allocation): Ditto.
6734 * ira-costs.c: Add 2011 to the Copyright line.
6735 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6737 (setup_regno_cost_classes_by_mode): Ditto.
6739 Initial patches from ira-improv branch:
6741 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6743 * ira-build.c (ira_create_object): Remove initialization of
6744 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
6745 (ira_create_allocno): Remove initialization of
6746 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6747 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6748 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6749 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6750 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6751 Initialize ALLOCNO_ADD_DATA.
6752 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6753 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6755 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
6756 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6758 * ira.c (ira_reallocate): Remove.
6759 (setup_pressure_classes): Call
6760 ira_init_register_move_cost_if_necessary. Use
6761 ira_register_move_cost instead of ira_get_register_move_cost.
6762 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6763 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6765 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6766 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6767 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6768 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6769 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6770 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6772 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6773 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6774 (struct allocno_color_data): New.
6775 (allocno_color_data_t): New typedef.
6776 (allocno_color_data): New definition.
6777 (ALLOCNO_COLOR_DATA): New macro.
6778 (struct object_color_data): New.
6779 (object_color_data_t): New typedef.
6780 (object_color_data): New definition.
6781 (OBJECT_COLOR_DATA): New macro.
6782 (update_copy_costs, calculate_allocno_spill_cost): Call
6783 ira_init_register_move_cost_if_necessary. Use
6784 ira_register_move_cost instead of ira_get_register_move_cost.
6785 (move_spill_restore, update_curr_costs): Ditto.
6786 (allocno_spill_priority): Make it inline.
6787 (color_pass): Allocate and free allocno_color_dat and object_color_data.
6788 (struct coalesce_data, coalesce_data_t): New.
6789 (allocno_coalesce_data): New definition.
6790 (ALLOCNO_COALESCE_DATA): New macro.
6791 (merge_allocnos, coalesced_allocno_conflict_p): Use
6792 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6793 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6794 (coalesce_allocnos): Ditto.
6795 (setup_coalesced_allocno_costs_and_nums): Ditto.
6796 (collect_spilled_coalesced_allocnos): Ditto.
6797 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6798 (setup_slot_coalesced_allocno_live_ranges): Ditto.
6799 (coalesce_spill_slots): Ditto.
6800 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
6801 free allocno_coalesce_data.
6803 * ira-conflicts.c: Fix formatting.
6804 (process_regs_for_copy): Call
6805 ira_init_register_move_cost_if_necessary. Use
6806 ira_register_move_cost instead of ira_get_register_move_cost.
6807 (build_object_conflicts): Optimize.
6809 * ira-costs.c (record_reg_classes): Optimize. Call
6810 ira_init_register_move_cost_if_necessary. Use
6811 ira_register_move_cost, ira_may_move_in_cost, and
6812 ira_may_move_out_cost instead of ira_get_register_move_cost and
6813 ira_get_may_move_cost.
6814 (record_address_regs): Ditto.
6815 (scan_one_insn): Optimize.
6816 (find_costs_and_classes): Optimize.
6817 (process_bb_node_for_hard_reg_moves): Call
6818 ira_init_register_move_cost_if_necessary. Use
6819 ira_register_move_cost instead of ira_get_register_move_cost.
6821 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6822 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6823 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6824 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6826 (ira_initiate_emit_data, ira_finish_emit_data)
6827 (create_new_allocno): New functions.
6828 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6829 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6830 Use ira_register_move_cost instead of ira_get_register_move_cost.
6832 * ira-int.h: Fix some comments.
6833 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6834 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6835 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6836 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6838 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6839 bitfield after mode. Make hard_regno a short int. Make
6840 hard_regno short. Remove first_coalesced_allocno and
6841 next_coalesced_allocno. Move mem_optimized_dest_p,
6842 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6843 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6844 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6845 temp, colorable_p. Add new member add_data.
6846 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6847 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6848 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6849 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6850 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6851 (ALLOCNO_ADD_DATA): New macro.
6852 (ira_emit_data_t): New typedef.
6853 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6854 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6855 from struct ira_allocno.
6856 (ALLOCNO_EMIT_DATA): New macro.
6857 (ira_allocno_emit_data, allocno_emit_reg): New.
6858 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6859 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6860 (OBJECT_ADD_DATA): New macro.
6861 (ira_reallocate): Remove.
6862 (ira_initiate_emit_data, ira_finish_emit_data): New.
6863 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6864 (ira_init_register_move_cost_if_necessary): New.
6865 (ira_object_conflict_iter_next): Merge into
6866 ira_object_conflict_iter_cond.
6867 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6869 * ira-live.c (process_single_reg_class_operands): Call
6870 ira_init_register_move_cost_if_necessary. Use
6871 ira_register_move_cost instead of ira_get_register_move_cost.
6873 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6875 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6877 * ira-costs.c: Fix formatting.
6878 (cost_classes, cost_classes_num): Remove.
6879 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6880 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6881 (cost_classes_del, cost_classes_htab): New.
6882 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6883 (initiate_regno_cost_classes, setup_cost_classes): New.
6884 (setup_regno_cost_classes_by_aclass): New.
6885 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6886 (record_reg_classes): Use regno_cost_classes instead of
6887 cost_classes. Move checking opposite operand up.
6888 (record_address_regs): Use regno_cost_classes
6889 instead of cost_classes.
6890 (scan_one_insn): Ditto. Use always general register.
6891 (print_allocno_costs): Use regno_cost_classes instead of
6893 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
6894 (find_costs_and_classes): Set up cost classes for each registers.
6895 Use also their mode for this. Use regno_cost_classes instead of
6897 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6899 (free_ira_costs, ira_init_costs): Don't use cost_classes.
6900 (ira_costs, ira_set_pseudo_classes): Call
6901 initiate_regno_cost_classes and finish_regno_cost_classes.
6903 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
6905 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6907 * target.def (ira_cover_classes): Remove.
6909 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6911 * doc/tm.texi.in: Ditto.
6913 * ira-conflicts.c: Remove mentioning cover classes from the file.
6914 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
6915 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
6917 * targhooks.c (default_ira_cover_classes): Remove.
6919 * targhooks.h (default_ira_cover_classes): Ditto.
6921 * haifa-sched.c: Remove mentioning cover classes from the file.
6922 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6923 ira_pressure_classes and ira_pressure_classes_num instead of
6924 ira_reg_class_cover_size and ira_reg_class_cover. Use
6925 sched_regno_pressure_class instead of sched_regno_cover_class.
6926 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6927 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6929 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
6930 classes from the file.
6931 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6932 (struct object_hard_regs, struct object_hard_regs_node): New.
6933 (struct ira_object): New members profitable_hard_regs,
6934 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6935 (struct ira_allocno): Rename cover_class to aclass. Rename
6936 cover_class_cost and updated_cover_class_cost to class_cost and
6937 updated_class_cost. Remove splay_removed_p and
6938 left_conflict_size. Add new members colorable_p.
6939 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6940 (ALLOCNO_COLORABLE_P): New macro.
6941 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6942 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6943 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6944 (OBJECT_...): Rename parameter C to O.
6945 (OBJECT_PROFITABLE_HARD_REGS): New macro.
6946 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6947 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6948 (struct target_ira_int): New members x_ira_max_memory_move_cost,
6949 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6950 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6951 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6952 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
6953 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
6954 x_ira_reg_class_subunion.
6955 (ira_max_memory_move_cost, ira_max_register_move_cost)
6956 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6957 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6958 (ira_important_class_nums, ira_reg_class_superunion): New macros.
6959 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6960 (ira_reg_class_union): Rename to ira_reg_class_subunion.
6961 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6962 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6963 (ira_tune_allocno_costs_and_cover_classes): Rename to
6964 ira_tune_allocno_costs.
6965 (ira_debug_hard_regs_forest): New.
6966 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6967 (ira_object_conflict_iter_next): Fix comments.
6968 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6969 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6970 cover_class to aclass.
6971 (ira_allocate_and_accumulate_costs): Ditto.
6972 (ira_allocate_and_set_or_copy_costs): Ditto.
6974 * opts.c (decode_options): Remove ira_cover_class check.
6976 * ira-color.c: Remove mentioning cover classes from the file. Use
6977 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6978 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6979 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6980 (splay-tree.h): Remove include.
6981 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6982 before copy_freq_compare_func.
6983 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6984 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6986 (hard_regs_roots, hard_regs_node_vec): Ditto.
6987 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6988 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6989 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6990 (create_new_object_hard_regs_node): Ditto.
6991 (add_new_object_hard_regs_node_to_forest): Ditto.
6992 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6993 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6995 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6996 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6997 (remove_unused_object_hard_regs_nodes): Ditto.
6998 (enumerate_object_hard_regs_nodes): Ditto.
6999 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7000 (object_hard_regs_subnode_t): Ditto.
7001 (struct object_hard_regs_subnode): Ditto.
7002 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7003 (setup_object_hard_regs_subnode_index): Ditto.
7004 (get_object_hard_regs_subnodes_num): Ditto.
7005 (form_object_hard_regs_nodes_forest): Ditto.
7006 (finish_object_hard_regs_nodes_tree): Ditto.
7007 (finish_object_hard_regs_nodes_forest): Ditto.
7008 (allocnos_have_intersected_live_ranges_p): Rename to
7009 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7010 (pseudos_have_intersected_live_ranges_p): Rename to
7011 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7012 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7013 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7014 (update_copy_costs): Remove assert. Skip cost update if the hard
7015 reg does not belong the class.
7016 (assign_hard_reg): Process only profitable hard regs.
7017 (uncolorable_allocnos_num): Make it scalar.
7018 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7019 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7020 and ira_reg_class_max_nregs.
7021 (bucket_allocno_compare_func): Check frequency first.
7022 (sort_bucket): Add compare function as a parameter.
7023 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7024 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7025 (push_allocno_to_stack): Rewrite for checking new allocno
7027 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
7028 (push_only_colorable): Pass new parameter to sort_bucket.
7029 (push_allocno_to_spill): Remove.
7030 (allocno_spill_priority_compare): Make it inline and rewrite.
7031 (splay_tree_allocate, splay_tree_free): Remove.
7032 (allocno_spill_sort_compare): New function.
7033 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
7034 build and use splay tree. Choose first allocno in uncolorable
7035 allocno bucket to spill. Remove setting spill cost.
7036 (all_conflicting_hard_regs): Remove.
7037 (setup_allocno_available_regs_num): Check only profitable hard
7038 regs. Print info about hard regs nodes.
7039 (setup_allocno_left_conflicts_size): Remove.
7040 (put_allocno_into_bucket): Don't call
7041 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
7042 (improve_allocation): New.
7043 (color_allocnos): Call setup_profitable_hard_regs,
7044 form_object_hard_regs_nodes_forest, improve_allocation,
7045 finish_object_hard_regs_nodes_forest. Setup spill cost.
7046 (print_loop_title): Use pressure classes.
7047 (color_allocnso): Ditto.
7048 (do_coloring): Remove allocation and freeing splay_tree_node_pool
7049 and allocnos_for_spilling.
7050 (ira_sort_regnos_for_alter_reg): Don't setup members
7051 {first,next}_coalesced_allocno.
7052 (color): Remove allocating and freeing removed_splay_allocno_vec.
7053 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7054 prohibited_class_mode_regs.
7056 * ira-lives.c: Remove mentioning cover classes from the file. Fix
7058 (update_allocno_pressure_excess_length): Use pressure classes.
7059 (inc_register_pressure, dec_register_pressure): Check for pressure
7061 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7062 pressure class. Use ira_reg_class_nregs instead of
7063 ira_reg_class_max_nregs.
7064 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7065 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7066 (single_reg_class): Use ira_reg_class_nregs instead of
7067 ira_reg_class_max_nregs.
7068 (process_bb_node_lives): Use pressure classes.
7070 * ira-emit.c: Remove mentioning cover classes from the file. Use
7071 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
7072 (change_loop): Use pressure classes.
7073 (modify_move_list): Call ira_set_allocno_class instead of
7074 ira_set_allocno_cover_class.
7076 * ira-build.c: Remove mentioning cover classes from the file. Use
7077 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7078 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
7079 ALLOCNO_UPDATED_CLASS_COST instead of
7080 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7081 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7082 (ira_create_allocno): Remove initialization of
7083 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
7084 ALLOCNO_COLORABLE_P.
7085 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7086 Update conflict regs for the objects.
7087 (create_cap_allocno): Remove assert. Don't propagate
7088 ALLOCNO_AVAILABLE_REGS_NUM.
7089 (ira_free_allocno_costs): New function.
7090 (finish_allocno): Change a part of code into call of
7091 ira_free_allocno_costs.
7092 (low_pressure_loop_node_p): Use pressure classes.
7093 (object_range_compare_func): Don't compare classes.
7094 (setup_min_max_conflict_allocno_ids): Ditto.
7096 * loop-invariant.c: Remove mentioning cover classes from the file.
7097 Use ira_pressure_classes and ira_pressure_classes_num instead of
7098 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7099 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7100 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7101 Use reg_allocno_class instead of reg_cover_class.
7102 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7103 STACK_REG_COVER_CLASS.
7104 (get_regno_cover_class): Rename to get_regno_pressure_class.
7105 (move_loop_invariants): Initialize and finalize regstat.
7107 * ira.c: Remove mentioning cover classes from the file. Add
7108 comments about coloring without cover classes. Use ALLOCNO_CLASS
7109 instead of ALLOCNO_COVER_CLASS. Fix formatting.
7110 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7111 setup_class_subset_and_memory_move_costs.
7112 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7113 (setup_cover_and_important_classes): Rename to
7114 setup_allocno_and_important_classes.
7115 (setup_class_translate_array): New.
7116 (setup_class_translate): Call it for allocno and pressure classes.
7117 (cover_class_order): Rename to allocno_class_order.
7118 (comp_reg_classes_func): Use ira_allocno_class_translate instead
7119 of ira_class_translate.
7120 (reorder_important_classes): Set up ira_important_class_nums.
7121 (setup_reg_class_relations): Set up ira_reg_class_superunion.
7122 (print_class_cover): Rename to print_classes. Add parameter.
7123 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7124 Print pressure classes too.
7125 (find_reg_class_closure): Rename to find_reg_classes. Don't call
7126 setup_reg_subclasses.
7127 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7128 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7129 (setup_prohibited_class_mode_regs): Use
7130 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7131 (clarify_prohibited_class_mode_regs): New function.
7132 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7133 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7134 (ira_init_once): Initialize them.
7135 (free_register_move_costs): Process them.
7136 (ira_init): Move calls of find_reg_classes and
7137 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7138 Call clarify_prohibited_class_mode_regs.
7139 (ira_no_alloc_reg): Remove.
7140 (too_high_register_pressure_p): Use pressure classes.
7142 * sched-deps.c: Remove mentioning cover classes from the file.
7143 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7144 ira_pressure_classes and ira_pressure_classes_num instead of
7145 ira_reg_class_cover_size and ira_reg_class_cover.
7146 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7147 sched_regno_pressure_class instead of sched_regno_cover_class.
7148 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
7149 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7151 * ira.h: Add 2010 to Copyright.
7152 (ira_no_alloc_reg): Remove external.
7153 (struct target_ira): Rename x_ira_hard_regno_cover_class,
7154 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7155 x_ira_class_translate to x_ira_hard_regno_allocno_class,
7156 x_ira_allocno_classes_num, x_ira_allocno_classes, and
7157 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
7158 x_ira_pressure_classes, x_ira_pressure_class_translate, and
7159 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
7160 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
7161 x_ira_no_alloc_regs.
7162 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7163 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7164 ira_allocno_classes_num and ira_allocno_classes.
7165 (ira_class_translate): Rename to ira_allocno_class_translate.
7166 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7167 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7168 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7169 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7170 (ira_no_alloc_regs): New.
7172 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
7173 classes from the file. Use ALLOCNO_CLASS instead of
7174 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
7175 ALLOCNO_COVER_CLASS_COST.
7176 (regno_cover_class): Rename to regno_aclass.
7177 (record_reg_classes): Use ira_reg_class_subunion instead of
7178 ira_reg_class_union.
7179 (record_address_regs): Check overflow.
7180 (scan_one_insn): Ditto.
7181 (print_allocno_costs): Print total mem cost fore regional allocation.
7182 (print_pseudo_costs): Use REG_N_REFS.
7183 (find_costs_and_classes): Use classes intersected with them on the
7184 1st pass. Check overflow. Use ira_reg_class_subunion instead of
7185 ira_reg_class_union. Use ira_allocno_class_translate and
7186 regno_aclass instead of ira_class_translate and regno_cover_class.
7187 Modify code for finding regno_aclass. Setup preferred classes for
7189 (setup_allocno_cover_class_and_costs): Rename to
7190 setup_allocno_class_and_costs. Use regno_aclass instead of
7191 regno_cover_class. Use ira_set_allocno_class instead of
7192 ira_set_allocno_cover_class.
7193 (init_costs, finish_costs): Use regno_aclass instead of
7195 (ira_costs): Use setup_allocno_class_and_costs instead of
7196 setup_allocno_cover_class_and_costs.
7197 (ira_tune_allocno_costs_and_cover_classes): Rename to
7198 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
7199 by processing objects. Use ira_reg_class_max_nregs instead of
7200 ira_reg_class_nregs.
7202 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7204 * sched-int.h: Remove mentioning cover classes from the file.
7205 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7207 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
7208 classes from the file.
7209 (struct reg_pref): Rename coverclass into allocnoclass.
7210 (reg_cover_class): Rename to reg_allocno_class.
7212 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7214 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7216 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7218 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7220 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7222 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7224 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7226 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7228 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7230 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7232 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7233 (i386_ira_cover_classes): Ditto.
7235 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7237 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7239 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7241 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7243 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7245 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7247 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7248 (mips_ira_cover_classes): Ditto.
7250 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7252 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7254 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7256 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7258 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7260 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7261 (IRA_COVER_CLASSES_VSX): Ditto.
7263 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7264 (rs6000_ira_cover_classes): Ditto.
7266 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7268 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7270 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7272 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7274 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7276 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7278 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7280 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7282 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7284 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7286 2011-03-29 Jakub Jelinek <jakub@redhat.com>
7289 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7290 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7291 dw_fde_unlikely_section_end_label, cold_in_std_section,
7292 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7293 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7295 (output_fde): Use dw_fde_second_{begin,end} if second is
7296 true, otherwise dw_fde_{begin,end}.
7297 (output_call_frame_info): Test dw_fde_second_begin != NULL
7298 instead of dw_fde_switched_sections.
7299 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7300 fields, initialize new fields. Initialize in_std_section
7301 unconditionally from the first partition.
7302 (dwarf2out_end_epilogue): Don't override dw_fde_end when
7303 dw_fde_second_begin is non-NULL.
7304 (dwarf2out_switch_text_section): Stop initializing removed
7305 dw_fde_struct fields, initialize new fields, initialize
7306 also dw_fde_end here. Set dw_fde_switch_cfi even when
7307 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
7308 (struct var_loc_list_def): Add last_before_switch field.
7309 (arange_table, arange_table_allocated, arange_table_in_use,
7310 ARANGE_TABLE_INCREMENT, add_arange): Removed.
7311 (size_of_aranges): Count !in_std_section and !second_in_std_section
7312 hunks in fdes, instead of looking at arange_table_in_use.
7313 (output_aranges): Add aranges_length argument, don't call
7314 size_of_aranges here. Instead of using aranges_table*
7315 emit ranges for fdes when !in_std_section resp.
7316 !second_in_std_section.
7317 (dw_loc_list): Break ranges crossing section switch.
7318 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7319 use dw_fde_second_end instead of dw_fde_end as end of last range.
7320 (gen_subprogram_die): Don't call add_arange. Use
7321 dw_fde_{begin,end} for first partition and if switched
7322 section dw_fde_second_{begin,end} for the second.
7323 (var_location_switch_text_section_1,
7324 var_location_switch_text_section): New functions.
7325 (dwarf2out_begin_function): Initialize cold_text_section even
7326 when function_section () isn't text_section.
7327 (prune_unused_types): Don't walk arange_table.
7328 (dwarf2out_finish): Don't needlessly test
7329 flag_reorder_blocks_and_partition when testing cold_text_section_used.
7330 If info_section_emitted, call size_of_aranges and if it indicates
7331 non-empty .debug_aranges, call output_aranges with the computed
7332 size. Stop using removed dw_fde_struct fields, use
7333 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7337 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7338 create ENTRY_VALUE if incoming or address of incoming's MEM
7340 * dwarf2out.c (mem_loc_descriptor): Don't emit
7341 DW_OP_GNU_entry_value of DW_OP_fbreg.
7342 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7343 on ENTRY_VALUE is able to find the canonical parameter VALUE.
7344 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7345 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7347 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7348 is a REG_P or MEM_P with REG_P address, compute hash directly
7349 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7350 (preserve_only_constants): Don't clear VALUES forwaring
7351 ENTRY_VALUE to some other VALUE.
7353 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
7355 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7358 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7360 * cfgexpand.c (expand_gimple_cond): Always set the source location and
7361 block before expanding the statement.
7362 (expand_gimple_stmt_1): Likewise. Set them here...
7363 (expand_gimple_stmt): ...and not here. Tidy.
7364 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7367 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7369 * Makefile.in: New rule for cprop.o.
7370 * gcse.c: Move constant/copy propagation to cprop.c.
7371 (compute_local_properties): Only handle expression tables.
7372 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7373 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7374 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7375 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7376 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7377 compute_cprop_data, find_used_regs, try_replace_reg,
7378 find_avail_set, cprop_jump, constprop_register, cprop_insn,
7379 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7380 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7381 find_bypass_set, reg_killed_on_edge, bypass_block,
7382 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7383 execute_rtl_cprop, pass_rtl_cprop): Move to...
7384 * cprop.c: ...here. New file, constant/copy propagation for RTL
7385 moved from gcse.c to here with minor cleanups in duplicated code.
7387 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
7389 * config/i386/i386.c (flag_opts): Fix a typo in
7390 -mavx256-split-unaligned-store.
7392 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7394 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7395 LIBCALL_VALUE): Remove macros.
7396 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7397 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7398 (h8300_function_value, h8300_libcall_value,
7399 h8300_function_value_regno_p): New functions.
7401 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7403 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7405 2011-03-28 Jeff Law <law@redhat.com>
7407 * tree-ssa-threadupdate.c (redirect_edges): Call
7408 create_edge_and_update_destination_phis as needed.
7409 (create_edge_and_update_destination_phis): Accept new BB argument.
7410 All callers updated.
7411 (thread_block): Do not update the profile when threading around
7412 intermediate blocks.
7413 (thread_single_edge): Likewise.
7414 (determine_bb_domination_status): If BB is not a successor of the
7415 loop header, return NONDOMINATING.
7416 (register_jump_thread): Note when we register a jump thread around
7417 an intermediate block.
7418 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7419 (thread_across_edge): Use it.
7421 2011-03-28 Tristan Gingold <gingold@adacore.com>
7423 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7424 when for_return is 2.
7426 2011-03-28 Jeff Law <law@redhat.com>
7428 * var-tracking.c (canonicalize_values_mark): Delete unused
7430 (canonicalize_values_star, set_variable_part): Likewise.
7431 (clobber_variable_part, delete_variable_part): Likewise.
7433 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7435 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7437 2011-03-28 Martin Jambor <mjambor@suse.cz>
7439 * tree-inline.c (expand_call_inline): Do not check that destination
7441 (optimize_inline_calls): Assert that destination node is analyzed.
7442 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7443 not call tree_lowering_passes.
7444 * cgraph.h (cgraph_analyze_function): Declare.
7445 * cgraphunit.c (cgraph_analyze_function): Make public.
7447 2011-03-28 Joseph Myers <joseph@codesourcery.com>
7449 * config/sparc/sparc-opts.h: New.
7450 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7451 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7452 (sparc_option_override): Store processor_type enumeration rather
7453 than string in cpu_default. Remove name and enumeration from
7454 cpu_table. Directly default -mcpu then default -mtune from -mcpu
7455 without using sparc_select. Use target_flags_explicit instead of
7457 * config/sparc/sparc.h (enum processor_type): Move to
7459 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7460 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7461 HeaderInclude entry.
7462 (mcpu=, mtune=): Use Var and Enum.
7463 (sparc_processor_type): New Enum and EnumValue entries.
7465 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7466 Iain Sandoe <iains@gcc.gnu.org>
7469 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7471 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7473 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7474 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7475 Insert new statements at it in lieu of STMT.
7476 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7477 * tree-vect-stmts.c (vectorizable_store): Likewise.
7478 (vectorizable_load): Likewise.
7480 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
7482 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7487 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7489 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7490 unaligned 256bit load/store.
7491 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7492 (*avx_movdqu<avxmodesuffix>): Likewise.
7494 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7497 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7498 * config/pa/pa.md (iordi3): Use new predicate in expander.
7501 2011-03-27 Anatoly Sokolov <aesok@post.ru>
7503 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7504 FUNCTION_VALUE_REGNO_P): Remove macros.
7505 * config/mips/mips-protos.h (mips_function_value): Remove.
7506 * config/mips/mips.c (mips_function_value): Rename to...
7507 (mips_function_value_1): ... this. Make static. Handle receiving
7508 the function type in 'fn_decl_or_type' argument.
7509 (mips_function_value, mips_libcall_value,
7510 mips_function_value_regno_p): New function.
7511 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7512 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7514 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7516 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7517 and -mavx256-split-unaligned-store.
7518 (ix86_option_override_internal): Split 32-byte AVX unaligned
7519 load/store by default.
7520 (ix86_avx256_split_vector_move_misalign): New.
7521 (ix86_expand_vector_move_misalign): Use it.
7523 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7524 -mavx256-split-unaligned-store.
7526 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7527 256bit load/store. Generate unaligned store on misaligned memory
7529 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7531 (*avx_movdqu<avxmodesuffix>): Likewise.
7533 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7534 -mavx256-split-unaligned-store.
7536 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7539 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7542 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7544 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7545 opno arguments with an expand_operand. Use create_input_operand.
7546 (mips_prepare_builtin_target): Delete.
7547 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7549 (mips_expand_builtin_direct): Use create_output_operand and
7550 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
7551 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
7552 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7554 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
7556 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7558 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7560 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7562 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7563 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
7564 basic blocks and call commit_edge_insertions directly.
7565 (fixup_abnormal_edges): Move from here to...
7566 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
7567 on the edges and return whether some have actually been inserted.
7568 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7571 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
7573 PR rtl-optimization/48144
7574 * sel-sched-ir.c (merge_history_vect): Factor out from ...
7575 (merge_expr_data): ... here.
7576 (av_set_intersect): Rename to av_set_code_motion_filter.
7577 Update all callers. Call merge_history_vect when an expression
7578 is found in both sets.
7579 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7581 2011-03-26 Alan Modra <amodra@gmail.com>
7583 * config/rs6000/predicates.md (word_offset_memref_op): Handle
7584 cmodel medium addresses.
7585 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7586 64-bit gpr loads and stores.
7587 (rs6000_secondary_reload_ppc64): New function.
7588 * config/rs6000/rs6000-protos.h: Declare it.
7589 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7591 2011-03-26 Alan Modra <amodra@gmail.com>
7594 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7595 GNU Go in traceback table.
7597 2011-03-25 Richard Henderson <rth@redhat.com>
7599 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7600 if there are exactly 6 operands.
7601 (set_storage_via_setmem): Similarly.
7603 2011-03-25 Kai Tietz <ktietz@redhat.com>
7605 * collect2.c (write_c_file_stat): Handle backslash
7606 as right-hand directory separator.
7607 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7608 checking just for slash.
7609 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7610 instead of checking for trailing slash.
7611 * gcc.c (record_temp_file): Use filename_cmp instead
7613 (do_spec_1): Likewise.
7614 (replace_outfile_spec_function): Likewise.
7615 (is_directory): Use filename_ncmp instead of strncmp.
7616 (print_multilib_info): Likewise.
7617 * gcov.c (find_source): Use filename_cmp instead
7619 (make_gcov_file_name): Fix order of slash/backslash
7621 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7622 (add_standard_paths): Likewise.
7623 * mips-tfile.c (saber_stop): Handle backslash.
7624 * prefix.c (update_path): Use filename_ncmp instead of
7626 * profile.c (output_location): Use filename_cmp instead
7628 * read-md.c (handle_toplevel_file): Handle backslash.
7629 * tlink.c (frob_extension): Likewise.
7630 * tree-cfg.c (same_line_p): Use filename_cmp instead of
7632 * tree-dump.c (dequeue_and_dump): Handle backslash.
7633 * tree.c (get_file_function_name): Likewise.
7634 * gengtype.c (read_input_list): Likewise.
7635 (get_file_realbasename): Likewise.
7636 (get_output_file_with_visibility): Use filename_cmp
7639 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
7641 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7644 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7646 * fold-const.c (expr_location_or): New function.
7647 (fold_truth_not_expr): Call it.
7649 2011-03-25 Jeff Law <law@redhat.com>
7651 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7653 * c-family/c-common.c (def_fn_type): Likewise.
7654 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7655 * emit-rtl.c (gen_rtvec): Likewise.
7656 * lto/lto-lang.c (def_fn_type): Likewise.
7658 2011-03-25 Richard Guenther <rguenther@suse.de>
7660 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7661 also generate copies.
7662 (fini_copy_prop): Handle constant values properly.
7664 2011-03-25 Jakub Jelinek <jakub@redhat.com>
7666 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7667 mode size instead of bitsize with DWARF2_ADDR_SIZE.
7668 (hash_loc_operands, compare_loc_operands): Handle
7669 DW_OP_GNU_entry_value.
7671 2011-03-25 Kai Tietz <ktietz@redhat.com>
7673 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7674 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7675 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7676 comment and use macro TARGET_64BIT_MS_ABI instead.
7677 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7678 and change default behavior for 32-bit MS_ABI.
7679 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7680 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7682 (ix86_cfun_abi): Likewise.
7683 (ix86_maybe_switch_abi): Adjust comment.
7684 (init_cumulative_args): Check for bit-ness in MS_ABI case.
7685 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7686 instead of checking for SYSV_ABI.
7687 (ix86_nsaved_sseregs): Likewise.
7688 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7690 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7691 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7692 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7693 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7694 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7696 2011-03-25 Richard Guenther <rguenther@suse.de>
7698 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7699 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7700 (verify_gimple): Remove.
7701 * tree-cfg.c (verify_gimple_call): Merge verification
7703 (verify_gimple_phi): Merge verification from verify_stmts.
7704 (verify_gimple_label): New function.
7705 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7706 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7707 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7708 (verify_stmts): Rename to verify_gimple_in_cfg.
7709 (verify_gimple_in_cfg): New function.
7710 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7711 * tree-ssa.c (verify_ssa): Likewise.
7712 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7714 2011-03-25 Richard Guenther <rguenther@suse.de>
7716 * passes.c (init_optimization_passes): Add FRE pass after
7719 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
7720 Andrew Stubbs <ams@codesourcery.com>
7722 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7724 (arm_movdi_vfp_cortexa8): New pattern.
7725 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7726 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7727 instructions when tuning for Cortex-A8. Set attribute "arch".
7728 * config/arm/arm.md: Move include arm-tune.md up a bit.
7729 (define_attr "arch"): Add "onlya8" and "nota8" values.
7730 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7732 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7736 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7738 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7739 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7740 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7741 * passes.c (init_optimization_passes): Move
7742 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7744 2011-03-25 Kai Tietz <ktietz@redhat.com>
7746 * c-typeck.c (comptypes_internal): Replace target
7747 hook call of comp_type_attributes by version in tree.c file.
7748 * gimple.c (gimple_types_compatible_p_1): Likewise.
7749 * tree-ssa.c (useless_type_conversion_p): Likewise.
7750 * tree.c (build_type_attribute_qual_variant): Likewise.
7751 (attribute_value_equal): New static helper function.
7752 (comp_type_attributes): New function.
7753 (merge_attributes): Use attribute_value_equal for comparison.
7754 (attribute_list_contained): Likewise.
7755 * tree.h (comp_type_attributes): New prototype.
7757 2011-03-25 Richard Guenther <rguenther@suse.de>
7759 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7760 of complex types at -O0.
7761 (verify_gimple_assign_binary): Likewise.
7762 (verify_gimple_assign_ternary): Likewise.
7764 2011-03-24 Mark Wielaard <mjw@redhat.com>
7766 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7767 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7769 2011-03-24 Mark Wielaard <mjw@redhat.com>
7772 * dwarf2out.c (output_abbrev_section): Only write table when
7773 abbrev_die_table_in_use > 1.
7775 2011-02-24 Richard Henderson <rth@redhat.com>
7777 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7778 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7779 (alpha_expand_unaligned_load_words): Use extql.
7780 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7781 (emit_insxl): Handle all modes for consistency.
7783 2011-02-24 Richard Henderson <rth@redhat.com>
7785 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7786 (alpha_expand_unaligned_load): Likewise.
7787 (alpha_expand_unaligned_store): Likewise.
7788 (alpha_expand_unaligned_load_words): Likewise.
7789 (alpha_expand_unaligned_store_words): Likewise.
7790 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7791 (alpha_split_lock_test_and_set_12): Likewise.
7792 (print_operand, alpha_fold_builtin_extxx): Likewise.
7793 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7794 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7795 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7796 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7797 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7798 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7799 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7800 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7801 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7802 (extwl, extll, extql): Similarly.
7803 (inswh, inslh, insqh): Similarly.
7804 (mskbl, mskwl, mskll, mskql): Similarly.
7805 (mskwh, msklh, mskqh): Similarly.
7807 2011-02-24 Richard Henderson <rth@redhat.com>
7809 * config/alpha/alpha.md (attribute isa): Add er, ner.
7810 (attribute enabled): Handle them.
7811 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7813 2011-02-24 Richard Henderson <rth@redhat.com>
7815 * config/alpha/alpha.md (attribute isa): Add vms.
7816 (attribute enabled): Handle it.
7817 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7818 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7819 (*movtf): Rename from *movtf_internal for consistency.
7820 (*movsi): Merge with *movsi_nt_vms.
7821 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7822 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7823 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7824 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7826 2011-02-24 Richard Henderson <rth@redhat.com>
7828 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7829 (extendqisi2, extendhisi2): Likewise.
7830 (extendqidi2): Simplify BWX/non-BWX expansions.
7831 (extendhidi2): Similarly.
7833 2011-02-24 Richard Henderson <rth@redhat.com>
7835 * config/alpha/alpha.md (attribute isa): New.
7836 (attribute enabled): New.
7837 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7838 (zero_extendqisi2, zero_extendqidi2): Similarly.
7839 (zero_extendhisi2, zero_extendhidi2): Similarly.
7840 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7842 2011-02-24 Richard Henderson <rth@redhat.com>
7844 * config/alpha/predicates.md (input_operand): Revert last change;
7845 update comment to mention 32-bit VMS rather than Windows.
7847 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7849 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7850 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7851 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7852 * passes.c (init_optimization_passes): Move
7853 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7855 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7857 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7859 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7861 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7864 2011-03-24 Jakub Jelinek <jakub@redhat.com>
7867 * simplify-rtx.c (simplify_const_unary_operation): Call
7868 real_convert when changing mode class with FLOAT_EXTEND.
7870 2011-03-24 Nick Clifton <nickc@redhat.com>
7872 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7873 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7874 * config/rx/rx.c (rx_option_override): Set align_jumps,
7875 align_loops and align_labels if not set by the user.
7876 (rx_align_for_label): New function.
7877 (rx_max_skip_for_label): New function.
7878 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7879 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7880 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7881 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7882 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7884 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7886 PR rtl-optimization/48263
7887 * optabs.c (expand_binop_directly): Reinstate convert_modes code
7888 and original commutative_p handling. Use maybe_gen_insn.
7890 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7892 * reload.c (find_reloads_subreg_address): Add address_reloaded
7893 parameter and return true there if the full address has been
7895 (find_reloads_toplev): Pass address_reloaded flag.
7896 (find_reloads_address_1): Don't use address_reloaded parameter.
7898 2011-03-24 Jeff Law <law@redhat.com>
7900 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7901 unused variable "ann".
7902 (remove_unused_locals): Likewise.
7904 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7907 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7910 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7912 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7913 for invalid symbolic addresses.
7914 (s390_secondary_reload): Don't use s390_check_symref_alignment for
7917 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7919 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7920 the argument in calls to fold_truth_not_expr.
7922 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7924 * tree.c (record_node_allocation_statistics): New function.
7925 (make_node_stat, copy_node_stat, build_string): Call it.
7926 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7927 (build1_stat, build_omp_clause): Likewise.
7929 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7931 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7934 2011-03-24 Richard Guenther <rguenther@suse.de>
7936 PR tree-optimization/48271
7937 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7938 blocks that still exist.
7940 2011-03-24 Richard Guenther <rguenther@suse.de>
7942 PR tree-optimization/48270
7943 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7944 not free datarefs before ddrs.
7946 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7948 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7949 from the address built for a reference with variable offset.
7951 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7954 * config/i386/i386.md (*movdf_internal_rex64): Do not split
7955 alternatives that can be handled with movq or movabsq insn.
7956 (*movdf_internal): Disable for !TARGET_64BIT.
7957 (*movdf_internal_nointeger): Ditto.
7958 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7960 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7962 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7963 (FUNCTION_ARG_ADVANCE): Likewise.
7964 * tm.texi.in: Change references to them to hook references.
7965 * tm.texi: Regenerate.
7966 * targhooks.c (default_function_arg): Eliminate check for target macro.
7967 (default_function_incoming_arg): Likewise.
7968 (default_function_arg_advance): Likewise.
7969 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7970 (function_arg_advance): Likewise.
7971 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7973 2011-03-24 Richard Guenther <rguenther@suse.de>
7976 * tree-object-size.c (addr_object_size): Do not double-account
7977 for MEM_REF offsets.
7979 2011-03-24 Diego Novillo <dnovillo@google.com>
7981 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7982 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7983 (lto_input_data_block): Move from lto-opts.c. Make extern.
7985 (lto_input_string): Rename from input_string. Make extern.
7987 * lto-streamer-out.c (lto_output_string_with_length): Rename from
7988 output_string_with_length.
7989 Output 0 to indicate a non-NULL string. Update all callers to
7991 (lto_output_string): Rename from output_string. Make extern.
7993 (lto_output_decl_state_streams): Make extern.
7994 (lto_output_decl_state_refs): Make extern.
7995 * lto-streamer.h (lto_input_string): Declare.
7996 (lto_input_data_block): Declare.
7997 (lto_output_string): Declare.
7998 (lto_output_string_with_length): Declare.
7999 (lto_output_decl_state_streams): Declare.
8000 (lto_output_decl_state_refs): Declare.
8002 2011-03-24 Richard Guenther <rguenther@suse.de>
8004 PR tree-optimization/46562
8005 * tree.c (build_invariant_address): New function.
8006 * tree.h (build_invariant_address): Declare.
8007 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8008 a renamed function moved ...
8009 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8010 Take valueization callback parameter.
8011 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8012 * gimple-fold.h: New file.
8013 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8014 (ccp_fold, fold_const_aggregate_ref,
8015 fold_ctor_reference, fold_nonarray_ctor_reference,
8016 fold_array_ctor_reference, fold_string_cst_ctor_reference,
8017 get_base_constructor): Move ...
8018 * gimple-fold.c: ... here.
8019 (gimple_fold_stmt_to_constant_1): New function
8020 split out from ccp_fold. Take a valueization callback parameter.
8021 Valueize all operands.
8022 (gimple_fold_stmt_to_constant): New wrapper function.
8023 (fold_const_aggregate_ref_1): New function split out from
8024 fold_const_aggregate_ref. Take a valueization callback parameter.
8025 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8026 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8027 invariant POINTER_PLUS_EXPRs to invariant form.
8028 (vn_valueize): New function.
8029 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8030 * tree-vrp.c (vrp_valueize): New function.
8031 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8032 to fold statements to constants.
8033 * tree-ssa-pre.c (eliminate): Properly guard propagation of
8034 function declarations.
8035 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8036 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8038 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8040 * config/h8300/predicates.md (jump_address_operand): Fix register
8043 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
8045 * doc/invoke.texi (max-stores-to-sink): Document.
8046 * params.h (MAX_STORES_TO_SINK): Define.
8047 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8048 if either vectorization or if-conversion is disabled.
8049 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8050 tree-vect-data-refs.c vect_equal_offsets.
8051 (dr_equal_offsets_p): New function.
8052 (find_data_references_in_bb): Remove static.
8053 * tree-data-ref.h (find_data_references_in_bb): Declare.
8054 (dr_equal_offsets_p): Likewise.
8055 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8056 (vect_drs_dependent_in_basic_block): Update calls to
8058 (vect_check_interleaving): Likewise.
8059 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8060 (cond_if_else_store_replacement): Rename to...
8061 (cond_if_else_store_replacement_1): ... this. Change arguments and
8063 (cond_if_else_store_replacement): New function.
8064 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8065 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8067 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
8070 * config/arm/arm.md (casesi): Use the gen_int_mode() function
8071 to subtract lower bound instead of GEN_INT().
8073 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
8078 * doc/extend.texi (Alignment): Move section to match order in TOC.
8079 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8080 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8082 2011-03-23 Jeff Law <law@redhat.com>
8084 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8085 before removing the edge.
8087 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8088 it may have been freed by redirect_branch_edge or
8089 redirect_edge_succ_nodup.
8091 2011-03-23 Richard Guenther <rguenther@suse.de>
8093 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8094 (check_va_list_escapes): Likewise.
8095 (check_all_va_list_escapes): Likewise.
8097 2011-03-23 Richard Guenther <rguenther@suse.de>
8099 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8100 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8101 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8102 (alias.o): Likewise.
8103 (ipa-type-escape.o): Remove.
8104 (ipa-struct-reorg.o): Likewise.
8105 (GTFILES): Remove ipa-struct-reorg.c.
8106 * alias.c: Do not include ipa-type-escape.h.
8107 * tree-ssa-alias.c: Likewise.
8108 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8109 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8110 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8111 and ipa-type-escape passes.
8112 * tree-pass.h (pass_ipa_type_escape): Remove.
8113 (pass_ipa_struct_reorg): Likewise.
8114 * ipa-struct-reorg.h: Remove.
8115 * ipa-struct-reorg.c: Likewise.
8116 * ipa-type-escape.h: Likewise.
8117 * ipa-type-escape.c: Likewise.
8118 * doc/invoke.texi (-fipa-struct-reorg): Remove.
8119 (--param struct-reorg-cold-struct-ratio): Likewise.
8120 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8121 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8122 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8124 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8126 * config/s390/2084.md: Enable all insn reservations also for z9_ec
8127 cpu attribute value.
8128 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8129 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8130 * config/s390/s390.c (processor_flags_table): New constant array.
8131 (s390_handle_arch_option): Remove.
8132 (s390_handle_option): Remove s390_handle_arch_option invocations
8133 and OPT_mwarn_framesize_ handling.
8134 (s390_option_override): Remove s390_handle_arch_option invocation.
8135 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8137 * config/s390/s390.md (cpu attribute): Add z9_ec value.
8138 * config/s390/s390.opt (s390_tune, s390_arch)
8139 (march=): Replace s390_arch_option enum and values with
8140 processor_type. Set variable name to s390_arch. Set
8141 initialization value.
8142 (mtune=): Replace s390_arch_option with processor_type. Set
8143 variable name to s390_tune. Set initialization value.
8145 2011-03-23 Julian Brown <julian@codesourcery.com>
8147 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8148 accesses which are not naturally aligned.
8150 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8153 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8155 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8157 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8158 parameter from "int" to "enum insn_code".
8159 (expand_operand_type): New enum.
8160 (expand_operand): New structure.
8161 (create_expand_operand): New function.
8162 (create_fixed_operand, create_output_operand): Likewise
8163 (create_input_operand, create_convert_operand_to): Likewise.
8164 (create_convert_operand_from, create_address_operand): Likewise.
8165 (create_integer_operand): Likewise.
8166 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8167 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8168 (expand_insn, expand_jump_insn): Likewise.
8169 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8170 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8171 (expand_movstr, expand_builtin___clear_cache): Likewise.
8172 (expand_builtin_lock_release): Likewise.
8173 * explow.c (allocate_dynamic_stack_space): Likewise.
8174 (probe_stack_range): Likewise. Allow check_stack to FAIL,
8175 and use the default handling in that case.
8176 * expmed.c (check_predicate_volatile_ok): Delete.
8177 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8178 (emit_cstore): Likewise.
8179 * expr.c (emit_block_move_via_movmem): Likewise.
8180 (set_storage_via_setmem, expand_assignment): Likewise.
8181 (emit_storent_insn, try_casesi): Likewise.
8182 (emit_single_push_insn): Likewise. Allow the expansion to fail.
8183 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8184 (expand_vec_shift_expr, expand_binop_directly): Likewise.
8185 (expand_twoval_unop, expand_twoval_binop): Likewise.
8186 (expand_unop_direct, emit_indirect_jump): Likewise.
8187 (emit_conditional_move, vector_compare_rtx): Likewise.
8188 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8189 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8190 (expand_sync_lock_test_and_set): Likewise.
8191 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
8192 (emit_unop_insn): Likewise.
8193 (expand_copysign_absneg): Change icode to an insn_code.
8194 (create_convert_operand_from_type): New function.
8195 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8196 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8197 (expand_insn, expand_jump_insn): Likewise.
8198 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8199 than const_int_operand for operand 2.
8201 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8203 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8206 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8208 * emit-rtl.c (emit_pattern_before_noloc): New function.
8209 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8210 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8211 (emit_pattern_after_noloc): New function.
8212 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8213 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8215 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8217 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8218 (__ffsDI2): Likewise.
8220 2011-03-22 Richard Henderson <rth@redhat.com>
8222 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8223 of !TARGET_ABI_OPEN_VMS.
8224 (alpha_trampoline_init, alpha_start_function): Likewise.
8225 (alpha_expand_epilogue, alpha_file_start): Likewise.
8226 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8227 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8228 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8229 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8230 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8232 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8234 * config/s390/s390-opts.h: New.
8235 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8236 s390_arch_flags, s390_warn_framesize, s390_stack_size,
8237 s390_stack_guard): Remove.
8238 (s390_handle_arch_option): Return void. Take enum
8239 s390_arch_option value instead of string and searching array.
8240 (s390_handle_option): Don't assert that global structures are in
8241 use. Access variables via opts pointer. Use error_at. Don't use
8242 sscanf for -mstack-guard= or -mstack-size=. Update call to
8243 s390_handle_arch_option.
8244 (s390_option_override): Update call to s390_handle_arch_option.
8245 (s390_emit_prologue): Use %d format for s390_stack_size in
8246 diagnostic. Use %wd for HOST_WIDE_INT.
8247 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8248 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8249 * config/s390/s390.opt (config/s390/s390-opts.h): New
8250 HeaderInclude entry.
8251 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8252 s390_arch_flags, s390_warn_framesize): New Variable entries.
8253 (s390_arch_option): New Enum and EnumValue entries.
8254 (march=): Use Enum instead of Var.
8255 (mstack-guard=, mstack-size=): Use UInteger and Var.
8258 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8260 * config/score/score.c (score_handle_option): Don't assert that
8261 global structures are in use. Access target_flags via opts
8262 pointer. Use value of -march= option to determine target_flags
8264 * config/score/score.opt (march=): Use Enum.
8265 (score_arch): New Enum and EnumValue entries.
8267 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8269 * config/mep/mep.c (option_mtiny_specified): Remove.
8270 (mep_option_override): Move register handling for -mivc2 from
8271 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
8272 instead of option_mtiny_specified.
8273 (mep_handle_option): Access target_flags via opts pointer. Don't
8274 assert that global structures are in use. Defer part of -mivc2
8275 handling and move it to mep_option_override.
8276 * config/mep/mep.opt (IVC2): New Mask entry.
8277 (mivc2): Use Var and Defer instead of Mask.
8279 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8281 * config/v850/v850-opts.h: New.
8282 * config/v850/v850.c (small_memory): Replace with
8283 small_memory_physical_max array. Make that array static const.
8284 (v850_handle_memory_option): Take integer value of argument. Take
8285 gcc_options pointer, option text and location. Return void.
8286 Update for changes to small memory structures.
8287 (v850_handle_option): Access target_flags via opts pointer. Don't
8288 assert that global structures are in use. Update calls to
8289 v850_handle_memory_option.
8290 (v850_encode_data_area): Update references to small memory settings.
8291 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8292 (enum small_memory_type): Move to v850-opts.h.
8293 * config/v850/v850.opt (config/v850/v850-opts.h): New
8294 HeaderInclude entry.
8295 (small_memory_max): New Variable entry.
8296 (msda): Replace by pair of options msda= and msda-. Use UInteger.
8297 (mtda, mzda): Likewise.
8299 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8301 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8302 pointer. Don't assert that global structures are in use.
8304 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8306 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8307 via opts pointer. Don't assert that global structures are in use.
8309 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8311 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8312 (munix=93): Use Var.
8313 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8314 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8315 * config/pa/pa-opts.h: New.
8316 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8317 (pa_handle_option): Don't assert that global structures are in
8318 use. Access target_flags via opts pointer. Don't handle
8319 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8321 (pa_option_override): Handle deferred OPT_mfixed_range_.
8323 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8325 * config/mn10300/mn10300-opts.h: New.
8326 * config/mn10300/mn10300.c (mn10300_processor,
8327 mn10300_tune_string): Remove.
8328 (mn10300_handle_option): Don't assert that global structures are
8329 in use. Access mn10300_processor via opts pointer. Don't handle
8331 * config/mn10300/mn10300.h (enum processor_type): Move to
8333 (mn10300_processor): Remove.
8334 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8335 HeaderInclude entry.
8336 (mn10300_processor): New Variable entry.
8339 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8341 * config/microblaze/microblaze.c: Don't include opts.h.
8342 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8343 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8344 (mno-clearbss): Use Var and Warn.
8346 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8348 * config/m32r/m32r-opts.h: New.
8349 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8350 (m32r_handle_option): Don't assert that global structures are in
8351 use. Access target_flags and m32r_cache_flush_func via opts
8352 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
8353 OPT_mno_flush_trap here.
8354 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8355 include of m32r-opts.h.
8356 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8357 HeaderInclude entry.
8358 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8359 (mmodel=): Use Enum and Var.
8360 (m32r_model): New Enum and EnumValue entries.
8361 (mno-flush-trap): Use Var.
8362 (msdata=): Use Enum and Var.
8363 (m32r_sdata): New Enum and EnumValue entries.
8365 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8367 * config/m32c/m32c.c: Don't include opts.h.
8368 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8369 m32c_handle_option): Remove.
8370 (m32c_option_override): Check global_options_set.x_target_memregs
8371 instead of target_memregs_set.
8372 * config/m32c/m32c.h (target_memregs): Remove.
8373 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8376 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8378 * config/iq2000/iq2000-opts.h: New.
8379 * config/iq2000/iq2000.c: Don't include opts.h.
8380 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8381 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8382 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8383 HeaderInclude entry.
8384 (iq2000_tune): New Variable entry.
8385 (march=): Add comment. Use Enum.
8386 (iq2000_arch): New Enum and EnumValue entries.
8387 (mcpu=): Use Enum and Var.
8388 (iq2000_tune): New Enum and EnumValue entries.
8390 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8392 * config/ia64/ia64-opts.h: New.
8393 * config/ia64/ia64.c (ia64_tune): Remove.
8394 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8396 (ia64_option_override): Handle deferred OPT_mfixed_range_.
8397 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8398 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8399 HeaderInclude entry.
8400 (ia64_tune): New Variable entry.
8401 (mfixed-range=): Use Defer and Var.
8402 (mtune=): Use Enum and Var.
8403 (ia64_tune): New Enum and EnumValue entries.
8405 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8407 * config/frv/frv-opts.h: New.
8408 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8410 (frv_cpu_type): Remove.
8411 * config/frv/frv.c: Don't include opts.h.
8412 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8413 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8414 (frv_cpu_type): New Variable entry.
8415 (frv_cpu): New Enum and EnumValue entries.
8417 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8419 * config/cris/cris.c (cris_handle_option): Access target_flags via
8420 opts pointer. Don't assert that global structures are in use.
8421 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8422 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8424 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8426 * config/bfin/bfin-opts.h: New.
8427 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8428 bfin_si_revision, bfin_workarounds): Remove.
8429 (bfin_cpus): Make static const.
8430 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8431 not bfin_lib_id_given.
8432 (bfin_handle_option): Don't set bfin_lib_id_given. Access
8433 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8434 pointer. Use error_at. Don't assert that global structures are in use.
8435 * config/bfin/bfin.h: Include bfin-opts.h.
8436 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8437 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8438 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8439 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8442 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8444 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8445 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8446 or -msoft-float here.
8447 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8448 -msoft-float and -mhard-float.
8449 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8450 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8452 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8454 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8455 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8457 (LIBGCC_SPEC): Don't handle -msoft-float.
8458 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8460 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8462 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8463 -mfloat-abi=*, not -msoft-float and -mhard-float.
8464 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8466 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8467 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8468 mhard-float and msoft-float.
8469 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8470 mfloat-abi=soft in comments, not mhard-float and msoft-float.
8471 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8472 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8474 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8475 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8477 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8479 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8482 2011-03-22 Richard Henderson <rth@redhat.com>
8484 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8485 TARGET_ABI_WINDOWS_NT.
8486 (alpha_output_function_end_prologue): Likewise.
8487 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8488 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8489 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8490 (trap, *movsi_nt_vms): Likewise.
8491 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8492 (*tablejump_osf_nt_internal): Remove.
8493 * config/alpha/predicates.md (input_operand): Only test Pmode.
8495 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8497 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8498 via opts pointer. Use error_at. Don't assert that global
8499 structures are in use.
8501 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8503 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8504 (ix86_handle_option): Access ix86_isa_flags and
8505 ix86_isa_flags_explicit via opts pointer. Don't assert that
8506 global structures are in use.
8507 (ix86_function_specific_save, ix86_function_specific_restore):
8508 Update ix86_isa_flags_explicit field name.
8509 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8510 (ix86_isa_flags_explicit): Rename TargetSave entry to
8511 x_ix86_isa_flags_explicit.
8513 2011-03-22 Richard Henderson <rth@redhat.com>
8515 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8516 (alpha_option_override, direct_return): Likewise.
8517 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8518 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8519 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8520 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8521 (alpha_expand_epilogue, alpha_end_function): Likewise.
8522 (alpha_init_libfuncs): Likewise.
8523 (struct machine_function): Remove unicosmk members.
8524 (print_operand) ['t']: Remove.
8525 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8526 unicosmk_output_module_name, unicosmk_output_common,
8527 current_section_align, unicosmk_output_text_section_asm_op,
8528 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8529 unicosmk_section_type_flags, unicosmk_unique_section,
8530 unicosmk_asm_named_section, unicosmk_insert_attributes,
8531 unicosmk_output_align, unicosmk_defer_case_vector,
8532 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8533 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8534 unicosmk_output_ssib, unicosmk_add_call_info_word,
8535 unicosmk_extern_head, unicosmk_output_default_externs,
8536 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8537 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8538 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8539 * config/alpha/alpha-protos.h: Update.
8540 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8541 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8542 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8543 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8544 (*mulsi_se, mulvsi3): Likewise.
8545 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8546 (*divmodsi_internal, call, call_value, realign): Likewise.
8547 (moddi3, umoddi3): Likewise; remove duplicate expander.
8548 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8549 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8550 (*movdi_nofix): Remove r/U alternative.
8551 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8552 * config/alpha/constraints.md ("U"): Remove.
8553 * config/alpha/predicates.md (call_operand"): Don't test
8554 TARGET_ABI_UNICOSMK.
8556 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8558 * target.def (handle_option): Take gcc_options and
8559 cl_decoded_option pointers and location_t.
8560 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8561 * doc/tm.texi: Regenerate.
8562 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8563 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8564 * lto-opts.c (lto_reissue_options): Generate option structure for
8565 targetm.handle_option call.
8566 * opts.c (target_handle_option): Update call to
8567 targetm.handle_option. Remove assertions about values now passed
8569 * targhooks.c (default_target_handle_option): New.
8570 * targhooks.h (default_target_handle_option): Declare.
8571 * config/alpha/alpha.c: Include opts.h.
8572 (alpha_handle_option): Update to new hook interface.
8573 * config/arm/arm.c: Include opts.h.
8574 (arm_handle_option): Update to new hook interface.
8575 * config/arm/t-arm (arm.o): Update dependencies.
8576 * config/bfin/bfin.c: Include opts.h.
8577 (bfin_handle_option): Update to new hook interface.
8578 * config/cris/cris.c: Include opts.h.
8579 (cris_handle_option): Update to new hook interface.
8580 * config/frv/frv.c: Include opts.h.
8581 (frv_handle_option): Update to new hook interface.
8582 * config/i386/i386.c: Include opts.h.
8583 (ix86_handle_option): Update to new hook interface.
8584 (ix86_valid_target_attribute_inner_p): Generate option structure
8585 for call to ix86_handle_option.
8586 * config/i386/t-i386 (i386.o): Update dependencies.
8587 * config/ia64/ia64.c: Include opts.h.
8588 (ia64_handle_option): Update to new hook interface.
8589 * config/ia64/t-ia64 (ia64.o): Update dependencies.
8590 * config/iq2000/iq2000.c: Include opts.h.
8591 (iq2000_handle_option): Update to new hook interface.
8592 * config/m32c/m32c.c: Include opts.h.
8593 (m32c_handle_option): Update to new hook interface.
8594 * config/m32r/m32r.c: Include opts.h.
8595 (m32r_handle_option): Update to new hook interface.
8596 * config/m68k/m68k.c: Include opts.h.
8597 (m68k_handle_option): Update to new hook interface.
8598 * config/mep/mep.c: Include opts.h.
8599 (mep_handle_option): Update to new hook interface.
8600 * config/microblaze/microblaze.c: Include opts.h.
8601 (microblaze_handle_option): Update to new hook interface.
8602 * config/mips/mips.c: Include opts.h.
8603 (mips_handle_option): Update to new hook interface.
8604 * config/mn10300/mn10300.c: Include opts.h.
8605 (mn10300_handle_option): Update to new hook interface.
8606 * config/pa/pa.c: Include opts.h.
8607 (pa_handle_option): Update to new hook interface.
8608 * config/pdp11/pdp11.c: Include opts.h.
8609 (pdp11_handle_option): Update to new hook interface.
8610 * config/rs6000/rs6000.c: Include opts.h.
8611 (rs6000_handle_option): Update to new hook interface.
8612 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8613 * config/rx/rx.c: Include opts.h.
8614 (rx_handle_option): Update to new hook interface.
8615 * config/s390/s390.c: Include opts.h.
8616 (s390_handle_option): Update to new hook interface.
8617 * config/score/score.c: Include opts.h.
8618 (score_handle_option): Update to new hook interface.
8619 * config/sh/sh.c: Include opts.h.
8620 (sh_handle_option): Update to new hook interface.
8621 * config/sparc/sparc.c: Include opts.h.
8622 (sparc_handle_option): Update to new hook interface.
8623 * config/v850/v850.c: Include opts.h.
8624 (v850_handle_option): Update to new hook interface.
8626 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8628 * gcc.c (driver_unknown_option_callback): Only permit and save
8629 unknown -Wno- options.
8630 (driver_wrong_lang_callback): Save options directly instead of via
8631 driver_unknown_option_callback.
8633 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8635 * combine.c (simplify_set): Try harder to find the best CC mode when
8636 simplifying a nested COMPARE on the RHS.
8638 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8640 * config/alpha/gnu.h: Remove.
8641 * config/arc: Remove directory.
8642 * config/arm/netbsd.h: Remove.
8643 * config/arm/t-pe: Remove.
8644 * config/crx: Remove directory.
8645 * config/i386/netbsd.h: Remove.
8646 * config/m68hc11: Remove directory.
8647 * config/m68k/uclinux-oldabi.h: Remove.
8648 * config/mcore/mcore-pe.h: Remove.
8649 * config/mcore/t-mcore-pe: Remove.
8650 * config/netbsd-aout.h: Remove.
8651 * config/rs6000/gnu.h: Remove.
8652 * config/sh/sh-symbian.h: Remove.
8653 * config/sh/symbian-base.c: Remove.
8654 * config/sh/symbian-c.c: Remove.
8655 * config/sh/symbian-cxx.c: Remove.
8656 * config/sh/symbian-post.h: Remove.
8657 * config/sh/symbian-pre.h: Remove.
8658 * config/sh/t-symbian: Remove.
8659 * config/svr3.h: Remove.
8660 * config/vax/netbsd.h: Remove.
8661 * config.build: Don't handle i[34567]86-*-pe.
8662 * config.gcc: Remove handling of deprecations for most deprecated
8664 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8665 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8666 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8667 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8668 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8669 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8671 * config.host: Don't handle i[34567]86-*-pe.
8672 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8673 (ASM_SPEC32): Don't handle -mcall-gnu.
8674 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8676 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8677 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8678 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8679 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8680 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8681 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8682 conditional on SYMBIAN.
8683 * configure.ac: Don't handle powerpc*-*-gnu*.
8684 * configure: Regenerate.
8685 * doc/extend.texi (interrupt attribute): Don't mention CRX.
8686 * doc/install-old.texi (m6811, m6812): Don't mention.
8687 * doc/install.texi (arc-*-elf*): Don't document multilib option.
8688 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8689 (m68k-uclinuxoldabi): Don't mention.
8690 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8692 (-mcall-gnu): Remove.
8693 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8694 families): Remove constraint documentation.
8696 2011-03-22 Marius Strobl <marius@FreeBSD.org>
8698 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8699 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8700 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8702 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8705 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8706 vector when peeking at the next token for vector, don't expand the
8709 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
8711 * config/avr/avr-protos.h (expand_epilogue): Change prototype
8712 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8713 * config/avr/avr.c (init_cumulative_args)
8714 (avr_function_arg_advance): Use it.
8715 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8717 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8718 (avr_function_ok_for_sibcall): ...this new function.
8719 (avr_lookup_function_attribute1): New static Function.
8720 (avr_naked_function_p, interrupt_function_p)
8721 (signal_function_p, avr_OS_task_function_p)
8722 (avr_OS_main_function_p): Use it.
8723 * config/avr/avr.md ("sibcall", "sibcall_value")
8724 ("sibcall_epilogue"): New expander.
8725 ("*call_insn", "*call_value_insn"): New insn.
8726 ("call_insn", "call_value_insn"): Remove
8727 ("call", "call_value", "epilogue"): Change expander to handle
8730 2011-03-21 Nick Clifton <nickc@redhat.com>
8732 * doc/invoke.texi (Overall Options): Move closing brace to end of
8734 (Optimization Options): Add missing @gol.
8735 (Directory Options): Likewise.
8736 (i386 and x86-64 Options): Likewise.
8737 (RS6000 and PowerPC Options): Likewise.
8738 (i386 and x86-64 Windows Options): Likewise.
8739 (V850 Options): Add text missing from descriptions.
8741 2011-03-22 Richard Henderson <rth@redhat.com>
8743 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8744 (avr_incoming_return_addr_rtx): New.
8745 (emit_push_byte): New.
8746 (expand_prologue): Use it. Remove incorrect dwarf annotation for
8747 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
8748 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
8749 (emit_pop_byte): New.
8750 (expand_epilogue): Use it. Pop frame pointer by bytes.
8751 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8752 (INCOMING_RETURN_ADDR_RTX): New.
8753 (INCOMING_FRAME_SP_OFFSET): New.
8754 (ARG_POINTER_CFA_OFFSET): New.
8755 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8756 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8759 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8761 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8763 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8764 (FUNCTION_ARG_ADVANCE): Likewise.
8765 * tm.texi.in: Change references to them to hook references.
8766 * tm.texi: Regenerate.
8767 * targhooks.c (default_function_arg): Eliminate check for target
8769 (default_function_incoming_arg): Likewise.
8770 (default_function_arg_advance): Likewise.
8771 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8772 (function_arg_advance): Likewise.
8773 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8775 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8777 * tree.c (build_call_1): New function.
8778 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8780 2011-03-22 Richard Guenther <rguenther@suse.de>
8782 PR tree-optimization/48228
8783 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8784 for single-arg PHIs.
8786 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
8788 PR rtl-optimization/48143
8789 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8790 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8791 sse2_cvtps2pd): Likewise.
8793 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8795 * recog.c (canonicalize_change_group): Use validate_unshare_change.
8797 2011-03-22 Richard Guenther <rguenther@suse.de>
8799 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8800 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8801 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8802 and REALIGN_LOAD_EXPR.
8803 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8804 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8805 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8806 DOT_PROD_EXPR case ...
8807 (expand_expr_real_2): ... here.
8808 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8809 and REALIGN_LOAD_EXPR.
8810 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8811 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8812 (vect_create_epilog_for_reduction): Likewise.
8813 (vectorizable_reduction): Likewise.
8814 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8815 * tree-vect-stmts.c (vectorizable_load): Likewise.
8817 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8819 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8821 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8823 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8824 handling for PLTOFF/GOTOFF.
8826 2011-03-22 Nick Clifton <nickc@redhat.com>
8828 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8829 trailing backslash from the end of the macro definition.
8831 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8833 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8836 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8838 * expr.h (prepare_operand): Move to...
8839 * optabs.h (prepare_operand): ...here and change the insn code
8840 parameter from "int" to "enum insn_code".
8841 (insn_operand_matches): Declare.
8842 * expr.c (init_expr_target): Use insn_operand_matches.
8843 (compress_float_constant): Likewise.
8844 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8845 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8846 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8847 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8849 (gen_cond_trap): Likewise.
8850 (prepare_operand): Likewise. Change icode to an insn_code.
8851 (insn_operand_matches): New function.
8852 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8853 * reload1.c (gen_reload): Likewise.
8854 * targhooks.c (default_secondary_reload): Likewise.
8856 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8858 * config/alpha/alpha.md (unspec): New define_c_enum.
8861 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8864 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8865 between a call and its CALL_ARG_LOCATION note.
8867 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8869 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8871 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8875 * c-common.c (shorten_compare): If primopN is first sign-extended
8876 to opN and then zero-extended to result type, set primopN to opN.
8878 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8880 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8881 for barrier handlers.
8883 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8885 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8886 UNSPEC constants to be in the unspec enumeration, and redefine
8887 all UNSPECV constants to be in the unspecv enumeration, so that
8888 dumps print which unspec/unspec_volatile this is.
8889 * config/rs6000/vector.md (UNSPEC_*): Ditto.
8890 * config/rs6000/paired.md (UNSPEC_*): Ditto.
8891 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8892 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8893 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8895 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8896 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8897 UNSPECV_LWSYNC, since these are used as unspec_volatile.
8898 * config/rs6000/sync.md (isync, lwsync): Ditto.
8900 2011-03-21 Richard Guenther <rguenther@suse.de>
8902 * params.def (lto-min-partition): Fix typo.
8904 2011-03-21 Richard Guenther <rguenther@suse.de>
8907 * c-decl.c (grokdeclarator): Drop to the main variant only
8908 for array types. Drop flag_gen_aux_info check.
8910 2011-03-21 Richard Guenther <rguenther@suse.de>
8912 PR translation/47911
8913 * params.def (lto-partitions): Fix typo.
8914 (lto-min-partition): Fix wording.
8916 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
8918 * config/rs6000/t-freebsd: Remove duplication from file.
8920 2011-03-21 Richard Guenther <rguenther@suse.de>
8923 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8925 2011-03-21 Richard Guenther <rguenther@suse.de>
8928 * params.def (lto-partitions): Require at least 1 partition.
8930 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8932 * gthr-solaris.h: Remove.
8933 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8934 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8935 (LIB_SPEC): Likewise.
8936 * config/sol2.opt (threads): Remove.
8937 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8938 (sparc*-*-solaris2*): Likewise.
8939 * configure.ac (enable_threads): Enable solaris support.
8940 * configure: Regenerate.
8941 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8942 * doc/install.texi (Configuration, --enable-threads=lib): Remove
8945 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8947 * config.gcc: Obsolete *-*-solaris2.8*.
8948 * doc/install.texi (Specific, *-*-solaris2*): Document it.
8950 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8953 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8954 reference. Solaris 8 perl works.
8956 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8959 * doc/install.texi (Prerequisites): Move jar etc. up.
8960 Explain support library version requirements.
8962 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8965 * doc/install.texi (Prerequisites): Move Perl to build
8966 requirements. Always necessary on Solaris 2 with Sun ld.
8968 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8970 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8972 (Specific, i?86-*-solaris2.[89]): Likewise.
8973 (Specific, i?86-*-solaris2.10): Likewise.
8974 (Specific, mips-sgi-irix6): Likewise.
8975 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8976 Update for binutils 2.21.
8978 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8980 * configure.ac (gcc_cv_lto_plugin): Fix typo.
8981 Allow -fuse-linker-plugin for non-default plugin linker.
8982 * configure: Regenerate.
8984 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
8987 * gengtype.c (files_rules): Added rule for cp/parser.h.
8989 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8992 * config/s390/s390.c (s390_delegitimize_address): Don't call
8993 lowpart_subreg if orig_x has BLKmode.
8995 2011-03-21 Kai Tietz <ktietz@redhat.com>
8998 * doc/plugins.texi: Adjust documentation for plugin register_callback.
8999 * tree.h (attribute_spec): Add new member affects_type_identity.
9000 * attribs.c (empty_attribute_table): Adjust attribute_spec
9002 * config/alpha/alpha.c: Likewise.
9003 * config/arc/arc.c: Likewise.
9004 * config/arm/arm.c: Likewise.
9005 * config/avr/avr.c: Likewise.
9006 * config/bfin/bfin.c: Likewise.
9007 * config/crx/crx.c: Likewise.
9008 * config/darwin.h: Likewise.
9009 * config/h8300/h8300.c: Likewise.
9010 * config/i386/cygming.h: Likewise.
9011 * config/i386/i386.c: Likewise.
9012 * config/ia64/ia64.c: Likewise.
9013 * config/m32c/m32c.c: Likewise.
9014 * config/m32r/m32r.c: Likewise.
9015 * config/m68hc11/m68hc11.c: Likewise.
9016 * config/m68k/m68k.c: Likewise.
9017 * config/mcore/mcore.c: Likewise.
9018 * config/mep/mep.c: Likewise.
9019 * config/microblaze/microblaze.c: Likewise.
9020 * config/mips/mips.c: Likewise.
9021 * config/rs6000/rs6000.c: Likewise.
9022 * config/rx/rx.c: Likewise.
9023 * config/sh/sh.c: Likewise.
9024 * config/sol2.h: Likewise.
9025 * config/sparc/sparc.c: Likewise.
9026 * config/spu/spu.c: Likewise.
9027 * config/stormy16/stormy16.c: Likewise.
9028 * config/v850/v850.c: Likewise.
9030 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9032 * simplify-rtx.c (simplify_binary_operation_1): Handle
9033 (xor (and A B) C) case when B and C are both constants.
9035 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
9037 * tree-dfa.c (add_referenced_var): Fix typo in comment.
9039 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
9042 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9044 2011-03-20 Jakub Jelinek <jakub@redhat.com>
9046 PR rtl-optimization/48156
9047 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9048 assume df and df_lr are not NULL.
9050 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9053 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9054 between a call and its CALL_ARG_LOCATION note.
9056 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
9059 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9060 between a call and its corresponding CALL_ARG_LOCATION note.
9062 2011-03-19 Anatoly Sokolov <aesok@post.ru>
9064 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9065 instead of loop. Use HARD_REGISTER_NUM_P predicate.
9066 * haifa-sched.c (setup_ref_regs): Ditto.
9067 * caller-save.c (add_used_regs_1): Ditto.
9068 * dse.c (look_for_hardregs): Ditto.
9069 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9070 * sched-rgn.c (check_live_1): Ditto.
9072 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9074 * c-decl.c (diagnose_mismatched_decls): Give an error for
9075 redefining a typedef with variably modified type.
9077 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9079 * c-decl.c (grokfield): Don't allow typedefs for structures or
9080 unions with no tag by default.
9081 * doc/extend.texi (Unnamed Fields): Update.
9083 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
9085 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9086 Rewrite using indirect functions.
9087 (lwp_slwpcb): Ditto.
9088 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9089 (avx_vinsertf128<mode>): Ditto.
9091 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9093 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9096 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9098 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9099 splitting between a call and its corresponding CALL_ARG_LOCATION note.
9101 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9103 PR rtl-optimization/48170
9104 * gcse.c (hoist_code): Remove bogus asserts.
9106 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
9108 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9109 computation for prologue/epilogue.
9111 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9113 * Makefile.in (check-consistency): Remove.
9115 2011-03-18 Jakub Jelinek <jakub@redhat.com>
9118 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9119 arange_table_in_use is 0, but either text_section_used or
9120 cold_text_section_used is true. Don't call it if
9121 !info_section_emitted.
9123 2011-03-18 Anatoly Sokolov <aesok@post.ru>
9125 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9126 FUNCTION_VALUE_REGNO_P): Remove.
9127 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9129 * config/avr/avr.c (avr_ret_register): Make static inline.
9130 (avr_function_value_regno_p): New function.
9131 (avr_libcall_value): Make static. Add 'func' argument.
9132 (avr_function_value): Make static. Rename 'func' argument to
9133 'fn_decl_or_type', forward it to avr_libcall_value. Call
9134 avr_ret_register function instead of RET_REGISTER macro.
9135 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9137 2011-03-18 Jason Merrill <jason@redhat.com>
9140 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9142 2011-03-18 Richard Guenther <rguenther@suse.de>
9144 * doc/install.texi (--enable-gold): Remove.
9145 (--with-plugin-ld): Document.
9146 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9148 2011-03-18 Andrew Pinski <pinskia@gmail.com>
9151 * expr.c (optimize_bitfield_assignment_op): Revamp to work
9152 again after expansion changes.
9154 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
9156 * combine.c (try_combine): Do simplification only call of
9157 subst() on i2 even when i1 is present. Update comments.
9159 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
9161 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9162 and UNSPEC_PCREL_SYMOFF.
9164 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9166 * config/s390/s390.md: Use define_c_enum for the unspec constant
9169 2011-03-18 Richard Henderson <rth@redhat.com>
9170 Jakub Jelinek <jakub@redhat.com>
9173 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9174 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9176 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9179 * combine.c (cant_combine_insn_p): Don't check zero/sign
9180 extended hard registers.
9182 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9185 * combine.c (cant_combine_insn_p): Check zero/sign extended
9188 2011-03-17 Anatoly Sokolov <aesok@post.ru>
9190 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9191 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9192 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9193 Change return type to bool.
9194 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9196 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9199 * var-tracking.c (prepare_call_arguments): If CALL target
9200 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9201 pc instead of looking it up using cselib_lookup and use
9202 Pmode for it if x has VOIDmode.
9203 * dwarf2out.c (gen_subprogram_die): If also both first and
9204 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9207 * function.c (assign_parms): For data.passed_pointer parms
9208 use MEM of data.entry_parm instead of data.entry_parm itself
9209 as DECL_INCOMING_RTL.
9210 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9211 also when passed and declared mode is the same, DECL_RTL
9212 is a MEM with pseudo as address and DECL_INCOMING_RTL is
9215 2011-03-16 Jeff Law <law@redhat.com>
9217 PR rtl-optimization/37273
9218 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9219 handle them like argument loads from stack slots. Do not double
9220 count memory for memory constants and argument loads from stack slots.
9222 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9225 * var-tracking.c (prepare_call_arguments): Check SUBREG.
9227 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9230 * config/i386/i386.opt: Add Save to -mavx and -mfma.
9232 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9235 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9237 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9238 Clear call_arg_locations and call_arg_loc_last always.
9241 * var-tracking.c (prepare_call_arguments): If argument needs to be
9242 passed by reference, adjust argtype and mode.
9244 2011-03-17 Richard Guenther <rguenther@suse.de>
9247 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9248 a value make sure to fold the statement.
9250 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
9253 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9254 return condition with !cfun->calls_alloca.
9256 2011-03-17 Richard Guenther <rguenther@suse.de>
9259 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9260 origin for decls in other ltrans units.
9261 (input_varpool_node): Likewise.
9263 2011-03-17 Richard Guenther <rguenther@suse.de>
9266 * tree-object-size.c (compute_object_offset): Properly return
9267 the offset operand of MEM_REFs as sizetype.
9269 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9271 PR rtl-optimization/48141
9272 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9273 * dse.c: Include params.h.
9274 (active_local_stores_len): New variable.
9275 (add_wild_read, dse_step1): Clear it when setting active_local_stores
9277 (record_store, check_mem_read_rtx): Decrease it when removing
9279 (scan_insn): Likewise. Increase it when adding to chain, if it
9280 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9281 set active_local_stores to NULL before the addition.
9282 * Makefile.in (dse.o): Depend on $(PARAMS_H).
9284 PR rtl-optimization/48141
9285 * dse.c (record_store): If no positions are needed in an insn
9286 that cannot be deleted, at least unchain it from active_local_stores.
9288 2011-03-16 Dodji Seketeli <dodji@redhat.com>
9291 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9292 (lookup_type_die_strip_naming_typedef): ... here.
9293 (get_context_die): Use it.
9294 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9295 the anonymous struct named by the naming typedef.
9297 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
9300 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9301 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9303 2011-03-16 Jeff Law <law@redhat.com>
9305 * tree-vrp.c (identify_jump_threads): Slightly simplify type
9306 check for operands of conditional. Allow type to be a pointer.
9308 2011-03-16 Richard Guenther <rguenther@suse.de>
9310 PR tree-optimization/48149
9311 * fold-const.c (fold_binary_loc): Fold
9312 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9314 2011-03-16 Richard Guenther <rguenther@suse.de>
9316 PR tree-optimization/26134
9317 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9318 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9319 (non_rewritable_mem_ref_base): Handle complex type component
9320 accesses, constrain offsets for vector and complex extracts
9323 2011-03-16 Richard Guenther <rguenther@suse.de>
9325 PR tree-optimization/48146
9326 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9327 operands avoiding the need for renaming.
9329 2011-03-16 Richard Guenther <rguenther@suse.de>
9331 * gimple-fold.c (maybe_fold_reference): Open-code relevant
9332 constant folding. Move MEM_REF canonicalization first.
9333 Rely on fold_const_aggregate_ref for initializer folding.
9334 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9336 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9339 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9340 arg0/arg1 or their arguments are always fold converted to matching
9343 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9346 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9349 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9350 Handle in-tree gold.
9351 (ld_vers): Extract binutils version for gold.
9352 (gcc_cv_ld_hidden): Handle gold here.
9353 (gcc_cv_lto_plugin): Determine level of linker plugin support.
9354 * configure: Regenerate.
9355 * config.in: Regenerate.
9356 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9357 -fuse-linker-plugin otherwise.
9358 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
9359 (LINK_COMMAND_SPEC): Use it.
9360 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9362 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9364 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9365 * calls.c: Remove debug.h include.
9366 (emit_call_1): Don't call virtual_call_token debug hook.
9367 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9368 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9369 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9370 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9371 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9372 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9373 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9374 dwarf2out_virtual_call): Remove.
9375 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9376 copy_call_info and virtual_call hooks.
9377 (dwarf2out_init): Don't initialize vcall_insn_table,
9378 debug_dcall_section and debug_vcall_section.
9379 (prune_unused_types): Don't mark nodes from dcall_table.
9380 (dwarf2out_finish): Don't output dcall or vcall tables.
9381 * final.c (final_scan_insn): Don't call direct_call or
9382 virtual_call debug hooks.
9383 * debug.h (struct gcc_debug_hooks): Remove direct_call,
9384 virtual_call_token, copy_call_info and virtual_call hooks.
9385 (debug_nothing_uid): Remove prototype.
9386 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9387 copy_call_info and virtual_call hooks.
9388 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9389 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9390 * debug.c (do_nothing_debug_hooks): Likewise.
9391 (debug_nothing_uid): Remove.
9392 * doc/invoke.texi (-fenable-icf-debug): Remove.
9393 * common.opt (-fenable-icf-debug): Likewise.
9395 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9396 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9397 call's MEM. Handle functions returning aggregate through a hidden
9398 first pointer. For virtual calls add clobbered pc to call arguments
9400 * dwarf2out.c (gen_subprogram_die): Emit
9401 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9405 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9406 * rtl.h (ENTRY_VALUE_EXP): Define.
9407 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9408 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9409 * print-rtl.c (print_rtx): Likewise.
9410 * gengtype.c (adjust_field_rtx_def): Likewise.
9411 * var-tracking.c (vt_add_function_parameter): Adjust
9412 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9413 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9414 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9415 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9416 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9418 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9419 Call var_location debug hook even on CALL_INSNs.
9420 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9421 * rtl.def (ENTRY_VALUE): New.
9422 * dwarf2out.c: Include cfglayout.h.
9423 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9424 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9425 (struct call_arg_loc_node): New type.
9426 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9427 tail_call_site_count): New variables.
9428 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9429 DW_TAG_GNU_call_site_parameter.
9430 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9431 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9432 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9433 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9434 and DW_AT_GNU_all_source_call_sites.
9435 (mem_loc_descriptor): Handle ENTRY_VALUE.
9436 (add_src_coords_attributes): Don't add enything if
9437 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9438 (dwarf2out_abstract_function): Save and clear call_arg_location,
9439 call_site_count and tail_call_site_count around dwarf2out_decl call.
9440 (gen_call_site_die): New function.
9441 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9442 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9443 (dwarf2out_function_decl): Clear call_arg_locations,
9444 call_arg_loc_last, set call_site_count and tail_call_site_count
9445 to -1 and free block_map.
9446 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9447 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
9448 followed by any real instructions.
9449 (dwarf2out_begin_function): Set call_site_count and
9450 tail_call_site_count to 0.
9451 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9452 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9453 attempt to force a DIE for it and worst case remove the attribute.
9454 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9455 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9457 * var-tracking.c: Include tm_p.h.
9458 (vt_stack_adjustments): For calls call note_register_arguments.
9459 (argument_reg_set): New variable.
9460 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9461 ensure the VALUE is resolved.
9462 (call_arguments): New variable.
9463 (prepare_call_arguments): New function.
9464 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9465 (struct expand_loc_callback_data): Add ignore_cur_loc field.
9466 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9467 always use the best expression.
9468 (vt_expand_loc): Add ignore_cur_loc argument.
9469 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9470 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9471 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9473 (vt_add_function_parameter): Use cselib_lookup_from_insn.
9474 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9475 argument. Don't call cselib_preserve_only_values and
9477 (note_register_arguments): New function.
9478 (vt_initialize): Compute argument_reg_set. Call
9479 vt_add_function_parameters before processing basic blocks instead of
9480 afterwards. For calls call prepare_call_arguments before calling
9481 cselib_process_insn.
9482 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9483 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9484 (var-tracking.o): Depend on $(TM_P_H).
9485 * cfglayout.h (insn_scope): New prototype.
9486 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9487 * cfglayout.c (insn_scope): No longer static.
9488 * insn-notes.def (CALL_ARG_LOCATION): New.
9489 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9490 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9491 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9492 nothing for DECL_EXTERNAL BLOCK_VARS.
9494 2011-03-16 Alan Modra <amodra@gmail.com>
9497 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9498 create invalid offset address for vsx splat insn.
9499 * config/rs6000/predicates.md (splat_input_operand): New.
9500 * config/rs6000/vsx.md (vsx_splat_*): Use it.
9502 2011-03-15 Xinliang David Li <davidxl@google.com>
9505 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9506 (normalize_preds): New function.
9507 (is_use_properly_guarded): Normalize def predicates.
9509 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9512 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9513 in the output template.
9515 2011-03-15 Richard Guenther <rguenther@suse.de>
9518 * tree-pretty-print.c (dump_function_declaration): Properly
9519 dump unprototyped and varargs function types.
9521 2011-03-15 Richard Guenther <rguenther@suse.de>
9523 PR tree-optimization/13954
9524 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9527 2011-03-15 Richard Guenther <rguenther@suse.de>
9529 PR tree-optimization/48037
9530 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9531 selects into BIT_FIELD_REFs.
9532 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9535 2011-03-15 Jakub Jelinek <jakub@redhat.com>
9537 PR tree-optimization/48129
9538 * builtins.c (fold_builtin_snprintf): Convert to type of
9539 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9540 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9542 2011-03-15 Richard Guenther <rguenther@suse.de>
9544 PR tree-optimization/41490
9545 * tree-ssa-dce.c (propagate_necessity): Handle returns without
9546 value but with VUSE.
9547 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9549 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9550 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9551 * tree-tailcall.c (find_tail_calls): Ignore returns.
9553 2011-03-15 Richard Guenther <rguenther@suse.de>
9556 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9557 or variable-indexed array accesses when in gimple form.
9559 2011-03-15 Richard Guenther <rguenther@suse.de>
9561 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9563 2011-03-15 Alan Modra <amodra@gmail.com>
9566 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9567 presume symbol_refs without a symbol_ref_decl are suitably
9568 aligned, nor other trees we may see here. Handle anchor symbols.
9569 (legitimate_constant_pool_address_p): Comment. Add mode param.
9570 Check cmodel=medium addresses. Adjust all calls.
9571 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9572 creating cmodel=medium optimized access to locals.
9573 * config/rs6000/constraints.md (R): Pass QImode to
9574 legitimate_constant_pool_address_p.
9575 * config/rs6000/predicates.md (input_operand): Pass mode to
9576 legitimate_constant_pool_address_p.
9577 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9580 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9583 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9584 64-bit constants being loaded into registers other than GPRs such
9585 as loading 0 into a VSX register.
9587 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9589 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9591 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9594 * builtins.c (fold_builtin_snprintf): New function.
9595 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9596 (fold_builtin_4): Likewise.
9599 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9600 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
9601 and C - X == X also strip nops from +/-/p+ operand.
9602 When optimizing -X == C, fold C to arg0's type.
9605 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9606 emit it as add_AT_int instead of add_AT_unsigned.
9608 2011-03-14 Tom Tromey <tromey@redhat.com>
9610 * unwind-dw2.c: Include sys/sdt.h if it exists.
9611 (_Unwind_DebugHook): Use STAP_PROBE2.
9612 * config.in, configure: Rebuild.
9613 * configure.ac: Check for sys/sdt.h.
9615 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
9617 * config/i386/i386.md (ROUND_FLOOR): New constant.
9618 (ROUND_CEIL): Ditto.
9619 (ROUND_TRUNC): Ditto.
9620 (ROUND_MXCSR): Ditto.
9621 (ROUND_NO_EXC): Ditto.
9622 (rint<mode>2): Use new defines instead of numerical constants.
9623 (floor<mode>2): Ditto.
9624 (ceil<mode>2): Ditto.
9625 (btrunc<mode>2): Ditto.
9626 * config/i386/i386-builtin-types.def: Define ROUND function type
9628 * config/i386/i386.c (enum ix86_builtins): Add
9629 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9630 (struct builtin_description): Add
9631 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9632 (ix86_expand_sse_round): New static function.
9633 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9635 (ix86_builtin_vectorized_function): Handle
9636 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9638 2011-03-14 Tom Tromey <tromey@redhat.com>
9640 * c-parser.c (c_parser_asm_string_literal): Clear
9641 warn_overlength_strings.
9643 2011-03-14 Tom Tromey <tromey@redhat.com>
9645 * c-parser.c (disable_extension_diagnostics): Save
9646 warn_overlength_strings.
9647 (restore_extension_diagnostics): Restore warn_overlength_strings.
9649 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9651 * BASE-VER: Change to 4.7.0.
9653 2011-03-14 Richard Guenther <rguenther@suse.de>
9656 * tree.c (build_vector_from_val): Adjust assert to requirements
9659 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9662 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9664 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
9666 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9667 terms of target_flags_explicit. Adjust copyright year.
9669 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9670 * config/rs6000/t-freebsd: New file. Add override for
9673 2011-03-13 Chris Demetriou <cgd@google.com>
9675 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9676 (-fno-diagnostics-show-option): this, to reflect current default.
9677 (-Werror=): Update text about -fno-diagnostics-show-option.
9679 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
9682 * config/rs6000/predicates.md (easy_vector_constant_add_self,
9683 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9684 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9685 mode is not V2DImode or V2DFmode.
9686 (vspltis_constant): Do not handle V2DImode and V2DFmode.
9687 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9688 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9690 (movdi_internal64): Likewise.
9692 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
9694 PR tree-optimization/47127
9695 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9697 (set_cloog_options): Same.
9698 (scop_to_clast): Same.
9699 (print_clast_stmt): Do not call cloog_state_malloc and
9701 (print_generated_program): Same.
9703 * graphite-clast-to-gimple.h (cloog_state): Declared.
9704 (scop_to_clast): Adjust declaration.
9705 * graphite.c (cloog_state): Defined here.
9706 (graphite_initialize): Call cloog_state_malloc.
9707 (graphite_finalize): Call cloog_state_free.
9709 2011-03-11 Jason Merrill <jason@redhat.com>
9711 * attribs.c (lookup_attribute_spec): Take const_tree.
9714 2011-03-11 Joseph Myers <joseph@codesourcery.com>
9716 * config/sparc/sparc.c (sparc_option_override): Use
9717 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9719 2011-03-11 Richard Guenther <rguenther@suse.de>
9721 PR tree-optimization/48067
9722 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9723 multiplication result will be only used once on the target
9726 2011-03-11 Richard Guenther <rguenther@suse.de>
9728 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9730 2011-03-11 Richard Guenther <rguenther@suse.de>
9733 * tree.c (find_decls_types_r): Do not walk types only reachable
9734 from IDENTIFIER_NODEs.
9736 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9739 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9740 all vnode->force_output nodes as needed.
9742 2011-03-11 Jason Merrill <jason@redhat.com>
9745 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9746 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9748 2011-03-11 Martin Jambor <mjambor@suse.cz>
9750 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9753 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9755 PR tree-optimization/48063
9756 * ipa-inline.c (cgraph_decide_inlining): Don't try to
9757 inline functions called once if !tree_can_inline_p (node->callers).
9759 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9761 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9763 * config/score/score3.c: Delete.
9764 * config/score/score3.h: Delete.
9765 * config/score/mul-div.S: Delete.
9766 * config/score/sfp-machine.h: Add new file.
9767 * config/score/constraints.md: Add new file.
9768 * config/score/t-score-softfp: Add new file.
9769 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9770 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9771 (score7_extra_constraint): Delete.
9772 (score7_option_override): Remove unused code.
9773 * config/score/score.c: Remove score3 and score5 define and code.
9774 * config/score/score.h: Remove score3 and score5 define and code.
9775 * config/score/score.md: Remove score3 template and unusual insn.
9776 * config/score/score.opt: Remove score3 and score5 options.
9778 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9780 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9781 when _HPUX_SOURCE is defined.
9782 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9784 2011-03-10 Jason Merrill <jason@redhat.com>
9787 * stor-layout.c (layout_type): Don't set structural equality
9788 on arrays of incomplete type.
9789 * tree.c (type_hash_eq): Handle comparing them properly.
9791 2011-03-10 Jakub Jelinek <jakub@redhat.com>
9794 * config/s390/s390.c (s390_delegitimize_address): Make sure the
9795 result mode matches original rtl mode.
9797 2011-03-10 Nick Clifton <nickc@redhat.com>
9799 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9800 (andsi3, andsi3_flags): Fix timings for three operand alternative.
9802 2011-03-09 Jakub Jelinek <jakub@redhat.com>
9804 PR rtl-optimization/47866
9805 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9806 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9807 if target wasn't scalar.
9808 * function.c (assign_stack_temp_for_type): Assert that neither
9809 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9810 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9812 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9814 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9816 * config/s390/s390-protos.h (s390_label_align): New prototype.
9817 * config/s390/s390.c (s390_label_align): New function.
9818 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9820 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9823 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9824 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9825 (output_vec_const_move): Ditto.
9827 2011-03-08 Anatoly Sokolov <aesok@post.ru>
9829 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9830 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9831 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9832 Change 'rclass' argument and result type to reg_class_t.
9833 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9835 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
9837 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9838 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9839 (TARGET_MEMORY_MOVE_COST): Define.
9840 (avr_register_move_cost, avr_memory_move_cost): New Functions.
9842 2011-03-08 Jakub Jelinek <jakub@redhat.com>
9845 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9848 PR tree-optimization/48022
9849 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9852 2011-03-07 Jakub Jelinek <jakub@redhat.com>
9855 * var-tracking.c (find_use_val): Return NULL for
9856 cui->sets && cui->store_p BLKmode MEMs.
9858 2011-03-07 Anatoly Sokolov <aesok@post.ru>
9860 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9862 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9863 xstormy16_print_operand_address): Remove.
9864 * config/stormy16/stormy16.c (xstormy16_print_operand,
9865 xstormy16_print_operand_address): Make static.
9866 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9868 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
9871 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9872 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9875 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
9878 * cfgloopmanip.c (fix_bb_placements): Return immediately
9879 if FROM is BASE_LOOP's header.
9881 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
9883 * gimplify.c (gimplify_function_tree): Fix building calls
9884 to __builtin_return_address.
9886 2011-03-07 Alan Modra <amodra@gmail.com>
9888 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9889 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9890 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9891 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9893 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9894 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9895 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9896 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9897 * config/rs6000/rs6000.c
9898 (rs6000_elf_end_indicate_exec_stack): Rename to..
9899 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
9900 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
9901 (rs6000_file_start): ..here.
9902 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9903 file scope variables.
9904 (call_ABI_of_interest): New function.
9905 (init_cumulative_args): Set above vars when function return value
9906 is a float, vector, or small struct.
9907 (rs6000_function_arg_advance_1): Likewise for function args.
9908 (rs6000_va_start): Set rs6000_passes_float if variable arg function
9909 references float args.
9911 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
9913 * doc/cfg.texi: Remove "See" before @ref.
9914 * doc/invoke.texi: Likewise.
9916 2011-03-05 Jason Merrill <jason@redhat.com>
9918 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9920 2011-03-05 Anthony Green <green@moxielogic.com>
9922 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9924 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
9926 PR rtl-optimization/47899
9927 * cfgloopmanip.c (fix_bb_placements): Fix first argument
9928 to flow_loop_nested_p when moving the loop upward.
9930 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
9933 * arm.md (movhi_insn_arch4): Accept any immediate constant.
9935 2011-03-05 Jakub Jelinek <jakub@redhat.com>
9937 PR tree-optimization/47967
9938 * ipa-cp.c (build_const_val): Return NULL instead of creating
9939 VIEW_CONVERT_EXPR for mismatching sizes.
9940 (ipcp_create_replace_map): Return NULL if build_const_val failed.
9941 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9942 give up on versioning.
9944 2011-03-05 Alan Modra <amodra@gmail.com>
9947 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9948 full cmodel medium/large lo_sum + high addresses.
9950 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9952 * config/s390/s390.c (s390_decompose_address): Reject non-literal
9953 pool references in UNSPEC_LTREL_OFFSET.
9955 2011-03-04 Jan Hubicka <jh@suse.cz>
9958 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9959 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9960 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9962 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9963 cgraph_add_thunk): Add node pointers.
9964 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9965 associated to right node.
9966 (input_node): Update use of cgraph_same_body_alias
9967 and cgraph_add_thunk.
9969 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
9971 * config/i386/i386.opt (mprefer-avx128): New flag.
9972 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9973 modes when the flag -mprefer-avx128 is on.
9975 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
9977 * dwarf2out.c (compare_loc_operands): Fix address handling.
9979 2011-03-04 Alan Modra <amodra@gmail.com>
9981 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9983 2011-03-04 Richard Guenther <rguenther@suse.de>
9986 * expmed.c (extract_bit_field_1): Prefer vector modes that
9987 vec_extract patterns can handle.
9989 2011-03-04 Richard Guenther <rguenther@suse.de>
9992 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9994 2011-03-04 Richard Henderson <rth@redhat.com>
9996 * explow.c (emit_stack_save): Remove 'after' parameter.
9997 (emit_stack_restore): Likewise.
9998 * expr.h: Update to match.
9999 * builtins.c, calls.c, stmt.c: Likewise.
10000 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10001 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10002 * function.c (expand_function_end): Insert the emit_stack_save
10003 sequence before parm_birth_insn instead of after.
10005 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
10007 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10008 (ssse3_pmaddubsw128): Ditto.
10009 (ssse3_pmaddubsw): Ditto.
10011 2011-03-03 Steve Ellcey <sje@cup.hp.com>
10013 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10015 2011-03-03 Jakub Jelinek <jakub@redhat.com>
10018 * gimplify.c (omp_add_variable): Only call omp_notice_variable
10019 on TYPE_SIZE_UNIT if it is a DECL.
10022 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10023 first operand is not is_gimple_mem_ref_addr, try to fold it.
10024 If the operand still isn't is_gimple_mem_ref_addr, clear
10027 2011-03-03 Richard Guenther <rguenther@suse.de>
10029 PR middle-end/47283
10030 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10032 (refs_may_alias_p_1): For release branches return true if
10033 we are confused by our input.
10035 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10037 * config/s390/s390.c (s390_function_value): Rename to ...
10038 (s390_function_and_libcall_value): ... this.
10039 (s390_function_value): New function.
10040 (s390_libcall_value): New function.
10041 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10042 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10043 target macro definitions.
10044 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10046 2011-03-02 Joseph Myers <joseph@codesourcery.com>
10048 * config/i386/freebsd64.h (CC1_SPEC): Define.
10049 * config/i386/linux64.h (CC1_SPEC): Define.
10050 * config/i386/x86-64.h (CC1_SPEC): Don't define.
10052 2011-03-02 Anatoly Sokolov <aesok@post.ru>
10054 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10056 * config/stormy16/stormy16.c: Include reload.h.
10057 (xstormy16_memory_move_cost): New function.
10058 (TARGET_MEMORY_MOVE_COST): Define.
10060 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
10062 PR rtl-optimization/47925
10063 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10064 with side effects. Remove the more-specific check for volatile asms.
10066 2011-03-02 Alan Modra <amodra@gmail.com>
10069 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10070 toc relative addresses for valid offsets.
10072 2011-03-01 Richard Guenther <rguenther@suse.de>
10074 PR tree-optimization/47890
10075 * tree-vect-loop.c (get_initial_def_for_induction): Set
10076 related stmt properly.
10078 2011-03-01 Richard Guenther <rguenther@suse.de>
10081 * lto-streamer.c (lto_record_common_node): Also register
10082 the canonical type.
10084 2011-03-01 Richard Guenther <rguenther@suse.de>
10087 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10088 Do not stream DECL_ABSTRACT_ORIGIN.
10089 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10090 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10091 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10092 Do not stream DECL_ABSTRACT_ORIGIN.
10093 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10094 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10096 2011-02-28 Anatoly Sokolov <aesok@post.ru>
10098 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10099 FUNCTION_VALUE_REGNO_P): Remove.
10100 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10101 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10102 Add 'outgoing' argument.
10103 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10105 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10106 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10108 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
10111 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10112 (lookup_filename): Likewise.
10113 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10115 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
10116 Jakub Jelinek <jakub@redhat.com>
10118 PR middle-end/47893
10119 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10120 (assign_stack_local_1): Change last argument type to int.
10121 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10122 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
10123 don't record padding space into frame_space_list nor use those areas.
10124 (assign_stack_local): Adjust caller.
10125 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10126 of assign_stack_local, pass 0 as last argument.
10127 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10130 2011-02-28 Jakub Jelinek <jakub@redhat.com>
10133 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10134 Use target address_mode and pointer_mode hooks instead of hardcoded
10135 Pmode and ptr_mode. Handle some simple cases of extending if
10136 POINTERS_EXTEND_UNSIGNED < 0.
10137 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10138 Call convert_debug_memory_address.
10139 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10140 convert_debug_memory_address.
10142 PR middle-end/46790
10143 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10144 * configure: Regenerated.
10145 * config.in: Regenerated.
10146 * varasm.c (default_function_section): Return NULL
10147 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10149 2011-02-28 Martin Jambor <mjambor@suse.cz>
10151 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10152 the description to match the printed values.
10154 2011-02-28 Richard Guenther <rguenther@suse.de>
10156 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10157 of the copied scope tree.
10159 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10161 * doc/extend.texi (Function Attributes): Avoid deeply (and
10162 wrongly) nested tables.
10164 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10166 PR middle-end/47903
10167 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10168 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10169 r isn't op0 nor op1.
10171 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10173 * config/avr/avr.md: Remove magic comment for emacs.
10175 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10178 * config/avr/avr.c (avr_option_override): Use error on bad options.
10179 (avr_help): New function.
10180 (TARGET_HELP): Define.
10182 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
10185 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10186 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10188 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
10190 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10191 (ARM Options): Ditto.
10192 (i386 and x86-64 Options): Ditto.
10193 (RX Options): Ditto.
10194 (SPARC Options): Ditto.
10196 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
10198 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10199 FreeBSD 6 and later. Generally use cpu generic.
10201 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
10203 * doc/cpp.texi: Update copyright years.
10205 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
10208 * config/lm32/lm32.md (ashrsi3): Added needed variable.
10210 2011-02-25 Jon Beniston <jon@beniston.com>
10213 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10214 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10215 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10216 (lm32_block_move_inline): Add type cast to remove warning.
10217 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10218 (gen_int_relational): Move declarations to start of function.
10220 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
10222 PR tree-optimization/45470
10223 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10224 can throw internally only.
10225 * tree-vect-stmts.c (vectorizable_call): Likewise.
10227 2011-02-24 Anatoly Sokolov <aesok@post.ru>
10229 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10230 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10231 * config/stormy16/stormy16-protos.h
10232 (xstormy16_preferred_reload_class): Remove.
10233 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10234 static. Change 'rclass' argument and return type to reg_class_t.
10235 (TARGET_PREFERRED_RELOAD_CLASS,
10236 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10238 2011-02-24 Richard Guenther <rguenther@suse.de>
10240 * lto-streamer-in.c (input_bb): Do not find referenced vars
10241 in debug statements.
10243 2011-02-23 Jason Merrill <jason@redhat.com>
10245 * common.opt (fabi-version): Document v5 and v6.
10247 2011-02-23 Richard Guenther <rguenther@suse.de>
10249 PR tree-optimization/47849
10250 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10252 2011-02-23 Jie Zhang <jie@codesourcery.com>
10254 * opts-common.c (decode_cmdline_option): Print empty string
10255 argument as "" in decoded->orig_option_with_args_text.
10256 * gcc.c (execute): Print empty string argument as ""
10257 in the verbose output.
10258 (do_spec_1): Keep empty string argument.
10260 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
10262 * config.gcc: Declare score-* and crx-* obsolete.
10264 2011-02-23 Jie Zhang <jie@codesourcery.com>
10266 PR rtl-optimization/47763
10267 * web.c (web_main): Ignore naked clobber when replacing register.
10269 2011-02-22 Anatoly Sokolov <aesok@post.ru>
10271 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10274 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
10277 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10279 2011-02-22 Mike Stump <mikestump@comcast.net>
10281 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10283 * configure: Regenerate.
10285 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
10287 PR rtl-optimization/46002
10288 * ira-color.c (update_copy_costs): Change class intersection
10289 test to reg_class_contents[] test of 'hard_regno'.
10291 2011-02-21 Joseph Myers <joseph@codesourcery.com>
10293 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10294 than Driver option.
10295 * config/hpux11.opt (mt): Likewise.
10296 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10297 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10298 * config/vax/elf.opt (mno-asm-pic): Likewise.
10299 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10301 2011-02-21 Mike Stump <mikestump@comcast.net>
10304 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10305 tree so we can get save the type.
10306 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10307 for CFString instead of trying to use past the end of the builtins.
10308 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10309 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10310 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10311 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10312 Rename to darwin_builtin_cfstring.
10313 (darwin_init_cfstring_builtins): Return the built type.
10315 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
10318 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10319 (_mm256_insert_epi64): Use _mm_insert_epi64.
10321 2011-02-21 Anatoly Sokolov <aesok@post.ru>
10323 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10324 * config/stormy16/stormy16-protos.h
10325 (xstormy16_mode_dependent_address_p): Remove.
10326 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10327 Make static. Change return type to bool. Change argument type to
10328 const_rtx. Remove dead code.
10329 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10331 2011-02-21 Richard Guenther <rguenther@suse.de>
10334 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10335 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10336 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10338 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10339 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10341 2011-02-20 Richard Guenther <rguenther@suse.de>
10344 * tree.c (free_lang_data_in_decl): Clean builtins from
10345 the TU decl BLOCK_VARS.
10347 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
10351 * haifa-sched.c (fix_tick_ready): Skip tick computation
10354 2011-02-19 Richard Guenther <rguenther@suse.de>
10357 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10358 Remove lazy BLOCK_VARS streaming.
10359 (lto_input_ts_block_tree_pointers): Likewise.
10360 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10362 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10364 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10366 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10368 * config/i386/biarch32.h, config/i386/mach.h,
10369 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10371 2011-02-19 Jakub Jelinek <jakub@redhat.com>
10374 * config/i386/i386.md (peephole2 for shift and plus): Use
10375 operands[1] original mode in the first insn.
10377 2011-02-18 Mike Stump <mikestump@comcast.net>
10379 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10381 2011-02-18 Jan Hubicka <jh@suse.cz>
10383 PR middle-end/47788
10384 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10385 to zero when the function is not inlinable at all.
10387 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10389 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10390 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10391 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10392 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10393 * config/pa/t-pa64: Likewise.
10394 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10396 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10399 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10401 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10404 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10406 2011-02-18 Anatoly Sokolov <aesok@post.ru>
10408 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10409 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10410 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10411 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10412 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10413 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10414 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10415 m32r_load_postinc_p, m32r_store_preinc_predec_p,
10416 m32r_legitimate_address_p): New functions.
10417 * config/m32r/constraints.md (constraint "S"): Don't use
10418 STORE_PREINC_PREDEC_P.
10419 (constraint "U"): Don't use LOAD_POSTINC_P.
10421 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
10423 PR rtl-optimization/46178
10424 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10425 compute ira_hard_regno_cover_class[].
10427 2011-02-18 Richard Guenther <rguenther@suse.de>
10430 * lto-streamer.h (lto_global_var_decls): Declare.
10431 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10432 statics for global var processing.
10434 2011-02-18 Richard Guenther <rguenther@suse.de>
10436 PR tree-optimization/47737
10437 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10438 edge dominance check.
10440 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10443 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10444 avoid invalid rtx sharing.
10446 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
10448 * doc/cpp.texi (Obsolete Features): Add background on the
10449 origin of assertions.
10451 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
10453 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10455 * config/darwin.c (output_objc_section_asm_op): Added support for
10457 (is_objc_metadata): New.
10458 (darwin_objc2_section): New.
10459 (darwin_objc1_section): New.
10460 (machopic_select_section): Added support for ABI v1 and v2.
10461 (darwin_emit_objc_zeroed): New.
10462 (darwin_output_aligned_bss): Detect objc metadata and treat it
10464 (darwin_asm_output_aligned_decl_common): Same.
10465 (darwin_asm_output_aligned_decl_local): Same.
10466 * config/darwin-sections.def: Updated for ABI v1 and v2.
10467 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10468 compiling Objective-C code for the NeXT runtime, default to using
10469 ABI version 0 for 32-bit, and version 2 for 64-bit.
10471 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10473 * common.opt (optimize_fast): New Variable.
10474 * opts.c (default_options_optimization): Use opts->x_optimize_fast
10475 instead of local variable ofast.
10477 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
10479 * doc/invoke.texi (fobjc-abi-version): Documented.
10480 (fobjc-nilcheck): Documented.
10481 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10484 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10487 * common.opt (export-dynamic): New Driver option.
10488 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10490 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10492 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10494 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
10495 Jan Hubicka <jh@suse.cz>
10499 * cfgexpand.c (account_used_vars_for_block): Remove.
10500 (estimated_stack_frame_size): Use referenced vars.
10501 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10502 that were referenced in the original function. Test src_fn
10503 rather than cfun. Drop redundant get_var_ann.
10504 (setup_one_parameter): Drop redundant get_var_ann.
10505 (declare_return_variable): Likewise.
10506 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10507 (copy_arguments_for_versioning): Drop redundant get_var_ann.
10508 * ipa-inline.c (compute_inline_parameters): Do not compute
10509 disregard_inline_limits here.
10510 (compute_inlinable_for_current, pass_inlinable): New.
10511 (pass_inline_parameters): Require PROP_referenced_vars.
10512 * cgraphunit.c (cgraph_process_new_functions): Don't run
10513 compute_inline_parameters explicitly unless function is in SSA form.
10514 (cgraph_analyze_function): Set .disregard_inline_limits.
10515 * tree-sra.c (convert_callers): Compute inliner parameters
10516 only for functions already in SSA form.
10518 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10520 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10521 -mlittle-endian-data.
10523 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10525 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10526 -mno-fpu, not -fpu and -no-fpu.
10527 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10528 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10530 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
10533 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10534 input reload with PLUS RTX.
10536 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10538 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10539 of InverseVar(MDMX).
10541 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10543 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10546 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10548 * config/mn10300/mn10300.opt (mno-crt0): New.
10550 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10552 * config/m68k/uclinux.opt (static-libc): New Driver option.
10554 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10556 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10558 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10560 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10561 %{muser-extend-enabled}.
10563 2011-02-16 Richard Guenther <rguenther@suse.de>
10565 PR tree-optimization/47738
10566 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10567 the TODO from tree_predictive_commoning.
10569 2011-02-15 Jeff Law <law@redhat.com>
10572 2011-01-25 Jeff Law <law@redhat.com>
10574 PR rtl-optimization/37273
10575 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10576 handle them like argument loads from stack slots. Do not double
10577 count memory for memory constants and argument loads from stack slots.
10579 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10581 PR middle-end/47725
10582 * combine.c (cant_combine_insn_p): Revert the last change.
10584 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10587 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10588 mode for vector constants. Remove code that checks for TImode.
10590 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10594 * cgraph.h (compute_inline_parameters): Return void.
10595 * ipa-inline.c (compute_inline_parameters): Adjust.
10597 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10601 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10603 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10604 * ipa-inline.c (compute_inline_parameters): Adjust.
10606 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10610 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10611 Adjust all users. Pass FN to...
10612 * tree-flow-inline.h (first_referenced_var): ... this. Add
10614 * ipa-struct-reorg.c: Adjust.
10615 * tree-dfa.c: Adjust.
10616 * tree-into-ssa.c: Adjust.
10617 * tree-sra.c: Adjust.
10618 * tree-ssa-alias.c: Adjust.
10619 * tree-ssa-live.c: Adjust.
10620 * tree-ssa.c: Adjust.
10621 * tree-ssanames.c: Adjust.
10622 * tree-tailcall.c: Adjust.
10624 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10628 * tree-flow.h (referenced_var_lookup): Add fn parameter.
10629 Adjust all callers.
10630 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10631 * tree-flow-inline.h: Adjust.
10632 * gimple-pretty-print.c: Adjust.
10633 * tree-into-ssa.c: Adjust.
10634 * tree-ssa.c: Adjust.
10635 * cfgexpand.c: Adjust.
10637 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10639 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10640 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10641 (EXTRA_CONSTRAINT): Delete.
10642 * config/iq2000/constraints.md: New file.
10643 * config/iq2000/iq2000.md: Include it.
10644 (define_insn ""): Delete.
10645 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10646 unsupported constraint letters from patterns.
10647 (call_value, call_value_internal1): Likewise.
10648 (call_value_multiple_internal1): Likewise.
10650 2011-02-15 Nick Clifton <nickc@redhat.com>
10652 * config/mn10300/mn10300.c: Include tm-constrs.h.
10653 (struct liw_data): New data structure describing an LIW candidate
10655 (extract_bundle): Use struct liw_data. Allow small integer
10656 operands for some instructions.
10657 (check_liw_constraints): Use struct liw_data. Remove swapped
10658 parameter. Add comments describing the checks. Fix bug when
10659 assigning the source of liw1 to the source of liw2.
10660 (liw_candidate): Delete. Code moved into extract_bundle.
10661 (mn10300_bundle_liw): Use struct liw_data. Check constraints
10663 * config/mn10300/predicates.md (liw_operand): New predicate.
10664 Allows registers and small integer constants.
10665 * config/mn10300/constraints.md (O): New constraint. Accetps
10666 integers in the range -8 to +7 inclusive.
10667 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10668 for moving a small integer into a register. Give this alternative
10670 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10671 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10672 using the J,K,L and M constraints,
10673 (liw): Remove SI mode on second operands to allow for HI and QI
10675 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
10678 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10680 PR middle-end/47725
10681 * combine.c (cant_combine_insn_p): Check zero/sign extended
10684 2011-02-15 Richard Guenther <rguenther@suse.de>
10686 PR tree-optimization/47743
10687 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10688 for a non-type-compatible VN lookup bail out.
10690 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10692 * config/fr30/constraints.md: New file.
10693 * config/fr30/fr30.md: Include it.
10694 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10695 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10696 (EXTRA_CONSTRAINT): Delete.
10698 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10700 * config/frv/constraints.md: New file.
10701 * config/frv/predicates.md: Include it.
10702 * config/frv/frv.c (reg_class_from_letter): Delete.
10703 (frv_option_override): Don't initialize it.
10704 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10705 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10706 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10707 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10708 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10709 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10710 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10711 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10712 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10713 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10714 (REG_CLASS_FROM_CONSTRAINT): Delete.
10716 2011-02-15 Jakub Jelinek <jakub@redhat.com>
10718 PR middle-end/47581
10719 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10720 if frame size is 0 in a leaf function.
10722 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10725 * config/alpha/host-osf.c: New file.
10726 * config/alpha/x-osf: New file.
10727 * config.host (alpha*-dec-osf*): Use it.
10729 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10731 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10732 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10733 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10734 (rx_mode_dependent_address_p): ...this. Make static. Change argument
10736 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10738 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10740 * config/stormy16/constraints.md: New file.
10741 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10742 Use satisfies_constraint_Q and satisfies_constraint_R.
10743 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10745 (xstormy16_legitiamte_address_p): Declare.
10746 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10747 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10748 (EXTRA_CONSTRAINT): Delete.
10749 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10751 (xstormy16_extra_constraint_p): Delete.
10753 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
10755 PR tree-optimization/46494
10756 * loop-unroll.c (split_edge_and_insert): Adjust comment.
10757 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10758 (pass_rtl_loop_done): Add TODO_verify_flow.
10759 * fwprop.c (pass_rtl_fwprop): Likewise.
10760 * modulo-sched.c (pass_sms): Likewise.
10761 * tree-ssa-dom.c (pass_dominator): Likewise.
10762 * tree-ssa-loop-ch.c (pass_ch): Likewise.
10763 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10764 (pass_tree_loop_done): Likewise.
10765 * tree-ssa-pre.c (execute_pre): Likewise.
10766 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10767 * tree-ssa-sink.c (pass_sink_code): Likewise.
10768 * tree-vrp.c (pass_vrp): Likewise.
10770 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10772 * config/v850/constraints.md: New file.
10773 * config/v850/v850.md: Include it.
10774 * config/v850/predicates.md (reg_or_0_operand): Use
10775 satisfies_constraint_G.
10776 (special_symbolref_operand): Use satisfies_constraint_K.
10777 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10778 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10779 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10780 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10781 (EXTRA_CONSTRAINT): Delete.
10782 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10783 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10784 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10786 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10789 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10792 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10794 * config/mcore/constraints.md: New file.
10795 * config/mcore/mcore.md: Include it.
10796 * config/mcore/mcore.c (reg_class_from_letter): Delete.
10797 * config/mcore/mcore.h (reg_class_from_letter): Delete.
10798 (REG_CLASS_FROM_LETTER): Delete.
10799 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10800 insn_const_int_ok_for_constraint.
10801 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10802 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10803 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10804 (EXTRA_CONSTRAINT): Delete.
10806 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10809 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10810 (IS_SIGHANDLER): Define.
10811 (sparc64_is_sighandler): New function, split off from
10812 sparc64_fallback_frame_state.
10813 (sparc_is_sighandler): New function, split off from
10814 sparc_fallback_frame_state.
10815 (sparc64_fallback_frame_state): Merge with ...
10816 (sparc_fallback_frame_state): ... this into ...
10817 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10818 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10819 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10820 stack instead of hardcoded offsets.
10822 2011-02-14 Andriy Gapon <avg@freebsd.org>
10825 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10827 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10829 * configure: Regenerate.
10831 2011-02-12 Joseph Myers <joseph@codesourcery.com>
10834 * gcc.c (asm_options): Correct spec matching --target-help.
10836 2011-02-12 Martin Jambor <mjambor@suse.cz>
10838 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10839 to gimple call error.
10841 2011-02-12 Mike Stump <mikestump@comcast.net>
10843 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10844 comments in backslash regions.
10846 2011-02-12 Mike Stump <mikestump@comcast.net>
10847 Jakub Jelinek <jakub@redhat.com>
10848 Iain Sandoe <iains@gcc.gnu.org>
10851 * dwarf2out.c (output_cfa_loc): When required, apply the
10852 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10853 (output_loc_sequence): Likewise.
10854 (output_loc_operands_raw): Likewise.
10855 (output_loc_sequence_raw): Likewise.
10856 (output_cfa_loc): Likewise.
10857 (output_loc_list): Suppress register number adjustment when
10858 calling output_loc_sequence()
10859 (output_die): Likewise.
10861 2011-02-12 Anatoly Sokolov <aesok@post.ru>
10863 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10865 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10866 xtensa_memory_move_cost): New functions.
10867 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10869 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
10872 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10873 in the current directory.
10874 * configure: Rebuilt.
10876 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10878 * config/darwin.c (darwin_override_options): Add a hunk missed
10879 from the commit of r168571. Trim comment line lengths and
10880 correct indents of the preceding block.
10882 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10884 * gcc.c (driver_handle_option): Concatenate the argument to -F with
10887 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10889 * common.opt (nostartfiles): New Driver option.
10891 2011-02-11 Xinliang David Li <davidxl@google.com>
10893 PR tree-optimization/47707
10894 * tree-chrec.c (convert_affine_scev): Keep type precision.
10896 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
10898 PR tree-optimization/47420
10899 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10901 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
10903 PR rtl-optimization/47614
10904 * rtl.h (check_for_inc_dec): Declare.
10905 * dse.c (check_for_inc_dec): Externalize...
10906 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10907 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10909 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10912 * gcc.c (main): Do not compile inputs if there were errors in
10914 * opts-common.c (read_cmdline_option): Check for wrong language
10915 after other error checks.
10917 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
10919 * cgraph.c: Fix comment typos.
10920 * cgraph.h: Likewise.
10921 * cgraphunit.c: Likewise.
10922 * ipa-cp.c: Likewise.
10923 * ipa-inline.c: Likewise.
10924 * ipa-prop.c: Likewise.
10925 * ipa-pure-const.c: Likewise.
10926 * ipa-ref.c: Likewise.
10927 * ipa-reference.c: Likewise.
10929 2011-02-11 Jakub Jelinek <jakub@redhat.com>
10932 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10934 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10937 * doc/sourcebuild.texi (Require Support): Document
10938 dg-require-ascii-locale.
10940 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
10942 * doc/lto.texi (Write summary): Fix missing parentheses.
10944 2011-02-10 DJ Delorie <dj@redhat.com>
10946 * config/m32c/m32c.c (m32c_option_override): Disable
10947 -fcombine-stack-adjustments until flag value tracking and compare
10948 optimization can be rewritten.
10950 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
10952 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10954 (PROCESSOR_DEFAULT64): Likewise.
10956 2011-02-10 Richard Henderson <rth@redhat.com>
10958 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10959 change from 2011-02-03.
10960 * config/rx/rx.c (flags_from_code): Likewise.
10961 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10962 is valid, n/pz otherwise.
10963 (rx_select_cc_mode): Return CCmode if Y is not zero.
10965 2011-02-10 Richard Guenther <rguenther@suse.de>
10967 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10969 2011-02-10 Richard Guenther <rguenther@suse.de>
10971 PR tree-optimization/47677
10972 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10974 2011-02-10 Jakub Jelinek <jakub@redhat.com>
10977 * combine.c (make_compound_operation): Only change shifts into
10978 multiplication for SCALAR_INT_MODE_P.
10980 2011-02-10 Jie Zhang <jie@codesourcery.com>
10984 2011-02-05 Jie Zhang <jie@codesourcery.com>
10986 * web.c (entry_register): Don't clobber the number of the
10987 first uninitialized reference in used[].
10989 2011-02-09 Richard Guenther <rguenther@suse.de>
10991 PR tree-optimization/47664
10992 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10995 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
10999 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11001 (PROCESSOR_DEFAULT64): Same.
11002 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11004 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11006 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11008 2011-02-09 Martin Jambor <mjambor@suse.cz>
11010 PR middle-end/45505
11011 * tree-sra.c (struct access): New flags grp_scalar_read and
11012 grp_scalar_write. Changed description of assignment read and write
11014 (dump_access): Dump new flags, reorder all of them.
11015 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11016 to detect multiple scalar reads.
11017 (analyze_access_subtree): Use the new scalar read write flags instead
11018 of the old flags. Adjusted comments.
11020 2011-02-08 DJ Delorie <dj@redhat.com>
11023 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11026 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11028 * config/m68k/uclinux.opt: New.
11029 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11031 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11033 * config/cris/elf.opt (sim): New Driver option.
11035 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11037 * config/xtensa/elf.opt: New.
11038 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11040 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11042 * config/vax/elf.opt: New.
11043 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11045 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11047 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11049 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11051 * config/gnu-user.opt: New.
11052 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11053 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11054 *-*-uclinux*): Use gnu-user.opt.
11056 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
11058 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11059 * config/i386/gnu.h (CPP_SPEC): Likewise.
11061 2011-02-08 Ian Lance Taylor <iant@google.com>
11063 * common.opt (fcx-limited-range): Add SetByCombined flag.
11064 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11065 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11066 (fassociative-math, freciprocal-math): Likewise.
11067 (funsafe-math-optimizations): Likewise.
11068 * opth-gen.awk: Handle SetByCombined.
11069 * optc-gen.awk: Likewise.
11070 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11071 (set_unsafe_math_optimizations_flags): Likewise.
11072 * doc/options.texi (Option properties): Document SetByCombined.
11074 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11076 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11077 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11078 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11079 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11080 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11082 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
11084 PR tree-optimization/46834
11085 PR tree-optimization/46994
11086 PR tree-optimization/46995
11087 * graphite-sese-to-poly.c (used_outside_reduction): New.
11088 (detect_commutative_reduction): Call used_outside_reduction.
11089 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11090 translate_scalar_reduction_to_array only when at least one
11091 loop-phi/close-phi tuple has been detected.
11093 2011-02-08 Richard Guenther <rguenther@suse.de>
11095 PR middle-end/47639
11096 * tree-vect-generic.c (expand_vector_operations_1): Update
11098 (expand_vector_operations): ... not here. Cleanup EH info
11099 and the CFG if required.
11101 2011-02-08 Richard Guenther <rguenther@suse.de>
11103 PR tree-optimization/47641
11104 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11105 require type compatibility.
11107 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11109 * gimple-low.c (lower_function_body): Don't remove the location of
11110 the return statement here.
11111 (lower_gimple_return): Do it here instead but only if the return
11112 statement is actually used twice.
11114 2011-02-08 Richard Guenther <rguenther@suse.de>
11116 PR tree-optimization/47632
11117 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11118 unused up_to_stmt parameter, return whether cfg-cleanup is
11119 necessary, remove EH info properly.
11120 (forward_propagate_into_gimple_cond): Adjust caller.
11121 (forward_propagate_into_cond): Likewise.
11122 (forward_propagate_comparison): Likewise.
11123 (tree_ssa_forward_propagate_single_use_vars): Make
11124 forward_propagate_comparison case similar to the two others.
11126 2011-02-08 Nick Clifton <nickc@redhat.com>
11128 * config/mn10300/mn10300.opt (mliw): New command line option.
11129 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11130 (liw_bundling): New automaton.
11131 (liw): New attribute.
11132 (liw_op): New attribute.
11133 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11134 (movsi_internal): Add LIW attributes.
11135 (andsi3): Likewise.
11136 (iorsi3): Likewise.
11137 (xorsi3): Likewise.
11138 (addsi3): Separate register and immediate alternatives.
11139 Add LIW attributes.
11140 (subsi3): Likewise.
11142 (aslsi3): Likewise.
11143 (lshrsi3): Likewise.
11144 (ashrsi3): Likewise.
11145 (liw): New pattern.
11146 * config/mn10300/mn10300.c (liw_op_names): New
11147 (mn10300_print_operand): Handle 'W' operand descriptor.
11148 (extract_bundle): New function.
11149 (check_liw_constraints): New function.
11150 (liw_candidate): New function.
11151 (mn10300_bundle_liw): New function.
11152 (mn10300_reorg): New function.
11153 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11154 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11155 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11156 __LIW__ or __NO_LIW__.
11157 * doc/invoke.texi: Describe the -mliw command line option.
11159 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11161 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11162 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11163 pthread_mutex_unlock): Remove.
11164 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11165 * config/pa/t-pa64: Likewise.
11166 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11167 shared libc if not linking against libpthread.
11168 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11170 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
11173 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11174 on 10.6 and later to ensure that we always use the unwinder from
11175 the system. Only add -no_compact_unwind when tarteting darwin
11178 2011-02-07 Steve Ellcey <sje@cup.hp.com>
11181 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11182 (vec_interleave_lowv2sf): Ditto.
11183 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11184 (vec_extract_oddv2sf): Ditto.
11186 2011-02-07 Mike Stump <mikestump@comcast.net>
11189 Add __ieee_divdc3 entry point.
11190 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11192 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11193 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11194 * config/darwin.c (darwin_rename_builtins): Add.
11195 * config/darwin-protos.h (darwin_rename_builtins): Add.
11197 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
11200 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11203 2011-02-07 Mike Stump <mikestump@comcast.net>
11205 * config/darwin.opt (mmacosx-version-min): Update default OS version.
11207 2011-02-07 Denis Chertykov <chertykov@gmail.com>
11210 * config/avr/libgcc.S (exit): Move .endfunc
11212 2011-02-07 Richard Guenther <rguenther@suse.de>
11214 PR tree-optimization/47615
11215 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11216 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11217 (run_scc_vn): Initialize it.
11218 (visit_reference_op_load): Use it.
11219 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11221 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11223 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11224 DImode trapping arithmetic libfuncs.
11226 2011-02-07 Richard Guenther <rguenther@suse.de>
11228 PR tree-optimization/47621
11229 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11231 (execute_update_addresses_taken): ... here. Make it more
11232 conservative in what we accept.
11234 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11236 * config/sparc/freebsd.h (ASM_SPEC): Define.
11237 * config/sparc/vxworks.h (ASM_SPEC): Define.
11239 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11241 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11243 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
11245 * doc/invoke.texi: Remove reference to compiler internals from
11246 user documentation.
11248 * reg-notes.def: Remove REG_VALUE_PROFILE.
11249 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11251 2011-02-05 Jakub Jelinek <jakub@redhat.com>
11253 PR middle-end/47610
11254 * varasm.c (default_section_type_flags): If decl is NULL,
11255 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11257 2011-02-05 Jie Zhang <jie@codesourcery.com>
11260 * web.c (entry_register): Don't clobber the number of the
11261 first uninitialized reference in used[].
11263 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
11265 PR tree-optimization/46194
11266 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11267 (build_classic_dist_vector_1): Do not represent classic distance
11268 vectors when the access functions are variating in different loops.
11270 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11272 * config/mips/iris6.opt: New.
11273 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11275 2011-02-04 Richard Henderson <rth@redhat.com>
11276 Steve Ellcey <sje@cup.hp.com>
11279 * config/ia64/predicates.md (mux1_brcst_element): New.
11280 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11281 * config/ia64/ia64.c (ia64_unpack_assemble): New.
11282 (ia64_unpack_sign): New.
11283 (ia64_expand_unpack): Rewrite using new routines.
11284 (ia64_expand_widen_sum): Ditto.
11285 (ia64_expand_dot_prod_v8qi): Ditto.
11286 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11287 routines, add endian check.
11288 (pmpy2_even): Rename from pmpy2_r, add endian check.
11289 (pmpy2_odd): Rename from pmpy2_l, add endian check.
11290 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11291 (vec_widen_smult_hi_v4hi): Ditto.
11292 (vec_widen_umult_lo_v4hi): Ditto.
11293 (vec_widen_umult_hi_v4hi): Ditto.
11294 (mulv2si3): Change endian checks.
11295 (sdot_prodv4hi): Rewrite with new calls.
11296 (udot_prodv4hi): New.
11297 (vec_pack_ssat_v4hi): Add endian check.
11298 (vec_pack_usat_v4hi): Ditto.
11299 (vec_pack_ssat_v2si): Ditto.
11300 (max1_even): Rename from max1_r, add endian check.
11301 (max1_odd): Rename from max1_l, add endian check.
11302 (*mux1_rev): Format change.
11303 (*mux1_mix): Ditto.
11304 (*mux1_shuf): Ditto.
11305 (*mux1_alt): Ditto.
11306 (*mux1_brcst_v8qi): Use new predicate.
11307 (vec_extract_evenv8qi): Remove endian check.
11308 (vec_extract_oddv8qi): Ditto.
11309 (vec_interleave_lowv4hi): Format change.
11310 (vec_interleave_highv4hi): Ditto.
11311 (mix2_even): Rename from mix2_r, add endian check.
11312 (mix2_odd): Rename from mux2_l, add endian check.
11313 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11314 (vec_extract_evenodd_helper): Format change.
11315 (vec_extract_evenv4hi): Remove endian check.
11316 (vec_extract_oddv4hi): Remove endian check.
11317 (vec_interleave_lowv2si): Format change.
11318 (vec_interleave_highv2si): Format change.
11319 (vec_initv2si): Remove endian check.
11320 (vecinit_v2si): Add endian check.
11321 (reduc_splus_v2sf): Add endian check.
11322 (reduc_smax_v2sf): Ditto.
11323 (reduc_smin_v2sf): Ditto.
11324 (vec_initv2sf): Remove endian check.
11325 (fpack): Add endian check.
11326 (fswap): Add endian check.
11327 (vec_interleave_highv2sf): Add endian check.
11328 (vec_interleave_lowv2sf): Add endian check.
11329 (fmix_lr): Add endian check.
11330 (vec_setv2sf): Format change.
11331 (*vec_extractv2sf_0_be): Use shift to extract operand.
11332 (*vec_extractv2sf_1_be): New.
11333 (vec_pack_trunc_v4hi): Add endian check.
11334 (vec_pack_trunc_v2si): Format change.
11336 2011-02-04 Jakub Jelinek <jakub@redhat.com>
11338 PR inline-asm/23200
11339 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
11340 do bb, locus and block comparison and disallow loads if it is not set.
11341 (stmt_is_replaceable_p): New function.
11342 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11344 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11345 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11347 * tree-flow.h (stmt_is_replaceable_p): New prototype.
11349 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11351 * config/rs6000/xilinx.opt: New.
11352 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11354 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11356 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11358 2011-02-03 Anatoly Sokolov <aesok@post.ru>
11360 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11361 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11362 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11363 secondary_reload_info, xtensa_secondary_reload): Remove.
11364 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11365 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11366 (xtensa_preferred_reload_class): Make static. Change return and
11367 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11368 Use CONST_DOUBLE_P predicate.
11369 (xtensa_preferred_output_reload_class): New function.
11370 (xtensa_secondary_reload): Make static.
11372 2011-02-03 Joseph Myers <joseph@codesourcery.com>
11374 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11375 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11376 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11378 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11380 PR middle-end/31490
11381 * output.h (SECTION_RELRO): Define.
11382 (SECTION_MACH_DEP): Adjust.
11383 (get_variable_section): New prototype.
11384 * varpool.c (varpool_finalize_named_section_flags): New function.
11385 (varpool_assemble_pending_decls): Call it.
11386 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11387 * cgraphunit.c (cgraph_output_in_order): Call
11388 varpool_finalize_named_section_flags.
11389 * varasm.c (get_section): Allow section flags conflicts between
11390 relro and read-only sections if the section hasn't been declared yet.
11391 Set SECTION_OVERRIDE after diagnosing section type conflict.
11392 (get_variable_section): No longer static.
11393 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11394 readonly sections that need relocations.
11395 (decl_readonly_section_1): New function.
11396 (decl_readonly_section): Use it.
11399 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
11400 Steve Ellcey <sje@cup.hp.com>
11402 PR middle-end/31490
11403 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11404 if section attribute used.
11406 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11408 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11409 * config/darwin.c (SECTION_NO_ANCHOR): Define.
11410 (darwin_init_sections): Remove assertion.
11412 2011-02-03 Nick Clifton <nickc@redhat.com>
11414 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11416 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11417 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11418 instead of "n" and "pz".
11419 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11422 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11425 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11426 fma, expand FMA_EXPR as fma{,f,l} call.
11429 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11430 copy them into a unsigned char variable and pass address of it to
11431 lto_output_data_stream.
11434 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11435 around backend_init_target and lang_dependent_init_target calls.
11436 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11437 (verify_cgraph_node): Don't call set_cfun here. Use
11438 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11439 Set error_found for incorrectly represented calls to thunks.
11441 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11444 PR rtl-optimization/43494
11445 * rtl.h (for_each_inc_dec_fn): New type.
11446 (for_each_inc_dec): Declare.
11447 * rtlanal.c (struct for_each_inc_dec_ops): New type.
11448 (for_each_inc_dec_find_inc_dec): New fn.
11449 (for_each_inc_dec_find_mem): New fn.
11450 (for_each_inc_dec): New fn.
11451 * dse.c (struct insn_size): Remove.
11452 (replace_inc_dec, replace_inc_dec_mem): Remove.
11453 (emit_inc_dec_insn_before): New fn.
11454 (check_for_inc_dec): Use it, along with for_each_inc_dec.
11455 (canon_address): Pass mem modes to cselib_lookup.
11456 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
11457 (cselib_lookup_from_insn): Likewise.
11458 (cselib_subst_to_values): Likewise.
11459 * cselib.c (find_slot_memmode): New var.
11460 (cselib_find_slot): New fn. Use it instead of
11461 htab_find_slot_with_hash everywhere.
11462 (entry_and_rtx_equal_p): Use find_slot_memmode.
11463 (autoinc_split): New fn.
11464 (rtx_equal_for_cselib_p): Rename and implement in terms of...
11465 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
11466 Deal with autoinc. Special-case recursion into MEMs.
11467 (cselib_hash_rtx): Likewise.
11468 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
11469 address and MEM modes.
11470 (cselib_subst_to_values): Add memmode, pass it on.
11472 (cselib_lookup): Add memmode argument, pass it on.
11473 (cselib_lookup_from_insn): Add memmode.
11474 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11475 (struct cselib_record_autoinc_data): New.
11476 (cselib_record_autoinc_cb): New fn.
11477 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
11478 mode to cselib_lookup. Reset autoinced REGs here instead of...
11479 (cselib_process_insn): ... here.
11480 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11482 (add_uses): Likewise, also to cselib_subst_to_values.
11483 (add_stores): Likewise.
11484 * sched-deps.c (add_insn_mem_dependence): Pass mode to
11485 cselib_subst_to_values.
11486 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
11487 * gcse.c (do_local_cprop): Adjusted.
11488 * postreload.c (reload_cse_simplify_set): Adjusted.
11489 (reload_cse_simplify_operands): Adjusted.
11490 * sel-sched-dump (debug_mem_addr_value): Pass mode.
11492 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11494 PR tree-optimization/45122
11495 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11496 unsafe assumptions when there's more than one loop exit.
11498 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11501 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11502 Document using vector double with the load/store builtins, and
11503 that the load/store builtins always use Altivec instructions.
11505 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11506 to use altivec memory instructions, even on VSX.
11507 (vector_altivec_store_<mode>): Ditto.
11509 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11512 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11513 V2DF, V2DI support to load/store overloaded builtins.
11515 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11516 altivec load/store builtins for V2DF/V2DI types.
11518 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11519 set avoid indexed addresses on power6 if -maltivec.
11520 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11521 vector_altivec_load/vector_altivec_store builtins.
11522 (altivec_expand_st_builtin): Ditto.
11523 (altivec_expand_builtin): Add VSX memory builtins.
11524 (rs6000_init_builtins): Add V2DI types to internal types.
11525 (altivec_init_builtins): Add support for V2DF/V2DI altivec
11526 load/store builtins.
11527 (rs6000_address_for_altivec): Insure memory address is appropriate
11530 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11531 vec_vsx_ld and vec_vsx_st.
11532 (vsx_store_<mode>): Ditto.
11534 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11535 variables to hold long long types for VSX vector memory builtins.
11536 (RS6000_BTI_unsigned_long_long): Ditto.
11537 (long_long_integer_type_internal_node): Ditti.
11538 (long_long_unsigned_type_internal_node): Ditti.
11540 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11541 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11542 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11544 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11546 (vec_vsx_st): Ditto.
11548 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11550 * config/pa/pa-hpux10.opt: New.
11551 * config/hpux11.opt (pthread): New Driver option.
11552 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11553 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11555 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11557 * config/ia64/vms.opt: New.
11558 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11560 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11563 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11564 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11565 generator functions.
11566 (vsx_floatuns<VSi><mode>2): Ditto.
11567 (vsx_fix_trunc<mode><VSi>2): Ditto.
11568 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11570 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11572 * config/i386/djgpp.opt (posix): New Driver option.
11574 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
11576 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11577 Move to the unsupported targets list.
11579 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
11581 PR rtl-optimization/47525
11582 * df-scan.c: Update copyright years.
11583 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11584 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11586 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11588 * config/i386/sysv4.h (TARGET_VERSION): Remove.
11589 (SUBTARGET_RETURN_IN_MEMORY): Remove.
11590 (ASM_OUTPUT_ASCII): Remove.
11591 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11593 2011-02-02 Jeff Law <law@redhat.com>
11595 PR middle-end/47543
11596 * reload.c (find_reloads_address): Handle reg+d address where both
11597 components are invalid by reloading the entire address.
11599 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11600 Richard Guenther <rguenther@suse.de>
11602 PR tree-optimization/40979
11604 * passes.c (init_optimization_passes): After LIM call copy_prop
11605 and DCE to clean up.
11606 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11608 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11610 PR tree-optimization/47576
11611 PR tree-optimization/47555
11612 * doc/invoke.texi (scev-max-expr-complexity): Documented.
11613 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11614 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11615 * tree-scalar-evolution.c (follow_ssa_edge): Use
11616 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11618 2011-02-02 Richard Guenther <rguenther@suse.de>
11620 PR tree-optimization/47566
11621 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11623 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11627 * tree-inline.c (declare_return_variable): Remove unused caller
11632 * tree-flow-inline.h (clear_is_used, is_used_p): New.
11633 * cfgexpand.c (account_used_vars_for_block): Use them.
11634 * tree-nrv.c (tree_nrv): Likewise.
11635 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11636 (dump_scope_block): Likewise.
11637 (remove_unused_locals): Likewise.
11641 * tree-inline.c (declare_return_variable): Add result decl to
11642 local decls only once.
11643 * gimple-low.c (record_vars_into): Mark newly-created variables
11646 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11652 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11654 (no_real_insns_p, schedule_block, set_priorities): Drop special
11655 treatment of boundary debug insns.
11656 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11657 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11658 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11659 (BOUNDARY_DEBUG_INSN_P): Likewise.
11660 (SCHEDULE_DEBUG_INSN_P): Likewise.
11661 * sched-rgn.c (init_ready_list): Drop special treatment of
11662 boundary debug insns.
11663 * final.c (rest_of_clean_state): Clear notes' BB.
11665 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11667 * config/openbsd.opt (assert=): New Driver option.
11669 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11671 * config/i386/nto.opt: New.
11672 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11674 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11676 * config/i386/netware.opt: New.
11677 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11679 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11681 * config/interix.opt (posix): New Driver option.
11683 2011-02-01 DJ Delorie <dj@redhat.com>
11685 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11687 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11690 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
11692 PR tree-optimization/47561
11693 * toplev.c (process_options): Print the Graphite flags. Add
11694 flag_loop_flatten to the list of options requiring Graphite.
11696 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11698 * config/i386/cygming.opt (posix): New Driver option.
11700 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11702 * config/arm/vxworks.opt: New.
11703 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11705 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11707 * config/alpha/elf.opt: New.
11708 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11709 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11711 2011-02-01 Richard Guenther <rguenther@suse.de>
11713 PR tree-optimization/47559
11714 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11715 store-motion on references that can throw.
11717 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
11719 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11720 * tree-pass.h (TDF_CSELIB): New macro.
11721 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11722 cselib_lookup): Check for it rather than for TDF_DETAILS.
11724 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
11727 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11728 is HOST_BIT_BUCKET.
11730 * opts.c (finish_options): Don't add x_aux_base_name if it is
11733 2011-02-01 Richard Guenther <rguenther@suse.de>
11735 PR tree-optimization/47555
11737 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
11739 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11741 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
11744 * config/lm32/t-lm32: Add multilib for all CPU options.
11746 2011-02-01 Richard Guenther <rguenther@suse.de>
11748 PR tree-optimization/47541
11749 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11750 sure to have a field at offset zero.
11752 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11754 * config/arc/arc.opt (EB, EL): New Driver options.
11756 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11758 * config/alpha/osf5.opt: New.
11759 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11761 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11763 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11765 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
11767 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11768 -floop-interchange.
11769 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11770 is an alias of -floop-interchange and that it requires the
11771 Graphite infrastructure.
11772 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11773 flag_loop_interchange based on the value of flag_tree_loop_linear.
11775 2011-01-31 Jakub Jelinek <jakub@redhat.com>
11776 Richard Guenther <rguenther@suse.de>
11778 PR tree-optimization/47538
11779 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11780 type instead of r1type, except for comparisons. For right
11781 shifts and comparisons punt if there are mismatches in
11782 sizetype vs. non-sizetype types.
11784 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11786 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11789 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11791 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11793 * configure: Regenerate.
11795 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11797 * configure.ac (gcc_cv_ld_static_option): Define.
11798 (gcc_cv_ld_dynamic_option): Define.
11799 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11801 (HAVE_LD_STATIC_DYNAMIC): Update message.
11802 (LD_STATIC_OPTION): Define.
11803 (LD_DYNAMIC_OPTION): Define.
11804 * configure: Regenerate.
11805 * config.in: Regenerate.
11806 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11807 HAVE_LD_STATIC_DYNAMIC]: Use them.
11809 2011-01-31 Nick Clifton <nickc@redhat.com>
11811 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11812 registers inside interrupt handlers if the handler is not a leaf
11815 2011-01-31 Nick Clifton <nickc@redhat.com>
11817 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11818 reg_renumber returning an INVALID_REGNUM.
11820 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11823 * doc/install.texi: Document host options discarded when cross
11824 configuring target libraries.
11826 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11829 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11832 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11834 (no_real_insns_p, schedule_block, set_priorities): Drop special
11835 treatment of boundary debug insns.
11836 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11837 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11838 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11839 (BOUNDARY_DEBUG_INSN_P): Likewise.
11840 (SCHEDULE_DEBUG_INSN_P): Likewise.
11841 * sched-rgn.c (init_ready_list): Drop special treatment of
11842 boundary debug insns.
11843 * final.c (rest_of_clean-state): Clear notes' BB.
11845 2011-01-31 Alan Modra <amodra@gmail.com>
11847 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11848 toc relative expressions as we do in print_operand_address.
11850 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
11852 * doc/extend.texi: Follow spelling conventions.
11853 * doc/invoke.texi: Fix a typo.
11855 2011-01-30 Joseph Myers <joseph@codesourcery.com>
11857 * config/hpux11.opt: New.
11858 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11859 ia64*-*-hpux*): Use hpux11.opt.
11861 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
11863 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11866 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11868 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11871 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11873 * doc/install.texi (Binaries): Remove outdated reference for
11874 Motorola 68HC11/68HC12 downloads.
11876 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11878 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11881 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
11884 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11887 2011-01-28 Ahmad Sharif <asharif@google.com>
11889 * value-prof.c (check_counter): Corrected error message.
11891 2011-01-29 Jie Zhang <jie@codesourcery.com>
11893 * config/arm/arm.c (arm_legitimize_reload_address): New.
11894 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11895 arm_legitimize_reload_address.
11896 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11898 2011-01-28 Ian Lance Taylor <iant@google.com>
11900 * godump.c (go_define): Ignore macros whose definitions include
11901 two adjacent operands.
11903 2011-01-28 Jakub Jelinek <jakub@redhat.com>
11906 * varasm.c (force_const_mem): Store copy of x in desc->constant
11907 instead of x itself.
11908 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11909 itself into REG_EQUAL note.
11911 2011-01-28 Joseph Myers <joseph@codesourcery.com>
11913 * config/freebsd.opt (posix, rdynamic): New Driver options.
11915 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11917 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11918 -Bstatic/-Bdynamic.
11919 * configure: Regenerate.
11921 2011-01-27 Joseph Myers <joseph@codesourcery.com>
11923 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11924 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11926 2011-01-27 Anatoly Sokolov <aesok@post.ru>
11928 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11929 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11930 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11931 (s390_preferred_reload_class): Make static. Change return and
11932 'rclass' argument type to reg_class_t.
11934 2011-01-27 Jan Hubicka <jh@suse.cz>
11936 PR middle-end/46949
11937 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11938 (process_function_and_variable_attributes): Check defined weakrefs.
11940 2011-01-27 Martin Jambor <mjambor@suse.cz>
11942 PR tree-optimization/47228
11943 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11944 build_ref_for_offset.
11946 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11948 * config/spu/spu-elf.h (ASM_SPEC): Remove.
11950 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
11952 PR rtl-optimization/46856
11953 * postreload.c (reload_combine_recognize_const_pattern): Do not
11954 separate cc0 setter and user on cc0 targets.
11956 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
11959 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11960 passed a VOID_TYPE expression, immediately emit an error and
11961 return error_mark_node.
11963 2011-01-26 Jeff Law <law@redhat.com>
11965 PR rtl-optimization/47464
11966 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11967 rather than may_trap_p as needed.
11969 2011-01-26 DJ Delorie <dj@redhat.com>
11971 PR rtl-optimization/46878
11972 * combine.c (insn_a_feeds_b): Check for the implicit cc0
11973 setter/user dependency as well.
11975 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11977 PR rtl-optimization/44469
11978 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11979 after removing trivially dead basic blocks.
11981 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11983 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11984 * config/frv/frv.h (LINK_SPEC): Likewise.
11985 * config/i386/netware.h (LINK_SPEC): Likewise.
11986 * config/m68k/linux.h (ASM_SPEC): Likewise.
11987 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11988 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11989 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11990 * config/sparc/linux.h (ASM_SPEC): Likewise.
11991 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11992 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11994 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11996 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11997 * config/frv/frv.h (ASM_SPEC): Likewise.
11998 * config/m68k/linux.h (ASM_SPEC): Likewise.
11999 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12000 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12001 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12002 * config/sparc/linux.h (ASM_SPEC): Likewise.
12003 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12004 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12006 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12008 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12009 * config/frv/frv.h (LINK_SPEC): Likewise.
12010 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12012 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12014 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12015 * config/frv/frv.h (ASM_SPEC): Likewise.
12016 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12017 * config/m68k/linux.h (ASM_SPEC): Likewise.
12018 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12019 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12020 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12021 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12022 * config/sparc/linux.h (ASM_SPEC): Likewise.
12023 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12024 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12025 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12027 2011-01-26 Steve Ellcey <sje@cup.hp.com>
12030 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12032 (vec_extract_evenodd_help): Ditto.
12033 (vec_extract_evenv4hi): Ditto.
12034 (vec_extract_oddv4hi): Ditto.
12035 (vec_interleave_lowv2si): Ditto.
12036 (vec_interleave_highv2si): Ditto.
12037 (vec_extract_evenv2si): Ditto.
12038 (vec_extract_oddv2si: Ditto.
12039 (vec_pack_trunc_v2si): Ditto.
12041 2011-01-22 Jan Hubicka <jh@suse.cz>
12044 * cgraph.h (cgraph_local_info): New field can_change_signature.
12045 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12046 signature can change.
12047 (ipcp_estimate_growth): Call sequence simplify only if calle signature
12049 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12050 (cgraph_function_versioning): We can not change signature of functions
12051 that don't allow that.
12052 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12053 (lto_input_node): Likewise.
12054 * ipa-inline.c (compute_inline_parameters): Compute
12055 local.can_change_signature.
12056 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12057 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12058 functions that can not change signature.
12059 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12060 init_cumulative_args): Do not use local calling conventions
12061 for functions that can not change signature.
12063 2011-01-22 Jan Hubicka <jh@suse.cz>
12065 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12067 2011-01-26 Richard Guenther <rguenther@suse.de>
12069 PR tree-optimization/47190
12070 * cgraphunit.c (process_common_attributes): New function.
12071 (process_function_and_variable_attributes): Use it.
12073 2011-01-26 Richard Guenther <rguenther@suse.de>
12076 * cgraphbuild.c (record_eh_tables): Record reference to personality
12079 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
12082 * sel-sched.c (moveup_expr): Don't let debug insns prevent
12083 non-debug insns from moving up.
12085 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12088 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12089 t-dlldir{,-x} fragment for build and add it to tmake_file.
12090 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12091 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12092 * config/i386/t-dlldir: New file.
12093 (SHLIB_DLLDIR): Define.
12094 * config/i386/t-dlldir-x: New file.
12095 (SHLIB_DLLDIR): Define.
12096 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12097 (SHLIB_INSTALL): Use it.
12099 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
12102 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12103 lower bound of the allowed Thumb-2 coprocessor load/store
12104 index range to -256. Add explaining comment.
12106 2011-01-25 Ian Lance Taylor <iant@google.com>
12108 * godump.c (go_define): Improve lexing of macro expansion to only
12109 accept expressions which match Go spec.
12111 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12114 * tree.c (handle_dll_attribute): Handle it.
12115 * doc/extend.texi (@item dllexport): Mention it.
12116 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12118 2011-01-25 Ian Lance Taylor <iant@google.com>
12120 PR tree-optimization/26854
12121 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12122 (decl_jump_unsafe): Move higher in file, with no other change.
12123 (bind): Set has_jump_unsafe_decl if appropriate.
12124 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12125 (check_earlier_gotos): Likewise.
12126 (c_check_switch_jump_warnings): Likewise.
12128 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
12130 * doc/invoke.texi (Warning Options): Add missing hyphen.
12131 (-fprofile-dir): Minor grammatical fixes.
12132 (-fbranch-probabilities): Likewise.
12134 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12138 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12140 (no_real_insns_p, schedule_block, set_priorities): Drop special
12141 treatment of boundary debug insns.
12142 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12143 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12144 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12145 (BOUNDARY_DEBUG_INSN_P): Likewise.
12146 (SCHEDULE_DEBUG_INSN_P): Likewise.
12147 * sched-rgn.c (init_ready_list): Drop special treatment of
12148 boundary debug insns.
12149 * final.c (rest_of_clean-state): Clear notes' BB.
12151 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12153 * Makefile.in (LAMBDA_H): Removed.
12154 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12155 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12156 lambda-trans.o, and tree-loop-linear.o.
12157 (lto-symtab.o): Remove dependence on LAMBDA_H.
12158 (tree-loop-linear.o): Remove rule.
12159 (lambda-mat.o): Same.
12160 (lambda-trans.o): Same.
12161 (lambda-code.o): Same.
12162 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12163 (tree-vect-slp.o): Same.
12164 * hwint.h (gcd): Moved here.
12165 (least_common_multiple): Same.
12166 * lambda-code.c: Removed.
12167 * lambda-mat.c: Removed.
12168 * lambda-trans.c: Removed.
12169 * lambda.h: Removed.
12170 * tree-loop-linear.c: Removed.
12171 * lto-symtab.c: Do not include lambda.h.
12172 * omega.c (gcd): Removed.
12173 * passes.c (init_optimization_passes): Remove pass_linear_transform.
12174 * tree-data-ref.c (print_lambda_vector): Moved here.
12175 (lambda_vector_copy): Same.
12176 (lambda_matrix_copy): Same.
12177 (lambda_matrix_id): Same.
12178 (lambda_vector_first_nz): Same.
12179 (lambda_matrix_row_add): Same.
12180 (lambda_matrix_row_exchange): Same.
12181 (lambda_vector_mult_const): Same.
12182 (lambda_vector_negate): Same.
12183 (lambda_matrix_row_negate): Same.
12184 (lambda_vector_equal): Same.
12185 (lambda_matrix_right_hermite): Same.
12186 * tree-data-ref.h: Do not include lambda.h.
12187 (lambda_vector): Moved here.
12188 (lambda_matrix): Same.
12189 (dependence_level): Same.
12190 (lambda_transform_legal_p): Removed declaration.
12191 (lambda_collect_parameters): Same.
12192 (lambda_compute_access_matrices): Same.
12193 (lambda_vector_gcd): Same.
12194 (lambda_vector_new): Same.
12195 (lambda_vector_clear): Same.
12196 (lambda_vector_lexico_pos): Same.
12197 (lambda_vector_zerop): Same.
12198 (lambda_matrix_new): Same.
12199 * tree-flow.h (least_common_multiple): Removed declaration.
12200 * tree-parloops.c (lambda_trans_matrix): Moved here.
12201 (LTM_MATRIX): Same.
12202 (LTM_ROWSIZE): Same.
12203 (LTM_COLSIZE): Same.
12204 (LTM_DENOMINATOR): Same.
12205 (lambda_trans_matrix_new): Same.
12206 (lambda_matrix_vector_mult): Same.
12207 (lambda_transform_legal_p): Same.
12208 * tree-pass.h (pass_linear_transform): Removed declaration.
12209 * tree-ssa-loop.c (tree_linear_transform): Removed.
12210 (gate_tree_linear_transform): Removed.
12211 (pass_linear_transform): Removed.
12212 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12213 flag_loop_interchange.
12215 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12217 PR tree-optimization/47265
12218 PR tree-optimization/47443
12219 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12220 if name still has some uses.
12222 2011-01-25 Martin Jambor <mjambor@suse.cz>
12224 PR tree-optimization/47382
12225 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12226 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12228 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
12230 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12231 sjlj_except_unwind_info.
12233 2011-01-25 Richard Guenther <rguenther@suse.de>
12235 PR tree-optimization/47426
12236 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12237 visible functions results escape.
12239 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12242 * config/arm/arm.c (any_sibcall_uses_r3): New function.
12243 (arm_get_frame_offsets): Use it.
12245 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12246 Jakub Jelinek <jakub@redhat.com>
12248 PR tree-optimization/47271
12249 * tree-if-conv.c (bb_postdominates_preds): New.
12250 (if_convertible_bb_p): Call bb_postdominates_preds.
12251 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12252 (predicate_scalar_phi): Call bb_postdominates_preds.
12254 2011-01-25 Nick Clifton <nickc@redhat.com>
12256 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12257 * config/rx/rx.c (rx_function_value): Likewise.
12258 (rx_promote_function_mode): Likewise.
12259 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12260 in order to make it legitimate.
12261 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12262 make sure that the first operand is the same as the result register.
12263 (addsi3_unspec): Delete.
12264 (subdi3): Do not accept immediate operands.
12265 (subdi3_internal): Likewise.
12267 2011-01-25 Jeff Law <law@redhat.com>
12269 PR rtl-optimization/37273
12270 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12271 handle them like argument loads from stack slots. Do not double
12272 count memory for memory constants and argument loads from stack slots.
12274 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12276 PR tree-optimization/47427
12277 PR tree-optimization/47428
12278 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12279 coalesce if the new root var would be TREE_READONLY.
12281 2011-01-25 Richard Guenther <rguenther@suse.de>
12283 PR middle-end/47414
12284 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12285 correct type for TBAA.
12287 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12289 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12290 (close_phi_written_to_memory): Call for_each_index with
12291 dr_indices_valid_in_loop.
12293 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12295 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12296 when it is initialized.
12298 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12300 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12301 call to graphite_find_data_references_in_stmt.
12302 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12303 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
12304 call to graphite_find_data_references_in_stmt.
12305 (analyze_drs_in_stmts): Same.
12306 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12307 in which the scalar analysis of indices is performed.
12308 (create_data_ref): Same. Update call to dr_analyze_indices.
12309 (find_data_references_in_stmt): Update call to create_data_ref.
12310 (graphite_find_data_references_in_stmt): Same.
12311 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12313 (create_data_ref): Same.
12314 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12315 call to create_data_ref.
12317 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12319 * graphite-sese-to-poly.c (build_poly_scop): Move
12320 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12322 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12324 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12325 VAR_DECL, PARM_DECL, and RESULT_DECL.
12327 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12329 * graphite-dependences.c (reduction_dr_1): Allow several reductions
12330 in a reduction PBB.
12331 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12332 that have already been marked as PBB_IS_REDUCTION.
12334 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12336 * graphite-scop-detection.c (same_close_phi_node): New.
12337 (remove_duplicate_close_phi): New.
12338 (make_close_phi_nodes_unique): New.
12339 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12341 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12343 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12344 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12345 of both data references to be the same.
12347 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12349 * graphite-dependences.c (build_lexicographical_constraint): Remove
12350 the gdim parameter.
12351 (build_lexicographical_constraint): Adjust call to
12352 ppl_powerset_is_empty.
12353 (dependence_polyhedron): Same.
12354 (graphite_legal_transform_dr): Same.
12355 (graphite_carried_dependence_level_k): Same.
12356 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12358 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12360 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12362 * graphite-sese-to-poly.c
12363 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12364 (close_phi_written_to_memory): New.
12365 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12368 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12370 * doc/install.texi: Update the expected version number of PPL to 0.11.
12371 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12372 #if PPL_VERSION_MINOR < 11.
12374 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12376 * graphite-dependences.c: Include graphite-cloog-util.h.
12377 (new_poly_ddr): Inlined into dependence_polyhedron.
12378 (free_poly_ddr): Moved close by new_poly_ddr.
12379 (dependence_polyhedron_1): Renamed dependence_polyhedron.
12380 Early return NULL when ppl_powerset_is_empty returns true.
12381 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
12382 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
12383 (graphite_legal_transform_dr): Call new_poly_ddr.
12384 (graphite_carried_dependence_level_k): Same.
12385 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
12386 (dot_transformed_deps_stmt_1): Removed.
12387 (dot_deps_stmt_1): Call dot_deps_stmt_2.
12388 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
12389 (dot_deps_1): Call dot_deps_2.
12390 * Makefile.in (graphite-dependences.o): Add missing dependence on
12391 graphite-cloog-util.h.
12393 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12395 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12396 (build_lexicographical_constraint): Same.
12397 (dependence_polyhedron_1): Same.
12398 (graphite_legal_transform_dr): Same.
12399 (graphite_carried_dependence_level_k): Same.
12400 * graphite-ppl.c (ppl_powerset_is_empty): New.
12401 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12402 * tree-data-ref.c (dump_data_reference): Print the basic block index.
12404 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12406 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12407 the "a followed by b" relation and document it.
12409 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12411 * graphite-dependences.c (build_lexicographical_constraint): Stop the
12412 iteration when the bag of constraints is empty.
12414 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12416 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12418 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12420 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12421 nest and two loop depths as parameters.
12422 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12423 lst_perfect_nestify.
12425 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12427 * graphite-dependences.c (print_pddr): Call
12428 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12430 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12432 * graphite-ppl.c (debug_gmp_value): New.
12433 * graphite-ppl.h (debug_gmp_value): Declared.
12435 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
12437 * doc/install.texi: Document availability of cloog-0.16.
12439 2011-01-25 Vladimir Kargov <kargov@gmail.com>
12441 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12442 invalid postdominance info.
12444 2011-01-24 Jan Hubicka <jh@suse.cz>
12447 * doc/extend.texi (weak pragma): Drop claim that it must
12448 appear before definition.
12449 * varasm.c (merge_weak, declare_weak): Only sanity check
12450 that DECL is not output at a time it is declared weak.
12452 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
12454 * machmode.def: Fixed comments.
12456 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
12458 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12460 2011-01-24 Paul Koning <ni1d@arrl.net>
12462 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12465 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
12468 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12469 (block_info): Add scanned and prev.
12470 (move_or_delete_vzeroupper_2): Return if the basic block
12471 has been scanned and the upper 128bit state is unchanged
12472 from the last scan.
12473 (move_or_delete_vzeroupper_1): Return true if the exit
12475 (move_or_delete_vzeroupper): Visit basic blocks using the
12476 work-list based algorithm based on vt_find_locations in
12479 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12481 2011-01-24 Nick Clifton <nickc@redhat.com>
12483 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12484 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12485 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
12486 then define __v850e1__.
12487 * doc/invoke.texi: Document -mv850es.
12489 2011-01-24 Richard Henderson <rth@redhat.com>
12491 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12492 compound unordered comparisons.
12493 * config/rx/rx.c (rx_split_fp_compare): Remove.
12494 * config/rx/rx-protos.h: Update.
12495 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12496 (cbranchsf4): Don't call rx_split_fp_compare.
12497 (*cbranchsf4): Use rx_split_cbranch.
12498 (*cmpsf): Don't accept "i" constraint.
12499 (*conditional_branch): Only valid after reload.
12500 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
12502 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12505 * config/rs6000/altivec.md (vector constant splitters): Add
12506 support for creating vector single precision constants if -mvsx is
12507 used and we would create the constant using Altivec primitives.
12509 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
12510 Richard Sandiford <rdsandiford@googlemail.com>
12512 PR rtl-optimization/47166
12513 * reload1.c (emit_reload_insns): Disable the spill_reg_store
12514 mechanism for PRE_MODIFY and POST_MODIFY.
12515 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12518 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
12520 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12522 2011-01-22 Jan Hubicka <jh@suse.cz>
12525 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12527 2011-01-22 Jan Hubicka <jh@suse.cz>
12529 PR tree-optimization/43884
12531 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12532 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12534 2011-01-22 Anatoly Sokolov <aesok@post.ru>
12536 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12537 * config/s390/s390.c (s390_register_move_cost,
12538 s390_memory_move_cost): New.
12539 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12541 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12543 PR middle-end/47401
12544 * except.c (sjlj_assign_call_site_values): Move setting the
12545 crtl->uses_eh_lsda flag to ...
12546 (sjlj_mark_call_sites): ... here.
12547 (sjlj_emit_function_enter): Support NULL dispatch label.
12548 (sjlj_build_landing_pads): In a function with no landing pads
12549 that still has must-not-throw regions, generate code to register
12550 a personality function with empty LSDA.
12552 2011-01-21 Richard Henderson <rth@redhat.com>
12554 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12556 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12558 * compare-elim.c: New file.
12559 * Makefile.in (OBJS-common): Add it.
12560 (compare-elim.o): New.
12561 * common.opt (fcompare-elim): New.
12562 * opts.c (default_options_table): Add OPT_fcompare_elim.
12563 * tree-pass.h (pass_compare_elim_after_reload): New.
12564 * passes.c (init_optimization_passes): Add it.
12565 * recog.h: Protect against re-inclusion.
12566 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12567 * doc/invoke.texi (-fcompare-elim): Document it.
12568 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12569 * doc/tm.texi: Rebuild.
12571 2011-01-22 Nick Clifton <nickc@redhat.com>
12573 * config/rx/rx.md (cstoresf4): Pass comparison operator to
12574 rx_split_fp_compare.
12576 2011-01-22 Nick Clifton <nickc@redhat.com>
12578 * config/rx/rx.md (UNSPEC_CONST): New.
12579 (deallocate_and_return): Wrap the amount popped off the stack in
12580 an UNSPEC_CONST in order to stop it being rejected by
12581 -mmax-constant-size.
12582 (pop_and_return): Add a "(return)" rtx.
12583 (call): Drop the immediate operand.
12584 (call_internal): Likewise.
12585 (call_value): Likewise.
12586 (call_value_internal): Likewise.
12587 (sibcall_internal): Likewise.
12588 (sibcall_value_internal): Likewise.
12589 (sibcall): Likewise. Generate an explicit call using
12591 (sibcall_value): Likewise.
12592 (mov<>): FAIL if a constant operand is not legitimate.
12593 (addsi3_unpsec): New pattern.
12595 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12596 (ok_for_max_constant): New function.
12597 (gen_safe_add): New function.
12598 (rx_expand_prologue): Use gen_safe_add.
12599 (rx_expand_epilogue): Likewise.
12600 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
12603 2011-01-21 Jeff Law <law@redhat.com>
12605 PR tree-optimization/47053
12606 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12607 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12608 statements are deleted.
12609 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
12610 is nonempty, then purge dead edges and cleanup the CFG.
12612 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12615 Temporarily revert:
12616 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12618 * tree-dfa.c (create_var_ann): Mark variable as used.
12620 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12622 PR middle-end/45566
12623 * except.c (convert_to_eh_region_ranges): Emit queued no-region
12624 notes from other section in hot/cold partitioning even if
12625 last_action is -3. Increment call_site_base.
12627 PR rtl-optimization/47366
12628 * fwprop.c (forward_propagate_into): Return bool. If
12629 any changes are made, -fnon-call-exceptions is used and
12630 REG_EH_REGION note is present, call purge_dead_edges
12631 and return true if it purged anything.
12632 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12633 any EH edges were purged.
12635 2011-01-21 Jeff Law <law@redhat.com>
12637 PR rtl-optimization/41619
12638 * caller-save.c (setup_save_areas): Break out code to determine
12639 which hard regs are live across calls by examining the reload chains
12640 so that it is always used.
12641 Eliminate code which checked REG_N_CALLS_CROSSED.
12643 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12645 PR tree-optimization/47355
12646 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12647 NOP has non-debug uses beyond PHIs in new_bb.
12649 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12652 * cfgexpand.c (account_used_vars_for_block): Only account vars
12653 that are annotated as used.
12654 (estimated_stack_frame_size): Don't set TREE_USED.
12655 * tree-dfa.c (create_var_ann): Mark variable as used.
12657 2011-01-21 Richard Guenther <rguenther@suse.de>
12659 PR middle-end/47395
12660 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12662 2011-01-21 Richard Guenther <rguenther@suse.de>
12664 PR tree-optimization/47365
12665 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12666 (vn_reference_lookup_pieces): Adjust.
12667 (vn_reference_lookup): Likewise.
12668 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12669 (vn_reference_lookup_3): Only look through kills if in
12670 VN_WALKREWRITE mode.
12671 (vn_reference_lookup_pieces): Adjust.
12672 (vn_reference_lookup): Likewise.
12673 (visit_reference_op_load): Likewise.
12674 (visit_reference_op_store): Likewise.
12675 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12676 (compute_avail): Likewise.
12677 (eliminate): Likewise.
12679 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12681 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12682 DECL_IGNORED_P non-reg vars if they are used.
12684 PR tree-optimization/47391
12685 * varpool.c (const_value_known_p): Return false if
12688 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
12691 * config/i386/i386.c (ix86_local_alignment): Handle
12692 case for va_list_type_node is nil.
12693 (ix86_canonical_va_list_type): Likewise.
12695 2011-01-21 Alan Modra <amodra@gmail.com>
12697 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12698 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12700 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12702 * config/arm/arm.md (define_attr type): Rename f_load
12703 and f_store to f_fpa_load and f_fpa_store. Update.
12704 (write_conflict): Deal with rename fallout.
12705 (*push_fp_multi): Likewise.
12706 * config/arm/fpa.md (f_load): Use f_fpa_load.
12707 (f_store): Use f_fpa_store.
12708 (*movsf_fpa): Likewise.
12709 (*movdf_fpa): Likewise.
12710 (*movxf_fpa): Likewise.
12711 (*thumb2_movsf_fpa): Likewise.
12712 (*thumb2_movdf_fpa): Likewise.
12713 (*thumb2_movxf_fpa): Likewise.
12714 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12715 f_loadd and f_stored.
12716 (*thumb2_movdi_vfp): Likewise.
12717 (*thumb2_movsf_vfp): Fix attribute to f_loads.
12718 (*thumb2_movsi_vfp): Likewise.
12719 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12720 Use f_loads instead of f_load.
12721 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12723 2011-01-20 Anatoly Sokolov <aesok@post.ru>
12725 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12726 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12727 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12728 (xtensa_mode_dependent_address_p): New function.
12729 (constantpool_address_p): Make static. Change return type to bool.
12730 Change argument type to const_rtx. Use CONST_INT_P predicate.
12732 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
12735 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12737 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12740 * cfgexpand.c (expand_debug_expr): Instead of generating
12741 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12744 2011-01-20 Richard Guenther <rguenther@suse.de>
12746 PR middle-end/47370
12747 * tree-inline.c (remap_gimple_op_r): Recurse manually for
12748 the pointer operand of MEM_REFs.
12750 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12752 PR tree-optimization/46130
12753 * ipa-split.c (consider_split): If return_bb contains non-virtual
12754 PHIs other than for retval or if split_function would not adjust it,
12757 2011-01-20 Richard Guenther <rguenther@suse.de>
12759 PR tree-optimization/47167
12760 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12761 Revert previous change, only avoid enumeral type changes.
12763 2011-01-19 Mike Stump <mikestump@comcast.net>
12765 * doc/tm.texi.in (BRANCH_COST): Englishify.
12766 * doc/tm.texi (BRANCH_COST): Likewise.
12768 2011-01-19 Dodji Seketeli <dodji@redhat.com>
12771 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12772 (gen_scheduled_generic_parms_dies): New functions.
12773 (gen_struct_or_union_type_die): Schedule template parameters DIEs
12774 generation for the end of CU compilation.
12775 (dwarf2out_finish): Generate template parameters DIEs here.
12777 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12780 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12781 debug bind stmt on merge edges.
12783 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12787 * function.c (instantiate_expr): Instantiate incoming rtl of
12788 implicit arguments, and recurse on VALUE_EXPRs.
12789 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12790 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12792 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12794 * c-parser.c (c_parser_for_statement): Initialize
12795 collection_expression.
12797 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12799 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12801 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12803 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12804 (LINK_SHLIB_SPEC): Don't use %(link_path).
12805 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12807 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12809 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12810 (NO_SHARED_LIB_SUPPORT): Remove.
12811 (LINK_SHLIB_SPEC): Remove one conditional definition.
12813 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12815 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12817 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12818 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12819 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12820 %{call_shared} and conditionals on these options not being passed.
12821 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12824 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12826 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12829 * ipa-split.c: Spelling fixes.
12831 2011-01-19 Richard Henderson <rth@redhat.com>
12833 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12834 (*mulsi3): Likewise.
12836 * longlong.h [__mn10300__] (count_leading_zeros): New.
12837 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12838 [__mn10300__] (add_ssaaaa, subddmmss): New.
12839 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12840 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12842 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12844 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12846 2011-01-19 Richard Henderson <rth@redhat.com>
12848 * config/mn10300/mn10300.md (addsi3_flags): New.
12849 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12850 (subsi3_flags, subc_internal, subdi3): New.
12851 (subdi3_internal, *subdi3_degenerate): New.
12852 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12854 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12855 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12856 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12857 * config/mn10300/mn10300-protos.h: Update.
12858 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12859 (return_ret): Likewise. Rename from return_internal_regs.
12860 (return_internal): Remove.
12862 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12863 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12864 (mn10300_legitimate_constant_p): Likewise.
12865 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12866 (mn10300_frame_size): New.
12867 (mn10300_expand_prologue): Use it.
12868 (mn10300_expand_epilogue): Likewise.
12869 (mn10300_initial_offset): Likewise.
12870 * config/mn10300/mn10300-protos.h: Update.
12871 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12872 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12873 (prologue, epilogue, return_internal): Tidy output code.
12874 (mn10300_store_multiple_operation, return): Likewise.
12875 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12876 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12877 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12878 (load_pic, am33_load_pic): New.
12879 (mn10300_load_pic0, mn10300_load_pic1): New.
12881 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12882 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12883 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12884 (cc_flags_for_mode, cc_flags_for_code): New.
12885 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12886 overflow flag is not valid. Validate that the flags we need
12887 for the comparison are valid.
12888 (mn10300_output_cmp): Remove.
12889 (mn10300_output_add): New.
12890 (mn10300_select_cc_mode): Use cc_flags_for_code.
12891 (mn10300_split_cbranch): New.
12892 (mn10300_match_ccmode): New.
12893 (mn10300_split_and_operand_count): New.
12894 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12896 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12897 (addsi3): ... here. Use mn10300_output_add.
12898 (*addsi3_flags): New.
12899 (*am33_subsi3, *mn10300_subsi3): Merge...
12900 (subsi3): ... here. Use attribute isa.
12901 (*subsi3_flags): New.
12902 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
12904 (*am33_andsi3, *mn10300_andsi3): Merge...
12905 (andsi3): ... here.
12906 (*andsi3_flags): New.
12907 (andsi3 splitters): New.
12908 (*am33_iorsi3, *mn10300_iorsi3): Merge...
12909 (iorsi3): ... here.
12910 (*iorsi3_flags): New.
12911 (*am33_xorsi3, *mn10300_xorsi3): Merge...
12912 (xorsi3): ... here.
12913 (*xorsi3_flags): New.
12914 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12915 (one_cmplsi2): ... here.
12916 (*one_cmplsi2_flags): New.
12917 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
12918 instead of "dax" in constraints. Use mn10300_split_cbranch.
12919 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
12920 use matching constraints to eliminate a self-comparison.
12921 (*integer_conditional_branch): Rename from integer_conditional_branch.
12922 Use int_mode_flags to match CC_REG.
12923 (*cbranchsi4_btst, *btstsi): New.
12924 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
12925 mn10300_split_cbranch.
12926 (*am33_cmpsf): Rename from am33_cmpsf.
12927 (*float_conditional_branch): Rename from float_conditional_branch.
12928 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12929 (zero_extendqisi2): ... here.
12930 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12931 (zero_extendhisi2): ... here.
12932 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12933 (extendqisi2): ... here.
12934 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12935 (extendhisi2): ... here.
12936 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12937 (ashlsi3): ... here.
12938 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12939 (lshrsi3): ... here.
12940 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12941 (ashrsi3): ... here.
12942 (consecutive add peephole): Remove.
12943 * config/mn10300/predicates.md (label_ref_operand): New.
12944 (int_mode_flags): New.
12945 (CCZN_comparison_operator): New.
12947 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12948 (throughput_42_latency_43): New reservation.
12949 (mulsidi3, umulsidi3): New expanders.
12950 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
12951 the MDR register to allocation; separately allocate the low and
12952 high parts of the DImode result.
12953 (umulsidi3_internal): Similarly.
12954 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12955 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
12956 (udivsi3, umodsi3): Remove.
12957 (udivmodsi4, divmodsi4): New expanders.
12958 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
12959 (*divmodsi4): Simiarly.
12960 (ext_internal): New.
12962 * config/mn10300/constraints.md ("z"): New constraint.
12963 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12964 (FIXED_REGISTERS): Don't fix MDR.
12965 (CALL_USED_REGSITERS): Reformat nicely.
12966 (REG_ALLOC_ORDER): Add MDR.
12967 (enum regclass): Add MDR_REGS.
12968 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12969 (IRA_COVER_CLASSES): Add MDR_REGS.
12970 (REGNO_REG_CLASS): Handle MDR_REG.
12971 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12972 (mn10300_register_move_cost): Likewise.
12973 * config/mn10300/mn10300.md (MDR_REG): New.
12974 (*movsi_internal): Handle moves to/from MDR_REGS.
12976 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12978 (mn10300_secondary_reload): Tidy combination reload classes.
12979 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12980 addresses for AM33. Allow symbolic offsets for reg+imm.
12981 (mn10300_regno_in_class_p): New.
12982 (mn10300_legitimize_reload_address): New.
12983 * config/mn10300/mn10300.h (enum reg_class): Remove
12984 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12985 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
12986 SP_OR_GENERAL_REGS.
12987 (REG_CLASS_NAMES): Update to match.
12988 (REG_CLASS_CONTENTS): Likewise.
12989 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12990 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12991 (REGNO_IN_RANGE_P): Remove.
12992 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12993 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12994 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12995 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12996 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12997 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12998 (REGNO_GENERAL_P): New.
12999 (HAVE_POST_MODIFY_DISP): New.
13000 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13001 (LEGITIMIZE_RELOAD_ADDRESS): New.
13002 * config/mn10300/mn10300-protos.h: Update.
13004 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13005 DATA_REGS for AM33 stack-pointer destination.
13006 (mn10300_preferred_output_reload_class): Likewise.
13007 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13008 into a form appropriate for ...
13009 (TARGET_SECONDARY_RELOAD): New.
13010 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13011 * config/mn10300/mn10300-protos.h: Update.
13012 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13013 reload_insi; use the "A" constraint for the scratch; handle AM33
13014 moves of sp to non-address registers.
13016 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13017 (*movqi_internal): ... here.
13018 (*am33_movhi, *mn10300_movhi): Merge into...
13019 (*movhi_internal): ... here.
13020 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
13021 as the source/destination of moves from/to SP.
13022 (movsf): Only allow for AM33-2.
13023 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13024 any integer constant constraint. Only allow for AM33-2. Tidy
13025 all of the alternative outputs.
13026 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13027 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
13029 (udivsi3, umodsi3): New patterns for MN103 only.
13031 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
13033 * doc/tm.texi.in: Spell out that a lack of register class unions
13035 * doc/tm.texi: Regenerate.
13037 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13039 PR rtl-optimization/47337
13040 * dce.c (check_argument_store): New function.
13041 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
13043 PR tree-optimization/47290
13044 * tree-eh.c (infinite_empty_loop_p): New function.
13045 (cleanup_empty_eh): Use it.
13047 2011-01-18 Steve Ellcey <sje@cup.hp.com>
13050 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13051 (a64_expand_widen_sum): Ditto.
13052 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13053 (vec_extract_evenodd_help): Ditto.
13054 (vec_extract_evenv4hi): Ditto.
13055 (vec_extract_oddv4hi): Ditto.
13056 (vec_extract_evenv2si): Ditto.
13057 (vec_extract_oddv2si): Ditto.
13058 (vec_extract_evenv2sf): Ditto.
13059 (vec_extract_oddv2sf): Ditto.
13060 (vec_pack_trunc_v4hi: Ditto.
13061 (vec_pack_trunc_v2si): Ditto.
13062 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13063 (vec_interleave_highv8qi): Ditto.
13065 (vec_extract_oddv8qi): Ditto.
13066 (vec_interleave_lowv4hi): Ditto.
13067 (vec_interleave_highv4hi): Ditto.
13068 (vec_interleave_lowv2si): Ditto.
13069 (vec_interleave_highv2si): Ditto.
13071 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13073 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13074 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13075 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
13076 (pa_c_mode_for_suffix): New.
13077 (TARGET_EXPAND_BUILTIN): Define.
13078 (TARGET_C_MODE_FOR_SUFFIX): Define.
13079 (pa_builtins): Define.
13080 (pa_init_builtins): Register __float128 type and init new support
13082 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13083 * config/pa/quadlib.c (_U_Qfcopysign): New.
13085 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
13087 PR middle-end/46894
13088 * explow.c (allocate_dynamic_stack_space): Do not assume more than
13089 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13092 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13094 PR tree-optimization/47179
13095 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13096 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13098 2011-01-18 Richard Guenther <rguenther@suse.de>
13100 PR rtl-optimization/47216
13101 * emit-rtl.c: Include tree-flow.h.
13102 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13103 of replicating it with different semantics.
13104 * Makefile.in (emit-rtl.o): Adjust.
13106 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13108 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13109 (cortex_a9_dp): Handle neon types correctly.
13111 2011-01-18 Jakub Jelinek <jakub@redhat.com>
13113 PR rtl-optimization/47299
13114 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13115 subtarget. Use normal multiplication if both operands are constants.
13116 * expmed.c (expand_widening_mult): Don't try to optimize constant
13117 multiplication if op0 has VOIDmode. Convert op1 constant to mode
13120 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13122 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
13123 spacing after 'e.g.', typos, comma, hyphenation.
13125 2011-01-17 Richard Henderson <rth@redhat.com>
13127 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13128 (rx_restricted_mem_operand): New.
13129 (rx_shift_operand): Use register_operand.
13130 (rx_source_operand, rx_compare_operand): Likewise.
13131 * config/rx/rx.md (addsi3_flags): New expander.
13132 (adddi3): Rewrite as expander.
13133 (adc_internal, *adc_flags, adddi3_internal): New patterns.
13134 (subsi3_flags): New expander.
13135 (subdi3): Rewrite as expander.
13136 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13138 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13139 (rx_init_builtins): Remove sat builtin.
13140 (rx_expand_builtin): Likewise.
13141 * config/rx/rx.md (ssaddsi3): New.
13142 (*sat): Rename from sat. Represent the CC_REG input.
13144 * config/rx/predicates.md (rshift_operator): New.
13145 * config/rx/rx.c (rx_expand_insv): Remove.
13146 * config/rx/rx-protos.h: Update.
13147 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
13148 operand to the canonical position.
13149 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13150 (*bitclr, *bitclr_in_memory): Similarly.
13151 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13152 (insv): Retain the zero_extract in the expansion.
13154 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13155 (bswaphi2, bitinvert, revw): Likewise.
13157 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13158 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13159 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13160 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13161 (bitset, bitset_in_memory): Likewise.
13162 (bitinvert, bitinvert_in_memory): Likewise.
13163 (bitclr, bitclr_in_memory): Likewise.
13164 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13165 (rx_strend, rx_cmpstrn): Likewise.
13166 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
13167 (bitop peep2 patterns): Remove.
13169 * config/rx/rx.c (rx_match_ccmode): New.
13170 * config/rx/rx-protos.h: Update.
13171 * config/rx/rx.md (abssi2): Clobber, don't set flags.
13172 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13173 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13174 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13175 (fix_truncsfsi2, floatsisf2): Likewise.
13176 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13177 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13178 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13179 (*subsi3_flags, *xorsi3_flags): New.
13181 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13183 * config/rx/rx.c (rx_print_operand): Remove workaround for
13184 unsplit comparison operations.
13186 * config/rx/rx.md (movsicc): Split after reload.
13187 (*movsicc): Merge *movsieq and *movsine via match_operator.
13188 (*stcc): New pattern.
13190 * config/rx/rx.c (rx_float_compare_mode): Remove.
13191 * config/rx/rx.h (rx_float_compare_mode): Remove.
13192 * config/rx/rx.md (cstoresi4): Split after reload.
13193 (*sccc): New pattern.
13195 * config/rx/predicates.md (label_ref_operand): New.
13196 (rx_z_comparison_operator): New.
13197 (rx_zs_comparison_operator): New.
13198 (rx_fp_comparison_operator): New.
13199 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13200 Validate that the flags are set properly for the comparison.
13201 (rx_gen_cond_branch_template): Remove.
13202 (rx_cc_modes_compatible): Remove.
13203 (mode_from_flags): New.
13204 (flags_from_code): Rename from flags_needed_for_conditional.
13205 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13206 (rx_select_cc_mode): Likewise.
13207 (rx_split_fp_compare): New.
13208 (rx_split_cbranch): New.
13209 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13210 (*cbranchsi4): Use match_operator and rx_split_cbranch.
13211 (*cbranchsf4): Similarly.
13212 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
13213 match_operator and rx_split_cbranch.
13214 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13215 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
13216 (*cmpsi): Rename from cmpsi.
13217 (*tstsi): Rename from tstsi.
13218 (*cmpsf): Rename from cmpsf; use CC_Fmode.
13219 (*conditional_branch): Rename from conditional_branch.
13220 (*reveresed_conditional_branch): Remove.
13221 (b<code>): Remove expander.
13222 * config/rx/rx-protos.h: Update.
13224 * config/rx/rx.c (rx_compare_redundant): Remove.
13225 * config/rx/rx.md (cmpsi): Don't use it.
13226 * config/rx/rx-protos.h: Update.
13228 * config/rx/rx-modes.def (CC_F): New mode.
13229 * config/rx/rx.c (rx_select_cc_mode): New.
13230 * config/rx/rx.h (SELECT_CC_MODE): Use it.
13231 * config/rx/rx-protos.h: Update.
13233 2011-01-17 Richard Henderson <rth@redhat.com>
13235 * except.c (dump_eh_tree): Fix stray ; after for statement.
13237 2011-01-17 Richard Guenther <rguenther@suse.de>
13239 PR tree-optimization/47313
13240 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13241 handling before copying the body. Properly deal with
13242 by-reference result in SSA form.
13244 2011-01-17 Ian Lance Taylor <iant@google.com>
13247 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13248 (struct_value_alias_set): Don't define.
13249 (sparc_option_override): Don't set sparc_sr_alias_set and
13250 struct_value_alias_set.
13251 (save_or_restore_regs): Use gen_frame_mem rather than calling
13253 (sparc_struct_value_rtx): Likewise.
13255 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
13258 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13259 (_mm_maskstore_pd): Likewise.
13260 (_mm_maskload_ps): Likewise.
13261 (_mm_maskstore_ps): Likewise.
13262 (_mm256_maskload_pd): Change mask to __m256i.
13263 (_mm256_maskstore_pd): Likewise.
13264 (_mm256_maskload_ps): Likewise.
13265 (_mm256_maskstore_ps): Likewise.
13267 * config/i386/i386-builtin-types.def: Updated.
13268 (ix86_expand_special_args_builtin): Likewise.
13270 * config/i386/i386.c (bdesc_special_args): Update
13271 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13272 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13273 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13274 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13276 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13277 Use <avxpermvecmode> on mask register.
13278 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13280 2011-01-17 Olivier Hainque <hainque@adacore.com>
13281 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13282 Eric Botcazou <ebotcazou@adacore.com>
13285 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13286 if <= USHRT_MAX in 32-bit mode.
13288 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13290 * doc/install.texi (Configuration, Specific): Wrap long
13291 lines in examples. Allow line wrapping in long options
13292 and URLs where beneficial for PDF output.
13294 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
13296 * config/mips/mips.c (mips_classify_symbol): Don't return
13297 SYMBOL_PC_RELATIVE for nonlocal labels.
13299 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
13301 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13303 2011-01-15 Jan Hubicka <jh@suse.cz>
13305 PR tree-optimization/47276
13306 * ipa.c (function_and_variable_visibility): Do not try to mark alias
13307 declarations as needed.
13309 2011-01-15 Martin Jambor <mjambor@suse.cz>
13311 * common.opt (fdevirtualize): New flag.
13312 * doc/invoke.texi (Option Summary): Document it.
13313 * opts.c (default_options_table): Add devirtualize flag.
13314 * ipa-prop.c (detect_type_change): Return immediately if
13315 devirtualize flag is not set.
13316 (detect_type_change_ssa): Likewise.
13317 (compute_known_type_jump_func): Likewise.
13318 (ipa_analyze_virtual_call_uses): Likewise.
13320 2011-01-14 Martin Jambor <mjambor@suse.cz>
13322 PR tree-optimization/45934
13323 PR tree-optimization/46302
13324 * ipa-prop.c (type_change_info): New type.
13325 (stmt_may_be_vtbl_ptr_store): New function.
13326 (check_stmt_for_type_change): Likewise.
13327 (detect_type_change): Likewise.
13328 (detect_type_change_ssa): Likewise.
13329 (compute_complex_assign_jump_func): Check for dynamic type change.
13330 (compute_complex_ancestor_jump_func): Likewise.
13331 (compute_known_type_jump_func): Likewise.
13332 (compute_scalar_jump_functions): Likewise.
13333 (ipa_analyze_virtual_call_uses): Likewise.
13334 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13336 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13338 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13339 * config/i386/i386.opt (msse5): New Alias.
13341 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13343 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13344 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13345 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13346 * config/sparc/sparc.h (CC1_SPEC): Likewise.
13348 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13350 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13352 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13353 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13354 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13355 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13357 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13359 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13361 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13363 2011-01-14 Mike Stump <mikestump@comcast.net>
13365 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13366 * config/fr30/fr30.md: Likweise
13367 (movsi_push): Likewise.
13368 (movsi_pop): Likewise.
13369 (enter_func): Likewise.
13370 * config/moxie/moxie.md (movsi_push): Likewise.
13371 (movsi_pop): Likewise.
13373 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13375 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13376 %{no_archive} %{exact_version}.
13377 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13378 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13379 %{no_archive} %{exact_version}.
13380 * config/mips/openbsd.h (LINK_SPEC): Likewise.
13381 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13382 * config/mips/vxworks.h: Likewise.
13384 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13386 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13388 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13390 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13391 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13393 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13395 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13398 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13400 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13402 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13403 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13405 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13406 Don't handle -shlib.
13408 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13410 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13411 (CC1_SPEC): Don't handle -profile.
13413 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13415 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13416 * config/mips/mips.h (CC1_SPEC): Likewise.
13418 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13420 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13421 * config/mips/mips.h (CC1_SPEC): Likewise.
13423 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13425 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13426 * config/m32r/linux.h (LINK_SPEC): Likewise.
13427 * config/mips/linux.h (LINK_SPEC): Likewise.
13428 * config/mips/linux64.h (LINK_SPEC): Likewise.
13429 * config/sparc/linux.h (LINK_SPEC): Likewise.
13430 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13431 LINK_SPEC): Likewise.
13432 * config/xtensa/linux.h (LINK_SPEC): Likewise.
13434 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13436 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13438 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13440 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13442 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13443 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13445 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13447 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13449 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13451 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13452 supports -Bstatic/-Bdynamic.
13453 * configure: Regenerate.
13455 2011-01-14 Jan Hubicka <jh@suse.cz>
13456 Jack Howarth <howarth@bromo.med.uc.edu>
13459 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13460 when checking debug_info_level. Test write_symbols instead of
13461 debug_hooks->var_location when setting flag_var_tracking_uninit.
13463 2011-01-14 Richard Guenther <rguenther@suse.de>
13465 PR tree-optimization/47179
13466 * target.def (ref_may_alias_errno): New target hook.
13467 * targhooks.h (default_ref_may_alias_errno): Declare.
13468 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13469 (default_ref_may_alias_errno): New function.
13470 * target.h (struct ao_ref_s): Declare.
13471 * tree-ssa-alias.c: Include target.h.
13472 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13473 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13474 (targhooks.o): Likewise.
13475 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13476 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13478 2011-01-14 Richard Guenther <rguenther@suse.de>
13480 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
13482 2011-01-14 Richard Guenther <rguenther@suse.de>
13484 PR tree-optimization/47280
13485 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13486 return CFG changes.
13487 (tree_ssa_forward_propagate_single_use_vars): Deal with
13488 CFG changes from associate_plusminus.
13490 2011-01-14 Richard Guenther <rguenther@suse.de>
13492 PR middle-end/47281
13494 2011-01-11 Richard Guenther <rguenther@suse.de>
13496 PR tree-optimization/46076
13497 * tree-ssa.c (useless_type_conversion_p): Conversions from
13498 unprototyped to empty argument list function types are useless.
13500 2011-01-14 Richard Guenther <rguenther@suse.de>
13502 PR tree-optimization/47286
13503 * tree-ssa-structalias.c (new_var_info): Register variables are global.
13505 2011-01-14 Martin Jambor <mjambor@suse.cz>
13507 PR middle-end/46823
13508 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13510 2011-01-13 Anatoly Sokolov <aesok@post.ru>
13512 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13513 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13514 * config/xtensa/xtensa.c (xtensa_libcall_value,
13515 xtensa_function_value_regno_p): New functions.
13516 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13518 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
13521 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13523 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13524 New function prototype.
13525 * config/i386/winnt.c (i386_pe_assemble_visibility):
13526 Warn only if attribute was specified by user.
13528 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13531 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13533 (floatunsdidf2_fcfidu): Ditto.
13535 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13537 * config/s390/s390.c (print_operand_address): Replace 'error' with
13538 'output_operand_lossage'.
13539 (print_operand): Likewise.
13541 2011-01-13 Jeff Law <law@redhat.com>
13543 PR rtl-optimization/39077
13544 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13545 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13546 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13547 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13548 * gcse.c (prune_insertions_deletions): New function.
13549 (compute_pre_data): Use it.
13551 2011-01-13 Dodji Seketeli <dodji@redhat.com>
13554 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13556 (prune_unused_types_mark): Use it.
13558 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
13560 PR rtl-optimization/45352
13561 * sel-sched.c: Update copyright years.
13562 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13563 in the advancing loop when we have issued issue_rate insns.
13565 2011-01-12 Richard Henderson <rth@redhat.com>
13567 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13568 (TARGET_MD_ASM_CLOBBERS): New.
13570 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13571 (TARGET_DELEGITIMIZE_ADDRESS): New.
13573 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13574 (clzsi2, *bsch): New patterns.
13576 * config/mn10300/mn10300.md (INT): New mode iterator.
13577 (*mov<INT>_clr): New pattern, and peep2 to generate it.
13579 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13580 flag_split_wide_types.
13582 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13583 (mn10300_trampoline_init): Rewrite without a template, an immediate
13584 load and a direct branch.
13585 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13587 2011-01-12 Anatoly Sokolov <aesok@post.ru>
13589 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13590 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13591 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13592 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13594 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
13597 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13600 2011-01-12 Jan Hubicka <jh@suse.cz>
13603 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13604 (PLUGIN_COND_CLOSE): New macro.
13605 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13607 2011-01-12 Richard Guenther <rguenther@suse.de>
13610 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13611 register variables in a MEM_REF.
13613 2011-01-12 Joseph Myers <joseph@codesourcery.com>
13615 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13616 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13617 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13618 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13619 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13620 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13621 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13622 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13623 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13624 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13625 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13626 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13627 * config/gnu-user.h: New. Copied from linux.h.
13628 (LINUX_TARGET_STARTFILE_SPEC): Rename to
13629 GNU_USER_TARGET_STARTFILE_SPEC.
13630 (LINUX_TARGET_ENDFILE_SPEC): Rename to
13631 GNU_USER_TARGET_ENDFILE_SPEC.
13632 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13633 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13634 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13635 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13636 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13637 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13638 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13639 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13640 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13641 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13642 * config/arm/linux-eabi.h (CC1_SPEC): Use
13643 GNU_USER_TARGET_CC1_SPEC.
13644 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13645 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13646 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13647 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13648 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13649 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13650 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13651 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13653 2011-01-12 Richard Guenther <rguenther@suse.de>
13656 * doc/invoke.texi (ffast-math): Document it is turned on
13659 2011-01-12 Jan Hubicka <jh@suse.cz>
13661 PR tree-optimization/47233
13662 * opts.c (common_handle_option): Disable ipa-reference with profile
13665 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13667 * c-parser.c (c_parser_objc_at_property_declaration): Improved
13670 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13672 * c-parser.c (c_lex_one_token): Updated and reindented some
13673 comments. No changes in code.
13675 2011-01-11 Ian Lance Taylor <iant@google.com>
13677 * godump.c (go_output_var): Don't output the variable if there is
13678 already a type with the same name.
13680 2011-01-11 Ian Lance Taylor <iant@google.com>
13682 * godump.c (go_format_type): Don't generate float80.
13684 2011-01-11 Richard Henderson <rth@redhat.com>
13686 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13687 declaration. Rewrite for both speed and size.
13688 (mn10300_address_cost_1): Remove.
13689 (mn10300_register_move_cost): New.
13690 (mn10300_memory_move_cost): New.
13691 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
13692 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
13693 extensions, shifts, BSWAP, CLZ.
13694 (mn10300_wide_const_load_uses_clr): Remove.
13695 (TARGET_REGISTER_MOVE_COST): New.
13696 (TARGET_MEMORY_MOVE_COST): New.
13697 * config/mn10300/mn10300-protos.h: Update.
13698 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13700 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13701 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13702 * config/mn10300/mn10300-protos.h: Update.
13703 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13704 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13705 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13706 (*test_int_bitfield, *test_byte_bitfield): Remove.
13707 (*bit_test, *subreg_bit_test): Remove.
13708 * config/mn10300/predicates.md (const_8bit_operand): Remove.
13710 * config/mn10300/constraints.md ("c"): Rename from "A".
13711 ("A", "D"): New constraint letters.
13712 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13713 (fmssf4, fnmasf4, fnmssf4): Likewise.
13715 * config/mn10300/mn10300.md (isa): New attribute.
13716 (enabled): New attribute.
13718 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13719 (abssf2, negsf2): Define only for hardware fp.
13720 (sqrtsf2): Reformat.
13721 (addsf3, subsf3, mulsf3): Merge expander and insn.
13723 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13724 (DEBUGGER_AUTO_OFFSET): Remove.
13725 (DEBUGGER_ARG_OFFSET): Remove.
13727 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13728 Emit register stores with the same offsets as the hardware.
13729 (mn10300_store_multiple_operation): Don't check that the register
13730 save offsets are monotonic.
13731 * config/mn10300/mn10300-protos.h: Update.
13733 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13735 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13736 in terms of the value on the stack, not the MDR register.
13738 2011-01-11 Jan Hubicka <jh@suse.cz>
13742 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13743 (symbol_alias_set_destroy, symbol_alias_set_contains,
13744 propagate_aliases_backward): Declare.
13745 * lto-streamer-out.c (struct sets): New sturcture.
13746 (trivally_defined_alias): New function.
13747 (output_alias_pair_p): Rewrite.
13748 (output_unreferenced_globals): Fix output of alias pairs.
13749 (produce_symtab): Likewise.
13750 * ipa.c (function_and_variable_visibility): Set weak alias destination
13752 * varasm.c (symbol_alias_set_t): Remove.
13753 (symbol_alias_set_destroy): Export.
13754 (propagate_aliases_forward, propagate_aliases_backward): New functions
13756 (compute_visible_aliases): ... this one; remove.
13757 (trivially_visible_alias): New
13758 (trivially_defined_alias): New.
13759 (remove_unreachable_alias_pairs): Rewrite.
13760 (finish_aliases_1): Reorganize code checking if alias is defined.
13761 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13764 2011-01-11 Richard Guenther <rguenther@suse.de>
13766 PR tree-optimization/46076
13767 * tree-ssa.c (useless_type_conversion_p): Conversions from
13768 unprototyped to empty argument list function types are useless.
13770 2011-01-11 Richard Guenther <rguenther@suse.de>
13772 PR middle-end/45235
13773 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13774 volatile MEMs as MEM_READONLY_P.
13776 2011-01-11 Richard Guenther <rguenther@suse.de>
13778 PR tree-optimization/47239
13779 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13781 2011-01-11 Jeff Law <law@redhat.com>
13783 PR tree-optimization/47086
13784 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13785 IVs from statements that might throw.
13787 2011-01-10 Jan Hubicka <jh@suse.cz>
13790 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13792 2011-01-10 Jan Hubicka <jh@suse.cz>
13795 * profile.c (read_profile_edge_counts): Ignore profile inconistency
13796 when correcting profile.
13798 2011-01-10 Jan Hubicka <jh@suse.cz>
13801 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13802 DECL_FINI_PRIORITY.
13803 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13804 Restore DECL_FINI_PRIORITY.
13806 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13808 * doc/gimple.texi: Fix quoting of multi-word return values in
13809 @deftypefn statements. Ensure presence of return value. Wrap
13810 overlong @deftypefn lines.
13811 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13812 descriptions of removed functions.
13813 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13814 of multi-word return value in @deftypefn statement.
13816 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13818 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13819 (Conditional Expressions, Logical Operators)
13820 (Statement and operand traversals): Do not indent smallexample
13821 code. Fix duplicate function argument in example.
13823 2011-01-10 Jeff Law <law@redhat.com>
13825 PR tree-optimization/47141
13826 * ipa-split.c (split_function): Handle case where we are
13827 returning a value and the return block has a virtual operand phi.
13829 2011-01-10 Jan Hubicka <jh@suse.cz>
13831 PR tree-optimization/47234
13832 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13833 (pass_feedback_split_functions): Declare.
13834 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13836 * ipa-split.c (gate_split_functions): Update comments; disable
13837 split-functions for profile_arc_flag and branch_probabilities.
13838 (gate_feedback_split_functions): New function.
13839 (execute_feedback_split_functions): New function.
13840 (pass_feedback_split_functions): New global var.
13842 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13845 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13846 calling gimple_call_set_cannot_inline.
13848 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13850 * config/darwin-sections.def: Remove unused section.
13852 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13855 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13857 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13860 * c-parser.c (c_parser_declaration_or_fndef): Improved
13863 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
13865 * config/i386/winnt.c (i386_pe_start_function): Make sure
13866 to switch back to function's section.
13868 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13872 * plugin.c: Move include of dlfcn.h from here...
13873 * system.h: ... to here.
13875 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13877 * doc/cpp.texi (C++ Named Operators): Fix markup for header
13879 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13880 two extra empty pages in PDF output.
13882 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
13885 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13886 for error recovery purposes behave as if it was not specified so
13887 that the default type is usd.
13889 2011-01-07 Jan Hubicka <jh@suse.cz>
13891 PR tree-optmization/46469
13892 * ipa.c (function_and_variable_visibility): Clear needed flags on
13893 nodes with external decls; handle weakrefs merging correctly.
13895 2011-01-07 Joseph Myers <joseph@codesourcery.com>
13897 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13900 2011-01-07 Jan Hubicka <jh@suse.cz>
13902 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13903 and no longer claim that gold is required for linker plugin.
13904 * configure: Regenerate.
13905 * gcc.c (PLUGIN_COND): New macro.
13906 (LINK_COMMAND_SPEC): Use it.
13907 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13908 * config.in (HAVE_LTO_PLUGIN): New.
13909 * configure.ac (--with-lto-plugin): New parameter; autodetect
13912 2011-01-07 Jan Hubicka <jh@suse.cz>
13914 PR tree-optimization/46367
13915 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13916 when we can update original.
13917 (cgraph_mark_inline_edge): Sanity check.
13918 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13920 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13922 * config/spu/spu.h (ASM_COMMENT_START): Define.
13924 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
13927 * gcc.c (%>S): New.
13928 (SWITCH_KEEP_FOR_GCC): Likewise.
13929 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13930 (do_spec_1): Handle "%>".
13932 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13934 2011-01-07 Jakub Jelinek <jakub@redhat.com>
13937 * config/i386/i386.c (ix86_delegitimize_address): If
13938 simplify_gen_subreg fails, return orig_x.
13941 * value-prof.c (gimple_stringop_fixed_value): Handle
13942 lhs of the call properly.
13944 2011-01-07 Jan Hubicka <jh@suse.cz>
13947 * lto-opt.c (lto_reissue_options): Set flag_shlib.
13949 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13951 * target.def (function_switched_text_sections): New hook.
13952 * doc/tm.texi: Regenerated.
13953 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13954 * final.c (default_function_switched_text_sections): New.
13955 (final_scan_insn): Call function_switched_text_sections when a
13956 mid-function section change occurs.
13957 * output.h (default_function_switched_text_sections): Declare.
13958 * config/darwin-protos.h (darwin_function_switched_text_sections):
13960 * config/darwin.c (darwin_function_switched_text_sections): New.
13961 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13963 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13965 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
13966 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
13967 the secondary code fragment when outputting for DWARF == 2.
13969 2011-01-07 Anatoly Sokolov <aesok@post.ru>
13971 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13972 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13974 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13975 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13977 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
13980 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13981 when it is not empty.
13983 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
13986 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13987 (case ${target}): Add btver1.
13988 * config/i386/driver-i386.c (host_detect_local_cpu): Let
13989 -march=native recognize btver1 processors.
13990 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13991 btver1 def_and_undef
13992 * config/i386/i386.c (struct processor_costs btver1_cost): New
13994 (m_BTVER1): New definition.
13995 (m_AMD_MULTIPLE): Includes m_BTVER1.
13996 (initial_ix86_tune_features): Add btver1 tune.
13997 (processor_target_table): Add btver1 entry.
13998 (static const char *const cpu_names): Add btver1 entry.
13999 (software_prefetching_beneficial_p): Add btver1.
14000 (ix86_option_override_internal): Add btver1 instruction sets.
14001 (ix86_issue_rate): Add btver1.
14002 (ix86_adjust_cost): Add btver1.
14003 * config/i386/i386.h (TARGET_BTVER1): New definition.
14004 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14005 (enum processor_type): Add PROCESSOR_BTVER1.
14006 * config/i386/i386.md (define_attr "cpu"): Add btver1.
14008 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14011 * config/i386/i386.c (legitimize_tls_address)
14012 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14013 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14014 (tls_initial_exec_64_sun): New pattern.
14016 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14018 * doc/invoke.texi (Overall Options): Improve wording and markup
14019 of the description of -wrapper.
14021 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14023 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14024 rdynamic, threads): New Driver options.
14026 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14029 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14030 if coming from .tdata.
14031 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14033 2011-01-06 Jan Hubicka <jh@suse.cz>
14036 * collect2.c (main): Do not enable LTOmode when plugin is active.
14038 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14041 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14042 --version output if supported.
14043 * configure: Regenerate.
14045 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14047 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14050 2011-01-06 Jakub Jelinek <jakub@redhat.com>
14053 * c-convert.c (convert): When converting a complex expression
14054 other than COMPLEX_EXPR to a different complex type, ensure
14055 c_save_expr is called instead of save_expr, unless in_late_binary_op.
14056 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14057 when converting COMPLEX_TYPE.
14059 2011-01-06 Ira Rosen <irar@il.ibm.com>
14061 PR tree-optimization/47139
14062 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14063 only the last reduction value is used outside the loop. Update
14066 2011-01-05 Joseph Myers <joseph@codesourcery.com>
14068 * config/rtems.opt: New.
14069 * config.gcc (*-*-rtems*): Use rtems.opt.
14071 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
14073 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14074 processors do not support 3DNow instructions.
14076 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14078 * config/spu/spu.c (spu_option_override): Set parameter
14079 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14081 2011-01-05 Jan Hubicka <jh@suse.cz>
14083 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14084 at the command line.
14086 2011-01-05 Martin Jambor <mjambor@suse.cz>
14089 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14090 deltas on streamed outgoing edges.
14091 (output_node_opt_summary): Output info for outgoing edges only when
14092 the node is in new parameter set.
14093 (output_cgraph_opt_summary): New parameter set, passed to the two
14094 aforementioned functions. Update its forward declaration and its
14097 2011-01-05 Tom Tromey <tromey@redhat.com>
14099 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14100 operator to c_finish_omp_atomic.
14101 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14102 (build_unary_op): Update.
14103 (build_modify_expr): Update.
14104 (build_asm_expr): Update.
14106 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14108 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14109 newly inserted insns.
14110 (pad_bb): Likewise.
14111 (spu_emit_branch_hint): Likewise.
14112 (insert_hbrp_for_ilb_runout): Likewise.
14113 (spu_machine_dependent_reorg): Call df_finish_pass after
14114 schedule_insns returns.
14116 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14118 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14120 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
14122 PR tree-optimization/47005
14123 * tree-sra.c (struct access): Add 'non_addressable' bit.
14124 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14125 (decide_one_param_reduction): Return 0 if the parameter is passed by
14126 reference and one of the accesses in the group is non_addressable.
14128 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14130 PR tree-optimization/47056
14131 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14132 (mark_load): Likewise. Handle FUNCTION_DECL specially.
14133 (mark_store): Likewise. Pass STMT to ipa_record_reference.
14135 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14137 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14138 initializer. Skip view conversions from aggregate types.
14140 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
14143 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14145 2011-01-04 Philipp Thomas <pth@suse.de>
14147 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14150 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14152 * function.c (thread_prologue_and_epilogue_insns): Do not crash
14153 on empty epilogue sequences.
14155 2011-01-04 Joseph Myers <joseph@codesourcery.com>
14157 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14158 non-static): New Driver options.
14160 2011-01-04 Jie Zhang <jie@codesourcery.com>
14163 * gcc.c (default_compilers[]): Set combinable field to 0
14164 for all assembly languages.
14166 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
14168 * config/mips/loongson3a.md: New file.
14169 * config/mips/mips.md: Include loongson3a.md.
14170 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14173 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
14175 PR middle-end/47017
14176 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14177 instead of convert_memory_address_addr_space on the base expression.
14179 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14181 * config/spu/spu.c (spu_option_override): Update error text
14182 for bad -march= / -mtune= values.
14184 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14186 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14187 if branch-hint optimization will be performed.
14189 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14191 PR tree-optimization/47148
14192 * ipa-split.c (split_function): Convert arguments to
14193 DECL_ARG_TYPE if possible.
14195 PR tree-optimization/47155
14196 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14197 when computing uns.
14199 PR rtl-optimization/47157
14200 * combine.c (try_combine): If undobuf.other_insn becomes
14201 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14202 and set *new_direct_jump_p too.
14204 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
14206 PR tree-optimization/47021
14207 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14209 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14211 * gcc.c (process_command): Update copyright notice dates.
14212 * gcov.c (print_version): Likewise.
14213 * gcov-dump.c (print_version): Likewise.
14214 * mips-tfile.c (main): Likewise.
14215 * mips-tdump.c (main): Likewise.
14217 2011-01-03 Martin Jambor <mjambor@suse.cz>
14219 PR tree-optimization/46801
14220 * tree-sra.c (type_internals_preclude_sra_p): Check whether
14221 aggregate fields start at byte boundary instead of the bit-field flag.
14223 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
14226 * gcc.c (main): Revert revision 168407.
14228 2011-01-03 Martin Jambor <mjambor@suse.cz>
14230 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14232 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14234 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14235 vector optab to expand vector/scalar shift, update gimple to vector.
14237 2011-01-03 Martin Jambor <mjambor@suse.cz>
14239 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14242 2011-01-03 Martin Jambor <mjambor@suse.cz>
14244 PR tree-optimization/46984
14245 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14247 (cgraph_create_indirect_edge): Fixed line length.
14248 (cgraph_indirect_call_info): Declare.
14249 (cgraph_make_edge_direct) Update declaration.
14250 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14251 (cgraph_create_indirect_edge): Use it.
14252 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
14254 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14255 the new thunk_delta representation.
14256 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14258 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14259 (ipa_read_indirect_edge_info): Likewise.
14260 * lto-cgraph.c (output_edge_opt_summary): New function.
14261 (output_node_opt_summary): Call it on all outgoing edges.
14262 (input_edge_opt_summary): New function.
14263 (input_node_opt_summary): Call it on all outgoing edges.
14265 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
14268 * gcc.c (main): Don't check have_o when settting combine_inputs.
14270 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
14272 * regrename.c: Add general comment describing the pass.
14273 (struct du_head): Remove 'length' field.
14274 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14275 (regrename_optimize): Do not sort chains. Rework comments, add others.
14276 Force renaming to the preferred class (if any) in the first pass and do
14277 not consider registers that belong to it in the second pass.
14278 (create_new_chain): Do not set 'length' field.
14279 (scan_rtx_reg): Likewise.
14281 2011-01-02 Jakub Jelinek <jakub@redhat.com>
14283 PR tree-optimization/47140
14284 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14285 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14286 to bit_value_binop.
14288 PR rtl-optimization/47028
14289 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14290 parm_birth_insn instead of at the beginning of first bb.
14292 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
14294 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14295 Remove the word "see" before "@pxref".
14296 * doc/rtl.texi: Remove the word "see" before "@pxref".
14298 2011-01-01 Jan Hubicka <jh@suse.cz>
14300 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14303 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
14306 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14309 Copyright (C) 2011 Free Software Foundation, Inc.
14311 Copying and distribution of this file, with or without modification,
14312 are permitted in any medium without royalty provided the copyright
14313 notice and this notice are preserved.