1 2011-05-13 Richard Guenther <rguenther@suse.de>
3 * gimple.c (gimple_canonical_types_compatible_p): Do not use
4 type-pair caching, do not compare hashes.
6 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
9 * tree-cfg.c (edge_to_cases_cleanup): Return true.
10 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
12 2011-05-13 Kai Tietz <ktietz@redhat.com>
14 * gimplify.c (gimplify_expr): Make sure operand is boolified.
15 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
16 compatible type for TRUTH_NOT_EXPR.
18 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
20 * config/i386/i386.c (ix86_save_reg): Change return type to
22 (ix86_hard_regno_mode_ok): Change return value to bool. Use
23 can_create_pseudo_p ().
25 2011-05-13 Richard Guenther <rguenther@suse.de>
28 * gimple.c (iterative_hash_gimple_type): Revert change in
29 pointer target and function result and argument hashing.
31 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
33 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
34 (*movxf_internal_nointeger): Ditto.
35 (*movdf_internal_rex64): Ditto.
36 (*movdf_internal): Ditto.
37 (*movdf_internal_nointeger): Ditto.
38 (*movsf_internal): Ditto.
39 (sincos splitters): Use can_create_pseudo ().
41 2011-05-13 Joseph Myers <joseph@codesourcery.com>
43 * config/i386/i386-opts.h: New.
44 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
45 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
46 ix86_section_threshold): Remove.
47 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
48 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
50 (ix86_option_override_internal): Don't decode strings for options
51 other than -march=, -mtune= and -mfpmath=. Don't allow for
52 __attribute__ uses in remaining diagnostics for options with
53 string arguments. Don't check for integer arguments being negative.
54 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
55 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
56 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
57 ix86_branch_cost, ix86_section_threshold): Remove.
58 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
60 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
62 (masm=): Use Enum and Init.
63 (asm_dialect): New Enum and EnumValue entries.
64 (mbranch-cost=): Use UInteger.
65 (mlarge-data-threshold=): Use UInteger and Init.
66 (mcmodel=): Use Enum and Init.
67 (cmodel): New Enum and EnumValue entries.
68 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
69 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
70 mregparm=): Use UInteger.
71 (mstringop-strategy=): Use Enum and Init.
72 (stringop_alg): New Enum and EnumValue entries.
73 (mtls-dialect=): Use Enum and Init.
74 (tls_dialect): New Enum and EnumValue entries.
75 (mabi=): Use Enum and Init.
76 (calling_abi): New Enum and EnumValue entries.
77 (mveclibabi=): Use Enum and Init.
78 (ix86_veclibabi): New Enum and EnumValue entries.
80 2011-05-13 Nick Clifton <nickc@redhat.com>
82 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
83 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
85 2011-05-13 Kai Tietz <ktietz@redhat.com>
88 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
89 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
90 (gimple_boolify): Check for cast for boolean_type_node instead for
93 2011-05-13 Richard Guenther <rguenther@suse.de>
95 PR tree-optimization/48172
96 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
97 multiplying by number of iterations for equal step.
98 (vect_create_cond_for_alias_checks): Likewise.
100 2011-05-13 Andreas Schwab <schwab@redhat.com>
102 * configure.ac: Use AS_HELP_STRING throughout.
103 * configure: Regenerate.
105 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
107 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
108 (ix86_emit_restore_regs_using_mov): Likewise.
109 (ix86_emit_restore_sse_regs_using_mov): Likewise.
111 2011-05-12 Anatoly Sokolov <aesok@post.ru>
113 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
114 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
115 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
116 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
117 RTX_OK_FOR_OLO10_P): ...here.
118 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
121 2011-05-12 Kai Tietz <ktietz@redhat.com>
123 * gimplify.c (gimple_boolify): Re-boolify expression
124 arguments even if expression type is of kind BOOLEAN_TYPE.
125 (gimplify_boolean_expr): Removed.
126 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
127 and XOR. Additional take care that we keep expression's type.
128 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
129 of TRUTH_AND|OR|XOR_EXPR.
131 2011-05-12 Jakub Jelinek <jakub@redhat.com>
133 PR tree-optimization/48975
134 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
135 on all bbs here and free and clear ifc_bbs at the end.
137 2011-05-12 Richard Guenther <rguenther@suse.de>
139 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
140 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
141 until after simple checks.
142 (gimple_types_compatible_p): Likewise.
143 (iterative_hash_gimple_type): Always hash pointer targets
144 and function return and argument types.
145 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
146 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
147 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
148 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
149 completely in the simple compare section.
150 (gimple_register_canonical_type): Query the cache again after
153 2011-05-12 Richard Guenther <rguenther@suse.de>
155 PR tree-optimization/48172
156 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
157 the number of iterations from the segment size calculation.
158 (vect_create_cond_for_alias_checks): Adjust.
160 2011-05-12 Jakub Jelinek <jakub@redhat.com>
163 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
164 if validate_subreg fails.
166 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
168 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
169 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
172 2011-05-12 DJ Delorie <dj@redhat.com>
174 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
175 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
176 created builtin into rx_builtins array.
177 (rx_builtin_decl): New function.
178 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
180 2011-05-12 DJ Delorie <dj@redhat.com>
181 Nick Clifton <nickc@redhat.com>
183 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
184 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
185 (rx_is_legitimate_address): Add pre-decrement and post-increment
186 addressing in HImode and QImode. Fix test for out of range
188 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
189 (rx_align_for_label): Test label before extracting its usage count.
190 (rx_adjust_insn_lengths): Fix selection of insn codes.
191 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
193 2011-05-11 Jason Merrill <jason@redhat.com>
195 * tree.c (type_hash_canon): Use struct tree_type_non_common.
197 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
199 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
200 reindent the subsequent block.
202 2011-05-11 Satoru Takabayashi <satorux@google.com>
203 Paul Pluzhnikov <ppluzhnikov@google.com>
205 * doc/install.texi (Configuration): Document --with-linker-hash-style.
206 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
207 * config.in: Add LINKER_HASH_STYLE.
208 * configure.ac: Add --with-linker-hash-style.
209 * configure: Regenerate.
211 2011-05-11 Richard Guenther <rguenther@suse.de>
214 * gimple.c (iterative_hash_canonical_type): Fix typo.
216 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
218 * config/i386/i386.c (legitimize_tls_address)
219 <TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
220 expanders directly for TARGET_GNU2_TLS. Determine pic and
221 __tls_get_addr symbol reference here. Update call to
222 gen_tls_global_dynamic_{32,64} for added arguments.
223 <TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
224 expanders directly for TARGET_GNU2_TLS. Determine
225 __tls_get_addr symbol reference here. Update call to
226 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
227 unique UNSPEC REG_EQUIV to libcall block.
228 (ix86_tls_get_addr): Declare static.
229 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
230 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
231 Do not determine pic and __tls_get_addr symbol reference here. Do not
232 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
233 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
234 (tls_global_dynamic_64): Add operand 2. Do not determine
235 __tls_get_addr symbol reference here. Do not call
236 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
237 (tls_local_dynamic_base64): Ditto for operand 1.
239 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
241 * function.c (expand_function_start): Initialize stack_check_probe_note
242 only if the generic stack checking mechanism is used.
244 2011-05-11 Richard Guenther <rguenther@suse.de>
246 PR tree-optimization/15256
247 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
248 (A & B) | C, combine (A op CST1) op CST2.
249 (tree_ssa_forward_propagate_single_use_vars): Only bother to
250 visit assigns that have uses.
252 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
254 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
255 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
256 (unpack_ts_type_common_value_fields): ...this. Update comment.
257 (unpack_value_fields): Adjust for renaming.
258 (lto_input_ts_type_tree_pointers): Split into...
259 (lto_input_ts_type_common_tree_pointer): ...this and...
260 (lto_input_ts_type_non_common_tree_pointers): ...this.
261 (lto_input_tree_pointers): Adjust for above split.
262 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
263 (pack_ts_type_common_value_fields): ...this. Update comment.
264 (lto_output_ts_type_tree_pointers): Split into...
265 (lto_output_ts_type_common_tree_pointers): ...this and...
266 (lto_output_ts_type_non_common_tree_pointers): ...this.
267 (lto_output_tree_pointers): Adjust for above split.
268 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
269 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
270 * stor-layout.c (vector_type_mode): Adjust location of mode field.
271 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
273 (struct tree_type): Split into...
274 (struct tree_type_common: ...this and...
275 (struct tree_type_with_lang_specific): ...this and...
276 (struct tree_type_non_common): ...this. Adjust accessor macros
278 (TYPE_VALUES_RAW): Define.
279 (union tree_node): Update for above changes.
280 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
282 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
283 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
284 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
285 * treestructu.def (TS_TYPE): Remove.
286 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
289 2011-05-11 Jakub Jelinek <jakub@redhat.com>
292 * tree-ssa.c (reset_debug_uses): New function.
293 * tree-flow.h (reset_debug_uses): New prototype.
294 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
295 * tree-loop-distribution.c (generate_loops_for_partition): Call
296 reset_debug_uses on the stmts that will be removed. Keep around
297 all debug stmts, don't count them as bits in partition bitmap.
298 (generate_builtin): Don't count debug stmts or labels as bits in
301 2011-05-11 Richard Guenther <rguenther@suse.de>
303 * gimple.c (gimple_type_hash_1): Merge with ...
304 (gimple_type_hash): ... this.
305 (gtc_visit): Remove mode parameter and simplify accordingly.
306 (gimple_types_compatible_p_1): Likewise.
307 (gimple_types_compatible_p): Likewise.
308 (iterative_hash_gimple_type): Likewise.
310 (gimple_type_eq): Adjust.
312 2011-05-11 Revital Eres <revital.eres@linaro.org>
314 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
315 enters the branch create an anti edge in the opposite direction
316 to prevent the creation of reg-moves.
317 * modulo-sched.c: Adjust comment to reflect the fact we are
318 scheduling closing branch.
319 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
320 (stage_count): New field in struct partial_schedule.
321 (calculate_stage_count): New function.
322 (normalize_sched_times): Rename to reset_sched_times and handle
323 incrementing the sched time of the nodes by a constant value
325 (duplicate_insns_of_cycles): Skip closing branch.
326 (sms_schedule_by_order): Schedule closing branch.
327 (ps_insn_find_column): Handle closing branch.
328 (sms_schedule): Call reset_sched_times and adjust the code to
329 support scheduling of the closing branch.
330 (ps_insert_empty_row): Update calls to normalize_sched_times
331 and rotate_partial_schedule functions.
333 2011-05-11 Richard Guenther <rguenther@suse.de>
336 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
338 2011-05-11 Joseph Myers <joseph@codesourcery.com>
340 * opts.c (finish_options): Move warning settings from process_options.
341 * toplev.c (process_options): Move warning settings to finish_options.
343 2011-05-11 Richard Guenther <rguenther@suse.de>
345 PR tree-optimization/18041
346 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
347 (simplify_bitwise_binary): ... this. Handle operand conversions
348 by applying them to the result instead.
349 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
351 2011-05-11 Richard Guenther <rguenther@suse.de>
353 * gimple.c (gimple_canonical_types_compatible_p): Split out
354 from gimple_types_compatible_p and friends. Do not recurse
356 (gimple_canonical_type_eq): Use it.
357 (iterative_hash_canonical_type): Split out from
358 iterative_hash_gimple_type and friends. Do not recurse
360 (gimple_canonical_type_hash): Use it, allocate the hash here.
362 2011-05-11 Revital Eres <revital.eres@linaro.org>
364 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
367 2011-05-11 Revital Eres <revital.eres@linaro.org>
369 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
370 instead of PREV_INSN.
372 2011-05-11 Revital Eres <revital.eres@linaro.org>
374 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
375 * loop-doloop.c (doloop_condition_get): Likewise.
376 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
378 * config/arm/arm.md (*addsi3_compare0): Remove "*".
380 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
382 * tree.def (CASE_LABEL_EXPR): Add an operand.
383 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
385 2011-05-10 Joseph Myers <joseph@codesourcery.com>
387 * c-decl.c (c_override_global_bindings_to_false): Remove.
388 (global_bindings_p): Don't check
389 c_override_global_bindings_to_false.
390 * c-tree.h (c_override_global_bindings_to_false): Remove.
391 * c-typeck.c (composite_type): Don't set
392 c_override_global_bindings_to_false.
394 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
396 PR target/48857, 48495
397 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
399 (VSX_MOVE_MODE): Ditto.
400 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
401 VSX vector types. Add V2DImode.
402 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
403 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
404 (MODES_TIEABLE_P): Ditto.
406 * config/rs6000/rs6000.c (rs6000_emit_move): Use
407 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
409 (init_cumulative_args): Ditto.
410 (rs6000_function_arg_boundary): Ditto.
411 (rs6000_function_arg_advance_1): Ditto.
412 (rs6000_function_arg): Ditto.
413 (rs6000_function_ok_for_sibcall): Ditto.
414 (emit_frame_save): Ditto.
415 (rs6000_function_value): Ditto.
416 (rs6000_libcall_value): Ditto.
418 2011-05-10 Joseph Myers <joseph@codesourcery.com>
420 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
421 i386/darwin-lib.h to $libgcc_tm_file.
422 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
424 2011-05-10 Joseph Myers <joseph@codesourcery.com>
426 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
428 2011-05-10 Joseph Myers <joseph@codesourcery.com>
430 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
431 * config/rs6000/rs6000-tables.opt: New file (generated).
432 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
433 rs6000/rs6000-tables.opt to extra_options.
434 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
435 * config/rs6000/rs6000.c (rs6000_select): Remove.
436 (processor_target_table): Move contents to rs6000-cpus.def.
437 (darwin_rs6000_override_options): Check
438 global_options_set.x_rs6000_cpu_index instead of
439 rs6000_select[1].string.
440 (rs6000_option_override_internal): Likewise.
441 (rs6000_handle_option): Don't assert that global structures are in
442 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
443 (rs6000_default_cpu): New variable.
444 (rs6000_file_start): Set it instead of local default_cpu. Check
445 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
446 global_options_set.x_rs6000_tune_index instead of rs6000_select.
447 (rs6000_darwin_file_start): Check rs6000_default_cpu and
448 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
449 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
450 rs6000_select): Remove.
451 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
453 (mcpu=, mtune=): Use Var, Init, Enum and Save.
454 * config/rs6000/t-rs6000
455 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
456 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
457 global_options_set.x_rs6000_cpu_index instead of
458 rs6000_select[1].string.
459 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
460 global_options_set.x_rs6000_cpu_index instead of
461 rs6000_select[1].string.
463 2011-05-10 Joseph Myers <joseph@codesourcery.com>
465 * config.gcc (libgcc_tm_file): Define instead of including files
466 from ../../libgcc/config/ in tm_file.
467 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
468 * configure: Regenerate.
469 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
470 libgcc_tm.h, cs-libgcc_tm.h): New.
471 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
472 (clean): Remove libgcc_tm.h.
473 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
474 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
475 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
477 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
480 * config/avr/avr.c (avr_ret_register): Return unsigned int
482 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
483 it to avr_libcall_value.
484 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
486 (avr_expand_binop_builtin): Ditto.
487 (avr_expand_unop_builtin): Ditto.
489 2011-05-10 DJ Delorie <dj@redhat.com>
491 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
492 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
493 * config/rx/rx.c (rx_align_for_label): Add label and
494 uses_threshold parameters. Do not align when the label is not
496 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
498 2011-05-10 Richard Guenther <rguenther@suse.de>
500 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
501 a series of conversions and apply foldings similar to what
503 (tree_ssa_forward_propagate_single_use_vars): Call it.
505 2011-05-10 Jakub Jelinek <jakub@redhat.com>
507 PR tree-optimization/48611
508 PR tree-optimization/48794
509 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
510 referenced from RESX or EH_DISPATCH arguments.
513 * dfp.c (decimal_to_decnumber): Handle conversion from
516 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
518 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
519 for !flag_prefer_avx128.
520 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
522 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
524 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
525 (fold_ternary_loc): Use expr_location_or.
527 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
530 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
531 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
532 Pmode and mem_mode is not VOIDmode.
534 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
536 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
537 TYPE_QUAL_RESTRICT): Convert to enum.
539 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
541 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
542 (const_pow2_1_to_8_operand): Ditto.
543 (const_pow2_1_to_128_operand): Ditto.
544 (const_pow2_1_to_32768_operand): Ditto.
545 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
546 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
547 in insn constraint to check integer value of operand 3.
548 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
550 (PINSR_MODE): New mode iterator.
551 (sse2p4_1): New mode attribute.
552 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
553 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
554 iterator. Use const_int_operand instead of
555 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
556 exact_log2 in insn constraint to check integer value of operand 3.
558 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
560 * config/i386/sse.md (blendbits): Remove mode attribute.
561 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
562 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
563 Check integer value of operand 3 in insn constraint.
565 2011-05-09 Richard Guenther <rguenther@suse.de>
567 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
569 (lto_symtab_merge): Likewise. Do not register types here.
570 (lto_symtab_merge_decls_2): Likewise.
571 (lto_symtab_merge_decls_1): Likewise.
572 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
573 * gimple.c (enum gtc_mode): Declare.
574 (gimple_types_compatible_p): Make static.
576 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
578 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
579 temporary register to match Pmode.
581 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
583 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
584 and *vec_concatv4si_1_avx.
586 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
588 PR rtl-optimization/48927
589 * ira-conflicts.c (commutative_constraint_p): Use
590 recog_data.alternative_enabled_p to disable alternatives where
591 "enabled" attribute is false.
592 (get_dup_num): Ditto.
593 * ira-lives.c (single_reg_class): Ditto.
594 (ira_implicitly_set_insn_hard_regs): Ditto.
596 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
598 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
599 (dataflow_set_preserve_mem_locs): Likewise.
601 2011-05-09 Philipp Thomas <pth@suse.de>
603 * config/mep/mep.c (mep_validate_vliw): Syntax description
604 should not be translated.
606 2011-05-09 Joseph Myers <joseph@codesourcery.com>
608 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
609 * config/mips/mips-tables.opt: New file (generated).
610 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
611 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
612 MIPS_ARCH_OPTION_NATIVE): Define.
613 * config/mips/mips.c (mips_cpu_info_table): Move contents to
615 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
616 mips_parse_cpu): Remove.
617 (mips_cpu_info_from_opt, mips_default_arch): New.
618 (mips_handle_option): Don't assert that global structures are in
619 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
620 (mips_option_override): Use new variables and functions to set
621 state of these options. Use strcmp to check for individual CPU names.
622 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
624 * config/mips/mips.opt (march=): Use ToLower and Enum.
625 (mips): Use ToLower, Enum and Var.
626 (mtune=): Use ToLower and Enum.
627 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
629 2011-05-08 Jan Hubicka <jh@suse.cz>
631 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
632 Arrange type pairs to be UID ordered.
633 (gimple_lookup_type_leader): Make inline.
635 2011-05-09 Nick Clifton <nickc@redhat.com>
638 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
642 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
645 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
647 * combine.c (simplify_comparison): Abstract out parts into...
648 (simplify_compare_const): ... new function.
649 (try_combine): Generalize parallel arithmetic/compare combining
650 to call simplify_compare_const() and CANONICALIZE_COMPARE().
652 2011-05-08 Jan Hubicka <jh@suse.cz>
654 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
655 (cgraph_create_virtual_clone): Call hooks once virtual clone
657 * cgraph.h (cgraph_clone_node): Update prototype.
658 * ipa-cp.c (ipcp_estimate_growth): Use
659 estimate_ipcp_clone_size_and_time.
660 * ipa-inline-transform.c (clone_inlined_nodes): Update.
661 * lto-cgraph.c (input_node): Update.
662 * ipa-inline.c (recursive_inlining): Update.
663 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
664 (evaluate_conditions_for_known_args): Break out from ...
665 (evaluate_conditions_for_edge): ... here.
666 (evaluate_conditions_for_ipcp_clone): New function.
667 (inline_node_duplication_hook): Update clone summary based
669 (estimate_callee_size_and_time): Rename to ...
670 (estimate_node_size_and_time): take NODE instead of EDGE;
671 take POSSIBLE_TRUTHS as argument.
672 (estimate_callee_size_and_time): Update.
673 (estimate_ipcp_clone_size_and_time): New function.
674 (do_estimate_edge_time): Update.
676 2011-05-08 Richard Guenther <rguenther@suse.de>
680 * expmed.c (expand_shift_1): Compute adjusted constant shift
683 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
685 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
687 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
689 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
691 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
693 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
695 2011-05-07 Jan Hubicka <jh@suse.cz>
697 * ipa-inline-transform.c (inline_call): Account when program size
699 * ipa-inline.c (relative_time_benefit): New function.
700 (edge_badness): Reorganize to be power 2 based; fix thinko when
701 computing badness for negative growth; update comments to match
702 reality; better dumps.
704 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
706 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
707 type to bool and adjust comment.
708 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
709 (fold_mathfn_compare): Remove calls to global_bindings_p.
710 (fold_inf_compare): Likewise.
711 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
712 * c-tree.h (global_bindings_p): Adjust prototype.
713 * c-decl.c (global_bindings_p): Return bool and simplify.
715 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
717 PR tree-optimization/48837
718 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
719 when accumulator transformation is performed.
721 2011-05-06 Jan Hubicka <jh@suse.cz>
723 * i386.h (ix86_tune_indices): Add
724 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
725 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
726 * i386.c (initial_ix86_tune_features): Add
727 X86_SOFTARE_PREFETCHING_BENEFICIAL.
728 (software_prefetching_beneficial_p): Remove predicate.
729 (ix86_option_override_internal): Use new macro.
731 2011-05-06 Jan Hubicka <jh@suse.cz>
733 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
735 2011-05-06 Jan Hubicka <jh@suse.cz>
737 * cgraph.c (cgraph_add_thunk): Create real function node instead
738 of alias node; finalize it and mark needed/reachale; arrange visibility
739 to be right and add it into the corresponding same comdat group list.
740 (dump_cgraph_node): Dump thunks.
741 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
742 cgraph_function_with_gimple_body_p,
743 cgraph_first_function_with_gimple_body,
744 cgraph_next_function_with_gimple_body): New functions.
745 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
747 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
748 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
749 * cgraphunit.c (cgraph_finalize_function): Only look into possible
750 devirtualization when optimizing.
751 (verify_cgraph_node): Verify thunks.
752 (cgraph_analyze_function): Analyze thunks.
753 (cgraph_mark_functions_to_output): Output thunks only in combination
754 with function they are assigned to.
755 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
756 alias into normal node.
757 (assemble_thunks): New functoin.
758 (cgraph_expand_function): Use it.
759 * lto-cgraph.c (lto_output_node): Stream thunks.
760 (input_overwrite_node): Stream in thunks.
761 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
762 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
763 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
764 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
765 (inline_analyze_function): Do not care about thunk jump functions.
766 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
767 * ipa-prop.c (ipa_prop_write_jump_functions): Use
768 cgraph_function_with_gimple_body_p.
769 * passes.c (do_per_function_toporder): Use
770 cgraph_function_with_gimple_body_p.
771 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
772 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
773 (function_called_by_processed_nodes_p): Likewise.
775 2011-05-06 Joseph Myers <joseph@codesourcery.com>
777 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
778 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
780 (mabi=): Replace with separate entries for mabi=altivec,
781 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
782 mabi=ieeelongdouble and mabi=ibmlongdouble.
783 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
784 check for -mabi=spe without SPE ABI support here.
785 (rs6000_handle_option): Replace OPT_mabi_ handling with
786 OPT_mabi_altivec and OPT_mabi_spe handling.
788 2011-05-06 Cary Coutant <ccoutant@google.com>
790 * dwarf2out.c (contains_subprogram_definition): New function.
791 (should_move_die_to_comdat): Call it.
793 2011-05-06 Jeff Law <law@redhat.com>
795 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
796 remove_ctrl_stmt_and_useless_edges.
797 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
798 (fixup_template_block, thread_single_edge): Likewise.
799 (mark_threaded_blocks): Use THREAD_TARGET.
801 2011-05-06 Alan Modra <amodra@gmail.com>
804 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
805 const0_rtx as the arg to the dummy __tls_get_addr libcall.
807 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
809 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
810 constraint modifier to "r".
812 2011-05-06 Joseph Myers <joseph@codesourcery.com>
814 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
815 fall through for OPT_mcmodel_.
817 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
819 * config/s390/s390.c (s390_asm_trampoline_template): Comment
821 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
823 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
826 * config/arm/arm.opt (marm): Document it.
827 (mthumb): Reject negative variant.
829 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
832 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
833 Fix typo in "ccvt" variable name.
835 2011-05-06 Tristan Gingold <gingold@adacore.com>
838 * config/vms/vms-ar.c (main): Remove cwd variable.
840 2011-05-06 Jakub Jelinek <jakub@redhat.com>
843 * var-tracking.c (prepare_call_arguments): Move else before #endif.
845 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
847 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
848 * gimplify.c (gimplify_switch_expr): Likewise.
849 * omp-low.c (expand_omp_sections): Likewise.
850 * tree-eh.c (lower_try_finally_switch): Likewise.
851 (lower_eh_dispatch): Likewise.
852 * tree.h (build_case_label): Declare.
853 * tree.c (build_case_label): Define.
855 2011-05-05 Jason Merrill <jason@redhat.com>
858 * tree-inline.c (copy_tree_r): Use copy_statement_list.
859 (copy_statement_list): Don't recurse.
860 * stor-layout.c (copy_self_referential_tree_r): Don't allow
863 2011-05-05 Joseph Myers <joseph@codesourcery.com>
865 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
866 through from -mfpu= handling.
867 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
869 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
871 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
874 2011-05-05 Steve Ellcey <sje@cup.hp.com>
876 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
878 (hppa[12]*-*-hpux11*): Ditto.
879 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
880 * config/ia64/hpux-unix2003.h: New.
881 * config/pa/pa-hpux1131.opt: New.
882 * config/pa/pa-hpux1131.h: New.
883 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
884 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
885 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
887 2011-05-05 Jakub Jelinek <jakub@redhat.com>
890 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
891 instead of mode as 3rd argument to recursive call.
892 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
893 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
895 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
896 don't give up if mode is Pmode and mem_mode is not VOIDmode.
897 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
898 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
900 2011-05-05 Julian Brown <julian@codesourcery.com>
902 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
903 parenthesis in D-register case.
905 2011-05-05 Joseph Myers <joseph@codesourcery.com>
907 * opt-functions.awk (var_type_struct): Handle Enum options.
908 * optc-gen.awk: Don't check range of variables of character type.
909 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
910 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
911 rs6000_sdata_name, rs6000_explicit_options): Remove.
912 (rs6000_option_override_internal): Check for -malign-power here.
913 Use global_options_set instead of rs6000_explicit_options.
914 (rs6000_parse_fpu_option): Remove.
915 (rs6000_handle_option): Access variables via opts and opts_set
916 pointers. Use error_at and warning_at. Add fall-through
917 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
918 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
919 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
920 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
921 here. Don't use rs6000_parse_fpu_option.
922 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
923 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
924 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
926 (mspe): Use Var and Save.
927 (mtraceback=): Use Enum and Var.
928 (rs6000_traceback_type): New Enum and EnumValue entries.
929 (mfloat-gprs=): Use Enum, Var and Save.
930 (rs6000_float_gprs): New Enum and EnumValue entries.
931 (mlong-double-): use Var and Save.
932 (msched-costly-dep=, minsert-sched-nops=): Use Var.
933 (malign-): Use Enum and Var.
934 (rs6000_alignment_flags): New Enum and EnumValue entries.
936 (fpu_type_t): New Enum and EnumValue entries.
937 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
938 global_options_set instead of rs6000_explicit_options.
939 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
940 global_options_set instead of rs6000_explicit_options.
941 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
942 global_options_set instead of rs6000_explicit_options.
943 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
944 global_options_set instead of rs6000_explicit_options.
945 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
946 global_options_set instead of rs6000_explicit_options.
947 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
948 global_options_set instead of rs6000_explicit_options.
949 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
951 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
952 global_options_set instead of rs6000_explicit_options.
953 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
954 (rs6000_cmodel): New Enum and EnumValue entries.
955 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
956 global_options_set instead of rs6000_explicit_options.
957 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
958 (mtls-size=): Use Enum and Var.
959 (rs6000_tls_size): New Enum and EnumValue entries.
961 2011-05-05 Michael Matz <matz@suse.de>
963 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
964 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
965 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
966 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
967 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
968 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
969 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
970 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
971 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
972 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
973 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
974 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
975 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
976 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
977 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
978 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
980 2011-05-05 Richard Guenther <rguenther@suse.de>
982 * expmed.c (expand_variable_shift): Rename to ...
983 (expand_shift_1): ... this. Take an expanded shift amount.
984 For rotates recurse directly not building trees for the shift amount.
985 (expand_variable_shift): Wrap around expand_shift_1.
986 (expand_shift): Adjust.
988 2011-05-05 Jakub Jelinek <jakub@redhat.com>
990 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
992 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
994 * tree.h (get_pending_sizes): Remove prototype.
995 (put_pending_size): Likewise.
996 (put_pending_sizes): Likewise.
997 * stor-layout.c (pending_sizes): Delete.
998 (get_pending_sizes): Likewise.
999 (put_pending_size): Likewise.
1000 (put_pending_sizes): Likewise.
1001 (variable_size): Do not call put_pending_size and tidy up.
1002 * function.h (struct function): Remove dont_save_pending_sizes_p.
1003 * lto-streamer-in.c (input_function): Do not stream it.
1004 * lto-streamer-out.c (output_function): Likewise.
1005 * tree-inline.c (initialize_cfun): Do not copy it.
1006 * c-decl.c (store_parm_decls): Do not set it.
1007 * omp-low.c (create_task_copyfn): Likewise.
1008 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1010 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
1012 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1014 (*movdf_internal): Ditto.
1015 (*movdf_internal_nointeger): Ditto.
1016 (*movsf_internal): Ditto.
1018 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1020 * c-decl.c (finish_decl): Don't call get_pending_sizes.
1021 (grokparm): Add parameter expr. Pass it to grokdeclarator.
1022 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
1023 (c_variable_size): Remove.
1024 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
1025 call put_pending_sizes.
1026 (get_parm_info): Add parameter expr. Use it to set
1027 arg_info->pending_sizes.
1028 (store_parm_decls): Use arg_info->pending_sizes instead or calling
1030 * c-parser.c (c_parser_parms_declarator): Update call to
1031 c_parser_parms_list_declarator.
1032 (c_parser_parms_list_declarator): Take parameter expr. Update
1033 call to push_parm_decl. Update recursive call. Don't call
1034 get_pending_sizes. Update calls to get_parm_info.
1035 (c_parser_objc_method_definition): Update calls to
1036 c_parser_objc_method_decl and objc_start_method_definition.
1037 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1038 (c_parser_objc_method_decl): Add parameter expr. Update call to
1040 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1041 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1042 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1044 2011-05-05 Michael Hope <michael.hope@linaro.org>
1047 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1050 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1052 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1053 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1054 (spu_output_mi_thunk): New function.
1056 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1058 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1059 targetm.asm_out.print_operand.
1060 * config/sol2.c: Include target.h.
1062 2011-05-04 Jan Hubicka <jh@suse.cz>
1064 * ipa-inline.c (reset_edge_caches): New function.
1065 (update_caller_keys): Add check_inlinablity_for; do not
1066 reset edge caches; remove now unnecesary loop.
1067 (update_callee_keys): Add comments; reset node_growth_cache of callee.
1068 (update_all_callee_keys): Likewise.
1069 (inline_small_functions): Sanity check cache; update code
1072 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
1074 PR rtl-optimization/47612
1075 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1076 as the last insn of the sequence to be moved.
1078 2011-05-04 Tobias Burnus <burnus@net-b.de>
1081 * doc/invoke.texi (Ofast): Document that it
1082 enables Fortran's -fno-protect-parens.
1084 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1086 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1088 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
1090 * stor-layout.c (variable_size): Do not issue errors.
1092 2011-05-04 Richard Guenther <rguenther@suse.de>
1094 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1095 for array-ref indices.
1096 (tree_coverage_counter_addr): Likewise.
1097 (build_fn_info_type): Use size_int for index types.
1098 (build_gcov_info): Likewise.
1100 2011-05-04 Richard Guenther <rguenther@suse.de>
1102 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1104 * c-typeck.c (really_start_incremental_init): Use bitsize_int
1105 for constructor indices.
1106 (push_init_level): Likewise.
1108 2011-05-04 Richard Guenther <rguenther@suse.de>
1110 * explow.c (promote_mode): Move variable declarations before code.
1112 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1114 * tree.h (build_function_type_array): Declare.
1115 (build_varargs_function_type_array): Declare.
1116 (build_function_type_vec, build_varargs_function_type_vec): Define.
1117 * tree.c (build_function_type_array_1): New function.
1118 (build_function_type_array): New function.
1119 (build_varargs_function_type_array): New function.
1121 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
1123 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1124 before setting STMT_VINFO_TYPE.
1126 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1128 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1129 instead of spu_pass_by_reference.
1131 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1133 * calls.c (emit_library_call_value_1): Invoke
1134 promote_function_mode hook on libcall arguments.
1135 * explow.c (promote_function_mode, promote_mode): Handle TYPE
1136 argument being NULL.
1137 * targhooks.c (default_promote_function_mode): Lisewise.
1138 * config/s390/s390.c (s390_promote_function_mode): Likewise.
1139 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1141 * doc/tm.texi: Document that TYPE argument might be NULL.
1143 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1145 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1147 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1150 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1152 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1154 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1155 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1157 * mips-tfile.c: ... here.
1158 Don't include coretypes.h, tm.h, filenames.h.
1159 (saber_stop): Remove definition and all calls.
1160 [__SABER__]: Remove.
1161 (__LINE__): Remove default.
1162 (Size_t, Ptrdiff_t): Remove definitions.
1163 Replace by size_t, ptrdiff_t.
1164 [!MIPS_DEBUGGING_INFO]: Remove.
1165 (SHASH_SIZE, THASH_SIZE): Remove defaults.
1166 (progname): Add const.
1168 Replace all uses by static.
1169 (ALIGN_SYMTABLE_OFFSET): Remove default.
1170 * mips-tdump.c: Don't include coretypes.h, tm.h.
1171 Remove !MIPS_IS_STAB guard.
1172 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1173 $(TM_H), filenames.h dependencies.
1174 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1176 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1179 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1180 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1182 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1185 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1186 account and save/restore RETS.
1187 (PROFILE_BEFORE_PROLOGUE): Define.
1188 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
1189 the push insn to use predecrement.
1191 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1194 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1196 2011-05-04 Nick Clifton <nickc@redhat.com>
1198 * config/mn10300/mn10300.c: Include cfgloop.h.
1200 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
1201 Lcc or a FLcc insn into the instruction stream.
1202 (mn10300_block_contains_call): New function. Returns true if the
1203 given basic block contains a CALL insn.
1204 (mn10300_loop_contains_call_insn): New function. Returns true if
1205 the given loop contains a CALL insn.
1206 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
1207 to use the SETLB and Lcc or FLcc insns.
1208 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1209 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1210 * config/mn10300/mn10300.opt (msetlb): New option. Used to
1211 disable the SETLB optimization.
1212 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1213 __SETLB__ or __NO_SETLB__.
1214 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1215 (movsf_internal): Handle MDR register.
1216 (cmpsi): Make visible.
1217 (setlb): New pattern.
1219 (FLcc): New pattern.
1221 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1224 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1225 for reg<->xmm moves.
1226 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1227 (vec_concatv2di_rex64_sse): Ditto.
1228 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1229 (*vec_extractv2di_1_rex64): Ditto.
1232 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1234 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1236 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1238 2011-05-04 Richard Guenther <rguenther@suse.de>
1240 * tree.h (int_const_binop): Remove notrunc argument.
1241 * fold-const.c (int_const_binop): Remove notrunc argument. Always
1242 create integer constants that are properly truncated.
1243 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1244 (const_binop): Remove zero notrunc argument to int_const_binop.
1245 (size_binop_loc): Likewise.
1246 (fold_div_compare): Likewise.
1247 (maybe_canonicalize_comparison_1): Likewise.
1248 (fold_comparison): Likewise.
1249 (fold_binary_loc): Likewise.
1250 (multiple_of_p): Likewise.
1251 * expr.c (store_constructor): Likewise.
1252 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1253 (maybe_fold_stmt_addition): Likewise.
1254 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1255 * stor-layout.c (layout_type): Likewise.
1256 * tree-data-ref.c (tree_fold_divides_p): Likewise.
1257 * tree-sra.c (build_ref_for_offset): Likewise.
1258 (build_user_friendly_ref_for_offset): Likewise.
1259 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1260 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1261 * tree-ssa-loop-niter.c (inverse): Likewise.
1262 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1263 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1264 * tree-switch-conversion.c (check_range): Likewise.
1265 (build_constructors): Likewise.
1266 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1267 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1268 (extract_range_from_assert): Likewise.
1269 (vrp_int_const_binop): Likewise.
1270 (extract_range_from_binary_expr): Likewise.
1271 (extract_range_from_unary_expr): Likewise.
1272 (check_array_ref): Likewise.
1273 (find_case_label_range): Likewise.
1274 (simplify_div_or_mod_using_ranges): Likewise.
1275 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1276 comparing case labels for merging.
1278 2011-05-03 Mark Wielaard <mjw@redhat.com>
1280 * dwarf2out.c (debug_str_hash_forced): Removed.
1281 (gen_label_for_indirect_string): Removed.
1282 (get_debug_string_label): Removed.
1283 (AT_string_form): Generate label directly.
1284 (output_indirect_string): Test indirect_string_node for
1285 DW_FORM_strp instead of checking label and refcount.
1286 (prune_indirect_string): Removed.
1287 (prune_unused_types): Don't check debug_str_hash_forced or
1288 call prune_indirect_string.
1290 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1293 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1295 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1299 * combine.c (try_combine): Skip debug insns at m_split tests.
1301 2011-04-26 Mark Wielaard <mjw@redhat.com>
1304 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1305 when info_section_emitted.
1307 2011-05-03 Joseph Myers <joseph@codesourcery.com>
1309 * config/mips/mips-opts.h: New.
1310 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1312 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1313 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1314 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
1316 * config/mips/mips.h (enum mips_code_readable_setting): Move to
1318 (mips_abi, mips_code_readable): Don't declare.
1319 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1320 (mabi=): Use Enum and Var.
1321 (mips_abi): New Enum and EnumValue entries.
1322 (mcode-readable=): Use Enum and Var.
1323 (mips_code_readable_setting): New Enum and EnumValue entries.
1324 (mr10k-cache-barrier=): Use Enum and Var.
1325 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1327 2011-05-03 Jan Hubicka <jh@suse.cz>
1329 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1330 replace hash by pointer map.
1331 (cgraph_node_set_element_def, cgraph_node_set_element,
1332 const_cgraph_node_set_element, varpool_node_set_element_def,
1333 varpool_node_set_element, const_varpool_node_set_element): Remove.
1334 (free_cgraph_node_set, free_varpool_node_set): New function.
1335 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1336 * tree-emutls.c: Free varpool node set.
1337 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1338 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1339 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1340 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1341 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1342 Move here from ipa.c; implement using pointer_map
1343 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1344 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1345 debug_cgraph_node_set, varpool_node_set_new,
1346 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1347 dump_varpool_node_set, debug_varpool_node_set):
1348 Move to ipa-uitls.c.
1349 * passes.c (ipa_write_summaries): Update.
1351 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1353 From Mike Frysinger:
1354 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1355 bf542/bf544/bf547/bf548/bf549.
1357 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1359 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1361 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1364 * config/bfin/bfin.md (MOVCC): New mode_macro.
1365 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1366 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
1367 comments from generated assembly.
1369 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1372 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1373 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1374 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1375 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1376 * config/bfin/lib1funcs.asm (___muldi3): New function.
1378 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1380 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1381 build_function_type_list instead of build_function_type.
1382 Rearrange initialization of `args' to do so.
1384 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1386 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1387 instead of build_function_type.
1389 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1391 * config/rs6000/rs6000.c (spe_init_builtins): Call
1392 build_function_type_list instead of build_function_type.
1393 (paired_init_builtins, altivec_init_builtins): Likewise.
1394 (builtin_function_type): Likewise.
1396 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1398 * config/sh/sh.c (sh_media_init_builtins): Call
1399 build_function_type_list instead of build_function_type.
1401 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1403 * config/sparc/sparc.c (sparc_file_end): Call
1404 build_function_type_list instead of build_function_type.
1406 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1408 * config/alpha/alpha.c (alpha_init_builtins): Call
1409 build_function_type_list instead of build_function_type.
1411 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1413 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1414 build_function_type_list instead of build_function_type.
1416 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1418 * config/iq2000/i2000.c (iq2000_init_builtins): Call
1419 build_function_type_list instead of build_function_type.
1420 Delete `endlink' variable.
1422 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1424 * config/avr/avr.c (avr_init_builtins): Call
1425 build_function_type_list instead of build_function_type.
1427 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1429 * config/picochip/picochip.c (picochip_init_builtins): Call
1430 build_function_type_list instead of build_function_type.
1431 Delete `endlink' variable.
1433 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1435 * config/bfin/bfin.c (bfin_init_builtins): Call
1436 build_function_type_list instead of build_function_type.
1438 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1441 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1442 that's not CONST_INT. Seemingly redundant check is due to PR39768.
1444 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1447 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1448 libbffastfp overrides libgcc when -mfast-fp.
1450 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1452 Originally from Bernd Schmidt
1453 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1454 * config/bfin/bfin.c (override_options): Test it and error if
1457 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1459 Originally From Bernd Schmidt
1460 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1463 2011-05-03 Jeff Law <law@redhat.com>
1465 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1466 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1467 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1468 than accessing AUX field directly. Free the AUX field before
1470 (thread_block, thread_through_loop_header): Likewise.
1471 (thread_single_edge, mark_threaded_blocks): Likewise.
1472 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
1473 (register_jump_thread): Do not attempt to thread to a NULL edge.
1475 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1477 * function.c (init_function_start): Call decide_function_section.
1478 * varasm.c (decide_function_section): New function.
1479 (assemble_start_function): When not using
1480 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1481 or first_function_block_is_cold.
1482 * rtl.h (decide_function_section): Declare.
1484 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1485 Jakub Jelinek <jakub@redhat.com>
1488 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1489 only succeed if req_mode is the same as set_mode.
1491 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1493 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1494 * genemit.c (gen_exp): Handle RETURN.
1495 * emit-rtl.c (verify_rtx_sharing): Likewise.
1496 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1497 * rtl.c (copy_rtx): RETURN is shared.
1498 * rtl.h (enum global_rtl_index): Add GR_RETURN.
1500 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1501 * config/s390/s390.c (s390_emit_epilogue): Likewise.
1502 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1503 * config/cris/cris.c (cris_expand_return): Likewise.
1504 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1505 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1506 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1507 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1508 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1510 * config/v850/v850.c (expand_epilogue): Likewise.
1511 * config/bfin/bfin.c (bfin_expand_call): Likewise.
1512 * config/arm/arm.md (epilogue): Likewise.
1513 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1514 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1515 variable to ret_reg.
1517 2011-05-03 Richard Guenther <rguenther@suse.de>
1520 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1521 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1522 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1524 2011-05-03 Richard Guenther <rguenther@suse.de>
1526 * c-decl.c (grokdeclarator): Instead of looking at
1527 TREE_OVERFLOW check if the constant fits in the index type.
1529 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1531 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1532 (vec_store_lanes<mode><mode>): Likewise.
1534 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1536 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1537 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1538 convert_optab_index values.
1539 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1540 * genopinit.c (optabs): Initialize the new optabs.
1541 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1542 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1543 (expand_STORE_LANES): New functions.
1544 * tree.h (build_array_type_nelts): Declare.
1545 * tree.c (build_array_type_nelts): New function.
1546 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1547 (vect_model_load_cost): Likewise.
1548 (vect_store_lanes_supported, vect_load_lanes_supported)
1549 (vect_record_strided_load_vectors): Declare.
1550 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1551 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1552 (vect_transform_strided_load): Split out statement recording into...
1553 (vect_record_strided_load_vectors): ...this new function.
1554 * tree-vect-stmts.c (create_vector_array, read_vector_array)
1555 (write_vector_array, create_array_ref): New functions.
1556 (vect_model_store_cost): Add store_lanes_p argument.
1557 (vect_model_load_cost): Add load_lanes_p argument.
1558 (vectorizable_store): Try to use store-lanes functions for
1560 (vectorizable_load): Likewise load-lanes and loads.
1561 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1562 to vect_model_store_cost.
1563 (vect_build_slp_tree): Likewise vect_model_load_cost.
1565 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1567 * hooks.h (hook_bool_mode_uhwi_false): Declare.
1568 * hooks.c (hook_bool_mode_uhwi_false): New function.
1569 * target.def (array_mode_supported_p): New hook.
1570 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1571 * doc/tm.texi: Regenerate.
1572 * stor-layout.c (mode_for_array): New function.
1573 (layout_type): Use it.
1574 * config/arm/arm.c (arm_array_mode_supported_p): New function.
1575 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1577 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
1580 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1581 for -fstack-check if the size to allocate is negative.
1583 2011-05-02 Lawrence Crowl <crowl@google.com>
1585 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1586 (timevar_cond_start): New for starting a timer only when it is not
1588 (timevar_cond_stop): New for stopping a timer when it was not already
1591 * timevar.c (timevar_stop): Enable start/stop timers to start again.
1592 (timevar_cond_start): New as above.
1593 (timevar_cond_stop): New as above.
1595 * timevar.def: Add start/stop timers for compiler phases,
1596 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1597 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1598 and TV_PHASE_FINALIZE.
1599 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1600 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1601 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1602 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1603 Make unused TV_OVERLOAD into a start/stop timer.
1605 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1606 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1607 to indicate that they are start/stop timers.
1609 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1610 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1611 Move initialization to do_compile.
1612 (do_compile): Add initialization from above.
1613 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1615 * c-decl.c (c_write_global_declarations): Add start/stop of
1616 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1618 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1619 or TV_PARSE_INLINE, as appropriate.
1620 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1621 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1623 2011-05-02 Jason Merrill <jason@redhat.com>
1626 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1628 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
1631 * c-decl.c (finish_decl): Only create a composite if the types are
1634 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1636 * config/fr30/fr30-protos.h (Mmode): Don't define.
1637 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
1638 definition where used.
1639 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1640 define. Expand definitions where used.
1641 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1642 Expand definitions where used.
1643 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1644 rx_function_arg, rx_function_arg_advance,
1645 rx_function_arg_boundary): Expand definitions of those macros.
1646 * config/v850/v850-protos.h (Mmode): Don't define. Expand
1647 definition where used.
1649 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1651 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1653 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1654 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
1655 with *movv2sf_internal_rex64_avx.
1656 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1657 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1658 Use %v prefix in insn mnemonic to handle TARGET_AVX.
1659 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
1660 "vex" in "prefix" attribute calculation.
1661 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
1663 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
1666 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1667 inputs match the output.
1669 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
1672 * config/m68k/m68k.c (m68k_expand_prologue): Set
1673 current_function_static_stack_size.
1675 2011-05-02 Jan Hubicka <jh@suse.cz>
1677 * lto-streamer.c (lto_streamer_cache_insert_1,
1678 lto_streamer_cache_lookup, lto_streamer_cache_create,
1679 lto_streamer_cache_delete): Use pointer map instead of hashtable.
1680 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1682 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1684 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1685 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1686 config/m68k/t-opts: New files.
1687 * config/m68k/m68k-tables.opt: New file (generated).
1688 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1689 extra_options and m68k/t-opts to tmake_file.
1690 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1691 (all_isas): Initialize using m68k-isas.def.
1692 (all_microarchs): Initialize using m68k-microarchs.def.
1693 (m68k_find_selection): Remove.
1694 (m68k_handle_option): Don't assert that global structures are in
1695 use. Use error_at. Access variables via opts pointer. Don't
1696 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
1697 directly for -m68020-40 and -m68020-60.
1698 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1699 m68k_tune_entry here.
1700 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1702 (m68k_library_id_string): Remove declaration.
1703 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1704 (m68k_library_id_string): New Variable.
1705 (march=, mcpu=, mtune=): Use Enum and Var.
1707 2011-05-02 Richard Guenther <rguenther@suse.de>
1709 * varasm.c (output_constructor_regular_field): Compute zero-based
1710 index with double-ints. Make sure to ICE instead of producing
1712 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1713 in asserts. Properly use a signed type.
1715 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1717 * config/i386/sse.md (V): New mode iterator.
1718 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
1720 (V_256): Rename from AVX256MODE.
1721 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
1722 condition to all users.
1724 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
1725 condition to all users.
1726 (VF_128): Make V4SF mode unconditional.
1727 (VF_256): Rename from AVX256MODEF2P.
1728 (VI4F_128): Rename from SSEMODE4S.
1729 (VI8F_128): Rename from SSEMODE2D.
1730 (VI4F_256): Rename from AVX256MODE8P.
1731 (VI8F_256): Rename from AVX256MODE4P.
1732 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1733 (ssescalarmodesuffix): Remove SF and DF modes.
1734 (SSEMODE124): Remove.
1735 (SSEMODE1248): Ditto.
1736 (SSEMODEF2P): Ditto.
1737 (AVXMODEF2P): Ditto.
1738 (AVXMODEFDP): Ditto.
1739 (AVXMODEFSP): Ditto.
1740 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1742 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
1744 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1745 xop_pcmov_<mode>256. Use V mode iterator.
1747 Adjust RTX patterns globally for renamed mode attributes.
1749 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1751 * haifa-sched.c (sched_emit_insn): Emit insn before first
1752 non-scheduled insn. Inform back-end about new insn. Add
1753 new insn to scheduled_insns list.
1755 2011-05-02 Richard Guenther <rguenther@suse.de>
1757 PR tree-optimization/48822
1758 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1759 (process_scc): Indicate which iteration we start.
1761 2011-05-02 Jan Hubicka <jh@suse.cz>
1763 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1764 (lto_section_overrun): New.
1765 * lto-section-out.c (append_block): Rename to ...
1766 (lto_append_block): ... this one; export.
1767 (lto_output_1_stream): Move lto lto-streamer.h
1768 (lto_output_data_stream): Update.
1769 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1770 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1773 2011-05-02 Richard Guenther <rguenther@suse.de>
1775 * tree.c (tree_code_counts): New global array.
1776 (record_node_allocation_statistics): Count individual tree codes.
1777 (dump_tree_statistics): Dump individual code stats.
1779 2011-05-01 Jan Hubicka <jh@suse.cz>
1781 * ipa-inline.c (caller_growth_limits): Fix thinko when
1782 looking for largest stack frame.
1783 * ipa-inline.h (dump_inline_summary): Declare.
1784 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1786 (dump_inline_summary): Export.
1787 (debug_inline_summary): Declare as DEBUG_FUNCTION.
1789 2011-05-01 Anatoly Sokolov <aesok@post.ru>
1791 * reginfo.c (memory_move_cost): Change rclass argument type form
1792 'enum reg_class' to reg_class_t.
1793 * reload.h (memory_move_cost): Update prototype.
1794 * postreload.c reload_cse_simplify_set): Change type dclass var to
1796 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1798 (ira_allocate_and_set_costs): Change aclass argument type form
1799 'enum reg_class' to reg_class_t.
1800 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1801 Change aclass argument type to reg_class_t.
1802 (update_conflict_hard_reg_costs): Change type aclass and pref vars
1804 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1805 memory_move_cost call.
1807 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1808 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1809 Change type tmp var to reg_class_t.
1811 2011-04-30 Jan Hubicka <jh@suse.cz>
1813 * ipa-inline.c (can_inline_edge_p): Disregard limits when
1814 inlining into function with flatten attribute.
1815 (want_inline_small_function_p): Be more realistic about inlining
1816 cold calls where callee size grows.
1818 2011-04-30 Jan Hubicka <jh@suse.cz>
1820 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1823 2011-04-30 Anatoly Sokolov <aesok@post.ru>
1825 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1826 PRINT_OPERAND_PUNCT_VALID_P): Remove.
1827 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1828 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1829 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1830 (print_operand): Rename to...
1831 (sparc_print_operand): ...this. Make static. Adjust
1832 sparc_print_operand function call.
1833 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1836 2011-04-30 Jan Hubicka <jh@suse.cz>
1839 * ipa-inline.c (early_inliner): Disable when doing late
1840 addition of function.
1842 2011-04-30 Jakub Jelinek <jakub@redhat.com>
1844 * dwarf2out.c (get_address_mode): New inline.
1845 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1846 if not dwarf_strict emit
1847 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1848 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1849 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
1850 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1851 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1852 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1853 mem_loc_descriptor callers.
1854 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1855 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1856 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1857 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1858 (base_types): New variable.
1859 (get_base_type_offset, calc_base_type_die_sizes,
1860 base_type_for_mode, mark_base_types, base_type_cmp,
1861 move_marked_base_types): New functions.
1862 (calc_die_sizes): Assert that die_offset is 0 or equal to
1864 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1865 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
1866 callers. If not dwarf_strict, call mem_loc_descriptor even for
1867 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1868 (gen_subprogram_die): Don't give up on call site parameters
1869 with non-integral or large integral modes. Adjust
1870 mem_loc_descriptor callers.
1871 (prune_unused_types): Call prune_unused_types_mark on base_types
1873 (resolve_addr): Call mark_base_types.
1874 (dwarf2out_finish): Call move_marked_base_types.
1876 PR tree-optimization/48809
1877 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1879 (gen_inbound_check): Don't compute index_expr - range_min in utype
1880 again, instead reuse SSA_NAME initialized in build_arrays.
1881 Remove two useless gsi_for_stmt calls.
1883 2011-04-29 Jeff Law <law@redhat.com>
1885 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1887 2011-04-29 Martin Jambor <mjambor@suse.cz>
1889 * cgraph.h (cgraph_postorder): Remove declaration.
1890 * ipa-utils.h (ipa_free_postorder_info): Declare.
1891 (ipa_reverse_postorder): Likewise.
1892 * cgraphunit.c: Include ipa-utils.h.
1893 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1894 * ipa-inline.c: Include ipa-utils.h.
1895 (ipa_inline): Update call to ipa_reverse_postorder.
1896 * ipa-pure-const.c (propagate_pure_const): Update call to
1897 ipa_reduced_postorder and ipa_print_order. Call
1898 ipa_free_postorder_info to clean up.
1899 (propagate_nothrow): Likewise.
1900 * ipa-reference.c (propagate): Removed a useless call to
1901 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1902 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1903 * ipa.c: Include ipa-utils.h.
1904 (ipa_profile): Update call to ipa_reverse_postorder.
1905 (cgraph_postorder): Moved to...
1906 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1907 (ipa_utils_print_order): Renamed to ipa_print_order.
1908 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1910 (ipa_free_postorder_info): New function.
1911 * passes.c: Include ipa-utils.h.
1912 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1913 (ipa_write_summaries): Likewise.
1914 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1915 (cgraphunit.o): Likewise.
1917 (ipa-inline.o): Likewise.
1919 2011-04-29 Jan Hubicka <jh@suse.cz>
1921 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1922 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1923 * ipa-inline.h (clause_t): Turn into unsigned int.
1924 * ipa-inline-analysis.c (add_clause): Do more simplification.
1925 (and_predicates): Shortcut more cases.
1926 (predicates_equal_p): Move forward; check that clauses are properly
1928 (or_predicates): Shortcut more cases.
1929 (edge_execution_predicate): Rewrite as...
1930 (set_cond_stmt_execution_predicate): ... this function; handle
1931 __builtin_constant_p.
1932 (set_switch_stmt_execution_predicate): New .
1933 (compute_bb_predicates): New.
1934 (will_be_nonconstant_predicate): Update TODO.
1935 (estimate_function_body_sizes): Use compute_bb_predicates
1936 and free them later, always try to estimate if stmt is constant.
1937 (estimate_time_after_inlining, estimate_size_after_inlining):
1938 Gracefully handle optimized out edges.
1939 (read_predicate): Fix off by one error.
1941 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1943 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1945 2011-04-27 Xinliang David Li <davidxl@google.com>
1947 * tree-profile.c (init_ic_make_global_vars): Set
1948 tls attribute on ic vars.
1949 * coverage.c (coverage_end_function): Initialize
1950 function_list with zero.
1952 2011-04-29 Richard Guenther <rguenther@suse.de>
1954 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1955 for the type of the result.
1956 (fold_builtin_isascii): Likewise.
1957 (fold_builtin_toascii): Use integer_type_node where appropriate.
1958 (fold_builtin_logb): Likewise.
1959 (fold_builtin_frexp): Likewise.
1960 (fold_builtin_strstr): Likewise.
1961 (fold_builtin_strpbrk): Likewise.
1962 (fold_builtin_fputs): Likewise.
1963 (fold_builtin_sprintf): Likewise.
1964 (fold_builtin_snprintf): Likewise.
1965 (fold_builtin_printf): Likewise.
1966 (do_mpfr_remquo): Use a proper type for the assigned constant.
1967 (do_mpfr_lgamma_r): Likewise.
1968 * dwarf2out.c (resolve_one_addr): Use size_int.
1969 * except.c (init_eh): Likewise.
1970 (assign_filter_values): Use integer_type_node for filter values.
1971 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1973 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1974 for EH region numbers.
1975 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1976 for the shift amount.
1978 2011-04-29 Richard Guenther <rguenther@suse.de>
1980 * expr.h (expand_shift): Rename to ...
1981 (expand_variable_shift): ... this.
1982 (expand_shift): Take a constant shift amount.
1983 * expmed.c (expand_shift): Rename to ...
1984 (expand_variable_shift): ... this.
1985 (expand_shift): New wrapper around expand_variable_shift.
1986 * expr.c (convert_move, emit_group_load_1, emit_group_store,
1987 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1988 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1989 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1990 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1991 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1992 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1993 emit_store_flag_1, emit_store_flag): Likewise.
1994 * builtins.c (expand_builtin_signbit): Likewise.
1995 * calls.c (load_register_parameters): Likewise.
1996 * function.c (assign_parm_setup_block): Likewise.
1997 * lower-subreg.c (resolve_shift_zext): Likewise.
1998 * optabs.c (widen_bswap, expand_abs_nojump,
1999 expand_one_cmpl_abs_nojump, expand_float): Likewise.
2000 * spu/spu.c (spu_expand_extv): Likewise.
2001 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2003 2011-04-29 Richard Guenther <rguenther@suse.de>
2005 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2006 for the remapped region number.
2007 * predict.c (build_predict_expr): Use integer_type_node for the
2009 * fold-const.c (fold_binary_loc): Use integer_type_node for
2010 the shift amount. Use a proper type for the PLUS_EXPR operand.
2012 2011-04-29 Michael Matz <matz@suse.de>
2014 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2015 other trees that just builtins.
2016 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2018 2011-04-29 Richard Guenther <rguenther@suse.de>
2020 * tree-nested.c (get_trampoline_type): Use size_int.
2021 (get_nl_goto_field): Likewise.
2022 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2024 (lower_eh_constructs_2): Likewise.
2025 (lower_resx): Likewise.
2026 (lower_eh_dispatch): Likewise.
2027 * tree-mudflap.c (mf_build_string): Use size_int.
2028 (mudflap_register_call): Use integer_type_node for the flag.
2029 (mudflap_enqueue_constant): Use size_int.
2030 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2031 instead of rebuilding it.
2033 2011-04-29 Richard Guenther <rguenther@suse.de>
2035 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2036 Handle OBJ_TYPE_REF.
2037 (find_func_aliases_for_call): Use it more consistently.
2039 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
2041 * haifa-sched.c (last_nondebug_scheduled_insn): New.
2042 (rank_for_schedule): Use it.
2043 (schedule_block): Set it.
2045 2011-04-28 David Li <davidxl@google.com>
2047 * tree.c (crc32_string): Use crc32_byte.
2048 (crc32_byte): New function.
2049 * tree.h (crc32_byte): New function.
2050 * gcov.c (read_graph_file): Handle new cfg_cksum.
2051 (read_count_file): Ditto.
2052 * profile.c (instrument_values): Ditto.
2053 (get_exec_counts): Ditto.
2054 (read_profile_edge_counts): Ditto.
2055 (compute_branch_probabilities): Ditto.
2056 (compute_value_histograms): Ditto.
2057 (branch_prob): Ditto.
2058 (end_branch_prob): Ditto.
2059 * coverage.c (read_counts_file): Ditto.
2060 (get_coverage_counts): Ditto.
2061 (tree_coverage_counter_addr): Ditto.
2062 (coverage_checksum_string): Ditto.
2063 (coverage_begin_output): Ditto.
2064 (coverage_end_function): Ditto.
2065 (build_fn_info_type): Ditto.
2066 (build_fn_info_value): Ditto.
2067 * libgcov.c (gcov_exit): Ditto.
2068 * gcov-dump.c (tag_function): Ditto.
2069 (compute_checksum): Remove.
2071 2011-04-29 Alan Modra <amodra@gmail.com>
2073 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2074 unspec plus offset. Tidy macho code.
2076 2011-04-29 Martin Jambor <mjambor@suse.cz>
2078 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2079 node instead of a decl. Update all callers.
2080 * cgraph.h: Update declaration.
2082 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
2084 PR tree-optimization/48765
2085 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2086 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2087 to indicate if loop aware SLP is being used. Scan the statements
2088 and update the vectorization factor according to the type of
2089 vectorization before statement analysis.
2090 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2091 pass it to vect_analyze_loop_operations.
2092 (vectorizable_reduction): Set number of copies to 1 in case of pure
2094 * tree-vect-stmts.c (vectorizable_conversion,
2095 vectorizable_assignment, vectorizable_shift,
2096 vectorizable_operation, vectorizable_type_demotion,
2097 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2099 (vectorizable_condition): Move the check that it is not SLP
2100 vectorization before the number of copies check.
2101 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2102 to vectorize the loop using SLP.
2104 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2107 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2110 2011-04-28 Joseph Myers <joseph@codesourcery.com>
2112 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2113 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2114 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2115 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2116 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2118 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2119 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2120 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2121 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2122 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2123 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2125 * config/i386/linux.h (REG_NAME): Don't define.
2126 * config/i386/linux64.h (REG_NAME): Don't define.
2127 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2128 Undefine before defining.
2130 2011-04-28 Jan Hubicka <jh@suse.cz>
2132 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2133 nonconstant_names array.
2134 (estimate_function_body_sizes): Build nonconstant_names array; handle
2135 BUILT_IN_CONSTANT_P.
2137 2011-04-28 Richard Guenther <rguenther@suse.de>
2141 2011-04-28 Richard Guenther <rguenther@suse.de>
2143 * tree-ssa-structalias.c (solve_constraints): Build succ graph
2144 as late as possible.
2146 2011-04-28 Richard Guenther <rguenther@suse.de>
2148 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2149 (debug_constraint): Do it here.
2150 (dump_constraints): And here.
2151 (rewrite_constraints): And here.
2152 (dump_constraint_edge): Remove.
2153 (dump_constraint_graph): Rewrite to produce DOT output.
2154 (solve_constraints): Build succ graph as late as possible.
2155 Dump constraint graphs before and after solving.
2157 2011-04-28 Richard Guenther <rguenther@suse.de>
2159 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2160 New function split out from ...
2161 (find_func_aliases): ... here. Call it.
2162 (find_func_aliases_for_call): Likewise.
2164 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2166 * internal-fn.h (internal_fn_name_array): Declare.
2167 (internal_fn_flags_array): Likewise.
2169 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2171 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
2172 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2174 (ssemodefsuffix): Remove.
2175 (ssevecmodesuffix): New mode attribute.
2176 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2177 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2178 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2179 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2180 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2181 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2182 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2183 ssemodesuffix mode attribute.
2184 (float splitters): Use ssevecmodesuffix mode attribute.
2185 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2186 (sseinsmode): Rename from avxvecmode.
2187 (avxsizesuffix): Rename from avxmodesuffix.
2188 (sseintvecmode): Rename from avxpermvecmode.
2189 (ssedoublevecmode): Rename from ssedoublesizemode.
2190 (ssehalfvecmode): Rename from avxhalfvecmode.
2191 (ssescalarmode): Rename from avxscalarmode.
2192 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2193 templates for ssemodesuffix mode attribute.
2194 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2197 Adjust RTX patterns globally for renamed mode attributes.
2199 2011-04-27 Jan Hubcika <jh@suse.cz>
2201 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2202 * ipa-inline-analysis.c: Include alloc-pool.h.
2203 (edge_predicate_pool): New.
2204 (trye_predicate_p): New function
2205 (false_predicate_p): New function.
2206 (add_clause): Sanity check that false clauses are "optimized";
2207 never add clauses to predicate that is already known to be false.
2208 (and_predicate): Use flase_predicate_p.
2209 (evaulate_predicate): Rename to ...
2210 (evaluate_predicate): ... this one; update all callers; assert
2211 that false is not listed among possible truths.
2212 (dump_predicate): Use true_predicate_p.
2213 (account_size_time): Use false_predicate_p.
2214 (evaulate_conditions_for_edge): Rename to ...
2215 (evaluate_conditions_for_edge) ... this one.
2216 (edge_set_predicate): New function.
2217 (inline_edge_duplication_hook): Duplicate edge predicates.
2218 (inline_edge_removal_hook): Free edge predicates.
2219 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2220 (dump_inline_summary): Update.
2221 (estimate_function_body_sizes): Set edge predicates.
2222 (estimate_calls_size_and_time): Handle predicates.
2223 (estimate_callee_size_and_time): Update.
2224 (remap_predicate): Add toplev_predicate; update comment.
2225 (remap_edge_predicates): New function.
2226 (inline_merge_summary): Compute toplev predicate; update.
2227 (read_predicate): New function.
2228 (read_inline_edge_summary): Use it.
2229 (inline_read_section): Likewise.
2230 (write_predicate): New function.
2231 (write_inline_edge_summary): Use it.
2232 (inline_write_summary): Likewise.
2233 (inline_free_summary): Free alloc pool and edge summary vec.
2235 2011-04-27 Richard Guenther <rguenther@suse.de>
2237 * tree-ssa-structalias.c (changed_count): Remove.
2238 (changed): Use a bitmap.
2239 (unify_nodes): Adjust.
2240 (do_sd_constraint): Likewise.
2241 (do_ds_constraint): Likewise.
2242 (do_complex_constraint): Likewise.
2243 (solve_graph): Likewise.
2245 2011-04-27 Jan Hubicka <jh@suse.cz>
2247 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2249 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2251 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2252 (avx_vperm2f128_*_operand): Ditto.
2253 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2254 Use avx_vpermilp_parallel in insn condition.
2255 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2256 Use avx_vperm2f128_parallel in insn condition.
2258 2011-04-27 Richard Guenther <rguenther@suse.de>
2260 * Makefile.in (tree-ssa-structalias.o): Remove
2261 gt-tree-ssa-structalias.h dependency.
2262 (GTFILES): Remove tree-ssa-structalias.c.
2263 * tree.c (allocate_decl_uid): New function.
2264 (make_node_stat): Use it.
2265 (copy_node_stat): Likewise.
2266 * tree.h (allocate_decl_uid): Declare.
2267 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2268 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2269 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2270 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2271 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2272 (struct heapvar_map): Likewise.
2273 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2274 heapvar_insert): Likewise.
2275 (make_heapvar_for): Rename to ...
2276 (make_heapvar): ... this. Simplify.
2277 (fake_var_decl_obstack): New global var.
2278 (build_fake_var_decl): New function.
2279 (make_constraint_from_heapvar): Adjust.
2280 (handle_lhs_call): Likewise.
2281 (create_function_info_for): Likewise.
2282 (intra_create_variable_infos): Likewise.
2283 (init_alias_vars): Allocate fake_var_decl_obstack.
2284 (init_alias_heapvars, delete_alias_heapvars): Remove.
2285 (compute_points_to_sets): Do not call init_alias_heapvars.
2286 (ipa_pta_execute): Likewise.
2287 (delete_points_to_sets): Free fake_var_decl_obstack.
2289 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2291 * config/spu/divmovti4.c (union qword_UTItype): New data type.
2292 (si_from_UTItype, si_to_UTItype): New functions.
2293 (__udivmodti4): Use them to implement type-punning.
2294 * config/spu/multi3.c (union qword_TItype): New data type.
2295 (si_from_TItype, si_to_TItype): New functions.
2296 (__multi3): Use them to implement type-punning.
2298 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2300 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2302 2011-04-27 Jan Hubicka <jh@suse.cz>
2304 * ipa-prop.c (function_insertion_hook_holder): New holder.
2305 (ipa_add_new_function): New function.
2306 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2307 Register/deregister holder.
2309 2011-04-27 Richard Guenther <rguenther@suse.de>
2311 PR tree-optimization/48772
2312 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2314 2011-04-27 Richard Guenther <rguenther@suse.de>
2316 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2317 TARGET_MEM_REF handling.
2319 2011-04-27 Nick Clifton <nickc@redhat.com>
2321 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2322 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2323 (REG_CLASS_NAMES): Likewise.
2324 (REG_CLASS_CONTENTS): Likewise.
2325 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2326 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2327 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
2328 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
2329 (EVEN_REGS): New macro. Alias for QUAD_REGS.
2330 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2331 duplicate register classes.
2332 (frv_class_likely_spilled_p): Likewise.
2333 (frv_register_move_cost): Likewise.
2335 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2336 end of the regno_reg_class array.
2338 2011-04-27 Jakub Jelinek <jakub@redhat.com>
2341 * c-typeck.c (build_binary_op): Don't wrap arguments if
2342 int_operands is true.
2344 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
2347 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2348 targetm.calls.must_pass_in_stack for void type.
2350 2011-04-26 Jan Hubicka <jh@suse.cz>
2352 * cgraphbuild.c (build_cgraph_edges): Update call
2353 of cgraph_create_edge and cgraph_create_indirect_edge.
2354 * cgraph.c (cgraph_create_edge_including_clones,
2355 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2356 cgraph_update_edges_for_call_stmt_node): Do not take nest
2357 argument; do not initialize call_stmt_size/time.
2358 (dump_cgraph_node): Do not dump nest.
2359 (cgraph_clone_edge): Do not take loop_nest argument;
2360 do not propagate it; do not clone call_stmt_size/time.
2361 (cgraph_clone_node): Likewise.
2362 (cgraph_create_virtual_clone): Update.
2363 * cgraph.h (struct cgraph_edge): Remove
2364 call_stmt_size/call_stmt_time/loop_nest.
2365 (cgraph_create_edge, cgraph_create_indirect_edge,
2366 cgraph_create_edge_including_clones, cgraph_clone_node): Update
2368 * tree-emutls.c (gen_emutls_addr): Update.
2369 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2370 loop_nest; handle indirect calls, too.
2371 (clone_inlined_nodes): Do not care about updating inline summaries.
2372 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2373 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2374 stream call_stmt_size/call_stmt_time/loop_nest.
2375 * ipa-inline.c (edge_badness): Update.
2376 (ipa_inline): dump summaries after inlining.
2377 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2379 (inline_edge_summary): New function.
2380 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2381 (inline_edge_removal_hook): Handle edge summaries.
2382 (inline_edge_duplication_hook): New hook.
2383 (inline_summary_alloc): Alloc hooks.
2384 (initialize_growth_caches): Do not register removal hooks.
2385 (free_growth_caches); Do not free removal hook.
2386 (dump_inline_edge_summary): New function.
2387 (dump_inline_summary): Use it.
2388 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2389 (inline_update_callee_summaries): New function.
2390 (inline_merge_summary): Use it.
2391 (do_estimate_edge_time, do_estimate_edge_growth): Update.
2392 (read_inline_edge_summary): New function.
2393 (inline_read_section): Use it.
2394 (write_inline_edge_summary): New function.
2395 (inline_write_summary): Use it.
2396 (inline_free_summary): Free edge new holders.
2397 * tree-inline.c (copy_bb): Update.
2399 2011-04-26 Jason Merrill <jason@redhat.com>
2401 * tree-eh.c (lower_try_finally_switch): Create the label along with
2402 the CASE_LABEL_EXPR.
2404 2011-04-26 David S. Miller <davem@davemloft.net>
2405 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2407 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2408 * configure: Regenerate.
2410 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2413 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2415 (VEC_reduc): New code iterator and splitters for vector reduction.
2416 (VEC_reduc_name): Ditto.
2417 (VEC_reduc_rtx): Ditto.
2418 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2419 (reduc_<VEC_reduc_name>_v4sf): Ditto.
2421 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2422 support for extracting SF on VSX.
2424 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2425 generating xscvspdp.
2426 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2427 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2428 double add, minimum, maximum vector reduction.
2429 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2430 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2431 optimize double vector reduction.
2432 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2434 2011-04-26 Joseph Myers <joseph@codesourcery.com>
2436 * config/fr30/fr30.h (inhibit_libc): Don't define.
2437 * config/m32r/m32r-protos.h: Correct comment.
2438 * config/v850/v850.h (GHS_default_section_names,
2439 GHS_current_section_names): Use tree, not union tree_node *.
2441 2011-04-26 Xinliang David Li <davidxl@google.com>
2443 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2444 * c-family/c-opts.c (c_common_handle_option): Set
2445 warn_maybe_uninitialized.
2446 * opts.c (common_handle_option): Ditto.
2447 * common.opt: New option.
2448 * tree-ssa.c (warn_uninit): Add one more parameter.
2449 (warn_uninitialized_var): Pass warning code.
2450 * tree-flow.h: Interface change.
2453 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2455 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2456 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2457 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2459 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2461 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2462 * config/mips/mips.opt (mmips-tfile): Remove.
2464 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2465 mips-tdump reference to ...
2466 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
2467 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2468 reference by Tru64 UNIX.
2470 2011-04-26 Jakub Jelinek <jakub@redhat.com>
2473 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2474 is error_mark_node, set value to NULL.
2476 PR tree-optimization/48734
2477 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2478 if return value from maybe_fold_*_comparsions isn't something
2479 the code is prepared to handle.
2481 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
2483 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2485 (ext_QIreg_nomode_operands): Remove.
2486 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2490 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
2492 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2494 2011-04-26 Richard Guenther <rguenther@suse.de>
2496 * c-typeck.c (build_unary_op): Do not expand array-refs via
2497 pointer arithmetic. Only adjust qualifiers for function types.
2499 2011-04-26 Richard Guenther <rguenther@suse.de>
2502 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2503 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2504 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
2505 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2507 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2509 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2510 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2511 * doc/extend.texi: Document __underlying_type.
2513 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
2515 * config/rs6000/titan.md (automata_option "progress"): Remove.
2517 2011-04-25 Jeff Law <law@redhat.com>
2519 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2521 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2523 * system.h (ENUM_BITFIELD): Remove.
2525 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
2526 Eric Botcazou <ebotcazou@adacore.com>
2528 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2529 for STORE_FLAG_VALUE==-1 case.
2531 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
2534 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2535 LEGITIMATE_PIC_OPERAND_P.
2537 2011-04-24 Jan Hubicka <jh@suse.cz>
2539 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2541 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2542 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2543 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2544 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2545 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2546 Sanity check predicate length.
2547 (remap_predicate): Likewise; sanity check jump functions.
2548 (inline_read_section, inline_write_summary): Sanity check
2551 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2554 * doc/extend.texi (Type Traits): Document __is_standard_layout,
2555 __is_literal_type, and __is_trivial; update throughout about
2556 possibly cv-qualified void types.
2558 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
2560 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2561 testsuite and make it version agnostic.
2563 2011-04-22 Jan Hubicka <jh@suse.cz>
2565 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2567 2011-04-23 Jakub Jelinek <jakub@redhat.com>
2570 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2571 to VOID_TYPE even around MODIFY_EXPR.
2573 2011-04-22 Mike Stump <mikestump@comcast.net>
2575 * gensupport.c (read_md_rtx): Fix typo in comment.
2576 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2579 2011-04-22 Jan Hubicka <jh@suse.cz>
2581 * gengtype.c (open_base_files): Add ipa-inline.h include.
2582 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2583 ipa-prop.c; update all uses.
2584 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2585 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2586 merge summary of inlined function into former caller.
2587 * ipa-inline.c (max_benefit): Remove.
2588 (edge_badness): Compensate for removal of benefits.
2589 (update_caller_keys): Use
2590 reset_node_growth_cache/reset_edge_growth_cache.
2591 (update_callee_keys): Likewise.
2592 (update_all_callee_keys): Likewise.
2593 (inline_small_functions): Do not collect max_benefit; do not reset
2594 estimated_growth; call free_growth_caches and initialize_growth_caches.
2595 * ipa-inline.h (struct condition, type clause_t, struct predicate,
2596 struct size_time_entry): New structures.
2597 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2598 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2599 and estimated_growth.
2600 (edge_growth_cache_entry): New structure.
2601 (node_growth_cache, edge_growth_cache): New global vars.
2602 (estimate_growth): Turn into inline.
2603 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2604 initialize_growth_caches, free_growth_caches): Declare.
2605 (estimate_edge_growth): Rewrite.
2606 (estimate_edge_time): Implement as inline cache lookup.
2607 (reset_node_growth_cache, reset_edge_growth_cache): New inline
2609 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2610 (NUM_CONDITIONS): New constant.
2611 (predicate_conditions): New enum.
2612 (IS_NOT_CONSTANT): New constant.
2613 (edge_removal_hook_holder): New var.
2614 (node_growth_cache, edge_growth_cache): New global vars.
2615 (true_predicate, single_cond_predicate, false_predicate,
2616 not_inlined_predicate, add_condition, add_clause, and_predicates,
2617 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2618 dump_clause, dump_predicate, account_size_time,
2619 evaulate_conditions_for_edge): New functions.
2620 (inline_summary_alloc): Move to heap.
2621 (inline_node_removal_hook): Clear condition and entry vectors.
2622 (inline_edge_removal_hook): New function.
2623 (initialize_growth_caches, free_growth_caches): New function.
2624 (dump_inline_summary): Update.
2625 (edge_execution_predicate): New function.
2626 (will_be_nonconstant_predicate): New function.
2627 (estimate_function_body_sizes): Compute BB and constantness predicates.
2628 (compute_inline_parameters): Do not clear estimated_growth.
2629 (estimate_edge_size_and_time): New function.
2630 (estimate_calls_size_and_time): New function.
2631 (estimate_callee_size_and_time): New function.
2632 (remap_predicate): New function.
2633 (inline_merge_summary): New function.
2634 (do_estimate_edge_time): New function based on...
2635 (estimate_edge_time): ... this one.
2636 (do_estimate_edge_growth): New function.
2637 (do_estimate_growth): New function based on....
2638 (estimate_growth): ... this one.
2639 (inline_analyze_function): Analyze after deciding on jump functions.
2640 (inline_read_section): New function.
2641 (inline_read_summary): Use it.
2642 (inline_write_summary): Write all the new data.
2643 * ipa-prop.c (ipa_get_param_decl_index): Export.
2644 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2645 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2647 (ipa_get_lattice): Move here from ipa-cp.c
2648 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2649 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2650 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2651 cgraph_edge_inlinable_p): Remove.
2652 * cgraphunit.c: Include ipainline.h
2653 (cgraph_process_new_functions): Update call of
2654 compute_inline_parameters.
2656 2011-04-22 Richard Guenther <rguenther@suse.de>
2658 * tree.c (build_int_cst): Properly create canonicalized integer
2660 (build_int_cst_type): Remove scary comments.
2662 2011-04-22 Xinliang David Li <davidxl@google.com>
2664 * toplev.c (process_options): Enable -Werror=coverage-mismatch
2665 by default when -Wno-error is not specified.
2666 * opts-global.c (decode_options): Remove call to
2667 control_warning_options.
2669 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2671 PR tree-optimization/48717
2672 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2673 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2675 2011-04-22 Joseph Myers <joseph@codesourcery.com>
2677 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
2678 definition where used.
2680 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2683 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2684 TREE_STATIC variables declared inside of some OpenMP construct.
2686 2011-04-22 Martin Jambor <mjambor@suse.cz>
2689 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2691 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
2694 * c-typeck.c (pop_init_level): Do not warn about initializing
2697 2011-04-22 Alan Modra <amodra@gmail.com>
2699 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2700 when returning call_cookie.
2701 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2702 pointers, to functions with no more vector args than the current
2703 function, and some non-local calls for ABI_V4.
2704 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2705 sibcall_nonlocal_aix64): Combine to ..
2706 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
2707 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2708 (sibcall_value_nonlocal_aix<mode>): ..likewise.
2709 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2710 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
2712 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2713 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2714 sibcall_value_symbolic_64): Delete.
2716 2011-04-21 Xinliang David Li <davidxl@google.com>
2718 * cgraph.h: Remove pid.
2719 * cgraph.c: Remove pid.
2720 * value-prof.c (init_node_map): New function.
2721 (del_node_map): New function.
2722 (find_func_by_funcdef_no): New function.
2723 (gimple_ic_transform): Call new function.
2724 * cgraphunit.c (cgraph_finalize_function): Remove pid.
2725 * function.c (get_last_funcdef_no): New function.
2726 * function.h (get_last_funcdef_no): New function.
2727 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2728 to libgcov function.
2729 (tree-profiling): Call node map init and delete function.
2731 2011-04-21 Ian Lance Taylor <iant@google.com>
2733 * godump.c (go_format_type): Use exported Go name for anonymous
2736 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2738 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2739 Call builtin_function_type_list instead of builtin_function_type.
2740 (UNARY, BINARY, TRINARY, QUAD): Likewise.
2742 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2744 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2745 build_function_type_list instead of build_function_type.
2746 Delete variable `endlink'.
2748 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2750 * config/s390/s390.c (s390_init_builtins): Call
2751 build_function_type_list instead of build_function_type.
2753 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2755 * config/ia64/ia64.c (ia64_init_builtins): Call
2756 build_function_type_list instead of builtin_function_type.
2758 2011-04-21 Easwaran Raman <eraman@google.com>
2760 * cfgexpand.c (stack_var): Remove OFFSET...
2761 (add_stack_var): ...and its reference here...
2762 (expand_stack_vars): ...and here.
2763 (stack_var_cmp): Sort by descending order of size.
2764 (partition_stack_vars): Change heuristic.
2765 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2766 (dump_stack_var_partition): Add newline after each partition.
2768 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
2769 Jeff Law <law@redhat.com>
2771 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2772 * gengtype.c (matching_file_name_substitute): Likewise.
2774 2011-04-21 Richard Guenther <rguenther@suse.de>
2777 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2779 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2781 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2783 2011-04-21 Richard Guenther <rguenther@suse.de>
2785 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2788 2011-04-21 Richard Guenther <rguenther@suse.de>
2790 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2791 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2792 Use DECL_P, not SSA_VAR_P.
2793 (ptr_derefs_may_alias_p): Likewise.
2794 (ptr_deref_may_alias_ref_p_1): Likewise.
2795 (decl_refs_may_alias_p): Likewise.
2796 (refs_may_alias_p_1): Likewise.
2797 (ref_maybe_used_by_call_p_1): Likewise.
2798 (call_may_clobber_ref_p_1): Likewise.
2799 (indirect_ref_may_alias_decl_p): Assume indirect refrences
2800 are either MEM_REF or TARGET_MEM_REF.
2801 (indirect_refs_may_alias_p): Likewise.
2802 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2803 for MEM_EXPR of indirect calls.
2805 2011-04-21 Tristan Gingold <gingold@adacore.com>
2807 * vmsdbgout.c (write_srccorr): Compute file length from the string.
2808 (dst_file_info_struct): Remove flen field.
2809 (lookup_filename): Remove code that set flen field.
2811 2011-04-21 Tristan Gingold <gingold@adacore.com>
2813 * config/ia64/ia64.c (ia64_start_function): Add a guard.
2815 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
2818 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2819 vec_extract and vec_concat for non-SSE4_1 targets.
2821 2011-04-21 Richard Guenther <rguenther@suse.de>
2823 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2826 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2828 * config/i386/cygming.h (union tree_node, TREE): Don't define or
2830 (FILE): Don't undefine.
2832 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2834 * config/alpha/alpha.c (struct machine_function): Use rtx, not
2836 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2838 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2839 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2840 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2842 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
2843 definitions where used.
2844 * config/microblaze/microblaze.h (struct microblaze_args): Use
2845 rtx, not struct rtx_def *.
2846 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2848 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2849 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2850 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2851 not struct rtx_def *.
2852 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2854 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2856 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2858 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2860 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2861 operand_equal_p to compare DR_BASE_ADDRESSes.
2862 (vect_check_interleaving): Likewise.
2864 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2867 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2868 for all Neon struct constants.
2870 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2872 * target.def (legitimate_constant_p): New hook.
2873 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2874 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2875 * doc/tm.texi: Regenerate.
2876 * hooks.h (hook_bool_mode_rtx_true): Declare.
2877 * hooks.c (hook_bool_mode_rtx_true): Define.
2878 * system.h (LEGITIMATE_CONSTANT_P): Poison.
2879 * calls.c (precompute_register_parameters): Replace uses of
2880 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2881 (emit_library_call_value_1): Likewise.
2882 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2883 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2884 * ira-costs.c (scan_one_insn): Likewise.
2885 * recog.c (general_operand, immediate_operand): Likewise.
2886 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2887 * reload1.c (init_eliminable_invariants): Likewise.
2889 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2891 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2892 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2894 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2895 * config/alpha/predicates.md (input_operand): Update call to
2896 alpha_legitimate_constant_p.
2898 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2899 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2900 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2901 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2902 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2903 (arm_legitimate_constant_p): New functions.
2904 (arm_cannot_force_const_mem): Make static.
2906 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2908 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2909 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2910 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2911 instead of bfin_legitimate_constant_p.
2912 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2913 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2915 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2917 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2919 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2920 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2921 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2922 (frv_legitimate_constant_p): Make static. Add a mode argument.
2924 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2925 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2926 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2928 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2929 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2930 * config/i386/i386.c (legitimate_constant_p): Rename to...
2931 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2933 (ix86_cannot_force_const_mem): Update accordingly.
2934 (ix86_legitimate_address_p): Likewise.
2935 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2936 * config/i386/i386.md: Update commentary.
2938 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2939 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2940 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2941 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2943 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2945 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2946 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2947 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2948 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2950 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2951 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2952 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2954 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2955 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2956 (m32r_legitimate_constant_p): New function.
2958 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2959 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2960 LEGITIMATE_CONSTANT_P.
2961 (LEGITIMATE_CONSTANT_P): Delete.
2962 * config/m68k/m68k.c (m68k_expand_prologue): Call
2963 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2964 (m68k_legitimate_constant_p): New function.
2965 * config/m68k/m68k.md: Update comments.
2967 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2968 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2969 (mcore_legitimate_constant_p): New function.
2971 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2972 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2973 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2974 Add a mode argument.
2975 (mep_legitimate_address): Update accordingly.
2976 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2978 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2980 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2981 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2982 static. Check OP's mode for VOIDmode.
2983 (microblaze_legitimate_constant_p): New function.
2984 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2986 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2987 * config/mips/mips.c (mips_legitimate_constant_p): New function.
2988 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2989 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2990 * config/mips/predicates.md: Update comments.
2992 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2993 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2994 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2995 (mmix_legitimate_constant_p): Make static, return a bool, and take
2997 (mmix_print_operand_address): Update accordingly.
2999 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3001 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3002 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3003 static. Add a mode argument.
3004 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3006 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3008 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3009 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3010 (pa_legitimate_constant_p): New function.
3012 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3014 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3015 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3016 (pdp11_legitimate_constant_p): New function.
3018 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3019 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3020 (rs6000_legitimate_constant_p): New function.
3022 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3023 (rx_legitimate_constant_p): ...this.
3024 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3025 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3026 (rx_legitimate_constant_p): ...this.
3027 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3028 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3030 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3031 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3032 * config/s390/s390.c (legitimate_constant_p): Rename to...
3033 (s390_legitimate_constant_p): ...this. Make static, return a bool,
3034 and add a mode argument.
3035 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3037 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3039 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3040 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3041 (sh_legitimate_constant_p): New function.
3043 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3044 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3045 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3046 (legitimate_constant_p): Rename to...
3047 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
3049 (constant_address_p): Update accordingly.
3051 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3052 argument and return a bool.
3053 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3054 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3055 (spu_legitimate_constant_p): Add a mode argument and return a bool.
3056 (spu_rtx_costs): Update accordingly.
3057 * config/spu/predicates.md (vec_imm_operand): Likewise.
3059 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3061 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3062 * config/v850/v850.c (v850_legitimate_constant_p): New function.
3063 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3065 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3066 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3067 * config/vax/vax.c (legitimate_constant_p): Likewise.
3069 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3070 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3071 (xtensa_legitimate_constant_p): New function.
3073 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3075 * target.def (cannot_force_const_mem): Add a mode argument.
3076 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3077 * doc/tm.texi: Regenerate.
3078 * hooks.h (hook_bool_mode_rtx_false): Declare.
3079 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3080 (hook_bool_mode_const_rtx_true): Likewise.
3081 (hook_bool_mode_rtx_false): New function.
3082 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3083 to be non-VOID. Update call to cannot_force_const_mem.
3084 (find_reloads): Update accordingly.
3085 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3086 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3088 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3089 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3090 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3091 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3092 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3093 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3094 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3095 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3096 (m68k_cannot_force_const_mem): ...this new function.
3097 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3099 (mips_const_insns, mips_legitimize_const_move): Update calls.
3100 (mips_secondary_reload_class): Likewise.
3101 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3102 (pa_cannot_force_const_mem): ...this new function.
3103 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3104 (rs6000_cannot_force_const_mem): ...this new function.
3105 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3107 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3108 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3110 (xtensa_cannot_force_const_mem): ...this new function.
3112 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3114 * config/mips/mips.c (mips16_build_function_stub): Call
3115 build_function_type_list instead of build_function_type.
3116 (mips16_build_call_stub): Likewise.
3118 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3120 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3121 instead of build_function_type.
3123 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3125 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3126 instead of build_function_type.
3128 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
3131 * config/i386/i386.md (insv): Change operand 0 constraint to
3132 "register_operand". Change operand 1 and 2 constraint to
3133 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
3134 * config/i386/sse.md (sse4_1_pinsrb): Export.
3135 (sse2_pinsrw): Ditto.
3136 (sse4_1_pinsrd): Ditto.
3137 (sse4_1_pinsrq): Ditto.
3138 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3139 * config/i386/i386.c (ix86_expand_pinsr): New.
3141 2011-04-20 Easwaran Raman <eraman@google.com>
3143 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3144 containing union type only with -fstrict-aliasing.
3146 2011-04-20 Jim Meyering <meyering@redhat.com>
3148 Remove useless if-before-free tests.
3149 * calls.c (expand_call, save_area): Likewise.
3150 * cfgcleanup.c (try_forward_edges): Likewise.
3151 * collect2.c (collect_execute): Likewise.
3152 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3153 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3154 * coverage.c (coverage_checksum_string): Likewise.
3155 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3156 * cselib.c (cselib_init): Likewise.
3157 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3158 (df_set_clean_cfg): Likewise.
3159 * function.c (free_after_compilation): Likewise.
3160 * gcc.c (do_spec_1, main): Likewise.
3161 * gcov.c (create_file_names): Likewise.
3162 * gensupport.c (identify_predicable_attribute): Likewise.
3163 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3164 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3165 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3166 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3167 * ipa-pure-const.c (local_pure_const): Likewise.
3168 * ipa-reference.c (propagate): Likewise.
3169 * ira-costs.c (free_ira_costs): Likewise.
3170 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3171 * matrix-reorg.c (mat_free): Likewise.
3172 * prefix.c (get_key_value): Likewise.
3173 * profile.c (compute_value_histograms): Likewise.
3174 * reload1.c (free_reg_equiv): Likewise.
3175 * sched-deps.c (free_deps): Likewise.
3176 * sel-sched-ir.c (fence_clear): Likewise.
3177 * sese.c (set_rename, if_region_set_false_region): Likewise.
3178 * tree-data-ref.c (free_rdg): Likewise.
3179 * tree-eh.c (lower_try_finally): Likewise.
3180 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3181 * tree-ssa-live.c (delete_var_map): Likewise.
3182 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3183 * tree-ssa-pre.c (phi_trans_add): Likewise.
3185 2011-04-20 Jakub Jelinek <jakub@redhat.com>
3187 PR tree-optimization/48611
3188 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3189 beyond ERT_MUST_NOT_THROW region.
3191 2011-04-20 Catherine Moore <clm@codesourcery.com>
3193 * config/mips/mips.opt (mfix-24k): New.
3194 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3195 * config/mips/mips.md (length): Increase by 4 for stores if
3197 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3198 all noreorder if fixing 24K errata.
3199 * doc/invoke.texi: Document mfix-24k.
3201 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
3203 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3204 quad-word modes, reduce to 9-bit index range when above 1016 limit.
3206 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3208 * config/arm/arm.c (arm_gen_constant): Move movw support ....
3209 (const_ok_for_op): ... to here.
3211 2011-04-20 Kai Tietz <ktietz@redhat.com>
3213 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3214 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3216 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3218 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3220 2011-04-20 Richard Guenther <rguenther@suse.de>
3222 PR tree-optimization/47892
3223 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3226 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
3228 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3230 2011-04-20 Tristan Gingold <gingold@adacore.com>
3232 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3234 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
3238 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3239 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3240 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3241 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3242 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3244 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3247 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3248 (avr_asm_named_section, avr_asm_output_aligned_common,
3249 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3250 New functions to update...
3251 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3252 (avr_asm_init_sections): Overwrite section callbacks for
3253 data_section, bss_section.
3254 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3256 (avr_file_end): ...here.
3258 2011-04-20 Richard Guenther <rguenther@suse.de>
3261 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3262 objects and types here. Adjust for their offset before comparing.
3264 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3266 * tree-vect-stmts.c (vectorizable_store): Only chain one related
3269 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3271 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3272 (GIMPLE_H): Include $(INTERNAL_FN_H).
3273 (OBJS-common): Add internal-fn.o.
3274 (internal-fn.o): New rule.
3275 * internal-fn.def: New file.
3276 * internal-fn.h: Likewise.
3277 * internal-fn.c: Likewise.
3278 * gimple.h: Include internal-fn.h.
3279 (GF_CALL_INTERNAL): New gf_mask.
3280 (gimple_statement_call): Put fntype into a union with a new
3282 (gimple_build_call_internal): Declare.
3283 (gimple_build_call_internal_vec): Likewise.
3284 (gimple_call_same_target_p): Likewise.
3285 (gimple_call_internal_p): New function.
3286 (gimple_call_internal_fn): Likewise.
3287 (gimple_call_fntype): Return null for internal calls.
3288 (gimple_call_set_fntype): Assert that the function is not internal.
3289 (gimple_call_set_fn): Likewise.
3290 (gimple_call_set_fndecl): Likewise.
3291 (gimple_call_set_internal_fn): New function.
3292 (gimple_call_addr_fndecl): Handle null functions.
3293 (gimple_call_return_type): Likewise null types.
3294 * gimple.c (gimple_build_call_internal_1): New function.
3295 (gimple_build_call_internal): Likewise.
3296 (gimple_build_call_internal_vec): Likewise.
3297 (gimple_call_same_target_p): Likewise.
3298 (gimple_call_flags): Handle calls to internal functions.
3299 (gimple_call_fnspec): New function.
3300 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3301 (gimple_has_side_effects): Handle null functions.
3302 (gimple_rhs_has_side_effects): Likewise.
3303 (gimple_call_copy_skip_args): Handle calls to internal functions.
3304 * cfgexpand.c (expand_call_stmt): Likewise.
3305 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3306 * gimple-fold.c (gimple_fold_call): Handle null functions.
3307 (gimple_fold_stmt_to_constant_1): Don't fold
3308 calls to internal functions.
3309 * gimple-low.c (gimple_check_call_args): Handle calls to internal
3311 * gimple-pretty-print.c (dump_gimple_call): Likewise.
3312 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3313 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3314 (do_warn_unused_result): Likewise.
3315 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3316 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3317 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3318 the target of a call.
3319 (initialize_hash_element): Update accordingly.
3320 (hashable_expr_equal_p): Use gimple_call_same_target_p.
3321 (iterative_hash_hashable_expr): Handle calls to internal functions.
3322 (print_expr_hash_elt): Likewise.
3323 * tree-ssa-pre.c (can_value_number_call): Likewise.
3324 (eliminate): Handle null functions.
3325 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3326 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3327 (find_func_aliases): Likewise.
3328 * value-prof.c (gimple_ic_transform): Likewise.
3329 (gimple_indirect_call_to_profile): Likewise.
3330 * lto-streamer-in.c (input_gimple_stmt): Likewise.
3331 * lto-streamer-out.c (output_gimple_stmt): Likewise.
3333 2011-04-19 Jan Hubicka <jh@suse.cz>
3335 * ipa-inline-transform.c (save_inline_function_body): Add comments.
3336 * ipa-inline.c (inline_small_functions): Compute summaries first,
3337 populate heap later.
3339 2011-04-19 Jan Hubicka <jh@suse.cz>
3341 * cgraph.h (save_inline_function_body): Remove.
3342 * ipa-inline-transform.c: New file, broke out of...
3343 * ipa-inline.c: ... this one; Update toplevel comment.
3344 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3346 (update_noncloned_frequencies): Move to ipa-inline-transform.c
3347 (cgraph_mark_inline_edge): Rename to inline_call; move to
3348 ipa-inline-transform.c.
3349 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3350 move to ipa-inline-transform.c
3351 (recursive_inlining, inline_small_functions, flatten_function,
3352 ipa_inline, inline_always_inline_functions,
3353 early_inline_small_functions): Update.
3354 (inline_transform): Move to ipa-inline-transform.c.
3355 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3357 * Makefile.in (ipa-inline-transform.o): New file.
3358 * cgraphunit.c (save_inline_function_body): Move to
3359 ipa-inline-transform.c
3361 2011-04-19 DJ Delorie <dj@redhat.com>
3363 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3364 registers if we already know there aren't any.
3365 (m32c_emit_epilogue): Don't emit a barrier here.
3366 (m32c_emit_eh_epilogue): Likewise.
3367 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3368 operands at expand time.
3369 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3371 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3372 duplicates. Provide aliases instead.
3373 * config/m32c/prologue.md (eh_return): Emit a barrier here.
3374 (eh_epilogue): Add a "(return)" here as a hint to other parts of
3377 2011-04-19 Anatoly Sokolov <aesok@post.ru>
3379 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3380 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3381 (general_or_i64_p, sparc_register_move_cost): New function.
3383 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3385 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3386 Add lynx, mipssde. Sort table.
3388 2011-04-19 Xinliang David Li <davidxl@google.com>
3390 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3393 2011-04-19 Jakub Jelinek <jakub@redhat.com>
3396 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3397 is a SUBREG with non-MODE_INT mode inside of it.
3399 2011-04-19 Martin Jambor <mjambor@suse.cz>
3401 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3402 also according to actual contants.
3403 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3404 (gimple_fold_call): Use it.
3405 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3407 2011-04-19 Martin Jambor <mjambor@suse.cz>
3409 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3410 non-pointer assignments.
3412 2011-04-19 Martin Jambor <mjambor@suse.cz>
3414 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3415 account anc_offset and otr_type from the indirect edge info.
3416 * ipa-prop.c (get_ancestor_addr_info): New function.
3417 (compute_complex_ancestor_jump_func): Assignment analysis moved to
3418 get_ancestor_addr_info, call it.
3419 (ipa_note_param_call): Do not initialize information about polymorphic
3420 calls, return the indirect call graph edge. Remove the last
3421 parameter, adjust all callers.
3422 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3423 parameters. Initialize polymorphic information in the indirect edge.
3425 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3428 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3429 the types if they have different enumeration identifiers.
3431 2011-04-19 Jan Hubicka <jh@suse.cz>
3433 * cgraph.h (cgraph_optimize_for_size_p): Declare.
3434 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3435 * predict.c (cgraph_optimize_for_size_p): Break out from ...
3436 (optimize_function_for_size_p) ... here.
3438 2011-04-19 Richard Guenther <rguenther@suse.de>
3441 * tree.c (free_lang_data): Do not reset the decl-assembler-name
3444 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3446 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3447 if DECL_NO_INLINE_WARNING_P is set on the function.
3449 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
3452 * reload1.c (inc_for_reload): Return void. All callers changed.
3453 (emit_input_reload_insns): Don't try to delete previous output
3454 reloads to a register, or record spill_reg_store for autoincs.
3456 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
3458 * gengtype.h: Updated copyright year.
3459 (struct input_file_st): Add inpisplugin field.
3460 (type_fileloc): New function.
3462 (write_typed_struct_alloc_def): Add gcc_assert.
3463 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3464 (write_typed_alloc_defns): Don't output for plugin files.
3465 (input_file_by_name): Clear inpisplugin field.
3466 (main): Set inpisplugin field for plugin files.
3468 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
3470 * gengtype-state.c (string_eq): New.
3471 (read_state): Use string_eq instead of strcmp when creating the
3474 2011-04-19 Wei Guozhi <carrot@google.com>
3477 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3478 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3480 * config/arm/constraints.md (Uu): New constraint.
3481 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3483 2011-04-19 Tristan Gingold <gingold@adacore.com>
3485 * config.gcc (-*-*-*vms): Added.
3486 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3488 * config/vms/vms-ld.c: New file.
3489 * config/vms/vms-ar.c: New file.
3490 * config/vms/t-vmsnative: New file.
3492 2011-04-18 Xinliang David Li <davidxl@google.com>
3494 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3496 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3499 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3500 if TREE_TYPE (v) is non-NULL.
3502 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3503 gimple_get_virt_mehtod_for_binfo.
3504 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3505 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3507 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3509 2011-04-18 Michael Matz <matz@suse.de>
3510 Steve Ellcey <sje@cup.hp.com>
3512 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3513 use its mode as source mode if it isn't VOIDmode.
3515 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
3517 * doc/passes.texi: Fill crossref nodes.
3519 2011-04-18 Jim Meyering <meyering@redhat.com>
3521 Fix doubled-word typos in comments and strings
3522 * config/alpha/vms-unwind.h: s/for for/for/
3523 * config/arm/unwind-arm.h: Likewise.
3524 * config/microblaze/microblaze.c: Likewise.
3525 * config/sh/constraints.md: s/in in/in/
3526 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3528 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
3530 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3531 (AVX_FLOAT_MODE_P): Ditto.
3532 (AVX128_VEC_FLOAT_MODE_P): Ditto.
3533 (AVX256_VEC_FLOAT_MODE_P): Ditto.
3534 (AVX_VEC_FLOAT_MODE_P): Ditto.
3535 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3536 (UNSPEC_MASKSTORE): Ditto.
3537 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3538 Merge from <sse>_movmsk<ssemodesuffix> and
3539 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
3540 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
3542 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3543 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3544 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3546 2011-04-18 Jan Hubicka <jh@suse.cz>
3548 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3550 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3551 (want_inline_function_called_once_p): Break out the logic from
3553 (edge_badness): Ensure that profile is not misupdated.
3554 (lookup_recursive_calls): Prioritize by call frequencies.
3555 (inline_small_functions): Move program size estimates here;
3556 actually process whole queue even when unit growth has been
3557 met. (to properly compute inline_failed reasons and for the
3558 case unit size decrease.) Revisit comments on recursive inlining.
3559 (ipa_inline): Remove unit summary code; first inline hot calls
3560 of functions called once, cold calls next.
3561 (order, nnodes): Remove unused variables.
3562 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3563 (GTFILES): Remove ipa-inline.c
3564 * sel-sched.c (fill_insns): Silence uninitialized var warning.
3566 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3568 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3570 2011-04-18 Jie Zhang <jie@codesourcery.com>
3571 Richard Earnshaw <rearnsha@arm.com>
3573 * arm.c (neon_builtin_type_bits): Remove.
3574 (typedef enum neon_builtin_mode): New.
3575 (T_MAX): Don't define.
3576 (typedef enum neon_builtin_datum): Remove bits, codes[],
3577 num_vars and base_fcode. Add mode, code and fcode.
3578 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3579 VAR10): Change accordingly.
3580 (neon_builtin_data[]): Change accordingly
3581 (arm_init_neon_builtins): Change accordingly.
3582 (neon_builtin_compare): Remove.
3583 (locate_neon_builtin_icode): Remove.
3584 (arm_expand_neon_builtin): Change accordingly.
3586 * arm.h (enum arm_builtins): Move to ...
3587 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3589 * arm.c (arm_builtin_decl): Declare.
3590 (TARGET_BUILTIN_DECL): Define.
3591 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3592 (arm_builtin_decls[]): New.
3593 (arm_init_neon_builtins): Store builtin declarations in
3594 arm_builtin_decls[].
3595 (arm_init_tls_builtins): Likewise.
3596 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
3597 (arm_builtin_decl): New.
3599 2011-04-18 Richard Guenther <rguenther@suse.de>
3601 * tree.c (upper_bound_in_type): Build properly canonicalized
3603 (lower_bound_in_type): Likewise.
3605 2011-04-18 Richard Guenther <rguenther@suse.de>
3607 * gimple.h (gimple_call_addr_fndecl): New function.
3608 (gimple_call_fndecl): Use it.
3609 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3611 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3612 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3614 2011-04-18 Richard Guenther <rguenther@suse.de>
3617 * tree.c (build_string): STRING_CST is now derived from tree_typed.
3619 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3622 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3623 DECL_IN_CONSTANT_POOL without RTL.
3625 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
3626 Ira Rosen <ira.rosen@linaro.org>
3629 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3630 to match neon_vzip/vuzp/vtrn_internal.
3631 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3632 outputs explicitly dependent on both inputs.
3633 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3635 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3637 PR tree-optimization/48616
3638 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3639 whether the shift is by scalar or vector based on whether all SLP
3640 scalar stmts have the same rhs.
3642 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
3644 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3647 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3649 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3652 2011-04-17 Jan Hubicka <jh@suse.cz>
3654 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3655 * cgrpahunit.c (cgraph_finalize_function): Do not set
3656 finalized_by_frontend.
3657 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3658 finalized_by_frontend.
3660 2011-04-17 Jan Hubicka <jh@suse.cz>
3662 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3663 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3664 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3665 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3667 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3669 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3671 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
3674 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3675 is non-null before accessing it.
3676 (input_cgraph): Remove trailing spaces.
3678 2011-04-17 Revital Eres <revital.eres@linaro.org>
3680 * params.def (sms-min-sc): New param flag.
3681 * modulo-sched.c (sms_schedule): Use it.
3682 * doc/invoke.texi (sms-min-sc): Document it.
3684 2011-04-17 Jan Hubicka <jh@suse.cz>
3686 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3687 present, also set gimple_call_set_cannot_inline.
3688 * ipa-inline.c: Update toplevel comment.
3690 (cgraph_clone_inlined_nodes): Fix linebreaks.
3691 (cgraph_check_inline_limits): Restructure to ...
3692 (caller_growth_limits): ... this one; be more tolerant
3693 on growth in nested inline chains; add explanatory comment;
3694 fix stack accounting thinko introduced by previous patch.
3695 (cgraph_default_inline_p): Remove.
3696 (report_inline_failed_reason): New function.
3697 (can_inline_edge_p): New function.
3698 (can_early_inline_edge_p): New function.
3699 (leaf_node_p): Move upwards in file.
3700 (want_early_inline_function_p): New function.
3701 (want_inline_small_function_p): New function.
3702 (want_inline_self_recursive_call_p): New function.
3703 (cgraph_edge_badness): Rename to ...
3704 (edge_badness) ... this one; fix linebreaks.
3705 (update_edge_key): Update call of edge_baddness; add
3706 detailed dump about queue updates.
3707 (update_caller_keys): Use can_inline_edge_p and
3708 want_inline_small_function_p.
3709 (cgraph_decide_recursive_inlining): Rename to...
3710 (recursive_inlining): Use can_inline_edge_p and
3711 want_inline_self_recursive_call_p; simplify and remove no longer
3713 (cgraph_set_inline_failed): Remove.
3714 (add_new_edges_to_heap): Use can_inline_edge_p and
3715 want_inline_small_function_p.
3716 (cgraph_decide_inlining_of_small_functions): Rename to ...
3717 (inline_small_functions): ... this one; cleanup; use
3718 can/want predicates; cleanup debug ouput; work edges till fibheap
3719 is exhausted and do not stop once unit growth is reached; remove
3720 later loop processing remaining edges.
3721 (cgraph_flatten): Rename to ...
3722 (flatten_function): ... this one; use can_inline_edge_p
3723 and can_early_inline_edge_p predicates.
3724 (cgraph_decide_inlining): Rename to ...
3725 (ipa_inline): ... this one; remove unreachable nodes before
3726 inlining functions called once; simplify the pass.
3727 (cgraph_perform_always_inlining): Rename to ...
3728 (inline_always_inline_functions): ... this one; use
3729 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3730 (cgraph_decide_inlining_incrementally): Rename to ...
3731 (early_inline_small_functions): ... this one; simplify
3732 using new predicates; cleanup; make dumps prettier.
3733 (cgraph_early_inlining): Rename to ...
3734 (early_inliner): newer inline regular functions into always-inlines;
3735 fix updating of call stmt summaries.
3736 (pass_early_inline): Update for new names.
3737 (inline_transform): Fix formating.
3738 (gate_cgraph_decide_inlining): Rename to ...
3739 (pass_ipa_inline): ... this one.
3740 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3741 * ipa-inline-analysis.c (dump_inline_summary): Update.
3742 (compute_inline_parameters): Do not compute disregard_inline_limits;
3743 look for mismatching arguments.
3744 (estimate_growth): Fix handlig of non-trivial self recursion.
3745 (inline_read_summary): Do not read info->disregard_inline_limits.
3746 (inline_write_summary): Do not write info->disregard_inline_limits.
3747 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3748 and move all checks into can_inline_edge_p predicate; re-enable code
3749 comparing optimization levels.
3750 (expand_call_inline): Do not test inline_forbidden_into_p.
3751 * Makefile.in (ipa-inline.o): Update arguments.
3753 2011-04-17 Revital Eres <revital.eres@linaro.org>
3755 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3757 2011-04-17 Revital Eres <revital.eres@linaro.org>
3759 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3761 2011-04-17 Michael Matz <matz@suse.de>
3763 PR tree-optimization/48622
3765 * ipa-inline-analysis.c (inline_read_summary): Read size/time
3766 in same order as they're written.
3768 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3770 * config/pa/predicates.md: Reorganize and simplify predicates.
3771 Eliminate duplicate code checks.
3772 (arith_operand): Rename to arith14_operand
3773 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3774 * config/pa/pa.md: Use renamed operands.
3775 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3776 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3777 arith11_operand, adddi3_operand, indexed_memory_operand,
3778 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3779 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3780 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3781 move_dest_operand, move_src_operand, prefetch_cc_operand,
3782 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3783 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3784 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3785 div_operand, int5_operand, movb_comparison_operator,
3786 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3787 arith_double_operand, ireg_operand, lhs_lshift_operand,
3788 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3789 integer_store_memory_operand): Likewise.
3790 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3791 (integer_store_memory_operand, read_only_operand,
3792 function_label_operand, borx_reg_operand,
3793 non_hard_reg_operand): Likewise.
3794 (eq_neq_comparison_operator): Delete unused operator.
3795 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3796 function_label_operand.
3797 (emit_move_sequence): Likewise.
3799 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3801 * config/i386/sse.md (sseunpackmode): New mode attribute.
3802 (ssepackmode): Ditto.
3803 (vec_pack_trunc_<mode>): Macroize expander from
3804 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3805 (vec_unpacks_lo_<mode>): Macroize expander from
3806 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3807 (vec_unpacks_hi_<mode>): Macroize expander from
3808 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3809 (vec_unpacku_lo_<mode>): Macroize expander from
3810 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3811 (vec_unpacku_hi_<mode>): Macroize expander from
3812 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3813 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3814 ix86_expand_sse4_unpack.
3815 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3817 2011-04-16 Jan Hubicka <jh@suse.cz>
3819 * cgraphbuild.c: Include ipa-inline.h.
3820 (reset_inline_failed): Use initialize_inline_failed.
3821 * cgraph.c: Include ipa-inline.h.
3822 (cgraph_create_node_1): Do not initialize estimated_growth.
3823 (initialize_inline_failed): More to ipa-inline-analysis.c
3824 (dump_cgraph_node): Do not dump inline flags.
3825 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3826 and disregard_inline_limits flags.
3827 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3828 time, size, estimated_growth.
3829 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3831 * cgraphunit.c (cgraph_decide_is_function_needed): Use
3832 DECL_DISREGARD_INLINE_LIMITS.
3833 (cgraph_analyze_function): Do not initialize
3834 node->local.disregard_inline_limits.
3835 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3836 inlinable, versionable and disregard_inline_limits.
3837 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3838 cgraph_check_inline_limits, cgraph_default_inline_p,
3839 cgraph_edge_badness, update_caller_keys, update_callee_keys,
3840 add_new_edges_to_heap): Update.
3841 (cgraph_decide_inlining_of_small_function): Update; set
3842 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3843 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3844 cgraph_decide_inlining_incrementally): Update.
3845 * ipa-inline.h (inline_summary): Add inlinable, versionable,
3846 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3847 time, size and estimated_growth parameters.
3848 (estimate_edge_growth): Update.
3849 (initialize_inline_failed): Declare.
3850 * ipa-split.c: Include ipa-inline.h
3851 (execute_split_functions): Update.
3852 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3853 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3854 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3855 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3856 estimated_growth to INT_MIN.
3857 (inline_node_duplication_hook): Likewise.
3858 (dump_inline_summary): Dump new fields.
3859 (compute_inline_parameters): Update.
3860 (estimate_edge_time, estimate_time_after_inlining,
3861 estimate_size_after_inlining, estimate_growth, inline_read_summary,
3862 inline_write_summary):
3863 (initialize_inline_failed): Move here from cgraph.c.
3864 * tree-sra.c: Include ipa-inline.h.
3865 (ipa_sra_preliminary_function_checks): Update.
3866 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3869 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3871 * config/i386/sse.md (V16): New mode iterator.
3873 (AVXMODEQI, AVXMODEDI): Remove.
3874 (sse2, sse3): New mode attribute.
3875 (mov<mode>): Use V16 mode iterator.
3876 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3877 (push<mode>1): Use V16 mode iterator.
3878 (movmisalign<mode>): Ditto.
3879 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3880 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3881 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3882 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3883 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3884 avx_movdqu<avxmodesuffix>.
3885 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3886 *avx_movdqu<avxmodesuffix>.
3887 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3888 avx_lddqu<avxmodesuffix>.
3889 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3890 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3891 avx_movnt<AVXMODEDI:mode>.
3892 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3893 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3895 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
3898 * haifa-sched.c (prune_ready_list, schedule_block): Use
3899 sched_pressure_p rather than flag_sched_pressure.
3901 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3903 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3904 cgraph_get_node instead of cgraph_get_create_node.
3906 2011-04-15 Jakub Jelinek <jakub@redhat.com>
3908 * cfgexpand.c (expand_debug_expr): Use
3909 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3911 2011-04-15 Michael Matz <matz@suse.de>
3913 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3914 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3915 * function.c (gimplify_parameters): Ditto.
3916 * gimplify.c (gimplify_vla_decl): Ditto.
3918 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3919 (gimple_call_set_alloca_for_var): New inline function.
3920 (gimple_call_alloca_for_var_p): Ditto.
3921 * gimple.c (gimple_build_call_from_tree): Remember
3922 CALL_ALLOCA_FOR_VAR_P state.
3923 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3925 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3926 calls if they were for VLA objects.
3928 2011-04-15 Martin Jambor <mjambor@suse.cz>
3930 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3933 2011-04-15 Martin Jambor <mjambor@suse.cz>
3936 * tree-emutls.c (lower_emutls_function_body): Call
3937 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3940 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3942 * c-decl.c (detect_field_duplicates): Call
3943 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3945 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3947 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3948 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3949 * ipa-pure-const.c (check_stmt): Call it.
3950 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3952 2011-04-15 Richard Guenther <rguenther@suse.de>
3954 PR tree-optimization/48290
3955 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3956 Properly decide inhibiting propagation based on the valueized
3957 operand. Do loop-closed SSA form preserving here ...
3958 (init_copy_prop): ... not here.
3960 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3963 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3964 (*ieee_smax<mode>3): Likewise.
3966 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3968 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3969 Replace match_operand with match_dup for the third operand in
3972 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3974 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3975 to track processing of conditionals. Update all callers.
3976 (try_combine, simplify_if_then_else): Update.
3978 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3980 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3983 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
3985 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3986 instead of match_operand for operand 3.
3988 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
3990 * recog.h (insn_operand_data): Add an "allows_mem" field.
3991 * genoutput.c (output_operand_data): Initialize it.
3992 * optabs.c (maybe_legitimize_operand_same_code): New function.
3993 (maybe_legitimize_operand): Use it when matching the original
3996 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3998 * gimplify.c: Fix issues in comments throughout.
3999 (voidify_wrapper_expr): Fix long line.
4000 (build_stack_save_restore): Likewise.
4001 (gimplify_loop_expr): Likewise.
4002 (gimplify_compound_lval): Likewise.
4003 (gimplify_init_ctor_eval): Likewise.
4004 (gimplify_modify_expr_rhs): Likewise.
4005 (omp_notice_threadprivate_variable): Likewise.
4007 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4009 * cfgexpand.c (expand_call_stmt): Convert the function type to the
4010 original one if this is not a builtin function.
4012 2011-04-14 Jakub Jelinek <jakub@redhat.com>
4015 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4016 offset it as needed based on top 2 bits in operands[3], change
4017 MEM mode to SFmode and mask those 2 bits away from operands[3].
4019 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4021 * c-parser.c (c_parser_objc_protocol_definition): Updated for
4022 change from objc_declare_protocols() to objc_declare_protocol().
4024 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
4026 * config/i386/sse.md (sse4_1): New mode attribute.
4027 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4028 avx_blend<ssemodesuffix><avxmodesuffix> and
4029 sse4_1_blend<ssemodesuffix> using VF mode iterator.
4030 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4031 avx_blendv<ssemodesuffix><avxmodesuffix> and
4032 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4033 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4034 avx_dp<ssemodesuffix><avxmodesuffix> and
4035 sse4_1_dp<ssemodesuffix> using VF mode iterator.
4036 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4037 (sse4_1_packusdw): Merge with *avx_packusdw.
4038 (sse4_1_pblendvb): Merge with *avx_pblendvb.
4039 (sse4_1_pblendw): Merge with *avx_pblendw.
4040 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4041 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4042 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4044 (sse4_1_round<ssescalarmodesuffix>): Merge with
4045 *avx_round<ssescalarmodesuffix>.
4046 (aesenc): Merge with *avx_aesenc.
4047 (aesenclast): Merge with *avx_aesenclast.
4048 (aesdec): Merge with *avx_aesdec.
4049 (aesdeclast): Merge with *avx_aesdeclast.
4050 (pclmulqdq): Merge with *pclmulqdq.
4051 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4053 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4055 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
4058 * cfgexpand.c (get_decl_align_unit): Renamed to ...
4059 (align_local_variable): This. Update DECL_ALIGN.
4060 (add_stack_var): Updated.
4061 (expand_one_stack_var): Likewise.
4063 2011-04-14 Richard Guenther <rguenther@suse.de>
4065 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4067 (dse_initialize_block_local_data, dse_leave_block,
4068 record_voperand_set, get_stmt_uid): Likewise.
4069 (dse_possible_dead_store_p): Allow any kind of killing stmt.
4070 (dse_optimize_stmt): Remove voperand set handling code.
4071 Simplify and improve to handle any kind of killing stmt.
4072 (dse_record_phi): Remove.
4073 (dse_enter_block): Simplify.
4074 (tree_ssa_dse): Likewise.
4075 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4077 2011-04-14 Jan Hubicka <jh@suse.cz>
4079 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4080 * cgraph.h (struct inline_summary): Move to ipa-inline.h
4081 (cgraph_local_info): Remove inline_summary.
4082 * ipa-cp.c: Include ipa-inline.h.
4083 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4084 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4086 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4087 (input_overwrite_node): Do not set inline summary.
4088 (input_node): Do not stream inline summary.
4089 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4090 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4091 growth; we do not have inline parameters computed for that anyway.
4092 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4093 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4094 (inline_summary_t): New type and VECtor.
4095 (debug_inline_summary, dump_inline_summaries): Declare.
4096 (inline_summary): Use VOCtor.
4097 (estimate_edge_growth): Kill hack computing call stmt size directly.
4098 * lto-section-in.c (lto_section_name): Add inline section.
4099 * ipa-inline-analysis.c: Include lto-streamer.h
4100 (node_removal_hook_holder, node_duplication_hook_holder): New holders
4101 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4102 (inline_summary_vec): Define.
4103 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4104 dump_inline_summaries): New functions.
4105 (estimate_function_body_sizes): Properly compute size/time of outgoing
4107 (compute_inline_parameters): Alloc inline_summary; do not compute
4108 size/time of incomming calls.
4109 (estimate_edge_time): Avoid missing time summary hack.
4110 (inline_read_summary): Read inline summary info.
4111 (inline_write_summary): Write inline summary info.
4112 (inline_free_summary): Free all hooks and inline summary vector.
4113 * lto-streamer.h: Add LTO_section_inline_summary section.
4114 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4115 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4117 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4119 * tree-vectorizer.h (vect_strided_store_supported): Add a
4120 HOST_WIDE_INT argument.
4121 (vect_strided_load_supported): Likewise.
4122 (vect_permute_store_chain): Return void.
4123 (vect_transform_strided_load): Likewise.
4124 (vect_permute_load_chain): Delete.
4125 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4126 count argument. Check that the count is a power of two.
4127 (vect_strided_load_supported): Likewise.
4128 (vect_permute_store_chain): Return void. Update after above changes.
4129 Assert that the access is supported.
4130 (vect_permute_load_chain): Likewise.
4131 (vect_transform_strided_load): Return void.
4132 * tree-vect-stmts.c (vectorizable_store): Update calls after
4133 above interface changes.
4134 (vectorizable_load): Likewise.
4135 (vect_analyze_stmt): Don't check for strided powers of two here.
4137 2011-04-14 Richard Guenther <rguenther@suse.de>
4139 PR tree-optimization/48590
4140 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4141 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4142 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4143 BUILT_IN_STACK_SAVE.
4144 * tree-ssa-dce.c (propagate_necessity): Handle
4145 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4147 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4149 * c-parser.c (c_parser_objc_class_declaration): Updated call to
4152 2011-04-14 Richard Guenther <rguenther@suse.de>
4154 * tree.h (get_object_alignment_1): Declare.
4155 * builtins.c (get_object_alignment_1): Split out worker from ...
4156 (get_object_alignment): ... here.
4157 * fold-const.c (get_pointer_modulus_and_residue): Use
4158 get_object_alignment_1.
4160 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4162 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4164 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4165 parameter. Generalise code to handle arrays as well as vectors.
4166 (vect_setup_realignment): Update accordingly.
4167 * tree-vect-stmts.c (vectorizable_store): Likewise.
4168 (vectorizable_load): Likewise.
4170 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4172 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4173 within the per-copy loop.
4175 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4177 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4180 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4182 * doc/options.texi (Negative): Explicitly mention that the
4183 Negative chain must be circular.
4185 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
4187 * function.h (block_chainon): Declare.
4188 * function.c (block_chainon): Define.
4190 2011-04-14 Anatoly Sokolov <aesok@post.ru>
4191 Eric Weddington <eric.weddington@atmel.com>
4192 Georg-Johann Lay <avr@gjlay.de>
4194 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4196 (avr_init_builtins, avr_expand_builtin,
4197 avr_expand_delay_cycles, avr_expand_unop_builtin,
4198 avr_expand_binop_builtin ): New functions.
4199 (avr_builtin_id): New enum
4200 (struct avr_builtin_description): New struct
4201 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4202 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4204 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4205 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4206 UNSPECV_DELAY_CYCLES): new enumeration values
4207 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4208 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4209 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4210 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4211 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4212 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4213 "fmulsu"): New insns
4215 * config/avr/avr-c.c: fix line endings
4216 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4217 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4218 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4219 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4220 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4222 * doc/extend.texi (AVR Built-in Functions): New node
4223 (Target Builtins): Add documentation of AVR
4226 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
4229 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4230 alone. Error if non-const data has attribute progmem.
4232 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4234 * tree.h (struct tree_constructor): Include tree_typed instead of
4236 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4237 TS_TYPED instead of TS_COMMON.
4239 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4241 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4242 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4243 (sse2_psadbw): Merge with *avx_psadbw.
4244 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4245 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4246 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4247 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4248 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4249 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4250 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4251 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4252 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4253 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4254 (ssse3_palignrti): Merge with *avx_palignrti.
4256 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4258 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4259 * tree-ssanames.c (fini_ssanames): VEC_free it.
4260 (make_ssa_name_fn): Update for VECness of free_ssanames.
4261 (release_ssa_name, release_dead_ssa_names): Likewise.
4262 * tree.h (struct tree_ssa_name): Include tree_typed instead of
4264 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4265 TS_TYPED instead of TS_COMMON.
4267 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4269 * postreload-gcse.c (gcse_after_reload_main): Add calls to
4270 statistics_counter_event.
4271 * tree-ssa-copyrename.c (stats): Define.
4272 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
4273 statistics_counter_event.
4274 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4275 (bswap_stats, widen_mul_stats): Define.
4276 (insert_reciprocals): Increment rdivs_inserted.
4277 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
4278 rfuncs_inserted. Add calls to statistics_counter_event.
4279 (execute_cse_sincos_1): Increment inserted.
4280 (execute_cse_sincos): Zeroize sincos_stats. Add call to
4281 statistics_counter_event.
4282 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
4283 of bswap_stats. Add calls to statistics_counter_event.
4284 (convert_mult_to_widen): Increment widen_mults_inserted.
4285 (convert_plusminus_to_widen): Increment maccs_inserted.
4286 (convert_mult_to_fma): Increment fmas_inserted.
4287 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
4288 calls to statistics_counter_event.
4290 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
4292 PR rtl-optimization/48455
4293 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4294 `temp_costs->mem_cost'.
4296 2011-04-13 Jan Hubicka <jh@suse.cz>
4298 * ipa-inline.h: New file.
4299 * ipa-inline-analysis.c: New file. Broken out of ...
4300 * ipa-inline.c: ... this file; update toplevel comment;
4301 include ipa-inline.h
4302 (inline_summary): Move to ipa-inline.h
4303 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4304 ipa-inline-analysis.c.
4305 (cgraph_estimate_time_after_inlining): Rename to
4306 estiamte_time_after_inlining; move to ipa-inline-analysis.c
4307 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4308 to estimate_edge_growth.
4309 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4310 rename to estimate_size_after_inlining.
4311 (cgraph_mark_inline_edge): Update for new naming convention.
4312 (cgraph_check_inline_limits): Likewise.
4313 (cgraph_edge_badness): Likewise.
4314 (cgraph_decide_recursive_inlining): Likewise.
4315 (cgraph_decide_inlining_of_small_functions): Likewise.
4316 (cgraph_decide_inlining_incrementally): Likewise.
4317 (cgraph_estimate_growth): Rename to estimate_growth; move to
4318 ipa-inline-analysis.c.
4319 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4320 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4321 (compute_inline_parameters): Likewise.
4322 (compute_inline_parameters_for_current): Likewise.
4323 (pass_inline_parameters): Likewise.
4324 (inline_indirect_intraprocedural_analysis): Likewise.
4325 (analyze_function): Rename to inline_analyze_function; likewise.
4326 (add_new_function): Move to ipa-inline-analysis.c.
4327 (inline_generate_summary): Likewise.
4328 (inline_read_summary): Likewise.
4329 (inline_write_summary): Likewise.
4330 * Makefile.in (ipa-inline-analysis.c): New file.
4332 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4334 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4335 * configure: Regenerate.
4337 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4339 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4340 instead of tree_common.
4341 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4343 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4344 TS_TYPED rather than TS_COMMON.
4345 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4347 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
4350 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4351 r20 around calls of __tablejump_elpm__
4353 2011-04-13 Jakub Jelinek <jakub@redhat.com>
4356 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4358 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4360 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
4362 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4363 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4364 (cfi_vec): New typedef.
4365 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4366 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4367 (cie_cfi_vec): New static variable.
4368 (cie_cfi_head): Delete.
4369 (add_cfi): Accept a cfi_vec * as first argument. All callers and
4370 declaration changed. Use vector rather than list operations.
4371 (new_cfi): Don't initialize the dw_cfi_next field.
4372 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4373 rather than list operations.
4374 (lookup_cfa): Use vector rather than list operations.
4375 (output_cfis): New argument upto. Accept a cfi_vec rather than
4376 a dw_cfi_ref list head as argument. All callers changed.
4377 Iterate over the vector using upto as a maximum index.
4378 (output_all_cfis): New static function.
4379 (output_fde): Use vector rather than list operations. Use the
4380 new upto argument for output_cfis rather than manipulating a
4382 (dwarf2out_begin_prologue): Change initializations to match
4384 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4385 from the vector length rather than searching for the end of a list.
4386 Use output_all_cfis.
4387 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4389 2011-04-13 Nick Clifton <nickc@redhat.com>
4391 * config/rx/rx.md (movmemsi): Do not use this pattern when
4392 volatile pointers are involved.
4394 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4396 * config/i386/sse.md (pinsrbits): Remove.
4397 (sse2_packsswb): Merge with *avx_packsswb.
4398 (sse2_packssdw): Merge with *avx_packssdw.
4399 (sse2_packuswb): Merge with *avx_packuswb.
4400 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4401 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4402 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4403 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4404 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4405 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4406 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4407 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4408 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4409 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4410 (sse2_loadld): Merge with *avx_loadld.
4411 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4412 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4413 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4414 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4415 (vec_concatv2di): Merge with *vec_concatv2di_avx.
4417 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4419 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4421 * print-tree.c (print_node): Likewise.
4422 * tree-inline.c (copy_tree_r): Likewise.
4423 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4424 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4425 instead of TS_COMMON.
4426 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4427 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4428 (copy_node_stat): Zero TREE_CHAIN only if necessary.
4429 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4430 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4432 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4434 (TREE_CHAIN): Check for a TS_COMMON structure.
4435 (TREE_TYPE): Check for a TS_TYPED structure.
4437 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
4439 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4440 cgraph_get_create_node instead of cgraph_node.
4442 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4444 * c-parser.c (c_parser_initelt): Updated call to
4445 objc_build_message_expr.
4446 (c_parser_postfix_expression): Likewise.
4448 2011-04-12 Kai Tietz <ktietz@redhat.com>
4450 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4451 MASK_MS_BITFIELD_LAYOUT bit.
4453 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4455 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4456 assert it is always true.
4457 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4460 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4462 * c-parser.c (c_lex_one_token): Rewritten conditional used when
4463 compiling Objective-C to be more efficient.
4465 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
4467 * opts-common.c (decode_cmdline_options_to_array): Remove variable
4470 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4472 * recog.h, genoutput.c, optabs.c: Revert last patch.
4474 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4477 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4479 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4481 * recog.h (insn_operand_data): Add an "allows_mem" field.
4482 * genoutput.c (output_operand_data): Initialize it.
4483 * optabs.c (maybe_legitimize_operand_same_code): New function.
4484 (maybe_legitimize_operand): Use it when matching the original
4487 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4489 * genpreds.c (process_define_predicate): Move most processing
4490 to gensupport.c. Continue to validate the expression.
4491 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4492 (process_define_predicate): Move processing to gensupport.c.
4493 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4494 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4495 (compute_predicate_codes): Moved from genrecog.c. Add lineno
4497 (valid_predicate_name_p): New function, split out from old
4498 genpreds.c:process_define_predicate.
4499 (process_define_predicate): New function, combining code from
4500 old genpreds.c and genrecog.c functions.
4501 (process_rtx): Call it for DEFINE_PREDICATE and
4502 DEFINE_SPECIAL_PREDICATE.
4504 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4506 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4507 size of a '%A' memory reference.
4508 (T_DREG, T_QREG): New neon_builtin_type_bits.
4509 (arm_init_neon_builtins): Assert that the load and store operands
4510 are neon_struct_operands.
4511 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4512 (NEON_ARG_MEMORY): New builtin_arg.
4513 (neon_dereference_pointer): New function.
4514 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4515 Handle NEON_ARG_MEMORY.
4516 (arm_expand_neon_builtin): Update after above interface changes.
4517 Use NEON_ARG_MEMORY for loads and stores.
4518 * config/arm/predicates.md (neon_struct_operand): New predicate.
4519 * config/arm/iterators.md (V_two_elem): Tweak formatting.
4520 (V_three_elem): Use BLKmode for accesses that have no associated mode.
4521 (V_four_elem): Tweak formatting.
4522 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4523 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4524 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4525 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4526 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4527 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4528 (neon_vst4<mode>): Replace pointer operand with a memory operand.
4529 Use %A in the output template.
4530 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4531 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4532 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4533 the width of the memory access. Remove post-increment.
4534 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4536 2011-04-12 Nick Clifton <nickc@redhat.com>
4538 * config/v850/v850.c (expand_prologue): Do not use the CALLT
4539 instruction for interrupt handlers if the target is the basic V850
4541 (expand_epilogue): Likewise.
4543 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4545 PR rtl-optimization/48549
4546 * combine.c (propagate_for_debug): Also stop after BB_END of
4547 this_basic_block. Process LAST and just stop processing after it.
4548 (combine_instructions): If last_combined_insn has been deleted,
4549 set last_combined_insn to its PREV_INSN.
4551 2011-04-12 Richard Guenther <rguenther@suse.de>
4553 PR tree-optimization/46076
4554 * gimple.h (struct gimple_statement_call): Add fntype field.
4555 (gimple_call_fntype): Adjust.
4556 (gimple_call_set_fntype): New function.
4557 * gimple.c (gimple_build_call_1): Set the call function type.
4558 * gimplify.c (gimplify_call_expr): Preserve the function
4559 type the frontend used for the call.
4560 (gimplify_modify_expr): Likewise.
4561 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4563 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4565 * tree-ssa.c (useless_type_conversion_p): Function pointer
4566 conversions are useless.
4568 2011-04-12 Martin Jambor <mjambor@suse.cz>
4570 * cgraph.h (cgraph_node): Remove function declaration.
4571 (cgraph_create_node): Declare.
4572 (cgraph_get_create_node): Likewise.
4573 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4574 Updated all callers.
4575 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4576 the decl does not already exist. Call cgraph_get_create_node instead
4578 (cgraph_get_create_node): New function.
4579 (cgraph_same_body_alias): Update comment.
4580 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4581 assert it does not return NULL.
4582 (cgraph_update_edges_for_call_stmt): Likewise.
4583 (cgraph_clone_edge): Likewise.
4584 (cgraph_create_virtual_clone): Likewise.
4585 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4586 instead of cgraph_node.
4587 (cgraph_add_new_function): Call cgraph_create_node or
4588 cgraph_get_create_node instead of cgraph_node.
4589 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4590 instead of cgraph_node.
4591 (record_eh_tables): Likewise.
4592 (mark_address): Likewise.
4593 (mark_load): Likewise.
4594 (build_cgraph_edges): Call cgraph_get_create_node instead
4596 (rebuild_cgraph_edges): Likewise.
4597 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4598 instead of cgraph_node.
4599 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4601 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4602 cgraph_create_node instead of cgraph_node.
4603 * c-decl.c (finish_function): Call cgraph_get_create_node instead
4605 * lto-cgraph.c (input_node): Likewise.
4606 * lto-streamer-in.c (input_function): Likewise.
4607 * varasm.c (mark_decl_referenced): Likewise.
4608 (assemble_alias): Likewise.
4610 2011-04-12 Martin Jambor <mjambor@suse.cz>
4612 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4613 instead of cgraph_node and assert it does not return NULL.
4614 * lto-streamer-in.c (lto_read_body): Likewise.
4615 * omp-low.c (new_omp_context): Likewise.
4616 (create_task_copyfn): Likewise.
4617 * tree-emutls.c (lower_emutls_function_body): Likewise.
4618 * matrix-reorg.c (transform_allocation_sites): Likewise.
4620 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4623 * c-typeck.c (build_asm_expr): Error out on attempts to use
4624 void type outputs or inputs for constraints that allow reg or
4627 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
4628 Richard Earnshaw <rearnsha@arm.com>
4631 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4632 to use sign-magnitude offsets. Reject unsupported unaligned
4633 cases. Add detailed description in comments.
4634 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4635 condition from TARGET_32BIT to TARGET_ARM.
4637 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
4639 * tree.h (struct typed_tree): New.
4640 (struct tree_common): Include it instead of tree_base.
4641 (TREE_TYPE): Update for new location of type field.
4642 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4643 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4644 (union tree_node): Add typed field.
4645 * treestruct.def (TS_TYPED): New.
4646 * lto-streamer.c (check_handled_ts_structures): Handle it.
4647 * tree.c (MARK_TS_TYPED): New macro.
4648 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4650 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
4652 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4653 (force_nonfallthru): Do not alter the loop nest if no basic block
4656 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4658 * config/i386/sse.md (VI): New mode iterator.
4660 (AVX256MODEI): Ditto.
4661 (AVXMODEF4P): Ditto.
4662 (avxvecpsmode): Ditto.
4663 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
4664 (sse2_andnot<mode>3): New expander.
4665 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4666 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
4667 (<any_logic:code><mode>3): Use VI mode iterator.
4668 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4669 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
4670 (*andnottf3): Handle AVX three-operand constraints.
4671 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4673 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4674 Robert Millan <rmh@gnu.org>
4676 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4677 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4678 GNU_USER_DYNAMIC_LINKER64): Define.
4679 (REG_NAME): Don't undefine.
4680 (MD_UNWIND_SUPPORT): Undefine.
4681 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4682 (REG_NAME): Don't undefine.
4683 (MD_UNWIND_SUPPORT): Undefine.
4684 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4686 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4688 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4689 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4691 2011-04-11 Xinliang David Li <davidxl@google.com>
4693 * value-profile.c (check_ic_target): New function.
4694 (gimple_ic_transform): Sanity check indirect call target.
4695 * gimple-low.c (gimple_check_call_args): Interface change.
4696 (gimple_check_call_matching_types): New function.
4697 * tree-inline.c (tree_can_inline_p): Call new function.
4699 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
4701 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4702 tree-pretty-print.h & realmpfr.h.
4704 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
4707 * ira.c (setup_pressure_classes): Fix typo in loop condition.
4708 (setup_allocno_and_important_classes): Ditto.
4710 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4712 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4713 GNU_USER_DYNAMIC_LINKER.
4714 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4715 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4716 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4717 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4718 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4719 GNU_USER_TARGET_OS_CPP_BUILTINS.
4720 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4721 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4722 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4723 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4724 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4725 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4726 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4727 GNU_USER_TARGET_OS_CPP_BUILTINS.
4728 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4729 GNU_USER_DYNAMIC_LINKER.
4730 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4731 GNU_USER_TARGET_OS_CPP_BUILTINS.
4732 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4733 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4734 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4735 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4736 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4737 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4738 GNU_USER_DYNAMIC_LINKER64): Remove.
4739 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4740 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4741 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4742 GNU_USER_DYNAMIC_LINKER.
4743 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4744 GNU_USER_TARGET_OS_CPP_BUILTINS.
4745 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4746 GNU_USER_TARGET_OS_CPP_BUILTINS.
4747 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4748 to GNU_USER_TARGET_OS_CPP_BUILTINS.
4749 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4750 GNU_USER_TARGET_OS_CPP_BUILTINS.
4751 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4752 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4753 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4754 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4755 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4756 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4757 GNU_USER_DYNAMIC_LINKER.
4758 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4759 GNU_USER_TARGET_OS_CPP_BUILTINS.
4760 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4761 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4762 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4763 GNU_USER_DYNAMIC_LINKER.
4764 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4765 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4766 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4767 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4768 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4769 GNU_USER_DYNAMIC_LINKER.
4770 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4771 GNU_USER_DYNAMIC_LINKERN32.
4772 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4773 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
4774 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
4775 GNU_USER_DYNAMIC_LINKER32.
4776 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4777 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4778 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4779 GNU_USER_DYNAMIC_LINKER.
4780 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4781 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4782 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4783 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4784 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4785 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4786 GNU_USER_DYNAMIC_LINKER32.
4787 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4788 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4789 GNU_USER_DYNAMIC_LINKER.
4790 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4791 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4792 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4793 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
4794 GNU_USER_DYNAMIC_LINKER64.
4795 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4796 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4797 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4798 GNU_USER_DYNAMIC_LINKER.
4799 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4800 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4801 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4802 GNU_USER_DYNAMIC_LINKER.
4803 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4804 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4805 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4806 GNU_USER_DYNAMIC_LINKER32.
4807 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4808 GNU_USER_DYNAMIC_LINKER64.
4809 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4810 GNU_USER_DYNAMIC_LINKER64.
4811 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4812 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4813 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4814 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4815 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4817 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4819 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
4820 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4821 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4822 GNU_USER_DYNAMIC_LINKER.
4823 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4824 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
4825 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4826 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4827 GNU_USER_DYNAMIC_LINKER64.
4828 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4829 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4830 GNU_USER_LINK_EMULATION.
4831 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4832 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4833 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4834 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4835 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4836 CPP_SPEC, CC1_SPEC): Remove.
4837 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4838 (GNU_USER_DYNAMIC_LINKER): Define.
4839 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4840 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4841 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4842 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4843 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4844 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4845 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4846 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4847 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4848 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4849 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4850 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4851 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4852 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4853 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4854 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4855 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4856 GNU_USER_DYNAMIC_LINKER.
4857 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4858 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4859 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4860 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4861 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4862 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4863 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4864 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4865 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4866 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4868 2011-04-11 Kai Tietz <ktietz@redhat.com>
4872 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4873 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4875 (ix86_is_msabi_thiscall): Removed.
4876 (ix86_is_type_thiscall): Likewise.
4877 (ix86_get_callcvt): New function.
4878 (ix86_comp_type_attributes): Simplify check.
4879 (ix86_function_regparm): Use ix86_get_callcvt for calling
4880 convention attribute checks.
4881 (ix86_return_pops_args): Likewise.
4882 (ix86_static_chain): Likewise.
4883 (x86_this_parameter): Likewise.
4884 (x86_output_mi_thunk): Likewise.
4885 (ix86_function_type_abi): Optimize check for types without attributes.
4886 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4887 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4888 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4890 (IX86_BASE_CALLCVT): Helper macro.
4891 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4892 Use ix86_get_callcvt for calling convention attribute checks and avoid
4893 symbol-decoration for stdcall in TARGET_RTD case.
4894 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4896 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4899 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4901 * config/i386/sse.md (VI_128): New mode iterator.
4902 (VI12_128): Rename from SSEMODE12.
4903 (VI14_128): Rename from SSEMODE14.
4904 (VI124_128): New mode iterator.
4905 (VI24_128): Rename from SSEMODE248.
4906 (VI248_128): Rename from SSEMODE248.
4907 (SSEMODE124C8): Remove.
4908 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4909 (*sse2_<plusminus_insn><mode>3): Merge with
4910 *avx_<plusminus_insn><mode>3.
4911 (*mulv8hi3): Merge with *avx_mulv8hi3.
4912 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4913 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4914 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4915 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4916 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4917 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4918 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4919 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4920 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4921 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4922 (*<smaxmin:code>v8hi3): Ditto.
4923 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4924 (*<smaxmin:code>v16qi3): Ditto.
4925 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4926 (*sse2_eq<mode>3): Ditto.
4927 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4928 (*sse2_gt<mode>3): Ditto.
4929 (vcondv2di): Split out of vcond<mode>.
4930 (vconduv2di): Split out of vcondu<mode>.
4932 2011-04-11 Richard Guenther <rguenther@suse.de>
4934 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4935 before calling tree_low_cst.
4937 2011-04-11 Richard Guenther <rguenther@suse.de>
4939 * stor-layout.c (layout_type): Compute all array index size operations
4940 in the original type.
4941 (initialize_sizetypes): Add comment.
4942 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4944 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4946 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4948 2011-04-11 Martin Jambor <mjambor@suse.cz>
4950 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4951 of cgraph_node, handle NULL return value.
4952 (cgraph_global_info): Likewise.
4953 (cgraph_rtl_info): Likewise.
4954 * tree-inline.c (estimate_num_insns): Likewise.
4955 * gimplify.c (unshare_body): Likewise.
4956 (unvisit_body): Likewise.
4957 (gimplify_body): Likewise.
4958 * predict.c (optimize_function_for_size_p): Likewise.
4959 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4960 (call_may_clobber_ref_p_1): Likewise.
4961 * varasm.c (function_section_1): Likewise.
4962 (assemble_start_function): Likewise.
4964 2011-04-11 Martin Jambor <mjambor@suse.cz>
4966 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4968 * final.c (rest_of_clean_state): Likewise.
4969 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4970 * passes.c (pass_init_dump_file): Likewise.
4971 (execute_all_ipa_transforms): Likewise.
4972 (function_called_by_processed_nodes_p): Likewise.
4973 * predict.c (maybe_hot_frequency_p): Likewise.
4974 (probably_never_executed_bb_p): Likewise.
4975 (compute_function_frequency): Likewise.
4976 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4977 (unnest_nesting_tree_1): Likewise.
4978 (lower_nested_functions): Likewise.
4979 * tree-optimize.c (execute_fixup_cfg): Likewise.
4980 (tree_rest_of_compilation): Likewise.
4981 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4982 * tree-sra.c (ipa_early_sra): Likewise.
4983 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4984 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4985 * ipa.c (record_cdtor_fn): Likewise.
4986 * ipa-inline.c (cgraph_early_inlining): Likewise.
4987 (compute_inline_parameters_for_current): Likewise.
4988 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4989 * ipa-pure-const.c (local_pure_const): Likewise.
4990 * ipa-split.c (split_function): Likewise.
4991 (execute_split_functions): Likewise.
4992 * cgraphbuild.c (build_cgraph_edges): Likewise.
4993 (rebuild_cgraph_edges): Likewise.
4994 (cgraph_rebuild_references): Likewise.
4995 (remove_cgraph_callee_edges): Likewise.
4996 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4997 (verify_cgraph_node): Likewise.
4998 (cgraph_analyze_functions): Likewise.
4999 (cgraph_preserve_function_body_p): Likewise.
5000 (save_inline_function_body): Likewise.
5001 (save_inline_function_body): Likewise.
5002 * tree-inline.c (copy_bb): Likewise.
5003 (optimize_inline_calls): Likewise.
5005 2011-04-11 Martin Jambor <mjambor@suse.cz>
5007 PR tree-optimization/48195
5008 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5009 ipa_check_create_edge_args.
5010 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5011 ipa_check_create_edge_args.
5012 * ipa-inline.c (inline_generate_summary): Do not call
5013 ipa_check_create_node_params and ipa_check_create_edge_args.
5014 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5015 ipa_check_create_edge_args.
5017 2011-04-09 Anatoly Sokolov <aesok@post.ru>
5019 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5021 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5022 * function.c (record_hard_reg_sets): Likewise.
5023 * ira.c (compute_regs_asm_clobbered): Likewise.
5024 * sched-deps.c (sched_analyze_1): Likewise.
5025 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5027 2011-04-09 Xinliang David Li <davidxl@google.com>
5029 PR tree-optimization/PR48484
5030 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5031 has_valid_pred lazily
5033 2011-04-09 Duncan Sands <baldrick@free.fr>
5035 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5037 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
5039 * combine.c (combine_validate_cost): Adjust comments. Set registered
5040 cost of I0 to zero at the end, if any.
5042 2011-04-08 Xinliang David Li <davidxl@google.com>
5044 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5045 to insane profile data.
5047 2011-04-08 Xinliang David Li <davidxl@google.com>
5049 * ipa-cp.c (ipcp_update_profiling): Correct
5050 negative scale factor due to insane profile data.
5052 2011-04-08 Xinliang David Li <davidxl@google.com>
5054 * final.c (dump_basic_block_info): New function.
5055 (final): Dump basic block.
5056 (final_scan_insn): Remove old dump.
5058 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
5061 * config.gcc (i386-*-freebsd): Disable unwind table generation for
5064 2011-04-08 Michael Matz <matz@suse.de>
5067 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5069 (rebuild_jump_labels): Call rebuild_jump_labels_1.
5070 * rtl.h (rebuild_jump_labels_chain): Declare.
5071 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5072 insns inserted on edges.
5074 2011-04-08 Joseph Myers <joseph@codesourcery.com>
5076 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5077 * config/arm/arm-arches.def: New.
5078 * config/arm/arm-opts.h: New.
5079 * config/arm/genopt.sh: New.
5080 * config/arm/arm-tables.opt: New (generated).
5081 * config/arm/arm.c (arm_handle_option, arm_target_help,
5082 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5083 (all_architectures): Get most table contents from arm-arches.def.
5084 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5085 arm_selected_tune here.
5086 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5087 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5088 (march=, mcpu=, mtune=): Use Enum and Var.
5089 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5090 (arm.o): Update dependencies.
5092 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
5094 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5096 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5097 (write_typed_alloc_defns): Likewise.
5098 (main): Calls write_typed_alloc_defns with output_header.
5100 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
5103 * ira-color.c (setup_profitable_hard_regs): Add comments.
5104 Don't take prohibited hard regs into account.
5105 (setup_conflict_profitable_regs): Rename to
5106 get_conflict_profitable_regs.
5107 (check_hard_reg_p): Check prohibited hard regs.
5109 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5111 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5112 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5113 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5115 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5118 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5119 move from floating point to shift amount register.
5120 (emit_move_sequence): Remove secondary reload support for floating
5121 point to shift amount amount register copies.
5122 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5123 amount register copies.
5124 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5125 register, return false if mode isn't a scalar integer mode.
5126 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5128 2011-04-08 Richard Guenther <rguenther@suse.de>
5130 * gimple.c (gimple_call_flags): Remove kludge.
5132 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5134 * sel-sched.c (sel_region_init): Move call to
5135 sel_setup_region_sched_flags after setup_current_loop_nest.
5137 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
5139 PR rtl-optimization/48272
5140 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5141 init_insn_reg_pressure_info. Adjust a caller.
5142 * sched-int.h (init_insn_reg_pressure_info): Declare.
5143 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5144 when sched-pressure is enabled.
5146 2011-04-08 Richard Guenther <rguenther@suse.de>
5148 * gimple.c (gimple_set_modified): Do not queue calls to
5149 MODIFIED_NORETURN_CALLS here ...
5150 * tree-ssa-operands.c (update_stmt_operands): ... but here.
5152 2011-04-08 Richard Guenther <rguenther@suse.de>
5155 * toplev.c (lang_dependent_init): Do not open asm_out_file
5156 in WPA mode, nor perform debug machinery initialization.
5157 (finalize): Do not unlink asm_out_file in WPA mode.
5159 2011-04-08 Richard Guenther <rguenther@suse.de>
5161 * gimple.h (gimple_call_fntype): New function.
5162 (gimple_call_return_type): Use it.
5163 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5164 * gimple-low.c (gimple_check_call_args): Likewise.
5165 * gimple.c (gimple_call_flags): Likewise.
5166 (gimple_call_arg_flags): Likewise.
5167 (gimple_call_return_flags): Likewise.
5168 * tree-cfg.c (verify_gimple_call): Likewise.
5169 (do_warn_unused_result): Likewise.
5170 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5171 * value-prof.c (gimple_ic_transform): Fix fndecl check.
5173 2011-04-08 Dmitry Melnik <dm@ispras.ru>
5175 PR rtl-optimization/48235
5176 * sel-sched.c (code_motion_process_successors): Recompute the last
5177 insn in basic block if control flow changed.
5178 (code_motion_path_driver): Ditto. Recompute the first insn as well.
5179 Update condition for ilist_remove.
5181 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5183 PR rtl-optimization/48302
5184 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5185 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
5186 it to record added preheader blocks.
5187 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
5188 on to sel_add_loop_preheaders.
5189 (sel_region_init): Move call to setup_current_loop_nest after
5192 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5195 * cfgloop.h (loop_has_exit_edges): New helper.
5196 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5198 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5199 that have no exit edges.
5201 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5203 PR rtl-optimization/48442
5204 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
5205 all callers. Adjust assert.
5207 2011-04-08 Jakub Jelinek <jakub@redhat.com>
5209 PR tree-optimization/48377
5210 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5211 is_packed to true even for types with smaller TYPE_ALIGN than
5214 2011-04-08 Richard Guenther <rguenther@suse.de>
5217 * doc/tm.texi: Re-generate.
5219 2011-04-08 Wei Guozhi <carrot@google.com>
5222 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5223 * config/arm/arm.c (arm_attr_length_push_multi): New function.
5224 * config/arm/arm.md (*push_multi): Change the length computation to
5227 2011-04-08 Anatoly Sokolov <aesok@post.ru>
5229 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5230 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5231 * doc/tm.texi: Regenerate.
5232 * system.h (ASM_OUTPUT_BSS): Poison.
5233 * varasm.c (asm_output_bss): Remove function.
5234 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5236 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5237 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5238 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5239 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5241 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5243 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5245 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5247 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5249 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5252 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5254 * config/m68k/m68k.c (m68k_handle_option): Don't handle
5255 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5256 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5258 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5259 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5260 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5261 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5262 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5263 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5264 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5265 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5266 options. Don't map other m68k options manually. Don't handle
5267 old-style options as canonical.
5268 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5269 * doc/install.texi (m68k-*-*): Document binutils version requirement.
5271 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
5273 * basic-block.h (force_nonfallthru): Move to...
5274 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5275 (force_nonfallthru): ...here.
5276 * cfghooks.c (force_nonfallthru): New function.
5277 * cfgrtl.c (force_nonfallthru): Rename into...
5278 (rtl_force_nonfallthru): ...this.
5279 (commit_one_edge_insertion): Do not set AUX field.
5280 (commit_edge_insertions): Do not discover new basic blocks.
5281 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5282 (cfg_layout_rtl_cfg_hooks): Likewise.
5283 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5284 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
5285 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5287 2011-04-07 Anatoly Sokolov <aesok@post.ru>
5289 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5292 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
5294 * config/i386/sse.md: Update copyright year.
5295 (avxcvtvecmode): Remove.
5296 (sse_movhlps): Merge with *avx_movhlps.
5297 (sse_movlhps): Merge with *avx_movlhps.
5298 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5299 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5300 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5301 (sse_loadhps): Merge with *avx_loadhps.
5302 (sse_storelps): Merge with *avx_storelps.
5303 (sse_loadlps): Merge with *avx_loadlps.
5304 (sse_movss): Merge with *avx_movss.
5305 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5306 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5307 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5308 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5309 (vec_set<mode>_0): Ditto.
5310 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5311 (sse4_1_insertps): Merge with *avx_insertps.
5312 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5313 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5314 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5315 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5316 (sse2_storehpd): Merge with *avx_storehpd.
5317 (sse2_loadhpd): Merge with *avx_loadhpd.
5318 (sse2_loadlpd): Merge with *avx_loadlpd.
5319 (sse2_movsd): Merge with *avx_movsd.
5320 (*vec_concatv2df): Merge with *vec_concatv2df.
5322 2011-04-07 Jakub Jelinek <jakub@redhat.com>
5325 * combine.c (combine_instructions): Add last_combined_insn,
5326 update it if insn is after it, pass it to all try_combine calls.
5327 (try_combine): Add last_combined_insn parameter, pass it instead of
5328 i3 to propagate_for_debug.
5330 2011-04-07 Nick Clifton <nickc@redhat.com>
5332 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5333 to handle MDR <-> data register transfers.
5334 (movhi_internal): Likewise.
5336 2011-04-07 Alan Modra <amodra@gmail.com>
5338 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5339 previous stack info.
5341 2011-04-07 Tom de Vries <tom@codesourcery.com>
5344 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
5345 flow_find_cross_jump. Swap variables to implement backward replacement.
5346 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5348 2011-04-07 Tom de Vries <tom@codesourcery.com>
5351 * cfgcleanup.c (walk_to_nondebug_insn): New function.
5352 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
5354 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5355 src1 or src2. Redirect edges to the last basic block. Update
5356 frequency and count on multiple basic blocks in case of fallthru.
5358 2011-04-07 Tom de Vries <tom@codesourcery.com>
5361 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5363 (old_insns_match_p): Change return type. Replace return false/true
5364 with return dir_none/dir_both. Use can_replace_by.
5365 (flow_find_cross_jump): Add dir_p parameter. Init replacement
5366 direction from dir_p. Register replacement direction in dir, last_dir
5367 and afterlast_dir. Handle new return type of old_insns_match_p using
5368 merge_dir. Return replacement direction in dir_p.
5369 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5370 return type of old_insns_match_p.
5371 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5372 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5373 flow_find_cross_jump.
5374 * basic-block.h (enum replace_direction): New type.
5375 (flow_find_cross_jump): Add parameter to declaration.
5377 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5379 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5380 (AVXMODEDCVTPS2DQ): Ditto.
5381 (VEC_FLOAT_MODE): Ditto.
5382 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
5383 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5384 (<any_logic:code><mode>3): Use VF mode iterator.
5385 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5386 Use VF mode iterator.
5387 (copysign<mode>3): Use VF mode iterator.
5388 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
5389 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5390 (*<any_logic:code><MODEF:mode>3): Merge with
5391 *avx_<any_logic:code><MODEF:mode>3.
5392 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5393 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5394 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5395 (avx_cvtdq2ps<avxmodesuffix>): Remove.
5396 (sse2_cvtdq2ps): Use %v modifier.
5397 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5398 (avx_cvtps2dq<avxmodesuffix>): Remove.
5399 (sse2_cvtps2dq): Use %v modifier.
5400 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5401 (avx_cvttps2dq<avxmodesuffix>): Remove.
5402 (sse2_cvttps2dq): Use %v modifier.
5403 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5404 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5405 (sse2_cvtsd2siq): Fix insn template.
5406 (sse2_cvtsd2siq_2): Ditto.
5407 (sse2_cvttsd2siq): Ditto.
5408 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5409 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5411 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5413 * gcov-io.c: Use GCC Runtime Library Exception.
5415 2011-04-06 Jakub Jelinek <jakub@redhat.com>
5418 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5419 as base_reg whatever register reg has been eliminated to, instead
5420 of hardcoding STACK_POINTER_REGNUM.
5422 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5424 * doc/tm.texi.in: Document C target hooks as separate from general
5426 * doc/tm.texi: Regenerate.
5427 * genhooks.c (struct hook_desc): Add docname field.
5428 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
5430 (hook_array): Include c-target.def.
5431 (emit_documentation): Use docname field in output.
5432 (emit_init_macros): Take docname argument. Only emit definitions
5433 for hooks matching docname.
5434 (main): Expect additional arguments in all cases. Pass argument
5435 to emit_init_macros.
5436 * target.def: Move initial macro definitions and comments to
5437 target-hooks-macros.h.
5438 (gcc_targetcm): Move to c-family/c-target.def.
5439 * target.h (targetcm): Move declaration to c-family/c-target.h.
5440 * targhooks.c (default_handle_c_option): Move to
5442 * targhooks.h (default_handle_c_option): Move declaration to
5443 c-family/c-common.h.
5444 * target-hooks-macros.h: New file.
5445 * config.gcc (target_has_targetcm): Define and use to add to
5446 c_target_objs and cxx_target_objs.
5447 * config/default-c.c: New file.
5448 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5449 of target.h and target-def.h.
5450 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5451 (darwin_objc_construct_string, darwin_cfstring_ref_p,
5452 darwin_check_cfstring_format_arg): Make static.
5453 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5454 TARGET_STRING_OBJECT_REF_TYPE_P,
5455 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5456 * config/darwin-protos.h (darwin_objc_construct_string,
5457 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5459 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5460 TARGET_STRING_OBJECT_REF_TYPE_P,
5461 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5462 * config/t-darwin (darwin-c.o): Update dependencies.
5463 * system.h (TARGET_HAS_TARGETCM): Poison.
5464 * Makefile.in (TARGET_H): Update.
5465 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5466 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5467 (default-c.o): New target.
5468 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5469 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5470 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
5472 (build/genhooks.o): Update dependencies.
5474 2011-04-06 Richard Guenther <rguenther@suse.de>
5476 * ipa-inline.c (enum inlining_mode): Remove.
5477 (cgraph_flatten): Use some other token.
5478 (cgraph_edge_early_inlinable_p): New function, split out from ...
5479 (cgraph_perform_always_inlining): New function, split out from ...
5480 (cgraph_decide_inlining_incrementally): ... here.
5481 (cgraph_mark_inline_edge): Adjust.
5482 (cgraph_early_inlining): Re-structure.
5483 (pass_early_inline): Require SSA form.
5485 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
5486 Julian Brown <julian@codesourcery.com>
5487 Mark Shinwell <shinwell@codesourcery.com>
5489 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5490 LO_REGS only for Thumb-1.
5491 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5492 be used in short instructions when optimising for size on Thumb-2.
5494 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5496 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5497 associated with user returns to be preserved.
5499 2011-04-06 Tristan Gingold <gingold@adacore.com>
5501 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5502 symbol_queue_size, DBXOUT_DECR_NESTING,
5503 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5504 if XCOFF_DEBUGGING_INFO.
5506 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5508 * config/i386/i386.md (attribute isa): New.
5509 (attribute enabled): New.
5510 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5511 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5512 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5513 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5514 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5515 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5516 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5517 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5519 * config/i386/sse.md (VF): New mode iterator.
5523 (SSEMODEF4): Remove.
5524 (attribute sse): Handle V8SF and V4DF modes.
5525 (<absneg:code><mode>2): Use VF mode iterator.
5526 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
5528 (<plusminus_insn><mode>3): Use VF mode iterator.
5529 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5530 Use VF mode iterator.
5531 (<sse>_vm<plusminus_insn><mode>3): Merge with
5532 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
5533 (mul<mode>3): Use VF mode iterator.
5534 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
5535 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
5537 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5538 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5539 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
5540 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
5542 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5543 Use VF1 mode iterator.
5544 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5545 (sqrt<VF2:mode>2): New expander.
5546 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5547 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5548 and sqrtv2df2. Use VF mode iterator.
5549 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
5551 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5552 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5553 Use VF1 mode iterator.
5554 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5555 (<smaxmin:code><mode>3): Use VF mode iterator.
5556 (*<smaxmin:code><mode>3_finite): Merge with
5557 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
5558 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5559 (<sse>_vm<smaxmin:code><mode>2): Merge with
5560 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
5561 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
5563 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
5565 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5566 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5567 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5568 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5569 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
5571 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5572 Use VF_128 mode iterator.
5573 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
5575 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
5576 VF_128 mode iterator.
5577 (vcond<mode>): Use VF mode iterator.
5578 * config/i386/predicates.md (sse_comparison_operator): Merge with
5579 avx_comparison_float_operator. Do not declare as special_predicate.
5580 * config/i386/i386.c (struct builtin_description): Update for renamed
5582 (ix86_expand_args_builtin): Ditto.
5583 (ix86_expand_sse_compare_mask): Ditto.
5585 2011-04-06 Richard Guenther <rguenther@suse.de>
5587 * tree-inline.c (estimate_num_insns): For calls simply account
5588 for all passed arguments and a used return value.
5590 2011-04-06 Richard Guenther <rguenther@suse.de>
5592 PR tree-optimization/47663
5593 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5594 call_stmt_time fields.
5595 (cgraph_edge_inlinable_p): Declare.
5596 (cgraph_edge_recursive_p): New inline function.
5597 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5598 (cgraph_clone_edge): Copy it.
5599 * ipa-inline.c (cgraph_estimate_edge_time): New function.
5600 Account for call stmt time.
5601 (cgraph_estimate_time_after_inlining): Take edge argument.
5602 (cgraph_estimate_edge_growth): Account call stmt size.
5603 (cgraph_estimate_size_after_inlining): Take edge argument.
5604 (cgraph_mark_inline_edge): Adjust.
5605 (cgraph_check_inline_limits): Likewise.
5606 (cgraph_recursive_inlining_p): Remove.
5607 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5608 (cgraph_decide_recursive_inlining): Take edge argument and
5610 (cgraph_decide_inlining_of_small_functions): Do not avoid
5611 diags for recursive inlining here.
5612 (cgraph_flatten): Adjust.
5613 (cgraph_decide_inlining_incrementally): Likewise.
5614 (estimate_function_body_sizes): Remove call cost handling.
5615 (compute_inline_parameters): Initialize caller edge call costs.
5616 (cgraph_estimate_edge_growth): New function.
5617 (cgraph_estimate_growth): Use it.
5618 (cgraph_edge_badness): Likewise.
5619 (cgraph_check_inline_limits): Take an edge argument.
5620 (cgraph_decide_inlining_of_small_functions): Adjust.
5621 (cgraph_decide_inlining): Likewise.
5622 * tree-inline.c (estimate_num_insns): Only account for call
5623 return value if it is used.
5624 (expand_call_inline): Avoid diagnostics on recursive inline
5626 * lto-cgraph.c (lto_output_edge): Output edge call costs.
5627 (input_edge): Input edge call costs.
5629 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5631 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5633 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5635 * doc/invoke.texi (Spec Files): Fix typo.
5637 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5639 * profile.c (branch_prob): Move declaration of local variable. Remove
5640 obsolete ??? comment. Expand the location explicitly instead of using
5641 the LOCATION_FILE and LOCATION_LINE macros.
5643 2011-04-06 Wei Guozhi <carrot@google.com>
5646 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5647 (arm_cond_branch): Likewise.
5648 (arm_cond_branch_reversed): Likewise.
5649 (arm_jump): Likewise.
5650 (push_multi): Likewise.
5651 * config/arm/constraints.md (Py): New constraint.
5653 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5656 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5658 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5659 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5660 #ifdef DBX_DEBUGGING_INFO.
5662 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
5665 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5666 if old and new states differ.
5668 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5670 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5671 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5672 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5673 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5674 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5676 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5677 ColdFire options to -mcpu= options.
5679 2011-04-05 Jeff Law <law@redhat.com>
5681 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5682 check if BB is a successor of LOOP->header and return
5683 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5685 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5687 * cprop.c (struct reg_use): Remove.
5688 (reg_use_table): Make an array of RTX.
5689 (find_used_regs, constprop_register, local_cprop_pass,
5690 bypass_block): Simplify users of reg_use_table.
5691 (cprop_insn): Likewise. Iterate if copy propagation succeeded
5692 on one of the uses found by find_used_regs.
5694 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5697 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5700 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5702 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5704 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5706 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5709 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5711 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5713 * combine.c: Include obstack.h.
5714 (struct insn_link): Define.
5715 (uid_log_links): Adjust type.
5716 (FOR_EACH_LOG_LINK): New macro.
5717 (insn_link_obstack): Declare.
5718 (alloc_insn_link): Define.
5719 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
5720 type of link variables.
5721 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5722 (try_combine, record_promoted_values, distribute_notes): Likewise.
5723 (distribute_links): Likewise. Tweak prototype.
5724 (clear_log_links): Delete.
5725 (adjust_for_new_dest): Call alloc_insn_link.
5726 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5728 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5730 * gcse.c (modify_mem_list): Convert to an array of VECs.
5731 (canon_modify_mem_list, compute_transp): Tweak formatting.
5732 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
5733 (load_killed_in_block_p): Likewise.
5734 (record_last_mem_set_info): Likewise.
5735 (clear_modify_mem_tables): Likewise.
5737 2011-04-05 Tom de Vries <tom@codesourcery.com>
5740 * function.c (emit_use_return_register_into_block): Only define if
5743 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
5745 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5747 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5749 * config/rx/rx-opts.h: New.
5750 * config/rx/rx.c (rx_cpu_type): Remove.
5751 (rx_handle_option): Don't assert that global structures are in
5752 use. Access variables via opts pointer. Defer most handling of
5753 OPT_mint_register_. Use error_at.
5754 (rx_option_override): Handle deferred OPT_mint_register_ here.
5755 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5756 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5757 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5758 (rx_cpu_types): New Enum and EnumValue entries.
5759 (mint-register=): Use Defer and use Var accordingly.
5761 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5763 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5764 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5765 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5767 (debug_free_queue, debug_nesting, symbol_queue_index):
5769 * dbxout.c: ...to here. Make static.
5771 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5773 * gcse.c (modify_pair): Define. Define a VEC of it.
5774 (canon_modify_mem_list): Convert to an array of VECs.
5775 (free_insn_expr_list_list): Delete.
5776 (clear_modify_mem_tables): Call VEC_free instead.
5777 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5778 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5779 (canon_list_insert, compute_transp): Likewise.
5781 2011-04-05 Tom de Vries <tom@codesourcery.com>
5784 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5787 2011-04-05 Tom de Vries <tom@codesourcery.com>
5790 * function.c (emit_use_return_register_into_block): New function.
5791 (thread_prologue_and_epilogue_insns): Use
5792 emit_use_return_register_into_block.
5794 2011-04-05 Tom de Vries <tom@codesourcery.com>
5797 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5800 2011-04-05 Tom de Vries <tom@codesourcery.com>
5802 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5804 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
5806 * config/arm/arm.md (define_constants for unspec): Replace with
5808 (define_constants for unspecv): Replace with define_c_enum.
5809 * config/arm/neon.md (define_constants for unspec): Replace with
5812 2011-04-04 Richard Henderson <rth@redhat.com>
5815 * dwarf2out.c (output_line_info): Always emit line info from
5816 at least one section.
5817 (dwarf2out_init): Create text_section_line_info here ...
5818 (set_cur_line_info_table): ... not here.
5820 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
5823 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5826 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5828 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
5830 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5831 (expr_equiv_p): Remove.
5832 (insert_set_in_table): Look at <dest, src> pair instead of expr.
5833 (hash_scan_set): Update call to insert_set_in_table.
5834 (dump_hash_table): Dump <dest, src> pair.
5835 (lookup_set): Simplify. Lookup <dest, src> pair.
5836 (compute_transp): Remove, fold heavily simplified code into...
5837 (compute_local_properties): ...here. Expect COMP and TRANSP
5839 (find_avail_set): Take set directly from struct expr.
5840 (find_bypass-set): Likewise.
5841 (bypass_block): Likewise.
5842 (cprop_insn): Likewise. Remove redundant INSN_P test.
5844 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5845 checks on form of COND from find_implicit_sets to here.
5846 (find_implicit_sets): Cleanup control flow. Split critical edges
5847 if it exposes implicit sets. Allocate/resize implicit_sets as
5849 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5850 changed something. Run df_analyze after find_implicit_sets if any
5851 edges were split. Do not allocate implicit_sets here.
5853 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5854 (gcse_obstack): Renamed to cprop_obstack.
5855 (GNEW, GNEWVEC, GNEWVAR): Remove.
5857 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5858 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5859 (gcse_alloc): Likewise, and rename to cprop_alloc.
5860 (alloc_gcse_men, free_gcse_mem): Remove.
5861 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5862 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5863 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5865 * cprop.c (oprs_not_set_p): Remove.
5866 (mark_set, mark_clobber): Remove.
5867 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5868 (reg_not_set_p): New function.
5869 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5870 (cprop_insn): Likewise.
5871 (cprop_jump): Use FOR_EACH_EDGE.
5873 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
5876 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5877 (rank_for_schedule): Use scheduled_insns vector instead of
5878 last_scheduled_insn.
5879 (ok_for_early_queue_removal): Likewise.
5880 (queue_to_ready): Search forward in nonscheduled_insns_begin if
5882 (choose_ready): Likewise.
5883 (commit_schedule): Use VEC_iterate.
5884 (schedule_block): Initialize nonscheduled_insns_begin. If we have
5885 a dbg_cnt, use it and ensure the first insn is in the ready list.
5886 (haifa_sched_init): Allocate scheduled_insns.
5887 (sched_extend_ready_list): Don't allocate it; reserve space.
5888 (haifa_sched_finish): Free it.
5890 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5892 * optc-gen.awk: Always remove type from Variable entry before
5893 recording in var_seen.
5895 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
5897 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5898 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5899 call to tidy_fallthru_edges.
5901 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5903 * doc/options.texi (ToLower): Document.
5904 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5905 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5906 * opts.h (cl_option): Add cl_tolower field.
5907 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5908 arguments with lowercase strings.
5909 * config/rx/rx.opt (mcpu=): Add ToLower.
5910 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5913 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5915 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5917 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5919 * config/vax/vax.c: Include reload.h.
5921 2011-04-04 Anatoly Sokolov <aesok@post.ru>
5923 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5924 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5925 (sparc_preferred_reload_class): New function.
5927 2011-04-04 Jakub Jelinek <jakub@redhat.com>
5930 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5931 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5933 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5935 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5936 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5938 2011-04-03 Anatoly Sokolov <aesok@post.ru>
5940 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5941 (ASM_OUTPUT_ALIGNED_BSS): Define.
5943 2011-04-03 Michael Matz <matz@suse.de>
5945 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5946 and next_slot members.
5947 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5948 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5949 (lto_streamer_cache_append): Declare.
5950 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5951 unsigned index, remove offset parameter, ensure that we append
5952 or update existing entries.
5953 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5954 parameter, update next_slot for append.
5955 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5957 (lto_streamer_cache_insert_at): Likewise.
5958 (lto_streamer_cache_append): New function.
5959 (lto_streamer_cache_lookup): Use unsigned index.
5960 (lto_streamer_cache_get): Likewise.
5961 (lto_record_common_node): Don't test tree_node_can_be_shared.
5962 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5963 (lto_streamer_cache_delete): Don't free offsets member.
5964 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5965 (lto_output_string_with_length): Use lto_output_data_stream.
5966 (lto_output_tree_header): Remove ix parameter, don't write it.
5967 (lto_output_builtin_tree): Likewise.
5968 (lto_write_tree): Adjust callers to above, don't track and write
5969 offset, write unsigned index.
5970 (output_unreferenced_globals): Don't emit all global vars.
5971 (write_global_references): Use unsigned indices.
5972 (lto_output_decl_state_refs): Likewise.
5973 (write_symbol): Likewise.
5974 * lto-streamer-in.c (lto_input_chain): Move earlier.
5975 (input_function): Use unsigned index.
5976 (input_alias_pairs): Don't read and then ignore all global vars.
5977 (lto_materialize_tree): Remove ix_p parameter, don't read index,
5978 don't pass it back, use lto_streamer_cache_append.
5979 (lto_register_var_decl_in_symtab): Use unsigned index.
5980 (lto_register_function_decl_in_symtab): Likewise.
5981 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5983 (lto_get_builtin_tree): Don't read index, use
5984 lto_streamer_cache_append.
5985 (lto_read_tree): Adjust call to lto_materialize_tree.
5987 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5988 don't use function calls in arguments to MIN.
5990 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5993 * gimple.c (gimple_type_leader_entry): Mark deletable.
5995 2011-04-03 Alan Modra <amodra@gmail.com>
5997 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5999 2011-04-03 Michael Matz <matz@suse.de>
6001 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6003 * tree.h (tree_decl_non_common.vindex): Adjust comment.
6005 2011-04-03 Michael Matz <matz@suse.de>
6007 * cgraphbuild.c (record_reference): Canonicalize constructor values.
6008 * gimple-fold.c (canonicalize_constructor_val): Accept being called
6009 without function context.
6010 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6011 current_function_decl and cfun.
6013 2011-04-03 Michael Matz <matz@suse.de>
6015 * tree.c (decl_init_priority_insert): Don't create entry for
6017 (decl_fini_priority_insert): Ditto.
6018 (fields_compatible_p, find_compatible_field): Remove.
6019 * tree.h (fields_compatible_p, find_compatible_field): Remove.
6020 * gimple.c (gimple_compare_field_offset): Adjust block comment.
6022 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
6024 * combine.c (try_combine): Remove useless local variable.
6026 2011-04-03 Richard Guenther <rguenther@suse.de>
6027 Ira Rosen <ira.rosen@linaro.org>
6029 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6030 non-variable offsets and compare the remaining bases of the two
6031 accesses instead of looking for exact same data-ref.
6033 2011-04-02 Kai Tietz <ktietz@redhat.com>
6036 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6038 * i386.c (ix86_is_msabi_thiscall): New helper function.
6039 (ix86_is_type_thiscall): New helper function.
6040 (ix86_comp_type_attributes): Handle thiscall for method-functions
6042 (init_cumulative_args): Likewise.
6043 (find_drap_reg): Likewise.
6044 (ix86_static_chain): Likewise.
6045 (x86_this_parameter): Likewise.
6046 (x86_output_mi_thunk): Likewise.
6048 2011-04-01 Olivier Hainque <hainque@adacore.com>
6049 Nicolas Setton <setton@adacore.com>
6050 Eric Botcazou <ebotcazou@adacore.com>
6052 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6053 (add_gnat_descriptive_type_attribute): New function.
6054 (gen_array_type_die): Call it.
6055 (gen_enumeration_type_die): Likewise.
6056 (gen_struct_or_union_type_die): Likewise.
6057 (modified_type_die): Likewise.
6058 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6059 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6060 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6062 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6065 * dwarf2out.c (resolve_addr): Don't call force_decl_die
6066 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6069 2011-03-17 Richard Guenther <rguenther@suse.de>
6072 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6073 origin for decls in other ltrans units.
6074 (input_varpool_node): Likewise.
6076 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6079 * expr.c (expand_assignment): Handle all possibilities
6080 if TO_RTX is CONCAT.
6081 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6082 (store_split_bit_field): If SUBREG_REG (op0) or
6083 op0 itself has smaller mode than word, return it
6084 for offset 0 and const0_rtx for out-of-bounds stores.
6085 If word is const0_rtx, skip it.
6087 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
6089 * config/h8300/h8300.c (print_operand_address): Rename to...
6090 (h8300_print_operand_address): ...this. Make static. Adjust comments.
6091 Call h8300_print_operand and h8300_print_operand_address instead of
6092 print_operand and print_operand_address. Declare.
6093 (print_operand): Renake to...
6094 (h8300_print_operand): ...this. Make static. Adjust comments.
6095 Call h8300_print_operand instead of print_operand. Declare.
6096 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6097 (h8300_register_move_cost): Likewise.
6098 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6099 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6100 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6101 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6102 * config/h8300/h8300-protos.h (print_operand): Delete.
6103 (print_operand_address): Delete.
6105 2011-04-01 Richard Henderson <rth@redhat.com>
6108 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6109 in strict mode before dwarf4. Re-order tests to early out
6110 before switching sections.
6112 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
6114 * config/h8300/constraints.md: New file.
6115 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
6116 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6117 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6118 * config/h8300/predicates.md (bit_operand): Likewise.
6119 (incdec_operand): Use satisfies_constraint_M and
6120 satisfies_constraint_O. Don't use C code block.
6121 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6122 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6123 (compute_mov_length): Use satisfies_constraint_G.
6124 (fix_bit_operand): Use satisfies_constraint_U.
6125 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6126 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6127 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6128 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6129 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6130 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6131 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6132 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6133 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6134 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6135 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6136 (EXTRA_MEMORY_CONSTRAINT): Delete.
6138 2011-04-01 Andrew Pinski <pinskia@gmail.com>
6139 Michael Meissner <meissner@linux.vnet.ibm.com>
6142 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6143 operands, as per the specifications.
6145 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6146 (vec_extract_evenv4sf): Ditto.
6147 (vec_extract_evenv8hi): Ditto.
6148 (vec_extract_evenv16qi): Ditto.
6149 (vec_extract_oddv4si): Ditto.
6151 2011-03-31 Mark Wielaard <mjw@redhat.com>
6153 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6154 high_pc attribute if the CU has no associated code. Only output
6155 DW_AT_entry_pc for CU if not generating strict dwarf and
6158 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
6160 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6161 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6163 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6164 * final.c (final_start_function): Call the new function rather
6165 than using a NULL argument for dwarf2out_frame_debug.
6167 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6168 that contains the prologue.
6170 * haifa-sched.c (queue_insn): New arg REASON. All callers
6171 changed. Print it in debugging output.
6173 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6175 * sched-ebb.c (begin_schedule_ready): Remove second argument.
6176 Split most of the code into...
6177 (begin_move_insn): ... here. New function.
6178 (ebb_sched_info): Add a pointer to it.
6179 * haifa-sched.c (scheduled_insns): New static variable.
6180 (sched_extend_ready_list): Allocate it.
6181 (schedule_block): Use it to record the order of scheduled insns.
6182 Perform RTL changes to move insns only after all scheduling
6183 decisions have been made.
6184 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6185 begin_move_insn field.
6186 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6187 * sched-int.h (struct haifa_sched_info): Remove second argument
6188 from begin_schedule_ready hook. Add new member begin_move_insn.
6189 * sched-rgn.c (begin_schedule_ready): Remove second argument.
6190 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6192 * haifa-sched.c (prune_ready_list): New function, broken out of
6194 (schedule_block): Use it.
6196 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6198 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6200 2011-04-01 Kai Tietz <ktietz@redhat.com>
6202 * config.gcc (*-*-mingw*): Allow as option the
6203 posix threading model.
6204 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
6205 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6207 (CPP_SPEC): Add pthread/no-pthread handling.
6208 (LIB_SPEC): Likewise.
6209 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6210 (LIB_SPEC): Likewise.
6211 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6212 flag to pass -pthread option for shared libgcc build.
6213 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6214 for shared libgcc build.
6215 * config/i386/t-mingw-pthread: New file.
6216 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6217 New define to enable use of library pthread by default.
6218 * config/i386/mingw.opt (pthread): New driver option.
6219 (no-pthread): New driver option.
6220 * config/i386/cygming.opt: Make sure trailing empty line is retained.
6221 * config/i386/mingw-w64.opt: Likewise.
6223 2011-04-01 Gary Funck <gary@intrepid.com>
6225 * c-decl.c (grokdeclarator): Fix formatting.
6227 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6229 * expr.c (emit_block_move_via_movmem): Use n_generator_args
6230 instead of n_operands.
6231 (set_storage_via_setmem): Likewise.
6232 * optabs.c (maybe_gen_insn): Likewise.
6233 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6234 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6235 (mips_expand_builtin_direct): Likewise.
6236 * config/spu/spu.c (expand_builtin_args): Likewise.
6238 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6240 * recog.h (insn_data_d): Add n_generator_args.
6241 * genoutput.c (data): Likewise.
6242 (output_insn_data): Print it.
6243 (max_opno, num_dups): Delete.
6244 (scan_operands): Just fill in "d->operand[...]".
6245 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6247 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6249 * gensupport.h (pattern_stats): New structure.
6250 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6251 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6252 (max_operand_1, max_operand_vec): Delete.
6253 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6255 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
6257 * emit-rtl.c (emit_pattern_after_setloc): New function.
6258 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6259 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6260 (emit_pattern_after): New function.
6261 (emit_insn_after, emit_jump_insn_after): Call it.
6262 (emit_call_insn_after, emit_debug_insn_after): Likewise.
6263 (emit_pattern_before_setloc): New function.
6264 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6265 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6267 (emit_pattern_before): New function.
6268 (emit_insn_before, emit_jump_insn_before): Call it.
6269 (emit_call_insn_before, emit_debug_insn_before): Likewise.
6271 2011-03-31 Richard Henderson <rth@redhat.com>
6273 * dwarf2out.c (dw_separate_line_info_ref): Remove.
6274 (dw_separate_line_info_entry): Remove.
6275 (enum dw_line_info_opcode): New.
6276 (dw_line_info_entry): Use it.
6277 (dw_line_info_table, dw_line_info_table_p): New.
6278 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6279 (line_info_table, line_info_label_num): Remove.
6280 (line_info_table_in_use): Remove.
6281 (separate_line_info_table): Remove.
6282 (separate_line_info_table_allocated): Remove.
6283 (separate_line_info_table_in_use): Remove.
6284 (LINE_INFO_TABLE_INCREMENT): Remove.
6285 (line_info_label_num): New.
6286 (cur_line_info_table): New.
6287 (text_section_line_info, cold_text_section_line_info): New.
6288 (separate_line_info): New.
6289 (SEPARATE_LINE_CODE_LABEL): Remove.
6290 (print_dwarf_line_table): Remove.
6291 (debug_dwarf): Don't dump it.
6292 (output_one_line_info_table): New.
6293 (output_line_info): Use it.
6294 (new_line_info_table): New.
6295 (set_cur_line_info_table): New.
6296 (dwarf2out_switch_text_section): Use it.
6297 (dwarf2out_begin_function): Likewise.
6298 (push_dw_line_info_entry): New.
6299 (dwarf2out_source_line): Rewrite for new line info tables.
6300 (dwarf2out_init): Remove dead initailizations.
6302 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6304 * opts.h (cl_option): Add comments to fields. Add bit-fields for
6306 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6307 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6308 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6309 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6310 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6311 * opt-functions.awk (flag_init, switch_bit_fields): New.
6312 (switch_flags): Don't handle flags moved to bit-fields. Don't
6313 generate CL_MISSING_OK or CL_SAVE.
6314 * optc-gen.awk: Update to generate bit-field output as well as
6316 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6317 bit-field instead of CL_REJECT_DRIVER flag.
6318 * opts-common.c (generate_canonical_option,
6319 decode_cmdline_option): Use bit-fields instead of CL_* flags.
6320 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6321 instead of CL_REJECT_NEGATIVE flag.
6322 * toplev.c (print_switch_values): Use cl_report bit-field instead
6325 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6327 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6328 a zero minimum index only if it is redundant.
6330 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
6332 PR rtl-optimization/48381
6333 * ira-color.c (assign_hard_reg): Use hard reg set intersection
6334 instead of ira_class_hard_reg_index for calculating conflicting
6337 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
6339 * cprop.c: Clean up hash table building.
6340 (reg_avail_info): Remove.
6341 (oprs_available_p): Remove.
6342 (record_last_reg_set_info): Remove.
6343 (record_last_set_info): Remove.
6344 (reg_available_p): New function.
6345 (gcse_constant_p): Do not treat unfolded conditions as constants.
6346 (make_set_regs_unavailable): New function.
6347 (hash_scan_set): Simplify with new reg_available_p.
6348 (compute_hash_table_work): Traverse insns stream only once.
6349 Do not compute reg_avail_info. Traverse insns in reverse order.
6350 Record implicit sets after recording explicit sets from the block.
6352 2011-03-31 Michael Matz <matz@suse.de>
6354 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6356 2011-03-31 Anatoly Sokolov <aesok@post.ru>
6358 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6359 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6360 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6361 (h8300_mode_dependent_address_p): New function.
6362 (h8300_get_index): Make static.
6364 2011-03-31 Jeff Law <law@redhat.com>
6366 * reload1.c (elimination_effects): Fix typo in recent change.
6368 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6369 typo potentially leading to null pointer dereference.
6371 * caller-save.c (new_saved_hard_reg): Eliminate return value.
6372 (setup_save_areas): Corresponding changes to avoid useless
6375 * jump.c (reversed_comparison_code_parts): Avoid successive return
6376 statements when REVERSE_CONDITION is defined.
6378 * expr.c (expand_assignment): Avoid useless assignments.
6379 (expand_expr_real_1): Likewise.
6380 (expand_expr_real_2): Avoid useless statements.
6382 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6384 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6386 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6389 * stmt.c (expand_expr_stmt): Avoid useless assignment.
6391 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6394 * doc/tm.texi.in (TARGET_VERSION): Remove.
6395 * doc/tm.texi: Regenerate.
6396 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6397 * collect2.c (main): Don't use TARGET_VERSION.
6398 * mips-tdump.c (main): Don't use TARGET_VERSION.
6399 * mips-tfile.c (main): Don't use TARGET_VERSION.
6400 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6401 * config/rs6000/vxworksae.h: Remove.
6402 * config/alpha/alpha.h (TARGET_VERSION): Remove.
6403 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6404 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6405 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6406 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6407 * config/arm/arm.h (TARGET_VERSION): Remove.
6408 * config/arm/coff.h (TARGET_VERSION): Remove.
6409 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6410 * config/arm/elf.h (TARGET_VERSION): Remove.
6411 * config/arm/freebsd.h (TARGET_VERSION): Remove.
6412 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6413 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6414 * config/arm/pe.h (TARGET_VERSION): Remove.
6415 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6416 * config/arm/semi.h (TARGET_VERSION): Remove.
6417 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6418 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6419 * config/arm/vxworks.h (TARGET_VERSION): Remove.
6420 * config/avr/avr.h (TARGET_VERSION): Remove.
6421 * config/bfin/bfin.h (TARGET_VERSION): Remove.
6422 * config/fr30/fr30.h (TARGET_VERSION): Remove.
6423 * config/frv/frv.h (TARGET_VERSION): Remove.
6424 * config/h8300/h8300.h (TARGET_VERSION): Remove.
6425 * config/i386/cygwin.h (TARGET_VERSION): Remove.
6426 * config/i386/darwin.h (TARGET_VERSION): Remove.
6427 * config/i386/darwin64.h (TARGET_VERSION): Remove.
6428 * config/i386/djgpp.h (TARGET_VERSION): Remove.
6429 * config/i386/freebsd.h (TARGET_VERSION): Remove.
6430 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6431 * config/i386/gnu.h (TARGET_VERSION): Remove.
6432 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6433 * config/i386/i386elf.h (TARGET_VERSION): Remove.
6434 * config/i386/linux.h (TARGET_VERSION): Remove.
6435 * config/i386/linux64.h (TARGET_VERSION): Remove.
6436 * config/i386/lynx.h (TARGET_VERSION): Remove.
6437 * config/i386/mingw32.h (TARGET_VERSION): Remove.
6438 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6439 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6440 * config/i386/netware.h (TARGET_VERSION): Remove.
6441 * config/i386/nto.h (TARGET_VERSION): Remove.
6442 * config/i386/openbsd.h (TARGET_VERSION): Remove.
6443 * config/i386/vxworks.h (TARGET_VERSION): Remove.
6444 * config/ia64/elf.h (TARGET_VERSION): Remove.
6445 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6446 * config/ia64/hpux.h (TARGET_VERSION): Remove.
6447 * config/ia64/linux.h (TARGET_VERSION): Remove.
6448 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6449 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6450 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6451 * config/lm32/lm32.h (TARGET_VERSION): Remove.
6452 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6453 * config/m32c/m32c.h (TARGET_VERSION): Remove.
6454 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6455 * config/m32r/m32r.h (TARGET_VERSION): Remove.
6456 * config/m68k/linux.h (TARGET_VERSION): Remove.
6457 * config/m68k/m68k.h (TARGET_VERSION): Remove.
6458 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6459 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6460 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6461 * config/mep/mep.h (TARGET_VERSION): Remove.
6462 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6463 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6464 * config/mips/iris6.h (MACHINE_TYPE): Remove.
6465 * config/mips/linux.h (TARGET_VERSION): Remove.
6466 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6467 * config/mips/vxworks.h (TARGET_VERSION): Remove.
6468 * config/mmix/mmix.h (TARGET_VERSION): Remove.
6469 * config/mn10300/linux.h (TARGET_VERSION): Remove.
6470 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6471 * config/pa/pa.h (TARGET_VERSION): Remove.
6472 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6473 * config/picochip/picochip.h (TARGET_VERSION): Remove.
6474 * config/rs6000/aix.h (TARGET_VERSION): Remove.
6475 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6476 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6477 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6478 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6479 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6480 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6481 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6482 * config/rs6000/linux.h (TARGET_VERSION): Remove.
6483 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6484 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6485 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6486 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6487 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6488 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6489 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6490 * config/s390/linux.h (TARGET_VERSION): Remove.
6491 * config/s390/s390.h (TARGET_VERSION): Remove.
6492 * config/s390/tpf.h (TARGET_VERSION): Remove.
6493 * config/score/score.h (TARGET_VERSION): Remove.
6494 * config/sh/linux.h (TARGET_VERSION): Remove.
6495 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6496 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6497 * config/sh/sh.h (TARGET_VERSION): Remove.
6498 * config/sh/sh64.h (TARGET_VERSION): Remove.
6499 * config/sh/superh.h (TARGET_VERSION): Remove.
6500 * config/sh/vxworks.h (TARGET_VERSION): Remove.
6501 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6502 * config/sparc/linux.h (TARGET_VERSION): Remove.
6503 * config/sparc/linux64.h (TARGET_VERSION): Remove.
6504 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6505 TARGET_NAME32, TARGET_NAME): Remove.
6506 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6507 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6508 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6509 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6510 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6511 * config/spu/spu.h (TARGET_VERSION): Remove.
6512 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6513 * config/v850/v850.h (TARGET_VERSION): Remove.
6514 * config/vax/linux.h (TARGET_VERSION): Remove.
6515 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6516 * config/xtensa/elf.h (TARGET_VERSION): Remove.
6517 * config/xtensa/linux.h (TARGET_VERSION): Remove.
6519 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6522 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6523 frame-related from frame-unrelated adjustments to the stack pointer.
6525 2011-03-31 Jakub Jelinek <jakub@redhat.com>
6527 * common.opt (fdebug-types-section): Move earlier.
6528 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6530 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
6532 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6535 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
6537 * tree.h (CASE_CHAIN): Define.
6538 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6539 (gimple_redirect_edge_and_branch): Likewise.
6541 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6544 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6547 2011-03-30 Jeff Law <law@redhat.com>
6549 * PR bootstrap/48371
6550 * reload1.c (reload): Fix botch in last change.
6552 * reload.h (struct reload): Fix typo introduced in last change.
6554 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6556 * config/arm/arm.opt (mhard-float, msoft-float): Mark
6557 Undocumented. Remove help text.
6558 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6561 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6563 * doc/options.texi (NegativeAlias): Document.
6564 (Alias): Mention NegativeAlias.
6565 * opt-functions.awk: Handle NegativeAlias.
6566 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6567 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6568 * opts.h (CL_NEGATIVE_ALIAS): Define.
6569 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6570 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6572 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6574 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6575 mno-spe and mno-isel instead of mspe=no and -misel=no.
6577 2011-03-29 Mark Wielaard <mjw@redhat.com>
6579 * common.opt (fdebug-types-section): New flag.
6580 * doc/invoke.texi: Document new -fno-debug-types-section flag.
6581 * dwarf2out.c (use_debug_types): New define.
6582 (struct die_struct): Mark die_id with GTY desc use_debug_types.
6583 (print_die): Guard output of type unit signatures using
6585 (build_abbrev_table): Replace assert of dwarf_version >= 4
6586 with assert on use_debug_types.
6587 (size_of_die): Likewise.
6588 (unmark_dies): Likewise.
6589 (value_format): Decide AT_ref_external form on use_debug_types.
6590 (output_die): Replace dwarf_version version check guard with
6591 use_debug_types where appropriate.
6592 (modified_type_die): Likewise.
6593 (gen_reference_type_die): Likewise.
6594 (dwarf2out_start_source_file): Likewise.
6595 (dwarf2out_end_source_file): Likewise.
6596 (prune_unused_types_walk_attribs): Likewise.
6597 (dwarf2out_finish): Likewise.
6599 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6601 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6603 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6605 PR rtl-optimization/48332
6606 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6607 mode of input operand N and modeN to its actual mode.
6609 2011-03-30 Jeff Law <law@redhat.com>
6611 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6612 define accessor macro.
6613 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6614 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6615 (reg_equiv_init): Likewise.
6616 (reg_equivs_size): New variable.
6617 (reg_equiv_init_size): Remove.
6618 (allocate_initial_values): Move prototype to here from....
6619 * integrate.h (allocate_initial_values): Remove prototype.
6620 * integrate.c: Include reload.h.
6621 (allocate_initial_values): Corresponding changes.
6622 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6623 (fix_reg_equiv_init, no_equiv): Corresponding changes.
6624 (update_equiv_regs): Corresponding changes.
6625 (ira): Corresponding changes.
6626 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6627 (push_secondary_reload): Corresponding changes.
6628 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6629 (make_memloc, find_reloads_address): Corresponding changes.
6630 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6631 (find_reloads_address_1): Corresponding changes.
6632 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6633 (refers_to_regno_for_reload_p): Corresponding changes.
6634 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6635 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6636 * reload1.c: Include ggc.h.
6637 (grow_reg_equivs): New function.
6638 (replace_pseudos_in, reload): Corresponding changes.
6639 (calculate_needs_all_insns, alter_regs): Corresponding changes.
6640 (eliminate_regs_1, elimination_effects): Corresponding changes.
6641 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6642 (delete_output_reload): Likewise.
6643 * caller-save.c (mark_referenced_regs): Corresponding changes.
6644 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6645 * frv/predicates.md (frv_load_operand): Corresponding changes.
6646 * microblaze/microblaze.c (double_memory_operand): Corresponding
6648 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6649 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6650 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6651 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6652 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6654 * pa/pa.c (emit_move_sequence): Corresponding changes.
6655 * vax/vax.c (nonindexed_address_p): Corresponding changes.
6657 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6660 * config/arm/arm.c (coproc_secondary_reload_class): Handle
6661 structure modes. Don't check neon_vector_mem_operand for
6662 vector or structure modes.
6664 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6665 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6668 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6669 operand 1 and reshuffle the operands to match.
6670 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6672 2011-03-30 Christian Schüler <cschueler@gmx.de>
6675 * config/c.opt (F): Added 'Driver' to -F option.
6678 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6680 * config/darwin.opt: Added '-arch' option.
6682 2011-03-30 Nick Clifton <nickc@redhat.com>
6684 * config/rx/rx.md: Add peepholes and patterns to combine
6685 extending loads and simple arithmetic instructions.
6686 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6687 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6688 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6689 modes to use pre-decrement and post-increment addressing.
6690 (rx_is_restricted_memory_address): Add range checking of REG+INT
6692 (rx_print_operand): Add support for %Q. Fix handling of %Q.
6693 (rx_memory_move_cost): Adjust cost of stores.
6694 (rx_adjust_insn_length): New function.
6696 2011-03-30 Jakub Jelinek <jakub@redhat.com>
6699 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6700 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6701 matching arg00/arg01 types.
6703 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
6705 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6706 last_location to UNKNOWN_LOCATION.
6708 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
6711 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6714 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6715 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6718 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6720 (sparc_cpu): Likewise.
6721 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6724 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6728 PR rtl-optimization/48345
6729 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6730 hard regs for given mode from profitable regs when doing secondary
6733 2011-03-29 Jeff Law <law@redhat.com>
6736 * tree-ssa-threadupdate.c (struct redirection_data): Remove
6737 do_not_duplicate field.
6738 (lookup_redirection_data): Corresponding changes.
6739 (create_duplicates): Always create a template block.
6740 (redirect_edges): Remove code which reused the original block
6741 when it was going to become unreachable code.
6742 (thread_block): Don't set do_not_duplicate field.
6744 2011-03-29 Joseph Myers <joseph@codesourcery.com>
6746 * lto-opts.c (register_user_option_p, lto_register_user_option):
6747 Make type argument unsigned.
6748 * lto-streamer.h (lto_register_user_option): Make type argument
6750 * opth-gen.awk: Make CL_* macros unsigned.
6751 * opts-common.c (find_opt): Make lang_mask argument unsigned.
6752 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6753 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6754 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6755 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6756 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6757 (find_opt): Make lang_mask argument unsigned.
6759 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6761 PR rtl-optimization/48331
6762 PR rtl-optimization/48334
6763 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6764 for any used algorithm.
6766 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6768 * ira-conflicts.c (build_object_conflicts): Add unused attribute
6771 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
6773 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6774 (alpha_option_override): Don't set alpha_sr_alias_set.
6775 (emit_frame_store_1): Use gen_frame_mem rather than calling
6777 (alpha_expand_epilogue): Ditto.
6779 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
6781 PR tree-optimization/48290
6782 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6783 vectorization, check that relevant phis in the basic block after
6784 the inner loop are really inner loop's exit phis.
6786 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
6789 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6790 (cached_dw_loc_list_def): New structure.
6791 (cached_dw_loc_list): New typedef.
6792 (cached_dw_loc_list_table): New variable.
6793 (cached_dw_loc_list_table_hash): New function.
6794 (cached_dw_loc_list_table_eq): Likewise.
6795 (add_location_or_const_value_attribute): Take a bool cache_p.
6796 Cache the list when the parameter is true.
6797 (gen_formal_parameter_die): Update caller.
6798 (gen_variable_die): Likewise.
6799 (dwarf2out_finish): Likewise.
6800 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6801 while generating debug info for the decl.
6802 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6803 (dwarf2out_init): Initialize cached_dw_loc_list_table.
6804 (resolve_addr): Cache the result of resolving a chain of
6807 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
6809 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6810 conflict object hard regset nodes have intersecting hard reg sets.
6812 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6813 after regstat_init_n_sets_and_refs.
6815 * ira.c: Add more comments at the top.
6816 (setup_stack_reg_pressure_class, setup_pressure_classes):
6817 Add comments how we compute the register pressure classes.
6818 (setup_allocno_and_important_classes): Add more comments.
6819 (setup_class_translate_array, reorder_important_classes)
6820 (setup_reg_class_relations): Add comments.
6822 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
6825 * ira-color.c: Add 2011 to the Copyright line.
6826 (assign_hard_reg): Add more comments.
6827 (improve_allocation): Ditto.
6829 * ira-costs.c: Add 2011 to the Copyright line.
6830 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6832 (setup_regno_cost_classes_by_mode): Ditto.
6834 Initial patches from ira-improv branch:
6836 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6838 * ira-build.c (ira_create_object): Remove initialization of
6839 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
6840 (ira_create_allocno): Remove initialization of
6841 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6842 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6843 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6844 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6845 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6846 Initialize ALLOCNO_ADD_DATA.
6847 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6848 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6850 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
6851 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6853 * ira.c (ira_reallocate): Remove.
6854 (setup_pressure_classes): Call
6855 ira_init_register_move_cost_if_necessary. Use
6856 ira_register_move_cost instead of ira_get_register_move_cost.
6857 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6858 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6860 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6861 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6862 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6863 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6864 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6865 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6867 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6868 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6869 (struct allocno_color_data): New.
6870 (allocno_color_data_t): New typedef.
6871 (allocno_color_data): New definition.
6872 (ALLOCNO_COLOR_DATA): New macro.
6873 (struct object_color_data): New.
6874 (object_color_data_t): New typedef.
6875 (object_color_data): New definition.
6876 (OBJECT_COLOR_DATA): New macro.
6877 (update_copy_costs, calculate_allocno_spill_cost): Call
6878 ira_init_register_move_cost_if_necessary. Use
6879 ira_register_move_cost instead of ira_get_register_move_cost.
6880 (move_spill_restore, update_curr_costs): Ditto.
6881 (allocno_spill_priority): Make it inline.
6882 (color_pass): Allocate and free allocno_color_dat and object_color_data.
6883 (struct coalesce_data, coalesce_data_t): New.
6884 (allocno_coalesce_data): New definition.
6885 (ALLOCNO_COALESCE_DATA): New macro.
6886 (merge_allocnos, coalesced_allocno_conflict_p): Use
6887 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6888 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6889 (coalesce_allocnos): Ditto.
6890 (setup_coalesced_allocno_costs_and_nums): Ditto.
6891 (collect_spilled_coalesced_allocnos): Ditto.
6892 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6893 (setup_slot_coalesced_allocno_live_ranges): Ditto.
6894 (coalesce_spill_slots): Ditto.
6895 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
6896 free allocno_coalesce_data.
6898 * ira-conflicts.c: Fix formatting.
6899 (process_regs_for_copy): Call
6900 ira_init_register_move_cost_if_necessary. Use
6901 ira_register_move_cost instead of ira_get_register_move_cost.
6902 (build_object_conflicts): Optimize.
6904 * ira-costs.c (record_reg_classes): Optimize. Call
6905 ira_init_register_move_cost_if_necessary. Use
6906 ira_register_move_cost, ira_may_move_in_cost, and
6907 ira_may_move_out_cost instead of ira_get_register_move_cost and
6908 ira_get_may_move_cost.
6909 (record_address_regs): Ditto.
6910 (scan_one_insn): Optimize.
6911 (find_costs_and_classes): Optimize.
6912 (process_bb_node_for_hard_reg_moves): Call
6913 ira_init_register_move_cost_if_necessary. Use
6914 ira_register_move_cost instead of ira_get_register_move_cost.
6916 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6917 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6918 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6919 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6921 (ira_initiate_emit_data, ira_finish_emit_data)
6922 (create_new_allocno): New functions.
6923 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6924 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6925 Use ira_register_move_cost instead of ira_get_register_move_cost.
6927 * ira-int.h: Fix some comments.
6928 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6929 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6930 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6931 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6933 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6934 bitfield after mode. Make hard_regno a short int. Make
6935 hard_regno short. Remove first_coalesced_allocno and
6936 next_coalesced_allocno. Move mem_optimized_dest_p,
6937 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6938 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6939 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6940 temp, colorable_p. Add new member add_data.
6941 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6942 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6943 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6944 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6945 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6946 (ALLOCNO_ADD_DATA): New macro.
6947 (ira_emit_data_t): New typedef.
6948 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6949 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6950 from struct ira_allocno.
6951 (ALLOCNO_EMIT_DATA): New macro.
6952 (ira_allocno_emit_data, allocno_emit_reg): New.
6953 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6954 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6955 (OBJECT_ADD_DATA): New macro.
6956 (ira_reallocate): Remove.
6957 (ira_initiate_emit_data, ira_finish_emit_data): New.
6958 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6959 (ira_init_register_move_cost_if_necessary): New.
6960 (ira_object_conflict_iter_next): Merge into
6961 ira_object_conflict_iter_cond.
6962 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6964 * ira-live.c (process_single_reg_class_operands): Call
6965 ira_init_register_move_cost_if_necessary. Use
6966 ira_register_move_cost instead of ira_get_register_move_cost.
6968 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6970 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6972 * ira-costs.c: Fix formatting.
6973 (cost_classes, cost_classes_num): Remove.
6974 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6975 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6976 (cost_classes_del, cost_classes_htab): New.
6977 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6978 (initiate_regno_cost_classes, setup_cost_classes): New.
6979 (setup_regno_cost_classes_by_aclass): New.
6980 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6981 (record_reg_classes): Use regno_cost_classes instead of
6982 cost_classes. Move checking opposite operand up.
6983 (record_address_regs): Use regno_cost_classes
6984 instead of cost_classes.
6985 (scan_one_insn): Ditto. Use always general register.
6986 (print_allocno_costs): Use regno_cost_classes instead of
6988 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
6989 (find_costs_and_classes): Set up cost classes for each registers.
6990 Use also their mode for this. Use regno_cost_classes instead of
6992 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6994 (free_ira_costs, ira_init_costs): Don't use cost_classes.
6995 (ira_costs, ira_set_pseudo_classes): Call
6996 initiate_regno_cost_classes and finish_regno_cost_classes.
6998 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
7000 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7002 * target.def (ira_cover_classes): Remove.
7004 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7006 * doc/tm.texi.in: Ditto.
7008 * ira-conflicts.c: Remove mentioning cover classes from the file.
7009 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7010 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
7012 * targhooks.c (default_ira_cover_classes): Remove.
7014 * targhooks.h (default_ira_cover_classes): Ditto.
7016 * haifa-sched.c: Remove mentioning cover classes from the file.
7017 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7018 ira_pressure_classes and ira_pressure_classes_num instead of
7019 ira_reg_class_cover_size and ira_reg_class_cover. Use
7020 sched_regno_pressure_class instead of sched_regno_cover_class.
7021 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7022 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7024 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
7025 classes from the file.
7026 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7027 (struct object_hard_regs, struct object_hard_regs_node): New.
7028 (struct ira_object): New members profitable_hard_regs,
7029 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7030 (struct ira_allocno): Rename cover_class to aclass. Rename
7031 cover_class_cost and updated_cover_class_cost to class_cost and
7032 updated_class_cost. Remove splay_removed_p and
7033 left_conflict_size. Add new members colorable_p.
7034 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7035 (ALLOCNO_COLORABLE_P): New macro.
7036 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7037 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7038 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7039 (OBJECT_...): Rename parameter C to O.
7040 (OBJECT_PROFITABLE_HARD_REGS): New macro.
7041 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7042 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7043 (struct target_ira_int): New members x_ira_max_memory_move_cost,
7044 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7045 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7046 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7047 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
7048 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
7049 x_ira_reg_class_subunion.
7050 (ira_max_memory_move_cost, ira_max_register_move_cost)
7051 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7052 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7053 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7054 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7055 (ira_reg_class_union): Rename to ira_reg_class_subunion.
7056 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7057 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7058 (ira_tune_allocno_costs_and_cover_classes): Rename to
7059 ira_tune_allocno_costs.
7060 (ira_debug_hard_regs_forest): New.
7061 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7062 (ira_object_conflict_iter_next): Fix comments.
7063 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7064 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7065 cover_class to aclass.
7066 (ira_allocate_and_accumulate_costs): Ditto.
7067 (ira_allocate_and_set_or_copy_costs): Ditto.
7069 * opts.c (decode_options): Remove ira_cover_class check.
7071 * ira-color.c: Remove mentioning cover classes from the file. Use
7072 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7073 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7074 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7075 (splay-tree.h): Remove include.
7076 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7077 before copy_freq_compare_func.
7078 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7079 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7081 (hard_regs_roots, hard_regs_node_vec): Ditto.
7082 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7083 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7084 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7085 (create_new_object_hard_regs_node): Ditto.
7086 (add_new_object_hard_regs_node_to_forest): Ditto.
7087 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7088 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7090 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7091 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7092 (remove_unused_object_hard_regs_nodes): Ditto.
7093 (enumerate_object_hard_regs_nodes): Ditto.
7094 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7095 (object_hard_regs_subnode_t): Ditto.
7096 (struct object_hard_regs_subnode): Ditto.
7097 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7098 (setup_object_hard_regs_subnode_index): Ditto.
7099 (get_object_hard_regs_subnodes_num): Ditto.
7100 (form_object_hard_regs_nodes_forest): Ditto.
7101 (finish_object_hard_regs_nodes_tree): Ditto.
7102 (finish_object_hard_regs_nodes_forest): Ditto.
7103 (allocnos_have_intersected_live_ranges_p): Rename to
7104 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7105 (pseudos_have_intersected_live_ranges_p): Rename to
7106 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7107 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7108 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7109 (update_copy_costs): Remove assert. Skip cost update if the hard
7110 reg does not belong the class.
7111 (assign_hard_reg): Process only profitable hard regs.
7112 (uncolorable_allocnos_num): Make it scalar.
7113 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7114 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7115 and ira_reg_class_max_nregs.
7116 (bucket_allocno_compare_func): Check frequency first.
7117 (sort_bucket): Add compare function as a parameter.
7118 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7119 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7120 (push_allocno_to_stack): Rewrite for checking new allocno
7122 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
7123 (push_only_colorable): Pass new parameter to sort_bucket.
7124 (push_allocno_to_spill): Remove.
7125 (allocno_spill_priority_compare): Make it inline and rewrite.
7126 (splay_tree_allocate, splay_tree_free): Remove.
7127 (allocno_spill_sort_compare): New function.
7128 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
7129 build and use splay tree. Choose first allocno in uncolorable
7130 allocno bucket to spill. Remove setting spill cost.
7131 (all_conflicting_hard_regs): Remove.
7132 (setup_allocno_available_regs_num): Check only profitable hard
7133 regs. Print info about hard regs nodes.
7134 (setup_allocno_left_conflicts_size): Remove.
7135 (put_allocno_into_bucket): Don't call
7136 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
7137 (improve_allocation): New.
7138 (color_allocnos): Call setup_profitable_hard_regs,
7139 form_object_hard_regs_nodes_forest, improve_allocation,
7140 finish_object_hard_regs_nodes_forest. Setup spill cost.
7141 (print_loop_title): Use pressure classes.
7142 (color_allocnso): Ditto.
7143 (do_coloring): Remove allocation and freeing splay_tree_node_pool
7144 and allocnos_for_spilling.
7145 (ira_sort_regnos_for_alter_reg): Don't setup members
7146 {first,next}_coalesced_allocno.
7147 (color): Remove allocating and freeing removed_splay_allocno_vec.
7148 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7149 prohibited_class_mode_regs.
7151 * ira-lives.c: Remove mentioning cover classes from the file. Fix
7153 (update_allocno_pressure_excess_length): Use pressure classes.
7154 (inc_register_pressure, dec_register_pressure): Check for pressure
7156 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7157 pressure class. Use ira_reg_class_nregs instead of
7158 ira_reg_class_max_nregs.
7159 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7160 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7161 (single_reg_class): Use ira_reg_class_nregs instead of
7162 ira_reg_class_max_nregs.
7163 (process_bb_node_lives): Use pressure classes.
7165 * ira-emit.c: Remove mentioning cover classes from the file. Use
7166 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
7167 (change_loop): Use pressure classes.
7168 (modify_move_list): Call ira_set_allocno_class instead of
7169 ira_set_allocno_cover_class.
7171 * ira-build.c: Remove mentioning cover classes from the file. Use
7172 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7173 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
7174 ALLOCNO_UPDATED_CLASS_COST instead of
7175 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7176 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7177 (ira_create_allocno): Remove initialization of
7178 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
7179 ALLOCNO_COLORABLE_P.
7180 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7181 Update conflict regs for the objects.
7182 (create_cap_allocno): Remove assert. Don't propagate
7183 ALLOCNO_AVAILABLE_REGS_NUM.
7184 (ira_free_allocno_costs): New function.
7185 (finish_allocno): Change a part of code into call of
7186 ira_free_allocno_costs.
7187 (low_pressure_loop_node_p): Use pressure classes.
7188 (object_range_compare_func): Don't compare classes.
7189 (setup_min_max_conflict_allocno_ids): Ditto.
7191 * loop-invariant.c: Remove mentioning cover classes from the file.
7192 Use ira_pressure_classes and ira_pressure_classes_num instead of
7193 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7194 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7195 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7196 Use reg_allocno_class instead of reg_cover_class.
7197 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7198 STACK_REG_COVER_CLASS.
7199 (get_regno_cover_class): Rename to get_regno_pressure_class.
7200 (move_loop_invariants): Initialize and finalize regstat.
7202 * ira.c: Remove mentioning cover classes from the file. Add
7203 comments about coloring without cover classes. Use ALLOCNO_CLASS
7204 instead of ALLOCNO_COVER_CLASS. Fix formatting.
7205 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7206 setup_class_subset_and_memory_move_costs.
7207 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7208 (setup_cover_and_important_classes): Rename to
7209 setup_allocno_and_important_classes.
7210 (setup_class_translate_array): New.
7211 (setup_class_translate): Call it for allocno and pressure classes.
7212 (cover_class_order): Rename to allocno_class_order.
7213 (comp_reg_classes_func): Use ira_allocno_class_translate instead
7214 of ira_class_translate.
7215 (reorder_important_classes): Set up ira_important_class_nums.
7216 (setup_reg_class_relations): Set up ira_reg_class_superunion.
7217 (print_class_cover): Rename to print_classes. Add parameter.
7218 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7219 Print pressure classes too.
7220 (find_reg_class_closure): Rename to find_reg_classes. Don't call
7221 setup_reg_subclasses.
7222 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7223 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7224 (setup_prohibited_class_mode_regs): Use
7225 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7226 (clarify_prohibited_class_mode_regs): New function.
7227 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7228 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7229 (ira_init_once): Initialize them.
7230 (free_register_move_costs): Process them.
7231 (ira_init): Move calls of find_reg_classes and
7232 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7233 Call clarify_prohibited_class_mode_regs.
7234 (ira_no_alloc_reg): Remove.
7235 (too_high_register_pressure_p): Use pressure classes.
7237 * sched-deps.c: Remove mentioning cover classes from the file.
7238 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7239 ira_pressure_classes and ira_pressure_classes_num instead of
7240 ira_reg_class_cover_size and ira_reg_class_cover.
7241 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7242 sched_regno_pressure_class instead of sched_regno_cover_class.
7243 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
7244 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7246 * ira.h: Add 2010 to Copyright.
7247 (ira_no_alloc_reg): Remove external.
7248 (struct target_ira): Rename x_ira_hard_regno_cover_class,
7249 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7250 x_ira_class_translate to x_ira_hard_regno_allocno_class,
7251 x_ira_allocno_classes_num, x_ira_allocno_classes, and
7252 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
7253 x_ira_pressure_classes, x_ira_pressure_class_translate, and
7254 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
7255 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
7256 x_ira_no_alloc_regs.
7257 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7258 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7259 ira_allocno_classes_num and ira_allocno_classes.
7260 (ira_class_translate): Rename to ira_allocno_class_translate.
7261 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7262 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7263 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7264 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7265 (ira_no_alloc_regs): New.
7267 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
7268 classes from the file. Use ALLOCNO_CLASS instead of
7269 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
7270 ALLOCNO_COVER_CLASS_COST.
7271 (regno_cover_class): Rename to regno_aclass.
7272 (record_reg_classes): Use ira_reg_class_subunion instead of
7273 ira_reg_class_union.
7274 (record_address_regs): Check overflow.
7275 (scan_one_insn): Ditto.
7276 (print_allocno_costs): Print total mem cost fore regional allocation.
7277 (print_pseudo_costs): Use REG_N_REFS.
7278 (find_costs_and_classes): Use classes intersected with them on the
7279 1st pass. Check overflow. Use ira_reg_class_subunion instead of
7280 ira_reg_class_union. Use ira_allocno_class_translate and
7281 regno_aclass instead of ira_class_translate and regno_cover_class.
7282 Modify code for finding regno_aclass. Setup preferred classes for
7284 (setup_allocno_cover_class_and_costs): Rename to
7285 setup_allocno_class_and_costs. Use regno_aclass instead of
7286 regno_cover_class. Use ira_set_allocno_class instead of
7287 ira_set_allocno_cover_class.
7288 (init_costs, finish_costs): Use regno_aclass instead of
7290 (ira_costs): Use setup_allocno_class_and_costs instead of
7291 setup_allocno_cover_class_and_costs.
7292 (ira_tune_allocno_costs_and_cover_classes): Rename to
7293 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
7294 by processing objects. Use ira_reg_class_max_nregs instead of
7295 ira_reg_class_nregs.
7297 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7299 * sched-int.h: Remove mentioning cover classes from the file.
7300 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7302 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
7303 classes from the file.
7304 (struct reg_pref): Rename coverclass into allocnoclass.
7305 (reg_cover_class): Rename to reg_allocno_class.
7307 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7309 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7311 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7313 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7315 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7317 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7319 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7321 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7323 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7325 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7327 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7328 (i386_ira_cover_classes): Ditto.
7330 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7332 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7334 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7336 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7338 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7340 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7342 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7343 (mips_ira_cover_classes): Ditto.
7345 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7347 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7349 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7351 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7353 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7355 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7356 (IRA_COVER_CLASSES_VSX): Ditto.
7358 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7359 (rs6000_ira_cover_classes): Ditto.
7361 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7363 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7365 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7367 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7369 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7371 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7373 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7375 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7377 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7379 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7381 2011-03-29 Jakub Jelinek <jakub@redhat.com>
7384 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7385 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7386 dw_fde_unlikely_section_end_label, cold_in_std_section,
7387 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7388 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7390 (output_fde): Use dw_fde_second_{begin,end} if second is
7391 true, otherwise dw_fde_{begin,end}.
7392 (output_call_frame_info): Test dw_fde_second_begin != NULL
7393 instead of dw_fde_switched_sections.
7394 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7395 fields, initialize new fields. Initialize in_std_section
7396 unconditionally from the first partition.
7397 (dwarf2out_end_epilogue): Don't override dw_fde_end when
7398 dw_fde_second_begin is non-NULL.
7399 (dwarf2out_switch_text_section): Stop initializing removed
7400 dw_fde_struct fields, initialize new fields, initialize
7401 also dw_fde_end here. Set dw_fde_switch_cfi even when
7402 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
7403 (struct var_loc_list_def): Add last_before_switch field.
7404 (arange_table, arange_table_allocated, arange_table_in_use,
7405 ARANGE_TABLE_INCREMENT, add_arange): Removed.
7406 (size_of_aranges): Count !in_std_section and !second_in_std_section
7407 hunks in fdes, instead of looking at arange_table_in_use.
7408 (output_aranges): Add aranges_length argument, don't call
7409 size_of_aranges here. Instead of using aranges_table*
7410 emit ranges for fdes when !in_std_section resp.
7411 !second_in_std_section.
7412 (dw_loc_list): Break ranges crossing section switch.
7413 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7414 use dw_fde_second_end instead of dw_fde_end as end of last range.
7415 (gen_subprogram_die): Don't call add_arange. Use
7416 dw_fde_{begin,end} for first partition and if switched
7417 section dw_fde_second_{begin,end} for the second.
7418 (var_location_switch_text_section_1,
7419 var_location_switch_text_section): New functions.
7420 (dwarf2out_begin_function): Initialize cold_text_section even
7421 when function_section () isn't text_section.
7422 (prune_unused_types): Don't walk arange_table.
7423 (dwarf2out_finish): Don't needlessly test
7424 flag_reorder_blocks_and_partition when testing cold_text_section_used.
7425 If info_section_emitted, call size_of_aranges and if it indicates
7426 non-empty .debug_aranges, call output_aranges with the computed
7427 size. Stop using removed dw_fde_struct fields, use
7428 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7432 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7433 create ENTRY_VALUE if incoming or address of incoming's MEM
7435 * dwarf2out.c (mem_loc_descriptor): Don't emit
7436 DW_OP_GNU_entry_value of DW_OP_fbreg.
7437 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7438 on ENTRY_VALUE is able to find the canonical parameter VALUE.
7439 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7440 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7442 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7443 is a REG_P or MEM_P with REG_P address, compute hash directly
7444 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7445 (preserve_only_constants): Don't clear VALUES forwaring
7446 ENTRY_VALUE to some other VALUE.
7448 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
7450 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7453 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7455 * cfgexpand.c (expand_gimple_cond): Always set the source location and
7456 block before expanding the statement.
7457 (expand_gimple_stmt_1): Likewise. Set them here...
7458 (expand_gimple_stmt): ...and not here. Tidy.
7459 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7462 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7464 * Makefile.in: New rule for cprop.o.
7465 * gcse.c: Move constant/copy propagation to cprop.c.
7466 (compute_local_properties): Only handle expression tables.
7467 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7468 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7469 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7470 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7471 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7472 compute_cprop_data, find_used_regs, try_replace_reg,
7473 find_avail_set, cprop_jump, constprop_register, cprop_insn,
7474 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7475 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7476 find_bypass_set, reg_killed_on_edge, bypass_block,
7477 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7478 execute_rtl_cprop, pass_rtl_cprop): Move to...
7479 * cprop.c: ...here. New file, constant/copy propagation for RTL
7480 moved from gcse.c to here with minor cleanups in duplicated code.
7482 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
7484 * config/i386/i386.c (flag_opts): Fix a typo in
7485 -mavx256-split-unaligned-store.
7487 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7489 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7490 LIBCALL_VALUE): Remove macros.
7491 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7492 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7493 (h8300_function_value, h8300_libcall_value,
7494 h8300_function_value_regno_p): New functions.
7496 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7498 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7500 2011-03-28 Jeff Law <law@redhat.com>
7502 * tree-ssa-threadupdate.c (redirect_edges): Call
7503 create_edge_and_update_destination_phis as needed.
7504 (create_edge_and_update_destination_phis): Accept new BB argument.
7505 All callers updated.
7506 (thread_block): Do not update the profile when threading around
7507 intermediate blocks.
7508 (thread_single_edge): Likewise.
7509 (determine_bb_domination_status): If BB is not a successor of the
7510 loop header, return NONDOMINATING.
7511 (register_jump_thread): Note when we register a jump thread around
7512 an intermediate block.
7513 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7514 (thread_across_edge): Use it.
7516 2011-03-28 Tristan Gingold <gingold@adacore.com>
7518 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7519 when for_return is 2.
7521 2011-03-28 Jeff Law <law@redhat.com>
7523 * var-tracking.c (canonicalize_values_mark): Delete unused
7525 (canonicalize_values_star, set_variable_part): Likewise.
7526 (clobber_variable_part, delete_variable_part): Likewise.
7528 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7530 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7532 2011-03-28 Martin Jambor <mjambor@suse.cz>
7534 * tree-inline.c (expand_call_inline): Do not check that destination
7536 (optimize_inline_calls): Assert that destination node is analyzed.
7537 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7538 not call tree_lowering_passes.
7539 * cgraph.h (cgraph_analyze_function): Declare.
7540 * cgraphunit.c (cgraph_analyze_function): Make public.
7542 2011-03-28 Joseph Myers <joseph@codesourcery.com>
7544 * config/sparc/sparc-opts.h: New.
7545 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7546 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7547 (sparc_option_override): Store processor_type enumeration rather
7548 than string in cpu_default. Remove name and enumeration from
7549 cpu_table. Directly default -mcpu then default -mtune from -mcpu
7550 without using sparc_select. Use target_flags_explicit instead of
7552 * config/sparc/sparc.h (enum processor_type): Move to
7554 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7555 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7556 HeaderInclude entry.
7557 (mcpu=, mtune=): Use Var and Enum.
7558 (sparc_processor_type): New Enum and EnumValue entries.
7560 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7561 Iain Sandoe <iains@gcc.gnu.org>
7564 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7566 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7568 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7569 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7570 Insert new statements at it in lieu of STMT.
7571 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7572 * tree-vect-stmts.c (vectorizable_store): Likewise.
7573 (vectorizable_load): Likewise.
7575 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
7577 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7582 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7584 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7585 unaligned 256bit load/store.
7586 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7587 (*avx_movdqu<avxmodesuffix>): Likewise.
7589 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7592 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7593 * config/pa/pa.md (iordi3): Use new predicate in expander.
7596 2011-03-27 Anatoly Sokolov <aesok@post.ru>
7598 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7599 FUNCTION_VALUE_REGNO_P): Remove macros.
7600 * config/mips/mips-protos.h (mips_function_value): Remove.
7601 * config/mips/mips.c (mips_function_value): Rename to...
7602 (mips_function_value_1): ... this. Make static. Handle receiving
7603 the function type in 'fn_decl_or_type' argument.
7604 (mips_function_value, mips_libcall_value,
7605 mips_function_value_regno_p): New function.
7606 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7607 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7609 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7611 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7612 and -mavx256-split-unaligned-store.
7613 (ix86_option_override_internal): Split 32-byte AVX unaligned
7614 load/store by default.
7615 (ix86_avx256_split_vector_move_misalign): New.
7616 (ix86_expand_vector_move_misalign): Use it.
7618 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7619 -mavx256-split-unaligned-store.
7621 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7622 256bit load/store. Generate unaligned store on misaligned memory
7624 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7626 (*avx_movdqu<avxmodesuffix>): Likewise.
7628 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7629 -mavx256-split-unaligned-store.
7631 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7634 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7637 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7639 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7640 opno arguments with an expand_operand. Use create_input_operand.
7641 (mips_prepare_builtin_target): Delete.
7642 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7644 (mips_expand_builtin_direct): Use create_output_operand and
7645 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
7646 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
7647 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7649 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
7651 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7653 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7655 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7657 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7658 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
7659 basic blocks and call commit_edge_insertions directly.
7660 (fixup_abnormal_edges): Move from here to...
7661 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
7662 on the edges and return whether some have actually been inserted.
7663 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7666 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
7668 PR rtl-optimization/48144
7669 * sel-sched-ir.c (merge_history_vect): Factor out from ...
7670 (merge_expr_data): ... here.
7671 (av_set_intersect): Rename to av_set_code_motion_filter.
7672 Update all callers. Call merge_history_vect when an expression
7673 is found in both sets.
7674 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7676 2011-03-26 Alan Modra <amodra@gmail.com>
7678 * config/rs6000/predicates.md (word_offset_memref_op): Handle
7679 cmodel medium addresses.
7680 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7681 64-bit gpr loads and stores.
7682 (rs6000_secondary_reload_ppc64): New function.
7683 * config/rs6000/rs6000-protos.h: Declare it.
7684 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7686 2011-03-26 Alan Modra <amodra@gmail.com>
7689 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7690 GNU Go in traceback table.
7692 2011-03-25 Richard Henderson <rth@redhat.com>
7694 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7695 if there are exactly 6 operands.
7696 (set_storage_via_setmem): Similarly.
7698 2011-03-25 Kai Tietz <ktietz@redhat.com>
7700 * collect2.c (write_c_file_stat): Handle backslash
7701 as right-hand directory separator.
7702 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7703 checking just for slash.
7704 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7705 instead of checking for trailing slash.
7706 * gcc.c (record_temp_file): Use filename_cmp instead
7708 (do_spec_1): Likewise.
7709 (replace_outfile_spec_function): Likewise.
7710 (is_directory): Use filename_ncmp instead of strncmp.
7711 (print_multilib_info): Likewise.
7712 * gcov.c (find_source): Use filename_cmp instead
7714 (make_gcov_file_name): Fix order of slash/backslash
7716 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7717 (add_standard_paths): Likewise.
7718 * mips-tfile.c (saber_stop): Handle backslash.
7719 * prefix.c (update_path): Use filename_ncmp instead of
7721 * profile.c (output_location): Use filename_cmp instead
7723 * read-md.c (handle_toplevel_file): Handle backslash.
7724 * tlink.c (frob_extension): Likewise.
7725 * tree-cfg.c (same_line_p): Use filename_cmp instead of
7727 * tree-dump.c (dequeue_and_dump): Handle backslash.
7728 * tree.c (get_file_function_name): Likewise.
7729 * gengtype.c (read_input_list): Likewise.
7730 (get_file_realbasename): Likewise.
7731 (get_output_file_with_visibility): Use filename_cmp
7734 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
7736 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7739 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7741 * fold-const.c (expr_location_or): New function.
7742 (fold_truth_not_expr): Call it.
7744 2011-03-25 Jeff Law <law@redhat.com>
7746 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7748 * c-family/c-common.c (def_fn_type): Likewise.
7749 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7750 * emit-rtl.c (gen_rtvec): Likewise.
7751 * lto/lto-lang.c (def_fn_type): Likewise.
7753 2011-03-25 Richard Guenther <rguenther@suse.de>
7755 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7756 also generate copies.
7757 (fini_copy_prop): Handle constant values properly.
7759 2011-03-25 Jakub Jelinek <jakub@redhat.com>
7761 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7762 mode size instead of bitsize with DWARF2_ADDR_SIZE.
7763 (hash_loc_operands, compare_loc_operands): Handle
7764 DW_OP_GNU_entry_value.
7766 2011-03-25 Kai Tietz <ktietz@redhat.com>
7768 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7769 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7770 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7771 comment and use macro TARGET_64BIT_MS_ABI instead.
7772 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7773 and change default behavior for 32-bit MS_ABI.
7774 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7775 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7777 (ix86_cfun_abi): Likewise.
7778 (ix86_maybe_switch_abi): Adjust comment.
7779 (init_cumulative_args): Check for bit-ness in MS_ABI case.
7780 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7781 instead of checking for SYSV_ABI.
7782 (ix86_nsaved_sseregs): Likewise.
7783 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7785 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7786 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7787 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7788 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7789 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7791 2011-03-25 Richard Guenther <rguenther@suse.de>
7793 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7794 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7795 (verify_gimple): Remove.
7796 * tree-cfg.c (verify_gimple_call): Merge verification
7798 (verify_gimple_phi): Merge verification from verify_stmts.
7799 (verify_gimple_label): New function.
7800 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7801 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7802 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7803 (verify_stmts): Rename to verify_gimple_in_cfg.
7804 (verify_gimple_in_cfg): New function.
7805 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7806 * tree-ssa.c (verify_ssa): Likewise.
7807 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7809 2011-03-25 Richard Guenther <rguenther@suse.de>
7811 * passes.c (init_optimization_passes): Add FRE pass after
7814 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
7815 Andrew Stubbs <ams@codesourcery.com>
7817 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7819 (arm_movdi_vfp_cortexa8): New pattern.
7820 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7821 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7822 instructions when tuning for Cortex-A8. Set attribute "arch".
7823 * config/arm/arm.md: Move include arm-tune.md up a bit.
7824 (define_attr "arch"): Add "onlya8" and "nota8" values.
7825 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7827 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7831 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7833 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7834 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7835 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7836 * passes.c (init_optimization_passes): Move
7837 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7839 2011-03-25 Kai Tietz <ktietz@redhat.com>
7841 * c-typeck.c (comptypes_internal): Replace target
7842 hook call of comp_type_attributes by version in tree.c file.
7843 * gimple.c (gimple_types_compatible_p_1): Likewise.
7844 * tree-ssa.c (useless_type_conversion_p): Likewise.
7845 * tree.c (build_type_attribute_qual_variant): Likewise.
7846 (attribute_value_equal): New static helper function.
7847 (comp_type_attributes): New function.
7848 (merge_attributes): Use attribute_value_equal for comparison.
7849 (attribute_list_contained): Likewise.
7850 * tree.h (comp_type_attributes): New prototype.
7852 2011-03-25 Richard Guenther <rguenther@suse.de>
7854 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7855 of complex types at -O0.
7856 (verify_gimple_assign_binary): Likewise.
7857 (verify_gimple_assign_ternary): Likewise.
7859 2011-03-24 Mark Wielaard <mjw@redhat.com>
7861 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7862 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7864 2011-03-24 Mark Wielaard <mjw@redhat.com>
7867 * dwarf2out.c (output_abbrev_section): Only write table when
7868 abbrev_die_table_in_use > 1.
7870 2011-02-24 Richard Henderson <rth@redhat.com>
7872 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7873 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7874 (alpha_expand_unaligned_load_words): Use extql.
7875 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7876 (emit_insxl): Handle all modes for consistency.
7878 2011-02-24 Richard Henderson <rth@redhat.com>
7880 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7881 (alpha_expand_unaligned_load): Likewise.
7882 (alpha_expand_unaligned_store): Likewise.
7883 (alpha_expand_unaligned_load_words): Likewise.
7884 (alpha_expand_unaligned_store_words): Likewise.
7885 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7886 (alpha_split_lock_test_and_set_12): Likewise.
7887 (print_operand, alpha_fold_builtin_extxx): Likewise.
7888 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7889 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7890 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7891 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7892 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7893 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7894 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7895 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7896 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7897 (extwl, extll, extql): Similarly.
7898 (inswh, inslh, insqh): Similarly.
7899 (mskbl, mskwl, mskll, mskql): Similarly.
7900 (mskwh, msklh, mskqh): Similarly.
7902 2011-02-24 Richard Henderson <rth@redhat.com>
7904 * config/alpha/alpha.md (attribute isa): Add er, ner.
7905 (attribute enabled): Handle them.
7906 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7908 2011-02-24 Richard Henderson <rth@redhat.com>
7910 * config/alpha/alpha.md (attribute isa): Add vms.
7911 (attribute enabled): Handle it.
7912 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7913 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7914 (*movtf): Rename from *movtf_internal for consistency.
7915 (*movsi): Merge with *movsi_nt_vms.
7916 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7917 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7918 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7919 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7921 2011-02-24 Richard Henderson <rth@redhat.com>
7923 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7924 (extendqisi2, extendhisi2): Likewise.
7925 (extendqidi2): Simplify BWX/non-BWX expansions.
7926 (extendhidi2): Similarly.
7928 2011-02-24 Richard Henderson <rth@redhat.com>
7930 * config/alpha/alpha.md (attribute isa): New.
7931 (attribute enabled): New.
7932 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7933 (zero_extendqisi2, zero_extendqidi2): Similarly.
7934 (zero_extendhisi2, zero_extendhidi2): Similarly.
7935 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7937 2011-02-24 Richard Henderson <rth@redhat.com>
7939 * config/alpha/predicates.md (input_operand): Revert last change;
7940 update comment to mention 32-bit VMS rather than Windows.
7942 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7944 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7945 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7946 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7947 * passes.c (init_optimization_passes): Move
7948 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7950 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7952 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7954 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7956 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7959 2011-03-24 Jakub Jelinek <jakub@redhat.com>
7962 * simplify-rtx.c (simplify_const_unary_operation): Call
7963 real_convert when changing mode class with FLOAT_EXTEND.
7965 2011-03-24 Nick Clifton <nickc@redhat.com>
7967 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7968 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7969 * config/rx/rx.c (rx_option_override): Set align_jumps,
7970 align_loops and align_labels if not set by the user.
7971 (rx_align_for_label): New function.
7972 (rx_max_skip_for_label): New function.
7973 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7974 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7975 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7976 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7977 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7979 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7981 PR rtl-optimization/48263
7982 * optabs.c (expand_binop_directly): Reinstate convert_modes code
7983 and original commutative_p handling. Use maybe_gen_insn.
7985 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7987 * reload.c (find_reloads_subreg_address): Add address_reloaded
7988 parameter and return true there if the full address has been
7990 (find_reloads_toplev): Pass address_reloaded flag.
7991 (find_reloads_address_1): Don't use address_reloaded parameter.
7993 2011-03-24 Jeff Law <law@redhat.com>
7995 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7996 unused variable "ann".
7997 (remove_unused_locals): Likewise.
7999 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8002 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8005 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8007 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8008 for invalid symbolic addresses.
8009 (s390_secondary_reload): Don't use s390_check_symref_alignment for
8012 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8014 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8015 the argument in calls to fold_truth_not_expr.
8017 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8019 * tree.c (record_node_allocation_statistics): New function.
8020 (make_node_stat, copy_node_stat, build_string): Call it.
8021 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8022 (build1_stat, build_omp_clause): Likewise.
8024 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8026 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8029 2011-03-24 Richard Guenther <rguenther@suse.de>
8031 PR tree-optimization/48271
8032 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8033 blocks that still exist.
8035 2011-03-24 Richard Guenther <rguenther@suse.de>
8037 PR tree-optimization/48270
8038 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8039 not free datarefs before ddrs.
8041 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8043 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8044 from the address built for a reference with variable offset.
8046 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8049 * config/i386/i386.md (*movdf_internal_rex64): Do not split
8050 alternatives that can be handled with movq or movabsq insn.
8051 (*movdf_internal): Disable for !TARGET_64BIT.
8052 (*movdf_internal_nointeger): Ditto.
8053 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8055 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8057 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8058 (FUNCTION_ARG_ADVANCE): Likewise.
8059 * tm.texi.in: Change references to them to hook references.
8060 * tm.texi: Regenerate.
8061 * targhooks.c (default_function_arg): Eliminate check for target macro.
8062 (default_function_incoming_arg): Likewise.
8063 (default_function_arg_advance): Likewise.
8064 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8065 (function_arg_advance): Likewise.
8066 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8068 2011-03-24 Richard Guenther <rguenther@suse.de>
8071 * tree-object-size.c (addr_object_size): Do not double-account
8072 for MEM_REF offsets.
8074 2011-03-24 Diego Novillo <dnovillo@google.com>
8076 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8077 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8078 (lto_input_data_block): Move from lto-opts.c. Make extern.
8080 (lto_input_string): Rename from input_string. Make extern.
8082 * lto-streamer-out.c (lto_output_string_with_length): Rename from
8083 output_string_with_length.
8084 Output 0 to indicate a non-NULL string. Update all callers to
8086 (lto_output_string): Rename from output_string. Make extern.
8088 (lto_output_decl_state_streams): Make extern.
8089 (lto_output_decl_state_refs): Make extern.
8090 * lto-streamer.h (lto_input_string): Declare.
8091 (lto_input_data_block): Declare.
8092 (lto_output_string): Declare.
8093 (lto_output_string_with_length): Declare.
8094 (lto_output_decl_state_streams): Declare.
8095 (lto_output_decl_state_refs): Declare.
8097 2011-03-24 Richard Guenther <rguenther@suse.de>
8099 PR tree-optimization/46562
8100 * tree.c (build_invariant_address): New function.
8101 * tree.h (build_invariant_address): Declare.
8102 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8103 a renamed function moved ...
8104 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8105 Take valueization callback parameter.
8106 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8107 * gimple-fold.h: New file.
8108 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8109 (ccp_fold, fold_const_aggregate_ref,
8110 fold_ctor_reference, fold_nonarray_ctor_reference,
8111 fold_array_ctor_reference, fold_string_cst_ctor_reference,
8112 get_base_constructor): Move ...
8113 * gimple-fold.c: ... here.
8114 (gimple_fold_stmt_to_constant_1): New function
8115 split out from ccp_fold. Take a valueization callback parameter.
8116 Valueize all operands.
8117 (gimple_fold_stmt_to_constant): New wrapper function.
8118 (fold_const_aggregate_ref_1): New function split out from
8119 fold_const_aggregate_ref. Take a valueization callback parameter.
8120 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8121 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8122 invariant POINTER_PLUS_EXPRs to invariant form.
8123 (vn_valueize): New function.
8124 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8125 * tree-vrp.c (vrp_valueize): New function.
8126 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8127 to fold statements to constants.
8128 * tree-ssa-pre.c (eliminate): Properly guard propagation of
8129 function declarations.
8130 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8131 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8133 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8135 * config/h8300/predicates.md (jump_address_operand): Fix register
8138 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
8140 * doc/invoke.texi (max-stores-to-sink): Document.
8141 * params.h (MAX_STORES_TO_SINK): Define.
8142 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8143 if either vectorization or if-conversion is disabled.
8144 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8145 tree-vect-data-refs.c vect_equal_offsets.
8146 (dr_equal_offsets_p): New function.
8147 (find_data_references_in_bb): Remove static.
8148 * tree-data-ref.h (find_data_references_in_bb): Declare.
8149 (dr_equal_offsets_p): Likewise.
8150 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8151 (vect_drs_dependent_in_basic_block): Update calls to
8153 (vect_check_interleaving): Likewise.
8154 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8155 (cond_if_else_store_replacement): Rename to...
8156 (cond_if_else_store_replacement_1): ... this. Change arguments and
8158 (cond_if_else_store_replacement): New function.
8159 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8160 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8162 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
8165 * config/arm/arm.md (casesi): Use the gen_int_mode() function
8166 to subtract lower bound instead of GEN_INT().
8168 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
8173 * doc/extend.texi (Alignment): Move section to match order in TOC.
8174 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8175 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8177 2011-03-23 Jeff Law <law@redhat.com>
8179 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8180 before removing the edge.
8182 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8183 it may have been freed by redirect_branch_edge or
8184 redirect_edge_succ_nodup.
8186 2011-03-23 Richard Guenther <rguenther@suse.de>
8188 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8189 (check_va_list_escapes): Likewise.
8190 (check_all_va_list_escapes): Likewise.
8192 2011-03-23 Richard Guenther <rguenther@suse.de>
8194 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8195 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8196 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8197 (alias.o): Likewise.
8198 (ipa-type-escape.o): Remove.
8199 (ipa-struct-reorg.o): Likewise.
8200 (GTFILES): Remove ipa-struct-reorg.c.
8201 * alias.c: Do not include ipa-type-escape.h.
8202 * tree-ssa-alias.c: Likewise.
8203 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8204 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8205 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8206 and ipa-type-escape passes.
8207 * tree-pass.h (pass_ipa_type_escape): Remove.
8208 (pass_ipa_struct_reorg): Likewise.
8209 * ipa-struct-reorg.h: Remove.
8210 * ipa-struct-reorg.c: Likewise.
8211 * ipa-type-escape.h: Likewise.
8212 * ipa-type-escape.c: Likewise.
8213 * doc/invoke.texi (-fipa-struct-reorg): Remove.
8214 (--param struct-reorg-cold-struct-ratio): Likewise.
8215 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8216 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8217 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8219 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8221 * config/s390/2084.md: Enable all insn reservations also for z9_ec
8222 cpu attribute value.
8223 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8224 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8225 * config/s390/s390.c (processor_flags_table): New constant array.
8226 (s390_handle_arch_option): Remove.
8227 (s390_handle_option): Remove s390_handle_arch_option invocations
8228 and OPT_mwarn_framesize_ handling.
8229 (s390_option_override): Remove s390_handle_arch_option invocation.
8230 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8232 * config/s390/s390.md (cpu attribute): Add z9_ec value.
8233 * config/s390/s390.opt (s390_tune, s390_arch)
8234 (march=): Replace s390_arch_option enum and values with
8235 processor_type. Set variable name to s390_arch. Set
8236 initialization value.
8237 (mtune=): Replace s390_arch_option with processor_type. Set
8238 variable name to s390_tune. Set initialization value.
8240 2011-03-23 Julian Brown <julian@codesourcery.com>
8242 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8243 accesses which are not naturally aligned.
8245 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8248 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8250 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8252 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8253 parameter from "int" to "enum insn_code".
8254 (expand_operand_type): New enum.
8255 (expand_operand): New structure.
8256 (create_expand_operand): New function.
8257 (create_fixed_operand, create_output_operand): Likewise
8258 (create_input_operand, create_convert_operand_to): Likewise.
8259 (create_convert_operand_from, create_address_operand): Likewise.
8260 (create_integer_operand): Likewise.
8261 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8262 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8263 (expand_insn, expand_jump_insn): Likewise.
8264 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8265 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8266 (expand_movstr, expand_builtin___clear_cache): Likewise.
8267 (expand_builtin_lock_release): Likewise.
8268 * explow.c (allocate_dynamic_stack_space): Likewise.
8269 (probe_stack_range): Likewise. Allow check_stack to FAIL,
8270 and use the default handling in that case.
8271 * expmed.c (check_predicate_volatile_ok): Delete.
8272 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8273 (emit_cstore): Likewise.
8274 * expr.c (emit_block_move_via_movmem): Likewise.
8275 (set_storage_via_setmem, expand_assignment): Likewise.
8276 (emit_storent_insn, try_casesi): Likewise.
8277 (emit_single_push_insn): Likewise. Allow the expansion to fail.
8278 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8279 (expand_vec_shift_expr, expand_binop_directly): Likewise.
8280 (expand_twoval_unop, expand_twoval_binop): Likewise.
8281 (expand_unop_direct, emit_indirect_jump): Likewise.
8282 (emit_conditional_move, vector_compare_rtx): Likewise.
8283 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8284 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8285 (expand_sync_lock_test_and_set): Likewise.
8286 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
8287 (emit_unop_insn): Likewise.
8288 (expand_copysign_absneg): Change icode to an insn_code.
8289 (create_convert_operand_from_type): New function.
8290 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8291 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8292 (expand_insn, expand_jump_insn): Likewise.
8293 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8294 than const_int_operand for operand 2.
8296 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8298 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8301 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8303 * emit-rtl.c (emit_pattern_before_noloc): New function.
8304 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8305 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8306 (emit_pattern_after_noloc): New function.
8307 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8308 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8310 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8312 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8313 (__ffsDI2): Likewise.
8315 2011-03-22 Richard Henderson <rth@redhat.com>
8317 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8318 of !TARGET_ABI_OPEN_VMS.
8319 (alpha_trampoline_init, alpha_start_function): Likewise.
8320 (alpha_expand_epilogue, alpha_file_start): Likewise.
8321 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8322 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8323 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8324 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8325 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8327 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8329 * config/s390/s390-opts.h: New.
8330 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8331 s390_arch_flags, s390_warn_framesize, s390_stack_size,
8332 s390_stack_guard): Remove.
8333 (s390_handle_arch_option): Return void. Take enum
8334 s390_arch_option value instead of string and searching array.
8335 (s390_handle_option): Don't assert that global structures are in
8336 use. Access variables via opts pointer. Use error_at. Don't use
8337 sscanf for -mstack-guard= or -mstack-size=. Update call to
8338 s390_handle_arch_option.
8339 (s390_option_override): Update call to s390_handle_arch_option.
8340 (s390_emit_prologue): Use %d format for s390_stack_size in
8341 diagnostic. Use %wd for HOST_WIDE_INT.
8342 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8343 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8344 * config/s390/s390.opt (config/s390/s390-opts.h): New
8345 HeaderInclude entry.
8346 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8347 s390_arch_flags, s390_warn_framesize): New Variable entries.
8348 (s390_arch_option): New Enum and EnumValue entries.
8349 (march=): Use Enum instead of Var.
8350 (mstack-guard=, mstack-size=): Use UInteger and Var.
8353 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8355 * config/score/score.c (score_handle_option): Don't assert that
8356 global structures are in use. Access target_flags via opts
8357 pointer. Use value of -march= option to determine target_flags
8359 * config/score/score.opt (march=): Use Enum.
8360 (score_arch): New Enum and EnumValue entries.
8362 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8364 * config/mep/mep.c (option_mtiny_specified): Remove.
8365 (mep_option_override): Move register handling for -mivc2 from
8366 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
8367 instead of option_mtiny_specified.
8368 (mep_handle_option): Access target_flags via opts pointer. Don't
8369 assert that global structures are in use. Defer part of -mivc2
8370 handling and move it to mep_option_override.
8371 * config/mep/mep.opt (IVC2): New Mask entry.
8372 (mivc2): Use Var and Defer instead of Mask.
8374 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8376 * config/v850/v850-opts.h: New.
8377 * config/v850/v850.c (small_memory): Replace with
8378 small_memory_physical_max array. Make that array static const.
8379 (v850_handle_memory_option): Take integer value of argument. Take
8380 gcc_options pointer, option text and location. Return void.
8381 Update for changes to small memory structures.
8382 (v850_handle_option): Access target_flags via opts pointer. Don't
8383 assert that global structures are in use. Update calls to
8384 v850_handle_memory_option.
8385 (v850_encode_data_area): Update references to small memory settings.
8386 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8387 (enum small_memory_type): Move to v850-opts.h.
8388 * config/v850/v850.opt (config/v850/v850-opts.h): New
8389 HeaderInclude entry.
8390 (small_memory_max): New Variable entry.
8391 (msda): Replace by pair of options msda= and msda-. Use UInteger.
8392 (mtda, mzda): Likewise.
8394 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8396 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8397 pointer. Don't assert that global structures are in use.
8399 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8401 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8402 via opts pointer. Don't assert that global structures are in use.
8404 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8406 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8407 (munix=93): Use Var.
8408 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8409 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8410 * config/pa/pa-opts.h: New.
8411 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8412 (pa_handle_option): Don't assert that global structures are in
8413 use. Access target_flags via opts pointer. Don't handle
8414 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8416 (pa_option_override): Handle deferred OPT_mfixed_range_.
8418 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8420 * config/mn10300/mn10300-opts.h: New.
8421 * config/mn10300/mn10300.c (mn10300_processor,
8422 mn10300_tune_string): Remove.
8423 (mn10300_handle_option): Don't assert that global structures are
8424 in use. Access mn10300_processor via opts pointer. Don't handle
8426 * config/mn10300/mn10300.h (enum processor_type): Move to
8428 (mn10300_processor): Remove.
8429 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8430 HeaderInclude entry.
8431 (mn10300_processor): New Variable entry.
8434 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8436 * config/microblaze/microblaze.c: Don't include opts.h.
8437 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8438 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8439 (mno-clearbss): Use Var and Warn.
8441 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8443 * config/m32r/m32r-opts.h: New.
8444 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8445 (m32r_handle_option): Don't assert that global structures are in
8446 use. Access target_flags and m32r_cache_flush_func via opts
8447 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
8448 OPT_mno_flush_trap here.
8449 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8450 include of m32r-opts.h.
8451 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8452 HeaderInclude entry.
8453 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8454 (mmodel=): Use Enum and Var.
8455 (m32r_model): New Enum and EnumValue entries.
8456 (mno-flush-trap): Use Var.
8457 (msdata=): Use Enum and Var.
8458 (m32r_sdata): New Enum and EnumValue entries.
8460 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8462 * config/m32c/m32c.c: Don't include opts.h.
8463 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8464 m32c_handle_option): Remove.
8465 (m32c_option_override): Check global_options_set.x_target_memregs
8466 instead of target_memregs_set.
8467 * config/m32c/m32c.h (target_memregs): Remove.
8468 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8471 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8473 * config/iq2000/iq2000-opts.h: New.
8474 * config/iq2000/iq2000.c: Don't include opts.h.
8475 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8476 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8477 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8478 HeaderInclude entry.
8479 (iq2000_tune): New Variable entry.
8480 (march=): Add comment. Use Enum.
8481 (iq2000_arch): New Enum and EnumValue entries.
8482 (mcpu=): Use Enum and Var.
8483 (iq2000_tune): New Enum and EnumValue entries.
8485 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8487 * config/ia64/ia64-opts.h: New.
8488 * config/ia64/ia64.c (ia64_tune): Remove.
8489 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8491 (ia64_option_override): Handle deferred OPT_mfixed_range_.
8492 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8493 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8494 HeaderInclude entry.
8495 (ia64_tune): New Variable entry.
8496 (mfixed-range=): Use Defer and Var.
8497 (mtune=): Use Enum and Var.
8498 (ia64_tune): New Enum and EnumValue entries.
8500 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8502 * config/frv/frv-opts.h: New.
8503 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8505 (frv_cpu_type): Remove.
8506 * config/frv/frv.c: Don't include opts.h.
8507 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8508 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8509 (frv_cpu_type): New Variable entry.
8510 (frv_cpu): New Enum and EnumValue entries.
8512 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8514 * config/cris/cris.c (cris_handle_option): Access target_flags via
8515 opts pointer. Don't assert that global structures are in use.
8516 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8517 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8519 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8521 * config/bfin/bfin-opts.h: New.
8522 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8523 bfin_si_revision, bfin_workarounds): Remove.
8524 (bfin_cpus): Make static const.
8525 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8526 not bfin_lib_id_given.
8527 (bfin_handle_option): Don't set bfin_lib_id_given. Access
8528 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8529 pointer. Use error_at. Don't assert that global structures are in use.
8530 * config/bfin/bfin.h: Include bfin-opts.h.
8531 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8532 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8533 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8534 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8537 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8539 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8540 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8541 or -msoft-float here.
8542 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8543 -msoft-float and -mhard-float.
8544 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8545 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8547 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8549 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8550 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8552 (LIBGCC_SPEC): Don't handle -msoft-float.
8553 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8555 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8557 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8558 -mfloat-abi=*, not -msoft-float and -mhard-float.
8559 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8561 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8562 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8563 mhard-float and msoft-float.
8564 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8565 mfloat-abi=soft in comments, not mhard-float and msoft-float.
8566 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8567 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8569 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8570 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8572 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8574 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8577 2011-03-22 Richard Henderson <rth@redhat.com>
8579 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8580 TARGET_ABI_WINDOWS_NT.
8581 (alpha_output_function_end_prologue): Likewise.
8582 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8583 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8584 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8585 (trap, *movsi_nt_vms): Likewise.
8586 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8587 (*tablejump_osf_nt_internal): Remove.
8588 * config/alpha/predicates.md (input_operand): Only test Pmode.
8590 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8592 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8593 via opts pointer. Use error_at. Don't assert that global
8594 structures are in use.
8596 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8598 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8599 (ix86_handle_option): Access ix86_isa_flags and
8600 ix86_isa_flags_explicit via opts pointer. Don't assert that
8601 global structures are in use.
8602 (ix86_function_specific_save, ix86_function_specific_restore):
8603 Update ix86_isa_flags_explicit field name.
8604 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8605 (ix86_isa_flags_explicit): Rename TargetSave entry to
8606 x_ix86_isa_flags_explicit.
8608 2011-03-22 Richard Henderson <rth@redhat.com>
8610 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8611 (alpha_option_override, direct_return): Likewise.
8612 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8613 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8614 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8615 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8616 (alpha_expand_epilogue, alpha_end_function): Likewise.
8617 (alpha_init_libfuncs): Likewise.
8618 (struct machine_function): Remove unicosmk members.
8619 (print_operand) ['t']: Remove.
8620 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8621 unicosmk_output_module_name, unicosmk_output_common,
8622 current_section_align, unicosmk_output_text_section_asm_op,
8623 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8624 unicosmk_section_type_flags, unicosmk_unique_section,
8625 unicosmk_asm_named_section, unicosmk_insert_attributes,
8626 unicosmk_output_align, unicosmk_defer_case_vector,
8627 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8628 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8629 unicosmk_output_ssib, unicosmk_add_call_info_word,
8630 unicosmk_extern_head, unicosmk_output_default_externs,
8631 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8632 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8633 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8634 * config/alpha/alpha-protos.h: Update.
8635 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8636 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8637 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8638 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8639 (*mulsi_se, mulvsi3): Likewise.
8640 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8641 (*divmodsi_internal, call, call_value, realign): Likewise.
8642 (moddi3, umoddi3): Likewise; remove duplicate expander.
8643 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8644 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8645 (*movdi_nofix): Remove r/U alternative.
8646 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8647 * config/alpha/constraints.md ("U"): Remove.
8648 * config/alpha/predicates.md (call_operand"): Don't test
8649 TARGET_ABI_UNICOSMK.
8651 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8653 * target.def (handle_option): Take gcc_options and
8654 cl_decoded_option pointers and location_t.
8655 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8656 * doc/tm.texi: Regenerate.
8657 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8658 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8659 * lto-opts.c (lto_reissue_options): Generate option structure for
8660 targetm.handle_option call.
8661 * opts.c (target_handle_option): Update call to
8662 targetm.handle_option. Remove assertions about values now passed
8664 * targhooks.c (default_target_handle_option): New.
8665 * targhooks.h (default_target_handle_option): Declare.
8666 * config/alpha/alpha.c: Include opts.h.
8667 (alpha_handle_option): Update to new hook interface.
8668 * config/arm/arm.c: Include opts.h.
8669 (arm_handle_option): Update to new hook interface.
8670 * config/arm/t-arm (arm.o): Update dependencies.
8671 * config/bfin/bfin.c: Include opts.h.
8672 (bfin_handle_option): Update to new hook interface.
8673 * config/cris/cris.c: Include opts.h.
8674 (cris_handle_option): Update to new hook interface.
8675 * config/frv/frv.c: Include opts.h.
8676 (frv_handle_option): Update to new hook interface.
8677 * config/i386/i386.c: Include opts.h.
8678 (ix86_handle_option): Update to new hook interface.
8679 (ix86_valid_target_attribute_inner_p): Generate option structure
8680 for call to ix86_handle_option.
8681 * config/i386/t-i386 (i386.o): Update dependencies.
8682 * config/ia64/ia64.c: Include opts.h.
8683 (ia64_handle_option): Update to new hook interface.
8684 * config/ia64/t-ia64 (ia64.o): Update dependencies.
8685 * config/iq2000/iq2000.c: Include opts.h.
8686 (iq2000_handle_option): Update to new hook interface.
8687 * config/m32c/m32c.c: Include opts.h.
8688 (m32c_handle_option): Update to new hook interface.
8689 * config/m32r/m32r.c: Include opts.h.
8690 (m32r_handle_option): Update to new hook interface.
8691 * config/m68k/m68k.c: Include opts.h.
8692 (m68k_handle_option): Update to new hook interface.
8693 * config/mep/mep.c: Include opts.h.
8694 (mep_handle_option): Update to new hook interface.
8695 * config/microblaze/microblaze.c: Include opts.h.
8696 (microblaze_handle_option): Update to new hook interface.
8697 * config/mips/mips.c: Include opts.h.
8698 (mips_handle_option): Update to new hook interface.
8699 * config/mn10300/mn10300.c: Include opts.h.
8700 (mn10300_handle_option): Update to new hook interface.
8701 * config/pa/pa.c: Include opts.h.
8702 (pa_handle_option): Update to new hook interface.
8703 * config/pdp11/pdp11.c: Include opts.h.
8704 (pdp11_handle_option): Update to new hook interface.
8705 * config/rs6000/rs6000.c: Include opts.h.
8706 (rs6000_handle_option): Update to new hook interface.
8707 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8708 * config/rx/rx.c: Include opts.h.
8709 (rx_handle_option): Update to new hook interface.
8710 * config/s390/s390.c: Include opts.h.
8711 (s390_handle_option): Update to new hook interface.
8712 * config/score/score.c: Include opts.h.
8713 (score_handle_option): Update to new hook interface.
8714 * config/sh/sh.c: Include opts.h.
8715 (sh_handle_option): Update to new hook interface.
8716 * config/sparc/sparc.c: Include opts.h.
8717 (sparc_handle_option): Update to new hook interface.
8718 * config/v850/v850.c: Include opts.h.
8719 (v850_handle_option): Update to new hook interface.
8721 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8723 * gcc.c (driver_unknown_option_callback): Only permit and save
8724 unknown -Wno- options.
8725 (driver_wrong_lang_callback): Save options directly instead of via
8726 driver_unknown_option_callback.
8728 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8730 * combine.c (simplify_set): Try harder to find the best CC mode when
8731 simplifying a nested COMPARE on the RHS.
8733 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8735 * config/alpha/gnu.h: Remove.
8736 * config/arc: Remove directory.
8737 * config/arm/netbsd.h: Remove.
8738 * config/arm/t-pe: Remove.
8739 * config/crx: Remove directory.
8740 * config/i386/netbsd.h: Remove.
8741 * config/m68hc11: Remove directory.
8742 * config/m68k/uclinux-oldabi.h: Remove.
8743 * config/mcore/mcore-pe.h: Remove.
8744 * config/mcore/t-mcore-pe: Remove.
8745 * config/netbsd-aout.h: Remove.
8746 * config/rs6000/gnu.h: Remove.
8747 * config/sh/sh-symbian.h: Remove.
8748 * config/sh/symbian-base.c: Remove.
8749 * config/sh/symbian-c.c: Remove.
8750 * config/sh/symbian-cxx.c: Remove.
8751 * config/sh/symbian-post.h: Remove.
8752 * config/sh/symbian-pre.h: Remove.
8753 * config/sh/t-symbian: Remove.
8754 * config/svr3.h: Remove.
8755 * config/vax/netbsd.h: Remove.
8756 * config.build: Don't handle i[34567]86-*-pe.
8757 * config.gcc: Remove handling of deprecations for most deprecated
8759 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8760 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8761 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8762 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8763 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8764 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8766 * config.host: Don't handle i[34567]86-*-pe.
8767 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8768 (ASM_SPEC32): Don't handle -mcall-gnu.
8769 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8771 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8772 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8773 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8774 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8775 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8776 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8777 conditional on SYMBIAN.
8778 * configure.ac: Don't handle powerpc*-*-gnu*.
8779 * configure: Regenerate.
8780 * doc/extend.texi (interrupt attribute): Don't mention CRX.
8781 * doc/install-old.texi (m6811, m6812): Don't mention.
8782 * doc/install.texi (arc-*-elf*): Don't document multilib option.
8783 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8784 (m68k-uclinuxoldabi): Don't mention.
8785 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8787 (-mcall-gnu): Remove.
8788 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8789 families): Remove constraint documentation.
8791 2011-03-22 Marius Strobl <marius@FreeBSD.org>
8793 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8794 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8795 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8797 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8800 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8801 vector when peeking at the next token for vector, don't expand the
8804 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
8806 * config/avr/avr-protos.h (expand_epilogue): Change prototype
8807 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8808 * config/avr/avr.c (init_cumulative_args)
8809 (avr_function_arg_advance): Use it.
8810 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8812 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8813 (avr_function_ok_for_sibcall): ...this new function.
8814 (avr_lookup_function_attribute1): New static Function.
8815 (avr_naked_function_p, interrupt_function_p)
8816 (signal_function_p, avr_OS_task_function_p)
8817 (avr_OS_main_function_p): Use it.
8818 * config/avr/avr.md ("sibcall", "sibcall_value")
8819 ("sibcall_epilogue"): New expander.
8820 ("*call_insn", "*call_value_insn"): New insn.
8821 ("call_insn", "call_value_insn"): Remove
8822 ("call", "call_value", "epilogue"): Change expander to handle
8825 2011-03-21 Nick Clifton <nickc@redhat.com>
8827 * doc/invoke.texi (Overall Options): Move closing brace to end of
8829 (Optimization Options): Add missing @gol.
8830 (Directory Options): Likewise.
8831 (i386 and x86-64 Options): Likewise.
8832 (RS6000 and PowerPC Options): Likewise.
8833 (i386 and x86-64 Windows Options): Likewise.
8834 (V850 Options): Add text missing from descriptions.
8836 2011-03-22 Richard Henderson <rth@redhat.com>
8838 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8839 (avr_incoming_return_addr_rtx): New.
8840 (emit_push_byte): New.
8841 (expand_prologue): Use it. Remove incorrect dwarf annotation for
8842 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
8843 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
8844 (emit_pop_byte): New.
8845 (expand_epilogue): Use it. Pop frame pointer by bytes.
8846 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8847 (INCOMING_RETURN_ADDR_RTX): New.
8848 (INCOMING_FRAME_SP_OFFSET): New.
8849 (ARG_POINTER_CFA_OFFSET): New.
8850 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8851 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8854 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8856 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8858 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8859 (FUNCTION_ARG_ADVANCE): Likewise.
8860 * tm.texi.in: Change references to them to hook references.
8861 * tm.texi: Regenerate.
8862 * targhooks.c (default_function_arg): Eliminate check for target
8864 (default_function_incoming_arg): Likewise.
8865 (default_function_arg_advance): Likewise.
8866 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8867 (function_arg_advance): Likewise.
8868 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8870 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8872 * tree.c (build_call_1): New function.
8873 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8875 2011-03-22 Richard Guenther <rguenther@suse.de>
8877 PR tree-optimization/48228
8878 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8879 for single-arg PHIs.
8881 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
8883 PR rtl-optimization/48143
8884 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8885 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8886 sse2_cvtps2pd): Likewise.
8888 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8890 * recog.c (canonicalize_change_group): Use validate_unshare_change.
8892 2011-03-22 Richard Guenther <rguenther@suse.de>
8894 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8895 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8896 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8897 and REALIGN_LOAD_EXPR.
8898 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8899 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8900 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8901 DOT_PROD_EXPR case ...
8902 (expand_expr_real_2): ... here.
8903 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8904 and REALIGN_LOAD_EXPR.
8905 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8906 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8907 (vect_create_epilog_for_reduction): Likewise.
8908 (vectorizable_reduction): Likewise.
8909 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8910 * tree-vect-stmts.c (vectorizable_load): Likewise.
8912 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8914 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8916 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8918 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8919 handling for PLTOFF/GOTOFF.
8921 2011-03-22 Nick Clifton <nickc@redhat.com>
8923 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8924 trailing backslash from the end of the macro definition.
8926 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8928 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8931 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8933 * expr.h (prepare_operand): Move to...
8934 * optabs.h (prepare_operand): ...here and change the insn code
8935 parameter from "int" to "enum insn_code".
8936 (insn_operand_matches): Declare.
8937 * expr.c (init_expr_target): Use insn_operand_matches.
8938 (compress_float_constant): Likewise.
8939 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8940 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8941 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8942 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8944 (gen_cond_trap): Likewise.
8945 (prepare_operand): Likewise. Change icode to an insn_code.
8946 (insn_operand_matches): New function.
8947 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8948 * reload1.c (gen_reload): Likewise.
8949 * targhooks.c (default_secondary_reload): Likewise.
8951 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8953 * config/alpha/alpha.md (unspec): New define_c_enum.
8956 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8959 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8960 between a call and its CALL_ARG_LOCATION note.
8962 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8964 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8966 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8970 * c-common.c (shorten_compare): If primopN is first sign-extended
8971 to opN and then zero-extended to result type, set primopN to opN.
8973 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8975 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8976 for barrier handlers.
8978 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8980 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8981 UNSPEC constants to be in the unspec enumeration, and redefine
8982 all UNSPECV constants to be in the unspecv enumeration, so that
8983 dumps print which unspec/unspec_volatile this is.
8984 * config/rs6000/vector.md (UNSPEC_*): Ditto.
8985 * config/rs6000/paired.md (UNSPEC_*): Ditto.
8986 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8987 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8988 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8990 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8991 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8992 UNSPECV_LWSYNC, since these are used as unspec_volatile.
8993 * config/rs6000/sync.md (isync, lwsync): Ditto.
8995 2011-03-21 Richard Guenther <rguenther@suse.de>
8997 * params.def (lto-min-partition): Fix typo.
8999 2011-03-21 Richard Guenther <rguenther@suse.de>
9002 * c-decl.c (grokdeclarator): Drop to the main variant only
9003 for array types. Drop flag_gen_aux_info check.
9005 2011-03-21 Richard Guenther <rguenther@suse.de>
9007 PR translation/47911
9008 * params.def (lto-partitions): Fix typo.
9009 (lto-min-partition): Fix wording.
9011 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
9013 * config/rs6000/t-freebsd: Remove duplication from file.
9015 2011-03-21 Richard Guenther <rguenther@suse.de>
9018 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9020 2011-03-21 Richard Guenther <rguenther@suse.de>
9023 * params.def (lto-partitions): Require at least 1 partition.
9025 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9027 * gthr-solaris.h: Remove.
9028 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9029 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9030 (LIB_SPEC): Likewise.
9031 * config/sol2.opt (threads): Remove.
9032 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9033 (sparc*-*-solaris2*): Likewise.
9034 * configure.ac (enable_threads): Enable solaris support.
9035 * configure: Regenerate.
9036 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9037 * doc/install.texi (Configuration, --enable-threads=lib): Remove
9040 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9042 * config.gcc: Obsolete *-*-solaris2.8*.
9043 * doc/install.texi (Specific, *-*-solaris2*): Document it.
9045 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9048 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9049 reference. Solaris 8 perl works.
9051 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9054 * doc/install.texi (Prerequisites): Move jar etc. up.
9055 Explain support library version requirements.
9057 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9060 * doc/install.texi (Prerequisites): Move Perl to build
9061 requirements. Always necessary on Solaris 2 with Sun ld.
9063 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9065 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9067 (Specific, i?86-*-solaris2.[89]): Likewise.
9068 (Specific, i?86-*-solaris2.10): Likewise.
9069 (Specific, mips-sgi-irix6): Likewise.
9070 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9071 Update for binutils 2.21.
9073 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9075 * configure.ac (gcc_cv_lto_plugin): Fix typo.
9076 Allow -fuse-linker-plugin for non-default plugin linker.
9077 * configure: Regenerate.
9079 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
9082 * gengtype.c (files_rules): Added rule for cp/parser.h.
9084 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9087 * config/s390/s390.c (s390_delegitimize_address): Don't call
9088 lowpart_subreg if orig_x has BLKmode.
9090 2011-03-21 Kai Tietz <ktietz@redhat.com>
9093 * doc/plugins.texi: Adjust documentation for plugin register_callback.
9094 * tree.h (attribute_spec): Add new member affects_type_identity.
9095 * attribs.c (empty_attribute_table): Adjust attribute_spec
9097 * config/alpha/alpha.c: Likewise.
9098 * config/arc/arc.c: Likewise.
9099 * config/arm/arm.c: Likewise.
9100 * config/avr/avr.c: Likewise.
9101 * config/bfin/bfin.c: Likewise.
9102 * config/crx/crx.c: Likewise.
9103 * config/darwin.h: Likewise.
9104 * config/h8300/h8300.c: Likewise.
9105 * config/i386/cygming.h: Likewise.
9106 * config/i386/i386.c: Likewise.
9107 * config/ia64/ia64.c: Likewise.
9108 * config/m32c/m32c.c: Likewise.
9109 * config/m32r/m32r.c: Likewise.
9110 * config/m68hc11/m68hc11.c: Likewise.
9111 * config/m68k/m68k.c: Likewise.
9112 * config/mcore/mcore.c: Likewise.
9113 * config/mep/mep.c: Likewise.
9114 * config/microblaze/microblaze.c: Likewise.
9115 * config/mips/mips.c: Likewise.
9116 * config/rs6000/rs6000.c: Likewise.
9117 * config/rx/rx.c: Likewise.
9118 * config/sh/sh.c: Likewise.
9119 * config/sol2.h: Likewise.
9120 * config/sparc/sparc.c: Likewise.
9121 * config/spu/spu.c: Likewise.
9122 * config/stormy16/stormy16.c: Likewise.
9123 * config/v850/v850.c: Likewise.
9125 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9127 * simplify-rtx.c (simplify_binary_operation_1): Handle
9128 (xor (and A B) C) case when B and C are both constants.
9130 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
9132 * tree-dfa.c (add_referenced_var): Fix typo in comment.
9134 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
9137 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9139 2011-03-20 Jakub Jelinek <jakub@redhat.com>
9141 PR rtl-optimization/48156
9142 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9143 assume df and df_lr are not NULL.
9145 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9148 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9149 between a call and its CALL_ARG_LOCATION note.
9151 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
9154 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9155 between a call and its corresponding CALL_ARG_LOCATION note.
9157 2011-03-19 Anatoly Sokolov <aesok@post.ru>
9159 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9160 instead of loop. Use HARD_REGISTER_NUM_P predicate.
9161 * haifa-sched.c (setup_ref_regs): Ditto.
9162 * caller-save.c (add_used_regs_1): Ditto.
9163 * dse.c (look_for_hardregs): Ditto.
9164 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9165 * sched-rgn.c (check_live_1): Ditto.
9167 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9169 * c-decl.c (diagnose_mismatched_decls): Give an error for
9170 redefining a typedef with variably modified type.
9172 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9174 * c-decl.c (grokfield): Don't allow typedefs for structures or
9175 unions with no tag by default.
9176 * doc/extend.texi (Unnamed Fields): Update.
9178 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
9180 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9181 Rewrite using indirect functions.
9182 (lwp_slwpcb): Ditto.
9183 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9184 (avx_vinsertf128<mode>): Ditto.
9186 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9188 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9191 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9193 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9194 splitting between a call and its corresponding CALL_ARG_LOCATION note.
9196 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9198 PR rtl-optimization/48170
9199 * gcse.c (hoist_code): Remove bogus asserts.
9201 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
9203 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9204 computation for prologue/epilogue.
9206 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9208 * Makefile.in (check-consistency): Remove.
9210 2011-03-18 Jakub Jelinek <jakub@redhat.com>
9213 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9214 arange_table_in_use is 0, but either text_section_used or
9215 cold_text_section_used is true. Don't call it if
9216 !info_section_emitted.
9218 2011-03-18 Anatoly Sokolov <aesok@post.ru>
9220 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9221 FUNCTION_VALUE_REGNO_P): Remove.
9222 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9224 * config/avr/avr.c (avr_ret_register): Make static inline.
9225 (avr_function_value_regno_p): New function.
9226 (avr_libcall_value): Make static. Add 'func' argument.
9227 (avr_function_value): Make static. Rename 'func' argument to
9228 'fn_decl_or_type', forward it to avr_libcall_value. Call
9229 avr_ret_register function instead of RET_REGISTER macro.
9230 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9232 2011-03-18 Jason Merrill <jason@redhat.com>
9235 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9237 2011-03-18 Richard Guenther <rguenther@suse.de>
9239 * doc/install.texi (--enable-gold): Remove.
9240 (--with-plugin-ld): Document.
9241 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9243 2011-03-18 Andrew Pinski <pinskia@gmail.com>
9246 * expr.c (optimize_bitfield_assignment_op): Revamp to work
9247 again after expansion changes.
9249 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
9251 * combine.c (try_combine): Do simplification only call of
9252 subst() on i2 even when i1 is present. Update comments.
9254 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
9256 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9257 and UNSPEC_PCREL_SYMOFF.
9259 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9261 * config/s390/s390.md: Use define_c_enum for the unspec constant
9264 2011-03-18 Richard Henderson <rth@redhat.com>
9265 Jakub Jelinek <jakub@redhat.com>
9268 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9269 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9271 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9274 * combine.c (cant_combine_insn_p): Don't check zero/sign
9275 extended hard registers.
9277 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9280 * combine.c (cant_combine_insn_p): Check zero/sign extended
9283 2011-03-17 Anatoly Sokolov <aesok@post.ru>
9285 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9286 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9287 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9288 Change return type to bool.
9289 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9291 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9294 * var-tracking.c (prepare_call_arguments): If CALL target
9295 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9296 pc instead of looking it up using cselib_lookup and use
9297 Pmode for it if x has VOIDmode.
9298 * dwarf2out.c (gen_subprogram_die): If also both first and
9299 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9302 * function.c (assign_parms): For data.passed_pointer parms
9303 use MEM of data.entry_parm instead of data.entry_parm itself
9304 as DECL_INCOMING_RTL.
9305 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9306 also when passed and declared mode is the same, DECL_RTL
9307 is a MEM with pseudo as address and DECL_INCOMING_RTL is
9310 2011-03-16 Jeff Law <law@redhat.com>
9312 PR rtl-optimization/37273
9313 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9314 handle them like argument loads from stack slots. Do not double
9315 count memory for memory constants and argument loads from stack slots.
9317 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9320 * var-tracking.c (prepare_call_arguments): Check SUBREG.
9322 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9325 * config/i386/i386.opt: Add Save to -mavx and -mfma.
9327 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9330 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9332 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9333 Clear call_arg_locations and call_arg_loc_last always.
9336 * var-tracking.c (prepare_call_arguments): If argument needs to be
9337 passed by reference, adjust argtype and mode.
9339 2011-03-17 Richard Guenther <rguenther@suse.de>
9342 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9343 a value make sure to fold the statement.
9345 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
9348 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9349 return condition with !cfun->calls_alloca.
9351 2011-03-17 Richard Guenther <rguenther@suse.de>
9354 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9355 origin for decls in other ltrans units.
9356 (input_varpool_node): Likewise.
9358 2011-03-17 Richard Guenther <rguenther@suse.de>
9361 * tree-object-size.c (compute_object_offset): Properly return
9362 the offset operand of MEM_REFs as sizetype.
9364 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9366 PR rtl-optimization/48141
9367 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9368 * dse.c: Include params.h.
9369 (active_local_stores_len): New variable.
9370 (add_wild_read, dse_step1): Clear it when setting active_local_stores
9372 (record_store, check_mem_read_rtx): Decrease it when removing
9374 (scan_insn): Likewise. Increase it when adding to chain, if it
9375 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9376 set active_local_stores to NULL before the addition.
9377 * Makefile.in (dse.o): Depend on $(PARAMS_H).
9379 PR rtl-optimization/48141
9380 * dse.c (record_store): If no positions are needed in an insn
9381 that cannot be deleted, at least unchain it from active_local_stores.
9383 2011-03-16 Dodji Seketeli <dodji@redhat.com>
9386 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9387 (lookup_type_die_strip_naming_typedef): ... here.
9388 (get_context_die): Use it.
9389 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9390 the anonymous struct named by the naming typedef.
9392 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
9395 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9396 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9398 2011-03-16 Jeff Law <law@redhat.com>
9400 * tree-vrp.c (identify_jump_threads): Slightly simplify type
9401 check for operands of conditional. Allow type to be a pointer.
9403 2011-03-16 Richard Guenther <rguenther@suse.de>
9405 PR tree-optimization/48149
9406 * fold-const.c (fold_binary_loc): Fold
9407 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9409 2011-03-16 Richard Guenther <rguenther@suse.de>
9411 PR tree-optimization/26134
9412 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9413 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9414 (non_rewritable_mem_ref_base): Handle complex type component
9415 accesses, constrain offsets for vector and complex extracts
9418 2011-03-16 Richard Guenther <rguenther@suse.de>
9420 PR tree-optimization/48146
9421 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9422 operands avoiding the need for renaming.
9424 2011-03-16 Richard Guenther <rguenther@suse.de>
9426 * gimple-fold.c (maybe_fold_reference): Open-code relevant
9427 constant folding. Move MEM_REF canonicalization first.
9428 Rely on fold_const_aggregate_ref for initializer folding.
9429 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9431 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9434 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9435 arg0/arg1 or their arguments are always fold converted to matching
9438 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9441 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9444 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9445 Handle in-tree gold.
9446 (ld_vers): Extract binutils version for gold.
9447 (gcc_cv_ld_hidden): Handle gold here.
9448 (gcc_cv_lto_plugin): Determine level of linker plugin support.
9449 * configure: Regenerate.
9450 * config.in: Regenerate.
9451 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9452 -fuse-linker-plugin otherwise.
9453 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
9454 (LINK_COMMAND_SPEC): Use it.
9455 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9457 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9459 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9460 * calls.c: Remove debug.h include.
9461 (emit_call_1): Don't call virtual_call_token debug hook.
9462 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9463 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9464 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9465 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9466 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9467 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9468 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9469 dwarf2out_virtual_call): Remove.
9470 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9471 copy_call_info and virtual_call hooks.
9472 (dwarf2out_init): Don't initialize vcall_insn_table,
9473 debug_dcall_section and debug_vcall_section.
9474 (prune_unused_types): Don't mark nodes from dcall_table.
9475 (dwarf2out_finish): Don't output dcall or vcall tables.
9476 * final.c (final_scan_insn): Don't call direct_call or
9477 virtual_call debug hooks.
9478 * debug.h (struct gcc_debug_hooks): Remove direct_call,
9479 virtual_call_token, copy_call_info and virtual_call hooks.
9480 (debug_nothing_uid): Remove prototype.
9481 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9482 copy_call_info and virtual_call hooks.
9483 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9484 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9485 * debug.c (do_nothing_debug_hooks): Likewise.
9486 (debug_nothing_uid): Remove.
9487 * doc/invoke.texi (-fenable-icf-debug): Remove.
9488 * common.opt (-fenable-icf-debug): Likewise.
9490 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9491 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9492 call's MEM. Handle functions returning aggregate through a hidden
9493 first pointer. For virtual calls add clobbered pc to call arguments
9495 * dwarf2out.c (gen_subprogram_die): Emit
9496 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9500 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9501 * rtl.h (ENTRY_VALUE_EXP): Define.
9502 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9503 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9504 * print-rtl.c (print_rtx): Likewise.
9505 * gengtype.c (adjust_field_rtx_def): Likewise.
9506 * var-tracking.c (vt_add_function_parameter): Adjust
9507 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9508 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9509 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9510 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9511 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9513 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9514 Call var_location debug hook even on CALL_INSNs.
9515 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9516 * rtl.def (ENTRY_VALUE): New.
9517 * dwarf2out.c: Include cfglayout.h.
9518 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9519 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9520 (struct call_arg_loc_node): New type.
9521 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9522 tail_call_site_count): New variables.
9523 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9524 DW_TAG_GNU_call_site_parameter.
9525 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9526 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9527 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9528 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9529 and DW_AT_GNU_all_source_call_sites.
9530 (mem_loc_descriptor): Handle ENTRY_VALUE.
9531 (add_src_coords_attributes): Don't add enything if
9532 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9533 (dwarf2out_abstract_function): Save and clear call_arg_location,
9534 call_site_count and tail_call_site_count around dwarf2out_decl call.
9535 (gen_call_site_die): New function.
9536 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9537 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9538 (dwarf2out_function_decl): Clear call_arg_locations,
9539 call_arg_loc_last, set call_site_count and tail_call_site_count
9540 to -1 and free block_map.
9541 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9542 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
9543 followed by any real instructions.
9544 (dwarf2out_begin_function): Set call_site_count and
9545 tail_call_site_count to 0.
9546 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9547 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9548 attempt to force a DIE for it and worst case remove the attribute.
9549 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9550 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9552 * var-tracking.c: Include tm_p.h.
9553 (vt_stack_adjustments): For calls call note_register_arguments.
9554 (argument_reg_set): New variable.
9555 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9556 ensure the VALUE is resolved.
9557 (call_arguments): New variable.
9558 (prepare_call_arguments): New function.
9559 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9560 (struct expand_loc_callback_data): Add ignore_cur_loc field.
9561 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9562 always use the best expression.
9563 (vt_expand_loc): Add ignore_cur_loc argument.
9564 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9565 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9566 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9568 (vt_add_function_parameter): Use cselib_lookup_from_insn.
9569 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9570 argument. Don't call cselib_preserve_only_values and
9572 (note_register_arguments): New function.
9573 (vt_initialize): Compute argument_reg_set. Call
9574 vt_add_function_parameters before processing basic blocks instead of
9575 afterwards. For calls call prepare_call_arguments before calling
9576 cselib_process_insn.
9577 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9578 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9579 (var-tracking.o): Depend on $(TM_P_H).
9580 * cfglayout.h (insn_scope): New prototype.
9581 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9582 * cfglayout.c (insn_scope): No longer static.
9583 * insn-notes.def (CALL_ARG_LOCATION): New.
9584 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9585 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9586 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9587 nothing for DECL_EXTERNAL BLOCK_VARS.
9589 2011-03-16 Alan Modra <amodra@gmail.com>
9592 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9593 create invalid offset address for vsx splat insn.
9594 * config/rs6000/predicates.md (splat_input_operand): New.
9595 * config/rs6000/vsx.md (vsx_splat_*): Use it.
9597 2011-03-15 Xinliang David Li <davidxl@google.com>
9600 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9601 (normalize_preds): New function.
9602 (is_use_properly_guarded): Normalize def predicates.
9604 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9607 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9608 in the output template.
9610 2011-03-15 Richard Guenther <rguenther@suse.de>
9613 * tree-pretty-print.c (dump_function_declaration): Properly
9614 dump unprototyped and varargs function types.
9616 2011-03-15 Richard Guenther <rguenther@suse.de>
9618 PR tree-optimization/13954
9619 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9622 2011-03-15 Richard Guenther <rguenther@suse.de>
9624 PR tree-optimization/48037
9625 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9626 selects into BIT_FIELD_REFs.
9627 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9630 2011-03-15 Jakub Jelinek <jakub@redhat.com>
9632 PR tree-optimization/48129
9633 * builtins.c (fold_builtin_snprintf): Convert to type of
9634 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9635 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9637 2011-03-15 Richard Guenther <rguenther@suse.de>
9639 PR tree-optimization/41490
9640 * tree-ssa-dce.c (propagate_necessity): Handle returns without
9641 value but with VUSE.
9642 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9644 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9645 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9646 * tree-tailcall.c (find_tail_calls): Ignore returns.
9648 2011-03-15 Richard Guenther <rguenther@suse.de>
9651 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9652 or variable-indexed array accesses when in gimple form.
9654 2011-03-15 Richard Guenther <rguenther@suse.de>
9656 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9658 2011-03-15 Alan Modra <amodra@gmail.com>
9661 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9662 presume symbol_refs without a symbol_ref_decl are suitably
9663 aligned, nor other trees we may see here. Handle anchor symbols.
9664 (legitimate_constant_pool_address_p): Comment. Add mode param.
9665 Check cmodel=medium addresses. Adjust all calls.
9666 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9667 creating cmodel=medium optimized access to locals.
9668 * config/rs6000/constraints.md (R): Pass QImode to
9669 legitimate_constant_pool_address_p.
9670 * config/rs6000/predicates.md (input_operand): Pass mode to
9671 legitimate_constant_pool_address_p.
9672 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9675 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9678 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9679 64-bit constants being loaded into registers other than GPRs such
9680 as loading 0 into a VSX register.
9682 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9684 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9686 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9689 * builtins.c (fold_builtin_snprintf): New function.
9690 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9691 (fold_builtin_4): Likewise.
9694 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9695 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
9696 and C - X == X also strip nops from +/-/p+ operand.
9697 When optimizing -X == C, fold C to arg0's type.
9700 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9701 emit it as add_AT_int instead of add_AT_unsigned.
9703 2011-03-14 Tom Tromey <tromey@redhat.com>
9705 * unwind-dw2.c: Include sys/sdt.h if it exists.
9706 (_Unwind_DebugHook): Use STAP_PROBE2.
9707 * config.in, configure: Rebuild.
9708 * configure.ac: Check for sys/sdt.h.
9710 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
9712 * config/i386/i386.md (ROUND_FLOOR): New constant.
9713 (ROUND_CEIL): Ditto.
9714 (ROUND_TRUNC): Ditto.
9715 (ROUND_MXCSR): Ditto.
9716 (ROUND_NO_EXC): Ditto.
9717 (rint<mode>2): Use new defines instead of numerical constants.
9718 (floor<mode>2): Ditto.
9719 (ceil<mode>2): Ditto.
9720 (btrunc<mode>2): Ditto.
9721 * config/i386/i386-builtin-types.def: Define ROUND function type
9723 * config/i386/i386.c (enum ix86_builtins): Add
9724 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9725 (struct builtin_description): Add
9726 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9727 (ix86_expand_sse_round): New static function.
9728 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9730 (ix86_builtin_vectorized_function): Handle
9731 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9733 2011-03-14 Tom Tromey <tromey@redhat.com>
9735 * c-parser.c (c_parser_asm_string_literal): Clear
9736 warn_overlength_strings.
9738 2011-03-14 Tom Tromey <tromey@redhat.com>
9740 * c-parser.c (disable_extension_diagnostics): Save
9741 warn_overlength_strings.
9742 (restore_extension_diagnostics): Restore warn_overlength_strings.
9744 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9746 * BASE-VER: Change to 4.7.0.
9748 2011-03-14 Richard Guenther <rguenther@suse.de>
9751 * tree.c (build_vector_from_val): Adjust assert to requirements
9754 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9757 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9759 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
9761 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9762 terms of target_flags_explicit. Adjust copyright year.
9764 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9765 * config/rs6000/t-freebsd: New file. Add override for
9768 2011-03-13 Chris Demetriou <cgd@google.com>
9770 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9771 (-fno-diagnostics-show-option): this, to reflect current default.
9772 (-Werror=): Update text about -fno-diagnostics-show-option.
9774 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
9777 * config/rs6000/predicates.md (easy_vector_constant_add_self,
9778 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9779 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9780 mode is not V2DImode or V2DFmode.
9781 (vspltis_constant): Do not handle V2DImode and V2DFmode.
9782 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9783 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9785 (movdi_internal64): Likewise.
9787 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
9789 PR tree-optimization/47127
9790 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9792 (set_cloog_options): Same.
9793 (scop_to_clast): Same.
9794 (print_clast_stmt): Do not call cloog_state_malloc and
9796 (print_generated_program): Same.
9798 * graphite-clast-to-gimple.h (cloog_state): Declared.
9799 (scop_to_clast): Adjust declaration.
9800 * graphite.c (cloog_state): Defined here.
9801 (graphite_initialize): Call cloog_state_malloc.
9802 (graphite_finalize): Call cloog_state_free.
9804 2011-03-11 Jason Merrill <jason@redhat.com>
9806 * attribs.c (lookup_attribute_spec): Take const_tree.
9809 2011-03-11 Joseph Myers <joseph@codesourcery.com>
9811 * config/sparc/sparc.c (sparc_option_override): Use
9812 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9814 2011-03-11 Richard Guenther <rguenther@suse.de>
9816 PR tree-optimization/48067
9817 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9818 multiplication result will be only used once on the target
9821 2011-03-11 Richard Guenther <rguenther@suse.de>
9823 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9825 2011-03-11 Richard Guenther <rguenther@suse.de>
9828 * tree.c (find_decls_types_r): Do not walk types only reachable
9829 from IDENTIFIER_NODEs.
9831 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9834 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9835 all vnode->force_output nodes as needed.
9837 2011-03-11 Jason Merrill <jason@redhat.com>
9840 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9841 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9843 2011-03-11 Martin Jambor <mjambor@suse.cz>
9845 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9848 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9850 PR tree-optimization/48063
9851 * ipa-inline.c (cgraph_decide_inlining): Don't try to
9852 inline functions called once if !tree_can_inline_p (node->callers).
9854 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9856 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9858 * config/score/score3.c: Delete.
9859 * config/score/score3.h: Delete.
9860 * config/score/mul-div.S: Delete.
9861 * config/score/sfp-machine.h: Add new file.
9862 * config/score/constraints.md: Add new file.
9863 * config/score/t-score-softfp: Add new file.
9864 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9865 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9866 (score7_extra_constraint): Delete.
9867 (score7_option_override): Remove unused code.
9868 * config/score/score.c: Remove score3 and score5 define and code.
9869 * config/score/score.h: Remove score3 and score5 define and code.
9870 * config/score/score.md: Remove score3 template and unusual insn.
9871 * config/score/score.opt: Remove score3 and score5 options.
9873 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9875 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9876 when _HPUX_SOURCE is defined.
9877 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9879 2011-03-10 Jason Merrill <jason@redhat.com>
9882 * stor-layout.c (layout_type): Don't set structural equality
9883 on arrays of incomplete type.
9884 * tree.c (type_hash_eq): Handle comparing them properly.
9886 2011-03-10 Jakub Jelinek <jakub@redhat.com>
9889 * config/s390/s390.c (s390_delegitimize_address): Make sure the
9890 result mode matches original rtl mode.
9892 2011-03-10 Nick Clifton <nickc@redhat.com>
9894 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9895 (andsi3, andsi3_flags): Fix timings for three operand alternative.
9897 2011-03-09 Jakub Jelinek <jakub@redhat.com>
9899 PR rtl-optimization/47866
9900 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9901 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9902 if target wasn't scalar.
9903 * function.c (assign_stack_temp_for_type): Assert that neither
9904 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9905 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9907 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9909 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9911 * config/s390/s390-protos.h (s390_label_align): New prototype.
9912 * config/s390/s390.c (s390_label_align): New function.
9913 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9915 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9918 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9919 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9920 (output_vec_const_move): Ditto.
9922 2011-03-08 Anatoly Sokolov <aesok@post.ru>
9924 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9925 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9926 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9927 Change 'rclass' argument and result type to reg_class_t.
9928 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9930 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
9932 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9933 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9934 (TARGET_MEMORY_MOVE_COST): Define.
9935 (avr_register_move_cost, avr_memory_move_cost): New Functions.
9937 2011-03-08 Jakub Jelinek <jakub@redhat.com>
9940 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9943 PR tree-optimization/48022
9944 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9947 2011-03-07 Jakub Jelinek <jakub@redhat.com>
9950 * var-tracking.c (find_use_val): Return NULL for
9951 cui->sets && cui->store_p BLKmode MEMs.
9953 2011-03-07 Anatoly Sokolov <aesok@post.ru>
9955 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9957 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9958 xstormy16_print_operand_address): Remove.
9959 * config/stormy16/stormy16.c (xstormy16_print_operand,
9960 xstormy16_print_operand_address): Make static.
9961 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9963 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
9966 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9967 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9970 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
9973 * cfgloopmanip.c (fix_bb_placements): Return immediately
9974 if FROM is BASE_LOOP's header.
9976 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
9978 * gimplify.c (gimplify_function_tree): Fix building calls
9979 to __builtin_return_address.
9981 2011-03-07 Alan Modra <amodra@gmail.com>
9983 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9984 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9985 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9986 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9988 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9989 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9990 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9991 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9992 * config/rs6000/rs6000.c
9993 (rs6000_elf_end_indicate_exec_stack): Rename to..
9994 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
9995 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
9996 (rs6000_file_start): ..here.
9997 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9998 file scope variables.
9999 (call_ABI_of_interest): New function.
10000 (init_cumulative_args): Set above vars when function return value
10001 is a float, vector, or small struct.
10002 (rs6000_function_arg_advance_1): Likewise for function args.
10003 (rs6000_va_start): Set rs6000_passes_float if variable arg function
10004 references float args.
10006 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
10008 * doc/cfg.texi: Remove "See" before @ref.
10009 * doc/invoke.texi: Likewise.
10011 2011-03-05 Jason Merrill <jason@redhat.com>
10013 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10015 2011-03-05 Anthony Green <green@moxielogic.com>
10017 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10019 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
10021 PR rtl-optimization/47899
10022 * cfgloopmanip.c (fix_bb_placements): Fix first argument
10023 to flow_loop_nested_p when moving the loop upward.
10025 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
10028 * arm.md (movhi_insn_arch4): Accept any immediate constant.
10030 2011-03-05 Jakub Jelinek <jakub@redhat.com>
10032 PR tree-optimization/47967
10033 * ipa-cp.c (build_const_val): Return NULL instead of creating
10034 VIEW_CONVERT_EXPR for mismatching sizes.
10035 (ipcp_create_replace_map): Return NULL if build_const_val failed.
10036 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10037 give up on versioning.
10039 2011-03-05 Alan Modra <amodra@gmail.com>
10042 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10043 full cmodel medium/large lo_sum + high addresses.
10045 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10047 * config/s390/s390.c (s390_decompose_address): Reject non-literal
10048 pool references in UNSPEC_LTREL_OFFSET.
10050 2011-03-04 Jan Hubicka <jh@suse.cz>
10053 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10054 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10055 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10057 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10058 cgraph_add_thunk): Add node pointers.
10059 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10060 associated to right node.
10061 (input_node): Update use of cgraph_same_body_alias
10062 and cgraph_add_thunk.
10064 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
10066 * config/i386/i386.opt (mprefer-avx128): New flag.
10067 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10068 modes when the flag -mprefer-avx128 is on.
10070 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
10072 * dwarf2out.c (compare_loc_operands): Fix address handling.
10074 2011-03-04 Alan Modra <amodra@gmail.com>
10076 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10078 2011-03-04 Richard Guenther <rguenther@suse.de>
10080 PR middle-end/47968
10081 * expmed.c (extract_bit_field_1): Prefer vector modes that
10082 vec_extract patterns can handle.
10084 2011-03-04 Richard Guenther <rguenther@suse.de>
10086 PR middle-end/47975
10087 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10089 2011-03-04 Richard Henderson <rth@redhat.com>
10091 * explow.c (emit_stack_save): Remove 'after' parameter.
10092 (emit_stack_restore): Likewise.
10093 * expr.h: Update to match.
10094 * builtins.c, calls.c, stmt.c: Likewise.
10095 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10096 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10097 * function.c (expand_function_end): Insert the emit_stack_save
10098 sequence before parm_birth_insn instead of after.
10100 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
10102 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10103 (ssse3_pmaddubsw128): Ditto.
10104 (ssse3_pmaddubsw): Ditto.
10106 2011-03-03 Steve Ellcey <sje@cup.hp.com>
10108 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10110 2011-03-03 Jakub Jelinek <jakub@redhat.com>
10113 * gimplify.c (omp_add_variable): Only call omp_notice_variable
10114 on TYPE_SIZE_UNIT if it is a DECL.
10117 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10118 first operand is not is_gimple_mem_ref_addr, try to fold it.
10119 If the operand still isn't is_gimple_mem_ref_addr, clear
10122 2011-03-03 Richard Guenther <rguenther@suse.de>
10124 PR middle-end/47283
10125 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10127 (refs_may_alias_p_1): For release branches return true if
10128 we are confused by our input.
10130 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10132 * config/s390/s390.c (s390_function_value): Rename to ...
10133 (s390_function_and_libcall_value): ... this.
10134 (s390_function_value): New function.
10135 (s390_libcall_value): New function.
10136 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10137 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10138 target macro definitions.
10139 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10141 2011-03-02 Joseph Myers <joseph@codesourcery.com>
10143 * config/i386/freebsd64.h (CC1_SPEC): Define.
10144 * config/i386/linux64.h (CC1_SPEC): Define.
10145 * config/i386/x86-64.h (CC1_SPEC): Don't define.
10147 2011-03-02 Anatoly Sokolov <aesok@post.ru>
10149 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10151 * config/stormy16/stormy16.c: Include reload.h.
10152 (xstormy16_memory_move_cost): New function.
10153 (TARGET_MEMORY_MOVE_COST): Define.
10155 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
10157 PR rtl-optimization/47925
10158 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10159 with side effects. Remove the more-specific check for volatile asms.
10161 2011-03-02 Alan Modra <amodra@gmail.com>
10164 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10165 toc relative addresses for valid offsets.
10167 2011-03-01 Richard Guenther <rguenther@suse.de>
10169 PR tree-optimization/47890
10170 * tree-vect-loop.c (get_initial_def_for_induction): Set
10171 related stmt properly.
10173 2011-03-01 Richard Guenther <rguenther@suse.de>
10176 * lto-streamer.c (lto_record_common_node): Also register
10177 the canonical type.
10179 2011-03-01 Richard Guenther <rguenther@suse.de>
10182 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10183 Do not stream DECL_ABSTRACT_ORIGIN.
10184 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10185 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10186 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10187 Do not stream DECL_ABSTRACT_ORIGIN.
10188 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10189 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10191 2011-02-28 Anatoly Sokolov <aesok@post.ru>
10193 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10194 FUNCTION_VALUE_REGNO_P): Remove.
10195 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10196 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10197 Add 'outgoing' argument.
10198 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10200 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10201 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10203 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
10206 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10207 (lookup_filename): Likewise.
10208 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10210 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
10211 Jakub Jelinek <jakub@redhat.com>
10213 PR middle-end/47893
10214 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10215 (assign_stack_local_1): Change last argument type to int.
10216 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10217 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
10218 don't record padding space into frame_space_list nor use those areas.
10219 (assign_stack_local): Adjust caller.
10220 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10221 of assign_stack_local, pass 0 as last argument.
10222 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10225 2011-02-28 Jakub Jelinek <jakub@redhat.com>
10228 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10229 Use target address_mode and pointer_mode hooks instead of hardcoded
10230 Pmode and ptr_mode. Handle some simple cases of extending if
10231 POINTERS_EXTEND_UNSIGNED < 0.
10232 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10233 Call convert_debug_memory_address.
10234 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10235 convert_debug_memory_address.
10237 PR middle-end/46790
10238 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10239 * configure: Regenerated.
10240 * config.in: Regenerated.
10241 * varasm.c (default_function_section): Return NULL
10242 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10244 2011-02-28 Martin Jambor <mjambor@suse.cz>
10246 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10247 the description to match the printed values.
10249 2011-02-28 Richard Guenther <rguenther@suse.de>
10251 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10252 of the copied scope tree.
10254 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10256 * doc/extend.texi (Function Attributes): Avoid deeply (and
10257 wrongly) nested tables.
10259 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10261 PR middle-end/47903
10262 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10263 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10264 r isn't op0 nor op1.
10266 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10268 * config/avr/avr.md: Remove magic comment for emacs.
10270 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10273 * config/avr/avr.c (avr_option_override): Use error on bad options.
10274 (avr_help): New function.
10275 (TARGET_HELP): Define.
10277 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
10280 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10281 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10283 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
10285 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10286 (ARM Options): Ditto.
10287 (i386 and x86-64 Options): Ditto.
10288 (RX Options): Ditto.
10289 (SPARC Options): Ditto.
10291 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
10293 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10294 FreeBSD 6 and later. Generally use cpu generic.
10296 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
10298 * doc/cpp.texi: Update copyright years.
10300 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
10303 * config/lm32/lm32.md (ashrsi3): Added needed variable.
10305 2011-02-25 Jon Beniston <jon@beniston.com>
10308 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10309 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10310 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10311 (lm32_block_move_inline): Add type cast to remove warning.
10312 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10313 (gen_int_relational): Move declarations to start of function.
10315 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
10317 PR tree-optimization/45470
10318 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10319 can throw internally only.
10320 * tree-vect-stmts.c (vectorizable_call): Likewise.
10322 2011-02-24 Anatoly Sokolov <aesok@post.ru>
10324 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10325 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10326 * config/stormy16/stormy16-protos.h
10327 (xstormy16_preferred_reload_class): Remove.
10328 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10329 static. Change 'rclass' argument and return type to reg_class_t.
10330 (TARGET_PREFERRED_RELOAD_CLASS,
10331 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10333 2011-02-24 Richard Guenther <rguenther@suse.de>
10335 * lto-streamer-in.c (input_bb): Do not find referenced vars
10336 in debug statements.
10338 2011-02-23 Jason Merrill <jason@redhat.com>
10340 * common.opt (fabi-version): Document v5 and v6.
10342 2011-02-23 Richard Guenther <rguenther@suse.de>
10344 PR tree-optimization/47849
10345 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10347 2011-02-23 Jie Zhang <jie@codesourcery.com>
10349 * opts-common.c (decode_cmdline_option): Print empty string
10350 argument as "" in decoded->orig_option_with_args_text.
10351 * gcc.c (execute): Print empty string argument as ""
10352 in the verbose output.
10353 (do_spec_1): Keep empty string argument.
10355 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
10357 * config.gcc: Declare score-* and crx-* obsolete.
10359 2011-02-23 Jie Zhang <jie@codesourcery.com>
10361 PR rtl-optimization/47763
10362 * web.c (web_main): Ignore naked clobber when replacing register.
10364 2011-02-22 Anatoly Sokolov <aesok@post.ru>
10366 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10369 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
10372 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10374 2011-02-22 Mike Stump <mikestump@comcast.net>
10376 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10378 * configure: Regenerate.
10380 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
10382 PR rtl-optimization/46002
10383 * ira-color.c (update_copy_costs): Change class intersection
10384 test to reg_class_contents[] test of 'hard_regno'.
10386 2011-02-21 Joseph Myers <joseph@codesourcery.com>
10388 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10389 than Driver option.
10390 * config/hpux11.opt (mt): Likewise.
10391 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10392 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10393 * config/vax/elf.opt (mno-asm-pic): Likewise.
10394 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10396 2011-02-21 Mike Stump <mikestump@comcast.net>
10399 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10400 tree so we can get save the type.
10401 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10402 for CFString instead of trying to use past the end of the builtins.
10403 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10404 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10405 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10406 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10407 Rename to darwin_builtin_cfstring.
10408 (darwin_init_cfstring_builtins): Return the built type.
10410 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
10413 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10414 (_mm256_insert_epi64): Use _mm_insert_epi64.
10416 2011-02-21 Anatoly Sokolov <aesok@post.ru>
10418 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10419 * config/stormy16/stormy16-protos.h
10420 (xstormy16_mode_dependent_address_p): Remove.
10421 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10422 Make static. Change return type to bool. Change argument type to
10423 const_rtx. Remove dead code.
10424 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10426 2011-02-21 Richard Guenther <rguenther@suse.de>
10429 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10430 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10431 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10433 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10434 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10436 2011-02-20 Richard Guenther <rguenther@suse.de>
10439 * tree.c (free_lang_data_in_decl): Clean builtins from
10440 the TU decl BLOCK_VARS.
10442 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
10446 * haifa-sched.c (fix_tick_ready): Skip tick computation
10449 2011-02-19 Richard Guenther <rguenther@suse.de>
10452 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10453 Remove lazy BLOCK_VARS streaming.
10454 (lto_input_ts_block_tree_pointers): Likewise.
10455 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10457 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10459 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10461 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10463 * config/i386/biarch32.h, config/i386/mach.h,
10464 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10466 2011-02-19 Jakub Jelinek <jakub@redhat.com>
10469 * config/i386/i386.md (peephole2 for shift and plus): Use
10470 operands[1] original mode in the first insn.
10472 2011-02-18 Mike Stump <mikestump@comcast.net>
10474 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10476 2011-02-18 Jan Hubicka <jh@suse.cz>
10478 PR middle-end/47788
10479 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10480 to zero when the function is not inlinable at all.
10482 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10484 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10485 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10486 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10487 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10488 * config/pa/t-pa64: Likewise.
10489 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10491 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10494 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10496 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10499 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10501 2011-02-18 Anatoly Sokolov <aesok@post.ru>
10503 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10504 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10505 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10506 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10507 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10508 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10509 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10510 m32r_load_postinc_p, m32r_store_preinc_predec_p,
10511 m32r_legitimate_address_p): New functions.
10512 * config/m32r/constraints.md (constraint "S"): Don't use
10513 STORE_PREINC_PREDEC_P.
10514 (constraint "U"): Don't use LOAD_POSTINC_P.
10516 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
10518 PR rtl-optimization/46178
10519 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10520 compute ira_hard_regno_cover_class[].
10522 2011-02-18 Richard Guenther <rguenther@suse.de>
10525 * lto-streamer.h (lto_global_var_decls): Declare.
10526 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10527 statics for global var processing.
10529 2011-02-18 Richard Guenther <rguenther@suse.de>
10531 PR tree-optimization/47737
10532 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10533 edge dominance check.
10535 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10538 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10539 avoid invalid rtx sharing.
10541 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
10543 * doc/cpp.texi (Obsolete Features): Add background on the
10544 origin of assertions.
10546 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
10548 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10550 * config/darwin.c (output_objc_section_asm_op): Added support for
10552 (is_objc_metadata): New.
10553 (darwin_objc2_section): New.
10554 (darwin_objc1_section): New.
10555 (machopic_select_section): Added support for ABI v1 and v2.
10556 (darwin_emit_objc_zeroed): New.
10557 (darwin_output_aligned_bss): Detect objc metadata and treat it
10559 (darwin_asm_output_aligned_decl_common): Same.
10560 (darwin_asm_output_aligned_decl_local): Same.
10561 * config/darwin-sections.def: Updated for ABI v1 and v2.
10562 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10563 compiling Objective-C code for the NeXT runtime, default to using
10564 ABI version 0 for 32-bit, and version 2 for 64-bit.
10566 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10568 * common.opt (optimize_fast): New Variable.
10569 * opts.c (default_options_optimization): Use opts->x_optimize_fast
10570 instead of local variable ofast.
10572 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
10574 * doc/invoke.texi (fobjc-abi-version): Documented.
10575 (fobjc-nilcheck): Documented.
10576 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10579 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10582 * common.opt (export-dynamic): New Driver option.
10583 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10585 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10587 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10589 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
10590 Jan Hubicka <jh@suse.cz>
10594 * cfgexpand.c (account_used_vars_for_block): Remove.
10595 (estimated_stack_frame_size): Use referenced vars.
10596 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10597 that were referenced in the original function. Test src_fn
10598 rather than cfun. Drop redundant get_var_ann.
10599 (setup_one_parameter): Drop redundant get_var_ann.
10600 (declare_return_variable): Likewise.
10601 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10602 (copy_arguments_for_versioning): Drop redundant get_var_ann.
10603 * ipa-inline.c (compute_inline_parameters): Do not compute
10604 disregard_inline_limits here.
10605 (compute_inlinable_for_current, pass_inlinable): New.
10606 (pass_inline_parameters): Require PROP_referenced_vars.
10607 * cgraphunit.c (cgraph_process_new_functions): Don't run
10608 compute_inline_parameters explicitly unless function is in SSA form.
10609 (cgraph_analyze_function): Set .disregard_inline_limits.
10610 * tree-sra.c (convert_callers): Compute inliner parameters
10611 only for functions already in SSA form.
10613 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10615 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10616 -mlittle-endian-data.
10618 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10620 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10621 -mno-fpu, not -fpu and -no-fpu.
10622 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10623 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10625 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
10628 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10629 input reload with PLUS RTX.
10631 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10633 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10634 of InverseVar(MDMX).
10636 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10638 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10641 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10643 * config/mn10300/mn10300.opt (mno-crt0): New.
10645 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10647 * config/m68k/uclinux.opt (static-libc): New Driver option.
10649 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10651 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10653 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10655 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10656 %{muser-extend-enabled}.
10658 2011-02-16 Richard Guenther <rguenther@suse.de>
10660 PR tree-optimization/47738
10661 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10662 the TODO from tree_predictive_commoning.
10664 2011-02-15 Jeff Law <law@redhat.com>
10667 2011-01-25 Jeff Law <law@redhat.com>
10669 PR rtl-optimization/37273
10670 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10671 handle them like argument loads from stack slots. Do not double
10672 count memory for memory constants and argument loads from stack slots.
10674 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10676 PR middle-end/47725
10677 * combine.c (cant_combine_insn_p): Revert the last change.
10679 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10682 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10683 mode for vector constants. Remove code that checks for TImode.
10685 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10689 * cgraph.h (compute_inline_parameters): Return void.
10690 * ipa-inline.c (compute_inline_parameters): Adjust.
10692 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10696 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10698 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10699 * ipa-inline.c (compute_inline_parameters): Adjust.
10701 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10705 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10706 Adjust all users. Pass FN to...
10707 * tree-flow-inline.h (first_referenced_var): ... this. Add
10709 * ipa-struct-reorg.c: Adjust.
10710 * tree-dfa.c: Adjust.
10711 * tree-into-ssa.c: Adjust.
10712 * tree-sra.c: Adjust.
10713 * tree-ssa-alias.c: Adjust.
10714 * tree-ssa-live.c: Adjust.
10715 * tree-ssa.c: Adjust.
10716 * tree-ssanames.c: Adjust.
10717 * tree-tailcall.c: Adjust.
10719 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10723 * tree-flow.h (referenced_var_lookup): Add fn parameter.
10724 Adjust all callers.
10725 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10726 * tree-flow-inline.h: Adjust.
10727 * gimple-pretty-print.c: Adjust.
10728 * tree-into-ssa.c: Adjust.
10729 * tree-ssa.c: Adjust.
10730 * cfgexpand.c: Adjust.
10732 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10734 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10735 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10736 (EXTRA_CONSTRAINT): Delete.
10737 * config/iq2000/constraints.md: New file.
10738 * config/iq2000/iq2000.md: Include it.
10739 (define_insn ""): Delete.
10740 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10741 unsupported constraint letters from patterns.
10742 (call_value, call_value_internal1): Likewise.
10743 (call_value_multiple_internal1): Likewise.
10745 2011-02-15 Nick Clifton <nickc@redhat.com>
10747 * config/mn10300/mn10300.c: Include tm-constrs.h.
10748 (struct liw_data): New data structure describing an LIW candidate
10750 (extract_bundle): Use struct liw_data. Allow small integer
10751 operands for some instructions.
10752 (check_liw_constraints): Use struct liw_data. Remove swapped
10753 parameter. Add comments describing the checks. Fix bug when
10754 assigning the source of liw1 to the source of liw2.
10755 (liw_candidate): Delete. Code moved into extract_bundle.
10756 (mn10300_bundle_liw): Use struct liw_data. Check constraints
10758 * config/mn10300/predicates.md (liw_operand): New predicate.
10759 Allows registers and small integer constants.
10760 * config/mn10300/constraints.md (O): New constraint. Accetps
10761 integers in the range -8 to +7 inclusive.
10762 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10763 for moving a small integer into a register. Give this alternative
10765 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10766 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10767 using the J,K,L and M constraints,
10768 (liw): Remove SI mode on second operands to allow for HI and QI
10770 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
10773 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10775 PR middle-end/47725
10776 * combine.c (cant_combine_insn_p): Check zero/sign extended
10779 2011-02-15 Richard Guenther <rguenther@suse.de>
10781 PR tree-optimization/47743
10782 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10783 for a non-type-compatible VN lookup bail out.
10785 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10787 * config/fr30/constraints.md: New file.
10788 * config/fr30/fr30.md: Include it.
10789 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10790 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10791 (EXTRA_CONSTRAINT): Delete.
10793 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10795 * config/frv/constraints.md: New file.
10796 * config/frv/predicates.md: Include it.
10797 * config/frv/frv.c (reg_class_from_letter): Delete.
10798 (frv_option_override): Don't initialize it.
10799 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10800 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10801 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10802 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10803 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10804 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10805 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10806 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10807 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10808 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10809 (REG_CLASS_FROM_CONSTRAINT): Delete.
10811 2011-02-15 Jakub Jelinek <jakub@redhat.com>
10813 PR middle-end/47581
10814 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10815 if frame size is 0 in a leaf function.
10817 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10820 * config/alpha/host-osf.c: New file.
10821 * config/alpha/x-osf: New file.
10822 * config.host (alpha*-dec-osf*): Use it.
10824 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10826 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10827 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10828 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10829 (rx_mode_dependent_address_p): ...this. Make static. Change argument
10831 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10833 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10835 * config/stormy16/constraints.md: New file.
10836 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10837 Use satisfies_constraint_Q and satisfies_constraint_R.
10838 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10840 (xstormy16_legitiamte_address_p): Declare.
10841 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10842 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10843 (EXTRA_CONSTRAINT): Delete.
10844 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10846 (xstormy16_extra_constraint_p): Delete.
10848 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
10850 PR tree-optimization/46494
10851 * loop-unroll.c (split_edge_and_insert): Adjust comment.
10852 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10853 (pass_rtl_loop_done): Add TODO_verify_flow.
10854 * fwprop.c (pass_rtl_fwprop): Likewise.
10855 * modulo-sched.c (pass_sms): Likewise.
10856 * tree-ssa-dom.c (pass_dominator): Likewise.
10857 * tree-ssa-loop-ch.c (pass_ch): Likewise.
10858 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10859 (pass_tree_loop_done): Likewise.
10860 * tree-ssa-pre.c (execute_pre): Likewise.
10861 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10862 * tree-ssa-sink.c (pass_sink_code): Likewise.
10863 * tree-vrp.c (pass_vrp): Likewise.
10865 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10867 * config/v850/constraints.md: New file.
10868 * config/v850/v850.md: Include it.
10869 * config/v850/predicates.md (reg_or_0_operand): Use
10870 satisfies_constraint_G.
10871 (special_symbolref_operand): Use satisfies_constraint_K.
10872 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10873 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10874 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10875 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10876 (EXTRA_CONSTRAINT): Delete.
10877 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10878 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10879 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10881 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10884 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10887 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10889 * config/mcore/constraints.md: New file.
10890 * config/mcore/mcore.md: Include it.
10891 * config/mcore/mcore.c (reg_class_from_letter): Delete.
10892 * config/mcore/mcore.h (reg_class_from_letter): Delete.
10893 (REG_CLASS_FROM_LETTER): Delete.
10894 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10895 insn_const_int_ok_for_constraint.
10896 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10897 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10898 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10899 (EXTRA_CONSTRAINT): Delete.
10901 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10904 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10905 (IS_SIGHANDLER): Define.
10906 (sparc64_is_sighandler): New function, split off from
10907 sparc64_fallback_frame_state.
10908 (sparc_is_sighandler): New function, split off from
10909 sparc_fallback_frame_state.
10910 (sparc64_fallback_frame_state): Merge with ...
10911 (sparc_fallback_frame_state): ... this into ...
10912 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10913 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10914 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10915 stack instead of hardcoded offsets.
10917 2011-02-14 Andriy Gapon <avg@freebsd.org>
10920 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10922 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10924 * configure: Regenerate.
10926 2011-02-12 Joseph Myers <joseph@codesourcery.com>
10929 * gcc.c (asm_options): Correct spec matching --target-help.
10931 2011-02-12 Martin Jambor <mjambor@suse.cz>
10933 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10934 to gimple call error.
10936 2011-02-12 Mike Stump <mikestump@comcast.net>
10938 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10939 comments in backslash regions.
10941 2011-02-12 Mike Stump <mikestump@comcast.net>
10942 Jakub Jelinek <jakub@redhat.com>
10943 Iain Sandoe <iains@gcc.gnu.org>
10946 * dwarf2out.c (output_cfa_loc): When required, apply the
10947 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10948 (output_loc_sequence): Likewise.
10949 (output_loc_operands_raw): Likewise.
10950 (output_loc_sequence_raw): Likewise.
10951 (output_cfa_loc): Likewise.
10952 (output_loc_list): Suppress register number adjustment when
10953 calling output_loc_sequence()
10954 (output_die): Likewise.
10956 2011-02-12 Anatoly Sokolov <aesok@post.ru>
10958 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10960 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10961 xtensa_memory_move_cost): New functions.
10962 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10964 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
10967 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10968 in the current directory.
10969 * configure: Rebuilt.
10971 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10973 * config/darwin.c (darwin_override_options): Add a hunk missed
10974 from the commit of r168571. Trim comment line lengths and
10975 correct indents of the preceding block.
10977 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10979 * gcc.c (driver_handle_option): Concatenate the argument to -F with
10982 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10984 * common.opt (nostartfiles): New Driver option.
10986 2011-02-11 Xinliang David Li <davidxl@google.com>
10988 PR tree-optimization/47707
10989 * tree-chrec.c (convert_affine_scev): Keep type precision.
10991 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
10993 PR tree-optimization/47420
10994 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10996 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
10998 PR rtl-optimization/47614
10999 * rtl.h (check_for_inc_dec): Declare.
11000 * dse.c (check_for_inc_dec): Externalize...
11001 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11002 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11004 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11007 * gcc.c (main): Do not compile inputs if there were errors in
11009 * opts-common.c (read_cmdline_option): Check for wrong language
11010 after other error checks.
11012 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
11014 * cgraph.c: Fix comment typos.
11015 * cgraph.h: Likewise.
11016 * cgraphunit.c: Likewise.
11017 * ipa-cp.c: Likewise.
11018 * ipa-inline.c: Likewise.
11019 * ipa-prop.c: Likewise.
11020 * ipa-pure-const.c: Likewise.
11021 * ipa-ref.c: Likewise.
11022 * ipa-reference.c: Likewise.
11024 2011-02-11 Jakub Jelinek <jakub@redhat.com>
11027 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11029 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11032 * doc/sourcebuild.texi (Require Support): Document
11033 dg-require-ascii-locale.
11035 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
11037 * doc/lto.texi (Write summary): Fix missing parentheses.
11039 2011-02-10 DJ Delorie <dj@redhat.com>
11041 * config/m32c/m32c.c (m32c_option_override): Disable
11042 -fcombine-stack-adjustments until flag value tracking and compare
11043 optimization can be rewritten.
11045 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
11047 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11049 (PROCESSOR_DEFAULT64): Likewise.
11051 2011-02-10 Richard Henderson <rth@redhat.com>
11053 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11054 change from 2011-02-03.
11055 * config/rx/rx.c (flags_from_code): Likewise.
11056 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11057 is valid, n/pz otherwise.
11058 (rx_select_cc_mode): Return CCmode if Y is not zero.
11060 2011-02-10 Richard Guenther <rguenther@suse.de>
11062 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11064 2011-02-10 Richard Guenther <rguenther@suse.de>
11066 PR tree-optimization/47677
11067 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11069 2011-02-10 Jakub Jelinek <jakub@redhat.com>
11072 * combine.c (make_compound_operation): Only change shifts into
11073 multiplication for SCALAR_INT_MODE_P.
11075 2011-02-10 Jie Zhang <jie@codesourcery.com>
11079 2011-02-05 Jie Zhang <jie@codesourcery.com>
11081 * web.c (entry_register): Don't clobber the number of the
11082 first uninitialized reference in used[].
11084 2011-02-09 Richard Guenther <rguenther@suse.de>
11086 PR tree-optimization/47664
11087 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11090 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
11094 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11096 (PROCESSOR_DEFAULT64): Same.
11097 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11099 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11101 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11103 2011-02-09 Martin Jambor <mjambor@suse.cz>
11105 PR middle-end/45505
11106 * tree-sra.c (struct access): New flags grp_scalar_read and
11107 grp_scalar_write. Changed description of assignment read and write
11109 (dump_access): Dump new flags, reorder all of them.
11110 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11111 to detect multiple scalar reads.
11112 (analyze_access_subtree): Use the new scalar read write flags instead
11113 of the old flags. Adjusted comments.
11115 2011-02-08 DJ Delorie <dj@redhat.com>
11118 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11121 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11123 * config/m68k/uclinux.opt: New.
11124 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11126 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11128 * config/cris/elf.opt (sim): New Driver option.
11130 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11132 * config/xtensa/elf.opt: New.
11133 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11135 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11137 * config/vax/elf.opt: New.
11138 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11140 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11142 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11144 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11146 * config/gnu-user.opt: New.
11147 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11148 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11149 *-*-uclinux*): Use gnu-user.opt.
11151 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
11153 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11154 * config/i386/gnu.h (CPP_SPEC): Likewise.
11156 2011-02-08 Ian Lance Taylor <iant@google.com>
11158 * common.opt (fcx-limited-range): Add SetByCombined flag.
11159 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11160 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11161 (fassociative-math, freciprocal-math): Likewise.
11162 (funsafe-math-optimizations): Likewise.
11163 * opth-gen.awk: Handle SetByCombined.
11164 * optc-gen.awk: Likewise.
11165 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11166 (set_unsafe_math_optimizations_flags): Likewise.
11167 * doc/options.texi (Option properties): Document SetByCombined.
11169 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11171 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11172 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11173 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11174 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11175 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11177 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
11179 PR tree-optimization/46834
11180 PR tree-optimization/46994
11181 PR tree-optimization/46995
11182 * graphite-sese-to-poly.c (used_outside_reduction): New.
11183 (detect_commutative_reduction): Call used_outside_reduction.
11184 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11185 translate_scalar_reduction_to_array only when at least one
11186 loop-phi/close-phi tuple has been detected.
11188 2011-02-08 Richard Guenther <rguenther@suse.de>
11190 PR middle-end/47639
11191 * tree-vect-generic.c (expand_vector_operations_1): Update
11193 (expand_vector_operations): ... not here. Cleanup EH info
11194 and the CFG if required.
11196 2011-02-08 Richard Guenther <rguenther@suse.de>
11198 PR tree-optimization/47641
11199 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11200 require type compatibility.
11202 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11204 * gimple-low.c (lower_function_body): Don't remove the location of
11205 the return statement here.
11206 (lower_gimple_return): Do it here instead but only if the return
11207 statement is actually used twice.
11209 2011-02-08 Richard Guenther <rguenther@suse.de>
11211 PR tree-optimization/47632
11212 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11213 unused up_to_stmt parameter, return whether cfg-cleanup is
11214 necessary, remove EH info properly.
11215 (forward_propagate_into_gimple_cond): Adjust caller.
11216 (forward_propagate_into_cond): Likewise.
11217 (forward_propagate_comparison): Likewise.
11218 (tree_ssa_forward_propagate_single_use_vars): Make
11219 forward_propagate_comparison case similar to the two others.
11221 2011-02-08 Nick Clifton <nickc@redhat.com>
11223 * config/mn10300/mn10300.opt (mliw): New command line option.
11224 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11225 (liw_bundling): New automaton.
11226 (liw): New attribute.
11227 (liw_op): New attribute.
11228 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11229 (movsi_internal): Add LIW attributes.
11230 (andsi3): Likewise.
11231 (iorsi3): Likewise.
11232 (xorsi3): Likewise.
11233 (addsi3): Separate register and immediate alternatives.
11234 Add LIW attributes.
11235 (subsi3): Likewise.
11237 (aslsi3): Likewise.
11238 (lshrsi3): Likewise.
11239 (ashrsi3): Likewise.
11240 (liw): New pattern.
11241 * config/mn10300/mn10300.c (liw_op_names): New
11242 (mn10300_print_operand): Handle 'W' operand descriptor.
11243 (extract_bundle): New function.
11244 (check_liw_constraints): New function.
11245 (liw_candidate): New function.
11246 (mn10300_bundle_liw): New function.
11247 (mn10300_reorg): New function.
11248 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11249 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11250 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11251 __LIW__ or __NO_LIW__.
11252 * doc/invoke.texi: Describe the -mliw command line option.
11254 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11256 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11257 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11258 pthread_mutex_unlock): Remove.
11259 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11260 * config/pa/t-pa64: Likewise.
11261 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11262 shared libc if not linking against libpthread.
11263 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11265 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
11268 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11269 on 10.6 and later to ensure that we always use the unwinder from
11270 the system. Only add -no_compact_unwind when tarteting darwin
11273 2011-02-07 Steve Ellcey <sje@cup.hp.com>
11276 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11277 (vec_interleave_lowv2sf): Ditto.
11278 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11279 (vec_extract_oddv2sf): Ditto.
11281 2011-02-07 Mike Stump <mikestump@comcast.net>
11284 Add __ieee_divdc3 entry point.
11285 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11287 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11288 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11289 * config/darwin.c (darwin_rename_builtins): Add.
11290 * config/darwin-protos.h (darwin_rename_builtins): Add.
11292 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
11295 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11298 2011-02-07 Mike Stump <mikestump@comcast.net>
11300 * config/darwin.opt (mmacosx-version-min): Update default OS version.
11302 2011-02-07 Denis Chertykov <chertykov@gmail.com>
11305 * config/avr/libgcc.S (exit): Move .endfunc
11307 2011-02-07 Richard Guenther <rguenther@suse.de>
11309 PR tree-optimization/47615
11310 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11311 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11312 (run_scc_vn): Initialize it.
11313 (visit_reference_op_load): Use it.
11314 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11316 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11318 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11319 DImode trapping arithmetic libfuncs.
11321 2011-02-07 Richard Guenther <rguenther@suse.de>
11323 PR tree-optimization/47621
11324 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11326 (execute_update_addresses_taken): ... here. Make it more
11327 conservative in what we accept.
11329 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11331 * config/sparc/freebsd.h (ASM_SPEC): Define.
11332 * config/sparc/vxworks.h (ASM_SPEC): Define.
11334 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11336 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11338 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
11340 * doc/invoke.texi: Remove reference to compiler internals from
11341 user documentation.
11343 * reg-notes.def: Remove REG_VALUE_PROFILE.
11344 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11346 2011-02-05 Jakub Jelinek <jakub@redhat.com>
11348 PR middle-end/47610
11349 * varasm.c (default_section_type_flags): If decl is NULL,
11350 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11352 2011-02-05 Jie Zhang <jie@codesourcery.com>
11355 * web.c (entry_register): Don't clobber the number of the
11356 first uninitialized reference in used[].
11358 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
11360 PR tree-optimization/46194
11361 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11362 (build_classic_dist_vector_1): Do not represent classic distance
11363 vectors when the access functions are variating in different loops.
11365 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11367 * config/mips/iris6.opt: New.
11368 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11370 2011-02-04 Richard Henderson <rth@redhat.com>
11371 Steve Ellcey <sje@cup.hp.com>
11374 * config/ia64/predicates.md (mux1_brcst_element): New.
11375 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11376 * config/ia64/ia64.c (ia64_unpack_assemble): New.
11377 (ia64_unpack_sign): New.
11378 (ia64_expand_unpack): Rewrite using new routines.
11379 (ia64_expand_widen_sum): Ditto.
11380 (ia64_expand_dot_prod_v8qi): Ditto.
11381 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11382 routines, add endian check.
11383 (pmpy2_even): Rename from pmpy2_r, add endian check.
11384 (pmpy2_odd): Rename from pmpy2_l, add endian check.
11385 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11386 (vec_widen_smult_hi_v4hi): Ditto.
11387 (vec_widen_umult_lo_v4hi): Ditto.
11388 (vec_widen_umult_hi_v4hi): Ditto.
11389 (mulv2si3): Change endian checks.
11390 (sdot_prodv4hi): Rewrite with new calls.
11391 (udot_prodv4hi): New.
11392 (vec_pack_ssat_v4hi): Add endian check.
11393 (vec_pack_usat_v4hi): Ditto.
11394 (vec_pack_ssat_v2si): Ditto.
11395 (max1_even): Rename from max1_r, add endian check.
11396 (max1_odd): Rename from max1_l, add endian check.
11397 (*mux1_rev): Format change.
11398 (*mux1_mix): Ditto.
11399 (*mux1_shuf): Ditto.
11400 (*mux1_alt): Ditto.
11401 (*mux1_brcst_v8qi): Use new predicate.
11402 (vec_extract_evenv8qi): Remove endian check.
11403 (vec_extract_oddv8qi): Ditto.
11404 (vec_interleave_lowv4hi): Format change.
11405 (vec_interleave_highv4hi): Ditto.
11406 (mix2_even): Rename from mix2_r, add endian check.
11407 (mix2_odd): Rename from mux2_l, add endian check.
11408 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11409 (vec_extract_evenodd_helper): Format change.
11410 (vec_extract_evenv4hi): Remove endian check.
11411 (vec_extract_oddv4hi): Remove endian check.
11412 (vec_interleave_lowv2si): Format change.
11413 (vec_interleave_highv2si): Format change.
11414 (vec_initv2si): Remove endian check.
11415 (vecinit_v2si): Add endian check.
11416 (reduc_splus_v2sf): Add endian check.
11417 (reduc_smax_v2sf): Ditto.
11418 (reduc_smin_v2sf): Ditto.
11419 (vec_initv2sf): Remove endian check.
11420 (fpack): Add endian check.
11421 (fswap): Add endian check.
11422 (vec_interleave_highv2sf): Add endian check.
11423 (vec_interleave_lowv2sf): Add endian check.
11424 (fmix_lr): Add endian check.
11425 (vec_setv2sf): Format change.
11426 (*vec_extractv2sf_0_be): Use shift to extract operand.
11427 (*vec_extractv2sf_1_be): New.
11428 (vec_pack_trunc_v4hi): Add endian check.
11429 (vec_pack_trunc_v2si): Format change.
11431 2011-02-04 Jakub Jelinek <jakub@redhat.com>
11433 PR inline-asm/23200
11434 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
11435 do bb, locus and block comparison and disallow loads if it is not set.
11436 (stmt_is_replaceable_p): New function.
11437 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11439 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11440 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11442 * tree-flow.h (stmt_is_replaceable_p): New prototype.
11444 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11446 * config/rs6000/xilinx.opt: New.
11447 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11449 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11451 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11453 2011-02-03 Anatoly Sokolov <aesok@post.ru>
11455 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11456 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11457 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11458 secondary_reload_info, xtensa_secondary_reload): Remove.
11459 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11460 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11461 (xtensa_preferred_reload_class): Make static. Change return and
11462 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11463 Use CONST_DOUBLE_P predicate.
11464 (xtensa_preferred_output_reload_class): New function.
11465 (xtensa_secondary_reload): Make static.
11467 2011-02-03 Joseph Myers <joseph@codesourcery.com>
11469 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11470 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11471 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11473 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11475 PR middle-end/31490
11476 * output.h (SECTION_RELRO): Define.
11477 (SECTION_MACH_DEP): Adjust.
11478 (get_variable_section): New prototype.
11479 * varpool.c (varpool_finalize_named_section_flags): New function.
11480 (varpool_assemble_pending_decls): Call it.
11481 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11482 * cgraphunit.c (cgraph_output_in_order): Call
11483 varpool_finalize_named_section_flags.
11484 * varasm.c (get_section): Allow section flags conflicts between
11485 relro and read-only sections if the section hasn't been declared yet.
11486 Set SECTION_OVERRIDE after diagnosing section type conflict.
11487 (get_variable_section): No longer static.
11488 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11489 readonly sections that need relocations.
11490 (decl_readonly_section_1): New function.
11491 (decl_readonly_section): Use it.
11494 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
11495 Steve Ellcey <sje@cup.hp.com>
11497 PR middle-end/31490
11498 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11499 if section attribute used.
11501 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11503 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11504 * config/darwin.c (SECTION_NO_ANCHOR): Define.
11505 (darwin_init_sections): Remove assertion.
11507 2011-02-03 Nick Clifton <nickc@redhat.com>
11509 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11511 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11512 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11513 instead of "n" and "pz".
11514 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11517 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11520 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11521 fma, expand FMA_EXPR as fma{,f,l} call.
11524 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11525 copy them into a unsigned char variable and pass address of it to
11526 lto_output_data_stream.
11529 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11530 around backend_init_target and lang_dependent_init_target calls.
11531 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11532 (verify_cgraph_node): Don't call set_cfun here. Use
11533 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11534 Set error_found for incorrectly represented calls to thunks.
11536 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11539 PR rtl-optimization/43494
11540 * rtl.h (for_each_inc_dec_fn): New type.
11541 (for_each_inc_dec): Declare.
11542 * rtlanal.c (struct for_each_inc_dec_ops): New type.
11543 (for_each_inc_dec_find_inc_dec): New fn.
11544 (for_each_inc_dec_find_mem): New fn.
11545 (for_each_inc_dec): New fn.
11546 * dse.c (struct insn_size): Remove.
11547 (replace_inc_dec, replace_inc_dec_mem): Remove.
11548 (emit_inc_dec_insn_before): New fn.
11549 (check_for_inc_dec): Use it, along with for_each_inc_dec.
11550 (canon_address): Pass mem modes to cselib_lookup.
11551 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
11552 (cselib_lookup_from_insn): Likewise.
11553 (cselib_subst_to_values): Likewise.
11554 * cselib.c (find_slot_memmode): New var.
11555 (cselib_find_slot): New fn. Use it instead of
11556 htab_find_slot_with_hash everywhere.
11557 (entry_and_rtx_equal_p): Use find_slot_memmode.
11558 (autoinc_split): New fn.
11559 (rtx_equal_for_cselib_p): Rename and implement in terms of...
11560 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
11561 Deal with autoinc. Special-case recursion into MEMs.
11562 (cselib_hash_rtx): Likewise.
11563 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
11564 address and MEM modes.
11565 (cselib_subst_to_values): Add memmode, pass it on.
11567 (cselib_lookup): Add memmode argument, pass it on.
11568 (cselib_lookup_from_insn): Add memmode.
11569 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11570 (struct cselib_record_autoinc_data): New.
11571 (cselib_record_autoinc_cb): New fn.
11572 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
11573 mode to cselib_lookup. Reset autoinced REGs here instead of...
11574 (cselib_process_insn): ... here.
11575 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11577 (add_uses): Likewise, also to cselib_subst_to_values.
11578 (add_stores): Likewise.
11579 * sched-deps.c (add_insn_mem_dependence): Pass mode to
11580 cselib_subst_to_values.
11581 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
11582 * gcse.c (do_local_cprop): Adjusted.
11583 * postreload.c (reload_cse_simplify_set): Adjusted.
11584 (reload_cse_simplify_operands): Adjusted.
11585 * sel-sched-dump (debug_mem_addr_value): Pass mode.
11587 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11589 PR tree-optimization/45122
11590 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11591 unsafe assumptions when there's more than one loop exit.
11593 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11596 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11597 Document using vector double with the load/store builtins, and
11598 that the load/store builtins always use Altivec instructions.
11600 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11601 to use altivec memory instructions, even on VSX.
11602 (vector_altivec_store_<mode>): Ditto.
11604 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11607 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11608 V2DF, V2DI support to load/store overloaded builtins.
11610 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11611 altivec load/store builtins for V2DF/V2DI types.
11613 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11614 set avoid indexed addresses on power6 if -maltivec.
11615 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11616 vector_altivec_load/vector_altivec_store builtins.
11617 (altivec_expand_st_builtin): Ditto.
11618 (altivec_expand_builtin): Add VSX memory builtins.
11619 (rs6000_init_builtins): Add V2DI types to internal types.
11620 (altivec_init_builtins): Add support for V2DF/V2DI altivec
11621 load/store builtins.
11622 (rs6000_address_for_altivec): Insure memory address is appropriate
11625 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11626 vec_vsx_ld and vec_vsx_st.
11627 (vsx_store_<mode>): Ditto.
11629 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11630 variables to hold long long types for VSX vector memory builtins.
11631 (RS6000_BTI_unsigned_long_long): Ditto.
11632 (long_long_integer_type_internal_node): Ditti.
11633 (long_long_unsigned_type_internal_node): Ditti.
11635 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11636 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11637 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11639 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11641 (vec_vsx_st): Ditto.
11643 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11645 * config/pa/pa-hpux10.opt: New.
11646 * config/hpux11.opt (pthread): New Driver option.
11647 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11648 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11650 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11652 * config/ia64/vms.opt: New.
11653 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11655 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11658 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11659 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11660 generator functions.
11661 (vsx_floatuns<VSi><mode>2): Ditto.
11662 (vsx_fix_trunc<mode><VSi>2): Ditto.
11663 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11665 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11667 * config/i386/djgpp.opt (posix): New Driver option.
11669 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
11671 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11672 Move to the unsupported targets list.
11674 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
11676 PR rtl-optimization/47525
11677 * df-scan.c: Update copyright years.
11678 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11679 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11681 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11683 * config/i386/sysv4.h (TARGET_VERSION): Remove.
11684 (SUBTARGET_RETURN_IN_MEMORY): Remove.
11685 (ASM_OUTPUT_ASCII): Remove.
11686 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11688 2011-02-02 Jeff Law <law@redhat.com>
11690 PR middle-end/47543
11691 * reload.c (find_reloads_address): Handle reg+d address where both
11692 components are invalid by reloading the entire address.
11694 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11695 Richard Guenther <rguenther@suse.de>
11697 PR tree-optimization/40979
11699 * passes.c (init_optimization_passes): After LIM call copy_prop
11700 and DCE to clean up.
11701 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11703 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11705 PR tree-optimization/47576
11706 PR tree-optimization/47555
11707 * doc/invoke.texi (scev-max-expr-complexity): Documented.
11708 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11709 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11710 * tree-scalar-evolution.c (follow_ssa_edge): Use
11711 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11713 2011-02-02 Richard Guenther <rguenther@suse.de>
11715 PR tree-optimization/47566
11716 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11718 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11722 * tree-inline.c (declare_return_variable): Remove unused caller
11727 * tree-flow-inline.h (clear_is_used, is_used_p): New.
11728 * cfgexpand.c (account_used_vars_for_block): Use them.
11729 * tree-nrv.c (tree_nrv): Likewise.
11730 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11731 (dump_scope_block): Likewise.
11732 (remove_unused_locals): Likewise.
11736 * tree-inline.c (declare_return_variable): Add result decl to
11737 local decls only once.
11738 * gimple-low.c (record_vars_into): Mark newly-created variables
11741 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11747 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11749 (no_real_insns_p, schedule_block, set_priorities): Drop special
11750 treatment of boundary debug insns.
11751 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11752 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11753 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11754 (BOUNDARY_DEBUG_INSN_P): Likewise.
11755 (SCHEDULE_DEBUG_INSN_P): Likewise.
11756 * sched-rgn.c (init_ready_list): Drop special treatment of
11757 boundary debug insns.
11758 * final.c (rest_of_clean_state): Clear notes' BB.
11760 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11762 * config/openbsd.opt (assert=): New Driver option.
11764 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11766 * config/i386/nto.opt: New.
11767 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11769 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11771 * config/i386/netware.opt: New.
11772 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11774 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11776 * config/interix.opt (posix): New Driver option.
11778 2011-02-01 DJ Delorie <dj@redhat.com>
11780 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11782 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11785 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
11787 PR tree-optimization/47561
11788 * toplev.c (process_options): Print the Graphite flags. Add
11789 flag_loop_flatten to the list of options requiring Graphite.
11791 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11793 * config/i386/cygming.opt (posix): New Driver option.
11795 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11797 * config/arm/vxworks.opt: New.
11798 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11800 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11802 * config/alpha/elf.opt: New.
11803 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11804 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11806 2011-02-01 Richard Guenther <rguenther@suse.de>
11808 PR tree-optimization/47559
11809 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11810 store-motion on references that can throw.
11812 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
11814 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11815 * tree-pass.h (TDF_CSELIB): New macro.
11816 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11817 cselib_lookup): Check for it rather than for TDF_DETAILS.
11819 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
11822 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11823 is HOST_BIT_BUCKET.
11825 * opts.c (finish_options): Don't add x_aux_base_name if it is
11828 2011-02-01 Richard Guenther <rguenther@suse.de>
11830 PR tree-optimization/47555
11832 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
11834 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11836 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
11839 * config/lm32/t-lm32: Add multilib for all CPU options.
11841 2011-02-01 Richard Guenther <rguenther@suse.de>
11843 PR tree-optimization/47541
11844 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11845 sure to have a field at offset zero.
11847 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11849 * config/arc/arc.opt (EB, EL): New Driver options.
11851 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11853 * config/alpha/osf5.opt: New.
11854 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11856 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11858 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11860 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
11862 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11863 -floop-interchange.
11864 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11865 is an alias of -floop-interchange and that it requires the
11866 Graphite infrastructure.
11867 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11868 flag_loop_interchange based on the value of flag_tree_loop_linear.
11870 2011-01-31 Jakub Jelinek <jakub@redhat.com>
11871 Richard Guenther <rguenther@suse.de>
11873 PR tree-optimization/47538
11874 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11875 type instead of r1type, except for comparisons. For right
11876 shifts and comparisons punt if there are mismatches in
11877 sizetype vs. non-sizetype types.
11879 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11881 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11884 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11886 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11888 * configure: Regenerate.
11890 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11892 * configure.ac (gcc_cv_ld_static_option): Define.
11893 (gcc_cv_ld_dynamic_option): Define.
11894 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11896 (HAVE_LD_STATIC_DYNAMIC): Update message.
11897 (LD_STATIC_OPTION): Define.
11898 (LD_DYNAMIC_OPTION): Define.
11899 * configure: Regenerate.
11900 * config.in: Regenerate.
11901 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11902 HAVE_LD_STATIC_DYNAMIC]: Use them.
11904 2011-01-31 Nick Clifton <nickc@redhat.com>
11906 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11907 registers inside interrupt handlers if the handler is not a leaf
11910 2011-01-31 Nick Clifton <nickc@redhat.com>
11912 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11913 reg_renumber returning an INVALID_REGNUM.
11915 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11918 * doc/install.texi: Document host options discarded when cross
11919 configuring target libraries.
11921 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11924 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11927 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11929 (no_real_insns_p, schedule_block, set_priorities): Drop special
11930 treatment of boundary debug insns.
11931 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11932 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11933 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11934 (BOUNDARY_DEBUG_INSN_P): Likewise.
11935 (SCHEDULE_DEBUG_INSN_P): Likewise.
11936 * sched-rgn.c (init_ready_list): Drop special treatment of
11937 boundary debug insns.
11938 * final.c (rest_of_clean-state): Clear notes' BB.
11940 2011-01-31 Alan Modra <amodra@gmail.com>
11942 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11943 toc relative expressions as we do in print_operand_address.
11945 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
11947 * doc/extend.texi: Follow spelling conventions.
11948 * doc/invoke.texi: Fix a typo.
11950 2011-01-30 Joseph Myers <joseph@codesourcery.com>
11952 * config/hpux11.opt: New.
11953 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11954 ia64*-*-hpux*): Use hpux11.opt.
11956 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
11958 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11961 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11963 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11966 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11968 * doc/install.texi (Binaries): Remove outdated reference for
11969 Motorola 68HC11/68HC12 downloads.
11971 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11973 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11976 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
11979 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11982 2011-01-28 Ahmad Sharif <asharif@google.com>
11984 * value-prof.c (check_counter): Corrected error message.
11986 2011-01-29 Jie Zhang <jie@codesourcery.com>
11988 * config/arm/arm.c (arm_legitimize_reload_address): New.
11989 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11990 arm_legitimize_reload_address.
11991 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11993 2011-01-28 Ian Lance Taylor <iant@google.com>
11995 * godump.c (go_define): Ignore macros whose definitions include
11996 two adjacent operands.
11998 2011-01-28 Jakub Jelinek <jakub@redhat.com>
12001 * varasm.c (force_const_mem): Store copy of x in desc->constant
12002 instead of x itself.
12003 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12004 itself into REG_EQUAL note.
12006 2011-01-28 Joseph Myers <joseph@codesourcery.com>
12008 * config/freebsd.opt (posix, rdynamic): New Driver options.
12010 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12012 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12013 -Bstatic/-Bdynamic.
12014 * configure: Regenerate.
12016 2011-01-27 Joseph Myers <joseph@codesourcery.com>
12018 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12019 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12021 2011-01-27 Anatoly Sokolov <aesok@post.ru>
12023 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12024 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12025 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12026 (s390_preferred_reload_class): Make static. Change return and
12027 'rclass' argument type to reg_class_t.
12029 2011-01-27 Jan Hubicka <jh@suse.cz>
12031 PR middle-end/46949
12032 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12033 (process_function_and_variable_attributes): Check defined weakrefs.
12035 2011-01-27 Martin Jambor <mjambor@suse.cz>
12037 PR tree-optimization/47228
12038 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12039 build_ref_for_offset.
12041 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12043 * config/spu/spu-elf.h (ASM_SPEC): Remove.
12045 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
12047 PR rtl-optimization/46856
12048 * postreload.c (reload_combine_recognize_const_pattern): Do not
12049 separate cc0 setter and user on cc0 targets.
12051 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
12054 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12055 passed a VOID_TYPE expression, immediately emit an error and
12056 return error_mark_node.
12058 2011-01-26 Jeff Law <law@redhat.com>
12060 PR rtl-optimization/47464
12061 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12062 rather than may_trap_p as needed.
12064 2011-01-26 DJ Delorie <dj@redhat.com>
12066 PR rtl-optimization/46878
12067 * combine.c (insn_a_feeds_b): Check for the implicit cc0
12068 setter/user dependency as well.
12070 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
12072 PR rtl-optimization/44469
12073 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12074 after removing trivially dead basic blocks.
12076 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12078 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12079 * config/frv/frv.h (LINK_SPEC): Likewise.
12080 * config/i386/netware.h (LINK_SPEC): Likewise.
12081 * config/m68k/linux.h (ASM_SPEC): Likewise.
12082 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12083 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12084 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12085 * config/sparc/linux.h (ASM_SPEC): Likewise.
12086 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12087 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12089 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12091 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12092 * config/frv/frv.h (ASM_SPEC): Likewise.
12093 * config/m68k/linux.h (ASM_SPEC): Likewise.
12094 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12095 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12096 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12097 * config/sparc/linux.h (ASM_SPEC): Likewise.
12098 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12099 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12101 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12103 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12104 * config/frv/frv.h (LINK_SPEC): Likewise.
12105 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12107 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12109 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12110 * config/frv/frv.h (ASM_SPEC): Likewise.
12111 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12112 * config/m68k/linux.h (ASM_SPEC): Likewise.
12113 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12114 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12115 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12116 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12117 * config/sparc/linux.h (ASM_SPEC): Likewise.
12118 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12119 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12120 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12122 2011-01-26 Steve Ellcey <sje@cup.hp.com>
12125 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12127 (vec_extract_evenodd_help): Ditto.
12128 (vec_extract_evenv4hi): Ditto.
12129 (vec_extract_oddv4hi): Ditto.
12130 (vec_interleave_lowv2si): Ditto.
12131 (vec_interleave_highv2si): Ditto.
12132 (vec_extract_evenv2si): Ditto.
12133 (vec_extract_oddv2si: Ditto.
12134 (vec_pack_trunc_v2si): Ditto.
12136 2011-01-22 Jan Hubicka <jh@suse.cz>
12139 * cgraph.h (cgraph_local_info): New field can_change_signature.
12140 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12141 signature can change.
12142 (ipcp_estimate_growth): Call sequence simplify only if calle signature
12144 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12145 (cgraph_function_versioning): We can not change signature of functions
12146 that don't allow that.
12147 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12148 (lto_input_node): Likewise.
12149 * ipa-inline.c (compute_inline_parameters): Compute
12150 local.can_change_signature.
12151 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12152 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12153 functions that can not change signature.
12154 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12155 init_cumulative_args): Do not use local calling conventions
12156 for functions that can not change signature.
12158 2011-01-22 Jan Hubicka <jh@suse.cz>
12160 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12162 2011-01-26 Richard Guenther <rguenther@suse.de>
12164 PR tree-optimization/47190
12165 * cgraphunit.c (process_common_attributes): New function.
12166 (process_function_and_variable_attributes): Use it.
12168 2011-01-26 Richard Guenther <rguenther@suse.de>
12171 * cgraphbuild.c (record_eh_tables): Record reference to personality
12174 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
12177 * sel-sched.c (moveup_expr): Don't let debug insns prevent
12178 non-debug insns from moving up.
12180 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12183 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12184 t-dlldir{,-x} fragment for build and add it to tmake_file.
12185 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12186 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12187 * config/i386/t-dlldir: New file.
12188 (SHLIB_DLLDIR): Define.
12189 * config/i386/t-dlldir-x: New file.
12190 (SHLIB_DLLDIR): Define.
12191 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12192 (SHLIB_INSTALL): Use it.
12194 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
12197 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12198 lower bound of the allowed Thumb-2 coprocessor load/store
12199 index range to -256. Add explaining comment.
12201 2011-01-25 Ian Lance Taylor <iant@google.com>
12203 * godump.c (go_define): Improve lexing of macro expansion to only
12204 accept expressions which match Go spec.
12206 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12209 * tree.c (handle_dll_attribute): Handle it.
12210 * doc/extend.texi (@item dllexport): Mention it.
12211 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12213 2011-01-25 Ian Lance Taylor <iant@google.com>
12215 PR tree-optimization/26854
12216 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12217 (decl_jump_unsafe): Move higher in file, with no other change.
12218 (bind): Set has_jump_unsafe_decl if appropriate.
12219 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12220 (check_earlier_gotos): Likewise.
12221 (c_check_switch_jump_warnings): Likewise.
12223 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
12225 * doc/invoke.texi (Warning Options): Add missing hyphen.
12226 (-fprofile-dir): Minor grammatical fixes.
12227 (-fbranch-probabilities): Likewise.
12229 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12233 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12235 (no_real_insns_p, schedule_block, set_priorities): Drop special
12236 treatment of boundary debug insns.
12237 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12238 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12239 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12240 (BOUNDARY_DEBUG_INSN_P): Likewise.
12241 (SCHEDULE_DEBUG_INSN_P): Likewise.
12242 * sched-rgn.c (init_ready_list): Drop special treatment of
12243 boundary debug insns.
12244 * final.c (rest_of_clean-state): Clear notes' BB.
12246 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12248 * Makefile.in (LAMBDA_H): Removed.
12249 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12250 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12251 lambda-trans.o, and tree-loop-linear.o.
12252 (lto-symtab.o): Remove dependence on LAMBDA_H.
12253 (tree-loop-linear.o): Remove rule.
12254 (lambda-mat.o): Same.
12255 (lambda-trans.o): Same.
12256 (lambda-code.o): Same.
12257 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12258 (tree-vect-slp.o): Same.
12259 * hwint.h (gcd): Moved here.
12260 (least_common_multiple): Same.
12261 * lambda-code.c: Removed.
12262 * lambda-mat.c: Removed.
12263 * lambda-trans.c: Removed.
12264 * lambda.h: Removed.
12265 * tree-loop-linear.c: Removed.
12266 * lto-symtab.c: Do not include lambda.h.
12267 * omega.c (gcd): Removed.
12268 * passes.c (init_optimization_passes): Remove pass_linear_transform.
12269 * tree-data-ref.c (print_lambda_vector): Moved here.
12270 (lambda_vector_copy): Same.
12271 (lambda_matrix_copy): Same.
12272 (lambda_matrix_id): Same.
12273 (lambda_vector_first_nz): Same.
12274 (lambda_matrix_row_add): Same.
12275 (lambda_matrix_row_exchange): Same.
12276 (lambda_vector_mult_const): Same.
12277 (lambda_vector_negate): Same.
12278 (lambda_matrix_row_negate): Same.
12279 (lambda_vector_equal): Same.
12280 (lambda_matrix_right_hermite): Same.
12281 * tree-data-ref.h: Do not include lambda.h.
12282 (lambda_vector): Moved here.
12283 (lambda_matrix): Same.
12284 (dependence_level): Same.
12285 (lambda_transform_legal_p): Removed declaration.
12286 (lambda_collect_parameters): Same.
12287 (lambda_compute_access_matrices): Same.
12288 (lambda_vector_gcd): Same.
12289 (lambda_vector_new): Same.
12290 (lambda_vector_clear): Same.
12291 (lambda_vector_lexico_pos): Same.
12292 (lambda_vector_zerop): Same.
12293 (lambda_matrix_new): Same.
12294 * tree-flow.h (least_common_multiple): Removed declaration.
12295 * tree-parloops.c (lambda_trans_matrix): Moved here.
12296 (LTM_MATRIX): Same.
12297 (LTM_ROWSIZE): Same.
12298 (LTM_COLSIZE): Same.
12299 (LTM_DENOMINATOR): Same.
12300 (lambda_trans_matrix_new): Same.
12301 (lambda_matrix_vector_mult): Same.
12302 (lambda_transform_legal_p): Same.
12303 * tree-pass.h (pass_linear_transform): Removed declaration.
12304 * tree-ssa-loop.c (tree_linear_transform): Removed.
12305 (gate_tree_linear_transform): Removed.
12306 (pass_linear_transform): Removed.
12307 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12308 flag_loop_interchange.
12310 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12312 PR tree-optimization/47265
12313 PR tree-optimization/47443
12314 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12315 if name still has some uses.
12317 2011-01-25 Martin Jambor <mjambor@suse.cz>
12319 PR tree-optimization/47382
12320 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12321 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12323 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
12325 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12326 sjlj_except_unwind_info.
12328 2011-01-25 Richard Guenther <rguenther@suse.de>
12330 PR tree-optimization/47426
12331 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12332 visible functions results escape.
12334 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12337 * config/arm/arm.c (any_sibcall_uses_r3): New function.
12338 (arm_get_frame_offsets): Use it.
12340 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12341 Jakub Jelinek <jakub@redhat.com>
12343 PR tree-optimization/47271
12344 * tree-if-conv.c (bb_postdominates_preds): New.
12345 (if_convertible_bb_p): Call bb_postdominates_preds.
12346 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12347 (predicate_scalar_phi): Call bb_postdominates_preds.
12349 2011-01-25 Nick Clifton <nickc@redhat.com>
12351 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12352 * config/rx/rx.c (rx_function_value): Likewise.
12353 (rx_promote_function_mode): Likewise.
12354 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12355 in order to make it legitimate.
12356 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12357 make sure that the first operand is the same as the result register.
12358 (addsi3_unspec): Delete.
12359 (subdi3): Do not accept immediate operands.
12360 (subdi3_internal): Likewise.
12362 2011-01-25 Jeff Law <law@redhat.com>
12364 PR rtl-optimization/37273
12365 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12366 handle them like argument loads from stack slots. Do not double
12367 count memory for memory constants and argument loads from stack slots.
12369 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12371 PR tree-optimization/47427
12372 PR tree-optimization/47428
12373 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12374 coalesce if the new root var would be TREE_READONLY.
12376 2011-01-25 Richard Guenther <rguenther@suse.de>
12378 PR middle-end/47414
12379 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12380 correct type for TBAA.
12382 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12384 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12385 (close_phi_written_to_memory): Call for_each_index with
12386 dr_indices_valid_in_loop.
12388 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12390 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12391 when it is initialized.
12393 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12395 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12396 call to graphite_find_data_references_in_stmt.
12397 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12398 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
12399 call to graphite_find_data_references_in_stmt.
12400 (analyze_drs_in_stmts): Same.
12401 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12402 in which the scalar analysis of indices is performed.
12403 (create_data_ref): Same. Update call to dr_analyze_indices.
12404 (find_data_references_in_stmt): Update call to create_data_ref.
12405 (graphite_find_data_references_in_stmt): Same.
12406 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12408 (create_data_ref): Same.
12409 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12410 call to create_data_ref.
12412 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12414 * graphite-sese-to-poly.c (build_poly_scop): Move
12415 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12417 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12419 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12420 VAR_DECL, PARM_DECL, and RESULT_DECL.
12422 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12424 * graphite-dependences.c (reduction_dr_1): Allow several reductions
12425 in a reduction PBB.
12426 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12427 that have already been marked as PBB_IS_REDUCTION.
12429 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12431 * graphite-scop-detection.c (same_close_phi_node): New.
12432 (remove_duplicate_close_phi): New.
12433 (make_close_phi_nodes_unique): New.
12434 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12436 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12438 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12439 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12440 of both data references to be the same.
12442 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12444 * graphite-dependences.c (build_lexicographical_constraint): Remove
12445 the gdim parameter.
12446 (build_lexicographical_constraint): Adjust call to
12447 ppl_powerset_is_empty.
12448 (dependence_polyhedron): Same.
12449 (graphite_legal_transform_dr): Same.
12450 (graphite_carried_dependence_level_k): Same.
12451 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12453 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12455 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12457 * graphite-sese-to-poly.c
12458 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12459 (close_phi_written_to_memory): New.
12460 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12463 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12465 * doc/install.texi: Update the expected version number of PPL to 0.11.
12466 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12467 #if PPL_VERSION_MINOR < 11.
12469 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12471 * graphite-dependences.c: Include graphite-cloog-util.h.
12472 (new_poly_ddr): Inlined into dependence_polyhedron.
12473 (free_poly_ddr): Moved close by new_poly_ddr.
12474 (dependence_polyhedron_1): Renamed dependence_polyhedron.
12475 Early return NULL when ppl_powerset_is_empty returns true.
12476 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
12477 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
12478 (graphite_legal_transform_dr): Call new_poly_ddr.
12479 (graphite_carried_dependence_level_k): Same.
12480 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
12481 (dot_transformed_deps_stmt_1): Removed.
12482 (dot_deps_stmt_1): Call dot_deps_stmt_2.
12483 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
12484 (dot_deps_1): Call dot_deps_2.
12485 * Makefile.in (graphite-dependences.o): Add missing dependence on
12486 graphite-cloog-util.h.
12488 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12490 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12491 (build_lexicographical_constraint): Same.
12492 (dependence_polyhedron_1): Same.
12493 (graphite_legal_transform_dr): Same.
12494 (graphite_carried_dependence_level_k): Same.
12495 * graphite-ppl.c (ppl_powerset_is_empty): New.
12496 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12497 * tree-data-ref.c (dump_data_reference): Print the basic block index.
12499 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12501 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12502 the "a followed by b" relation and document it.
12504 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12506 * graphite-dependences.c (build_lexicographical_constraint): Stop the
12507 iteration when the bag of constraints is empty.
12509 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12511 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12513 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12515 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12516 nest and two loop depths as parameters.
12517 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12518 lst_perfect_nestify.
12520 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12522 * graphite-dependences.c (print_pddr): Call
12523 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12525 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12527 * graphite-ppl.c (debug_gmp_value): New.
12528 * graphite-ppl.h (debug_gmp_value): Declared.
12530 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
12532 * doc/install.texi: Document availability of cloog-0.16.
12534 2011-01-25 Vladimir Kargov <kargov@gmail.com>
12536 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12537 invalid postdominance info.
12539 2011-01-24 Jan Hubicka <jh@suse.cz>
12542 * doc/extend.texi (weak pragma): Drop claim that it must
12543 appear before definition.
12544 * varasm.c (merge_weak, declare_weak): Only sanity check
12545 that DECL is not output at a time it is declared weak.
12547 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
12549 * machmode.def: Fixed comments.
12551 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
12553 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12555 2011-01-24 Paul Koning <ni1d@arrl.net>
12557 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12560 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
12563 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12564 (block_info): Add scanned and prev.
12565 (move_or_delete_vzeroupper_2): Return if the basic block
12566 has been scanned and the upper 128bit state is unchanged
12567 from the last scan.
12568 (move_or_delete_vzeroupper_1): Return true if the exit
12570 (move_or_delete_vzeroupper): Visit basic blocks using the
12571 work-list based algorithm based on vt_find_locations in
12574 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12576 2011-01-24 Nick Clifton <nickc@redhat.com>
12578 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12579 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12580 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
12581 then define __v850e1__.
12582 * doc/invoke.texi: Document -mv850es.
12584 2011-01-24 Richard Henderson <rth@redhat.com>
12586 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12587 compound unordered comparisons.
12588 * config/rx/rx.c (rx_split_fp_compare): Remove.
12589 * config/rx/rx-protos.h: Update.
12590 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12591 (cbranchsf4): Don't call rx_split_fp_compare.
12592 (*cbranchsf4): Use rx_split_cbranch.
12593 (*cmpsf): Don't accept "i" constraint.
12594 (*conditional_branch): Only valid after reload.
12595 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
12597 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12600 * config/rs6000/altivec.md (vector constant splitters): Add
12601 support for creating vector single precision constants if -mvsx is
12602 used and we would create the constant using Altivec primitives.
12604 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
12605 Richard Sandiford <rdsandiford@googlemail.com>
12607 PR rtl-optimization/47166
12608 * reload1.c (emit_reload_insns): Disable the spill_reg_store
12609 mechanism for PRE_MODIFY and POST_MODIFY.
12610 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12613 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
12615 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12617 2011-01-22 Jan Hubicka <jh@suse.cz>
12620 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12622 2011-01-22 Jan Hubicka <jh@suse.cz>
12624 PR tree-optimization/43884
12626 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12627 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12629 2011-01-22 Anatoly Sokolov <aesok@post.ru>
12631 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12632 * config/s390/s390.c (s390_register_move_cost,
12633 s390_memory_move_cost): New.
12634 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12636 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12638 PR middle-end/47401
12639 * except.c (sjlj_assign_call_site_values): Move setting the
12640 crtl->uses_eh_lsda flag to ...
12641 (sjlj_mark_call_sites): ... here.
12642 (sjlj_emit_function_enter): Support NULL dispatch label.
12643 (sjlj_build_landing_pads): In a function with no landing pads
12644 that still has must-not-throw regions, generate code to register
12645 a personality function with empty LSDA.
12647 2011-01-21 Richard Henderson <rth@redhat.com>
12649 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12651 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12653 * compare-elim.c: New file.
12654 * Makefile.in (OBJS-common): Add it.
12655 (compare-elim.o): New.
12656 * common.opt (fcompare-elim): New.
12657 * opts.c (default_options_table): Add OPT_fcompare_elim.
12658 * tree-pass.h (pass_compare_elim_after_reload): New.
12659 * passes.c (init_optimization_passes): Add it.
12660 * recog.h: Protect against re-inclusion.
12661 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12662 * doc/invoke.texi (-fcompare-elim): Document it.
12663 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12664 * doc/tm.texi: Rebuild.
12666 2011-01-22 Nick Clifton <nickc@redhat.com>
12668 * config/rx/rx.md (cstoresf4): Pass comparison operator to
12669 rx_split_fp_compare.
12671 2011-01-22 Nick Clifton <nickc@redhat.com>
12673 * config/rx/rx.md (UNSPEC_CONST): New.
12674 (deallocate_and_return): Wrap the amount popped off the stack in
12675 an UNSPEC_CONST in order to stop it being rejected by
12676 -mmax-constant-size.
12677 (pop_and_return): Add a "(return)" rtx.
12678 (call): Drop the immediate operand.
12679 (call_internal): Likewise.
12680 (call_value): Likewise.
12681 (call_value_internal): Likewise.
12682 (sibcall_internal): Likewise.
12683 (sibcall_value_internal): Likewise.
12684 (sibcall): Likewise. Generate an explicit call using
12686 (sibcall_value): Likewise.
12687 (mov<>): FAIL if a constant operand is not legitimate.
12688 (addsi3_unpsec): New pattern.
12690 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12691 (ok_for_max_constant): New function.
12692 (gen_safe_add): New function.
12693 (rx_expand_prologue): Use gen_safe_add.
12694 (rx_expand_epilogue): Likewise.
12695 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
12698 2011-01-21 Jeff Law <law@redhat.com>
12700 PR tree-optimization/47053
12701 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12702 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12703 statements are deleted.
12704 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
12705 is nonempty, then purge dead edges and cleanup the CFG.
12707 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12710 Temporarily revert:
12711 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12713 * tree-dfa.c (create_var_ann): Mark variable as used.
12715 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12717 PR middle-end/45566
12718 * except.c (convert_to_eh_region_ranges): Emit queued no-region
12719 notes from other section in hot/cold partitioning even if
12720 last_action is -3. Increment call_site_base.
12722 PR rtl-optimization/47366
12723 * fwprop.c (forward_propagate_into): Return bool. If
12724 any changes are made, -fnon-call-exceptions is used and
12725 REG_EH_REGION note is present, call purge_dead_edges
12726 and return true if it purged anything.
12727 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12728 any EH edges were purged.
12730 2011-01-21 Jeff Law <law@redhat.com>
12732 PR rtl-optimization/41619
12733 * caller-save.c (setup_save_areas): Break out code to determine
12734 which hard regs are live across calls by examining the reload chains
12735 so that it is always used.
12736 Eliminate code which checked REG_N_CALLS_CROSSED.
12738 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12740 PR tree-optimization/47355
12741 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12742 NOP has non-debug uses beyond PHIs in new_bb.
12744 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12747 * cfgexpand.c (account_used_vars_for_block): Only account vars
12748 that are annotated as used.
12749 (estimated_stack_frame_size): Don't set TREE_USED.
12750 * tree-dfa.c (create_var_ann): Mark variable as used.
12752 2011-01-21 Richard Guenther <rguenther@suse.de>
12754 PR middle-end/47395
12755 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12757 2011-01-21 Richard Guenther <rguenther@suse.de>
12759 PR tree-optimization/47365
12760 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12761 (vn_reference_lookup_pieces): Adjust.
12762 (vn_reference_lookup): Likewise.
12763 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12764 (vn_reference_lookup_3): Only look through kills if in
12765 VN_WALKREWRITE mode.
12766 (vn_reference_lookup_pieces): Adjust.
12767 (vn_reference_lookup): Likewise.
12768 (visit_reference_op_load): Likewise.
12769 (visit_reference_op_store): Likewise.
12770 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12771 (compute_avail): Likewise.
12772 (eliminate): Likewise.
12774 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12776 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12777 DECL_IGNORED_P non-reg vars if they are used.
12779 PR tree-optimization/47391
12780 * varpool.c (const_value_known_p): Return false if
12783 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
12786 * config/i386/i386.c (ix86_local_alignment): Handle
12787 case for va_list_type_node is nil.
12788 (ix86_canonical_va_list_type): Likewise.
12790 2011-01-21 Alan Modra <amodra@gmail.com>
12792 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12793 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12795 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12797 * config/arm/arm.md (define_attr type): Rename f_load
12798 and f_store to f_fpa_load and f_fpa_store. Update.
12799 (write_conflict): Deal with rename fallout.
12800 (*push_fp_multi): Likewise.
12801 * config/arm/fpa.md (f_load): Use f_fpa_load.
12802 (f_store): Use f_fpa_store.
12803 (*movsf_fpa): Likewise.
12804 (*movdf_fpa): Likewise.
12805 (*movxf_fpa): Likewise.
12806 (*thumb2_movsf_fpa): Likewise.
12807 (*thumb2_movdf_fpa): Likewise.
12808 (*thumb2_movxf_fpa): Likewise.
12809 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12810 f_loadd and f_stored.
12811 (*thumb2_movdi_vfp): Likewise.
12812 (*thumb2_movsf_vfp): Fix attribute to f_loads.
12813 (*thumb2_movsi_vfp): Likewise.
12814 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12815 Use f_loads instead of f_load.
12816 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12818 2011-01-20 Anatoly Sokolov <aesok@post.ru>
12820 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12821 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12822 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12823 (xtensa_mode_dependent_address_p): New function.
12824 (constantpool_address_p): Make static. Change return type to bool.
12825 Change argument type to const_rtx. Use CONST_INT_P predicate.
12827 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
12830 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12832 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12835 * cfgexpand.c (expand_debug_expr): Instead of generating
12836 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12839 2011-01-20 Richard Guenther <rguenther@suse.de>
12841 PR middle-end/47370
12842 * tree-inline.c (remap_gimple_op_r): Recurse manually for
12843 the pointer operand of MEM_REFs.
12845 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12847 PR tree-optimization/46130
12848 * ipa-split.c (consider_split): If return_bb contains non-virtual
12849 PHIs other than for retval or if split_function would not adjust it,
12852 2011-01-20 Richard Guenther <rguenther@suse.de>
12854 PR tree-optimization/47167
12855 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12856 Revert previous change, only avoid enumeral type changes.
12858 2011-01-19 Mike Stump <mikestump@comcast.net>
12860 * doc/tm.texi.in (BRANCH_COST): Englishify.
12861 * doc/tm.texi (BRANCH_COST): Likewise.
12863 2011-01-19 Dodji Seketeli <dodji@redhat.com>
12866 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12867 (gen_scheduled_generic_parms_dies): New functions.
12868 (gen_struct_or_union_type_die): Schedule template parameters DIEs
12869 generation for the end of CU compilation.
12870 (dwarf2out_finish): Generate template parameters DIEs here.
12872 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12875 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12876 debug bind stmt on merge edges.
12878 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12882 * function.c (instantiate_expr): Instantiate incoming rtl of
12883 implicit arguments, and recurse on VALUE_EXPRs.
12884 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12885 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12887 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12889 * c-parser.c (c_parser_for_statement): Initialize
12890 collection_expression.
12892 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12894 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12896 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12898 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12899 (LINK_SHLIB_SPEC): Don't use %(link_path).
12900 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12902 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12904 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12905 (NO_SHARED_LIB_SUPPORT): Remove.
12906 (LINK_SHLIB_SPEC): Remove one conditional definition.
12908 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12910 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12912 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12913 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12914 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12915 %{call_shared} and conditionals on these options not being passed.
12916 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12919 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12921 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12924 * ipa-split.c: Spelling fixes.
12926 2011-01-19 Richard Henderson <rth@redhat.com>
12928 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12929 (*mulsi3): Likewise.
12931 * longlong.h [__mn10300__] (count_leading_zeros): New.
12932 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12933 [__mn10300__] (add_ssaaaa, subddmmss): New.
12934 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12935 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12937 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12939 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12941 2011-01-19 Richard Henderson <rth@redhat.com>
12943 * config/mn10300/mn10300.md (addsi3_flags): New.
12944 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12945 (subsi3_flags, subc_internal, subdi3): New.
12946 (subdi3_internal, *subdi3_degenerate): New.
12947 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12949 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12950 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12951 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12952 * config/mn10300/mn10300-protos.h: Update.
12953 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12954 (return_ret): Likewise. Rename from return_internal_regs.
12955 (return_internal): Remove.
12957 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12958 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12959 (mn10300_legitimate_constant_p): Likewise.
12960 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12961 (mn10300_frame_size): New.
12962 (mn10300_expand_prologue): Use it.
12963 (mn10300_expand_epilogue): Likewise.
12964 (mn10300_initial_offset): Likewise.
12965 * config/mn10300/mn10300-protos.h: Update.
12966 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12967 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12968 (prologue, epilogue, return_internal): Tidy output code.
12969 (mn10300_store_multiple_operation, return): Likewise.
12970 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12971 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12972 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12973 (load_pic, am33_load_pic): New.
12974 (mn10300_load_pic0, mn10300_load_pic1): New.
12976 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12977 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12978 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12979 (cc_flags_for_mode, cc_flags_for_code): New.
12980 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12981 overflow flag is not valid. Validate that the flags we need
12982 for the comparison are valid.
12983 (mn10300_output_cmp): Remove.
12984 (mn10300_output_add): New.
12985 (mn10300_select_cc_mode): Use cc_flags_for_code.
12986 (mn10300_split_cbranch): New.
12987 (mn10300_match_ccmode): New.
12988 (mn10300_split_and_operand_count): New.
12989 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12991 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12992 (addsi3): ... here. Use mn10300_output_add.
12993 (*addsi3_flags): New.
12994 (*am33_subsi3, *mn10300_subsi3): Merge...
12995 (subsi3): ... here. Use attribute isa.
12996 (*subsi3_flags): New.
12997 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
12999 (*am33_andsi3, *mn10300_andsi3): Merge...
13000 (andsi3): ... here.
13001 (*andsi3_flags): New.
13002 (andsi3 splitters): New.
13003 (*am33_iorsi3, *mn10300_iorsi3): Merge...
13004 (iorsi3): ... here.
13005 (*iorsi3_flags): New.
13006 (*am33_xorsi3, *mn10300_xorsi3): Merge...
13007 (xorsi3): ... here.
13008 (*xorsi3_flags): New.
13009 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13010 (one_cmplsi2): ... here.
13011 (*one_cmplsi2_flags): New.
13012 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
13013 instead of "dax" in constraints. Use mn10300_split_cbranch.
13014 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
13015 use matching constraints to eliminate a self-comparison.
13016 (*integer_conditional_branch): Rename from integer_conditional_branch.
13017 Use int_mode_flags to match CC_REG.
13018 (*cbranchsi4_btst, *btstsi): New.
13019 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
13020 mn10300_split_cbranch.
13021 (*am33_cmpsf): Rename from am33_cmpsf.
13022 (*float_conditional_branch): Rename from float_conditional_branch.
13023 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13024 (zero_extendqisi2): ... here.
13025 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13026 (zero_extendhisi2): ... here.
13027 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13028 (extendqisi2): ... here.
13029 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13030 (extendhisi2): ... here.
13031 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13032 (ashlsi3): ... here.
13033 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13034 (lshrsi3): ... here.
13035 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13036 (ashrsi3): ... here.
13037 (consecutive add peephole): Remove.
13038 * config/mn10300/predicates.md (label_ref_operand): New.
13039 (int_mode_flags): New.
13040 (CCZN_comparison_operator): New.
13042 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13043 (throughput_42_latency_43): New reservation.
13044 (mulsidi3, umulsidi3): New expanders.
13045 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
13046 the MDR register to allocation; separately allocate the low and
13047 high parts of the DImode result.
13048 (umulsidi3_internal): Similarly.
13049 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13050 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
13051 (udivsi3, umodsi3): Remove.
13052 (udivmodsi4, divmodsi4): New expanders.
13053 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
13054 (*divmodsi4): Simiarly.
13055 (ext_internal): New.
13057 * config/mn10300/constraints.md ("z"): New constraint.
13058 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13059 (FIXED_REGISTERS): Don't fix MDR.
13060 (CALL_USED_REGSITERS): Reformat nicely.
13061 (REG_ALLOC_ORDER): Add MDR.
13062 (enum regclass): Add MDR_REGS.
13063 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13064 (IRA_COVER_CLASSES): Add MDR_REGS.
13065 (REGNO_REG_CLASS): Handle MDR_REG.
13066 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13067 (mn10300_register_move_cost): Likewise.
13068 * config/mn10300/mn10300.md (MDR_REG): New.
13069 (*movsi_internal): Handle moves to/from MDR_REGS.
13071 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13073 (mn10300_secondary_reload): Tidy combination reload classes.
13074 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13075 addresses for AM33. Allow symbolic offsets for reg+imm.
13076 (mn10300_regno_in_class_p): New.
13077 (mn10300_legitimize_reload_address): New.
13078 * config/mn10300/mn10300.h (enum reg_class): Remove
13079 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13080 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
13081 SP_OR_GENERAL_REGS.
13082 (REG_CLASS_NAMES): Update to match.
13083 (REG_CLASS_CONTENTS): Likewise.
13084 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13085 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13086 (REGNO_IN_RANGE_P): Remove.
13087 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13088 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13089 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13090 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13091 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13092 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13093 (REGNO_GENERAL_P): New.
13094 (HAVE_POST_MODIFY_DISP): New.
13095 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13096 (LEGITIMIZE_RELOAD_ADDRESS): New.
13097 * config/mn10300/mn10300-protos.h: Update.
13099 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13100 DATA_REGS for AM33 stack-pointer destination.
13101 (mn10300_preferred_output_reload_class): Likewise.
13102 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13103 into a form appropriate for ...
13104 (TARGET_SECONDARY_RELOAD): New.
13105 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13106 * config/mn10300/mn10300-protos.h: Update.
13107 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13108 reload_insi; use the "A" constraint for the scratch; handle AM33
13109 moves of sp to non-address registers.
13111 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13112 (*movqi_internal): ... here.
13113 (*am33_movhi, *mn10300_movhi): Merge into...
13114 (*movhi_internal): ... here.
13115 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
13116 as the source/destination of moves from/to SP.
13117 (movsf): Only allow for AM33-2.
13118 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13119 any integer constant constraint. Only allow for AM33-2. Tidy
13120 all of the alternative outputs.
13121 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13122 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
13124 (udivsi3, umodsi3): New patterns for MN103 only.
13126 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
13128 * doc/tm.texi.in: Spell out that a lack of register class unions
13130 * doc/tm.texi: Regenerate.
13132 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13134 PR rtl-optimization/47337
13135 * dce.c (check_argument_store): New function.
13136 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
13138 PR tree-optimization/47290
13139 * tree-eh.c (infinite_empty_loop_p): New function.
13140 (cleanup_empty_eh): Use it.
13142 2011-01-18 Steve Ellcey <sje@cup.hp.com>
13145 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13146 (a64_expand_widen_sum): Ditto.
13147 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13148 (vec_extract_evenodd_help): Ditto.
13149 (vec_extract_evenv4hi): Ditto.
13150 (vec_extract_oddv4hi): Ditto.
13151 (vec_extract_evenv2si): Ditto.
13152 (vec_extract_oddv2si): Ditto.
13153 (vec_extract_evenv2sf): Ditto.
13154 (vec_extract_oddv2sf): Ditto.
13155 (vec_pack_trunc_v4hi: Ditto.
13156 (vec_pack_trunc_v2si): Ditto.
13157 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13158 (vec_interleave_highv8qi): Ditto.
13160 (vec_extract_oddv8qi): Ditto.
13161 (vec_interleave_lowv4hi): Ditto.
13162 (vec_interleave_highv4hi): Ditto.
13163 (vec_interleave_lowv2si): Ditto.
13164 (vec_interleave_highv2si): Ditto.
13166 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13168 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13169 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13170 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
13171 (pa_c_mode_for_suffix): New.
13172 (TARGET_EXPAND_BUILTIN): Define.
13173 (TARGET_C_MODE_FOR_SUFFIX): Define.
13174 (pa_builtins): Define.
13175 (pa_init_builtins): Register __float128 type and init new support
13177 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13178 * config/pa/quadlib.c (_U_Qfcopysign): New.
13180 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
13182 PR middle-end/46894
13183 * explow.c (allocate_dynamic_stack_space): Do not assume more than
13184 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13187 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13189 PR tree-optimization/47179
13190 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13191 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13193 2011-01-18 Richard Guenther <rguenther@suse.de>
13195 PR rtl-optimization/47216
13196 * emit-rtl.c: Include tree-flow.h.
13197 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13198 of replicating it with different semantics.
13199 * Makefile.in (emit-rtl.o): Adjust.
13201 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13203 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13204 (cortex_a9_dp): Handle neon types correctly.
13206 2011-01-18 Jakub Jelinek <jakub@redhat.com>
13208 PR rtl-optimization/47299
13209 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13210 subtarget. Use normal multiplication if both operands are constants.
13211 * expmed.c (expand_widening_mult): Don't try to optimize constant
13212 multiplication if op0 has VOIDmode. Convert op1 constant to mode
13215 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13217 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
13218 spacing after 'e.g.', typos, comma, hyphenation.
13220 2011-01-17 Richard Henderson <rth@redhat.com>
13222 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13223 (rx_restricted_mem_operand): New.
13224 (rx_shift_operand): Use register_operand.
13225 (rx_source_operand, rx_compare_operand): Likewise.
13226 * config/rx/rx.md (addsi3_flags): New expander.
13227 (adddi3): Rewrite as expander.
13228 (adc_internal, *adc_flags, adddi3_internal): New patterns.
13229 (subsi3_flags): New expander.
13230 (subdi3): Rewrite as expander.
13231 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13233 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13234 (rx_init_builtins): Remove sat builtin.
13235 (rx_expand_builtin): Likewise.
13236 * config/rx/rx.md (ssaddsi3): New.
13237 (*sat): Rename from sat. Represent the CC_REG input.
13239 * config/rx/predicates.md (rshift_operator): New.
13240 * config/rx/rx.c (rx_expand_insv): Remove.
13241 * config/rx/rx-protos.h: Update.
13242 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
13243 operand to the canonical position.
13244 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13245 (*bitclr, *bitclr_in_memory): Similarly.
13246 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13247 (insv): Retain the zero_extract in the expansion.
13249 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13250 (bswaphi2, bitinvert, revw): Likewise.
13252 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13253 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13254 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13255 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13256 (bitset, bitset_in_memory): Likewise.
13257 (bitinvert, bitinvert_in_memory): Likewise.
13258 (bitclr, bitclr_in_memory): Likewise.
13259 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13260 (rx_strend, rx_cmpstrn): Likewise.
13261 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
13262 (bitop peep2 patterns): Remove.
13264 * config/rx/rx.c (rx_match_ccmode): New.
13265 * config/rx/rx-protos.h: Update.
13266 * config/rx/rx.md (abssi2): Clobber, don't set flags.
13267 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13268 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13269 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13270 (fix_truncsfsi2, floatsisf2): Likewise.
13271 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13272 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13273 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13274 (*subsi3_flags, *xorsi3_flags): New.
13276 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13278 * config/rx/rx.c (rx_print_operand): Remove workaround for
13279 unsplit comparison operations.
13281 * config/rx/rx.md (movsicc): Split after reload.
13282 (*movsicc): Merge *movsieq and *movsine via match_operator.
13283 (*stcc): New pattern.
13285 * config/rx/rx.c (rx_float_compare_mode): Remove.
13286 * config/rx/rx.h (rx_float_compare_mode): Remove.
13287 * config/rx/rx.md (cstoresi4): Split after reload.
13288 (*sccc): New pattern.
13290 * config/rx/predicates.md (label_ref_operand): New.
13291 (rx_z_comparison_operator): New.
13292 (rx_zs_comparison_operator): New.
13293 (rx_fp_comparison_operator): New.
13294 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13295 Validate that the flags are set properly for the comparison.
13296 (rx_gen_cond_branch_template): Remove.
13297 (rx_cc_modes_compatible): Remove.
13298 (mode_from_flags): New.
13299 (flags_from_code): Rename from flags_needed_for_conditional.
13300 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13301 (rx_select_cc_mode): Likewise.
13302 (rx_split_fp_compare): New.
13303 (rx_split_cbranch): New.
13304 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13305 (*cbranchsi4): Use match_operator and rx_split_cbranch.
13306 (*cbranchsf4): Similarly.
13307 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
13308 match_operator and rx_split_cbranch.
13309 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13310 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
13311 (*cmpsi): Rename from cmpsi.
13312 (*tstsi): Rename from tstsi.
13313 (*cmpsf): Rename from cmpsf; use CC_Fmode.
13314 (*conditional_branch): Rename from conditional_branch.
13315 (*reveresed_conditional_branch): Remove.
13316 (b<code>): Remove expander.
13317 * config/rx/rx-protos.h: Update.
13319 * config/rx/rx.c (rx_compare_redundant): Remove.
13320 * config/rx/rx.md (cmpsi): Don't use it.
13321 * config/rx/rx-protos.h: Update.
13323 * config/rx/rx-modes.def (CC_F): New mode.
13324 * config/rx/rx.c (rx_select_cc_mode): New.
13325 * config/rx/rx.h (SELECT_CC_MODE): Use it.
13326 * config/rx/rx-protos.h: Update.
13328 2011-01-17 Richard Henderson <rth@redhat.com>
13330 * except.c (dump_eh_tree): Fix stray ; after for statement.
13332 2011-01-17 Richard Guenther <rguenther@suse.de>
13334 PR tree-optimization/47313
13335 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13336 handling before copying the body. Properly deal with
13337 by-reference result in SSA form.
13339 2011-01-17 Ian Lance Taylor <iant@google.com>
13342 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13343 (struct_value_alias_set): Don't define.
13344 (sparc_option_override): Don't set sparc_sr_alias_set and
13345 struct_value_alias_set.
13346 (save_or_restore_regs): Use gen_frame_mem rather than calling
13348 (sparc_struct_value_rtx): Likewise.
13350 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
13353 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13354 (_mm_maskstore_pd): Likewise.
13355 (_mm_maskload_ps): Likewise.
13356 (_mm_maskstore_ps): Likewise.
13357 (_mm256_maskload_pd): Change mask to __m256i.
13358 (_mm256_maskstore_pd): Likewise.
13359 (_mm256_maskload_ps): Likewise.
13360 (_mm256_maskstore_ps): Likewise.
13362 * config/i386/i386-builtin-types.def: Updated.
13363 (ix86_expand_special_args_builtin): Likewise.
13365 * config/i386/i386.c (bdesc_special_args): Update
13366 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13367 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13368 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13369 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13371 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13372 Use <avxpermvecmode> on mask register.
13373 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13375 2011-01-17 Olivier Hainque <hainque@adacore.com>
13376 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13377 Eric Botcazou <ebotcazou@adacore.com>
13380 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13381 if <= USHRT_MAX in 32-bit mode.
13383 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13385 * doc/install.texi (Configuration, Specific): Wrap long
13386 lines in examples. Allow line wrapping in long options
13387 and URLs where beneficial for PDF output.
13389 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
13391 * config/mips/mips.c (mips_classify_symbol): Don't return
13392 SYMBOL_PC_RELATIVE for nonlocal labels.
13394 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
13396 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13398 2011-01-15 Jan Hubicka <jh@suse.cz>
13400 PR tree-optimization/47276
13401 * ipa.c (function_and_variable_visibility): Do not try to mark alias
13402 declarations as needed.
13404 2011-01-15 Martin Jambor <mjambor@suse.cz>
13406 * common.opt (fdevirtualize): New flag.
13407 * doc/invoke.texi (Option Summary): Document it.
13408 * opts.c (default_options_table): Add devirtualize flag.
13409 * ipa-prop.c (detect_type_change): Return immediately if
13410 devirtualize flag is not set.
13411 (detect_type_change_ssa): Likewise.
13412 (compute_known_type_jump_func): Likewise.
13413 (ipa_analyze_virtual_call_uses): Likewise.
13415 2011-01-14 Martin Jambor <mjambor@suse.cz>
13417 PR tree-optimization/45934
13418 PR tree-optimization/46302
13419 * ipa-prop.c (type_change_info): New type.
13420 (stmt_may_be_vtbl_ptr_store): New function.
13421 (check_stmt_for_type_change): Likewise.
13422 (detect_type_change): Likewise.
13423 (detect_type_change_ssa): Likewise.
13424 (compute_complex_assign_jump_func): Check for dynamic type change.
13425 (compute_complex_ancestor_jump_func): Likewise.
13426 (compute_known_type_jump_func): Likewise.
13427 (compute_scalar_jump_functions): Likewise.
13428 (ipa_analyze_virtual_call_uses): Likewise.
13429 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13431 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13433 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13434 * config/i386/i386.opt (msse5): New Alias.
13436 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13438 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13439 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13440 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13441 * config/sparc/sparc.h (CC1_SPEC): Likewise.
13443 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13445 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13447 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13448 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13449 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13450 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13452 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13454 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13456 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13458 2011-01-14 Mike Stump <mikestump@comcast.net>
13460 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13461 * config/fr30/fr30.md: Likweise
13462 (movsi_push): Likewise.
13463 (movsi_pop): Likewise.
13464 (enter_func): Likewise.
13465 * config/moxie/moxie.md (movsi_push): Likewise.
13466 (movsi_pop): Likewise.
13468 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13470 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13471 %{no_archive} %{exact_version}.
13472 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13473 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13474 %{no_archive} %{exact_version}.
13475 * config/mips/openbsd.h (LINK_SPEC): Likewise.
13476 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13477 * config/mips/vxworks.h: Likewise.
13479 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13481 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13483 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13485 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13486 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13488 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13490 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13493 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13495 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13497 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13498 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13500 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13501 Don't handle -shlib.
13503 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13505 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13506 (CC1_SPEC): Don't handle -profile.
13508 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13510 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13511 * config/mips/mips.h (CC1_SPEC): Likewise.
13513 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13515 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13516 * config/mips/mips.h (CC1_SPEC): Likewise.
13518 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13520 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13521 * config/m32r/linux.h (LINK_SPEC): Likewise.
13522 * config/mips/linux.h (LINK_SPEC): Likewise.
13523 * config/mips/linux64.h (LINK_SPEC): Likewise.
13524 * config/sparc/linux.h (LINK_SPEC): Likewise.
13525 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13526 LINK_SPEC): Likewise.
13527 * config/xtensa/linux.h (LINK_SPEC): Likewise.
13529 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13531 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13533 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13535 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13537 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13538 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13540 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13542 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13544 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13546 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13547 supports -Bstatic/-Bdynamic.
13548 * configure: Regenerate.
13550 2011-01-14 Jan Hubicka <jh@suse.cz>
13551 Jack Howarth <howarth@bromo.med.uc.edu>
13554 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13555 when checking debug_info_level. Test write_symbols instead of
13556 debug_hooks->var_location when setting flag_var_tracking_uninit.
13558 2011-01-14 Richard Guenther <rguenther@suse.de>
13560 PR tree-optimization/47179
13561 * target.def (ref_may_alias_errno): New target hook.
13562 * targhooks.h (default_ref_may_alias_errno): Declare.
13563 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13564 (default_ref_may_alias_errno): New function.
13565 * target.h (struct ao_ref_s): Declare.
13566 * tree-ssa-alias.c: Include target.h.
13567 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13568 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13569 (targhooks.o): Likewise.
13570 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13571 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13573 2011-01-14 Richard Guenther <rguenther@suse.de>
13575 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
13577 2011-01-14 Richard Guenther <rguenther@suse.de>
13579 PR tree-optimization/47280
13580 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13581 return CFG changes.
13582 (tree_ssa_forward_propagate_single_use_vars): Deal with
13583 CFG changes from associate_plusminus.
13585 2011-01-14 Richard Guenther <rguenther@suse.de>
13587 PR middle-end/47281
13589 2011-01-11 Richard Guenther <rguenther@suse.de>
13591 PR tree-optimization/46076
13592 * tree-ssa.c (useless_type_conversion_p): Conversions from
13593 unprototyped to empty argument list function types are useless.
13595 2011-01-14 Richard Guenther <rguenther@suse.de>
13597 PR tree-optimization/47286
13598 * tree-ssa-structalias.c (new_var_info): Register variables are global.
13600 2011-01-14 Martin Jambor <mjambor@suse.cz>
13602 PR middle-end/46823
13603 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13605 2011-01-13 Anatoly Sokolov <aesok@post.ru>
13607 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13608 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13609 * config/xtensa/xtensa.c (xtensa_libcall_value,
13610 xtensa_function_value_regno_p): New functions.
13611 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13613 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
13616 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13618 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13619 New function prototype.
13620 * config/i386/winnt.c (i386_pe_assemble_visibility):
13621 Warn only if attribute was specified by user.
13623 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13626 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13628 (floatunsdidf2_fcfidu): Ditto.
13630 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13632 * config/s390/s390.c (print_operand_address): Replace 'error' with
13633 'output_operand_lossage'.
13634 (print_operand): Likewise.
13636 2011-01-13 Jeff Law <law@redhat.com>
13638 PR rtl-optimization/39077
13639 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13640 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13641 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13642 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13643 * gcse.c (prune_insertions_deletions): New function.
13644 (compute_pre_data): Use it.
13646 2011-01-13 Dodji Seketeli <dodji@redhat.com>
13649 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13651 (prune_unused_types_mark): Use it.
13653 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
13655 PR rtl-optimization/45352
13656 * sel-sched.c: Update copyright years.
13657 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13658 in the advancing loop when we have issued issue_rate insns.
13660 2011-01-12 Richard Henderson <rth@redhat.com>
13662 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13663 (TARGET_MD_ASM_CLOBBERS): New.
13665 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13666 (TARGET_DELEGITIMIZE_ADDRESS): New.
13668 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13669 (clzsi2, *bsch): New patterns.
13671 * config/mn10300/mn10300.md (INT): New mode iterator.
13672 (*mov<INT>_clr): New pattern, and peep2 to generate it.
13674 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13675 flag_split_wide_types.
13677 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13678 (mn10300_trampoline_init): Rewrite without a template, an immediate
13679 load and a direct branch.
13680 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13682 2011-01-12 Anatoly Sokolov <aesok@post.ru>
13684 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13685 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13686 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13687 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13689 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
13692 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13695 2011-01-12 Jan Hubicka <jh@suse.cz>
13698 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13699 (PLUGIN_COND_CLOSE): New macro.
13700 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13702 2011-01-12 Richard Guenther <rguenther@suse.de>
13705 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13706 register variables in a MEM_REF.
13708 2011-01-12 Joseph Myers <joseph@codesourcery.com>
13710 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13711 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13712 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13713 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13714 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13715 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13716 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13717 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13718 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13719 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13720 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13721 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13722 * config/gnu-user.h: New. Copied from linux.h.
13723 (LINUX_TARGET_STARTFILE_SPEC): Rename to
13724 GNU_USER_TARGET_STARTFILE_SPEC.
13725 (LINUX_TARGET_ENDFILE_SPEC): Rename to
13726 GNU_USER_TARGET_ENDFILE_SPEC.
13727 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13728 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13729 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13730 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13731 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13732 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13733 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13734 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13735 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13736 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13737 * config/arm/linux-eabi.h (CC1_SPEC): Use
13738 GNU_USER_TARGET_CC1_SPEC.
13739 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13740 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13741 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13742 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13743 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13744 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13745 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13746 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13748 2011-01-12 Richard Guenther <rguenther@suse.de>
13751 * doc/invoke.texi (ffast-math): Document it is turned on
13754 2011-01-12 Jan Hubicka <jh@suse.cz>
13756 PR tree-optimization/47233
13757 * opts.c (common_handle_option): Disable ipa-reference with profile
13760 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13762 * c-parser.c (c_parser_objc_at_property_declaration): Improved
13765 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13767 * c-parser.c (c_lex_one_token): Updated and reindented some
13768 comments. No changes in code.
13770 2011-01-11 Ian Lance Taylor <iant@google.com>
13772 * godump.c (go_output_var): Don't output the variable if there is
13773 already a type with the same name.
13775 2011-01-11 Ian Lance Taylor <iant@google.com>
13777 * godump.c (go_format_type): Don't generate float80.
13779 2011-01-11 Richard Henderson <rth@redhat.com>
13781 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13782 declaration. Rewrite for both speed and size.
13783 (mn10300_address_cost_1): Remove.
13784 (mn10300_register_move_cost): New.
13785 (mn10300_memory_move_cost): New.
13786 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
13787 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
13788 extensions, shifts, BSWAP, CLZ.
13789 (mn10300_wide_const_load_uses_clr): Remove.
13790 (TARGET_REGISTER_MOVE_COST): New.
13791 (TARGET_MEMORY_MOVE_COST): New.
13792 * config/mn10300/mn10300-protos.h: Update.
13793 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13795 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13796 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13797 * config/mn10300/mn10300-protos.h: Update.
13798 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13799 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13800 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13801 (*test_int_bitfield, *test_byte_bitfield): Remove.
13802 (*bit_test, *subreg_bit_test): Remove.
13803 * config/mn10300/predicates.md (const_8bit_operand): Remove.
13805 * config/mn10300/constraints.md ("c"): Rename from "A".
13806 ("A", "D"): New constraint letters.
13807 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13808 (fmssf4, fnmasf4, fnmssf4): Likewise.
13810 * config/mn10300/mn10300.md (isa): New attribute.
13811 (enabled): New attribute.
13813 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13814 (abssf2, negsf2): Define only for hardware fp.
13815 (sqrtsf2): Reformat.
13816 (addsf3, subsf3, mulsf3): Merge expander and insn.
13818 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13819 (DEBUGGER_AUTO_OFFSET): Remove.
13820 (DEBUGGER_ARG_OFFSET): Remove.
13822 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13823 Emit register stores with the same offsets as the hardware.
13824 (mn10300_store_multiple_operation): Don't check that the register
13825 save offsets are monotonic.
13826 * config/mn10300/mn10300-protos.h: Update.
13828 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13830 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13831 in terms of the value on the stack, not the MDR register.
13833 2011-01-11 Jan Hubicka <jh@suse.cz>
13837 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13838 (symbol_alias_set_destroy, symbol_alias_set_contains,
13839 propagate_aliases_backward): Declare.
13840 * lto-streamer-out.c (struct sets): New sturcture.
13841 (trivally_defined_alias): New function.
13842 (output_alias_pair_p): Rewrite.
13843 (output_unreferenced_globals): Fix output of alias pairs.
13844 (produce_symtab): Likewise.
13845 * ipa.c (function_and_variable_visibility): Set weak alias destination
13847 * varasm.c (symbol_alias_set_t): Remove.
13848 (symbol_alias_set_destroy): Export.
13849 (propagate_aliases_forward, propagate_aliases_backward): New functions
13851 (compute_visible_aliases): ... this one; remove.
13852 (trivially_visible_alias): New
13853 (trivially_defined_alias): New.
13854 (remove_unreachable_alias_pairs): Rewrite.
13855 (finish_aliases_1): Reorganize code checking if alias is defined.
13856 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13859 2011-01-11 Richard Guenther <rguenther@suse.de>
13861 PR tree-optimization/46076
13862 * tree-ssa.c (useless_type_conversion_p): Conversions from
13863 unprototyped to empty argument list function types are useless.
13865 2011-01-11 Richard Guenther <rguenther@suse.de>
13867 PR middle-end/45235
13868 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13869 volatile MEMs as MEM_READONLY_P.
13871 2011-01-11 Richard Guenther <rguenther@suse.de>
13873 PR tree-optimization/47239
13874 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13876 2011-01-11 Jeff Law <law@redhat.com>
13878 PR tree-optimization/47086
13879 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13880 IVs from statements that might throw.
13882 2011-01-10 Jan Hubicka <jh@suse.cz>
13885 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13887 2011-01-10 Jan Hubicka <jh@suse.cz>
13890 * profile.c (read_profile_edge_counts): Ignore profile inconistency
13891 when correcting profile.
13893 2011-01-10 Jan Hubicka <jh@suse.cz>
13896 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13897 DECL_FINI_PRIORITY.
13898 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13899 Restore DECL_FINI_PRIORITY.
13901 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13903 * doc/gimple.texi: Fix quoting of multi-word return values in
13904 @deftypefn statements. Ensure presence of return value. Wrap
13905 overlong @deftypefn lines.
13906 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13907 descriptions of removed functions.
13908 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13909 of multi-word return value in @deftypefn statement.
13911 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13913 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13914 (Conditional Expressions, Logical Operators)
13915 (Statement and operand traversals): Do not indent smallexample
13916 code. Fix duplicate function argument in example.
13918 2011-01-10 Jeff Law <law@redhat.com>
13920 PR tree-optimization/47141
13921 * ipa-split.c (split_function): Handle case where we are
13922 returning a value and the return block has a virtual operand phi.
13924 2011-01-10 Jan Hubicka <jh@suse.cz>
13926 PR tree-optimization/47234
13927 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13928 (pass_feedback_split_functions): Declare.
13929 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13931 * ipa-split.c (gate_split_functions): Update comments; disable
13932 split-functions for profile_arc_flag and branch_probabilities.
13933 (gate_feedback_split_functions): New function.
13934 (execute_feedback_split_functions): New function.
13935 (pass_feedback_split_functions): New global var.
13937 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13940 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13941 calling gimple_call_set_cannot_inline.
13943 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13945 * config/darwin-sections.def: Remove unused section.
13947 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13950 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13952 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13955 * c-parser.c (c_parser_declaration_or_fndef): Improved
13958 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
13960 * config/i386/winnt.c (i386_pe_start_function): Make sure
13961 to switch back to function's section.
13963 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13967 * plugin.c: Move include of dlfcn.h from here...
13968 * system.h: ... to here.
13970 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13972 * doc/cpp.texi (C++ Named Operators): Fix markup for header
13974 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13975 two extra empty pages in PDF output.
13977 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
13980 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13981 for error recovery purposes behave as if it was not specified so
13982 that the default type is usd.
13984 2011-01-07 Jan Hubicka <jh@suse.cz>
13986 PR tree-optmization/46469
13987 * ipa.c (function_and_variable_visibility): Clear needed flags on
13988 nodes with external decls; handle weakrefs merging correctly.
13990 2011-01-07 Joseph Myers <joseph@codesourcery.com>
13992 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13995 2011-01-07 Jan Hubicka <jh@suse.cz>
13997 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13998 and no longer claim that gold is required for linker plugin.
13999 * configure: Regenerate.
14000 * gcc.c (PLUGIN_COND): New macro.
14001 (LINK_COMMAND_SPEC): Use it.
14002 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14003 * config.in (HAVE_LTO_PLUGIN): New.
14004 * configure.ac (--with-lto-plugin): New parameter; autodetect
14007 2011-01-07 Jan Hubicka <jh@suse.cz>
14009 PR tree-optimization/46367
14010 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14011 when we can update original.
14012 (cgraph_mark_inline_edge): Sanity check.
14013 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14015 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14017 * config/spu/spu.h (ASM_COMMENT_START): Define.
14019 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
14022 * gcc.c (%>S): New.
14023 (SWITCH_KEEP_FOR_GCC): Likewise.
14024 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14025 (do_spec_1): Handle "%>".
14027 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14029 2011-01-07 Jakub Jelinek <jakub@redhat.com>
14032 * config/i386/i386.c (ix86_delegitimize_address): If
14033 simplify_gen_subreg fails, return orig_x.
14036 * value-prof.c (gimple_stringop_fixed_value): Handle
14037 lhs of the call properly.
14039 2011-01-07 Jan Hubicka <jh@suse.cz>
14042 * lto-opt.c (lto_reissue_options): Set flag_shlib.
14044 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14046 * target.def (function_switched_text_sections): New hook.
14047 * doc/tm.texi: Regenerated.
14048 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14049 * final.c (default_function_switched_text_sections): New.
14050 (final_scan_insn): Call function_switched_text_sections when a
14051 mid-function section change occurs.
14052 * output.h (default_function_switched_text_sections): Declare.
14053 * config/darwin-protos.h (darwin_function_switched_text_sections):
14055 * config/darwin.c (darwin_function_switched_text_sections): New.
14056 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14058 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14060 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
14061 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
14062 the secondary code fragment when outputting for DWARF == 2.
14064 2011-01-07 Anatoly Sokolov <aesok@post.ru>
14066 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14067 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14069 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14070 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14072 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
14075 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14076 when it is not empty.
14078 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14081 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14082 (case ${target}): Add btver1.
14083 * config/i386/driver-i386.c (host_detect_local_cpu): Let
14084 -march=native recognize btver1 processors.
14085 * config/i386/i386-c.c (ix86_target_macros_internal): Add
14086 btver1 def_and_undef
14087 * config/i386/i386.c (struct processor_costs btver1_cost): New
14089 (m_BTVER1): New definition.
14090 (m_AMD_MULTIPLE): Includes m_BTVER1.
14091 (initial_ix86_tune_features): Add btver1 tune.
14092 (processor_target_table): Add btver1 entry.
14093 (static const char *const cpu_names): Add btver1 entry.
14094 (software_prefetching_beneficial_p): Add btver1.
14095 (ix86_option_override_internal): Add btver1 instruction sets.
14096 (ix86_issue_rate): Add btver1.
14097 (ix86_adjust_cost): Add btver1.
14098 * config/i386/i386.h (TARGET_BTVER1): New definition.
14099 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14100 (enum processor_type): Add PROCESSOR_BTVER1.
14101 * config/i386/i386.md (define_attr "cpu"): Add btver1.
14103 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14106 * config/i386/i386.c (legitimize_tls_address)
14107 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14108 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14109 (tls_initial_exec_64_sun): New pattern.
14111 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14113 * doc/invoke.texi (Overall Options): Improve wording and markup
14114 of the description of -wrapper.
14116 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14118 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14119 rdynamic, threads): New Driver options.
14121 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14124 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14125 if coming from .tdata.
14126 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14128 2011-01-06 Jan Hubicka <jh@suse.cz>
14131 * collect2.c (main): Do not enable LTOmode when plugin is active.
14133 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14136 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14137 --version output if supported.
14138 * configure: Regenerate.
14140 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14142 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14145 2011-01-06 Jakub Jelinek <jakub@redhat.com>
14148 * c-convert.c (convert): When converting a complex expression
14149 other than COMPLEX_EXPR to a different complex type, ensure
14150 c_save_expr is called instead of save_expr, unless in_late_binary_op.
14151 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14152 when converting COMPLEX_TYPE.
14154 2011-01-06 Ira Rosen <irar@il.ibm.com>
14156 PR tree-optimization/47139
14157 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14158 only the last reduction value is used outside the loop. Update
14161 2011-01-05 Joseph Myers <joseph@codesourcery.com>
14163 * config/rtems.opt: New.
14164 * config.gcc (*-*-rtems*): Use rtems.opt.
14166 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
14168 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14169 processors do not support 3DNow instructions.
14171 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14173 * config/spu/spu.c (spu_option_override): Set parameter
14174 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14176 2011-01-05 Jan Hubicka <jh@suse.cz>
14178 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14179 at the command line.
14181 2011-01-05 Martin Jambor <mjambor@suse.cz>
14184 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14185 deltas on streamed outgoing edges.
14186 (output_node_opt_summary): Output info for outgoing edges only when
14187 the node is in new parameter set.
14188 (output_cgraph_opt_summary): New parameter set, passed to the two
14189 aforementioned functions. Update its forward declaration and its
14192 2011-01-05 Tom Tromey <tromey@redhat.com>
14194 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14195 operator to c_finish_omp_atomic.
14196 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14197 (build_unary_op): Update.
14198 (build_modify_expr): Update.
14199 (build_asm_expr): Update.
14201 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14203 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14204 newly inserted insns.
14205 (pad_bb): Likewise.
14206 (spu_emit_branch_hint): Likewise.
14207 (insert_hbrp_for_ilb_runout): Likewise.
14208 (spu_machine_dependent_reorg): Call df_finish_pass after
14209 schedule_insns returns.
14211 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14213 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14215 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
14217 PR tree-optimization/47005
14218 * tree-sra.c (struct access): Add 'non_addressable' bit.
14219 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14220 (decide_one_param_reduction): Return 0 if the parameter is passed by
14221 reference and one of the accesses in the group is non_addressable.
14223 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14225 PR tree-optimization/47056
14226 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14227 (mark_load): Likewise. Handle FUNCTION_DECL specially.
14228 (mark_store): Likewise. Pass STMT to ipa_record_reference.
14230 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14232 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14233 initializer. Skip view conversions from aggregate types.
14235 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
14238 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14240 2011-01-04 Philipp Thomas <pth@suse.de>
14242 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14245 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14247 * function.c (thread_prologue_and_epilogue_insns): Do not crash
14248 on empty epilogue sequences.
14250 2011-01-04 Joseph Myers <joseph@codesourcery.com>
14252 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14253 non-static): New Driver options.
14255 2011-01-04 Jie Zhang <jie@codesourcery.com>
14258 * gcc.c (default_compilers[]): Set combinable field to 0
14259 for all assembly languages.
14261 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
14263 * config/mips/loongson3a.md: New file.
14264 * config/mips/mips.md: Include loongson3a.md.
14265 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14268 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
14270 PR middle-end/47017
14271 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14272 instead of convert_memory_address_addr_space on the base expression.
14274 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14276 * config/spu/spu.c (spu_option_override): Update error text
14277 for bad -march= / -mtune= values.
14279 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14281 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14282 if branch-hint optimization will be performed.
14284 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14286 PR tree-optimization/47148
14287 * ipa-split.c (split_function): Convert arguments to
14288 DECL_ARG_TYPE if possible.
14290 PR tree-optimization/47155
14291 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14292 when computing uns.
14294 PR rtl-optimization/47157
14295 * combine.c (try_combine): If undobuf.other_insn becomes
14296 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14297 and set *new_direct_jump_p too.
14299 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
14301 PR tree-optimization/47021
14302 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14304 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14306 * gcc.c (process_command): Update copyright notice dates.
14307 * gcov.c (print_version): Likewise.
14308 * gcov-dump.c (print_version): Likewise.
14309 * mips-tfile.c (main): Likewise.
14310 * mips-tdump.c (main): Likewise.
14312 2011-01-03 Martin Jambor <mjambor@suse.cz>
14314 PR tree-optimization/46801
14315 * tree-sra.c (type_internals_preclude_sra_p): Check whether
14316 aggregate fields start at byte boundary instead of the bit-field flag.
14318 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
14321 * gcc.c (main): Revert revision 168407.
14323 2011-01-03 Martin Jambor <mjambor@suse.cz>
14325 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14327 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14329 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14330 vector optab to expand vector/scalar shift, update gimple to vector.
14332 2011-01-03 Martin Jambor <mjambor@suse.cz>
14334 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14337 2011-01-03 Martin Jambor <mjambor@suse.cz>
14339 PR tree-optimization/46984
14340 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14342 (cgraph_create_indirect_edge): Fixed line length.
14343 (cgraph_indirect_call_info): Declare.
14344 (cgraph_make_edge_direct) Update declaration.
14345 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14346 (cgraph_create_indirect_edge): Use it.
14347 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
14349 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14350 the new thunk_delta representation.
14351 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14353 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14354 (ipa_read_indirect_edge_info): Likewise.
14355 * lto-cgraph.c (output_edge_opt_summary): New function.
14356 (output_node_opt_summary): Call it on all outgoing edges.
14357 (input_edge_opt_summary): New function.
14358 (input_node_opt_summary): Call it on all outgoing edges.
14360 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
14363 * gcc.c (main): Don't check have_o when settting combine_inputs.
14365 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
14367 * regrename.c: Add general comment describing the pass.
14368 (struct du_head): Remove 'length' field.
14369 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14370 (regrename_optimize): Do not sort chains. Rework comments, add others.
14371 Force renaming to the preferred class (if any) in the first pass and do
14372 not consider registers that belong to it in the second pass.
14373 (create_new_chain): Do not set 'length' field.
14374 (scan_rtx_reg): Likewise.
14376 2011-01-02 Jakub Jelinek <jakub@redhat.com>
14378 PR tree-optimization/47140
14379 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14380 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14381 to bit_value_binop.
14383 PR rtl-optimization/47028
14384 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14385 parm_birth_insn instead of at the beginning of first bb.
14387 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
14389 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14390 Remove the word "see" before "@pxref".
14391 * doc/rtl.texi: Remove the word "see" before "@pxref".
14393 2011-01-01 Jan Hubicka <jh@suse.cz>
14395 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14398 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
14401 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14404 Copyright (C) 2011 Free Software Foundation, Inc.
14406 Copying and distribution of this file, with or without modification,
14407 are permitted in any medium without royalty provided the copyright
14408 notice and this notice are preserved.