invoke.texi (-Ofast): Also enables -fstack-arrays.
[gcc.git] / gcc / ChangeLog
1 2011-05-14 Tobias Burnus <burnus@net-b.de>
2
3 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
4
5 2011-05-13 Martin Jambor <mjambor@suse.cz>
6
7 * ipa-prop.c (ipa_cst_from_jfunc): New function.
8 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
9 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
10 (evaluate_conditions_for_ipcp_clone): Removed.
11 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
12 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
13 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
14
15 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
16
17 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
18 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
19 lieu of MAY_HAVE_DEBUG_STMTS.
20 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
21 debug statements if !MAY_HAVE_DEBUG_STMTS.
22
23 2011-05-13 Martin Thuresson <martint@google.com>
24
25 PR gcov-profile/47793
26 * libgcov.c (gcov_exit): Support relative profile paths.
27 * doc/invoke.texi (-fprofile-dir): Update for above change.
28
29 2011-05-13 Richard Guenther <rguenther@suse.de>
30
31 * gimple.c (gimple_canonical_types_compatible_p): Do not use
32 type-pair caching, do not compare hashes.
33
34 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
35
36 PR middle-end/48965
37 * tree-cfg.c (edge_to_cases_cleanup): Return true.
38 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
39
40 2011-05-13 Kai Tietz <ktietz@redhat.com>
41
42 * gimplify.c (gimplify_expr): Make sure operand is boolified.
43 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
44 compatible type for TRUTH_NOT_EXPR.
45
46 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
47
48 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
49 (ix86_hard_regno_mode_ok): Change return value to bool. Use
50 can_create_pseudo_p ().
51
52 2011-05-13 Richard Guenther <rguenther@suse.de>
53
54 PR lto/48978
55 * gimple.c (iterative_hash_gimple_type): Revert change in
56 pointer target and function result and argument hashing.
57
58 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
59
60 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
61 (*movxf_internal_nointeger): Ditto.
62 (*movdf_internal_rex64): Ditto.
63 (*movdf_internal): Ditto.
64 (*movdf_internal_nointeger): Ditto.
65 (*movsf_internal): Ditto.
66 (sincos splitters): Use can_create_pseudo ().
67
68 2011-05-13 Joseph Myers <joseph@codesourcery.com>
69
70 * config/i386/i386-opts.h: New.
71 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
72 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
73 ix86_section_threshold): Remove.
74 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
75 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
76 OPT_mbranch_cost_.
77 (ix86_option_override_internal): Don't decode strings for options
78 other than -march=, -mtune= and -mfpmath=. Don't allow for
79 __attribute__ uses in remaining diagnostics for options with
80 string arguments. Don't check for integer arguments being negative.
81 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
82 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
83 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
84 ix86_branch_cost, ix86_section_threshold): Remove.
85 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
86 HeaderInclude.
87 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
88 but not Var.
89 (masm=): Use Enum and Init.
90 (asm_dialect): New Enum and EnumValue entries.
91 (mbranch-cost=): Use UInteger.
92 (mlarge-data-threshold=): Use UInteger and Init.
93 (mcmodel=): Use Enum and Init.
94 (cmodel): New Enum and EnumValue entries.
95 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
96 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
97 mregparm=): Use UInteger.
98 (mstringop-strategy=): Use Enum and Init.
99 (stringop_alg): New Enum and EnumValue entries.
100 (mtls-dialect=): Use Enum and Init.
101 (tls_dialect): New Enum and EnumValue entries.
102 (mabi=): Use Enum and Init.
103 (calling_abi): New Enum and EnumValue entries.
104 (mveclibabi=): Use Enum and Init.
105 (ix86_veclibabi): New Enum and EnumValue entries.
106
107 2011-05-13 Nick Clifton <nickc@redhat.com>
108
109 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
110 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
111
112 2011-05-13 Kai Tietz <ktietz@redhat.com>
113
114 PR middle-end/48984
115 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
116 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
117 (gimple_boolify): Check for cast for boolean_type_node instead for
118 BOOLEAN_TYPE.
119
120 2011-05-13 Richard Guenther <rguenther@suse.de>
121
122 PR tree-optimization/48172
123 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
124 multiplying by number of iterations for equal step.
125 (vect_create_cond_for_alias_checks): Likewise.
126
127 2011-05-13 Andreas Schwab <schwab@redhat.com>
128
129 * configure.ac: Use AS_HELP_STRING throughout.
130 * configure: Regenerate.
131
132 >>>>>>> .r173734
133 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
134
135 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
136 (ix86_emit_restore_regs_using_mov): Likewise.
137 (ix86_emit_restore_sse_regs_using_mov): Likewise.
138
139 2011-05-12 Anatoly Sokolov <aesok@post.ru>
140
141 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
142 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
143 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
144 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
145 RTX_OK_FOR_OLO10_P): ...here.
146 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
147 SYMBOLIC_CONST.
148
149 2011-05-12 Kai Tietz <ktietz@redhat.com>
150
151 * gimplify.c (gimple_boolify): Re-boolify expression
152 arguments even if expression type is of kind BOOLEAN_TYPE.
153 (gimplify_boolean_expr): Removed.
154 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
155 and XOR. Additional take care that we keep expression's type.
156 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
157 of TRUTH_AND|OR|XOR_EXPR.
158
159 2011-05-12 Jakub Jelinek <jakub@redhat.com>
160
161 PR tree-optimization/48975
162 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
163 on all bbs here and free and clear ifc_bbs at the end.
164
165 2011-05-12 Richard Guenther <rguenther@suse.de>
166
167 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
168 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
169 until after simple checks.
170 (gimple_types_compatible_p): Likewise.
171 (iterative_hash_gimple_type): Always hash pointer targets
172 and function return and argument types.
173 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
174 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
175 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
176 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
177 completely in the simple compare section.
178 (gimple_register_canonical_type): Query the cache again after
179 registering.
180
181 2011-05-12 Richard Guenther <rguenther@suse.de>
182
183 PR tree-optimization/48172
184 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
185 the number of iterations from the segment size calculation.
186 (vect_create_cond_for_alias_checks): Adjust.
187
188 2011-05-12 Jakub Jelinek <jakub@redhat.com>
189
190 PR debug/48967
191 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
192 if validate_subreg fails.
193
194 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
195
196 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
197 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
198 early.
199
200 2011-05-12 DJ Delorie <dj@redhat.com>
201
202 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
203 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
204 created builtin into rx_builtins array.
205 (rx_builtin_decl): New function.
206 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
207
208 2011-05-12 DJ Delorie <dj@redhat.com>
209 Nick Clifton <nickc@redhat.com>
210
211 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
212 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
213 (rx_is_legitimate_address): Add pre-decrement and post-increment
214 addressing in HImode and QImode. Fix test for out of range
215 REG+INT addressing.
216 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
217 (rx_align_for_label): Test label before extracting its usage count.
218 (rx_adjust_insn_lengths): Fix selection of insn codes.
219 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
220
221 2011-05-11 Jason Merrill <jason@redhat.com>
222
223 * tree.c (type_hash_canon): Use struct tree_type_non_common.
224
225 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
226
227 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
228 reindent the subsequent block.
229
230 2011-05-11 Satoru Takabayashi <satorux@google.com>
231 Paul Pluzhnikov <ppluzhnikov@google.com>
232
233 * doc/install.texi (Configuration): Document --with-linker-hash-style.
234 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
235 * config.in: Add LINKER_HASH_STYLE.
236 * configure.ac: Add --with-linker-hash-style.
237 * configure: Regenerate.
238
239 2011-05-11 Richard Guenther <rguenther@suse.de>
240
241 PR middle-end/48964
242 * gimple.c (iterative_hash_canonical_type): Fix typo.
243
244 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
245
246 * config/i386/i386.c (legitimize_tls_address)
247 <TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
248 expanders directly for TARGET_GNU2_TLS. Determine pic and
249 __tls_get_addr symbol reference here. Update call to
250 gen_tls_global_dynamic_{32,64} for added arguments.
251 <TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
252 expanders directly for TARGET_GNU2_TLS. Determine
253 __tls_get_addr symbol reference here. Update call to
254 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
255 unique UNSPEC REG_EQUIV to libcall block.
256 (ix86_tls_get_addr): Declare static.
257 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
258 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
259 Do not determine pic and __tls_get_addr symbol reference here. Do not
260 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
261 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
262 (tls_global_dynamic_64): Add operand 2. Do not determine
263 __tls_get_addr symbol reference here. Do not call
264 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
265 (tls_local_dynamic_base64): Ditto for operand 1.
266
267 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
268
269 * function.c (expand_function_start): Initialize stack_check_probe_note
270 only if the generic stack checking mechanism is used.
271
272 2011-05-11 Richard Guenther <rguenther@suse.de>
273
274 PR tree-optimization/15256
275 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
276 (A & B) | C, combine (A op CST1) op CST2.
277 (tree_ssa_forward_propagate_single_use_vars): Only bother to
278 visit assigns that have uses.
279
280 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
281
282 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
283 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
284 (unpack_ts_type_common_value_fields): ...this. Update comment.
285 (unpack_value_fields): Adjust for renaming.
286 (lto_input_ts_type_tree_pointers): Split into...
287 (lto_input_ts_type_common_tree_pointer): ...this and...
288 (lto_input_ts_type_non_common_tree_pointers): ...this.
289 (lto_input_tree_pointers): Adjust for above split.
290 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
291 (pack_ts_type_common_value_fields): ...this. Update comment.
292 (lto_output_ts_type_tree_pointers): Split into...
293 (lto_output_ts_type_common_tree_pointers): ...this and...
294 (lto_output_ts_type_non_common_tree_pointers): ...this.
295 (lto_output_tree_pointers): Adjust for above split.
296 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
297 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
298 * stor-layout.c (vector_type_mode): Adjust location of mode field.
299 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
300 Define.
301 (struct tree_type): Split into...
302 (struct tree_type_common: ...this and...
303 (struct tree_type_with_lang_specific): ...this and...
304 (struct tree_type_non_common): ...this. Adjust accessor macros
305 accordingly.
306 (TYPE_VALUES_RAW): Define.
307 (union tree_node): Update for above changes.
308 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
309 TS_TYPE_NON_COMMON.
310 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
311 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
312 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
313 * treestructu.def (TS_TYPE): Remove.
314 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
315 Define.
316
317 2011-05-11 Jakub Jelinek <jakub@redhat.com>
318
319 PR debug/48159
320 * tree-ssa.c (reset_debug_uses): New function.
321 * tree-flow.h (reset_debug_uses): New prototype.
322 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
323 * tree-loop-distribution.c (generate_loops_for_partition): Call
324 reset_debug_uses on the stmts that will be removed. Keep around
325 all debug stmts, don't count them as bits in partition bitmap.
326 (generate_builtin): Don't count debug stmts or labels as bits in
327 partition bitmap.
328
329 2011-05-11 Richard Guenther <rguenther@suse.de>
330
331 * gimple.c (gimple_type_hash_1): Merge with ...
332 (gimple_type_hash): ... this.
333 (gtc_visit): Remove mode parameter and simplify accordingly.
334 (gimple_types_compatible_p_1): Likewise.
335 (gimple_types_compatible_p): Likewise.
336 (iterative_hash_gimple_type): Likewise.
337 (visit): Likewise.
338 (gimple_type_eq): Adjust.
339
340 2011-05-11 Revital Eres <revital.eres@linaro.org>
341
342 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
343 enters the branch create an anti edge in the opposite direction
344 to prevent the creation of reg-moves.
345 * modulo-sched.c: Adjust comment to reflect the fact we are
346 scheduling closing branch.
347 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
348 (stage_count): New field in struct partial_schedule.
349 (calculate_stage_count): New function.
350 (normalize_sched_times): Rename to reset_sched_times and handle
351 incrementing the sched time of the nodes by a constant value
352 passed as parameter.
353 (duplicate_insns_of_cycles): Skip closing branch.
354 (sms_schedule_by_order): Schedule closing branch.
355 (ps_insn_find_column): Handle closing branch.
356 (sms_schedule): Call reset_sched_times and adjust the code to
357 support scheduling of the closing branch.
358 (ps_insert_empty_row): Update calls to normalize_sched_times
359 and rotate_partial_schedule functions.
360
361 2011-05-11 Richard Guenther <rguenther@suse.de>
362
363 PR middle-end/48953
364 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
365
366 2011-05-11 Joseph Myers <joseph@codesourcery.com>
367
368 * opts.c (finish_options): Move warning settings from process_options.
369 * toplev.c (process_options): Move warning settings to finish_options.
370
371 2011-05-11 Richard Guenther <rguenther@suse.de>
372
373 PR tree-optimization/18041
374 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
375 (simplify_bitwise_binary): ... this. Handle operand conversions
376 by applying them to the result instead.
377 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
378
379 2011-05-11 Richard Guenther <rguenther@suse.de>
380
381 * gimple.c (gimple_canonical_types_compatible_p): Split out
382 from gimple_types_compatible_p and friends. Do not recurse
383 to pointed-to types.
384 (gimple_canonical_type_eq): Use it.
385 (iterative_hash_canonical_type): Split out from
386 iterative_hash_gimple_type and friends. Do not recurse
387 to pointed-to types.
388 (gimple_canonical_type_hash): Use it, allocate the hash here.
389
390 2011-05-11 Revital Eres <revital.eres@linaro.org>
391
392 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
393 recognizing doloop.
394
395 2011-05-11 Revital Eres <revital.eres@linaro.org>
396
397 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
398 instead of PREV_INSN.
399
400 2011-05-11 Revital Eres <revital.eres@linaro.org>
401
402 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
403 * loop-doloop.c (doloop_condition_get): Likewise.
404 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
405 (doloop_end): New.
406 * config/arm/arm.md (*addsi3_compare0): Remove "*".
407
408 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
409
410 * tree.def (CASE_LABEL_EXPR): Add an operand.
411 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
412
413 2011-05-10 Joseph Myers <joseph@codesourcery.com>
414
415 * c-decl.c (c_override_global_bindings_to_false): Remove.
416 (global_bindings_p): Don't check
417 c_override_global_bindings_to_false.
418 * c-tree.h (c_override_global_bindings_to_false): Remove.
419 * c-typeck.c (composite_type): Don't set
420 c_override_global_bindings_to_false.
421
422 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
423
424 PR target/48857, 48495
425 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
426 (VSX_MODE): Ditto.
427 (VSX_MOVE_MODE): Ditto.
428 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
429 VSX vector types. Add V2DImode.
430 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
431 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
432 (MODES_TIEABLE_P): Ditto.
433
434 * config/rs6000/rs6000.c (rs6000_emit_move): Use
435 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
436 VSX_VECTOR_MODE.
437 (init_cumulative_args): Ditto.
438 (rs6000_function_arg_boundary): Ditto.
439 (rs6000_function_arg_advance_1): Ditto.
440 (rs6000_function_arg): Ditto.
441 (rs6000_function_ok_for_sibcall): Ditto.
442 (emit_frame_save): Ditto.
443 (rs6000_function_value): Ditto.
444 (rs6000_libcall_value): Ditto.
445
446 2011-05-10 Joseph Myers <joseph@codesourcery.com>
447
448 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
449 i386/darwin-lib.h to $libgcc_tm_file.
450 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
451
452 2011-05-10 Joseph Myers <joseph@codesourcery.com>
453
454 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
455
456 2011-05-10 Joseph Myers <joseph@codesourcery.com>
457
458 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
459 * config/rs6000/rs6000-tables.opt: New file (generated).
460 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
461 rs6000/rs6000-tables.opt to extra_options.
462 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
463 * config/rs6000/rs6000.c (rs6000_select): Remove.
464 (processor_target_table): Move contents to rs6000-cpus.def.
465 (darwin_rs6000_override_options): Check
466 global_options_set.x_rs6000_cpu_index instead of
467 rs6000_select[1].string.
468 (rs6000_option_override_internal): Likewise.
469 (rs6000_handle_option): Don't assert that global structures are in
470 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
471 (rs6000_default_cpu): New variable.
472 (rs6000_file_start): Set it instead of local default_cpu. Check
473 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
474 global_options_set.x_rs6000_tune_index instead of rs6000_select.
475 (rs6000_darwin_file_start): Check rs6000_default_cpu and
476 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
477 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
478 rs6000_select): Remove.
479 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
480 Remove.
481 (mcpu=, mtune=): Use Var, Init, Enum and Save.
482 * config/rs6000/t-rs6000
483 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
484 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
485 global_options_set.x_rs6000_cpu_index instead of
486 rs6000_select[1].string.
487 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
488 global_options_set.x_rs6000_cpu_index instead of
489 rs6000_select[1].string.
490
491 2011-05-10 Joseph Myers <joseph@codesourcery.com>
492
493 * config.gcc (libgcc_tm_file): Define instead of including files
494 from ../../libgcc/config/ in tm_file.
495 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
496 * configure: Regenerate.
497 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
498 libgcc_tm.h, cs-libgcc_tm.h): New.
499 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
500 (clean): Remove libgcc_tm.h.
501 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
502 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
503 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
504
505 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
506
507 PR target/48896
508 * config/avr/avr.c (avr_ret_register): Return unsigned int
509 instead of int.
510 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
511 it to avr_libcall_value.
512 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
513 expand_expr.
514 (avr_expand_binop_builtin): Ditto.
515 (avr_expand_unop_builtin): Ditto.
516
517 2011-05-10 DJ Delorie <dj@redhat.com>
518
519 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
520 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
521 * config/rx/rx.c (rx_align_for_label): Add label and
522 uses_threshold parameters. Do not align when the label is not
523 used enough.
524 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
525
526 2011-05-10 Richard Guenther <rguenther@suse.de>
527
528 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
529 a series of conversions and apply foldings similar to what
530 fold-const does.
531 (tree_ssa_forward_propagate_single_use_vars): Call it.
532
533 2011-05-10 Jakub Jelinek <jakub@redhat.com>
534
535 PR tree-optimization/48611
536 PR tree-optimization/48794
537 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
538 referenced from RESX or EH_DISPATCH arguments.
539
540 PR debug/48928
541 * dfp.c (decimal_to_decnumber): Handle conversion from
542 dconst{1,2,m1,half}.
543
544 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
545
546 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
547 for !flag_prefer_avx128.
548 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
549
550 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
551
552 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
553 (fold_ternary_loc): Use expr_location_or.
554
555 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
556
557 PR debug/48853
558 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
559 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
560 Pmode and mem_mode is not VOIDmode.
561
562 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
563
564 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
565 TYPE_QUAL_RESTRICT): Convert to enum.
566
567 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
568
569 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
570 (const_pow2_1_to_8_operand): Ditto.
571 (const_pow2_1_to_128_operand): Ditto.
572 (const_pow2_1_to_32768_operand): Ditto.
573 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
574 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
575 in insn constraint to check integer value of operand 3.
576 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
577
578 (PINSR_MODE): New mode iterator.
579 (sse2p4_1): New mode attribute.
580 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
581 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
582 iterator. Use const_int_operand instead of
583 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
584 exact_log2 in insn constraint to check integer value of operand 3.
585
586 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
587
588 * config/i386/sse.md (blendbits): Remove mode attribute.
589 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
590 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
591 Check integer value of operand 3 in insn constraint.
592
593 2011-05-09 Richard Guenther <rguenther@suse.de>
594
595 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
596 for diagnostics.
597 (lto_symtab_merge): Likewise. Do not register types here.
598 (lto_symtab_merge_decls_2): Likewise.
599 (lto_symtab_merge_decls_1): Likewise.
600 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
601 * gimple.c (enum gtc_mode): Declare.
602 (gimple_types_compatible_p): Make static.
603
604 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
605
606 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
607 temporary register to match Pmode.
608
609 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
610
611 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
612 and *vec_concatv4si_1_avx.
613
614 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
615
616 PR rtl-optimization/48927
617 * ira-conflicts.c (commutative_constraint_p): Use
618 recog_data.alternative_enabled_p to disable alternatives where
619 "enabled" attribute is false.
620 (get_dup_num): Ditto.
621 * ira-lives.c (single_reg_class): Ditto.
622 (ira_implicitly_set_insn_hard_regs): Ditto.
623
624 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
625
626 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
627 (dataflow_set_preserve_mem_locs): Likewise.
628
629 2011-05-09 Philipp Thomas <pth@suse.de>
630
631 * config/mep/mep.c (mep_validate_vliw): Syntax description
632 should not be translated.
633
634 2011-05-09 Joseph Myers <joseph@codesourcery.com>
635
636 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
637 * config/mips/mips-tables.opt: New file (generated).
638 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
639 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
640 MIPS_ARCH_OPTION_NATIVE): Define.
641 * config/mips/mips.c (mips_cpu_info_table): Move contents to
642 mips-cpus.def.
643 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
644 mips_parse_cpu): Remove.
645 (mips_cpu_info_from_opt, mips_default_arch): New.
646 (mips_handle_option): Don't assert that global structures are in
647 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
648 (mips_option_override): Use new variables and functions to set
649 state of these options. Use strcmp to check for individual CPU names.
650 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
651 definition.
652 * config/mips/mips.opt (march=): Use ToLower and Enum.
653 (mips): Use ToLower, Enum and Var.
654 (mtune=): Use ToLower and Enum.
655 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
656
657 2011-05-08 Jan Hubicka <jh@suse.cz>
658
659 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
660 Arrange type pairs to be UID ordered.
661 (gimple_lookup_type_leader): Make inline.
662
663 2011-05-09 Nick Clifton <nickc@redhat.com>
664
665 PR target/48899
666 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
667 PROCESSOR_DEFAULT.
668
669 PR target/48897
670 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
671 variable 's'.
672
673 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
674
675 * combine.c (simplify_comparison): Abstract out parts into...
676 (simplify_compare_const): ... new function.
677 (try_combine): Generalize parallel arithmetic/compare combining
678 to call simplify_compare_const() and CANONICALIZE_COMPARE().
679
680 2011-05-08 Jan Hubicka <jh@suse.cz>
681
682 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
683 (cgraph_create_virtual_clone): Call hooks once virtual clone
684 is finished.
685 * cgraph.h (cgraph_clone_node): Update prototype.
686 * ipa-cp.c (ipcp_estimate_growth): Use
687 estimate_ipcp_clone_size_and_time.
688 * ipa-inline-transform.c (clone_inlined_nodes): Update.
689 * lto-cgraph.c (input_node): Update.
690 * ipa-inline.c (recursive_inlining): Update.
691 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
692 (evaluate_conditions_for_known_args): Break out from ...
693 (evaluate_conditions_for_edge): ... here.
694 (evaluate_conditions_for_ipcp_clone): New function.
695 (inline_node_duplication_hook): Update clone summary based
696 on parameter map.
697 (estimate_callee_size_and_time): Rename to ...
698 (estimate_node_size_and_time): take NODE instead of EDGE;
699 take POSSIBLE_TRUTHS as argument.
700 (estimate_callee_size_and_time): Update.
701 (estimate_ipcp_clone_size_and_time): New function.
702 (do_estimate_edge_time): Update.
703
704 2011-05-08 Richard Guenther <rguenther@suse.de>
705
706 PR middle-end/48908
707 PR middle-end/48905
708 * expmed.c (expand_shift_1): Compute adjusted constant shift
709 amount manually.
710
711 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
712
713 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
714
715 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
716
717 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
718
719 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
720
721 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
722
723 2011-05-07 Jan Hubicka <jh@suse.cz>
724
725 * ipa-inline-transform.c (inline_call): Account when program size
726 decreases.
727 * ipa-inline.c (relative_time_benefit): New function.
728 (edge_badness): Reorganize to be power 2 based; fix thinko when
729 computing badness for negative growth; update comments to match
730 reality; better dumps.
731
732 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
733
734 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
735 type to bool and adjust comment.
736 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
737 (fold_mathfn_compare): Remove calls to global_bindings_p.
738 (fold_inf_compare): Likewise.
739 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
740 * c-tree.h (global_bindings_p): Adjust prototype.
741 * c-decl.c (global_bindings_p): Return bool and simplify.
742
743 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
744
745 PR tree-optimization/48837
746 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
747 when accumulator transformation is performed.
748
749 2011-05-06 Jan Hubicka <jh@suse.cz>
750
751 * i386.h (ix86_tune_indices): Add
752 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
753 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
754 * i386.c (initial_ix86_tune_features): Add
755 X86_SOFTARE_PREFETCHING_BENEFICIAL.
756 (software_prefetching_beneficial_p): Remove predicate.
757 (ix86_option_override_internal): Use new macro.
758
759 2011-05-06 Jan Hubicka <jh@suse.cz>
760
761 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
762
763 2011-05-06 Jan Hubicka <jh@suse.cz>
764
765 * cgraph.c (cgraph_add_thunk): Create real function node instead
766 of alias node; finalize it and mark needed/reachale; arrange visibility
767 to be right and add it into the corresponding same comdat group list.
768 (dump_cgraph_node): Dump thunks.
769 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
770 cgraph_function_with_gimple_body_p,
771 cgraph_first_function_with_gimple_body,
772 cgraph_next_function_with_gimple_body): New functions.
773 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
774 New macros.
775 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
776 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
777 * cgraphunit.c (cgraph_finalize_function): Only look into possible
778 devirtualization when optimizing.
779 (verify_cgraph_node): Verify thunks.
780 (cgraph_analyze_function): Analyze thunks.
781 (cgraph_mark_functions_to_output): Output thunks only in combination
782 with function they are assigned to.
783 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
784 alias into normal node.
785 (assemble_thunks): New functoin.
786 (cgraph_expand_function): Use it.
787 * lto-cgraph.c (lto_output_node): Stream thunks.
788 (input_overwrite_node): Stream in thunks.
789 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
790 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
791 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
792 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
793 (inline_analyze_function): Do not care about thunk jump functions.
794 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
795 * ipa-prop.c (ipa_prop_write_jump_functions): Use
796 cgraph_function_with_gimple_body_p.
797 * passes.c (do_per_function_toporder): Use
798 cgraph_function_with_gimple_body_p.
799 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
800 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
801 (function_called_by_processed_nodes_p): Likewise.
802
803 2011-05-06 Joseph Myers <joseph@codesourcery.com>
804
805 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
806 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
807 entries.
808 (mabi=): Replace with separate entries for mabi=altivec,
809 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
810 mabi=ieeelongdouble and mabi=ibmlongdouble.
811 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
812 check for -mabi=spe without SPE ABI support here.
813 (rs6000_handle_option): Replace OPT_mabi_ handling with
814 OPT_mabi_altivec and OPT_mabi_spe handling.
815
816 2011-05-06 Cary Coutant <ccoutant@google.com>
817
818 * dwarf2out.c (contains_subprogram_definition): New function.
819 (should_move_die_to_comdat): Call it.
820
821 2011-05-06 Jeff Law <law@redhat.com>
822
823 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
824 remove_ctrl_stmt_and_useless_edges.
825 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
826 (fixup_template_block, thread_single_edge): Likewise.
827 (mark_threaded_blocks): Use THREAD_TARGET.
828
829 2011-05-06 Alan Modra <amodra@gmail.com>
830
831 PR target/48900
832 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
833 const0_rtx as the arg to the dummy __tls_get_addr libcall.
834
835 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
836
837 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
838 constraint modifier to "r".
839
840 2011-05-06 Joseph Myers <joseph@codesourcery.com>
841
842 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
843 fall through for OPT_mcmodel_.
844
845 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
846
847 * config/s390/s390.c (s390_asm_trampoline_template): Comment
848 instruction sizes.
849 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
850
851 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
852
853 PR target/47930
854 * config/arm/arm.opt (marm): Document it.
855 (mthumb): Reject negative variant.
856
857 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
858
859 PR target/48898
860 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
861 Fix typo in "ccvt" variable name.
862
863 2011-05-06 Tristan Gingold <gingold@adacore.com>
864
865 PR target/48895
866 * config/vms/vms-ar.c (main): Remove cwd variable.
867
868 2011-05-06 Jakub Jelinek <jakub@redhat.com>
869
870 PR debug/48902
871 * var-tracking.c (prepare_call_arguments): Move else before #endif.
872
873 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
874
875 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
876 * gimplify.c (gimplify_switch_expr): Likewise.
877 * omp-low.c (expand_omp_sections): Likewise.
878 * tree-eh.c (lower_try_finally_switch): Likewise.
879 (lower_eh_dispatch): Likewise.
880 * tree.h (build_case_label): Declare.
881 * tree.c (build_case_label): Define.
882
883 2011-05-05 Jason Merrill <jason@redhat.com>
884
885 PR c++/40975
886 * tree-inline.c (copy_tree_r): Use copy_statement_list.
887 (copy_statement_list): Don't recurse.
888 * stor-layout.c (copy_self_referential_tree_r): Don't allow
889 STATEMENT_LIST.
890
891 2011-05-05 Joseph Myers <joseph@codesourcery.com>
892
893 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
894 through from -mfpu= handling.
895 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
896
897 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
898
899 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
900 POST_MODIFY.
901
902 2011-05-05 Steve Ellcey <sje@cup.hp.com>
903
904 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
905 for 11.31.
906 (hppa[12]*-*-hpux11*): Ditto.
907 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
908 * config/ia64/hpux-unix2003.h: New.
909 * config/pa/pa-hpux1131.opt: New.
910 * config/pa/pa-hpux1131.h: New.
911 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
912 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
913 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
914
915 2011-05-05 Jakub Jelinek <jakub@redhat.com>
916
917 PR debug/48853
918 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
919 instead of mode as 3rd argument to recursive call.
920 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
921 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
922 VOIDmode.
923 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
924 don't give up if mode is Pmode and mem_mode is not VOIDmode.
925 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
926 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
927
928 2011-05-05 Julian Brown <julian@codesourcery.com>
929
930 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
931 parenthesis in D-register case.
932
933 2011-05-05 Joseph Myers <joseph@codesourcery.com>
934
935 * opt-functions.awk (var_type_struct): Handle Enum options.
936 * optc-gen.awk: Don't check range of variables of character type.
937 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
938 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
939 rs6000_sdata_name, rs6000_explicit_options): Remove.
940 (rs6000_option_override_internal): Check for -malign-power here.
941 Use global_options_set instead of rs6000_explicit_options.
942 (rs6000_parse_fpu_option): Remove.
943 (rs6000_handle_option): Access variables via opts and opts_set
944 pointers. Use error_at and warning_at. Add fall-through
945 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
946 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
947 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
948 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
949 here. Don't use rs6000_parse_fpu_option.
950 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
951 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
952 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
953 (mrecip=): Use Var.
954 (mspe): Use Var and Save.
955 (mtraceback=): Use Enum and Var.
956 (rs6000_traceback_type): New Enum and EnumValue entries.
957 (mfloat-gprs=): Use Enum, Var and Save.
958 (rs6000_float_gprs): New Enum and EnumValue entries.
959 (mlong-double-): use Var and Save.
960 (msched-costly-dep=, minsert-sched-nops=): Use Var.
961 (malign-): Use Enum and Var.
962 (rs6000_alignment_flags): New Enum and EnumValue entries.
963 (mfpu=): Use Enum.
964 (fpu_type_t): New Enum and EnumValue entries.
965 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
966 global_options_set instead of rs6000_explicit_options.
967 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
968 global_options_set instead of rs6000_explicit_options.
969 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
970 global_options_set instead of rs6000_explicit_options.
971 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
972 global_options_set instead of rs6000_explicit_options.
973 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
974 global_options_set instead of rs6000_explicit_options.
975 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
976 global_options_set instead of rs6000_explicit_options.
977 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
978 definition.
979 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
980 global_options_set instead of rs6000_explicit_options.
981 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
982 (rs6000_cmodel): New Enum and EnumValue entries.
983 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
984 global_options_set instead of rs6000_explicit_options.
985 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
986 (mtls-size=): Use Enum and Var.
987 (rs6000_tls_size): New Enum and EnumValue entries.
988
989 2011-05-05 Michael Matz <matz@suse.de>
990
991 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
992 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
993 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
994 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
995 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
996 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
997 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
998 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
999 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1000 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1001 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1002 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1003 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1004 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1005 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1006 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1007
1008 2011-05-05 Richard Guenther <rguenther@suse.de>
1009
1010 * expmed.c (expand_variable_shift): Rename to ...
1011 (expand_shift_1): ... this. Take an expanded shift amount.
1012 For rotates recurse directly not building trees for the shift amount.
1013 (expand_variable_shift): Wrap around expand_shift_1.
1014 (expand_shift): Adjust.
1015
1016 2011-05-05 Jakub Jelinek <jakub@redhat.com>
1017
1018 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1019
1020 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
1021
1022 * tree.h (get_pending_sizes): Remove prototype.
1023 (put_pending_size): Likewise.
1024 (put_pending_sizes): Likewise.
1025 * stor-layout.c (pending_sizes): Delete.
1026 (get_pending_sizes): Likewise.
1027 (put_pending_size): Likewise.
1028 (put_pending_sizes): Likewise.
1029 (variable_size): Do not call put_pending_size and tidy up.
1030 * function.h (struct function): Remove dont_save_pending_sizes_p.
1031 * lto-streamer-in.c (input_function): Do not stream it.
1032 * lto-streamer-out.c (output_function): Likewise.
1033 * tree-inline.c (initialize_cfun): Do not copy it.
1034 * c-decl.c (store_parm_decls): Do not set it.
1035 * omp-low.c (create_task_copyfn): Likewise.
1036 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1037
1038 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
1039
1040 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1041 conditions.
1042 (*movdf_internal): Ditto.
1043 (*movdf_internal_nointeger): Ditto.
1044 (*movsf_internal): Ditto.
1045
1046 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1047
1048 * c-decl.c (finish_decl): Don't call get_pending_sizes.
1049 (grokparm): Add parameter expr. Pass it to grokdeclarator.
1050 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
1051 (c_variable_size): Remove.
1052 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
1053 call put_pending_sizes.
1054 (get_parm_info): Add parameter expr. Use it to set
1055 arg_info->pending_sizes.
1056 (store_parm_decls): Use arg_info->pending_sizes instead or calling
1057 get_pending_sizes.
1058 * c-parser.c (c_parser_parms_declarator): Update call to
1059 c_parser_parms_list_declarator.
1060 (c_parser_parms_list_declarator): Take parameter expr. Update
1061 call to push_parm_decl. Update recursive call. Don't call
1062 get_pending_sizes. Update calls to get_parm_info.
1063 (c_parser_objc_method_definition): Update calls to
1064 c_parser_objc_method_decl and objc_start_method_definition.
1065 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1066 (c_parser_objc_method_decl): Add parameter expr. Update call to
1067 grokparm.
1068 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1069 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1070 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1071
1072 2011-05-05 Michael Hope <michael.hope@linaro.org>
1073
1074 PR pch/45979
1075 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1076 __ARM_EABI__ hosts.
1077
1078 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1079
1080 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1081 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1082 (spu_output_mi_thunk): New function.
1083
1084 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1085
1086 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1087 targetm.asm_out.print_operand.
1088 * config/sol2.c: Include target.h.
1089
1090 2011-05-04 Jan Hubicka <jh@suse.cz>
1091
1092 * ipa-inline.c (reset_edge_caches): New function.
1093 (update_caller_keys): Add check_inlinablity_for; do not
1094 reset edge caches; remove now unnecesary loop.
1095 (update_callee_keys): Add comments; reset node_growth_cache of callee.
1096 (update_all_callee_keys): Likewise.
1097 (inline_small_functions): Sanity check cache; update code
1098 recomputing it.
1099
1100 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
1101
1102 PR rtl-optimization/47612
1103 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1104 as the last insn of the sequence to be moved.
1105
1106 2011-05-04 Tobias Burnus <burnus@net-b.de>
1107
1108 PR fortran/48864
1109 * doc/invoke.texi (Ofast): Document that it
1110 enables Fortran's -fno-protect-parens.
1111
1112 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1113
1114 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1115
1116 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
1117
1118 * stor-layout.c (variable_size): Do not issue errors.
1119
1120 2011-05-04 Richard Guenther <rguenther@suse.de>
1121
1122 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1123 for array-ref indices.
1124 (tree_coverage_counter_addr): Likewise.
1125 (build_fn_info_type): Use size_int for index types.
1126 (build_gcov_info): Likewise.
1127
1128 2011-05-04 Richard Guenther <rguenther@suse.de>
1129
1130 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1131 to build_int_cst.
1132 * c-typeck.c (really_start_incremental_init): Use bitsize_int
1133 for constructor indices.
1134 (push_init_level): Likewise.
1135
1136 2011-05-04 Richard Guenther <rguenther@suse.de>
1137
1138 * explow.c (promote_mode): Move variable declarations before code.
1139
1140 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1141
1142 * tree.h (build_function_type_array): Declare.
1143 (build_varargs_function_type_array): Declare.
1144 (build_function_type_vec, build_varargs_function_type_vec): Define.
1145 * tree.c (build_function_type_array_1): New function.
1146 (build_function_type_array): New function.
1147 (build_varargs_function_type_array): New function.
1148
1149 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
1150
1151 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1152 before setting STMT_VINFO_TYPE.
1153
1154 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1155
1156 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1157 instead of spu_pass_by_reference.
1158
1159 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1160
1161 * calls.c (emit_library_call_value_1): Invoke
1162 promote_function_mode hook on libcall arguments.
1163 * explow.c (promote_function_mode, promote_mode): Handle TYPE
1164 argument being NULL.
1165 * targhooks.c (default_promote_function_mode): Lisewise.
1166 * config/s390/s390.c (s390_promote_function_mode): Likewise.
1167 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1168
1169 * doc/tm.texi: Document that TYPE argument might be NULL.
1170
1171 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1172
1173 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1174
1175 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1176
1177 From Bernd Schmidt
1178 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1179
1180 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1181
1182 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1183 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1184 Move ...
1185 * mips-tfile.c: ... here.
1186 Don't include coretypes.h, tm.h, filenames.h.
1187 (saber_stop): Remove definition and all calls.
1188 [__SABER__]: Remove.
1189 (__LINE__): Remove default.
1190 (Size_t, Ptrdiff_t): Remove definitions.
1191 Replace by size_t, ptrdiff_t.
1192 [!MIPS_DEBUGGING_INFO]: Remove.
1193 (SHASH_SIZE, THASH_SIZE): Remove defaults.
1194 (progname): Add const.
1195 (STATIC): Remove.
1196 Replace all uses by static.
1197 (ALIGN_SYMTABLE_OFFSET): Remove default.
1198 * mips-tdump.c: Don't include coretypes.h, tm.h.
1199 Remove !MIPS_IS_STAB guard.
1200 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1201 $(TM_H), filenames.h dependencies.
1202 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1203
1204 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1205
1206 From Jie Zhang
1207 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1208 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1209
1210 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1211
1212 From Bernd Schmidt
1213 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1214 account and save/restore RETS.
1215 (PROFILE_BEFORE_PROLOGUE): Define.
1216 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
1217 the push insn to use predecrement.
1218
1219 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1220
1221 From Jie Zhang
1222 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1223
1224 2011-05-04 Nick Clifton <nickc@redhat.com>
1225
1226 * config/mn10300/mn10300.c: Include cfgloop.h.
1227 (DUMP): New macro.
1228 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
1229 Lcc or a FLcc insn into the instruction stream.
1230 (mn10300_block_contains_call): New function. Returns true if the
1231 given basic block contains a CALL insn.
1232 (mn10300_loop_contains_call_insn): New function. Returns true if
1233 the given loop contains a CALL insn.
1234 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
1235 to use the SETLB and Lcc or FLcc insns.
1236 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1237 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1238 * config/mn10300/mn10300.opt (msetlb): New option. Used to
1239 disable the SETLB optimization.
1240 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1241 __SETLB__ or __NO_SETLB__.
1242 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1243 (movsf_internal): Handle MDR register.
1244 (cmpsi): Make visible.
1245 (setlb): New pattern.
1246 (Lcc): New pattern.
1247 (FLcc): New pattern.
1248
1249 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
1250
1251 PR target/48860
1252 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1253 for reg<->xmm moves.
1254 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1255 (vec_concatv2di_rex64_sse): Ditto.
1256 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1257 (*vec_extractv2di_1_rex64): Ditto.
1258
1259 Revert:
1260 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1261
1262 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1263 reg<->xmm moves.
1264 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1265
1266 2011-05-04 Richard Guenther <rguenther@suse.de>
1267
1268 * tree.h (int_const_binop): Remove notrunc argument.
1269 * fold-const.c (int_const_binop): Remove notrunc argument. Always
1270 create integer constants that are properly truncated.
1271 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1272 (const_binop): Remove zero notrunc argument to int_const_binop.
1273 (size_binop_loc): Likewise.
1274 (fold_div_compare): Likewise.
1275 (maybe_canonicalize_comparison_1): Likewise.
1276 (fold_comparison): Likewise.
1277 (fold_binary_loc): Likewise.
1278 (multiple_of_p): Likewise.
1279 * expr.c (store_constructor): Likewise.
1280 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1281 (maybe_fold_stmt_addition): Likewise.
1282 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1283 * stor-layout.c (layout_type): Likewise.
1284 * tree-data-ref.c (tree_fold_divides_p): Likewise.
1285 * tree-sra.c (build_ref_for_offset): Likewise.
1286 (build_user_friendly_ref_for_offset): Likewise.
1287 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1288 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1289 * tree-ssa-loop-niter.c (inverse): Likewise.
1290 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1291 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1292 * tree-switch-conversion.c (check_range): Likewise.
1293 (build_constructors): Likewise.
1294 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1295 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1296 (extract_range_from_assert): Likewise.
1297 (vrp_int_const_binop): Likewise.
1298 (extract_range_from_binary_expr): Likewise.
1299 (extract_range_from_unary_expr): Likewise.
1300 (check_array_ref): Likewise.
1301 (find_case_label_range): Likewise.
1302 (simplify_div_or_mod_using_ranges): Likewise.
1303 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1304 comparing case labels for merging.
1305
1306 2011-05-03 Mark Wielaard <mjw@redhat.com>
1307
1308 * dwarf2out.c (debug_str_hash_forced): Removed.
1309 (gen_label_for_indirect_string): Removed.
1310 (get_debug_string_label): Removed.
1311 (AT_string_form): Generate label directly.
1312 (output_indirect_string): Test indirect_string_node for
1313 DW_FORM_strp instead of checking label and refcount.
1314 (prune_indirect_string): Removed.
1315 (prune_unused_types): Don't check debug_str_hash_forced or
1316 call prune_indirect_string.
1317
1318 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1319
1320 PR other/48093
1321 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1322
1323 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1324
1325 PR debug/47994
1326 PR debug/47919
1327 * combine.c (try_combine): Skip debug insns at m_split tests.
1328
1329 2011-04-26 Mark Wielaard <mjw@redhat.com>
1330
1331 PR42288
1332 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1333 when info_section_emitted.
1334
1335 2011-05-03 Joseph Myers <joseph@codesourcery.com>
1336
1337 * config/mips/mips-opts.h: New.
1338 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1339 to mips-opts.h.
1340 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1341 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1342 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
1343 via opts pointer.
1344 * config/mips/mips.h (enum mips_code_readable_setting): Move to
1345 mips-opts.h.
1346 (mips_abi, mips_code_readable): Don't declare.
1347 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1348 (mabi=): Use Enum and Var.
1349 (mips_abi): New Enum and EnumValue entries.
1350 (mcode-readable=): Use Enum and Var.
1351 (mips_code_readable_setting): New Enum and EnumValue entries.
1352 (mr10k-cache-barrier=): Use Enum and Var.
1353 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1354
1355 2011-05-03 Jan Hubicka <jh@suse.cz>
1356
1357 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1358 replace hash by pointer map.
1359 (cgraph_node_set_element_def, cgraph_node_set_element,
1360 const_cgraph_node_set_element, varpool_node_set_element_def,
1361 varpool_node_set_element, const_varpool_node_set_element): Remove.
1362 (free_cgraph_node_set, free_varpool_node_set): New function.
1363 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1364 * tree-emutls.c: Free varpool node set.
1365 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1366 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1367 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1368 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1369 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1370 Move here from ipa.c; implement using pointer_map
1371 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1372 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1373 debug_cgraph_node_set, varpool_node_set_new,
1374 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1375 dump_varpool_node_set, debug_varpool_node_set):
1376 Move to ipa-uitls.c.
1377 * passes.c (ipa_write_summaries): Update.
1378
1379 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1380
1381 From Mike Frysinger:
1382 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1383 bf542/bf544/bf547/bf548/bf549.
1384
1385 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1386
1387 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1388
1389 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1390
1391 From Bernd Schmidt:
1392 * config/bfin/bfin.md (MOVCC): New mode_macro.
1393 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1394 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
1395 comments from generated assembly.
1396
1397 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1398
1399 From Bernd Schmidt
1400 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1401 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1402 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1403 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1404 * config/bfin/lib1funcs.asm (___muldi3): New function.
1405
1406 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1407
1408 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1409 build_function_type_list instead of build_function_type.
1410 Rearrange initialization of `args' to do so.
1411
1412 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1413
1414 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1415 instead of build_function_type.
1416
1417 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1418
1419 * config/rs6000/rs6000.c (spe_init_builtins): Call
1420 build_function_type_list instead of build_function_type.
1421 (paired_init_builtins, altivec_init_builtins): Likewise.
1422 (builtin_function_type): Likewise.
1423
1424 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1425
1426 * config/sh/sh.c (sh_media_init_builtins): Call
1427 build_function_type_list instead of build_function_type.
1428
1429 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1430
1431 * config/sparc/sparc.c (sparc_file_end): Call
1432 build_function_type_list instead of build_function_type.
1433
1434 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1435
1436 * config/alpha/alpha.c (alpha_init_builtins): Call
1437 build_function_type_list instead of build_function_type.
1438
1439 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1440
1441 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1442 build_function_type_list instead of build_function_type.
1443
1444 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1445
1446 * config/iq2000/i2000.c (iq2000_init_builtins): Call
1447 build_function_type_list instead of build_function_type.
1448 Delete `endlink' variable.
1449
1450 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1451
1452 * config/avr/avr.c (avr_init_builtins): Call
1453 build_function_type_list instead of build_function_type.
1454
1455 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1456
1457 * config/picochip/picochip.c (picochip_init_builtins): Call
1458 build_function_type_list instead of build_function_type.
1459 Delete `endlink' variable.
1460
1461 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1462
1463 * config/bfin/bfin.c (bfin_init_builtins): Call
1464 build_function_type_list instead of build_function_type.
1465
1466 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1467
1468 From Bernd Schmidt
1469 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1470 that's not CONST_INT. Seemingly redundant check is due to PR39768.
1471
1472 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1473
1474 From Jie Zhang:
1475 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1476 libbffastfp overrides libgcc when -mfast-fp.
1477
1478 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1479
1480 Originally from Bernd Schmidt
1481 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1482 * config/bfin/bfin.c (override_options): Test it and error if
1483 TARGET_FDPIC.
1484
1485 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1486
1487 Originally From Bernd Schmidt
1488 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1489 FD-PIC.
1490
1491 2011-05-03 Jeff Law <law@redhat.com>
1492
1493 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1494 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1495 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1496 than accessing AUX field directly. Free the AUX field before
1497 clearing it.
1498 (thread_block, thread_through_loop_header): Likewise.
1499 (thread_single_edge, mark_threaded_blocks): Likewise.
1500 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
1501 (register_jump_thread): Do not attempt to thread to a NULL edge.
1502
1503 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1504
1505 * function.c (init_function_start): Call decide_function_section.
1506 * varasm.c (decide_function_section): New function.
1507 (assemble_start_function): When not using
1508 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1509 or first_function_block_is_cold.
1510 * rtl.h (decide_function_section): Declare.
1511
1512 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1513 Jakub Jelinek <jakub@redhat.com>
1514
1515 PR target/48774
1516 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1517 only succeed if req_mode is the same as set_mode.
1518
1519 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1520
1521 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1522 * genemit.c (gen_exp): Handle RETURN.
1523 * emit-rtl.c (verify_rtx_sharing): Likewise.
1524 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1525 * rtl.c (copy_rtx): RETURN is shared.
1526 * rtl.h (enum global_rtl_index): Add GR_RETURN.
1527 (ret_rtx): New.
1528 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1529 * config/s390/s390.c (s390_emit_epilogue): Likewise.
1530 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1531 * config/cris/cris.c (cris_expand_return): Likewise.
1532 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1533 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1534 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1535 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1536 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1537 Likewise.
1538 * config/v850/v850.c (expand_epilogue): Likewise.
1539 * config/bfin/bfin.c (bfin_expand_call): Likewise.
1540 * config/arm/arm.md (epilogue): Likewise.
1541 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1542 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1543 variable to ret_reg.
1544
1545 2011-05-03 Richard Guenther <rguenther@suse.de>
1546
1547 PR lto/48846
1548 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1549 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1550 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1551
1552 2011-05-03 Richard Guenther <rguenther@suse.de>
1553
1554 * c-decl.c (grokdeclarator): Instead of looking at
1555 TREE_OVERFLOW check if the constant fits in the index type.
1556
1557 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1558
1559 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1560 (vec_store_lanes<mode><mode>): Likewise.
1561
1562 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1563
1564 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1565 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1566 convert_optab_index values.
1567 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1568 * genopinit.c (optabs): Initialize the new optabs.
1569 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1570 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1571 (expand_STORE_LANES): New functions.
1572 * tree.h (build_array_type_nelts): Declare.
1573 * tree.c (build_array_type_nelts): New function.
1574 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1575 (vect_model_load_cost): Likewise.
1576 (vect_store_lanes_supported, vect_load_lanes_supported)
1577 (vect_record_strided_load_vectors): Declare.
1578 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1579 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1580 (vect_transform_strided_load): Split out statement recording into...
1581 (vect_record_strided_load_vectors): ...this new function.
1582 * tree-vect-stmts.c (create_vector_array, read_vector_array)
1583 (write_vector_array, create_array_ref): New functions.
1584 (vect_model_store_cost): Add store_lanes_p argument.
1585 (vect_model_load_cost): Add load_lanes_p argument.
1586 (vectorizable_store): Try to use store-lanes functions for
1587 interleaved stores.
1588 (vectorizable_load): Likewise load-lanes and loads.
1589 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1590 to vect_model_store_cost.
1591 (vect_build_slp_tree): Likewise vect_model_load_cost.
1592
1593 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1594
1595 * hooks.h (hook_bool_mode_uhwi_false): Declare.
1596 * hooks.c (hook_bool_mode_uhwi_false): New function.
1597 * target.def (array_mode_supported_p): New hook.
1598 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1599 * doc/tm.texi: Regenerate.
1600 * stor-layout.c (mode_for_array): New function.
1601 (layout_type): Use it.
1602 * config/arm/arm.c (arm_array_mode_supported_p): New function.
1603 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1604
1605 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
1606
1607 PR target/48723
1608 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1609 for -fstack-check if the size to allocate is negative.
1610
1611 2011-05-02 Lawrence Crowl <crowl@google.com>
1612
1613 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1614 (timevar_cond_start): New for starting a timer only when it is not
1615 already running.
1616 (timevar_cond_stop): New for stopping a timer when it was not already
1617 running.
1618
1619 * timevar.c (timevar_stop): Enable start/stop timers to start again.
1620 (timevar_cond_start): New as above.
1621 (timevar_cond_stop): New as above.
1622
1623 * timevar.def: Add start/stop timers for compiler phases,
1624 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1625 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1626 and TV_PHASE_FINALIZE.
1627 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1628 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1629 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1630 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1631 Make unused TV_OVERLOAD into a start/stop timer.
1632
1633 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1634 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1635 to indicate that they are start/stop timers.
1636
1637 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1638 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1639 Move initialization to do_compile.
1640 (do_compile): Add initialization from above.
1641 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1642
1643 * c-decl.c (c_write_global_declarations): Add start/stop of
1644 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1645
1646 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1647 or TV_PARSE_INLINE, as appropriate.
1648 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1649 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1650
1651 2011-05-02 Jason Merrill <jason@redhat.com>
1652
1653 PR c++/40975
1654 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1655
1656 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
1657
1658 PR c/35445
1659 * c-decl.c (finish_decl): Only create a composite if the types are
1660 compatible.
1661
1662 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1663
1664 * config/fr30/fr30-protos.h (Mmode): Don't define.
1665 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
1666 definition where used.
1667 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1668 define. Expand definitions where used.
1669 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1670 Expand definitions where used.
1671 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1672 rx_function_arg, rx_function_arg_advance,
1673 rx_function_arg_boundary): Expand definitions of those macros.
1674 * config/v850/v850-protos.h (Mmode): Don't define. Expand
1675 definition where used.
1676
1677 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1678
1679 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1680 reg<->xmm moves.
1681 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1682 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
1683 with *movv2sf_internal_rex64_avx.
1684 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1685 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1686 Use %v prefix in insn mnemonic to handle TARGET_AVX.
1687 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
1688 "vex" in "prefix" attribute calculation.
1689 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
1690
1691 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
1692
1693 PR target/47951
1694 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1695 inputs match the output.
1696
1697 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
1698
1699 PR target/47955
1700 * config/m68k/m68k.c (m68k_expand_prologue): Set
1701 current_function_static_stack_size.
1702
1703 2011-05-02 Jan Hubicka <jh@suse.cz>
1704
1705 * lto-streamer.c (lto_streamer_cache_insert_1,
1706 lto_streamer_cache_lookup, lto_streamer_cache_create,
1707 lto_streamer_cache_delete): Use pointer map instead of hashtable.
1708 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1709
1710 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1711
1712 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1713 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1714 config/m68k/t-opts: New files.
1715 * config/m68k/m68k-tables.opt: New file (generated).
1716 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1717 extra_options and m68k/t-opts to tmake_file.
1718 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1719 (all_isas): Initialize using m68k-isas.def.
1720 (all_microarchs): Initialize using m68k-microarchs.def.
1721 (m68k_find_selection): Remove.
1722 (m68k_handle_option): Don't assert that global structures are in
1723 use. Use error_at. Access variables via opts pointer. Don't
1724 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
1725 directly for -m68020-40 and -m68020-60.
1726 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1727 m68k_tune_entry here.
1728 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1729 to m68k-opts.h.
1730 (m68k_library_id_string): Remove declaration.
1731 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1732 (m68k_library_id_string): New Variable.
1733 (march=, mcpu=, mtune=): Use Enum and Var.
1734
1735 2011-05-02 Richard Guenther <rguenther@suse.de>
1736
1737 * varasm.c (output_constructor_regular_field): Compute zero-based
1738 index with double-ints. Make sure to ICE instead of producing
1739 wrong code.
1740 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1741 in asserts. Properly use a signed type.
1742
1743 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1744
1745 * config/i386/sse.md (V): New mode iterator.
1746 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
1747 TARGET_SSE2.
1748 (V_256): Rename from AVX256MODE.
1749 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
1750 condition to all users.
1751 (VF1): Ditto.
1752 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
1753 condition to all users.
1754 (VF_128): Make V4SF mode unconditional.
1755 (VF_256): Rename from AVX256MODEF2P.
1756 (VI4F_128): Rename from SSEMODE4S.
1757 (VI8F_128): Rename from SSEMODE2D.
1758 (VI4F_256): Rename from AVX256MODE8P.
1759 (VI8F_256): Rename from AVX256MODE4P.
1760 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1761 (ssescalarmodesuffix): Remove SF and DF modes.
1762 (SSEMODE124): Remove.
1763 (SSEMODE1248): Ditto.
1764 (SSEMODEF2P): Ditto.
1765 (AVXMODEF2P): Ditto.
1766 (AVXMODEFDP): Ditto.
1767 (AVXMODEFSP): Ditto.
1768 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1769 unconditional.
1770 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
1771 unconditional.
1772 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1773 xop_pcmov_<mode>256. Use V mode iterator.
1774
1775 Adjust RTX patterns globally for renamed mode attributes.
1776
1777 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1778
1779 * haifa-sched.c (sched_emit_insn): Emit insn before first
1780 non-scheduled insn. Inform back-end about new insn. Add
1781 new insn to scheduled_insns list.
1782
1783 2011-05-02 Richard Guenther <rguenther@suse.de>
1784
1785 PR tree-optimization/48822
1786 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1787 (process_scc): Indicate which iteration we start.
1788
1789 2011-05-02 Jan Hubicka <jh@suse.cz>
1790
1791 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1792 (lto_section_overrun): New.
1793 * lto-section-out.c (append_block): Rename to ...
1794 (lto_append_block): ... this one; export.
1795 (lto_output_1_stream): Move lto lto-streamer.h
1796 (lto_output_data_stream): Update.
1797 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1798 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1799 functions.
1800
1801 2011-05-02 Richard Guenther <rguenther@suse.de>
1802
1803 * tree.c (tree_code_counts): New global array.
1804 (record_node_allocation_statistics): Count individual tree codes.
1805 (dump_tree_statistics): Dump individual code stats.
1806
1807 2011-05-01 Jan Hubicka <jh@suse.cz>
1808
1809 * ipa-inline.c (caller_growth_limits): Fix thinko when
1810 looking for largest stack frame.
1811 * ipa-inline.h (dump_inline_summary): Declare.
1812 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1813 on stack usage.
1814 (dump_inline_summary): Export.
1815 (debug_inline_summary): Declare as DEBUG_FUNCTION.
1816
1817 2011-05-01 Anatoly Sokolov <aesok@post.ru>
1818
1819 * reginfo.c (memory_move_cost): Change rclass argument type form
1820 'enum reg_class' to reg_class_t.
1821 * reload.h (memory_move_cost): Update prototype.
1822 * postreload.c reload_cse_simplify_set): Change type dclass var to
1823 reg_class_t.
1824 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1825 Update prototype.
1826 (ira_allocate_and_set_costs): Change aclass argument type form
1827 'enum reg_class' to reg_class_t.
1828 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1829 Change aclass argument type to reg_class_t.
1830 (update_conflict_hard_reg_costs): Change type aclass and pref vars
1831 to reg_class_t.
1832 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1833 memory_move_cost call.
1834
1835 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1836 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1837 Change type tmp var to reg_class_t.
1838
1839 2011-04-30 Jan Hubicka <jh@suse.cz>
1840
1841 * ipa-inline.c (can_inline_edge_p): Disregard limits when
1842 inlining into function with flatten attribute.
1843 (want_inline_small_function_p): Be more realistic about inlining
1844 cold calls where callee size grows.
1845
1846 2011-04-30 Jan Hubicka <jh@suse.cz>
1847
1848 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1849 flags.
1850
1851 2011-04-30 Anatoly Sokolov <aesok@post.ru>
1852
1853 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1854 PRINT_OPERAND_PUNCT_VALID_P): Remove.
1855 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1856 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1857 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1858 (print_operand): Rename to...
1859 (sparc_print_operand): ...this. Make static. Adjust
1860 sparc_print_operand function call.
1861 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1862 functions.
1863
1864 2011-04-30 Jan Hubicka <jh@suse.cz>
1865
1866 PR middle-end/48752
1867 * ipa-inline.c (early_inliner): Disable when doing late
1868 addition of function.
1869
1870 2011-04-30 Jakub Jelinek <jakub@redhat.com>
1871
1872 * dwarf2out.c (get_address_mode): New inline.
1873 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1874 if not dwarf_strict emit
1875 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1876 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1877 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
1878 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1879 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1880 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1881 mem_loc_descriptor callers.
1882 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1883 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1884 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1885 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1886 (base_types): New variable.
1887 (get_base_type_offset, calc_base_type_die_sizes,
1888 base_type_for_mode, mark_base_types, base_type_cmp,
1889 move_marked_base_types): New functions.
1890 (calc_die_sizes): Assert that die_offset is 0 or equal to
1891 next_die_offset.
1892 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1893 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
1894 callers. If not dwarf_strict, call mem_loc_descriptor even for
1895 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1896 (gen_subprogram_die): Don't give up on call site parameters
1897 with non-integral or large integral modes. Adjust
1898 mem_loc_descriptor callers.
1899 (prune_unused_types): Call prune_unused_types_mark on base_types
1900 vector entries.
1901 (resolve_addr): Call mark_base_types.
1902 (dwarf2out_finish): Call move_marked_base_types.
1903
1904 PR tree-optimization/48809
1905 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1906 type.
1907 (gen_inbound_check): Don't compute index_expr - range_min in utype
1908 again, instead reuse SSA_NAME initialized in build_arrays.
1909 Remove two useless gsi_for_stmt calls.
1910
1911 2011-04-29 Jeff Law <law@redhat.com>
1912
1913 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1914
1915 2011-04-29 Martin Jambor <mjambor@suse.cz>
1916
1917 * cgraph.h (cgraph_postorder): Remove declaration.
1918 * ipa-utils.h (ipa_free_postorder_info): Declare.
1919 (ipa_reverse_postorder): Likewise.
1920 * cgraphunit.c: Include ipa-utils.h.
1921 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1922 * ipa-inline.c: Include ipa-utils.h.
1923 (ipa_inline): Update call to ipa_reverse_postorder.
1924 * ipa-pure-const.c (propagate_pure_const): Update call to
1925 ipa_reduced_postorder and ipa_print_order. Call
1926 ipa_free_postorder_info to clean up.
1927 (propagate_nothrow): Likewise.
1928 * ipa-reference.c (propagate): Removed a useless call to
1929 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1930 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1931 * ipa.c: Include ipa-utils.h.
1932 (ipa_profile): Update call to ipa_reverse_postorder.
1933 (cgraph_postorder): Moved to...
1934 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1935 (ipa_utils_print_order): Renamed to ipa_print_order.
1936 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1937 comments.
1938 (ipa_free_postorder_info): New function.
1939 * passes.c: Include ipa-utils.h.
1940 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1941 (ipa_write_summaries): Likewise.
1942 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1943 (cgraphunit.o): Likewise.
1944 (ipa.o): Likewise.
1945 (ipa-inline.o): Likewise.
1946
1947 2011-04-29 Jan Hubicka <jh@suse.cz>
1948
1949 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1950 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1951 * ipa-inline.h (clause_t): Turn into unsigned int.
1952 * ipa-inline-analysis.c (add_clause): Do more simplification.
1953 (and_predicates): Shortcut more cases.
1954 (predicates_equal_p): Move forward; check that clauses are properly
1955 ordered.
1956 (or_predicates): Shortcut more cases.
1957 (edge_execution_predicate): Rewrite as...
1958 (set_cond_stmt_execution_predicate): ... this function; handle
1959 __builtin_constant_p.
1960 (set_switch_stmt_execution_predicate): New .
1961 (compute_bb_predicates): New.
1962 (will_be_nonconstant_predicate): Update TODO.
1963 (estimate_function_body_sizes): Use compute_bb_predicates
1964 and free them later, always try to estimate if stmt is constant.
1965 (estimate_time_after_inlining, estimate_size_after_inlining):
1966 Gracefully handle optimized out edges.
1967 (read_predicate): Fix off by one error.
1968
1969 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1970
1971 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1972
1973 2011-04-27 Xinliang David Li <davidxl@google.com>
1974
1975 * tree-profile.c (init_ic_make_global_vars): Set
1976 tls attribute on ic vars.
1977 * coverage.c (coverage_end_function): Initialize
1978 function_list with zero.
1979
1980 2011-04-29 Richard Guenther <rguenther@suse.de>
1981
1982 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1983 for the type of the result.
1984 (fold_builtin_isascii): Likewise.
1985 (fold_builtin_toascii): Use integer_type_node where appropriate.
1986 (fold_builtin_logb): Likewise.
1987 (fold_builtin_frexp): Likewise.
1988 (fold_builtin_strstr): Likewise.
1989 (fold_builtin_strpbrk): Likewise.
1990 (fold_builtin_fputs): Likewise.
1991 (fold_builtin_sprintf): Likewise.
1992 (fold_builtin_snprintf): Likewise.
1993 (fold_builtin_printf): Likewise.
1994 (do_mpfr_remquo): Use a proper type for the assigned constant.
1995 (do_mpfr_lgamma_r): Likewise.
1996 * dwarf2out.c (resolve_one_addr): Use size_int.
1997 * except.c (init_eh): Likewise.
1998 (assign_filter_values): Use integer_type_node for filter values.
1999 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2000 indices.
2001 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2002 for EH region numbers.
2003 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2004 for the shift amount.
2005
2006 2011-04-29 Richard Guenther <rguenther@suse.de>
2007
2008 * expr.h (expand_shift): Rename to ...
2009 (expand_variable_shift): ... this.
2010 (expand_shift): Take a constant shift amount.
2011 * expmed.c (expand_shift): Rename to ...
2012 (expand_variable_shift): ... this.
2013 (expand_shift): New wrapper around expand_variable_shift.
2014 * expr.c (convert_move, emit_group_load_1, emit_group_store,
2015 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2016 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2017 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2018 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2019 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2020 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2021 emit_store_flag_1, emit_store_flag): Likewise.
2022 * builtins.c (expand_builtin_signbit): Likewise.
2023 * calls.c (load_register_parameters): Likewise.
2024 * function.c (assign_parm_setup_block): Likewise.
2025 * lower-subreg.c (resolve_shift_zext): Likewise.
2026 * optabs.c (widen_bswap, expand_abs_nojump,
2027 expand_one_cmpl_abs_nojump, expand_float): Likewise.
2028 * spu/spu.c (spu_expand_extv): Likewise.
2029 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2030
2031 2011-04-29 Richard Guenther <rguenther@suse.de>
2032
2033 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2034 for the remapped region number.
2035 * predict.c (build_predict_expr): Use integer_type_node for the
2036 predict kind.
2037 * fold-const.c (fold_binary_loc): Use integer_type_node for
2038 the shift amount. Use a proper type for the PLUS_EXPR operand.
2039
2040 2011-04-29 Michael Matz <matz@suse.de>
2041
2042 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2043 other trees that just builtins.
2044 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2045
2046 2011-04-29 Richard Guenther <rguenther@suse.de>
2047
2048 * tree-nested.c (get_trampoline_type): Use size_int.
2049 (get_nl_goto_field): Likewise.
2050 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2051 for all indexes.
2052 (lower_eh_constructs_2): Likewise.
2053 (lower_resx): Likewise.
2054 (lower_eh_dispatch): Likewise.
2055 * tree-mudflap.c (mf_build_string): Use size_int.
2056 (mudflap_register_call): Use integer_type_node for the flag.
2057 (mudflap_enqueue_constant): Use size_int.
2058 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2059 instead of rebuilding it.
2060
2061 2011-04-29 Richard Guenther <rguenther@suse.de>
2062
2063 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2064 Handle OBJ_TYPE_REF.
2065 (find_func_aliases_for_call): Use it more consistently.
2066
2067 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
2068
2069 * haifa-sched.c (last_nondebug_scheduled_insn): New.
2070 (rank_for_schedule): Use it.
2071 (schedule_block): Set it.
2072
2073 2011-04-28 David Li <davidxl@google.com>
2074
2075 * tree.c (crc32_string): Use crc32_byte.
2076 (crc32_byte): New function.
2077 * tree.h (crc32_byte): New function.
2078 * gcov.c (read_graph_file): Handle new cfg_cksum.
2079 (read_count_file): Ditto.
2080 * profile.c (instrument_values): Ditto.
2081 (get_exec_counts): Ditto.
2082 (read_profile_edge_counts): Ditto.
2083 (compute_branch_probabilities): Ditto.
2084 (compute_value_histograms): Ditto.
2085 (branch_prob): Ditto.
2086 (end_branch_prob): Ditto.
2087 * coverage.c (read_counts_file): Ditto.
2088 (get_coverage_counts): Ditto.
2089 (tree_coverage_counter_addr): Ditto.
2090 (coverage_checksum_string): Ditto.
2091 (coverage_begin_output): Ditto.
2092 (coverage_end_function): Ditto.
2093 (build_fn_info_type): Ditto.
2094 (build_fn_info_value): Ditto.
2095 * libgcov.c (gcov_exit): Ditto.
2096 * gcov-dump.c (tag_function): Ditto.
2097 (compute_checksum): Remove.
2098
2099 2011-04-29 Alan Modra <amodra@gmail.com>
2100
2101 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2102 unspec plus offset. Tidy macho code.
2103
2104 2011-04-29 Martin Jambor <mjambor@suse.cz>
2105
2106 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2107 node instead of a decl. Update all callers.
2108 * cgraph.h: Update declaration.
2109
2110 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
2111
2112 PR tree-optimization/48765
2113 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2114 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2115 to indicate if loop aware SLP is being used. Scan the statements
2116 and update the vectorization factor according to the type of
2117 vectorization before statement analysis.
2118 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2119 pass it to vect_analyze_loop_operations.
2120 (vectorizable_reduction): Set number of copies to 1 in case of pure
2121 SLP statement.
2122 * tree-vect-stmts.c (vectorizable_conversion,
2123 vectorizable_assignment, vectorizable_shift,
2124 vectorizable_operation, vectorizable_type_demotion,
2125 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2126 Likewise.
2127 (vectorizable_condition): Move the check that it is not SLP
2128 vectorization before the number of copies check.
2129 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2130 to vectorize the loop using SLP.
2131
2132 2011-04-28 Jakub Jelinek <jakub@redhat.com>
2133
2134 PR middle-end/48597
2135 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2136 inline asm.
2137
2138 2011-04-28 Joseph Myers <joseph@codesourcery.com>
2139
2140 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2141 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2142 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2143 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2144 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2145 linux*.h headers.
2146 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2147 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2148 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2149 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2150 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2151 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2152 REG_NAME.
2153 * config/i386/linux.h (REG_NAME): Don't define.
2154 * config/i386/linux64.h (REG_NAME): Don't define.
2155 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2156 Undefine before defining.
2157
2158 2011-04-28 Jan Hubicka <jh@suse.cz>
2159
2160 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2161 nonconstant_names array.
2162 (estimate_function_body_sizes): Build nonconstant_names array; handle
2163 BUILT_IN_CONSTANT_P.
2164
2165 2011-04-28 Richard Guenther <rguenther@suse.de>
2166
2167 PR bootstrap/48804
2168 Revert
2169 2011-04-28 Richard Guenther <rguenther@suse.de>
2170
2171 * tree-ssa-structalias.c (solve_constraints): Build succ graph
2172 as late as possible.
2173
2174 2011-04-28 Richard Guenther <rguenther@suse.de>
2175
2176 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2177 (debug_constraint): Do it here.
2178 (dump_constraints): And here.
2179 (rewrite_constraints): And here.
2180 (dump_constraint_edge): Remove.
2181 (dump_constraint_graph): Rewrite to produce DOT output.
2182 (solve_constraints): Build succ graph as late as possible.
2183 Dump constraint graphs before and after solving.
2184
2185 2011-04-28 Richard Guenther <rguenther@suse.de>
2186
2187 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2188 New function split out from ...
2189 (find_func_aliases): ... here. Call it.
2190 (find_func_aliases_for_call): Likewise.
2191
2192 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2193
2194 * internal-fn.h (internal_fn_name_array): Declare.
2195 (internal_fn_flags_array): Likewise.
2196
2197 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2198
2199 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
2200 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2201 Move from sse.md.
2202 (ssemodefsuffix): Remove.
2203 (ssevecmodesuffix): New mode attribute.
2204 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2205 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2206 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2207 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2208 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2209 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2210 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2211 ssemodesuffix mode attribute.
2212 (float splitters): Use ssevecmodesuffix mode attribute.
2213 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2214 (sseinsmode): Rename from avxvecmode.
2215 (avxsizesuffix): Rename from avxmodesuffix.
2216 (sseintvecmode): Rename from avxpermvecmode.
2217 (ssedoublevecmode): Rename from ssedoublesizemode.
2218 (ssehalfvecmode): Rename from avxhalfvecmode.
2219 (ssescalarmode): Rename from avxscalarmode.
2220 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2221 templates for ssemodesuffix mode attribute.
2222 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2223 mode attribute.
2224
2225 Adjust RTX patterns globally for renamed mode attributes.
2226
2227 2011-04-27 Jan Hubcika <jh@suse.cz>
2228
2229 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2230 * ipa-inline-analysis.c: Include alloc-pool.h.
2231 (edge_predicate_pool): New.
2232 (trye_predicate_p): New function
2233 (false_predicate_p): New function.
2234 (add_clause): Sanity check that false clauses are "optimized";
2235 never add clauses to predicate that is already known to be false.
2236 (and_predicate): Use flase_predicate_p.
2237 (evaulate_predicate): Rename to ...
2238 (evaluate_predicate): ... this one; update all callers; assert
2239 that false is not listed among possible truths.
2240 (dump_predicate): Use true_predicate_p.
2241 (account_size_time): Use false_predicate_p.
2242 (evaulate_conditions_for_edge): Rename to ...
2243 (evaluate_conditions_for_edge) ... this one.
2244 (edge_set_predicate): New function.
2245 (inline_edge_duplication_hook): Duplicate edge predicates.
2246 (inline_edge_removal_hook): Free edge predicates.
2247 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2248 (dump_inline_summary): Update.
2249 (estimate_function_body_sizes): Set edge predicates.
2250 (estimate_calls_size_and_time): Handle predicates.
2251 (estimate_callee_size_and_time): Update.
2252 (remap_predicate): Add toplev_predicate; update comment.
2253 (remap_edge_predicates): New function.
2254 (inline_merge_summary): Compute toplev predicate; update.
2255 (read_predicate): New function.
2256 (read_inline_edge_summary): Use it.
2257 (inline_read_section): Likewise.
2258 (write_predicate): New function.
2259 (write_inline_edge_summary): Use it.
2260 (inline_write_summary): Likewise.
2261 (inline_free_summary): Free alloc pool and edge summary vec.
2262
2263 2011-04-27 Richard Guenther <rguenther@suse.de>
2264
2265 * tree-ssa-structalias.c (changed_count): Remove.
2266 (changed): Use a bitmap.
2267 (unify_nodes): Adjust.
2268 (do_sd_constraint): Likewise.
2269 (do_ds_constraint): Likewise.
2270 (do_complex_constraint): Likewise.
2271 (solve_graph): Likewise.
2272
2273 2011-04-27 Jan Hubicka <jh@suse.cz>
2274
2275 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2276
2277 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2278
2279 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2280 (avx_vperm2f128_*_operand): Ditto.
2281 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2282 Use avx_vpermilp_parallel in insn condition.
2283 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2284 Use avx_vperm2f128_parallel in insn condition.
2285
2286 2011-04-27 Richard Guenther <rguenther@suse.de>
2287
2288 * Makefile.in (tree-ssa-structalias.o): Remove
2289 gt-tree-ssa-structalias.h dependency.
2290 (GTFILES): Remove tree-ssa-structalias.c.
2291 * tree.c (allocate_decl_uid): New function.
2292 (make_node_stat): Use it.
2293 (copy_node_stat): Likewise.
2294 * tree.h (allocate_decl_uid): Declare.
2295 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2296 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2297 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2298 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2299 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2300 (struct heapvar_map): Likewise.
2301 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2302 heapvar_insert): Likewise.
2303 (make_heapvar_for): Rename to ...
2304 (make_heapvar): ... this. Simplify.
2305 (fake_var_decl_obstack): New global var.
2306 (build_fake_var_decl): New function.
2307 (make_constraint_from_heapvar): Adjust.
2308 (handle_lhs_call): Likewise.
2309 (create_function_info_for): Likewise.
2310 (intra_create_variable_infos): Likewise.
2311 (init_alias_vars): Allocate fake_var_decl_obstack.
2312 (init_alias_heapvars, delete_alias_heapvars): Remove.
2313 (compute_points_to_sets): Do not call init_alias_heapvars.
2314 (ipa_pta_execute): Likewise.
2315 (delete_points_to_sets): Free fake_var_decl_obstack.
2316
2317 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2318
2319 * config/spu/divmovti4.c (union qword_UTItype): New data type.
2320 (si_from_UTItype, si_to_UTItype): New functions.
2321 (__udivmodti4): Use them to implement type-punning.
2322 * config/spu/multi3.c (union qword_TItype): New data type.
2323 (si_from_TItype, si_to_TItype): New functions.
2324 (__multi3): Use them to implement type-punning.
2325
2326 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2327
2328 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2329
2330 2011-04-27 Jan Hubicka <jh@suse.cz>
2331
2332 * ipa-prop.c (function_insertion_hook_holder): New holder.
2333 (ipa_add_new_function): New function.
2334 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2335 Register/deregister holder.
2336
2337 2011-04-27 Richard Guenther <rguenther@suse.de>
2338
2339 PR tree-optimization/48772
2340 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2341
2342 2011-04-27 Richard Guenther <rguenther@suse.de>
2343
2344 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2345 TARGET_MEM_REF handling.
2346
2347 2011-04-27 Nick Clifton <nickc@redhat.com>
2348
2349 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2350 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2351 (REG_CLASS_NAMES): Likewise.
2352 (REG_CLASS_CONTENTS): Likewise.
2353 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2354 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2355 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
2356 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
2357 (EVEN_REGS): New macro. Alias for QUAD_REGS.
2358 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2359 duplicate register classes.
2360 (frv_class_likely_spilled_p): Likewise.
2361 (frv_register_move_cost): Likewise.
2362
2363 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2364 end of the regno_reg_class array.
2365
2366 2011-04-27 Jakub Jelinek <jakub@redhat.com>
2367
2368 PR c/48742
2369 * c-typeck.c (build_binary_op): Don't wrap arguments if
2370 int_operands is true.
2371
2372 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
2373
2374 PR target/48767
2375 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2376 targetm.calls.must_pass_in_stack for void type.
2377
2378 2011-04-26 Jan Hubicka <jh@suse.cz>
2379
2380 * cgraphbuild.c (build_cgraph_edges): Update call
2381 of cgraph_create_edge and cgraph_create_indirect_edge.
2382 * cgraph.c (cgraph_create_edge_including_clones,
2383 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2384 cgraph_update_edges_for_call_stmt_node): Do not take nest
2385 argument; do not initialize call_stmt_size/time.
2386 (dump_cgraph_node): Do not dump nest.
2387 (cgraph_clone_edge): Do not take loop_nest argument;
2388 do not propagate it; do not clone call_stmt_size/time.
2389 (cgraph_clone_node): Likewise.
2390 (cgraph_create_virtual_clone): Update.
2391 * cgraph.h (struct cgraph_edge): Remove
2392 call_stmt_size/call_stmt_time/loop_nest.
2393 (cgraph_create_edge, cgraph_create_indirect_edge,
2394 cgraph_create_edge_including_clones, cgraph_clone_node): Update
2395 prototype.
2396 * tree-emutls.c (gen_emutls_addr): Update.
2397 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2398 loop_nest; handle indirect calls, too.
2399 (clone_inlined_nodes): Do not care about updating inline summaries.
2400 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2401 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2402 stream call_stmt_size/call_stmt_time/loop_nest.
2403 * ipa-inline.c (edge_badness): Update.
2404 (ipa_inline): dump summaries after inlining.
2405 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2406 New.
2407 (inline_edge_summary): New function.
2408 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2409 (inline_edge_removal_hook): Handle edge summaries.
2410 (inline_edge_duplication_hook): New hook.
2411 (inline_summary_alloc): Alloc hooks.
2412 (initialize_growth_caches): Do not register removal hooks.
2413 (free_growth_caches); Do not free removal hook.
2414 (dump_inline_edge_summary): New function.
2415 (dump_inline_summary): Use it.
2416 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2417 (inline_update_callee_summaries): New function.
2418 (inline_merge_summary): Use it.
2419 (do_estimate_edge_time, do_estimate_edge_growth): Update.
2420 (read_inline_edge_summary): New function.
2421 (inline_read_section): Use it.
2422 (write_inline_edge_summary): New function.
2423 (inline_write_summary): Use it.
2424 (inline_free_summary): Free edge new holders.
2425 * tree-inline.c (copy_bb): Update.
2426
2427 2011-04-26 Jason Merrill <jason@redhat.com>
2428
2429 * tree-eh.c (lower_try_finally_switch): Create the label along with
2430 the CASE_LABEL_EXPR.
2431
2432 2011-04-26 David S. Miller <davem@davemloft.net>
2433 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2434
2435 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2436 * configure: Regenerate.
2437
2438 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2439
2440 PR target/48258
2441 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2442 reduction.
2443 (VEC_reduc): New code iterator and splitters for vector reduction.
2444 (VEC_reduc_name): Ditto.
2445 (VEC_reduc_rtx): Ditto.
2446 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2447 (reduc_<VEC_reduc_name>_v4sf): Ditto.
2448
2449 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2450 support for extracting SF on VSX.
2451
2452 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2453 generating xscvspdp.
2454 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2455 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2456 double add, minimum, maximum vector reduction.
2457 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2458 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2459 optimize double vector reduction.
2460 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2461
2462 2011-04-26 Joseph Myers <joseph@codesourcery.com>
2463
2464 * config/fr30/fr30.h (inhibit_libc): Don't define.
2465 * config/m32r/m32r-protos.h: Correct comment.
2466 * config/v850/v850.h (GHS_default_section_names,
2467 GHS_current_section_names): Use tree, not union tree_node *.
2468
2469 2011-04-26 Xinliang David Li <davidxl@google.com>
2470
2471 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2472 * c-family/c-opts.c (c_common_handle_option): Set
2473 warn_maybe_uninitialized.
2474 * opts.c (common_handle_option): Ditto.
2475 * common.opt: New option.
2476 * tree-ssa.c (warn_uninit): Add one more parameter.
2477 (warn_uninitialized_var): Pass warning code.
2478 * tree-flow.h: Interface change.
2479
2480
2481 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2482
2483 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2484 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2485 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2486
2487 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2488
2489 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2490 * config/mips/mips.opt (mmips-tfile): Remove.
2491
2492 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2493 mips-tdump reference to ...
2494 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
2495 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2496 reference by Tru64 UNIX.
2497
2498 2011-04-26 Jakub Jelinek <jakub@redhat.com>
2499
2500 PR debug/48768
2501 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2502 is error_mark_node, set value to NULL.
2503
2504 PR tree-optimization/48734
2505 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2506 if return value from maybe_fold_*_comparsions isn't something
2507 the code is prepared to handle.
2508
2509 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
2510
2511 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2512 mode check.
2513 (ext_QIreg_nomode_operands): Remove.
2514 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2515 (*andsi_1): Ditto.
2516 (*andhi_1): Ditto.
2517
2518 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
2519
2520 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2521
2522 2011-04-26 Richard Guenther <rguenther@suse.de>
2523
2524 * c-typeck.c (build_unary_op): Do not expand array-refs via
2525 pointer arithmetic. Only adjust qualifiers for function types.
2526
2527 2011-04-26 Richard Guenther <rguenther@suse.de>
2528
2529 PR middle-end/48694
2530 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2531 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2532 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
2533 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2534
2535 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2536
2537 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2538 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2539 * doc/extend.texi: Document __underlying_type.
2540
2541 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
2542
2543 * config/rs6000/titan.md (automata_option "progress"): Remove.
2544
2545 2011-04-25 Jeff Law <law@redhat.com>
2546
2547 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2548
2549 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2550
2551 * system.h (ENUM_BITFIELD): Remove.
2552
2553 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
2554 Eric Botcazou <ebotcazou@adacore.com>
2555
2556 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2557 for STORE_FLAG_VALUE==-1 case.
2558
2559 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
2560
2561 PR target/43804
2562 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2563 LEGITIMATE_PIC_OPERAND_P.
2564
2565 2011-04-24 Jan Hubicka <jh@suse.cz>
2566
2567 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2568 WPA hack.
2569 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2570 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2571 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2572 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2573 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2574 Sanity check predicate length.
2575 (remap_predicate): Likewise; sanity check jump functions.
2576 (inline_read_section, inline_write_summary): Sanity check
2577 predicate length.
2578
2579 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2580
2581 PR other/48748
2582 * doc/extend.texi (Type Traits): Document __is_standard_layout,
2583 __is_literal_type, and __is_trivial; update throughout about
2584 possibly cv-qualified void types.
2585
2586 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
2587
2588 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2589 testsuite and make it version agnostic.
2590
2591 2011-04-22 Jan Hubicka <jh@suse.cz>
2592
2593 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2594
2595 2011-04-23 Jakub Jelinek <jakub@redhat.com>
2596
2597 PR c/48685
2598 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2599 to VOID_TYPE even around MODIFY_EXPR.
2600
2601 2011-04-22 Mike Stump <mikestump@comcast.net>
2602
2603 * gensupport.c (read_md_rtx): Fix typo in comment.
2604 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2605 comment.
2606
2607 2011-04-22 Jan Hubicka <jh@suse.cz>
2608
2609 * gengtype.c (open_base_files): Add ipa-inline.h include.
2610 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2611 ipa-prop.c; update all uses.
2612 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2613 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2614 merge summary of inlined function into former caller.
2615 * ipa-inline.c (max_benefit): Remove.
2616 (edge_badness): Compensate for removal of benefits.
2617 (update_caller_keys): Use
2618 reset_node_growth_cache/reset_edge_growth_cache.
2619 (update_callee_keys): Likewise.
2620 (update_all_callee_keys): Likewise.
2621 (inline_small_functions): Do not collect max_benefit; do not reset
2622 estimated_growth; call free_growth_caches and initialize_growth_caches.
2623 * ipa-inline.h (struct condition, type clause_t, struct predicate,
2624 struct size_time_entry): New structures.
2625 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2626 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2627 and estimated_growth.
2628 (edge_growth_cache_entry): New structure.
2629 (node_growth_cache, edge_growth_cache): New global vars.
2630 (estimate_growth): Turn into inline.
2631 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2632 initialize_growth_caches, free_growth_caches): Declare.
2633 (estimate_edge_growth): Rewrite.
2634 (estimate_edge_time): Implement as inline cache lookup.
2635 (reset_node_growth_cache, reset_edge_growth_cache): New inline
2636 functions.
2637 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2638 (NUM_CONDITIONS): New constant.
2639 (predicate_conditions): New enum.
2640 (IS_NOT_CONSTANT): New constant.
2641 (edge_removal_hook_holder): New var.
2642 (node_growth_cache, edge_growth_cache): New global vars.
2643 (true_predicate, single_cond_predicate, false_predicate,
2644 not_inlined_predicate, add_condition, add_clause, and_predicates,
2645 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2646 dump_clause, dump_predicate, account_size_time,
2647 evaulate_conditions_for_edge): New functions.
2648 (inline_summary_alloc): Move to heap.
2649 (inline_node_removal_hook): Clear condition and entry vectors.
2650 (inline_edge_removal_hook): New function.
2651 (initialize_growth_caches, free_growth_caches): New function.
2652 (dump_inline_summary): Update.
2653 (edge_execution_predicate): New function.
2654 (will_be_nonconstant_predicate): New function.
2655 (estimate_function_body_sizes): Compute BB and constantness predicates.
2656 (compute_inline_parameters): Do not clear estimated_growth.
2657 (estimate_edge_size_and_time): New function.
2658 (estimate_calls_size_and_time): New function.
2659 (estimate_callee_size_and_time): New function.
2660 (remap_predicate): New function.
2661 (inline_merge_summary): New function.
2662 (do_estimate_edge_time): New function based on...
2663 (estimate_edge_time): ... this one.
2664 (do_estimate_edge_growth): New function.
2665 (do_estimate_growth): New function based on....
2666 (estimate_growth): ... this one.
2667 (inline_analyze_function): Analyze after deciding on jump functions.
2668 (inline_read_section): New function.
2669 (inline_read_summary): Use it.
2670 (inline_write_summary): Write all the new data.
2671 * ipa-prop.c (ipa_get_param_decl_index): Export.
2672 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2673 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2674 Declare.
2675 (ipa_get_lattice): Move here from ipa-cp.c
2676 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2677 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2678 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2679 cgraph_edge_inlinable_p): Remove.
2680 * cgraphunit.c: Include ipainline.h
2681 (cgraph_process_new_functions): Update call of
2682 compute_inline_parameters.
2683
2684 2011-04-22 Richard Guenther <rguenther@suse.de>
2685
2686 * tree.c (build_int_cst): Properly create canonicalized integer
2687 constants.
2688 (build_int_cst_type): Remove scary comments.
2689
2690 2011-04-22 Xinliang David Li <davidxl@google.com>
2691
2692 * toplev.c (process_options): Enable -Werror=coverage-mismatch
2693 by default when -Wno-error is not specified.
2694 * opts-global.c (decode_options): Remove call to
2695 control_warning_options.
2696
2697 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2698
2699 PR tree-optimization/48717
2700 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2701 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2702
2703 2011-04-22 Joseph Myers <joseph@codesourcery.com>
2704
2705 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
2706 definition where used.
2707
2708 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2709
2710 PR c/48716
2711 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2712 TREE_STATIC variables declared inside of some OpenMP construct.
2713
2714 2011-04-22 Martin Jambor <mjambor@suse.cz>
2715
2716 PR middle-end/48585
2717 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2718
2719 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
2720
2721 PR c/36750
2722 * c-typeck.c (pop_init_level): Do not warn about initializing
2723 with ` = {0}'.
2724
2725 2011-04-22 Alan Modra <amodra@gmail.com>
2726
2727 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2728 when returning call_cookie.
2729 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2730 pointers, to functions with no more vector args than the current
2731 function, and some non-local calls for ABI_V4.
2732 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2733 sibcall_nonlocal_aix64): Combine to ..
2734 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
2735 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2736 (sibcall_value_nonlocal_aix<mode>): ..likewise.
2737 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2738 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
2739 operand.
2740 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2741 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2742 sibcall_value_symbolic_64): Delete.
2743
2744 2011-04-21 Xinliang David Li <davidxl@google.com>
2745
2746 * cgraph.h: Remove pid.
2747 * cgraph.c: Remove pid.
2748 * value-prof.c (init_node_map): New function.
2749 (del_node_map): New function.
2750 (find_func_by_funcdef_no): New function.
2751 (gimple_ic_transform): Call new function.
2752 * cgraphunit.c (cgraph_finalize_function): Remove pid.
2753 * function.c (get_last_funcdef_no): New function.
2754 * function.h (get_last_funcdef_no): New function.
2755 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2756 to libgcov function.
2757 (tree-profiling): Call node map init and delete function.
2758
2759 2011-04-21 Ian Lance Taylor <iant@google.com>
2760
2761 * godump.c (go_format_type): Use exported Go name for anonymous
2762 field name.
2763
2764 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2765
2766 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2767 Call builtin_function_type_list instead of builtin_function_type.
2768 (UNARY, BINARY, TRINARY, QUAD): Likewise.
2769
2770 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2771
2772 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2773 build_function_type_list instead of build_function_type.
2774 Delete variable `endlink'.
2775
2776 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2777
2778 * config/s390/s390.c (s390_init_builtins): Call
2779 build_function_type_list instead of build_function_type.
2780
2781 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2782
2783 * config/ia64/ia64.c (ia64_init_builtins): Call
2784 build_function_type_list instead of builtin_function_type.
2785
2786 2011-04-21 Easwaran Raman <eraman@google.com>
2787
2788 * cfgexpand.c (stack_var): Remove OFFSET...
2789 (add_stack_var): ...and its reference here...
2790 (expand_stack_vars): ...and here.
2791 (stack_var_cmp): Sort by descending order of size.
2792 (partition_stack_vars): Change heuristic.
2793 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2794 (dump_stack_var_partition): Add newline after each partition.
2795
2796 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
2797 Jeff Law <law@redhat.com>
2798
2799 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2800 * gengtype.c (matching_file_name_substitute): Likewise.
2801
2802 2011-04-21 Richard Guenther <rguenther@suse.de>
2803
2804 PR lto/48703
2805 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2806
2807 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2808
2809 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2810
2811 2011-04-21 Richard Guenther <rguenther@suse.de>
2812
2813 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2814 file name.
2815
2816 2011-04-21 Richard Guenther <rguenther@suse.de>
2817
2818 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2819 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2820 Use DECL_P, not SSA_VAR_P.
2821 (ptr_derefs_may_alias_p): Likewise.
2822 (ptr_deref_may_alias_ref_p_1): Likewise.
2823 (decl_refs_may_alias_p): Likewise.
2824 (refs_may_alias_p_1): Likewise.
2825 (ref_maybe_used_by_call_p_1): Likewise.
2826 (call_may_clobber_ref_p_1): Likewise.
2827 (indirect_ref_may_alias_decl_p): Assume indirect refrences
2828 are either MEM_REF or TARGET_MEM_REF.
2829 (indirect_refs_may_alias_p): Likewise.
2830 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2831 for MEM_EXPR of indirect calls.
2832
2833 2011-04-21 Tristan Gingold <gingold@adacore.com>
2834
2835 * vmsdbgout.c (write_srccorr): Compute file length from the string.
2836 (dst_file_info_struct): Remove flen field.
2837 (lookup_filename): Remove code that set flen field.
2838
2839 2011-04-21 Tristan Gingold <gingold@adacore.com>
2840
2841 * config/ia64/ia64.c (ia64_start_function): Add a guard.
2842
2843 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
2844
2845 PR target/48708
2846 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2847 vec_extract and vec_concat for non-SSE4_1 targets.
2848
2849 2011-04-21 Richard Guenther <rguenther@suse.de>
2850
2851 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2852 return statements.
2853
2854 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2855
2856 * config/i386/cygming.h (union tree_node, TREE): Don't define or
2857 undefine.
2858 (FILE): Don't undefine.
2859
2860 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2861
2862 * config/alpha/alpha.c (struct machine_function): Use rtx, not
2863 struct rtx_def *.
2864 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2865 struct rtx_def *.
2866 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2867 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2868 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2869 rtx_def *.
2870 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
2871 definitions where used.
2872 * config/microblaze/microblaze.h (struct microblaze_args): Use
2873 rtx, not struct rtx_def *.
2874 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2875 rtx_def *.
2876 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2877 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2878 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2879 not struct rtx_def *.
2880 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2881 struct rtx_def *.
2882 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2883 rtx_def *.
2884 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2885
2886 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2887
2888 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2889 operand_equal_p to compare DR_BASE_ADDRESSes.
2890 (vect_check_interleaving): Likewise.
2891
2892 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2893
2894 PR target/46329
2895 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2896 for all Neon struct constants.
2897
2898 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2899
2900 * target.def (legitimate_constant_p): New hook.
2901 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2902 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2903 * doc/tm.texi: Regenerate.
2904 * hooks.h (hook_bool_mode_rtx_true): Declare.
2905 * hooks.c (hook_bool_mode_rtx_true): Define.
2906 * system.h (LEGITIMATE_CONSTANT_P): Poison.
2907 * calls.c (precompute_register_parameters): Replace uses of
2908 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2909 (emit_library_call_value_1): Likewise.
2910 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2911 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2912 * ira-costs.c (scan_one_insn): Likewise.
2913 * recog.c (general_operand, immediate_operand): Likewise.
2914 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2915 * reload1.c (init_eliminable_invariants): Likewise.
2916
2917 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2918 mode argument.
2919 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2920 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2921 argument.
2922 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2923 * config/alpha/predicates.md (input_operand): Update call to
2924 alpha_legitimate_constant_p.
2925
2926 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2927 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2928 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2929 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2930 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2931 (arm_legitimate_constant_p): New functions.
2932 (arm_cannot_force_const_mem): Make static.
2933
2934 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2935
2936 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2937 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2938 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2939 instead of bfin_legitimate_constant_p.
2940 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2941 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2942
2943 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2944
2945 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2946
2947 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2948 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2949 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2950 (frv_legitimate_constant_p): Make static. Add a mode argument.
2951
2952 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2953 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2954 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2955
2956 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2957 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2958 * config/i386/i386.c (legitimate_constant_p): Rename to...
2959 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2960 argument.
2961 (ix86_cannot_force_const_mem): Update accordingly.
2962 (ix86_legitimate_address_p): Likewise.
2963 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2964 * config/i386/i386.md: Update commentary.
2965
2966 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2967 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2968 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2969 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2970
2971 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2972
2973 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2974 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2975 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2976 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2977
2978 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2979 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2980 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2981
2982 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2983 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2984 (m32r_legitimate_constant_p): New function.
2985
2986 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2987 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2988 LEGITIMATE_CONSTANT_P.
2989 (LEGITIMATE_CONSTANT_P): Delete.
2990 * config/m68k/m68k.c (m68k_expand_prologue): Call
2991 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2992 (m68k_legitimate_constant_p): New function.
2993 * config/m68k/m68k.md: Update comments.
2994
2995 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2996 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2997 (mcore_legitimate_constant_p): New function.
2998
2999 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3000 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3001 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3002 Add a mode argument.
3003 (mep_legitimate_address): Update accordingly.
3004 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3005
3006 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3007 Delete.
3008 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3009 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3010 static. Check OP's mode for VOIDmode.
3011 (microblaze_legitimate_constant_p): New function.
3012 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3013
3014 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3015 * config/mips/mips.c (mips_legitimate_constant_p): New function.
3016 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3017 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3018 * config/mips/predicates.md: Update comments.
3019
3020 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3021 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3022 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3023 (mmix_legitimate_constant_p): Make static, return a bool, and take
3024 a mode argument.
3025 (mmix_print_operand_address): Update accordingly.
3026
3027 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3028 Delete.
3029 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3030 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3031 static. Add a mode argument.
3032 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3033
3034 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3035
3036 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3037 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3038 (pa_legitimate_constant_p): New function.
3039
3040 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3041
3042 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3043 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3044 (pdp11_legitimate_constant_p): New function.
3045
3046 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3047 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3048 (rs6000_legitimate_constant_p): New function.
3049
3050 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3051 (rx_legitimate_constant_p): ...this.
3052 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3053 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3054 (rx_legitimate_constant_p): ...this.
3055 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3056 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3057
3058 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3059 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3060 * config/s390/s390.c (legitimate_constant_p): Rename to...
3061 (s390_legitimate_constant_p): ...this. Make static, return a bool,
3062 and add a mode argument.
3063 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3064
3065 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3066
3067 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3068 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3069 (sh_legitimate_constant_p): New function.
3070
3071 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3072 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3073 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3074 (legitimate_constant_p): Rename to...
3075 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
3076 argument.
3077 (constant_address_p): Update accordingly.
3078
3079 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3080 argument and return a bool.
3081 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3082 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3083 (spu_legitimate_constant_p): Add a mode argument and return a bool.
3084 (spu_rtx_costs): Update accordingly.
3085 * config/spu/predicates.md (vec_imm_operand): Likewise.
3086
3087 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3088
3089 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3090 * config/v850/v850.c (v850_legitimate_constant_p): New function.
3091 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3092
3093 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3094 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3095 * config/vax/vax.c (legitimate_constant_p): Likewise.
3096
3097 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3098 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3099 (xtensa_legitimate_constant_p): New function.
3100
3101 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3102
3103 * target.def (cannot_force_const_mem): Add a mode argument.
3104 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3105 * doc/tm.texi: Regenerate.
3106 * hooks.h (hook_bool_mode_rtx_false): Declare.
3107 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3108 (hook_bool_mode_const_rtx_true): Likewise.
3109 (hook_bool_mode_rtx_false): New function.
3110 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3111 to be non-VOID. Update call to cannot_force_const_mem.
3112 (find_reloads): Update accordingly.
3113 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3114 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3115 argument.
3116 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3117 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3118 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3119 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3120 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3121 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3122 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3123 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3124 (m68k_cannot_force_const_mem): ...this new function.
3125 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3126 argument.
3127 (mips_const_insns, mips_legitimize_const_move): Update calls.
3128 (mips_secondary_reload_class): Likewise.
3129 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3130 (pa_cannot_force_const_mem): ...this new function.
3131 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3132 (rs6000_cannot_force_const_mem): ...this new function.
3133 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3134 argument.
3135 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3136 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3137 to...
3138 (xtensa_cannot_force_const_mem): ...this new function.
3139
3140 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3141
3142 * config/mips/mips.c (mips16_build_function_stub): Call
3143 build_function_type_list instead of build_function_type.
3144 (mips16_build_call_stub): Likewise.
3145
3146 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3147
3148 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3149 instead of build_function_type.
3150
3151 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3152
3153 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3154 instead of build_function_type.
3155
3156 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
3157
3158 PR target/48678
3159 * config/i386/i386.md (insv): Change operand 0 constraint to
3160 "register_operand". Change operand 1 and 2 constraint to
3161 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
3162 * config/i386/sse.md (sse4_1_pinsrb): Export.
3163 (sse2_pinsrw): Ditto.
3164 (sse4_1_pinsrd): Ditto.
3165 (sse4_1_pinsrq): Ditto.
3166 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3167 * config/i386/i386.c (ix86_expand_pinsr): New.
3168
3169 2011-04-20 Easwaran Raman <eraman@google.com>
3170
3171 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3172 containing union type only with -fstrict-aliasing.
3173
3174 2011-04-20 Jim Meyering <meyering@redhat.com>
3175
3176 Remove useless if-before-free tests.
3177 * calls.c (expand_call, save_area): Likewise.
3178 * cfgcleanup.c (try_forward_edges): Likewise.
3179 * collect2.c (collect_execute): Likewise.
3180 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3181 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3182 * coverage.c (coverage_checksum_string): Likewise.
3183 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3184 * cselib.c (cselib_init): Likewise.
3185 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3186 (df_set_clean_cfg): Likewise.
3187 * function.c (free_after_compilation): Likewise.
3188 * gcc.c (do_spec_1, main): Likewise.
3189 * gcov.c (create_file_names): Likewise.
3190 * gensupport.c (identify_predicable_attribute): Likewise.
3191 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3192 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3193 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3194 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3195 * ipa-pure-const.c (local_pure_const): Likewise.
3196 * ipa-reference.c (propagate): Likewise.
3197 * ira-costs.c (free_ira_costs): Likewise.
3198 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3199 * matrix-reorg.c (mat_free): Likewise.
3200 * prefix.c (get_key_value): Likewise.
3201 * profile.c (compute_value_histograms): Likewise.
3202 * reload1.c (free_reg_equiv): Likewise.
3203 * sched-deps.c (free_deps): Likewise.
3204 * sel-sched-ir.c (fence_clear): Likewise.
3205 * sese.c (set_rename, if_region_set_false_region): Likewise.
3206 * tree-data-ref.c (free_rdg): Likewise.
3207 * tree-eh.c (lower_try_finally): Likewise.
3208 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3209 * tree-ssa-live.c (delete_var_map): Likewise.
3210 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3211 * tree-ssa-pre.c (phi_trans_add): Likewise.
3212
3213 2011-04-20 Jakub Jelinek <jakub@redhat.com>
3214
3215 PR tree-optimization/48611
3216 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3217 beyond ERT_MUST_NOT_THROW region.
3218
3219 2011-04-20 Catherine Moore <clm@codesourcery.com>
3220
3221 * config/mips/mips.opt (mfix-24k): New.
3222 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3223 * config/mips/mips.md (length): Increase by 4 for stores if
3224 fixing 24K errata.
3225 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3226 all noreorder if fixing 24K errata.
3227 * doc/invoke.texi: Document mfix-24k.
3228
3229 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
3230
3231 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3232 quad-word modes, reduce to 9-bit index range when above 1016 limit.
3233
3234 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3235
3236 * config/arm/arm.c (arm_gen_constant): Move movw support ....
3237 (const_ok_for_op): ... to here.
3238
3239 2011-04-20 Kai Tietz <ktietz@redhat.com>
3240
3241 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3242 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3243
3244 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
3245
3246 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3247
3248 2011-04-20 Richard Guenther <rguenther@suse.de>
3249
3250 PR tree-optimization/47892
3251 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3252 are if-convertible.
3253
3254 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
3255
3256 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3257
3258 2011-04-20 Tristan Gingold <gingold@adacore.com>
3259
3260 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3261
3262 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
3263
3264 PR target/18145
3265
3266 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3267 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3268 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3269 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3270 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3271
3272 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3273 New prototype.
3274
3275 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3276 (avr_asm_named_section, avr_asm_output_aligned_common,
3277 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3278 New functions to update...
3279 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3280 (avr_asm_init_sections): Overwrite section callbacks for
3281 data_section, bss_section.
3282 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3283 from here to...
3284 (avr_file_end): ...here.
3285
3286 2011-04-20 Richard Guenther <rguenther@suse.de>
3287
3288 PR middle-end/48695
3289 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3290 objects and types here. Adjust for their offset before comparing.
3291
3292 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3293
3294 * tree-vect-stmts.c (vectorizable_store): Only chain one related
3295 statement per copy.
3296
3297 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3298
3299 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3300 (GIMPLE_H): Include $(INTERNAL_FN_H).
3301 (OBJS-common): Add internal-fn.o.
3302 (internal-fn.o): New rule.
3303 * internal-fn.def: New file.
3304 * internal-fn.h: Likewise.
3305 * internal-fn.c: Likewise.
3306 * gimple.h: Include internal-fn.h.
3307 (GF_CALL_INTERNAL): New gf_mask.
3308 (gimple_statement_call): Put fntype into a union with a new
3309 internal_fn field.
3310 (gimple_build_call_internal): Declare.
3311 (gimple_build_call_internal_vec): Likewise.
3312 (gimple_call_same_target_p): Likewise.
3313 (gimple_call_internal_p): New function.
3314 (gimple_call_internal_fn): Likewise.
3315 (gimple_call_fntype): Return null for internal calls.
3316 (gimple_call_set_fntype): Assert that the function is not internal.
3317 (gimple_call_set_fn): Likewise.
3318 (gimple_call_set_fndecl): Likewise.
3319 (gimple_call_set_internal_fn): New function.
3320 (gimple_call_addr_fndecl): Handle null functions.
3321 (gimple_call_return_type): Likewise null types.
3322 * gimple.c (gimple_build_call_internal_1): New function.
3323 (gimple_build_call_internal): Likewise.
3324 (gimple_build_call_internal_vec): Likewise.
3325 (gimple_call_same_target_p): Likewise.
3326 (gimple_call_flags): Handle calls to internal functions.
3327 (gimple_call_fnspec): New function.
3328 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3329 (gimple_has_side_effects): Handle null functions.
3330 (gimple_rhs_has_side_effects): Likewise.
3331 (gimple_call_copy_skip_args): Handle calls to internal functions.
3332 * cfgexpand.c (expand_call_stmt): Likewise.
3333 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3334 * gimple-fold.c (gimple_fold_call): Handle null functions.
3335 (gimple_fold_stmt_to_constant_1): Don't fold
3336 calls to internal functions.
3337 * gimple-low.c (gimple_check_call_args): Handle calls to internal
3338 functions.
3339 * gimple-pretty-print.c (dump_gimple_call): Likewise.
3340 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3341 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3342 (do_warn_unused_result): Likewise.
3343 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3344 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3345 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3346 the target of a call.
3347 (initialize_hash_element): Update accordingly.
3348 (hashable_expr_equal_p): Use gimple_call_same_target_p.
3349 (iterative_hash_hashable_expr): Handle calls to internal functions.
3350 (print_expr_hash_elt): Likewise.
3351 * tree-ssa-pre.c (can_value_number_call): Likewise.
3352 (eliminate): Handle null functions.
3353 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3354 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3355 (find_func_aliases): Likewise.
3356 * value-prof.c (gimple_ic_transform): Likewise.
3357 (gimple_indirect_call_to_profile): Likewise.
3358 * lto-streamer-in.c (input_gimple_stmt): Likewise.
3359 * lto-streamer-out.c (output_gimple_stmt): Likewise.
3360
3361 2011-04-19 Jan Hubicka <jh@suse.cz>
3362
3363 * ipa-inline-transform.c (save_inline_function_body): Add comments.
3364 * ipa-inline.c (inline_small_functions): Compute summaries first,
3365 populate heap later.
3366
3367 2011-04-19 Jan Hubicka <jh@suse.cz>
3368
3369 * cgraph.h (save_inline_function_body): Remove.
3370 * ipa-inline-transform.c: New file, broke out of...
3371 * ipa-inline.c: ... this one; Update toplevel comment.
3372 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3373 make global.
3374 (update_noncloned_frequencies): Move to ipa-inline-transform.c
3375 (cgraph_mark_inline_edge): Rename to inline_call; move to
3376 ipa-inline-transform.c.
3377 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3378 move to ipa-inline-transform.c
3379 (recursive_inlining, inline_small_functions, flatten_function,
3380 ipa_inline, inline_always_inline_functions,
3381 early_inline_small_functions): Update.
3382 (inline_transform): Move to ipa-inline-transform.c.
3383 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3384 Declare.
3385 * Makefile.in (ipa-inline-transform.o): New file.
3386 * cgraphunit.c (save_inline_function_body): Move to
3387 ipa-inline-transform.c
3388
3389 2011-04-19 DJ Delorie <dj@redhat.com>
3390
3391 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3392 registers if we already know there aren't any.
3393 (m32c_emit_epilogue): Don't emit a barrier here.
3394 (m32c_emit_eh_epilogue): Likewise.
3395 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3396 operands at expand time.
3397 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3398 int" wchar type.
3399 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3400 duplicates. Provide aliases instead.
3401 * config/m32c/prologue.md (eh_return): Emit a barrier here.
3402 (eh_epilogue): Add a "(return)" here as a hint to other parts of
3403 the compiler.
3404
3405 2011-04-19 Anatoly Sokolov <aesok@post.ru>
3406
3407 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3408 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3409 (general_or_i64_p, sparc_register_move_cost): New function.
3410
3411 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3412
3413 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3414 Add lynx, mipssde. Sort table.
3415
3416 2011-04-19 Xinliang David Li <davidxl@google.com>
3417
3418 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3419 not negative.
3420
3421 2011-04-19 Jakub Jelinek <jakub@redhat.com>
3422
3423 PR target/48678
3424 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3425 is a SUBREG with non-MODE_INT mode inside of it.
3426
3427 2011-04-19 Martin Jambor <mjambor@suse.cz>
3428
3429 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3430 also according to actual contants.
3431 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3432 (gimple_fold_call): Use it.
3433 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3434
3435 2011-04-19 Martin Jambor <mjambor@suse.cz>
3436
3437 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3438 non-pointer assignments.
3439
3440 2011-04-19 Martin Jambor <mjambor@suse.cz>
3441
3442 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3443 account anc_offset and otr_type from the indirect edge info.
3444 * ipa-prop.c (get_ancestor_addr_info): New function.
3445 (compute_complex_ancestor_jump_func): Assignment analysis moved to
3446 get_ancestor_addr_info, call it.
3447 (ipa_note_param_call): Do not initialize information about polymorphic
3448 calls, return the indirect call graph edge. Remove the last
3449 parameter, adjust all callers.
3450 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3451 parameters. Initialize polymorphic information in the indirect edge.
3452
3453 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3454
3455 PR lto/48148
3456 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3457 the types if they have different enumeration identifiers.
3458
3459 2011-04-19 Jan Hubicka <jh@suse.cz>
3460
3461 * cgraph.h (cgraph_optimize_for_size_p): Declare.
3462 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3463 * predict.c (cgraph_optimize_for_size_p): Break out from ...
3464 (optimize_function_for_size_p) ... here.
3465
3466 2011-04-19 Richard Guenther <rguenther@suse.de>
3467
3468 PR lto/48207
3469 * tree.c (free_lang_data): Do not reset the decl-assembler-name
3470 langhook.
3471
3472 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3473
3474 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3475 if DECL_NO_INLINE_WARNING_P is set on the function.
3476
3477 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
3478
3479 PR fortran/47976
3480 * reload1.c (inc_for_reload): Return void. All callers changed.
3481 (emit_input_reload_insns): Don't try to delete previous output
3482 reloads to a register, or record spill_reg_store for autoincs.
3483
3484 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
3485
3486 * gengtype.h: Updated copyright year.
3487 (struct input_file_st): Add inpisplugin field.
3488 (type_fileloc): New function.
3489 * gengtype.c
3490 (write_typed_struct_alloc_def): Add gcc_assert.
3491 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3492 (write_typed_alloc_defns): Don't output for plugin files.
3493 (input_file_by_name): Clear inpisplugin field.
3494 (main): Set inpisplugin field for plugin files.
3495
3496 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
3497
3498 * gengtype-state.c (string_eq): New.
3499 (read_state): Use string_eq instead of strcmp when creating the
3500 state_ident_tab.
3501
3502 2011-04-19 Wei Guozhi <carrot@google.com>
3503
3504 PR target/47855
3505 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3506 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3507 linkage.
3508 * config/arm/constraints.md (Uu): New constraint.
3509 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3510
3511 2011-04-19 Tristan Gingold <gingold@adacore.com>
3512
3513 * config.gcc (-*-*-*vms): Added.
3514 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3515 definitions moved.
3516 * config/vms/vms-ld.c: New file.
3517 * config/vms/vms-ar.c: New file.
3518 * config/vms/t-vmsnative: New file.
3519
3520 2011-04-18 Xinliang David Li <davidxl@google.com>
3521
3522 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3523
3524 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3525
3526 PR middle-end/48661
3527 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3528 if TREE_TYPE (v) is non-NULL.
3529
3530 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3531 gimple_get_virt_mehtod_for_binfo.
3532 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3533 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3534 callers.
3535 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3536
3537 2011-04-18 Michael Matz <matz@suse.de>
3538 Steve Ellcey <sje@cup.hp.com>
3539
3540 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3541 use its mode as source mode if it isn't VOIDmode.
3542
3543 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
3544
3545 * doc/passes.texi: Fill crossref nodes.
3546
3547 2011-04-18 Jim Meyering <meyering@redhat.com>
3548
3549 Fix doubled-word typos in comments and strings
3550 * config/alpha/vms-unwind.h: s/for for/for/
3551 * config/arm/unwind-arm.h: Likewise.
3552 * config/microblaze/microblaze.c: Likewise.
3553 * config/sh/constraints.md: s/in in/in/
3554 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3555
3556 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
3557
3558 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3559 (AVX_FLOAT_MODE_P): Ditto.
3560 (AVX128_VEC_FLOAT_MODE_P): Ditto.
3561 (AVX256_VEC_FLOAT_MODE_P): Ditto.
3562 (AVX_VEC_FLOAT_MODE_P): Ditto.
3563 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3564 (UNSPEC_MASKSTORE): Ditto.
3565 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3566 Merge from <sse>_movmsk<ssemodesuffix> and
3567 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
3568 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
3569 iterator.
3570 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3571 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3572 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3573
3574 2011-04-18 Jan Hubicka <jh@suse.cz>
3575
3576 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3577
3578 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3579 (want_inline_function_called_once_p): Break out the logic from
3580 ipa_inline.
3581 (edge_badness): Ensure that profile is not misupdated.
3582 (lookup_recursive_calls): Prioritize by call frequencies.
3583 (inline_small_functions): Move program size estimates here;
3584 actually process whole queue even when unit growth has been
3585 met. (to properly compute inline_failed reasons and for the
3586 case unit size decrease.) Revisit comments on recursive inlining.
3587 (ipa_inline): Remove unit summary code; first inline hot calls
3588 of functions called once, cold calls next.
3589 (order, nnodes): Remove unused variables.
3590 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3591 (GTFILES): Remove ipa-inline.c
3592 * sel-sched.c (fill_insns): Silence uninitialized var warning.
3593
3594 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3595
3596 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3597
3598 2011-04-18 Jie Zhang <jie@codesourcery.com>
3599 Richard Earnshaw <rearnsha@arm.com>
3600
3601 * arm.c (neon_builtin_type_bits): Remove.
3602 (typedef enum neon_builtin_mode): New.
3603 (T_MAX): Don't define.
3604 (typedef enum neon_builtin_datum): Remove bits, codes[],
3605 num_vars and base_fcode. Add mode, code and fcode.
3606 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3607 VAR10): Change accordingly.
3608 (neon_builtin_data[]): Change accordingly
3609 (arm_init_neon_builtins): Change accordingly.
3610 (neon_builtin_compare): Remove.
3611 (locate_neon_builtin_icode): Remove.
3612 (arm_expand_neon_builtin): Change accordingly.
3613
3614 * arm.h (enum arm_builtins): Move to ...
3615 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3616
3617 * arm.c (arm_builtin_decl): Declare.
3618 (TARGET_BUILTIN_DECL): Define.
3619 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3620 (arm_builtin_decls[]): New.
3621 (arm_init_neon_builtins): Store builtin declarations in
3622 arm_builtin_decls[].
3623 (arm_init_tls_builtins): Likewise.
3624 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
3625 (arm_builtin_decl): New.
3626
3627 2011-04-18 Richard Guenther <rguenther@suse.de>
3628
3629 * tree.c (upper_bound_in_type): Build properly canonicalized
3630 INTEGER_CSTs.
3631 (lower_bound_in_type): Likewise.
3632
3633 2011-04-18 Richard Guenther <rguenther@suse.de>
3634
3635 * gimple.h (gimple_call_addr_fndecl): New function.
3636 (gimple_call_fndecl): Use it.
3637 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3638 for direct calls.
3639 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3640 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3641
3642 2011-04-18 Richard Guenther <rguenther@suse.de>
3643
3644 PR middle-end/48650
3645 * tree.c (build_string): STRING_CST is now derived from tree_typed.
3646
3647 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3648
3649 PR lto/48492
3650 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3651 DECL_IN_CONSTANT_POOL without RTL.
3652
3653 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
3654 Ira Rosen <ira.rosen@linaro.org>
3655
3656 PR target/48252
3657 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3658 to match neon_vzip/vuzp/vtrn_internal.
3659 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3660 outputs explicitly dependent on both inputs.
3661 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3662
3663 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3664
3665 PR tree-optimization/48616
3666 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3667 whether the shift is by scalar or vector based on whether all SLP
3668 scalar stmts have the same rhs.
3669
3670 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
3671
3672 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3673 memory operands.
3674
3675 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3676
3677 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3678 registers.
3679
3680 2011-04-17 Jan Hubicka <jh@suse.cz>
3681
3682 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3683 * cgrpahunit.c (cgraph_finalize_function): Do not set
3684 finalized_by_frontend.
3685 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3686 finalized_by_frontend.
3687
3688 2011-04-17 Jan Hubicka <jh@suse.cz>
3689
3690 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3691 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3692 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3693 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3694 method.
3695 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3696 gimple-fold.c
3697 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3698
3699 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
3700
3701 PR lto/48538
3702 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3703 is non-null before accessing it.
3704 (input_cgraph): Remove trailing spaces.
3705
3706 2011-04-17 Revital Eres <revital.eres@linaro.org>
3707
3708 * params.def (sms-min-sc): New param flag.
3709 * modulo-sched.c (sms_schedule): Use it.
3710 * doc/invoke.texi (sms-min-sc): Document it.
3711
3712 2011-04-17 Jan Hubicka <jh@suse.cz>
3713
3714 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3715 present, also set gimple_call_set_cannot_inline.
3716 * ipa-inline.c: Update toplevel comment.
3717 (MAX_TIME): Remove.
3718 (cgraph_clone_inlined_nodes): Fix linebreaks.
3719 (cgraph_check_inline_limits): Restructure to ...
3720 (caller_growth_limits): ... this one; be more tolerant
3721 on growth in nested inline chains; add explanatory comment;
3722 fix stack accounting thinko introduced by previous patch.
3723 (cgraph_default_inline_p): Remove.
3724 (report_inline_failed_reason): New function.
3725 (can_inline_edge_p): New function.
3726 (can_early_inline_edge_p): New function.
3727 (leaf_node_p): Move upwards in file.
3728 (want_early_inline_function_p): New function.
3729 (want_inline_small_function_p): New function.
3730 (want_inline_self_recursive_call_p): New function.
3731 (cgraph_edge_badness): Rename to ...
3732 (edge_badness) ... this one; fix linebreaks.
3733 (update_edge_key): Update call of edge_baddness; add
3734 detailed dump about queue updates.
3735 (update_caller_keys): Use can_inline_edge_p and
3736 want_inline_small_function_p.
3737 (cgraph_decide_recursive_inlining): Rename to...
3738 (recursive_inlining): Use can_inline_edge_p and
3739 want_inline_self_recursive_call_p; simplify and remove no longer
3740 valid FIXME.
3741 (cgraph_set_inline_failed): Remove.
3742 (add_new_edges_to_heap): Use can_inline_edge_p and
3743 want_inline_small_function_p.
3744 (cgraph_decide_inlining_of_small_functions): Rename to ...
3745 (inline_small_functions): ... this one; cleanup; use
3746 can/want predicates; cleanup debug ouput; work edges till fibheap
3747 is exhausted and do not stop once unit growth is reached; remove
3748 later loop processing remaining edges.
3749 (cgraph_flatten): Rename to ...
3750 (flatten_function): ... this one; use can_inline_edge_p
3751 and can_early_inline_edge_p predicates.
3752 (cgraph_decide_inlining): Rename to ...
3753 (ipa_inline): ... this one; remove unreachable nodes before
3754 inlining functions called once; simplify the pass.
3755 (cgraph_perform_always_inlining): Rename to ...
3756 (inline_always_inline_functions): ... this one; use
3757 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3758 (cgraph_decide_inlining_incrementally): Rename to ...
3759 (early_inline_small_functions): ... this one; simplify
3760 using new predicates; cleanup; make dumps prettier.
3761 (cgraph_early_inlining): Rename to ...
3762 (early_inliner): newer inline regular functions into always-inlines;
3763 fix updating of call stmt summaries.
3764 (pass_early_inline): Update for new names.
3765 (inline_transform): Fix formating.
3766 (gate_cgraph_decide_inlining): Rename to ...
3767 (pass_ipa_inline): ... this one.
3768 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3769 * ipa-inline-analysis.c (dump_inline_summary): Update.
3770 (compute_inline_parameters): Do not compute disregard_inline_limits;
3771 look for mismatching arguments.
3772 (estimate_growth): Fix handlig of non-trivial self recursion.
3773 (inline_read_summary): Do not read info->disregard_inline_limits.
3774 (inline_write_summary): Do not write info->disregard_inline_limits.
3775 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3776 and move all checks into can_inline_edge_p predicate; re-enable code
3777 comparing optimization levels.
3778 (expand_call_inline): Do not test inline_forbidden_into_p.
3779 * Makefile.in (ipa-inline.o): Update arguments.
3780
3781 2011-04-17 Revital Eres <revital.eres@linaro.org>
3782
3783 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3784
3785 2011-04-17 Revital Eres <revital.eres@linaro.org>
3786
3787 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3788
3789 2011-04-17 Michael Matz <matz@suse.de>
3790
3791 PR tree-optimization/48622
3792 PR lto/48645
3793 * ipa-inline-analysis.c (inline_read_summary): Read size/time
3794 in same order as they're written.
3795
3796 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3797
3798 * config/pa/predicates.md: Reorganize and simplify predicates.
3799 Eliminate duplicate code checks.
3800 (arith_operand): Rename to arith14_operand
3801 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3802 * config/pa/pa.md: Use renamed operands.
3803 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3804 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3805 arith11_operand, adddi3_operand, indexed_memory_operand,
3806 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3807 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3808 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3809 move_dest_operand, move_src_operand, prefetch_cc_operand,
3810 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3811 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3812 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3813 div_operand, int5_operand, movb_comparison_operator,
3814 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3815 arith_double_operand, ireg_operand, lhs_lshift_operand,
3816 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3817 integer_store_memory_operand): Likewise.
3818 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3819 (integer_store_memory_operand, read_only_operand,
3820 function_label_operand, borx_reg_operand,
3821 non_hard_reg_operand): Likewise.
3822 (eq_neq_comparison_operator): Delete unused operator.
3823 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3824 function_label_operand.
3825 (emit_move_sequence): Likewise.
3826
3827 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3828
3829 * config/i386/sse.md (sseunpackmode): New mode attribute.
3830 (ssepackmode): Ditto.
3831 (vec_pack_trunc_<mode>): Macroize expander from
3832 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3833 (vec_unpacks_lo_<mode>): Macroize expander from
3834 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3835 (vec_unpacks_hi_<mode>): Macroize expander from
3836 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3837 (vec_unpacku_lo_<mode>): Macroize expander from
3838 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3839 (vec_unpacku_hi_<mode>): Macroize expander from
3840 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3841 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3842 ix86_expand_sse4_unpack.
3843 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3844
3845 2011-04-16 Jan Hubicka <jh@suse.cz>
3846
3847 * cgraphbuild.c: Include ipa-inline.h.
3848 (reset_inline_failed): Use initialize_inline_failed.
3849 * cgraph.c: Include ipa-inline.h.
3850 (cgraph_create_node_1): Do not initialize estimated_growth.
3851 (initialize_inline_failed): More to ipa-inline-analysis.c
3852 (dump_cgraph_node): Do not dump inline flags.
3853 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3854 and disregard_inline_limits flags.
3855 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3856 time, size, estimated_growth.
3857 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3858 Update.
3859 * cgraphunit.c (cgraph_decide_is_function_needed): Use
3860 DECL_DISREGARD_INLINE_LIMITS.
3861 (cgraph_analyze_function): Do not initialize
3862 node->local.disregard_inline_limits.
3863 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3864 inlinable, versionable and disregard_inline_limits.
3865 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3866 cgraph_check_inline_limits, cgraph_default_inline_p,
3867 cgraph_edge_badness, update_caller_keys, update_callee_keys,
3868 add_new_edges_to_heap): Update.
3869 (cgraph_decide_inlining_of_small_function): Update; set
3870 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3871 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3872 cgraph_decide_inlining_incrementally): Update.
3873 * ipa-inline.h (inline_summary): Add inlinable, versionable,
3874 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3875 time, size and estimated_growth parameters.
3876 (estimate_edge_growth): Update.
3877 (initialize_inline_failed): Declare.
3878 * ipa-split.c: Include ipa-inline.h
3879 (execute_split_functions): Update.
3880 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3881 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3882 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3883 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3884 estimated_growth to INT_MIN.
3885 (inline_node_duplication_hook): Likewise.
3886 (dump_inline_summary): Dump new fields.
3887 (compute_inline_parameters): Update.
3888 (estimate_edge_time, estimate_time_after_inlining,
3889 estimate_size_after_inlining, estimate_growth, inline_read_summary,
3890 inline_write_summary):
3891 (initialize_inline_failed): Move here from cgraph.c.
3892 * tree-sra.c: Include ipa-inline.h.
3893 (ipa_sra_preliminary_function_checks): Update.
3894 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3895 ipa-inline.h.
3896
3897 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3898
3899 * config/i386/sse.md (V16): New mode iterator.
3900 (VI1, VI8): Ditto.
3901 (AVXMODEQI, AVXMODEDI): Remove.
3902 (sse2, sse3): New mode attribute.
3903 (mov<mode>): Use V16 mode iterator.
3904 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3905 (push<mode>1): Use V16 mode iterator.
3906 (movmisalign<mode>): Ditto.
3907 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3908 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3909 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3910 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3911 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3912 avx_movdqu<avxmodesuffix>.
3913 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3914 *avx_movdqu<avxmodesuffix>.
3915 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3916 avx_lddqu<avxmodesuffix>.
3917 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3918 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3919 avx_movnt<AVXMODEDI:mode>.
3920 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3921 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3922
3923 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
3924
3925 PR target/48629
3926 * haifa-sched.c (prune_ready_list, schedule_block): Use
3927 sched_pressure_p rather than flag_sched_pressure.
3928
3929 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3930
3931 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3932 cgraph_get_node instead of cgraph_get_create_node.
3933
3934 2011-04-15 Jakub Jelinek <jakub@redhat.com>
3935
3936 * cfgexpand.c (expand_debug_expr): Use
3937 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3938
3939 2011-04-15 Michael Matz <matz@suse.de>
3940
3941 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3942 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3943 * function.c (gimplify_parameters): Ditto.
3944 * gimplify.c (gimplify_vla_decl): Ditto.
3945
3946 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3947 (gimple_call_set_alloca_for_var): New inline function.
3948 (gimple_call_alloca_for_var_p): Ditto.
3949 * gimple.c (gimple_build_call_from_tree): Remember
3950 CALL_ALLOCA_FOR_VAR_P state.
3951 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3952
3953 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3954 calls if they were for VLA objects.
3955
3956 2011-04-15 Martin Jambor <mjambor@suse.cz>
3957
3958 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3959 of ADR_EXPRs.
3960
3961 2011-04-15 Martin Jambor <mjambor@suse.cz>
3962
3963 PR middle-end/48601
3964 * tree-emutls.c (lower_emutls_function_body): Call
3965 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3966 result is non-NULL.
3967
3968 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3969
3970 * c-decl.c (detect_field_duplicates): Call
3971 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3972
3973 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3974
3975 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3976 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3977 * ipa-pure-const.c (check_stmt): Call it.
3978 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3979
3980 2011-04-15 Richard Guenther <rguenther@suse.de>
3981
3982 PR tree-optimization/48290
3983 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3984 Properly decide inhibiting propagation based on the valueized
3985 operand. Do loop-closed SSA form preserving here ...
3986 (init_copy_prop): ... not here.
3987
3988 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3989
3990 PR target/48612
3991 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3992 (*ieee_smax<mode>3): Likewise.
3993
3994 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3995
3996 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3997 Replace match_operand with match_dup for the third operand in
3998 these expanders.
3999
4000 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4001
4002 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4003 to track processing of conditionals. Update all callers.
4004 (try_combine, simplify_if_then_else): Update.
4005
4006 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4007
4008 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4009 -fsched-pressure.
4010
4011 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
4012
4013 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4014 instead of match_operand for operand 3.
4015
4016 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
4017
4018 * recog.h (insn_operand_data): Add an "allows_mem" field.
4019 * genoutput.c (output_operand_data): Initialize it.
4020 * optabs.c (maybe_legitimize_operand_same_code): New function.
4021 (maybe_legitimize_operand): Use it when matching the original
4022 op->value.
4023
4024 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4025
4026 * gimplify.c: Fix issues in comments throughout.
4027 (voidify_wrapper_expr): Fix long line.
4028 (build_stack_save_restore): Likewise.
4029 (gimplify_loop_expr): Likewise.
4030 (gimplify_compound_lval): Likewise.
4031 (gimplify_init_ctor_eval): Likewise.
4032 (gimplify_modify_expr_rhs): Likewise.
4033 (omp_notice_threadprivate_variable): Likewise.
4034
4035 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4036
4037 * cfgexpand.c (expand_call_stmt): Convert the function type to the
4038 original one if this is not a builtin function.
4039
4040 2011-04-14 Jakub Jelinek <jakub@redhat.com>
4041
4042 PR target/48605
4043 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4044 offset it as needed based on top 2 bits in operands[3], change
4045 MEM mode to SFmode and mask those 2 bits away from operands[3].
4046
4047 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4048
4049 * c-parser.c (c_parser_objc_protocol_definition): Updated for
4050 change from objc_declare_protocols() to objc_declare_protocol().
4051
4052 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
4053
4054 * config/i386/sse.md (sse4_1): New mode attribute.
4055 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4056 avx_blend<ssemodesuffix><avxmodesuffix> and
4057 sse4_1_blend<ssemodesuffix> using VF mode iterator.
4058 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4059 avx_blendv<ssemodesuffix><avxmodesuffix> and
4060 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4061 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4062 avx_dp<ssemodesuffix><avxmodesuffix> and
4063 sse4_1_dp<ssemodesuffix> using VF mode iterator.
4064 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4065 (sse4_1_packusdw): Merge with *avx_packusdw.
4066 (sse4_1_pblendvb): Merge with *avx_pblendvb.
4067 (sse4_1_pblendw): Merge with *avx_pblendw.
4068 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4069 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4070 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4071 VF mode iterator.
4072 (sse4_1_round<ssescalarmodesuffix>): Merge with
4073 *avx_round<ssescalarmodesuffix>.
4074 (aesenc): Merge with *avx_aesenc.
4075 (aesenclast): Merge with *avx_aesenclast.
4076 (aesdec): Merge with *avx_aesdec.
4077 (aesdeclast): Merge with *avx_aesdeclast.
4078 (pclmulqdq): Merge with *pclmulqdq.
4079 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4080 New predicate.
4081 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4082
4083 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
4084
4085 PR middle-end/48608
4086 * cfgexpand.c (get_decl_align_unit): Renamed to ...
4087 (align_local_variable): This. Update DECL_ALIGN.
4088 (add_stack_var): Updated.
4089 (expand_one_stack_var): Likewise.
4090
4091 2011-04-14 Richard Guenther <rguenther@suse.de>
4092
4093 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4094 Remove.
4095 (dse_initialize_block_local_data, dse_leave_block,
4096 record_voperand_set, get_stmt_uid): Likewise.
4097 (dse_possible_dead_store_p): Allow any kind of killing stmt.
4098 (dse_optimize_stmt): Remove voperand set handling code.
4099 Simplify and improve to handle any kind of killing stmt.
4100 (dse_record_phi): Remove.
4101 (dse_enter_block): Simplify.
4102 (tree_ssa_dse): Likewise.
4103 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4104
4105 2011-04-14 Jan Hubicka <jh@suse.cz>
4106
4107 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4108 * cgraph.h (struct inline_summary): Move to ipa-inline.h
4109 (cgraph_local_info): Remove inline_summary.
4110 * ipa-cp.c: Include ipa-inline.h.
4111 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4112 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4113 accesor.
4114 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4115 (input_overwrite_node): Do not set inline summary.
4116 (input_node): Do not stream inline summary.
4117 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4118 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4119 growth; we do not have inline parameters computed for that anyway.
4120 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4121 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4122 (inline_summary_t): New type and VECtor.
4123 (debug_inline_summary, dump_inline_summaries): Declare.
4124 (inline_summary): Use VOCtor.
4125 (estimate_edge_growth): Kill hack computing call stmt size directly.
4126 * lto-section-in.c (lto_section_name): Add inline section.
4127 * ipa-inline-analysis.c: Include lto-streamer.h
4128 (node_removal_hook_holder, node_duplication_hook_holder): New holders
4129 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4130 (inline_summary_vec): Define.
4131 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4132 dump_inline_summaries): New functions.
4133 (estimate_function_body_sizes): Properly compute size/time of outgoing
4134 calls.
4135 (compute_inline_parameters): Alloc inline_summary; do not compute
4136 size/time of incomming calls.
4137 (estimate_edge_time): Avoid missing time summary hack.
4138 (inline_read_summary): Read inline summary info.
4139 (inline_write_summary): Write inline summary info.
4140 (inline_free_summary): Free all hooks and inline summary vector.
4141 * lto-streamer.h: Add LTO_section_inline_summary section.
4142 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4143 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4144
4145 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4146
4147 * tree-vectorizer.h (vect_strided_store_supported): Add a
4148 HOST_WIDE_INT argument.
4149 (vect_strided_load_supported): Likewise.
4150 (vect_permute_store_chain): Return void.
4151 (vect_transform_strided_load): Likewise.
4152 (vect_permute_load_chain): Delete.
4153 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4154 count argument. Check that the count is a power of two.
4155 (vect_strided_load_supported): Likewise.
4156 (vect_permute_store_chain): Return void. Update after above changes.
4157 Assert that the access is supported.
4158 (vect_permute_load_chain): Likewise.
4159 (vect_transform_strided_load): Return void.
4160 * tree-vect-stmts.c (vectorizable_store): Update calls after
4161 above interface changes.
4162 (vectorizable_load): Likewise.
4163 (vect_analyze_stmt): Don't check for strided powers of two here.
4164
4165 2011-04-14 Richard Guenther <rguenther@suse.de>
4166
4167 PR tree-optimization/48590
4168 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4169 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4170 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4171 BUILT_IN_STACK_SAVE.
4172 * tree-ssa-dce.c (propagate_necessity): Handle
4173 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4174
4175 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4176
4177 * c-parser.c (c_parser_objc_class_declaration): Updated call to
4178 objc_declare_class.
4179
4180 2011-04-14 Richard Guenther <rguenther@suse.de>
4181
4182 * tree.h (get_object_alignment_1): Declare.
4183 * builtins.c (get_object_alignment_1): Split out worker from ...
4184 (get_object_alignment): ... here.
4185 * fold-const.c (get_pointer_modulus_and_residue): Use
4186 get_object_alignment_1.
4187
4188 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4189
4190 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4191 type parameter.
4192 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4193 parameter. Generalise code to handle arrays as well as vectors.
4194 (vect_setup_realignment): Update accordingly.
4195 * tree-vect-stmts.c (vectorizable_store): Likewise.
4196 (vectorizable_load): Likewise.
4197
4198 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4199
4200 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4201 within the per-copy loop.
4202
4203 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4204
4205 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4206 in the dump file.
4207
4208 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4209
4210 * doc/options.texi (Negative): Explicitly mention that the
4211 Negative chain must be circular.
4212
4213 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
4214
4215 * function.h (block_chainon): Declare.
4216 * function.c (block_chainon): Define.
4217
4218 2011-04-14 Anatoly Sokolov <aesok@post.ru>
4219 Eric Weddington <eric.weddington@atmel.com>
4220 Georg-Johann Lay <avr@gjlay.de>
4221
4222 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4223 New Includes
4224 (avr_init_builtins, avr_expand_builtin,
4225 avr_expand_delay_cycles, avr_expand_unop_builtin,
4226 avr_expand_binop_builtin ): New functions.
4227 (avr_builtin_id): New enum
4228 (struct avr_builtin_description): New struct
4229 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4230 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4231
4232 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4233 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4234 UNSPECV_DELAY_CYCLES): new enumeration values
4235 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4236 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4237 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4238 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4239 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4240 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4241 "fmulsu"): New insns
4242
4243 * config/avr/avr-c.c: fix line endings
4244 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4245 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4246 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4247 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4248 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4249
4250 * doc/extend.texi (AVR Built-in Functions): New node
4251 (Target Builtins): Add documentation of AVR
4252 built-in functions.
4253
4254 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
4255
4256 PR target/44643
4257 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4258 alone. Error if non-const data has attribute progmem.
4259
4260 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4261
4262 * tree.h (struct tree_constructor): Include tree_typed instead of
4263 tree_common.
4264 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4265 TS_TYPED instead of TS_COMMON.
4266
4267 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4268
4269 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4270 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4271 (sse2_psadbw): Merge with *avx_psadbw.
4272 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4273 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4274 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4275 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4276 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4277 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4278 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4279 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4280 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4281 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4282 (ssse3_palignrti): Merge with *avx_palignrti.
4283
4284 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4285
4286 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4287 * tree-ssanames.c (fini_ssanames): VEC_free it.
4288 (make_ssa_name_fn): Update for VECness of free_ssanames.
4289 (release_ssa_name, release_dead_ssa_names): Likewise.
4290 * tree.h (struct tree_ssa_name): Include tree_typed instead of
4291 tree_common.
4292 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4293 TS_TYPED instead of TS_COMMON.
4294
4295 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4296
4297 * postreload-gcse.c (gcse_after_reload_main): Add calls to
4298 statistics_counter_event.
4299 * tree-ssa-copyrename.c (stats): Define.
4300 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
4301 statistics_counter_event.
4302 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4303 (bswap_stats, widen_mul_stats): Define.
4304 (insert_reciprocals): Increment rdivs_inserted.
4305 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
4306 rfuncs_inserted. Add calls to statistics_counter_event.
4307 (execute_cse_sincos_1): Increment inserted.
4308 (execute_cse_sincos): Zeroize sincos_stats. Add call to
4309 statistics_counter_event.
4310 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
4311 of bswap_stats. Add calls to statistics_counter_event.
4312 (convert_mult_to_widen): Increment widen_mults_inserted.
4313 (convert_plusminus_to_widen): Increment maccs_inserted.
4314 (convert_mult_to_fma): Increment fmas_inserted.
4315 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
4316 calls to statistics_counter_event.
4317
4318 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
4319
4320 PR rtl-optimization/48455
4321 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4322 `temp_costs->mem_cost'.
4323
4324 2011-04-13 Jan Hubicka <jh@suse.cz>
4325
4326 * ipa-inline.h: New file.
4327 * ipa-inline-analysis.c: New file. Broken out of ...
4328 * ipa-inline.c: ... this file; update toplevel comment;
4329 include ipa-inline.h
4330 (inline_summary): Move to ipa-inline.h
4331 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4332 ipa-inline-analysis.c.
4333 (cgraph_estimate_time_after_inlining): Rename to
4334 estiamte_time_after_inlining; move to ipa-inline-analysis.c
4335 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4336 to estimate_edge_growth.
4337 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4338 rename to estimate_size_after_inlining.
4339 (cgraph_mark_inline_edge): Update for new naming convention.
4340 (cgraph_check_inline_limits): Likewise.
4341 (cgraph_edge_badness): Likewise.
4342 (cgraph_decide_recursive_inlining): Likewise.
4343 (cgraph_decide_inlining_of_small_functions): Likewise.
4344 (cgraph_decide_inlining_incrementally): Likewise.
4345 (cgraph_estimate_growth): Rename to estimate_growth; move to
4346 ipa-inline-analysis.c.
4347 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4348 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4349 (compute_inline_parameters): Likewise.
4350 (compute_inline_parameters_for_current): Likewise.
4351 (pass_inline_parameters): Likewise.
4352 (inline_indirect_intraprocedural_analysis): Likewise.
4353 (analyze_function): Rename to inline_analyze_function; likewise.
4354 (add_new_function): Move to ipa-inline-analysis.c.
4355 (inline_generate_summary): Likewise.
4356 (inline_read_summary): Likewise.
4357 (inline_write_summary): Likewise.
4358 * Makefile.in (ipa-inline-analysis.c): New file.
4359
4360 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4361
4362 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4363 * configure: Regenerate.
4364
4365 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4366
4367 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4368 instead of tree_common.
4369 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4370 Likewise.
4371 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4372 TS_TYPED rather than TS_COMMON.
4373 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4374
4375 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
4376
4377 PR target/45263
4378 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4379 r20 around calls of __tablejump_elpm__
4380
4381 2011-04-13 Jakub Jelinek <jakub@redhat.com>
4382
4383 PR middle-end/48591
4384 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4385 NULL.
4386 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4387
4388 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
4389
4390 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4391 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4392 (cfi_vec): New typedef.
4393 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4394 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4395 (cie_cfi_vec): New static variable.
4396 (cie_cfi_head): Delete.
4397 (add_cfi): Accept a cfi_vec * as first argument. All callers and
4398 declaration changed. Use vector rather than list operations.
4399 (new_cfi): Don't initialize the dw_cfi_next field.
4400 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4401 rather than list operations.
4402 (lookup_cfa): Use vector rather than list operations.
4403 (output_cfis): New argument upto. Accept a cfi_vec rather than
4404 a dw_cfi_ref list head as argument. All callers changed.
4405 Iterate over the vector using upto as a maximum index.
4406 (output_all_cfis): New static function.
4407 (output_fde): Use vector rather than list operations. Use the
4408 new upto argument for output_cfis rather than manipulating a
4409 list.
4410 (dwarf2out_begin_prologue): Change initializations to match
4411 new struct members.
4412 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4413 from the vector length rather than searching for the end of a list.
4414 Use output_all_cfis.
4415 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4416
4417 2011-04-13 Nick Clifton <nickc@redhat.com>
4418
4419 * config/rx/rx.md (movmemsi): Do not use this pattern when
4420 volatile pointers are involved.
4421
4422 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4423
4424 * config/i386/sse.md (pinsrbits): Remove.
4425 (sse2_packsswb): Merge with *avx_packsswb.
4426 (sse2_packssdw): Merge with *avx_packssdw.
4427 (sse2_packuswb): Merge with *avx_packuswb.
4428 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4429 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4430 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4431 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4432 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4433 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4434 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4435 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4436 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4437 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4438 (sse2_loadld): Merge with *avx_loadld.
4439 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4440 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4441 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4442 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4443 (vec_concatv2di): Merge with *vec_concatv2di_avx.
4444
4445 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4446
4447 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4448 calling TREE_CHAIN.
4449 * print-tree.c (print_node): Likewise.
4450 * tree-inline.c (copy_tree_r): Likewise.
4451 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4452 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4453 instead of TS_COMMON.
4454 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4455 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4456 (copy_node_stat): Zero TREE_CHAIN only if necessary.
4457 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4458 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4459 ...and these...
4460 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4461 * tree.h: ...here.
4462 (TREE_CHAIN): Check for a TS_COMMON structure.
4463 (TREE_TYPE): Check for a TS_TYPED structure.
4464
4465 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
4466
4467 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4468 cgraph_get_create_node instead of cgraph_node.
4469
4470 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4471
4472 * c-parser.c (c_parser_initelt): Updated call to
4473 objc_build_message_expr.
4474 (c_parser_postfix_expression): Likewise.
4475
4476 2011-04-12 Kai Tietz <ktietz@redhat.com>
4477
4478 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4479 MASK_MS_BITFIELD_LAYOUT bit.
4480
4481 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4482
4483 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4484 assert it is always true.
4485 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4486 moves.
4487
4488 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4489
4490 * c-parser.c (c_lex_one_token): Rewritten conditional used when
4491 compiling Objective-C to be more efficient.
4492
4493 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
4494
4495 * opts-common.c (decode_cmdline_options_to_array): Remove variable
4496 argv_copied.
4497
4498 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4499
4500 * recog.h, genoutput.c, optabs.c: Revert last patch.
4501
4502 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4503
4504 PR target/48090
4505 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4506
4507 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4508
4509 * recog.h (insn_operand_data): Add an "allows_mem" field.
4510 * genoutput.c (output_operand_data): Initialize it.
4511 * optabs.c (maybe_legitimize_operand_same_code): New function.
4512 (maybe_legitimize_operand): Use it when matching the original
4513 op->value.
4514
4515 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4516
4517 * genpreds.c (process_define_predicate): Move most processing
4518 to gensupport.c. Continue to validate the expression.
4519 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4520 (process_define_predicate): Move processing to gensupport.c.
4521 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4522 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4523 (compute_predicate_codes): Moved from genrecog.c. Add lineno
4524 argument.
4525 (valid_predicate_name_p): New function, split out from old
4526 genpreds.c:process_define_predicate.
4527 (process_define_predicate): New function, combining code from
4528 old genpreds.c and genrecog.c functions.
4529 (process_rtx): Call it for DEFINE_PREDICATE and
4530 DEFINE_SPECIAL_PREDICATE.
4531
4532 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4533
4534 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4535 size of a '%A' memory reference.
4536 (T_DREG, T_QREG): New neon_builtin_type_bits.
4537 (arm_init_neon_builtins): Assert that the load and store operands
4538 are neon_struct_operands.
4539 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4540 (NEON_ARG_MEMORY): New builtin_arg.
4541 (neon_dereference_pointer): New function.
4542 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4543 Handle NEON_ARG_MEMORY.
4544 (arm_expand_neon_builtin): Update after above interface changes.
4545 Use NEON_ARG_MEMORY for loads and stores.
4546 * config/arm/predicates.md (neon_struct_operand): New predicate.
4547 * config/arm/iterators.md (V_two_elem): Tweak formatting.
4548 (V_three_elem): Use BLKmode for accesses that have no associated mode.
4549 (V_four_elem): Tweak formatting.
4550 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4551 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4552 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4553 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4554 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4555 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4556 (neon_vst4<mode>): Replace pointer operand with a memory operand.
4557 Use %A in the output template.
4558 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4559 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4560 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4561 the width of the memory access. Remove post-increment.
4562 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4563
4564 2011-04-12 Nick Clifton <nickc@redhat.com>
4565
4566 * config/v850/v850.c (expand_prologue): Do not use the CALLT
4567 instruction for interrupt handlers if the target is the basic V850
4568 architecture.
4569 (expand_epilogue): Likewise.
4570
4571 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4572
4573 PR rtl-optimization/48549
4574 * combine.c (propagate_for_debug): Also stop after BB_END of
4575 this_basic_block. Process LAST and just stop processing after it.
4576 (combine_instructions): If last_combined_insn has been deleted,
4577 set last_combined_insn to its PREV_INSN.
4578
4579 2011-04-12 Richard Guenther <rguenther@suse.de>
4580
4581 PR tree-optimization/46076
4582 * gimple.h (struct gimple_statement_call): Add fntype field.
4583 (gimple_call_fntype): Adjust.
4584 (gimple_call_set_fntype): New function.
4585 * gimple.c (gimple_build_call_1): Set the call function type.
4586 * gimplify.c (gimplify_call_expr): Preserve the function
4587 type the frontend used for the call.
4588 (gimplify_modify_expr): Likewise.
4589 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4590 function type.
4591 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4592 function type.
4593 * tree-ssa.c (useless_type_conversion_p): Function pointer
4594 conversions are useless.
4595
4596 2011-04-12 Martin Jambor <mjambor@suse.cz>
4597
4598 * cgraph.h (cgraph_node): Remove function declaration.
4599 (cgraph_create_node): Declare.
4600 (cgraph_get_create_node): Likewise.
4601 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4602 Updated all callers.
4603 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4604 the decl does not already exist. Call cgraph_get_create_node instead
4605 of cgraph_node.
4606 (cgraph_get_create_node): New function.
4607 (cgraph_same_body_alias): Update comment.
4608 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4609 assert it does not return NULL.
4610 (cgraph_update_edges_for_call_stmt): Likewise.
4611 (cgraph_clone_edge): Likewise.
4612 (cgraph_create_virtual_clone): Likewise.
4613 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4614 instead of cgraph_node.
4615 (cgraph_add_new_function): Call cgraph_create_node or
4616 cgraph_get_create_node instead of cgraph_node.
4617 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4618 instead of cgraph_node.
4619 (record_eh_tables): Likewise.
4620 (mark_address): Likewise.
4621 (mark_load): Likewise.
4622 (build_cgraph_edges): Call cgraph_get_create_node instead
4623 of cgraph_node.
4624 (rebuild_cgraph_edges): Likewise.
4625 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4626 instead of cgraph_node.
4627 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4628 cgraph_node.
4629 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4630 cgraph_create_node instead of cgraph_node.
4631 * c-decl.c (finish_function): Call cgraph_get_create_node instead
4632 of cgraph_node.
4633 * lto-cgraph.c (input_node): Likewise.
4634 * lto-streamer-in.c (input_function): Likewise.
4635 * varasm.c (mark_decl_referenced): Likewise.
4636 (assemble_alias): Likewise.
4637
4638 2011-04-12 Martin Jambor <mjambor@suse.cz>
4639
4640 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4641 instead of cgraph_node and assert it does not return NULL.
4642 * lto-streamer-in.c (lto_read_body): Likewise.
4643 * omp-low.c (new_omp_context): Likewise.
4644 (create_task_copyfn): Likewise.
4645 * tree-emutls.c (lower_emutls_function_body): Likewise.
4646 * matrix-reorg.c (transform_allocation_sites): Likewise.
4647
4648 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4649
4650 PR c/48552
4651 * c-typeck.c (build_asm_expr): Error out on attempts to use
4652 void type outputs or inputs for constraints that allow reg or
4653 don't allow memory.
4654
4655 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
4656 Richard Earnshaw <rearnsha@arm.com>
4657
4658 PR target/48250
4659 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4660 to use sign-magnitude offsets. Reject unsupported unaligned
4661 cases. Add detailed description in comments.
4662 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4663 condition from TARGET_32BIT to TARGET_ARM.
4664
4665 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
4666
4667 * tree.h (struct typed_tree): New.
4668 (struct tree_common): Include it instead of tree_base.
4669 (TREE_TYPE): Update for new location of type field.
4670 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4671 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4672 (union tree_node): Add typed field.
4673 * treestruct.def (TS_TYPED): New.
4674 * lto-streamer.c (check_handled_ts_structures): Handle it.
4675 * tree.c (MARK_TS_TYPED): New macro.
4676 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4677
4678 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
4679
4680 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4681 (force_nonfallthru): Do not alter the loop nest if no basic block
4682 was created.
4683
4684 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4685
4686 * config/i386/sse.md (VI): New mode iterator.
4687 (SSEMODEI): Remove.
4688 (AVX256MODEI): Ditto.
4689 (AVXMODEF4P): Ditto.
4690 (avxvecpsmode): Ditto.
4691 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
4692 (sse2_andnot<mode>3): New expander.
4693 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4694 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
4695 (<any_logic:code><mode>3): Use VI mode iterator.
4696 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4697 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
4698 (*andnottf3): Handle AVX three-operand constraints.
4699 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4700
4701 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4702 Robert Millan <rmh@gnu.org>
4703
4704 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4705 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4706 GNU_USER_DYNAMIC_LINKER64): Define.
4707 (REG_NAME): Don't undefine.
4708 (MD_UNWIND_SUPPORT): Undefine.
4709 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4710 (REG_NAME): Don't undefine.
4711 (MD_UNWIND_SUPPORT): Undefine.
4712 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4713
4714 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4715
4716 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4717 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4718
4719 2011-04-11 Xinliang David Li <davidxl@google.com>
4720
4721 * value-profile.c (check_ic_target): New function.
4722 (gimple_ic_transform): Sanity check indirect call target.
4723 * gimple-low.c (gimple_check_call_args): Interface change.
4724 (gimple_check_call_matching_types): New function.
4725 * tree-inline.c (tree_can_inline_p): Call new function.
4726
4727 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
4728
4729 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4730 tree-pretty-print.h & realmpfr.h.
4731
4732 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
4733
4734 PR middle-end/48464
4735 * ira.c (setup_pressure_classes): Fix typo in loop condition.
4736 (setup_allocno_and_important_classes): Ditto.
4737
4738 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4739
4740 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4741 GNU_USER_DYNAMIC_LINKER.
4742 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4743 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4744 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4745 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4746 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4747 GNU_USER_TARGET_OS_CPP_BUILTINS.
4748 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4749 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4750 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4751 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4752 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4753 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4754 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4755 GNU_USER_TARGET_OS_CPP_BUILTINS.
4756 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4757 GNU_USER_DYNAMIC_LINKER.
4758 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4759 GNU_USER_TARGET_OS_CPP_BUILTINS.
4760 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4761 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4762 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4763 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4764 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4765 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4766 GNU_USER_DYNAMIC_LINKER64): Remove.
4767 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4768 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4769 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4770 GNU_USER_DYNAMIC_LINKER.
4771 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4772 GNU_USER_TARGET_OS_CPP_BUILTINS.
4773 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4774 GNU_USER_TARGET_OS_CPP_BUILTINS.
4775 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4776 to GNU_USER_TARGET_OS_CPP_BUILTINS.
4777 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4778 GNU_USER_TARGET_OS_CPP_BUILTINS.
4779 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4780 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4781 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4782 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4783 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4784 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4785 GNU_USER_DYNAMIC_LINKER.
4786 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4787 GNU_USER_TARGET_OS_CPP_BUILTINS.
4788 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4789 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4790 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4791 GNU_USER_DYNAMIC_LINKER.
4792 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4793 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4794 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4795 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4796 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4797 GNU_USER_DYNAMIC_LINKER.
4798 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4799 GNU_USER_DYNAMIC_LINKERN32.
4800 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4801 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
4802 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
4803 GNU_USER_DYNAMIC_LINKER32.
4804 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4805 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4806 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4807 GNU_USER_DYNAMIC_LINKER.
4808 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4809 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4810 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4811 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4812 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4813 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4814 GNU_USER_DYNAMIC_LINKER32.
4815 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4816 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4817 GNU_USER_DYNAMIC_LINKER.
4818 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4819 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4820 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4821 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
4822 GNU_USER_DYNAMIC_LINKER64.
4823 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4824 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4825 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4826 GNU_USER_DYNAMIC_LINKER.
4827 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4828 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4829 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4830 GNU_USER_DYNAMIC_LINKER.
4831 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4832 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4833 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4834 GNU_USER_DYNAMIC_LINKER32.
4835 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4836 GNU_USER_DYNAMIC_LINKER64.
4837 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4838 GNU_USER_DYNAMIC_LINKER64.
4839 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4840 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4841 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4842 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4843 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4844
4845 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4846
4847 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
4848 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4849 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4850 GNU_USER_DYNAMIC_LINKER.
4851 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4852 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
4853 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4854 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4855 GNU_USER_DYNAMIC_LINKER64.
4856 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4857 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4858 GNU_USER_LINK_EMULATION.
4859 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4860 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4861 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4862 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4863 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4864 CPP_SPEC, CC1_SPEC): Remove.
4865 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4866 (GNU_USER_DYNAMIC_LINKER): Define.
4867 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4868 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4869 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4870 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4871 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4872 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4873 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4874 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4875 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4876 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4877 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4878 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4879 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4880 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4881 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4882 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4883 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4884 GNU_USER_DYNAMIC_LINKER.
4885 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4886 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4887 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4888 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4889 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4890 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4891 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4892 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4893 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4894 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4895
4896 2011-04-11 Kai Tietz <ktietz@redhat.com>
4897
4898 PR target/9601
4899 PR target/11772
4900 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4901 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4902 comment.
4903 (ix86_is_msabi_thiscall): Removed.
4904 (ix86_is_type_thiscall): Likewise.
4905 (ix86_get_callcvt): New function.
4906 (ix86_comp_type_attributes): Simplify check.
4907 (ix86_function_regparm): Use ix86_get_callcvt for calling
4908 convention attribute checks.
4909 (ix86_return_pops_args): Likewise.
4910 (ix86_static_chain): Likewise.
4911 (x86_this_parameter): Likewise.
4912 (x86_output_mi_thunk): Likewise.
4913 (ix86_function_type_abi): Optimize check for types without attributes.
4914 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4915 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4916 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4917 by flag-values.
4918 (IX86_BASE_CALLCVT): Helper macro.
4919 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4920 Use ix86_get_callcvt for calling convention attribute checks and avoid
4921 symbol-decoration for stdcall in TARGET_RTD case.
4922 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4923 Likewise.
4924 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4925 for declaration.
4926
4927 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4928
4929 * config/i386/sse.md (VI_128): New mode iterator.
4930 (VI12_128): Rename from SSEMODE12.
4931 (VI14_128): Rename from SSEMODE14.
4932 (VI124_128): New mode iterator.
4933 (VI24_128): Rename from SSEMODE248.
4934 (VI248_128): Rename from SSEMODE248.
4935 (SSEMODE124C8): Remove.
4936 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4937 (*sse2_<plusminus_insn><mode>3): Merge with
4938 *avx_<plusminus_insn><mode>3.
4939 (*mulv8hi3): Merge with *avx_mulv8hi3.
4940 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4941 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4942 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4943 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4944 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4945 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4946 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4947 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4948 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4949 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4950 (*<smaxmin:code>v8hi3): Ditto.
4951 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4952 (*<smaxmin:code>v16qi3): Ditto.
4953 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4954 (*sse2_eq<mode>3): Ditto.
4955 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4956 (*sse2_gt<mode>3): Ditto.
4957 (vcondv2di): Split out of vcond<mode>.
4958 (vconduv2di): Split out of vcondu<mode>.
4959
4960 2011-04-11 Richard Guenther <rguenther@suse.de>
4961
4962 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4963 before calling tree_low_cst.
4964
4965 2011-04-11 Richard Guenther <rguenther@suse.de>
4966
4967 * stor-layout.c (layout_type): Compute all array index size operations
4968 in the original type.
4969 (initialize_sizetypes): Add comment.
4970 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4971
4972 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4973
4974 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4975
4976 2011-04-11 Martin Jambor <mjambor@suse.cz>
4977
4978 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4979 of cgraph_node, handle NULL return value.
4980 (cgraph_global_info): Likewise.
4981 (cgraph_rtl_info): Likewise.
4982 * tree-inline.c (estimate_num_insns): Likewise.
4983 * gimplify.c (unshare_body): Likewise.
4984 (unvisit_body): Likewise.
4985 (gimplify_body): Likewise.
4986 * predict.c (optimize_function_for_size_p): Likewise.
4987 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4988 (call_may_clobber_ref_p_1): Likewise.
4989 * varasm.c (function_section_1): Likewise.
4990 (assemble_start_function): Likewise.
4991
4992 2011-04-11 Martin Jambor <mjambor@suse.cz>
4993
4994 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4995 of cgraph_node.
4996 * final.c (rest_of_clean_state): Likewise.
4997 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4998 * passes.c (pass_init_dump_file): Likewise.
4999 (execute_all_ipa_transforms): Likewise.
5000 (function_called_by_processed_nodes_p): Likewise.
5001 * predict.c (maybe_hot_frequency_p): Likewise.
5002 (probably_never_executed_bb_p): Likewise.
5003 (compute_function_frequency): Likewise.
5004 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5005 (unnest_nesting_tree_1): Likewise.
5006 (lower_nested_functions): Likewise.
5007 * tree-optimize.c (execute_fixup_cfg): Likewise.
5008 (tree_rest_of_compilation): Likewise.
5009 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5010 * tree-sra.c (ipa_early_sra): Likewise.
5011 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5012 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5013 * ipa.c (record_cdtor_fn): Likewise.
5014 * ipa-inline.c (cgraph_early_inlining): Likewise.
5015 (compute_inline_parameters_for_current): Likewise.
5016 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5017 * ipa-pure-const.c (local_pure_const): Likewise.
5018 * ipa-split.c (split_function): Likewise.
5019 (execute_split_functions): Likewise.
5020 * cgraphbuild.c (build_cgraph_edges): Likewise.
5021 (rebuild_cgraph_edges): Likewise.
5022 (cgraph_rebuild_references): Likewise.
5023 (remove_cgraph_callee_edges): Likewise.
5024 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5025 (verify_cgraph_node): Likewise.
5026 (cgraph_analyze_functions): Likewise.
5027 (cgraph_preserve_function_body_p): Likewise.
5028 (save_inline_function_body): Likewise.
5029 (save_inline_function_body): Likewise.
5030 * tree-inline.c (copy_bb): Likewise.
5031 (optimize_inline_calls): Likewise.
5032
5033 2011-04-11 Martin Jambor <mjambor@suse.cz>
5034
5035 PR tree-optimization/48195
5036 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5037 ipa_check_create_edge_args.
5038 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5039 ipa_check_create_edge_args.
5040 * ipa-inline.c (inline_generate_summary): Do not call
5041 ipa_check_create_node_params and ipa_check_create_edge_args.
5042 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5043 ipa_check_create_edge_args.
5044
5045 2011-04-09 Anatoly Sokolov <aesok@post.ru>
5046
5047 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5048 instead of loop.
5049 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5050 * function.c (record_hard_reg_sets): Likewise.
5051 * ira.c (compute_regs_asm_clobbered): Likewise.
5052 * sched-deps.c (sched_analyze_1): Likewise.
5053 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5054
5055 2011-04-09 Xinliang David Li <davidxl@google.com>
5056
5057 PR tree-optimization/PR48484
5058 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5059 has_valid_pred lazily
5060
5061 2011-04-09 Duncan Sands <baldrick@free.fr>
5062
5063 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5064
5065 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
5066
5067 * combine.c (combine_validate_cost): Adjust comments. Set registered
5068 cost of I0 to zero at the end, if any.
5069
5070 2011-04-08 Xinliang David Li <davidxl@google.com>
5071
5072 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5073 to insane profile data.
5074
5075 2011-04-08 Xinliang David Li <davidxl@google.com>
5076
5077 * ipa-cp.c (ipcp_update_profiling): Correct
5078 negative scale factor due to insane profile data.
5079
5080 2011-04-08 Xinliang David Li <davidxl@google.com>
5081
5082 * final.c (dump_basic_block_info): New function.
5083 (final): Dump basic block.
5084 (final_scan_insn): Remove old dump.
5085
5086 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
5087
5088 PR target/47829
5089 * config.gcc (i386-*-freebsd): Disable unwind table generation for
5090 crtbegin/crtend.
5091
5092 2011-04-08 Michael Matz <matz@suse.de>
5093
5094 PR middle-end/48389
5095 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5096 functions.
5097 (rebuild_jump_labels): Call rebuild_jump_labels_1.
5098 * rtl.h (rebuild_jump_labels_chain): Declare.
5099 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5100 insns inserted on edges.
5101
5102 2011-04-08 Joseph Myers <joseph@codesourcery.com>
5103
5104 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5105 * config/arm/arm-arches.def: New.
5106 * config/arm/arm-opts.h: New.
5107 * config/arm/genopt.sh: New.
5108 * config/arm/arm-tables.opt: New (generated).
5109 * config/arm/arm.c (arm_handle_option, arm_target_help,
5110 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5111 (all_architectures): Get most table contents from arm-arches.def.
5112 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5113 arm_selected_tune here.
5114 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5115 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5116 (march=, mcpu=, mtune=): Use Enum and Var.
5117 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5118 (arm.o): Update dependencies.
5119
5120 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
5121
5122 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5123 of header_file.
5124 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5125 (write_typed_alloc_defns): Likewise.
5126 (main): Calls write_typed_alloc_defns with output_header.
5127
5128 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
5129
5130 PR inline-asm/48435
5131 * ira-color.c (setup_profitable_hard_regs): Add comments.
5132 Don't take prohibited hard regs into account.
5133 (setup_conflict_profitable_regs): Rename to
5134 get_conflict_profitable_regs.
5135 (check_hard_reg_p): Check prohibited hard regs.
5136
5137 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5138
5139 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5140 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5141 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5142
5143 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5144
5145 PR target/48366
5146 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5147 move from floating point to shift amount register.
5148 (emit_move_sequence): Remove secondary reload support for floating
5149 point to shift amount amount register copies.
5150 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5151 amount register copies.
5152 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5153 register, return false if mode isn't a scalar integer mode.
5154 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5155
5156 2011-04-08 Richard Guenther <rguenther@suse.de>
5157
5158 * gimple.c (gimple_call_flags): Remove kludge.
5159
5160 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5161
5162 * sel-sched.c (sel_region_init): Move call to
5163 sel_setup_region_sched_flags after setup_current_loop_nest.
5164
5165 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
5166
5167 PR rtl-optimization/48272
5168 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5169 init_insn_reg_pressure_info. Adjust a caller.
5170 * sched-int.h (init_insn_reg_pressure_info): Declare.
5171 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5172 when sched-pressure is enabled.
5173
5174 2011-04-08 Richard Guenther <rguenther@suse.de>
5175
5176 * gimple.c (gimple_set_modified): Do not queue calls to
5177 MODIFIED_NORETURN_CALLS here ...
5178 * tree-ssa-operands.c (update_stmt_operands): ... but here.
5179
5180 2011-04-08 Richard Guenther <rguenther@suse.de>
5181
5182 PR lto/48467
5183 * toplev.c (lang_dependent_init): Do not open asm_out_file
5184 in WPA mode, nor perform debug machinery initialization.
5185 (finalize): Do not unlink asm_out_file in WPA mode.
5186
5187 2011-04-08 Richard Guenther <rguenther@suse.de>
5188
5189 * gimple.h (gimple_call_fntype): New function.
5190 (gimple_call_return_type): Use it.
5191 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5192 * gimple-low.c (gimple_check_call_args): Likewise.
5193 * gimple.c (gimple_call_flags): Likewise.
5194 (gimple_call_arg_flags): Likewise.
5195 (gimple_call_return_flags): Likewise.
5196 * tree-cfg.c (verify_gimple_call): Likewise.
5197 (do_warn_unused_result): Likewise.
5198 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5199 * value-prof.c (gimple_ic_transform): Fix fndecl check.
5200
5201 2011-04-08 Dmitry Melnik <dm@ispras.ru>
5202
5203 PR rtl-optimization/48235
5204 * sel-sched.c (code_motion_process_successors): Recompute the last
5205 insn in basic block if control flow changed.
5206 (code_motion_path_driver): Ditto. Recompute the first insn as well.
5207 Update condition for ilist_remove.
5208
5209 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5210
5211 PR rtl-optimization/48302
5212 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5213 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
5214 it to record added preheader blocks.
5215 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
5216 on to sel_add_loop_preheaders.
5217 (sel_region_init): Move call to setup_current_loop_nest after
5218 sel_init_bbs.
5219
5220 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5221
5222 PR target/48273
5223 * cfgloop.h (loop_has_exit_edges): New helper.
5224 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5225 non-clonable.
5226 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5227 that have no exit edges.
5228
5229 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
5230
5231 PR rtl-optimization/48442
5232 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
5233 all callers. Adjust assert.
5234
5235 2011-04-08 Jakub Jelinek <jakub@redhat.com>
5236
5237 PR tree-optimization/48377
5238 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5239 is_packed to true even for types with smaller TYPE_ALIGN than
5240 TYPE_SIZE.
5241
5242 2011-04-08 Richard Guenther <rguenther@suse.de>
5243
5244 PR bootstrap/48513
5245 * doc/tm.texi: Re-generate.
5246
5247 2011-04-08 Wei Guozhi <carrot@google.com>
5248
5249 PR target/47855
5250 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5251 * config/arm/arm.c (arm_attr_length_push_multi): New function.
5252 * config/arm/arm.md (*push_multi): Change the length computation to
5253 call a C function.
5254
5255 2011-04-08 Anatoly Sokolov <aesok@post.ru>
5256
5257 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5258 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5259 * doc/tm.texi: Regenerate.
5260 * system.h (ASM_OUTPUT_BSS): Poison.
5261 * varasm.c (asm_output_bss): Remove function.
5262 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5263
5264 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5265 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5266 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5267 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5268 Likewise.
5269 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5270 Likewise.
5271 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5272 Likewise.
5273 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5274
5275 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5276
5277 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5278 EnumValue lines.
5279
5280 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5281
5282 * config/m68k/m68k.c (m68k_handle_option): Don't handle
5283 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5284 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5285 OPT_mcpu32.
5286 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5287 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5288 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5289 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5290 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5291 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5292 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5293 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5294 options. Don't map other m68k options manually. Don't handle
5295 old-style options as canonical.
5296 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5297 * doc/install.texi (m68k-*-*): Document binutils version requirement.
5298
5299 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
5300
5301 * basic-block.h (force_nonfallthru): Move to...
5302 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5303 (force_nonfallthru): ...here.
5304 * cfghooks.c (force_nonfallthru): New function.
5305 * cfgrtl.c (force_nonfallthru): Rename into...
5306 (rtl_force_nonfallthru): ...this.
5307 (commit_one_edge_insertion): Do not set AUX field.
5308 (commit_edge_insertions): Do not discover new basic blocks.
5309 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5310 (cfg_layout_rtl_cfg_hooks): Likewise.
5311 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5312 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
5313 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5314
5315 2011-04-07 Anatoly Sokolov <aesok@post.ru>
5316
5317 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5318 Remove macros.
5319
5320 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
5321
5322 * config/i386/sse.md: Update copyright year.
5323 (avxcvtvecmode): Remove.
5324 (sse_movhlps): Merge with *avx_movhlps.
5325 (sse_movlhps): Merge with *avx_movlhps.
5326 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5327 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5328 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5329 (sse_loadhps): Merge with *avx_loadhps.
5330 (sse_storelps): Merge with *avx_storelps.
5331 (sse_loadlps): Merge with *avx_loadlps.
5332 (sse_movss): Merge with *avx_movss.
5333 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5334 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5335 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5336 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5337 (vec_set<mode>_0): Ditto.
5338 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5339 (sse4_1_insertps): Merge with *avx_insertps.
5340 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5341 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5342 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5343 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5344 (sse2_storehpd): Merge with *avx_storehpd.
5345 (sse2_loadhpd): Merge with *avx_loadhpd.
5346 (sse2_loadlpd): Merge with *avx_loadlpd.
5347 (sse2_movsd): Merge with *avx_movsd.
5348 (*vec_concatv2df): Merge with *vec_concatv2df.
5349
5350 2011-04-07 Jakub Jelinek <jakub@redhat.com>
5351
5352 PR debug/48343
5353 * combine.c (combine_instructions): Add last_combined_insn,
5354 update it if insn is after it, pass it to all try_combine calls.
5355 (try_combine): Add last_combined_insn parameter, pass it instead of
5356 i3 to propagate_for_debug.
5357
5358 2011-04-07 Nick Clifton <nickc@redhat.com>
5359
5360 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5361 to handle MDR <-> data register transfers.
5362 (movhi_internal): Likewise.
5363
5364 2011-04-07 Alan Modra <amodra@gmail.com>
5365
5366 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5367 previous stack info.
5368
5369 2011-04-07 Tom de Vries <tom@codesourcery.com>
5370
5371 PR target/43920
5372 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
5373 flow_find_cross_jump. Swap variables to implement backward replacement.
5374 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5375
5376 2011-04-07 Tom de Vries <tom@codesourcery.com>
5377
5378 PR target/43920
5379 * cfgcleanup.c (walk_to_nondebug_insn): New function.
5380 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
5381 and bb2.
5382 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5383 src1 or src2. Redirect edges to the last basic block. Update
5384 frequency and count on multiple basic blocks in case of fallthru.
5385
5386 2011-04-07 Tom de Vries <tom@codesourcery.com>
5387
5388 PR target/43920
5389 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5390 function.
5391 (old_insns_match_p): Change return type. Replace return false/true
5392 with return dir_none/dir_both. Use can_replace_by.
5393 (flow_find_cross_jump): Add dir_p parameter. Init replacement
5394 direction from dir_p. Register replacement direction in dir, last_dir
5395 and afterlast_dir. Handle new return type of old_insns_match_p using
5396 merge_dir. Return replacement direction in dir_p.
5397 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5398 return type of old_insns_match_p.
5399 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5400 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5401 flow_find_cross_jump.
5402 * basic-block.h (enum replace_direction): New type.
5403 (flow_find_cross_jump): Add parameter to declaration.
5404
5405 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5406
5407 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5408 (AVXMODEDCVTPS2DQ): Ditto.
5409 (VEC_FLOAT_MODE): Ditto.
5410 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
5411 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5412 (<any_logic:code><mode>3): Use VF mode iterator.
5413 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5414 Use VF mode iterator.
5415 (copysign<mode>3): Use VF mode iterator.
5416 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
5417 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5418 (*<any_logic:code><MODEF:mode>3): Merge with
5419 *avx_<any_logic:code><MODEF:mode>3.
5420 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5421 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5422 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5423 (avx_cvtdq2ps<avxmodesuffix>): Remove.
5424 (sse2_cvtdq2ps): Use %v modifier.
5425 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5426 (avx_cvtps2dq<avxmodesuffix>): Remove.
5427 (sse2_cvtps2dq): Use %v modifier.
5428 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5429 (avx_cvttps2dq<avxmodesuffix>): Remove.
5430 (sse2_cvttps2dq): Use %v modifier.
5431 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5432 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5433 (sse2_cvtsd2siq): Fix insn template.
5434 (sse2_cvtsd2siq_2): Ditto.
5435 (sse2_cvttsd2siq): Ditto.
5436 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5437 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5438
5439 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5440
5441 * gcov-io.c: Use GCC Runtime Library Exception.
5442
5443 2011-04-06 Jakub Jelinek <jakub@redhat.com>
5444
5445 PR debug/48466
5446 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5447 as base_reg whatever register reg has been eliminated to, instead
5448 of hardcoding STACK_POINTER_REGNUM.
5449
5450 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5451
5452 * doc/tm.texi.in: Document C target hooks as separate from general
5453 target hooks.
5454 * doc/tm.texi: Regenerate.
5455 * genhooks.c (struct hook_desc): Add docname field.
5456 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
5457 docname field.
5458 (hook_array): Include c-target.def.
5459 (emit_documentation): Use docname field in output.
5460 (emit_init_macros): Take docname argument. Only emit definitions
5461 for hooks matching docname.
5462 (main): Expect additional arguments in all cases. Pass argument
5463 to emit_init_macros.
5464 * target.def: Move initial macro definitions and comments to
5465 target-hooks-macros.h.
5466 (gcc_targetcm): Move to c-family/c-target.def.
5467 * target.h (targetcm): Move declaration to c-family/c-target.h.
5468 * targhooks.c (default_handle_c_option): Move to
5469 c-family/c-opts.c.
5470 * targhooks.h (default_handle_c_option): Move declaration to
5471 c-family/c-common.h.
5472 * target-hooks-macros.h: New file.
5473 * config.gcc (target_has_targetcm): Define and use to add to
5474 c_target_objs and cxx_target_objs.
5475 * config/default-c.c: New file.
5476 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5477 of target.h and target-def.h.
5478 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5479 (darwin_objc_construct_string, darwin_cfstring_ref_p,
5480 darwin_check_cfstring_format_arg): Make static.
5481 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5482 TARGET_STRING_OBJECT_REF_TYPE_P,
5483 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5484 * config/darwin-protos.h (darwin_objc_construct_string,
5485 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5486 declare.
5487 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5488 TARGET_STRING_OBJECT_REF_TYPE_P,
5489 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5490 * config/t-darwin (darwin-c.o): Update dependencies.
5491 * system.h (TARGET_HAS_TARGETCM): Poison.
5492 * Makefile.in (TARGET_H): Update.
5493 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5494 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5495 (default-c.o): New target.
5496 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5497 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5498 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
5499 c-target.def.
5500 (build/genhooks.o): Update dependencies.
5501
5502 2011-04-06 Richard Guenther <rguenther@suse.de>
5503
5504 * ipa-inline.c (enum inlining_mode): Remove.
5505 (cgraph_flatten): Use some other token.
5506 (cgraph_edge_early_inlinable_p): New function, split out from ...
5507 (cgraph_perform_always_inlining): New function, split out from ...
5508 (cgraph_decide_inlining_incrementally): ... here.
5509 (cgraph_mark_inline_edge): Adjust.
5510 (cgraph_early_inlining): Re-structure.
5511 (pass_early_inline): Require SSA form.
5512
5513 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
5514 Julian Brown <julian@codesourcery.com>
5515 Mark Shinwell <shinwell@codesourcery.com>
5516
5517 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5518 LO_REGS only for Thumb-1.
5519 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5520 be used in short instructions when optimising for size on Thumb-2.
5521
5522 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5523
5524 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5525 associated with user returns to be preserved.
5526
5527 2011-04-06 Tristan Gingold <gingold@adacore.com>
5528
5529 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5530 symbol_queue_size, DBXOUT_DECR_NESTING,
5531 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5532 if XCOFF_DEBUGGING_INFO.
5533
5534 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5535
5536 * config/i386/i386.md (attribute isa): New.
5537 (attribute enabled): New.
5538 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5539 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5540 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5541 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5542 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5543 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5544 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5545 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5546
5547 * config/i386/sse.md (VF): New mode iterator.
5548 (VF1): Ditto.
5549 (VF2): Ditto.
5550 (VF_128): Ditto.
5551 (SSEMODEF4): Remove.
5552 (attribute sse): Handle V8SF and V4DF modes.
5553 (<absneg:code><mode>2): Use VF mode iterator.
5554 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
5555 mode iterator.
5556 (<plusminus_insn><mode>3): Use VF mode iterator.
5557 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5558 Use VF mode iterator.
5559 (<sse>_vm<plusminus_insn><mode>3): Merge with
5560 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
5561 (mul<mode>3): Use VF mode iterator.
5562 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
5563 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
5564 mode iterator.
5565 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5566 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5567 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
5568 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
5569 mode iterator.
5570 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5571 Use VF1 mode iterator.
5572 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5573 (sqrt<VF2:mode>2): New expander.
5574 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5575 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5576 and sqrtv2df2. Use VF mode iterator.
5577 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
5578 mode iterator.
5579 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5580 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5581 Use VF1 mode iterator.
5582 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5583 (<smaxmin:code><mode>3): Use VF mode iterator.
5584 (*<smaxmin:code><mode>3_finite): Merge with
5585 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
5586 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5587 (<sse>_vm<smaxmin:code><mode>2): Merge with
5588 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
5589 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
5590 mode iterator.
5591 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
5592 mode iterator.
5593 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5594 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5595 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5596 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5597 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
5598 VF mode iterator.
5599 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5600 Use VF_128 mode iterator.
5601 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
5602 mode iterator.
5603 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
5604 VF_128 mode iterator.
5605 (vcond<mode>): Use VF mode iterator.
5606 * config/i386/predicates.md (sse_comparison_operator): Merge with
5607 avx_comparison_float_operator. Do not declare as special_predicate.
5608 * config/i386/i386.c (struct builtin_description): Update for renamed
5609 compare patterns.
5610 (ix86_expand_args_builtin): Ditto.
5611 (ix86_expand_sse_compare_mask): Ditto.
5612
5613 2011-04-06 Richard Guenther <rguenther@suse.de>
5614
5615 * tree-inline.c (estimate_num_insns): For calls simply account
5616 for all passed arguments and a used return value.
5617
5618 2011-04-06 Richard Guenther <rguenther@suse.de>
5619
5620 PR tree-optimization/47663
5621 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5622 call_stmt_time fields.
5623 (cgraph_edge_inlinable_p): Declare.
5624 (cgraph_edge_recursive_p): New inline function.
5625 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5626 (cgraph_clone_edge): Copy it.
5627 * ipa-inline.c (cgraph_estimate_edge_time): New function.
5628 Account for call stmt time.
5629 (cgraph_estimate_time_after_inlining): Take edge argument.
5630 (cgraph_estimate_edge_growth): Account call stmt size.
5631 (cgraph_estimate_size_after_inlining): Take edge argument.
5632 (cgraph_mark_inline_edge): Adjust.
5633 (cgraph_check_inline_limits): Likewise.
5634 (cgraph_recursive_inlining_p): Remove.
5635 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5636 (cgraph_decide_recursive_inlining): Take edge argument and
5637 adjust.
5638 (cgraph_decide_inlining_of_small_functions): Do not avoid
5639 diags for recursive inlining here.
5640 (cgraph_flatten): Adjust.
5641 (cgraph_decide_inlining_incrementally): Likewise.
5642 (estimate_function_body_sizes): Remove call cost handling.
5643 (compute_inline_parameters): Initialize caller edge call costs.
5644 (cgraph_estimate_edge_growth): New function.
5645 (cgraph_estimate_growth): Use it.
5646 (cgraph_edge_badness): Likewise.
5647 (cgraph_check_inline_limits): Take an edge argument.
5648 (cgraph_decide_inlining_of_small_functions): Adjust.
5649 (cgraph_decide_inlining): Likewise.
5650 * tree-inline.c (estimate_num_insns): Only account for call
5651 return value if it is used.
5652 (expand_call_inline): Avoid diagnostics on recursive inline
5653 functions here.
5654 * lto-cgraph.c (lto_output_edge): Output edge call costs.
5655 (input_edge): Input edge call costs.
5656
5657 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5658
5659 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5660
5661 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5662
5663 * doc/invoke.texi (Spec Files): Fix typo.
5664
5665 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5666
5667 * profile.c (branch_prob): Move declaration of local variable. Remove
5668 obsolete ??? comment. Expand the location explicitly instead of using
5669 the LOCATION_FILE and LOCATION_LINE macros.
5670
5671 2011-04-06 Wei Guozhi <carrot@google.com>
5672
5673 PR target/47855
5674 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5675 (arm_cond_branch): Likewise.
5676 (arm_cond_branch_reversed): Likewise.
5677 (arm_jump): Likewise.
5678 (push_multi): Likewise.
5679 * config/arm/constraints.md (Py): New constraint.
5680
5681 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5682
5683 PR bootstrap/48471
5684 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5685 Move these...
5686 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5687 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5688 #ifdef DBX_DEBUGGING_INFO.
5689
5690 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
5691
5692 PR bootstrap/48403
5693 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5694 if old and new states differ.
5695
5696 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5697
5698 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5699 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5700 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5701 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5702 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5703 mcfv4e): Use Alias.
5704 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5705 ColdFire options to -mcpu= options.
5706
5707 2011-04-05 Jeff Law <law@redhat.com>
5708
5709 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5710 check if BB is a successor of LOOP->header and return
5711 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5712
5713 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5714
5715 * cprop.c (struct reg_use): Remove.
5716 (reg_use_table): Make an array of RTX.
5717 (find_used_regs, constprop_register, local_cprop_pass,
5718 bypass_block): Simplify users of reg_use_table.
5719 (cprop_insn): Likewise. Iterate if copy propagation succeeded
5720 on one of the uses found by find_used_regs.
5721
5722 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5723
5724 PR bootstrap/48469
5725 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5726 declaration.
5727
5728 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5729
5730 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5731 as an rtx.
5732 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5733
5734 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5735
5736 PR middle-end/48441
5737 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5738
5739 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5740
5741 * combine.c: Include obstack.h.
5742 (struct insn_link): Define.
5743 (uid_log_links): Adjust type.
5744 (FOR_EACH_LOG_LINK): New macro.
5745 (insn_link_obstack): Declare.
5746 (alloc_insn_link): Define.
5747 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
5748 type of link variables.
5749 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5750 (try_combine, record_promoted_values, distribute_notes): Likewise.
5751 (distribute_links): Likewise. Tweak prototype.
5752 (clear_log_links): Delete.
5753 (adjust_for_new_dest): Call alloc_insn_link.
5754 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5755
5756 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5757
5758 * gcse.c (modify_mem_list): Convert to an array of VECs.
5759 (canon_modify_mem_list, compute_transp): Tweak formatting.
5760 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
5761 (load_killed_in_block_p): Likewise.
5762 (record_last_mem_set_info): Likewise.
5763 (clear_modify_mem_tables): Likewise.
5764
5765 2011-04-05 Tom de Vries <tom@codesourcery.com>
5766
5767 PR middle-end/48461
5768 * function.c (emit_use_return_register_into_block): Only define if
5769 HAVE_return.
5770
5771 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
5772
5773 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5774
5775 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5776
5777 * config/rx/rx-opts.h: New.
5778 * config/rx/rx.c (rx_cpu_type): Remove.
5779 (rx_handle_option): Don't assert that global structures are in
5780 use. Access variables via opts pointer. Defer most handling of
5781 OPT_mint_register_. Use error_at.
5782 (rx_option_override): Handle deferred OPT_mint_register_ here.
5783 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5784 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5785 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5786 (rx_cpu_types): New Enum and EnumValue entries.
5787 (mint-register=): Use Defer and use Var accordingly.
5788
5789 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5790
5791 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5792 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5793 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5794 Move these...
5795 (debug_free_queue, debug_nesting, symbol_queue_index):
5796 ...and these...
5797 * dbxout.c: ...to here. Make static.
5798
5799 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5800
5801 * gcse.c (modify_pair): Define. Define a VEC of it.
5802 (canon_modify_mem_list): Convert to an array of VECs.
5803 (free_insn_expr_list_list): Delete.
5804 (clear_modify_mem_tables): Call VEC_free instead.
5805 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5806 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5807 (canon_list_insert, compute_transp): Likewise.
5808
5809 2011-04-05 Tom de Vries <tom@codesourcery.com>
5810
5811 PR target/43920
5812 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5813 for size.
5814
5815 2011-04-05 Tom de Vries <tom@codesourcery.com>
5816
5817 PR target/43920
5818 * function.c (emit_use_return_register_into_block): New function.
5819 (thread_prologue_and_epilogue_insns): Use
5820 emit_use_return_register_into_block.
5821
5822 2011-04-05 Tom de Vries <tom@codesourcery.com>
5823
5824 PR target/43920
5825 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5826 insn.
5827
5828 2011-04-05 Tom de Vries <tom@codesourcery.com>
5829
5830 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5831
5832 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
5833
5834 * config/arm/arm.md (define_constants for unspec): Replace with
5835 define_c_enum.
5836 (define_constants for unspecv): Replace with define_c_enum.
5837 * config/arm/neon.md (define_constants for unspec): Replace with
5838 define_c_enum.
5839
5840 2011-04-04 Richard Henderson <rth@redhat.com>
5841
5842 PR bootstrap/48400
5843 * dwarf2out.c (output_line_info): Always emit line info from
5844 at least one section.
5845 (dwarf2out_init): Create text_section_line_info here ...
5846 (set_cur_line_info_table): ... not here.
5847
5848 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
5849
5850 PR target/48380
5851 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5852 not called.
5853
5854 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5855
5856 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
5857
5858 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5859 (expr_equiv_p): Remove.
5860 (insert_set_in_table): Look at <dest, src> pair instead of expr.
5861 (hash_scan_set): Update call to insert_set_in_table.
5862 (dump_hash_table): Dump <dest, src> pair.
5863 (lookup_set): Simplify. Lookup <dest, src> pair.
5864 (compute_transp): Remove, fold heavily simplified code into...
5865 (compute_local_properties): ...here. Expect COMP and TRANSP
5866 unconditionally.
5867 (find_avail_set): Take set directly from struct expr.
5868 (find_bypass-set): Likewise.
5869 (bypass_block): Likewise.
5870 (cprop_insn): Likewise. Remove redundant INSN_P test.
5871
5872 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5873 checks on form of COND from find_implicit_sets to here.
5874 (find_implicit_sets): Cleanup control flow. Split critical edges
5875 if it exposes implicit sets. Allocate/resize implicit_sets as
5876 necessary.
5877 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5878 changed something. Run df_analyze after find_implicit_sets if any
5879 edges were split. Do not allocate implicit_sets here.
5880
5881 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5882 (gcse_obstack): Renamed to cprop_obstack.
5883 (GNEW, GNEWVEC, GNEWVAR): Remove.
5884 (gmalloc): Remove.
5885 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5886 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5887 (gcse_alloc): Likewise, and rename to cprop_alloc.
5888 (alloc_gcse_men, free_gcse_mem): Remove.
5889 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5890 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5891 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5892
5893 * cprop.c (oprs_not_set_p): Remove.
5894 (mark_set, mark_clobber): Remove.
5895 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5896 (reg_not_set_p): New function.
5897 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5898 (cprop_insn): Likewise.
5899 (cprop_jump): Use FOR_EACH_EDGE.
5900
5901 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
5902
5903 PR bootstrap/48403
5904 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5905 (rank_for_schedule): Use scheduled_insns vector instead of
5906 last_scheduled_insn.
5907 (ok_for_early_queue_removal): Likewise.
5908 (queue_to_ready): Search forward in nonscheduled_insns_begin if
5909 we have a dbg_cnt.
5910 (choose_ready): Likewise.
5911 (commit_schedule): Use VEC_iterate.
5912 (schedule_block): Initialize nonscheduled_insns_begin. If we have
5913 a dbg_cnt, use it and ensure the first insn is in the ready list.
5914 (haifa_sched_init): Allocate scheduled_insns.
5915 (sched_extend_ready_list): Don't allocate it; reserve space.
5916 (haifa_sched_finish): Free it.
5917
5918 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5919
5920 * optc-gen.awk: Always remove type from Variable entry before
5921 recording in var_seen.
5922
5923 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
5924
5925 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5926 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5927 call to tidy_fallthru_edges.
5928
5929 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5930
5931 * doc/options.texi (ToLower): Document.
5932 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5933 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5934 * opts.h (cl_option): Add cl_tolower field.
5935 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5936 arguments with lowercase strings.
5937 * config/rx/rx.opt (mcpu=): Add ToLower.
5938 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5939 argument.
5940
5941 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5942
5943 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5944
5945 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5946
5947 * config/vax/vax.c: Include reload.h.
5948
5949 2011-04-04 Anatoly Sokolov <aesok@post.ru>
5950
5951 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5952 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5953 (sparc_preferred_reload_class): New function.
5954
5955 2011-04-04 Jakub Jelinek <jakub@redhat.com>
5956
5957 PR debug/48401
5958 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5959 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5960
5961 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5962
5963 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5964 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5965
5966 2011-04-03 Anatoly Sokolov <aesok@post.ru>
5967
5968 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5969 (ASM_OUTPUT_ALIGNED_BSS): Define.
5970
5971 2011-04-03 Michael Matz <matz@suse.de>
5972
5973 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5974 and next_slot members.
5975 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5976 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5977 (lto_streamer_cache_append): Declare.
5978 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5979 unsigned index, remove offset parameter, ensure that we append
5980 or update existing entries.
5981 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5982 parameter, update next_slot for append.
5983 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5984 parameter.
5985 (lto_streamer_cache_insert_at): Likewise.
5986 (lto_streamer_cache_append): New function.
5987 (lto_streamer_cache_lookup): Use unsigned index.
5988 (lto_streamer_cache_get): Likewise.
5989 (lto_record_common_node): Don't test tree_node_can_be_shared.
5990 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5991 (lto_streamer_cache_delete): Don't free offsets member.
5992 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5993 (lto_output_string_with_length): Use lto_output_data_stream.
5994 (lto_output_tree_header): Remove ix parameter, don't write it.
5995 (lto_output_builtin_tree): Likewise.
5996 (lto_write_tree): Adjust callers to above, don't track and write
5997 offset, write unsigned index.
5998 (output_unreferenced_globals): Don't emit all global vars.
5999 (write_global_references): Use unsigned indices.
6000 (lto_output_decl_state_refs): Likewise.
6001 (write_symbol): Likewise.
6002 * lto-streamer-in.c (lto_input_chain): Move earlier.
6003 (input_function): Use unsigned index.
6004 (input_alias_pairs): Don't read and then ignore all global vars.
6005 (lto_materialize_tree): Remove ix_p parameter, don't read index,
6006 don't pass it back, use lto_streamer_cache_append.
6007 (lto_register_var_decl_in_symtab): Use unsigned index.
6008 (lto_register_function_decl_in_symtab): Likewise.
6009 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6010 index.
6011 (lto_get_builtin_tree): Don't read index, use
6012 lto_streamer_cache_append.
6013 (lto_read_tree): Adjust call to lto_materialize_tree.
6014
6015 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6016 don't use function calls in arguments to MIN.
6017
6018 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6019 twice.
6020
6021 * gimple.c (gimple_type_leader_entry): Mark deletable.
6022
6023 2011-04-03 Alan Modra <amodra@gmail.com>
6024
6025 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6026
6027 2011-04-03 Michael Matz <matz@suse.de>
6028
6029 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6030 an integer.
6031 * tree.h (tree_decl_non_common.vindex): Adjust comment.
6032
6033 2011-04-03 Michael Matz <matz@suse.de>
6034
6035 * cgraphbuild.c (record_reference): Canonicalize constructor values.
6036 * gimple-fold.c (canonicalize_constructor_val): Accept being called
6037 without function context.
6038 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6039 current_function_decl and cfun.
6040
6041 2011-04-03 Michael Matz <matz@suse.de>
6042
6043 * tree.c (decl_init_priority_insert): Don't create entry for
6044 default priority.
6045 (decl_fini_priority_insert): Ditto.
6046 (fields_compatible_p, find_compatible_field): Remove.
6047 * tree.h (fields_compatible_p, find_compatible_field): Remove.
6048 * gimple.c (gimple_compare_field_offset): Adjust block comment.
6049
6050 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
6051
6052 * combine.c (try_combine): Remove useless local variable.
6053
6054 2011-04-03 Richard Guenther <rguenther@suse.de>
6055 Ira Rosen <ira.rosen@linaro.org>
6056
6057 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6058 non-variable offsets and compare the remaining bases of the two
6059 accesses instead of looking for exact same data-ref.
6060
6061 2011-04-02 Kai Tietz <ktietz@redhat.com>
6062
6063 PR target/48416
6064 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6065
6066 * i386.c (ix86_is_msabi_thiscall): New helper function.
6067 (ix86_is_type_thiscall): New helper function.
6068 (ix86_comp_type_attributes): Handle thiscall for method-functions
6069 special.
6070 (init_cumulative_args): Likewise.
6071 (find_drap_reg): Likewise.
6072 (ix86_static_chain): Likewise.
6073 (x86_this_parameter): Likewise.
6074 (x86_output_mi_thunk): Likewise.
6075
6076 2011-04-01 Olivier Hainque <hainque@adacore.com>
6077 Nicolas Setton <setton@adacore.com>
6078 Eric Botcazou <ebotcazou@adacore.com>
6079
6080 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6081 (add_gnat_descriptive_type_attribute): New function.
6082 (gen_array_type_die): Call it.
6083 (gen_enumeration_type_die): Likewise.
6084 (gen_struct_or_union_type_die): Likewise.
6085 (modified_type_die): Likewise.
6086 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6087 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6088 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6089
6090 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6091
6092 PR bootstrap/48148
6093 * dwarf2out.c (resolve_addr): Don't call force_decl_die
6094 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6095
6096 Revert:
6097 2011-03-17 Richard Guenther <rguenther@suse.de>
6098
6099 PR bootstrap/48148
6100 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6101 origin for decls in other ltrans units.
6102 (input_varpool_node): Likewise.
6103
6104 2011-04-01 Jakub Jelinek <jakub@redhat.com>
6105
6106 PR middle-end/48335
6107 * expr.c (expand_assignment): Handle all possibilities
6108 if TO_RTX is CONCAT.
6109 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6110 (store_split_bit_field): If SUBREG_REG (op0) or
6111 op0 itself has smaller mode than word, return it
6112 for offset 0 and const0_rtx for out-of-bounds stores.
6113 If word is const0_rtx, skip it.
6114
6115 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
6116
6117 * config/h8300/h8300.c (print_operand_address): Rename to...
6118 (h8300_print_operand_address): ...this. Make static. Adjust comments.
6119 Call h8300_print_operand and h8300_print_operand_address instead of
6120 print_operand and print_operand_address. Declare.
6121 (print_operand): Renake to...
6122 (h8300_print_operand): ...this. Make static. Adjust comments.
6123 Call h8300_print_operand instead of print_operand. Declare.
6124 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6125 (h8300_register_move_cost): Likewise.
6126 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6127 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6128 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6129 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6130 * config/h8300/h8300-protos.h (print_operand): Delete.
6131 (print_operand_address): Delete.
6132
6133 2011-04-01 Richard Henderson <rth@redhat.com>
6134
6135 PR 48400
6136 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6137 in strict mode before dwarf4. Re-order tests to early out
6138 before switching sections.
6139
6140 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
6141
6142 * config/h8300/constraints.md: New file.
6143 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
6144 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6145 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6146 * config/h8300/predicates.md (bit_operand): Likewise.
6147 (incdec_operand): Use satisfies_constraint_M and
6148 satisfies_constraint_O. Don't use C code block.
6149 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6150 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6151 (compute_mov_length): Use satisfies_constraint_G.
6152 (fix_bit_operand): Use satisfies_constraint_U.
6153 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6154 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6155 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6156 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6157 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6158 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6159 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6160 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6161 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6162 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6163 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6164 (EXTRA_MEMORY_CONSTRAINT): Delete.
6165
6166 2011-04-01 Andrew Pinski <pinskia@gmail.com>
6167 Michael Meissner <meissner@linux.vnet.ibm.com>
6168
6169 PR target/48262
6170 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6171 operands, as per the specifications.
6172
6173 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6174 (vec_extract_evenv4sf): Ditto.
6175 (vec_extract_evenv8hi): Ditto.
6176 (vec_extract_evenv16qi): Ditto.
6177 (vec_extract_oddv4si): Ditto.
6178
6179 2011-03-31 Mark Wielaard <mjw@redhat.com>
6180
6181 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6182 high_pc attribute if the CU has no associated code. Only output
6183 DW_AT_entry_pc for CU if not generating strict dwarf and
6184 dwarf_version < 4.
6185
6186 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
6187
6188 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6189 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6190 out of ...
6191 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6192 * final.c (final_start_function): Call the new function rather
6193 than using a NULL argument for dwarf2out_frame_debug.
6194
6195 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6196 that contains the prologue.
6197
6198 * haifa-sched.c (queue_insn): New arg REASON. All callers
6199 changed. Print it in debugging output.
6200
6201 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6202
6203 * sched-ebb.c (begin_schedule_ready): Remove second argument.
6204 Split most of the code into...
6205 (begin_move_insn): ... here. New function.
6206 (ebb_sched_info): Add a pointer to it.
6207 * haifa-sched.c (scheduled_insns): New static variable.
6208 (sched_extend_ready_list): Allocate it.
6209 (schedule_block): Use it to record the order of scheduled insns.
6210 Perform RTL changes to move insns only after all scheduling
6211 decisions have been made.
6212 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6213 begin_move_insn field.
6214 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6215 * sched-int.h (struct haifa_sched_info): Remove second argument
6216 from begin_schedule_ready hook. Add new member begin_move_insn.
6217 * sched-rgn.c (begin_schedule_ready): Remove second argument.
6218 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6219
6220 * haifa-sched.c (prune_ready_list): New function, broken out of
6221 schedule_block.
6222 (schedule_block): Use it.
6223
6224 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6225
6226 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6227
6228 2011-04-01 Kai Tietz <ktietz@redhat.com>
6229
6230 * config.gcc (*-*-mingw*): Allow as option the
6231 posix threading model.
6232 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
6233 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6234 definition.
6235 (CPP_SPEC): Add pthread/no-pthread handling.
6236 (LIB_SPEC): Likewise.
6237 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6238 (LIB_SPEC): Likewise.
6239 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6240 flag to pass -pthread option for shared libgcc build.
6241 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6242 for shared libgcc build.
6243 * config/i386/t-mingw-pthread: New file.
6244 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6245 New define to enable use of library pthread by default.
6246 * config/i386/mingw.opt (pthread): New driver option.
6247 (no-pthread): New driver option.
6248 * config/i386/cygming.opt: Make sure trailing empty line is retained.
6249 * config/i386/mingw-w64.opt: Likewise.
6250
6251 2011-04-01 Gary Funck <gary@intrepid.com>
6252
6253 * c-decl.c (grokdeclarator): Fix formatting.
6254
6255 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6256
6257 * expr.c (emit_block_move_via_movmem): Use n_generator_args
6258 instead of n_operands.
6259 (set_storage_via_setmem): Likewise.
6260 * optabs.c (maybe_gen_insn): Likewise.
6261 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6262 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6263 (mips_expand_builtin_direct): Likewise.
6264 * config/spu/spu.c (expand_builtin_args): Likewise.
6265
6266 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6267
6268 * recog.h (insn_data_d): Add n_generator_args.
6269 * genoutput.c (data): Likewise.
6270 (output_insn_data): Print it.
6271 (max_opno, num_dups): Delete.
6272 (scan_operands): Just fill in "d->operand[...]".
6273 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6274
6275 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6276
6277 * gensupport.h (pattern_stats): New structure.
6278 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6279 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6280 (max_operand_1, max_operand_vec): Delete.
6281 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6282
6283 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
6284
6285 * emit-rtl.c (emit_pattern_after_setloc): New function.
6286 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6287 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6288 (emit_pattern_after): New function.
6289 (emit_insn_after, emit_jump_insn_after): Call it.
6290 (emit_call_insn_after, emit_debug_insn_after): Likewise.
6291 (emit_pattern_before_setloc): New function.
6292 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6293 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6294 Likewise.
6295 (emit_pattern_before): New function.
6296 (emit_insn_before, emit_jump_insn_before): Call it.
6297 (emit_call_insn_before, emit_debug_insn_before): Likewise.
6298
6299 2011-03-31 Richard Henderson <rth@redhat.com>
6300
6301 * dwarf2out.c (dw_separate_line_info_ref): Remove.
6302 (dw_separate_line_info_entry): Remove.
6303 (enum dw_line_info_opcode): New.
6304 (dw_line_info_entry): Use it.
6305 (dw_line_info_table, dw_line_info_table_p): New.
6306 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6307 (line_info_table, line_info_label_num): Remove.
6308 (line_info_table_in_use): Remove.
6309 (separate_line_info_table): Remove.
6310 (separate_line_info_table_allocated): Remove.
6311 (separate_line_info_table_in_use): Remove.
6312 (LINE_INFO_TABLE_INCREMENT): Remove.
6313 (line_info_label_num): New.
6314 (cur_line_info_table): New.
6315 (text_section_line_info, cold_text_section_line_info): New.
6316 (separate_line_info): New.
6317 (SEPARATE_LINE_CODE_LABEL): Remove.
6318 (print_dwarf_line_table): Remove.
6319 (debug_dwarf): Don't dump it.
6320 (output_one_line_info_table): New.
6321 (output_line_info): Use it.
6322 (new_line_info_table): New.
6323 (set_cur_line_info_table): New.
6324 (dwarf2out_switch_text_section): Use it.
6325 (dwarf2out_begin_function): Likewise.
6326 (push_dw_line_info_entry): New.
6327 (dwarf2out_source_line): Rewrite for new line info tables.
6328 (dwarf2out_init): Remove dead initailizations.
6329
6330 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6331
6332 * opts.h (cl_option): Add comments to fields. Add bit-fields for
6333 various flags.
6334 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6335 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6336 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6337 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6338 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6339 * opt-functions.awk (flag_init, switch_bit_fields): New.
6340 (switch_flags): Don't handle flags moved to bit-fields. Don't
6341 generate CL_MISSING_OK or CL_SAVE.
6342 * optc-gen.awk: Update to generate bit-field output as well as
6343 flags field.
6344 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6345 bit-field instead of CL_REJECT_DRIVER flag.
6346 * opts-common.c (generate_canonical_option,
6347 decode_cmdline_option): Use bit-fields instead of CL_* flags.
6348 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6349 instead of CL_REJECT_NEGATIVE flag.
6350 * toplev.c (print_switch_values): Use cl_report bit-field instead
6351 of CL_REPORT flag.
6352
6353 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6354
6355 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6356 a zero minimum index only if it is redundant.
6357
6358 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
6359
6360 PR rtl-optimization/48381
6361 * ira-color.c (assign_hard_reg): Use hard reg set intersection
6362 instead of ira_class_hard_reg_index for calculating conflicting
6363 hard registers.
6364
6365 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
6366
6367 * cprop.c: Clean up hash table building.
6368 (reg_avail_info): Remove.
6369 (oprs_available_p): Remove.
6370 (record_last_reg_set_info): Remove.
6371 (record_last_set_info): Remove.
6372 (reg_available_p): New function.
6373 (gcse_constant_p): Do not treat unfolded conditions as constants.
6374 (make_set_regs_unavailable): New function.
6375 (hash_scan_set): Simplify with new reg_available_p.
6376 (compute_hash_table_work): Traverse insns stream only once.
6377 Do not compute reg_avail_info. Traverse insns in reverse order.
6378 Record implicit sets after recording explicit sets from the block.
6379
6380 2011-03-31 Michael Matz <matz@suse.de>
6381
6382 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6383
6384 2011-03-31 Anatoly Sokolov <aesok@post.ru>
6385
6386 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6387 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6388 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6389 (h8300_mode_dependent_address_p): New function.
6390 (h8300_get_index): Make static.
6391
6392 2011-03-31 Jeff Law <law@redhat.com>
6393
6394 * reload1.c (elimination_effects): Fix typo in recent change.
6395
6396 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6397 typo potentially leading to null pointer dereference.
6398
6399 * caller-save.c (new_saved_hard_reg): Eliminate return value.
6400 (setup_save_areas): Corresponding changes to avoid useless
6401 assignments.
6402
6403 * jump.c (reversed_comparison_code_parts): Avoid successive return
6404 statements when REVERSE_CONDITION is defined.
6405
6406 * expr.c (expand_assignment): Avoid useless assignments.
6407 (expand_expr_real_1): Likewise.
6408 (expand_expr_real_2): Avoid useless statements.
6409
6410 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6411
6412 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6413
6414 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6415 statements.
6416
6417 * stmt.c (expand_expr_stmt): Avoid useless assignment.
6418
6419 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6420
6421 PR target/47109
6422 * doc/tm.texi.in (TARGET_VERSION): Remove.
6423 * doc/tm.texi: Regenerate.
6424 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6425 * collect2.c (main): Don't use TARGET_VERSION.
6426 * mips-tdump.c (main): Don't use TARGET_VERSION.
6427 * mips-tfile.c (main): Don't use TARGET_VERSION.
6428 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6429 * config/rs6000/vxworksae.h: Remove.
6430 * config/alpha/alpha.h (TARGET_VERSION): Remove.
6431 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6432 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6433 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6434 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6435 * config/arm/arm.h (TARGET_VERSION): Remove.
6436 * config/arm/coff.h (TARGET_VERSION): Remove.
6437 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6438 * config/arm/elf.h (TARGET_VERSION): Remove.
6439 * config/arm/freebsd.h (TARGET_VERSION): Remove.
6440 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6441 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6442 * config/arm/pe.h (TARGET_VERSION): Remove.
6443 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6444 * config/arm/semi.h (TARGET_VERSION): Remove.
6445 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6446 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6447 * config/arm/vxworks.h (TARGET_VERSION): Remove.
6448 * config/avr/avr.h (TARGET_VERSION): Remove.
6449 * config/bfin/bfin.h (TARGET_VERSION): Remove.
6450 * config/fr30/fr30.h (TARGET_VERSION): Remove.
6451 * config/frv/frv.h (TARGET_VERSION): Remove.
6452 * config/h8300/h8300.h (TARGET_VERSION): Remove.
6453 * config/i386/cygwin.h (TARGET_VERSION): Remove.
6454 * config/i386/darwin.h (TARGET_VERSION): Remove.
6455 * config/i386/darwin64.h (TARGET_VERSION): Remove.
6456 * config/i386/djgpp.h (TARGET_VERSION): Remove.
6457 * config/i386/freebsd.h (TARGET_VERSION): Remove.
6458 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6459 * config/i386/gnu.h (TARGET_VERSION): Remove.
6460 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6461 * config/i386/i386elf.h (TARGET_VERSION): Remove.
6462 * config/i386/linux.h (TARGET_VERSION): Remove.
6463 * config/i386/linux64.h (TARGET_VERSION): Remove.
6464 * config/i386/lynx.h (TARGET_VERSION): Remove.
6465 * config/i386/mingw32.h (TARGET_VERSION): Remove.
6466 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6467 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6468 * config/i386/netware.h (TARGET_VERSION): Remove.
6469 * config/i386/nto.h (TARGET_VERSION): Remove.
6470 * config/i386/openbsd.h (TARGET_VERSION): Remove.
6471 * config/i386/vxworks.h (TARGET_VERSION): Remove.
6472 * config/ia64/elf.h (TARGET_VERSION): Remove.
6473 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6474 * config/ia64/hpux.h (TARGET_VERSION): Remove.
6475 * config/ia64/linux.h (TARGET_VERSION): Remove.
6476 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6477 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6478 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6479 * config/lm32/lm32.h (TARGET_VERSION): Remove.
6480 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6481 * config/m32c/m32c.h (TARGET_VERSION): Remove.
6482 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6483 * config/m32r/m32r.h (TARGET_VERSION): Remove.
6484 * config/m68k/linux.h (TARGET_VERSION): Remove.
6485 * config/m68k/m68k.h (TARGET_VERSION): Remove.
6486 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6487 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6488 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6489 * config/mep/mep.h (TARGET_VERSION): Remove.
6490 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6491 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6492 * config/mips/iris6.h (MACHINE_TYPE): Remove.
6493 * config/mips/linux.h (TARGET_VERSION): Remove.
6494 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6495 * config/mips/vxworks.h (TARGET_VERSION): Remove.
6496 * config/mmix/mmix.h (TARGET_VERSION): Remove.
6497 * config/mn10300/linux.h (TARGET_VERSION): Remove.
6498 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6499 * config/pa/pa.h (TARGET_VERSION): Remove.
6500 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6501 * config/picochip/picochip.h (TARGET_VERSION): Remove.
6502 * config/rs6000/aix.h (TARGET_VERSION): Remove.
6503 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6504 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6505 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6506 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6507 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6508 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6509 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6510 * config/rs6000/linux.h (TARGET_VERSION): Remove.
6511 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6512 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6513 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6514 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6515 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6516 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6517 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6518 * config/s390/linux.h (TARGET_VERSION): Remove.
6519 * config/s390/s390.h (TARGET_VERSION): Remove.
6520 * config/s390/tpf.h (TARGET_VERSION): Remove.
6521 * config/score/score.h (TARGET_VERSION): Remove.
6522 * config/sh/linux.h (TARGET_VERSION): Remove.
6523 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6524 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6525 * config/sh/sh.h (TARGET_VERSION): Remove.
6526 * config/sh/sh64.h (TARGET_VERSION): Remove.
6527 * config/sh/superh.h (TARGET_VERSION): Remove.
6528 * config/sh/vxworks.h (TARGET_VERSION): Remove.
6529 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6530 * config/sparc/linux.h (TARGET_VERSION): Remove.
6531 * config/sparc/linux64.h (TARGET_VERSION): Remove.
6532 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6533 TARGET_NAME32, TARGET_NAME): Remove.
6534 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6535 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6536 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6537 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6538 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6539 * config/spu/spu.h (TARGET_VERSION): Remove.
6540 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6541 * config/v850/v850.h (TARGET_VERSION): Remove.
6542 * config/vax/linux.h (TARGET_VERSION): Remove.
6543 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6544 * config/xtensa/elf.h (TARGET_VERSION): Remove.
6545 * config/xtensa/linux.h (TARGET_VERSION): Remove.
6546
6547 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6548
6549 PR target/48142
6550 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6551 frame-related from frame-unrelated adjustments to the stack pointer.
6552
6553 2011-03-31 Jakub Jelinek <jakub@redhat.com>
6554
6555 * common.opt (fdebug-types-section): Move earlier.
6556 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6557
6558 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
6559
6560 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6561 var.
6562
6563 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
6564
6565 * tree.h (CASE_CHAIN): Define.
6566 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6567 (gimple_redirect_edge_and_branch): Likewise.
6568
6569 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6570
6571 PR middle-end/48367
6572 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6573 calculation.
6574
6575 2011-03-30 Jeff Law <law@redhat.com>
6576
6577 * PR bootstrap/48371
6578 * reload1.c (reload): Fix botch in last change.
6579
6580 * reload.h (struct reload): Fix typo introduced in last change.
6581
6582 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6583
6584 * config/arm/arm.opt (mhard-float, msoft-float): Mark
6585 Undocumented. Remove help text.
6586 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6587 -mhard-float.
6588
6589 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6590
6591 * doc/options.texi (NegativeAlias): Document.
6592 (Alias): Mention NegativeAlias.
6593 * opt-functions.awk: Handle NegativeAlias.
6594 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6595 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6596 * opts.h (CL_NEGATIVE_ALIAS): Define.
6597 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6598 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6599 OPT_mspe_.
6600 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6601 Alias entries.
6602 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6603 mno-spe and mno-isel instead of mspe=no and -misel=no.
6604
6605 2011-03-29 Mark Wielaard <mjw@redhat.com>
6606
6607 * common.opt (fdebug-types-section): New flag.
6608 * doc/invoke.texi: Document new -fno-debug-types-section flag.
6609 * dwarf2out.c (use_debug_types): New define.
6610 (struct die_struct): Mark die_id with GTY desc use_debug_types.
6611 (print_die): Guard output of type unit signatures using
6612 use_debug_types.
6613 (build_abbrev_table): Replace assert of dwarf_version >= 4
6614 with assert on use_debug_types.
6615 (size_of_die): Likewise.
6616 (unmark_dies): Likewise.
6617 (value_format): Decide AT_ref_external form on use_debug_types.
6618 (output_die): Replace dwarf_version version check guard with
6619 use_debug_types where appropriate.
6620 (modified_type_die): Likewise.
6621 (gen_reference_type_die): Likewise.
6622 (dwarf2out_start_source_file): Likewise.
6623 (dwarf2out_end_source_file): Likewise.
6624 (prune_unused_types_walk_attribs): Likewise.
6625 (dwarf2out_finish): Likewise.
6626
6627 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6628
6629 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6630
6631 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6632
6633 PR rtl-optimization/48332
6634 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6635 mode of input operand N and modeN to its actual mode.
6636
6637 2011-03-30 Jeff Law <law@redhat.com>
6638
6639 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6640 define accessor macro.
6641 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6642 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6643 (reg_equiv_init): Likewise.
6644 (reg_equivs_size): New variable.
6645 (reg_equiv_init_size): Remove.
6646 (allocate_initial_values): Move prototype to here from....
6647 * integrate.h (allocate_initial_values): Remove prototype.
6648 * integrate.c: Include reload.h.
6649 (allocate_initial_values): Corresponding changes.
6650 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6651 (fix_reg_equiv_init, no_equiv): Corresponding changes.
6652 (update_equiv_regs): Corresponding changes.
6653 (ira): Corresponding changes.
6654 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6655 (push_secondary_reload): Corresponding changes.
6656 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6657 (make_memloc, find_reloads_address): Corresponding changes.
6658 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6659 (find_reloads_address_1): Corresponding changes.
6660 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6661 (refers_to_regno_for_reload_p): Corresponding changes.
6662 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6663 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6664 * reload1.c: Include ggc.h.
6665 (grow_reg_equivs): New function.
6666 (replace_pseudos_in, reload): Corresponding changes.
6667 (calculate_needs_all_insns, alter_regs): Corresponding changes.
6668 (eliminate_regs_1, elimination_effects): Corresponding changes.
6669 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6670 (delete_output_reload): Likewise.
6671 * caller-save.c (mark_referenced_regs): Corresponding changes.
6672 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6673 * frv/predicates.md (frv_load_operand): Corresponding changes.
6674 * microblaze/microblaze.c (double_memory_operand): Corresponding
6675 changes.
6676 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6677 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6678 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6679 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6680 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6681 changes.
6682 * pa/pa.c (emit_move_sequence): Corresponding changes.
6683 * vax/vax.c (nonindexed_address_p): Corresponding changes.
6684
6685 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6686
6687 PR target/47551
6688 * config/arm/arm.c (coproc_secondary_reload_class): Handle
6689 structure modes. Don't check neon_vector_mem_operand for
6690 vector or structure modes.
6691
6692 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6693 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6694
6695 PR target/43590
6696 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6697 operand 1 and reshuffle the operands to match.
6698 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6699
6700 2011-03-30 Christian Schüler <cschueler@gmx.de>
6701
6702 PR driver/48208
6703 * config/c.opt (F): Added 'Driver' to -F option.
6704
6705 PR driver/48260
6706 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6707 handler function.
6708 * config/darwin.opt: Added '-arch' option.
6709
6710 2011-03-30 Nick Clifton <nickc@redhat.com>
6711
6712 * config/rx/rx.md: Add peepholes and patterns to combine
6713 extending loads and simple arithmetic instructions.
6714 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6715 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6716 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6717 modes to use pre-decrement and post-increment addressing.
6718 (rx_is_restricted_memory_address): Add range checking of REG+INT
6719 addresses.
6720 (rx_print_operand): Add support for %Q. Fix handling of %Q.
6721 (rx_memory_move_cost): Adjust cost of stores.
6722 (rx_adjust_insn_length): New function.
6723
6724 2011-03-30 Jakub Jelinek <jakub@redhat.com>
6725
6726 PR c/48305
6727 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6728 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6729 matching arg00/arg01 types.
6730
6731 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
6732
6733 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6734 last_location to UNKNOWN_LOCATION.
6735
6736 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
6737
6738 PR target/48349
6739 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6740 FLOAT_SSE_REGS.
6741
6742 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6743 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6744
6745 PR bootstrap/48337
6746 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6747 Init(PROCESSOR_V7).
6748 (sparc_cpu): Likewise.
6749 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6750 PROCESSOR_V7.
6751
6752 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6753
6754 PR target/48336
6755 PR middle-end/48342
6756 PR rtl-optimization/48345
6757 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6758 hard regs for given mode from profitable regs when doing secondary
6759 allocation.
6760
6761 2011-03-29 Jeff Law <law@redhat.com>
6762
6763 PR bootstrap/48327
6764 * tree-ssa-threadupdate.c (struct redirection_data): Remove
6765 do_not_duplicate field.
6766 (lookup_redirection_data): Corresponding changes.
6767 (create_duplicates): Always create a template block.
6768 (redirect_edges): Remove code which reused the original block
6769 when it was going to become unreachable code.
6770 (thread_block): Don't set do_not_duplicate field.
6771
6772 2011-03-29 Joseph Myers <joseph@codesourcery.com>
6773
6774 * lto-opts.c (register_user_option_p, lto_register_user_option):
6775 Make type argument unsigned.
6776 * lto-streamer.h (lto_register_user_option): Make type argument
6777 unsigned.
6778 * opth-gen.awk: Make CL_* macros unsigned.
6779 * opts-common.c (find_opt): Make lang_mask argument unsigned.
6780 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6781 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6782 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6783 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6784 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6785 (find_opt): Make lang_mask argument unsigned.
6786
6787 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6788
6789 PR rtl-optimization/48331
6790 PR rtl-optimization/48334
6791 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6792 for any used algorithm.
6793
6794 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6795
6796 * ira-conflicts.c (build_object_conflicts): Add unused attribute
6797 to parent_max.
6798
6799 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
6800
6801 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6802 (alpha_option_override): Don't set alpha_sr_alias_set.
6803 (emit_frame_store_1): Use gen_frame_mem rather than calling
6804 set_mem_alias_set.
6805 (alpha_expand_epilogue): Ditto.
6806
6807 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
6808
6809 PR tree-optimization/48290
6810 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6811 vectorization, check that relevant phis in the basic block after
6812 the inner loop are really inner loop's exit phis.
6813
6814 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
6815
6816 PR debug/48190
6817 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6818 (cached_dw_loc_list_def): New structure.
6819 (cached_dw_loc_list): New typedef.
6820 (cached_dw_loc_list_table): New variable.
6821 (cached_dw_loc_list_table_hash): New function.
6822 (cached_dw_loc_list_table_eq): Likewise.
6823 (add_location_or_const_value_attribute): Take a bool cache_p.
6824 Cache the list when the parameter is true.
6825 (gen_formal_parameter_die): Update caller.
6826 (gen_variable_die): Likewise.
6827 (dwarf2out_finish): Likewise.
6828 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6829 while generating debug info for the decl.
6830 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6831 (dwarf2out_init): Initialize cached_dw_loc_list_table.
6832 (resolve_addr): Cache the result of resolving a chain of
6833 location lists.
6834
6835 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
6836
6837 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6838 conflict object hard regset nodes have intersecting hard reg sets.
6839
6840 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6841 after regstat_init_n_sets_and_refs.
6842
6843 * ira.c: Add more comments at the top.
6844 (setup_stack_reg_pressure_class, setup_pressure_classes):
6845 Add comments how we compute the register pressure classes.
6846 (setup_allocno_and_important_classes): Add more comments.
6847 (setup_class_translate_array, reorder_important_classes)
6848 (setup_reg_class_relations): Add comments.
6849
6850 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
6851 start of the file.
6852
6853 * ira-color.c: Add 2011 to the Copyright line.
6854 (assign_hard_reg): Add more comments.
6855 (improve_allocation): Ditto.
6856
6857 * ira-costs.c: Add 2011 to the Copyright line.
6858 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6859 comments.
6860 (setup_regno_cost_classes_by_mode): Ditto.
6861
6862 Initial patches from ira-improv branch:
6863
6864 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6865
6866 * ira-build.c (ira_create_object): Remove initialization of
6867 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
6868 (ira_create_allocno): Remove initialization of
6869 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6870 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6871 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6872 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6873 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6874 Initialize ALLOCNO_ADD_DATA.
6875 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6876 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6877 ALLOCNO_REG.
6878 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
6879 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6880
6881 * ira.c (ira_reallocate): Remove.
6882 (setup_pressure_classes): Call
6883 ira_init_register_move_cost_if_necessary. Use
6884 ira_register_move_cost instead of ira_get_register_move_cost.
6885 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6886 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6887
6888 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6889 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6890 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6891 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6892 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6893 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6894 Fix formatting.
6895 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6896 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6897 (struct allocno_color_data): New.
6898 (allocno_color_data_t): New typedef.
6899 (allocno_color_data): New definition.
6900 (ALLOCNO_COLOR_DATA): New macro.
6901 (struct object_color_data): New.
6902 (object_color_data_t): New typedef.
6903 (object_color_data): New definition.
6904 (OBJECT_COLOR_DATA): New macro.
6905 (update_copy_costs, calculate_allocno_spill_cost): Call
6906 ira_init_register_move_cost_if_necessary. Use
6907 ira_register_move_cost instead of ira_get_register_move_cost.
6908 (move_spill_restore, update_curr_costs): Ditto.
6909 (allocno_spill_priority): Make it inline.
6910 (color_pass): Allocate and free allocno_color_dat and object_color_data.
6911 (struct coalesce_data, coalesce_data_t): New.
6912 (allocno_coalesce_data): New definition.
6913 (ALLOCNO_COALESCE_DATA): New macro.
6914 (merge_allocnos, coalesced_allocno_conflict_p): Use
6915 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6916 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6917 (coalesce_allocnos): Ditto.
6918 (setup_coalesced_allocno_costs_and_nums): Ditto.
6919 (collect_spilled_coalesced_allocnos): Ditto.
6920 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6921 (setup_slot_coalesced_allocno_live_ranges): Ditto.
6922 (coalesce_spill_slots): Ditto.
6923 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
6924 free allocno_coalesce_data.
6925
6926 * ira-conflicts.c: Fix formatting.
6927 (process_regs_for_copy): Call
6928 ira_init_register_move_cost_if_necessary. Use
6929 ira_register_move_cost instead of ira_get_register_move_cost.
6930 (build_object_conflicts): Optimize.
6931
6932 * ira-costs.c (record_reg_classes): Optimize. Call
6933 ira_init_register_move_cost_if_necessary. Use
6934 ira_register_move_cost, ira_may_move_in_cost, and
6935 ira_may_move_out_cost instead of ira_get_register_move_cost and
6936 ira_get_may_move_cost.
6937 (record_address_regs): Ditto.
6938 (scan_one_insn): Optimize.
6939 (find_costs_and_classes): Optimize.
6940 (process_bb_node_for_hard_reg_moves): Call
6941 ira_init_register_move_cost_if_necessary. Use
6942 ira_register_move_cost instead of ira_get_register_move_cost.
6943
6944 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6945 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6946 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6947 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6948 definitions.
6949 (ira_initiate_emit_data, ira_finish_emit_data)
6950 (create_new_allocno): New functions.
6951 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6952 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6953 Use ira_register_move_cost instead of ira_get_register_move_cost.
6954
6955 * ira-int.h: Fix some comments.
6956 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6957 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6958 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6959 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6960 add_data.
6961 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6962 bitfield after mode. Make hard_regno a short int. Make
6963 hard_regno short. Remove first_coalesced_allocno and
6964 next_coalesced_allocno. Move mem_optimized_dest_p,
6965 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6966 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6967 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6968 temp, colorable_p. Add new member add_data.
6969 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6970 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6971 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6972 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6973 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6974 (ALLOCNO_ADD_DATA): New macro.
6975 (ira_emit_data_t): New typedef.
6976 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6977 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6978 from struct ira_allocno.
6979 (ALLOCNO_EMIT_DATA): New macro.
6980 (ira_allocno_emit_data, allocno_emit_reg): New.
6981 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6982 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6983 (OBJECT_ADD_DATA): New macro.
6984 (ira_reallocate): Remove.
6985 (ira_initiate_emit_data, ira_finish_emit_data): New.
6986 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6987 (ira_init_register_move_cost_if_necessary): New.
6988 (ira_object_conflict_iter_next): Merge into
6989 ira_object_conflict_iter_cond.
6990 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6991
6992 * ira-live.c (process_single_reg_class_operands): Call
6993 ira_init_register_move_cost_if_necessary. Use
6994 ira_register_move_cost instead of ira_get_register_move_cost.
6995
6996 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6997
6998 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6999
7000 * ira-costs.c: Fix formatting.
7001 (cost_classes, cost_classes_num): Remove.
7002 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7003 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7004 (cost_classes_del, cost_classes_htab): New.
7005 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7006 (initiate_regno_cost_classes, setup_cost_classes): New.
7007 (setup_regno_cost_classes_by_aclass): New.
7008 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7009 (record_reg_classes): Use regno_cost_classes instead of
7010 cost_classes. Move checking opposite operand up.
7011 (record_address_regs): Use regno_cost_classes
7012 instead of cost_classes.
7013 (scan_one_insn): Ditto. Use always general register.
7014 (print_allocno_costs): Use regno_cost_classes instead of
7015 cost_classes.
7016 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
7017 (find_costs_and_classes): Set up cost classes for each registers.
7018 Use also their mode for this. Use regno_cost_classes instead of
7019 cost_classes.
7020 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7021 cost_classes.
7022 (free_ira_costs, ira_init_costs): Don't use cost_classes.
7023 (ira_costs, ira_set_pseudo_classes): Call
7024 initiate_regno_cost_classes and finish_regno_cost_classes.
7025
7026 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
7027
7028 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7029
7030 * target.def (ira_cover_classes): Remove.
7031
7032 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7033
7034 * doc/tm.texi.in: Ditto.
7035
7036 * ira-conflicts.c: Remove mentioning cover classes from the file.
7037 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7038 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
7039
7040 * targhooks.c (default_ira_cover_classes): Remove.
7041
7042 * targhooks.h (default_ira_cover_classes): Ditto.
7043
7044 * haifa-sched.c: Remove mentioning cover classes from the file.
7045 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7046 ira_pressure_classes and ira_pressure_classes_num instead of
7047 ira_reg_class_cover_size and ira_reg_class_cover. Use
7048 sched_regno_pressure_class instead of sched_regno_cover_class.
7049 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7050 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7051
7052 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
7053 classes from the file.
7054 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7055 (struct object_hard_regs, struct object_hard_regs_node): New.
7056 (struct ira_object): New members profitable_hard_regs,
7057 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7058 (struct ira_allocno): Rename cover_class to aclass. Rename
7059 cover_class_cost and updated_cover_class_cost to class_cost and
7060 updated_class_cost. Remove splay_removed_p and
7061 left_conflict_size. Add new members colorable_p.
7062 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7063 (ALLOCNO_COLORABLE_P): New macro.
7064 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7065 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7066 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7067 (OBJECT_...): Rename parameter C to O.
7068 (OBJECT_PROFITABLE_HARD_REGS): New macro.
7069 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7070 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7071 (struct target_ira_int): New members x_ira_max_memory_move_cost,
7072 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7073 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7074 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7075 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
7076 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
7077 x_ira_reg_class_subunion.
7078 (ira_max_memory_move_cost, ira_max_register_move_cost)
7079 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7080 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7081 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7082 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7083 (ira_reg_class_union): Rename to ira_reg_class_subunion.
7084 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7085 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7086 (ira_tune_allocno_costs_and_cover_classes): Rename to
7087 ira_tune_allocno_costs.
7088 (ira_debug_hard_regs_forest): New.
7089 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7090 (ira_object_conflict_iter_next): Fix comments.
7091 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7092 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7093 cover_class to aclass.
7094 (ira_allocate_and_accumulate_costs): Ditto.
7095 (ira_allocate_and_set_or_copy_costs): Ditto.
7096
7097 * opts.c (decode_options): Remove ira_cover_class check.
7098
7099 * ira-color.c: Remove mentioning cover classes from the file. Use
7100 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7101 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7102 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7103 (splay-tree.h): Remove include.
7104 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7105 before copy_freq_compare_func.
7106 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7107 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7108 New definitions.
7109 (hard_regs_roots, hard_regs_node_vec): Ditto.
7110 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7111 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7112 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7113 (create_new_object_hard_regs_node): Ditto.
7114 (add_new_object_hard_regs_node_to_forest): Ditto.
7115 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7116 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7117 Ditto.
7118 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7119 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7120 (remove_unused_object_hard_regs_nodes): Ditto.
7121 (enumerate_object_hard_regs_nodes): Ditto.
7122 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7123 (object_hard_regs_subnode_t): Ditto.
7124 (struct object_hard_regs_subnode): Ditto.
7125 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7126 (setup_object_hard_regs_subnode_index): Ditto.
7127 (get_object_hard_regs_subnodes_num): Ditto.
7128 (form_object_hard_regs_nodes_forest): Ditto.
7129 (finish_object_hard_regs_nodes_tree): Ditto.
7130 (finish_object_hard_regs_nodes_forest): Ditto.
7131 (allocnos_have_intersected_live_ranges_p): Rename to
7132 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7133 (pseudos_have_intersected_live_ranges_p): Rename to
7134 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7135 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7136 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7137 (update_copy_costs): Remove assert. Skip cost update if the hard
7138 reg does not belong the class.
7139 (assign_hard_reg): Process only profitable hard regs.
7140 (uncolorable_allocnos_num): Make it scalar.
7141 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7142 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7143 and ira_reg_class_max_nregs.
7144 (bucket_allocno_compare_func): Check frequency first.
7145 (sort_bucket): Add compare function as a parameter.
7146 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7147 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7148 (push_allocno_to_stack): Rewrite for checking new allocno
7149 colorability.
7150 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
7151 (push_only_colorable): Pass new parameter to sort_bucket.
7152 (push_allocno_to_spill): Remove.
7153 (allocno_spill_priority_compare): Make it inline and rewrite.
7154 (splay_tree_allocate, splay_tree_free): Remove.
7155 (allocno_spill_sort_compare): New function.
7156 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
7157 build and use splay tree. Choose first allocno in uncolorable
7158 allocno bucket to spill. Remove setting spill cost.
7159 (all_conflicting_hard_regs): Remove.
7160 (setup_allocno_available_regs_num): Check only profitable hard
7161 regs. Print info about hard regs nodes.
7162 (setup_allocno_left_conflicts_size): Remove.
7163 (put_allocno_into_bucket): Don't call
7164 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
7165 (improve_allocation): New.
7166 (color_allocnos): Call setup_profitable_hard_regs,
7167 form_object_hard_regs_nodes_forest, improve_allocation,
7168 finish_object_hard_regs_nodes_forest. Setup spill cost.
7169 (print_loop_title): Use pressure classes.
7170 (color_allocnso): Ditto.
7171 (do_coloring): Remove allocation and freeing splay_tree_node_pool
7172 and allocnos_for_spilling.
7173 (ira_sort_regnos_for_alter_reg): Don't setup members
7174 {first,next}_coalesced_allocno.
7175 (color): Remove allocating and freeing removed_splay_allocno_vec.
7176 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7177 prohibited_class_mode_regs.
7178
7179 * ira-lives.c: Remove mentioning cover classes from the file. Fix
7180 formatting.
7181 (update_allocno_pressure_excess_length): Use pressure classes.
7182 (inc_register_pressure, dec_register_pressure): Check for pressure
7183 class.
7184 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7185 pressure class. Use ira_reg_class_nregs instead of
7186 ira_reg_class_max_nregs.
7187 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7188 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7189 (single_reg_class): Use ira_reg_class_nregs instead of
7190 ira_reg_class_max_nregs.
7191 (process_bb_node_lives): Use pressure classes.
7192
7193 * ira-emit.c: Remove mentioning cover classes from the file. Use
7194 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
7195 (change_loop): Use pressure classes.
7196 (modify_move_list): Call ira_set_allocno_class instead of
7197 ira_set_allocno_cover_class.
7198
7199 * ira-build.c: Remove mentioning cover classes from the file. Use
7200 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7201 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
7202 ALLOCNO_UPDATED_CLASS_COST instead of
7203 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7204 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7205 (ira_create_allocno): Remove initialization of
7206 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
7207 ALLOCNO_COLORABLE_P.
7208 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7209 Update conflict regs for the objects.
7210 (create_cap_allocno): Remove assert. Don't propagate
7211 ALLOCNO_AVAILABLE_REGS_NUM.
7212 (ira_free_allocno_costs): New function.
7213 (finish_allocno): Change a part of code into call of
7214 ira_free_allocno_costs.
7215 (low_pressure_loop_node_p): Use pressure classes.
7216 (object_range_compare_func): Don't compare classes.
7217 (setup_min_max_conflict_allocno_ids): Ditto.
7218
7219 * loop-invariant.c: Remove mentioning cover classes from the file.
7220 Use ira_pressure_classes and ira_pressure_classes_num instead of
7221 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7222 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7223 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7224 Use reg_allocno_class instead of reg_cover_class.
7225 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7226 STACK_REG_COVER_CLASS.
7227 (get_regno_cover_class): Rename to get_regno_pressure_class.
7228 (move_loop_invariants): Initialize and finalize regstat.
7229
7230 * ira.c: Remove mentioning cover classes from the file. Add
7231 comments about coloring without cover classes. Use ALLOCNO_CLASS
7232 instead of ALLOCNO_COVER_CLASS. Fix formatting.
7233 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7234 setup_class_subset_and_memory_move_costs.
7235 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7236 (setup_cover_and_important_classes): Rename to
7237 setup_allocno_and_important_classes.
7238 (setup_class_translate_array): New.
7239 (setup_class_translate): Call it for allocno and pressure classes.
7240 (cover_class_order): Rename to allocno_class_order.
7241 (comp_reg_classes_func): Use ira_allocno_class_translate instead
7242 of ira_class_translate.
7243 (reorder_important_classes): Set up ira_important_class_nums.
7244 (setup_reg_class_relations): Set up ira_reg_class_superunion.
7245 (print_class_cover): Rename to print_classes. Add parameter.
7246 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7247 Print pressure classes too.
7248 (find_reg_class_closure): Rename to find_reg_classes. Don't call
7249 setup_reg_subclasses.
7250 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7251 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7252 (setup_prohibited_class_mode_regs): Use
7253 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7254 (clarify_prohibited_class_mode_regs): New function.
7255 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7256 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7257 (ira_init_once): Initialize them.
7258 (free_register_move_costs): Process them.
7259 (ira_init): Move calls of find_reg_classes and
7260 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7261 Call clarify_prohibited_class_mode_regs.
7262 (ira_no_alloc_reg): Remove.
7263 (too_high_register_pressure_p): Use pressure classes.
7264
7265 * sched-deps.c: Remove mentioning cover classes from the file.
7266 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7267 ira_pressure_classes and ira_pressure_classes_num instead of
7268 ira_reg_class_cover_size and ira_reg_class_cover.
7269 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7270 sched_regno_pressure_class instead of sched_regno_cover_class.
7271 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
7272 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7273
7274 * ira.h: Add 2010 to Copyright.
7275 (ira_no_alloc_reg): Remove external.
7276 (struct target_ira): Rename x_ira_hard_regno_cover_class,
7277 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7278 x_ira_class_translate to x_ira_hard_regno_allocno_class,
7279 x_ira_allocno_classes_num, x_ira_allocno_classes, and
7280 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
7281 x_ira_pressure_classes, x_ira_pressure_class_translate, and
7282 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
7283 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
7284 x_ira_no_alloc_regs.
7285 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7286 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7287 ira_allocno_classes_num and ira_allocno_classes.
7288 (ira_class_translate): Rename to ira_allocno_class_translate.
7289 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7290 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7291 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7292 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7293 (ira_no_alloc_regs): New.
7294
7295 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
7296 classes from the file. Use ALLOCNO_CLASS instead of
7297 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
7298 ALLOCNO_COVER_CLASS_COST.
7299 (regno_cover_class): Rename to regno_aclass.
7300 (record_reg_classes): Use ira_reg_class_subunion instead of
7301 ira_reg_class_union.
7302 (record_address_regs): Check overflow.
7303 (scan_one_insn): Ditto.
7304 (print_allocno_costs): Print total mem cost fore regional allocation.
7305 (print_pseudo_costs): Use REG_N_REFS.
7306 (find_costs_and_classes): Use classes intersected with them on the
7307 1st pass. Check overflow. Use ira_reg_class_subunion instead of
7308 ira_reg_class_union. Use ira_allocno_class_translate and
7309 regno_aclass instead of ira_class_translate and regno_cover_class.
7310 Modify code for finding regno_aclass. Setup preferred classes for
7311 the next pass.
7312 (setup_allocno_cover_class_and_costs): Rename to
7313 setup_allocno_class_and_costs. Use regno_aclass instead of
7314 regno_cover_class. Use ira_set_allocno_class instead of
7315 ira_set_allocno_cover_class.
7316 (init_costs, finish_costs): Use regno_aclass instead of
7317 regno_cover_class.
7318 (ira_costs): Use setup_allocno_class_and_costs instead of
7319 setup_allocno_cover_class_and_costs.
7320 (ira_tune_allocno_costs_and_cover_classes): Rename to
7321 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
7322 by processing objects. Use ira_reg_class_max_nregs instead of
7323 ira_reg_class_nregs.
7324
7325 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7326
7327 * sched-int.h: Remove mentioning cover classes from the file.
7328 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7329
7330 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
7331 classes from the file.
7332 (struct reg_pref): Rename coverclass into allocnoclass.
7333 (reg_cover_class): Rename to reg_allocno_class.
7334
7335 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7336
7337 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7338
7339 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7340
7341 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7342
7343 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7344
7345 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7346
7347 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7348
7349 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7350
7351 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7352
7353 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7354
7355 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7356 (i386_ira_cover_classes): Ditto.
7357
7358 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7359
7360 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7361
7362 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7363
7364 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7365
7366 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7367
7368 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7369
7370 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7371 (mips_ira_cover_classes): Ditto.
7372
7373 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7374
7375 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7376
7377 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7378
7379 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7380
7381 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7382
7383 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7384 (IRA_COVER_CLASSES_VSX): Ditto.
7385
7386 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7387 (rs6000_ira_cover_classes): Ditto.
7388
7389 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7390
7391 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7392
7393 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7394
7395 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7396
7397 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7398
7399 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7400
7401 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7402
7403 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7404
7405 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7406
7407 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7408
7409 2011-03-29 Jakub Jelinek <jakub@redhat.com>
7410
7411 PR debug/48253
7412 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7413 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7414 dw_fde_unlikely_section_end_label, cold_in_std_section,
7415 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7416 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7417 fields.
7418 (output_fde): Use dw_fde_second_{begin,end} if second is
7419 true, otherwise dw_fde_{begin,end}.
7420 (output_call_frame_info): Test dw_fde_second_begin != NULL
7421 instead of dw_fde_switched_sections.
7422 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7423 fields, initialize new fields. Initialize in_std_section
7424 unconditionally from the first partition.
7425 (dwarf2out_end_epilogue): Don't override dw_fde_end when
7426 dw_fde_second_begin is non-NULL.
7427 (dwarf2out_switch_text_section): Stop initializing removed
7428 dw_fde_struct fields, initialize new fields, initialize
7429 also dw_fde_end here. Set dw_fde_switch_cfi even when
7430 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
7431 (struct var_loc_list_def): Add last_before_switch field.
7432 (arange_table, arange_table_allocated, arange_table_in_use,
7433 ARANGE_TABLE_INCREMENT, add_arange): Removed.
7434 (size_of_aranges): Count !in_std_section and !second_in_std_section
7435 hunks in fdes, instead of looking at arange_table_in_use.
7436 (output_aranges): Add aranges_length argument, don't call
7437 size_of_aranges here. Instead of using aranges_table*
7438 emit ranges for fdes when !in_std_section resp.
7439 !second_in_std_section.
7440 (dw_loc_list): Break ranges crossing section switch.
7441 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7442 use dw_fde_second_end instead of dw_fde_end as end of last range.
7443 (gen_subprogram_die): Don't call add_arange. Use
7444 dw_fde_{begin,end} for first partition and if switched
7445 section dw_fde_second_{begin,end} for the second.
7446 (var_location_switch_text_section_1,
7447 var_location_switch_text_section): New functions.
7448 (dwarf2out_begin_function): Initialize cold_text_section even
7449 when function_section () isn't text_section.
7450 (prune_unused_types): Don't walk arange_table.
7451 (dwarf2out_finish): Don't needlessly test
7452 flag_reorder_blocks_and_partition when testing cold_text_section_used.
7453 If info_section_emitted, call size_of_aranges and if it indicates
7454 non-empty .debug_aranges, call output_aranges with the computed
7455 size. Stop using removed dw_fde_struct fields, use
7456 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7457 for second.
7458
7459 PR debug/48203
7460 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7461 create ENTRY_VALUE if incoming or address of incoming's MEM
7462 is a hard REG.
7463 * dwarf2out.c (mem_loc_descriptor): Don't emit
7464 DW_OP_GNU_entry_value of DW_OP_fbreg.
7465 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7466 on ENTRY_VALUE is able to find the canonical parameter VALUE.
7467 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7468 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7469 ENTRY_VALUE_EXPs.
7470 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7471 is a REG_P or MEM_P with REG_P address, compute hash directly
7472 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7473 (preserve_only_constants): Don't clear VALUES forwaring
7474 ENTRY_VALUE to some other VALUE.
7475
7476 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
7477
7478 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7479 instead of GEN_INT.
7480
7481 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7482
7483 * cfgexpand.c (expand_gimple_cond): Always set the source location and
7484 block before expanding the statement.
7485 (expand_gimple_stmt_1): Likewise. Set them here...
7486 (expand_gimple_stmt): ...and not here. Tidy.
7487 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7488 unknown.
7489
7490 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7491
7492 * Makefile.in: New rule for cprop.o.
7493 * gcse.c: Move constant/copy propagation to cprop.c.
7494 (compute_local_properties): Only handle expression tables.
7495 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7496 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7497 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7498 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7499 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7500 compute_cprop_data, find_used_regs, try_replace_reg,
7501 find_avail_set, cprop_jump, constprop_register, cprop_insn,
7502 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7503 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7504 find_bypass_set, reg_killed_on_edge, bypass_block,
7505 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7506 execute_rtl_cprop, pass_rtl_cprop): Move to...
7507 * cprop.c: ...here. New file, constant/copy propagation for RTL
7508 moved from gcse.c to here with minor cleanups in duplicated code.
7509
7510 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
7511
7512 * config/i386/i386.c (flag_opts): Fix a typo in
7513 -mavx256-split-unaligned-store.
7514
7515 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7516
7517 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7518 LIBCALL_VALUE): Remove macros.
7519 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7520 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7521 (h8300_function_value, h8300_libcall_value,
7522 h8300_function_value_regno_p): New functions.
7523
7524 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7525
7526 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7527
7528 2011-03-28 Jeff Law <law@redhat.com>
7529
7530 * tree-ssa-threadupdate.c (redirect_edges): Call
7531 create_edge_and_update_destination_phis as needed.
7532 (create_edge_and_update_destination_phis): Accept new BB argument.
7533 All callers updated.
7534 (thread_block): Do not update the profile when threading around
7535 intermediate blocks.
7536 (thread_single_edge): Likewise.
7537 (determine_bb_domination_status): If BB is not a successor of the
7538 loop header, return NONDOMINATING.
7539 (register_jump_thread): Note when we register a jump thread around
7540 an intermediate block.
7541 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7542 (thread_across_edge): Use it.
7543
7544 2011-03-28 Tristan Gingold <gingold@adacore.com>
7545
7546 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7547 when for_return is 2.
7548
7549 2011-03-28 Jeff Law <law@redhat.com>
7550
7551 * var-tracking.c (canonicalize_values_mark): Delete unused
7552 lhs assignment.
7553 (canonicalize_values_star, set_variable_part): Likewise.
7554 (clobber_variable_part, delete_variable_part): Likewise.
7555
7556 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7557
7558 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7559
7560 2011-03-28 Martin Jambor <mjambor@suse.cz>
7561
7562 * tree-inline.c (expand_call_inline): Do not check that destination
7563 node is analyzed.
7564 (optimize_inline_calls): Assert that destination node is analyzed.
7565 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7566 not call tree_lowering_passes.
7567 * cgraph.h (cgraph_analyze_function): Declare.
7568 * cgraphunit.c (cgraph_analyze_function): Make public.
7569
7570 2011-03-28 Joseph Myers <joseph@codesourcery.com>
7571
7572 * config/sparc/sparc-opts.h: New.
7573 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7574 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7575 (sparc_option_override): Store processor_type enumeration rather
7576 than string in cpu_default. Remove name and enumeration from
7577 cpu_table. Directly default -mcpu then default -mtune from -mcpu
7578 without using sparc_select. Use target_flags_explicit instead of
7579 fpu_option_set.
7580 * config/sparc/sparc.h (enum processor_type): Move to
7581 sparc-opts.h.
7582 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7583 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7584 HeaderInclude entry.
7585 (mcpu=, mtune=): Use Var and Enum.
7586 (sparc_processor_type): New Enum and EnumValue entries.
7587
7588 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7589 Iain Sandoe <iains@gcc.gnu.org>
7590
7591 PR target/48245
7592 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7593
7594 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7595
7596 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7597 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7598 Insert new statements at it in lieu of STMT.
7599 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7600 * tree-vect-stmts.c (vectorizable_store): Likewise.
7601 (vectorizable_load): Likewise.
7602
7603 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
7604
7605 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7606 (divtf3): Ditto.
7607 (multf3): Ditto.
7608 (subtf3): Ditto.
7609
7610 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7611
7612 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7613 unaligned 256bit load/store.
7614 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7615 (*avx_movdqu<avxmodesuffix>): Likewise.
7616
7617 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7618
7619 PR target/48288
7620 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7621 * config/pa/pa.md (iordi3): Use new predicate in expander.
7622 (iorsi3): Likewise.
7623
7624 2011-03-27 Anatoly Sokolov <aesok@post.ru>
7625
7626 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7627 FUNCTION_VALUE_REGNO_P): Remove macros.
7628 * config/mips/mips-protos.h (mips_function_value): Remove.
7629 * config/mips/mips.c (mips_function_value): Rename to...
7630 (mips_function_value_1): ... this. Make static. Handle receiving
7631 the function type in 'fn_decl_or_type' argument.
7632 (mips_function_value, mips_libcall_value,
7633 mips_function_value_regno_p): New function.
7634 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7635 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7636
7637 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7638
7639 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7640 and -mavx256-split-unaligned-store.
7641 (ix86_option_override_internal): Split 32-byte AVX unaligned
7642 load/store by default.
7643 (ix86_avx256_split_vector_move_misalign): New.
7644 (ix86_expand_vector_move_misalign): Use it.
7645
7646 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7647 -mavx256-split-unaligned-store.
7648
7649 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7650 256bit load/store. Generate unaligned store on misaligned memory
7651 operand.
7652 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7653 256bit load/store.
7654 (*avx_movdqu<avxmodesuffix>): Likewise.
7655
7656 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7657 -mavx256-split-unaligned-store.
7658
7659 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7660
7661 PR target/38598
7662 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7663 Update commentary.
7664
7665 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7666
7667 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7668 opno arguments with an expand_operand. Use create_input_operand.
7669 (mips_prepare_builtin_target): Delete.
7670 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7671 functions.
7672 (mips_expand_builtin_direct): Use create_output_operand and
7673 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
7674 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
7675 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7676
7677 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
7678
7679 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7680 function.
7681 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7682
7683 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7684
7685 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7686 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
7687 basic blocks and call commit_edge_insertions directly.
7688 (fixup_abnormal_edges): Move from here to...
7689 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
7690 on the edges and return whether some have actually been inserted.
7691 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7692 compensation code.
7693
7694 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
7695
7696 PR rtl-optimization/48144
7697 * sel-sched-ir.c (merge_history_vect): Factor out from ...
7698 (merge_expr_data): ... here.
7699 (av_set_intersect): Rename to av_set_code_motion_filter.
7700 Update all callers. Call merge_history_vect when an expression
7701 is found in both sets.
7702 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7703
7704 2011-03-26 Alan Modra <amodra@gmail.com>
7705
7706 * config/rs6000/predicates.md (word_offset_memref_op): Handle
7707 cmodel medium addresses.
7708 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7709 64-bit gpr loads and stores.
7710 (rs6000_secondary_reload_ppc64): New function.
7711 * config/rs6000/rs6000-protos.h: Declare it.
7712 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7713
7714 2011-03-26 Alan Modra <amodra@gmail.com>
7715
7716 PR target/47487
7717 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7718 GNU Go in traceback table.
7719
7720 2011-03-25 Richard Henderson <rth@redhat.com>
7721
7722 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7723 if there are exactly 6 operands.
7724 (set_storage_via_setmem): Similarly.
7725
7726 2011-03-25 Kai Tietz <ktietz@redhat.com>
7727
7728 * collect2.c (write_c_file_stat): Handle backslash
7729 as right-hand directory separator.
7730 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7731 checking just for slash.
7732 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7733 instead of checking for trailing slash.
7734 * gcc.c (record_temp_file): Use filename_cmp instead
7735 of strcmp.
7736 (do_spec_1): Likewise.
7737 (replace_outfile_spec_function): Likewise.
7738 (is_directory): Use filename_ncmp instead of strncmp.
7739 (print_multilib_info): Likewise.
7740 * gcov.c (find_source): Use filename_cmp instead
7741 instead of strcmp.
7742 (make_gcov_file_name): Fix order of slash/backslash
7743 checks.
7744 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7745 (add_standard_paths): Likewise.
7746 * mips-tfile.c (saber_stop): Handle backslash.
7747 * prefix.c (update_path): Use filename_ncmp instead of
7748 strncmp.
7749 * profile.c (output_location): Use filename_cmp instead
7750 of strcmp.
7751 * read-md.c (handle_toplevel_file): Handle backslash.
7752 * tlink.c (frob_extension): Likewise.
7753 * tree-cfg.c (same_line_p): Use filename_cmp instead of
7754 strcmp.
7755 * tree-dump.c (dequeue_and_dump): Handle backslash.
7756 * tree.c (get_file_function_name): Likewise.
7757 * gengtype.c (read_input_list): Likewise.
7758 (get_file_realbasename): Likewise.
7759 (get_output_file_with_visibility): Use filename_cmp
7760 instead of strcmp.
7761
7762 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
7763
7764 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7765 case to VFPv1.
7766
7767 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7768
7769 * fold-const.c (expr_location_or): New function.
7770 (fold_truth_not_expr): Call it.
7771
7772 2011-03-25 Jeff Law <law@redhat.com>
7773
7774 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7775 va_end.
7776 * c-family/c-common.c (def_fn_type): Likewise.
7777 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7778 * emit-rtl.c (gen_rtvec): Likewise.
7779 * lto/lto-lang.c (def_fn_type): Likewise.
7780
7781 2011-03-25 Richard Guenther <rguenther@suse.de>
7782
7783 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7784 also generate copies.
7785 (fini_copy_prop): Handle constant values properly.
7786
7787 2011-03-25 Jakub Jelinek <jakub@redhat.com>
7788
7789 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7790 mode size instead of bitsize with DWARF2_ADDR_SIZE.
7791 (hash_loc_operands, compare_loc_operands): Handle
7792 DW_OP_GNU_entry_value.
7793
7794 2011-03-25 Kai Tietz <ktietz@redhat.com>
7795
7796 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7797 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7798 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7799 comment and use macro TARGET_64BIT_MS_ABI instead.
7800 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7801 and change default behavior for 32-bit MS_ABI.
7802 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7803 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7804 32-bit, too.
7805 (ix86_cfun_abi): Likewise.
7806 (ix86_maybe_switch_abi): Adjust comment.
7807 (init_cumulative_args): Check for bit-ness in MS_ABI case.
7808 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7809 instead of checking for SYSV_ABI.
7810 (ix86_nsaved_sseregs): Likewise.
7811 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7812 to 16 bytes.
7813 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7814 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7815 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7816 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7817 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7818
7819 2011-03-25 Richard Guenther <rguenther@suse.de>
7820
7821 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7822 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7823 (verify_gimple): Remove.
7824 * tree-cfg.c (verify_gimple_call): Merge verification
7825 from verify_stmts.
7826 (verify_gimple_phi): Merge verification from verify_stmts.
7827 (verify_gimple_label): New function.
7828 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7829 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7830 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7831 (verify_stmts): Rename to verify_gimple_in_cfg.
7832 (verify_gimple_in_cfg): New function.
7833 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7834 * tree-ssa.c (verify_ssa): Likewise.
7835 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7836
7837 2011-03-25 Richard Guenther <rguenther@suse.de>
7838
7839 * passes.c (init_optimization_passes): Add FRE pass after
7840 early SRA.
7841
7842 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
7843 Andrew Stubbs <ams@codesourcery.com>
7844
7845 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7846 for Cortex-A8.
7847 (arm_movdi_vfp_cortexa8): New pattern.
7848 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7849 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7850 instructions when tuning for Cortex-A8. Set attribute "arch".
7851 * config/arm/arm.md: Move include arm-tune.md up a bit.
7852 (define_attr "arch"): Add "onlya8" and "nota8" values.
7853 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7854
7855 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7856
7857 PR bootstrap/48282
7858 Revert:
7859 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7860
7861 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7862 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7863 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7864 * passes.c (init_optimization_passes): Move
7865 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7866
7867 2011-03-25 Kai Tietz <ktietz@redhat.com>
7868
7869 * c-typeck.c (comptypes_internal): Replace target
7870 hook call of comp_type_attributes by version in tree.c file.
7871 * gimple.c (gimple_types_compatible_p_1): Likewise.
7872 * tree-ssa.c (useless_type_conversion_p): Likewise.
7873 * tree.c (build_type_attribute_qual_variant): Likewise.
7874 (attribute_value_equal): New static helper function.
7875 (comp_type_attributes): New function.
7876 (merge_attributes): Use attribute_value_equal for comparison.
7877 (attribute_list_contained): Likewise.
7878 * tree.h (comp_type_attributes): New prototype.
7879
7880 2011-03-25 Richard Guenther <rguenther@suse.de>
7881
7882 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7883 of complex types at -O0.
7884 (verify_gimple_assign_binary): Likewise.
7885 (verify_gimple_assign_ternary): Likewise.
7886
7887 2011-03-24 Mark Wielaard <mjw@redhat.com>
7888
7889 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7890 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7891
7892 2011-03-24 Mark Wielaard <mjw@redhat.com>
7893
7894 PR debug/48041
7895 * dwarf2out.c (output_abbrev_section): Only write table when
7896 abbrev_die_table_in_use > 1.
7897
7898 2011-02-24 Richard Henderson <rth@redhat.com>
7899
7900 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7901 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7902 (alpha_expand_unaligned_load_words): Use extql.
7903 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7904 (emit_insxl): Handle all modes for consistency.
7905
7906 2011-02-24 Richard Henderson <rth@redhat.com>
7907
7908 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7909 (alpha_expand_unaligned_load): Likewise.
7910 (alpha_expand_unaligned_store): Likewise.
7911 (alpha_expand_unaligned_load_words): Likewise.
7912 (alpha_expand_unaligned_store_words): Likewise.
7913 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7914 (alpha_split_lock_test_and_set_12): Likewise.
7915 (print_operand, alpha_fold_builtin_extxx): Likewise.
7916 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7917 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7918 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7919 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7920 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7921 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7922 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7923 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7924 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7925 (extwl, extll, extql): Similarly.
7926 (inswh, inslh, insqh): Similarly.
7927 (mskbl, mskwl, mskll, mskql): Similarly.
7928 (mskwh, msklh, mskqh): Similarly.
7929
7930 2011-02-24 Richard Henderson <rth@redhat.com>
7931
7932 * config/alpha/alpha.md (attribute isa): Add er, ner.
7933 (attribute enabled): Handle them.
7934 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7935
7936 2011-02-24 Richard Henderson <rth@redhat.com>
7937
7938 * config/alpha/alpha.md (attribute isa): Add vms.
7939 (attribute enabled): Handle it.
7940 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7941 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7942 (*movtf): Rename from *movtf_internal for consistency.
7943 (*movsi): Merge with *movsi_nt_vms.
7944 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7945 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7946 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7947 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7948
7949 2011-02-24 Richard Henderson <rth@redhat.com>
7950
7951 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7952 (extendqisi2, extendhisi2): Likewise.
7953 (extendqidi2): Simplify BWX/non-BWX expansions.
7954 (extendhidi2): Similarly.
7955
7956 2011-02-24 Richard Henderson <rth@redhat.com>
7957
7958 * config/alpha/alpha.md (attribute isa): New.
7959 (attribute enabled): New.
7960 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7961 (zero_extendqisi2, zero_extendqidi2): Similarly.
7962 (zero_extendhisi2, zero_extendhidi2): Similarly.
7963 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7964
7965 2011-02-24 Richard Henderson <rth@redhat.com>
7966
7967 * config/alpha/predicates.md (input_operand): Revert last change;
7968 update comment to mention 32-bit VMS rather than Windows.
7969
7970 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7971
7972 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7973 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7974 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7975 * passes.c (init_optimization_passes): Move
7976 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7977
7978 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7979
7980 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7981
7982 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7983
7984 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7985 correctly.
7986
7987 2011-03-24 Jakub Jelinek <jakub@redhat.com>
7988
7989 PR debug/48204
7990 * simplify-rtx.c (simplify_const_unary_operation): Call
7991 real_convert when changing mode class with FLOAT_EXTEND.
7992
7993 2011-03-24 Nick Clifton <nickc@redhat.com>
7994
7995 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7996 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7997 * config/rx/rx.c (rx_option_override): Set align_jumps,
7998 align_loops and align_labels if not set by the user.
7999 (rx_align_for_label): New function.
8000 (rx_max_skip_for_label): New function.
8001 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8002 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8003 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8004 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8005 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8006
8007 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8008
8009 PR rtl-optimization/48263
8010 * optabs.c (expand_binop_directly): Reinstate convert_modes code
8011 and original commutative_p handling. Use maybe_gen_insn.
8012
8013 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8014
8015 * reload.c (find_reloads_subreg_address): Add address_reloaded
8016 parameter and return true there if the full address has been
8017 reloaded.
8018 (find_reloads_toplev): Pass address_reloaded flag.
8019 (find_reloads_address_1): Don't use address_reloaded parameter.
8020
8021 2011-03-24 Jeff Law <law@redhat.com>
8022
8023 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8024 unused variable "ann".
8025 (remove_unused_locals): Likewise.
8026
8027 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8028 statement.
8029
8030 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8031 after it is freed.
8032
8033 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8034
8035 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8036 for invalid symbolic addresses.
8037 (s390_secondary_reload): Don't use s390_check_symref_alignment for
8038 larl operands.
8039
8040 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8041
8042 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8043 the argument in calls to fold_truth_not_expr.
8044
8045 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8046
8047 * tree.c (record_node_allocation_statistics): New function.
8048 (make_node_stat, copy_node_stat, build_string): Call it.
8049 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8050 (build1_stat, build_omp_clause): Likewise.
8051
8052 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8053
8054 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8055 last commit.
8056
8057 2011-03-24 Richard Guenther <rguenther@suse.de>
8058
8059 PR tree-optimization/48271
8060 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8061 blocks that still exist.
8062
8063 2011-03-24 Richard Guenther <rguenther@suse.de>
8064
8065 PR tree-optimization/48270
8066 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8067 not free datarefs before ddrs.
8068
8069 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8070
8071 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8072 from the address built for a reference with variable offset.
8073
8074 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
8075
8076 PR target/48237
8077 * config/i386/i386.md (*movdf_internal_rex64): Do not split
8078 alternatives that can be handled with movq or movabsq insn.
8079 (*movdf_internal): Disable for !TARGET_64BIT.
8080 (*movdf_internal_nointeger): Ditto.
8081 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8082
8083 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8084
8085 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8086 (FUNCTION_ARG_ADVANCE): Likewise.
8087 * tm.texi.in: Change references to them to hook references.
8088 * tm.texi: Regenerate.
8089 * targhooks.c (default_function_arg): Eliminate check for target macro.
8090 (default_function_incoming_arg): Likewise.
8091 (default_function_arg_advance): Likewise.
8092 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8093 (function_arg_advance): Likewise.
8094 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8095
8096 2011-03-24 Richard Guenther <rguenther@suse.de>
8097
8098 PR middle-end/48269
8099 * tree-object-size.c (addr_object_size): Do not double-account
8100 for MEM_REF offsets.
8101
8102 2011-03-24 Diego Novillo <dnovillo@google.com>
8103
8104 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8105 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8106 (lto_input_data_block): Move from lto-opts.c. Make extern.
8107 Update all users.
8108 (lto_input_string): Rename from input_string. Make extern.
8109 Update all users.
8110 * lto-streamer-out.c (lto_output_string_with_length): Rename from
8111 output_string_with_length.
8112 Output 0 to indicate a non-NULL string. Update all callers to
8113 not emit 0.
8114 (lto_output_string): Rename from output_string. Make extern.
8115 Update all users.
8116 (lto_output_decl_state_streams): Make extern.
8117 (lto_output_decl_state_refs): Make extern.
8118 * lto-streamer.h (lto_input_string): Declare.
8119 (lto_input_data_block): Declare.
8120 (lto_output_string): Declare.
8121 (lto_output_string_with_length): Declare.
8122 (lto_output_decl_state_streams): Declare.
8123 (lto_output_decl_state_refs): Declare.
8124
8125 2011-03-24 Richard Guenther <rguenther@suse.de>
8126
8127 PR tree-optimization/46562
8128 * tree.c (build_invariant_address): New function.
8129 * tree.h (build_invariant_address): Declare.
8130 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8131 a renamed function moved ...
8132 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8133 Take valueization callback parameter.
8134 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8135 * gimple-fold.h: New file.
8136 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8137 (ccp_fold, fold_const_aggregate_ref,
8138 fold_ctor_reference, fold_nonarray_ctor_reference,
8139 fold_array_ctor_reference, fold_string_cst_ctor_reference,
8140 get_base_constructor): Move ...
8141 * gimple-fold.c: ... here.
8142 (gimple_fold_stmt_to_constant_1): New function
8143 split out from ccp_fold. Take a valueization callback parameter.
8144 Valueize all operands.
8145 (gimple_fold_stmt_to_constant): New wrapper function.
8146 (fold_const_aggregate_ref_1): New function split out from
8147 fold_const_aggregate_ref. Take a valueization callback parameter.
8148 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8149 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8150 invariant POINTER_PLUS_EXPRs to invariant form.
8151 (vn_valueize): New function.
8152 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8153 * tree-vrp.c (vrp_valueize): New function.
8154 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8155 to fold statements to constants.
8156 * tree-ssa-pre.c (eliminate): Properly guard propagation of
8157 function declarations.
8158 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8159 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8160
8161 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8162
8163 * config/h8300/predicates.md (jump_address_operand): Fix register
8164 mode check.
8165
8166 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
8167
8168 * doc/invoke.texi (max-stores-to-sink): Document.
8169 * params.h (MAX_STORES_TO_SINK): Define.
8170 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8171 if either vectorization or if-conversion is disabled.
8172 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8173 tree-vect-data-refs.c vect_equal_offsets.
8174 (dr_equal_offsets_p): New function.
8175 (find_data_references_in_bb): Remove static.
8176 * tree-data-ref.h (find_data_references_in_bb): Declare.
8177 (dr_equal_offsets_p): Likewise.
8178 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8179 (vect_drs_dependent_in_basic_block): Update calls to
8180 vect_equal_offsets.
8181 (vect_check_interleaving): Likewise.
8182 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8183 (cond_if_else_store_replacement): Rename to...
8184 (cond_if_else_store_replacement_1): ... this. Change arguments and
8185 documentation.
8186 (cond_if_else_store_replacement): New function.
8187 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8188 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8189
8190 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
8191
8192 PR target/46934
8193 * config/arm/arm.md (casesi): Use the gen_int_mode() function
8194 to subtract lower bound instead of GEN_INT().
8195
8196 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
8197
8198 PR other/48179
8199 PR other/48221
8200 PR other/48234
8201 * doc/extend.texi (Alignment): Move section to match order in TOC.
8202 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8203 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8204
8205 2011-03-23 Jeff Law <law@redhat.com>
8206
8207 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8208 before removing the edge.
8209
8210 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8211 it may have been freed by redirect_branch_edge or
8212 redirect_edge_succ_nodup.
8213
8214 2011-03-23 Richard Guenther <rguenther@suse.de>
8215
8216 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8217 (check_va_list_escapes): Likewise.
8218 (check_all_va_list_escapes): Likewise.
8219
8220 2011-03-23 Richard Guenther <rguenther@suse.de>
8221
8222 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8223 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8224 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8225 (alias.o): Likewise.
8226 (ipa-type-escape.o): Remove.
8227 (ipa-struct-reorg.o): Likewise.
8228 (GTFILES): Remove ipa-struct-reorg.c.
8229 * alias.c: Do not include ipa-type-escape.h.
8230 * tree-ssa-alias.c: Likewise.
8231 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8232 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8233 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8234 and ipa-type-escape passes.
8235 * tree-pass.h (pass_ipa_type_escape): Remove.
8236 (pass_ipa_struct_reorg): Likewise.
8237 * ipa-struct-reorg.h: Remove.
8238 * ipa-struct-reorg.c: Likewise.
8239 * ipa-type-escape.h: Likewise.
8240 * ipa-type-escape.c: Likewise.
8241 * doc/invoke.texi (-fipa-struct-reorg): Remove.
8242 (--param struct-reorg-cold-struct-ratio): Likewise.
8243 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8244 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8245 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8246
8247 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8248
8249 * config/s390/2084.md: Enable all insn reservations also for z9_ec
8250 cpu attribute value.
8251 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8252 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8253 * config/s390/s390.c (processor_flags_table): New constant array.
8254 (s390_handle_arch_option): Remove.
8255 (s390_handle_option): Remove s390_handle_arch_option invocations
8256 and OPT_mwarn_framesize_ handling.
8257 (s390_option_override): Remove s390_handle_arch_option invocation.
8258 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8259 warnings.
8260 * config/s390/s390.md (cpu attribute): Add z9_ec value.
8261 * config/s390/s390.opt (s390_tune, s390_arch)
8262 (march=): Replace s390_arch_option enum and values with
8263 processor_type. Set variable name to s390_arch. Set
8264 initialization value.
8265 (mtune=): Replace s390_arch_option with processor_type. Set
8266 variable name to s390_tune. Set initialization value.
8267
8268 2011-03-23 Julian Brown <julian@codesourcery.com>
8269
8270 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8271 accesses which are not naturally aligned.
8272
8273 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8274
8275 PR target/47553
8276 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8277
8278 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8279
8280 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8281 parameter from "int" to "enum insn_code".
8282 (expand_operand_type): New enum.
8283 (expand_operand): New structure.
8284 (create_expand_operand): New function.
8285 (create_fixed_operand, create_output_operand): Likewise
8286 (create_input_operand, create_convert_operand_to): Likewise.
8287 (create_convert_operand_from, create_address_operand): Likewise.
8288 (create_integer_operand): Likewise.
8289 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8290 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8291 (expand_insn, expand_jump_insn): Likewise.
8292 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8293 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8294 (expand_movstr, expand_builtin___clear_cache): Likewise.
8295 (expand_builtin_lock_release): Likewise.
8296 * explow.c (allocate_dynamic_stack_space): Likewise.
8297 (probe_stack_range): Likewise. Allow check_stack to FAIL,
8298 and use the default handling in that case.
8299 * expmed.c (check_predicate_volatile_ok): Delete.
8300 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8301 (emit_cstore): Likewise.
8302 * expr.c (emit_block_move_via_movmem): Likewise.
8303 (set_storage_via_setmem, expand_assignment): Likewise.
8304 (emit_storent_insn, try_casesi): Likewise.
8305 (emit_single_push_insn): Likewise. Allow the expansion to fail.
8306 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8307 (expand_vec_shift_expr, expand_binop_directly): Likewise.
8308 (expand_twoval_unop, expand_twoval_binop): Likewise.
8309 (expand_unop_direct, emit_indirect_jump): Likewise.
8310 (emit_conditional_move, vector_compare_rtx): Likewise.
8311 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8312 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8313 (expand_sync_lock_test_and_set): Likewise.
8314 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
8315 (emit_unop_insn): Likewise.
8316 (expand_copysign_absneg): Change icode to an insn_code.
8317 (create_convert_operand_from_type): New function.
8318 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8319 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8320 (expand_insn, expand_jump_insn): Likewise.
8321 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8322 than const_int_operand for operand 2.
8323
8324 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8325
8326 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8327 if possible.
8328
8329 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8330
8331 * emit-rtl.c (emit_pattern_before_noloc): New function.
8332 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8333 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8334 (emit_pattern_after_noloc): New function.
8335 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8336 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8337
8338 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8339
8340 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8341 (__ffsDI2): Likewise.
8342
8343 2011-03-22 Richard Henderson <rth@redhat.com>
8344
8345 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8346 of !TARGET_ABI_OPEN_VMS.
8347 (alpha_trampoline_init, alpha_start_function): Likewise.
8348 (alpha_expand_epilogue, alpha_file_start): Likewise.
8349 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8350 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8351 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8352 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8353 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8354
8355 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8356
8357 * config/s390/s390-opts.h: New.
8358 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8359 s390_arch_flags, s390_warn_framesize, s390_stack_size,
8360 s390_stack_guard): Remove.
8361 (s390_handle_arch_option): Return void. Take enum
8362 s390_arch_option value instead of string and searching array.
8363 (s390_handle_option): Don't assert that global structures are in
8364 use. Access variables via opts pointer. Use error_at. Don't use
8365 sscanf for -mstack-guard= or -mstack-size=. Update call to
8366 s390_handle_arch_option.
8367 (s390_option_override): Update call to s390_handle_arch_option.
8368 (s390_emit_prologue): Use %d format for s390_stack_size in
8369 diagnostic. Use %wd for HOST_WIDE_INT.
8370 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8371 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8372 * config/s390/s390.opt (config/s390/s390-opts.h): New
8373 HeaderInclude entry.
8374 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8375 s390_arch_flags, s390_warn_framesize): New Variable entries.
8376 (s390_arch_option): New Enum and EnumValue entries.
8377 (march=): Use Enum instead of Var.
8378 (mstack-guard=, mstack-size=): Use UInteger and Var.
8379 (mtune=): Use Enum.
8380
8381 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8382
8383 * config/score/score.c (score_handle_option): Don't assert that
8384 global structures are in use. Access target_flags via opts
8385 pointer. Use value of -march= option to determine target_flags
8386 settings.
8387 * config/score/score.opt (march=): Use Enum.
8388 (score_arch): New Enum and EnumValue entries.
8389
8390 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8391
8392 * config/mep/mep.c (option_mtiny_specified): Remove.
8393 (mep_option_override): Move register handling for -mivc2 from
8394 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
8395 instead of option_mtiny_specified.
8396 (mep_handle_option): Access target_flags via opts pointer. Don't
8397 assert that global structures are in use. Defer part of -mivc2
8398 handling and move it to mep_option_override.
8399 * config/mep/mep.opt (IVC2): New Mask entry.
8400 (mivc2): Use Var and Defer instead of Mask.
8401
8402 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8403
8404 * config/v850/v850-opts.h: New.
8405 * config/v850/v850.c (small_memory): Replace with
8406 small_memory_physical_max array. Make that array static const.
8407 (v850_handle_memory_option): Take integer value of argument. Take
8408 gcc_options pointer, option text and location. Return void.
8409 Update for changes to small memory structures.
8410 (v850_handle_option): Access target_flags via opts pointer. Don't
8411 assert that global structures are in use. Update calls to
8412 v850_handle_memory_option.
8413 (v850_encode_data_area): Update references to small memory settings.
8414 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8415 (enum small_memory_type): Move to v850-opts.h.
8416 * config/v850/v850.opt (config/v850/v850-opts.h): New
8417 HeaderInclude entry.
8418 (small_memory_max): New Variable entry.
8419 (msda): Replace by pair of options msda= and msda-. Use UInteger.
8420 (mtda, mzda): Likewise.
8421
8422 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8423
8424 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8425 pointer. Don't assert that global structures are in use.
8426
8427 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8428
8429 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8430 via opts pointer. Don't assert that global structures are in use.
8431
8432 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8433
8434 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8435 (munix=93): Use Var.
8436 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8437 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8438 * config/pa/pa-opts.h: New.
8439 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8440 (pa_handle_option): Don't assert that global structures are in
8441 use. Access target_flags via opts pointer. Don't handle
8442 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8443 OPT_munix_98 here.
8444 (pa_option_override): Handle deferred OPT_mfixed_range_.
8445
8446 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8447
8448 * config/mn10300/mn10300-opts.h: New.
8449 * config/mn10300/mn10300.c (mn10300_processor,
8450 mn10300_tune_string): Remove.
8451 (mn10300_handle_option): Don't assert that global structures are
8452 in use. Access mn10300_processor via opts pointer. Don't handle
8453 OPT_mtune_ here.
8454 * config/mn10300/mn10300.h (enum processor_type): Move to
8455 mn10300-opts.h.
8456 (mn10300_processor): Remove.
8457 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8458 HeaderInclude entry.
8459 (mn10300_processor): New Variable entry.
8460 (mtune=): Use Var.
8461
8462 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8463
8464 * config/microblaze/microblaze.c: Don't include opts.h.
8465 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8466 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8467 (mno-clearbss): Use Var and Warn.
8468
8469 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8470
8471 * config/m32r/m32r-opts.h: New.
8472 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8473 (m32r_handle_option): Don't assert that global structures are in
8474 use. Access target_flags and m32r_cache_flush_func via opts
8475 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
8476 OPT_mno_flush_trap here.
8477 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8478 include of m32r-opts.h.
8479 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8480 HeaderInclude entry.
8481 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8482 (mmodel=): Use Enum and Var.
8483 (m32r_model): New Enum and EnumValue entries.
8484 (mno-flush-trap): Use Var.
8485 (msdata=): Use Enum and Var.
8486 (m32r_sdata): New Enum and EnumValue entries.
8487
8488 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8489
8490 * config/m32c/m32c.c: Don't include opts.h.
8491 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8492 m32c_handle_option): Remove.
8493 (m32c_option_override): Check global_options_set.x_target_memregs
8494 instead of target_memregs_set.
8495 * config/m32c/m32c.h (target_memregs): Remove.
8496 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8497 variable.
8498
8499 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8500
8501 * config/iq2000/iq2000-opts.h: New.
8502 * config/iq2000/iq2000.c: Don't include opts.h.
8503 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8504 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8505 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8506 HeaderInclude entry.
8507 (iq2000_tune): New Variable entry.
8508 (march=): Add comment. Use Enum.
8509 (iq2000_arch): New Enum and EnumValue entries.
8510 (mcpu=): Use Enum and Var.
8511 (iq2000_tune): New Enum and EnumValue entries.
8512
8513 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8514
8515 * config/ia64/ia64-opts.h: New.
8516 * config/ia64/ia64.c (ia64_tune): Remove.
8517 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8518 here. Use error_at.
8519 (ia64_option_override): Handle deferred OPT_mfixed_range_.
8520 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8521 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8522 HeaderInclude entry.
8523 (ia64_tune): New Variable entry.
8524 (mfixed-range=): Use Defer and Var.
8525 (mtune=): Use Enum and Var.
8526 (ia64_tune): New Enum and EnumValue entries.
8527
8528 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8529
8530 * config/frv/frv-opts.h: New.
8531 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8532 frv-opts.h.
8533 (frv_cpu_type): Remove.
8534 * config/frv/frv.c: Don't include opts.h.
8535 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8536 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8537 (frv_cpu_type): New Variable entry.
8538 (frv_cpu): New Enum and EnumValue entries.
8539
8540 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8541
8542 * config/cris/cris.c (cris_handle_option): Access target_flags via
8543 opts pointer. Don't assert that global structures are in use.
8544 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8545 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8546
8547 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8548
8549 * config/bfin/bfin-opts.h: New.
8550 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8551 bfin_si_revision, bfin_workarounds): Remove.
8552 (bfin_cpus): Make static const.
8553 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8554 not bfin_lib_id_given.
8555 (bfin_handle_option): Don't set bfin_lib_id_given. Access
8556 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8557 pointer. Use error_at. Don't assert that global structures are in use.
8558 * config/bfin/bfin.h: Include bfin-opts.h.
8559 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8560 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8561 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8562 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8563 entries.
8564
8565 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8566
8567 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8568 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8569 or -msoft-float here.
8570 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8571 -msoft-float and -mhard-float.
8572 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8573 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8574 msoft-float.
8575 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8576 -msoft-float.
8577 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8578 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8579 not mhard-float.
8580 (LIBGCC_SPEC): Don't handle -msoft-float.
8581 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8582 -mhard-float.
8583 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8584 msoft-float.
8585 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8586 -mfloat-abi=*, not -msoft-float and -mhard-float.
8587 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8588 -msoft-float.
8589 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8590 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8591 mhard-float and msoft-float.
8592 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8593 mfloat-abi=soft in comments, not mhard-float and msoft-float.
8594 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8595 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8596 mhard-float.
8597 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8598 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8599 msoft-float.
8600 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8601 not mhard-float.
8602 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8603 not msoft-float.
8604
8605 2011-03-22 Richard Henderson <rth@redhat.com>
8606
8607 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8608 TARGET_ABI_WINDOWS_NT.
8609 (alpha_output_function_end_prologue): Likewise.
8610 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8611 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8612 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8613 (trap, *movsi_nt_vms): Likewise.
8614 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8615 (*tablejump_osf_nt_internal): Remove.
8616 * config/alpha/predicates.md (input_operand): Only test Pmode.
8617
8618 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8619
8620 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8621 via opts pointer. Use error_at. Don't assert that global
8622 structures are in use.
8623
8624 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8625
8626 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8627 (ix86_handle_option): Access ix86_isa_flags and
8628 ix86_isa_flags_explicit via opts pointer. Don't assert that
8629 global structures are in use.
8630 (ix86_function_specific_save, ix86_function_specific_restore):
8631 Update ix86_isa_flags_explicit field name.
8632 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8633 (ix86_isa_flags_explicit): Rename TargetSave entry to
8634 x_ix86_isa_flags_explicit.
8635
8636 2011-03-22 Richard Henderson <rth@redhat.com>
8637
8638 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8639 (alpha_option_override, direct_return): Likewise.
8640 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8641 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8642 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8643 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8644 (alpha_expand_epilogue, alpha_end_function): Likewise.
8645 (alpha_init_libfuncs): Likewise.
8646 (struct machine_function): Remove unicosmk members.
8647 (print_operand) ['t']: Remove.
8648 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8649 unicosmk_output_module_name, unicosmk_output_common,
8650 current_section_align, unicosmk_output_text_section_asm_op,
8651 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8652 unicosmk_section_type_flags, unicosmk_unique_section,
8653 unicosmk_asm_named_section, unicosmk_insert_attributes,
8654 unicosmk_output_align, unicosmk_defer_case_vector,
8655 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8656 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8657 unicosmk_output_ssib, unicosmk_add_call_info_word,
8658 unicosmk_extern_head, unicosmk_output_default_externs,
8659 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8660 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8661 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8662 * config/alpha/alpha-protos.h: Update.
8663 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8664 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8665 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8666 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8667 (*mulsi_se, mulvsi3): Likewise.
8668 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8669 (*divmodsi_internal, call, call_value, realign): Likewise.
8670 (moddi3, umoddi3): Likewise; remove duplicate expander.
8671 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8672 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8673 (*movdi_nofix): Remove r/U alternative.
8674 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8675 * config/alpha/constraints.md ("U"): Remove.
8676 * config/alpha/predicates.md (call_operand"): Don't test
8677 TARGET_ABI_UNICOSMK.
8678
8679 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8680
8681 * target.def (handle_option): Take gcc_options and
8682 cl_decoded_option pointers and location_t.
8683 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8684 * doc/tm.texi: Regenerate.
8685 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8686 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8687 * lto-opts.c (lto_reissue_options): Generate option structure for
8688 targetm.handle_option call.
8689 * opts.c (target_handle_option): Update call to
8690 targetm.handle_option. Remove assertions about values now passed
8691 down to hook.
8692 * targhooks.c (default_target_handle_option): New.
8693 * targhooks.h (default_target_handle_option): Declare.
8694 * config/alpha/alpha.c: Include opts.h.
8695 (alpha_handle_option): Update to new hook interface.
8696 * config/arm/arm.c: Include opts.h.
8697 (arm_handle_option): Update to new hook interface.
8698 * config/arm/t-arm (arm.o): Update dependencies.
8699 * config/bfin/bfin.c: Include opts.h.
8700 (bfin_handle_option): Update to new hook interface.
8701 * config/cris/cris.c: Include opts.h.
8702 (cris_handle_option): Update to new hook interface.
8703 * config/frv/frv.c: Include opts.h.
8704 (frv_handle_option): Update to new hook interface.
8705 * config/i386/i386.c: Include opts.h.
8706 (ix86_handle_option): Update to new hook interface.
8707 (ix86_valid_target_attribute_inner_p): Generate option structure
8708 for call to ix86_handle_option.
8709 * config/i386/t-i386 (i386.o): Update dependencies.
8710 * config/ia64/ia64.c: Include opts.h.
8711 (ia64_handle_option): Update to new hook interface.
8712 * config/ia64/t-ia64 (ia64.o): Update dependencies.
8713 * config/iq2000/iq2000.c: Include opts.h.
8714 (iq2000_handle_option): Update to new hook interface.
8715 * config/m32c/m32c.c: Include opts.h.
8716 (m32c_handle_option): Update to new hook interface.
8717 * config/m32r/m32r.c: Include opts.h.
8718 (m32r_handle_option): Update to new hook interface.
8719 * config/m68k/m68k.c: Include opts.h.
8720 (m68k_handle_option): Update to new hook interface.
8721 * config/mep/mep.c: Include opts.h.
8722 (mep_handle_option): Update to new hook interface.
8723 * config/microblaze/microblaze.c: Include opts.h.
8724 (microblaze_handle_option): Update to new hook interface.
8725 * config/mips/mips.c: Include opts.h.
8726 (mips_handle_option): Update to new hook interface.
8727 * config/mn10300/mn10300.c: Include opts.h.
8728 (mn10300_handle_option): Update to new hook interface.
8729 * config/pa/pa.c: Include opts.h.
8730 (pa_handle_option): Update to new hook interface.
8731 * config/pdp11/pdp11.c: Include opts.h.
8732 (pdp11_handle_option): Update to new hook interface.
8733 * config/rs6000/rs6000.c: Include opts.h.
8734 (rs6000_handle_option): Update to new hook interface.
8735 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8736 * config/rx/rx.c: Include opts.h.
8737 (rx_handle_option): Update to new hook interface.
8738 * config/s390/s390.c: Include opts.h.
8739 (s390_handle_option): Update to new hook interface.
8740 * config/score/score.c: Include opts.h.
8741 (score_handle_option): Update to new hook interface.
8742 * config/sh/sh.c: Include opts.h.
8743 (sh_handle_option): Update to new hook interface.
8744 * config/sparc/sparc.c: Include opts.h.
8745 (sparc_handle_option): Update to new hook interface.
8746 * config/v850/v850.c: Include opts.h.
8747 (v850_handle_option): Update to new hook interface.
8748
8749 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8750
8751 * gcc.c (driver_unknown_option_callback): Only permit and save
8752 unknown -Wno- options.
8753 (driver_wrong_lang_callback): Save options directly instead of via
8754 driver_unknown_option_callback.
8755
8756 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8757
8758 * combine.c (simplify_set): Try harder to find the best CC mode when
8759 simplifying a nested COMPARE on the RHS.
8760
8761 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8762
8763 * config/alpha/gnu.h: Remove.
8764 * config/arc: Remove directory.
8765 * config/arm/netbsd.h: Remove.
8766 * config/arm/t-pe: Remove.
8767 * config/crx: Remove directory.
8768 * config/i386/netbsd.h: Remove.
8769 * config/m68hc11: Remove directory.
8770 * config/m68k/uclinux-oldabi.h: Remove.
8771 * config/mcore/mcore-pe.h: Remove.
8772 * config/mcore/t-mcore-pe: Remove.
8773 * config/netbsd-aout.h: Remove.
8774 * config/rs6000/gnu.h: Remove.
8775 * config/sh/sh-symbian.h: Remove.
8776 * config/sh/symbian-base.c: Remove.
8777 * config/sh/symbian-c.c: Remove.
8778 * config/sh/symbian-cxx.c: Remove.
8779 * config/sh/symbian-post.h: Remove.
8780 * config/sh/symbian-pre.h: Remove.
8781 * config/sh/t-symbian: Remove.
8782 * config/svr3.h: Remove.
8783 * config/vax/netbsd.h: Remove.
8784 * config.build: Don't handle i[34567]86-*-pe.
8785 * config.gcc: Remove handling of deprecations for most deprecated
8786 targets.
8787 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8788 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8789 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8790 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8791 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8792 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8793 Remove cases.
8794 * config.host: Don't handle i[34567]86-*-pe.
8795 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8796 (ASM_SPEC32): Don't handle -mcall-gnu.
8797 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8798 -mcall-gnu.
8799 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8800 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8801 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8802 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8803 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8804 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8805 conditional on SYMBIAN.
8806 * configure.ac: Don't handle powerpc*-*-gnu*.
8807 * configure: Regenerate.
8808 * doc/extend.texi (interrupt attribute): Don't mention CRX.
8809 * doc/install-old.texi (m6811, m6812): Don't mention.
8810 * doc/install.texi (arc-*-elf*): Don't document multilib option.
8811 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8812 (m68k-uclinuxoldabi): Don't mention.
8813 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8814 Remove.
8815 (-mcall-gnu): Remove.
8816 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8817 families): Remove constraint documentation.
8818
8819 2011-03-22 Marius Strobl <marius@FreeBSD.org>
8820
8821 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8822 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8823 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8824
8825 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8826
8827 PR target/48226
8828 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8829 vector when peeking at the next token for vector, don't expand the
8830 keywords.
8831
8832 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
8833
8834 * config/avr/avr-protos.h (expand_epilogue): Change prototype
8835 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8836 * config/avr/avr.c (init_cumulative_args)
8837 (avr_function_arg_advance): Use it.
8838 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8839 sibcall epilogues.
8840 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8841 (avr_function_ok_for_sibcall): ...this new function.
8842 (avr_lookup_function_attribute1): New static Function.
8843 (avr_naked_function_p, interrupt_function_p)
8844 (signal_function_p, avr_OS_task_function_p)
8845 (avr_OS_main_function_p): Use it.
8846 * config/avr/avr.md ("sibcall", "sibcall_value")
8847 ("sibcall_epilogue"): New expander.
8848 ("*call_insn", "*call_value_insn"): New insn.
8849 ("call_insn", "call_value_insn"): Remove
8850 ("call", "call_value", "epilogue"): Change expander to handle
8851 sibling calls.
8852
8853 2011-03-21 Nick Clifton <nickc@redhat.com>
8854
8855 * doc/invoke.texi (Overall Options): Move closing brace to end of
8856 options list.
8857 (Optimization Options): Add missing @gol.
8858 (Directory Options): Likewise.
8859 (i386 and x86-64 Options): Likewise.
8860 (RS6000 and PowerPC Options): Likewise.
8861 (i386 and x86-64 Windows Options): Likewise.
8862 (V850 Options): Add text missing from descriptions.
8863
8864 2011-03-22 Richard Henderson <rth@redhat.com>
8865
8866 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8867 (avr_incoming_return_addr_rtx): New.
8868 (emit_push_byte): New.
8869 (expand_prologue): Use it. Remove incorrect dwarf annotation for
8870 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
8871 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
8872 (emit_pop_byte): New.
8873 (expand_epilogue): Use it. Pop frame pointer by bytes.
8874 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8875 (INCOMING_RETURN_ADDR_RTX): New.
8876 (INCOMING_FRAME_SP_OFFSET): New.
8877 (ARG_POINTER_CFA_OFFSET): New.
8878 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8879 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8880 (pophi): Remove.
8881
8882 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8883
8884 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8885
8886 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8887 (FUNCTION_ARG_ADVANCE): Likewise.
8888 * tm.texi.in: Change references to them to hook references.
8889 * tm.texi: Regenerate.
8890 * targhooks.c (default_function_arg): Eliminate check for target
8891 macro.
8892 (default_function_incoming_arg): Likewise.
8893 (default_function_arg_advance): Likewise.
8894 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8895 (function_arg_advance): Likewise.
8896 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8897
8898 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8899
8900 * tree.c (build_call_1): New function.
8901 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8902
8903 2011-03-22 Richard Guenther <rguenther@suse.de>
8904
8905 PR tree-optimization/48228
8906 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8907 for single-arg PHIs.
8908
8909 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
8910
8911 PR rtl-optimization/48143
8912 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8913 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8914 sse2_cvtps2pd): Likewise.
8915
8916 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8917
8918 * recog.c (canonicalize_change_group): Use validate_unshare_change.
8919
8920 2011-03-22 Richard Guenther <rguenther@suse.de>
8921
8922 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8923 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8924 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8925 and REALIGN_LOAD_EXPR.
8926 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8927 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8928 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8929 DOT_PROD_EXPR case ...
8930 (expand_expr_real_2): ... here.
8931 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8932 and REALIGN_LOAD_EXPR.
8933 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8934 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8935 (vect_create_epilog_for_reduction): Likewise.
8936 (vectorizable_reduction): Likewise.
8937 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8938 * tree-vect-stmts.c (vectorizable_load): Likewise.
8939
8940 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8941
8942 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8943
8944 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8945
8946 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8947 handling for PLTOFF/GOTOFF.
8948
8949 2011-03-22 Nick Clifton <nickc@redhat.com>
8950
8951 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8952 trailing backslash from the end of the macro definition.
8953
8954 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8955
8956 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8957 and PLT unspecs.
8958
8959 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8960
8961 * expr.h (prepare_operand): Move to...
8962 * optabs.h (prepare_operand): ...here and change the insn code
8963 parameter from "int" to "enum insn_code".
8964 (insn_operand_matches): Declare.
8965 * expr.c (init_expr_target): Use insn_operand_matches.
8966 (compress_float_constant): Likewise.
8967 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8968 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8969 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8970 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8971 Likewise.
8972 (gen_cond_trap): Likewise.
8973 (prepare_operand): Likewise. Change icode to an insn_code.
8974 (insn_operand_matches): New function.
8975 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8976 * reload1.c (gen_reload): Likewise.
8977 * targhooks.c (default_secondary_reload): Likewise.
8978
8979 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8980
8981 * config/alpha/alpha.md (unspec): New define_c_enum.
8982 (unspecv): Ditto.
8983
8984 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8985
8986 PR debug/48214
8987 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8988 between a call and its CALL_ARG_LOCATION note.
8989
8990 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8991
8992 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8993
8994 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8995
8996 PR c/42544
8997 PR c/48197
8998 * c-common.c (shorten_compare): If primopN is first sign-extended
8999 to opN and then zero-extended to result type, set primopN to opN.
9000
9001 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9002
9003 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9004 for barrier handlers.
9005
9006 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9007
9008 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9009 UNSPEC constants to be in the unspec enumeration, and redefine
9010 all UNSPECV constants to be in the unspecv enumeration, so that
9011 dumps print which unspec/unspec_volatile this is.
9012 * config/rs6000/vector.md (UNSPEC_*): Ditto.
9013 * config/rs6000/paired.md (UNSPEC_*): Ditto.
9014 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9015 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9016 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9017
9018 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9019 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9020 UNSPECV_LWSYNC, since these are used as unspec_volatile.
9021 * config/rs6000/sync.md (isync, lwsync): Ditto.
9022
9023 2011-03-21 Richard Guenther <rguenther@suse.de>
9024
9025 * params.def (lto-min-partition): Fix typo.
9026
9027 2011-03-21 Richard Guenther <rguenther@suse.de>
9028
9029 PR c/47939
9030 * c-decl.c (grokdeclarator): Drop to the main variant only
9031 for array types. Drop flag_gen_aux_info check.
9032
9033 2011-03-21 Richard Guenther <rguenther@suse.de>
9034
9035 PR translation/47911
9036 * params.def (lto-partitions): Fix typo.
9037 (lto-min-partition): Fix wording.
9038
9039 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
9040
9041 * config/rs6000/t-freebsd: Remove duplication from file.
9042
9043 2011-03-21 Richard Guenther <rguenther@suse.de>
9044
9045 PR middle-end/47661
9046 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9047
9048 2011-03-21 Richard Guenther <rguenther@suse.de>
9049
9050 PR lto/48210
9051 * params.def (lto-partitions): Require at least 1 partition.
9052
9053 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9054
9055 * gthr-solaris.h: Remove.
9056 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9057 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9058 (LIB_SPEC): Likewise.
9059 * config/sol2.opt (threads): Remove.
9060 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9061 (sparc*-*-solaris2*): Likewise.
9062 * configure.ac (enable_threads): Enable solaris support.
9063 * configure: Regenerate.
9064 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9065 * doc/install.texi (Configuration, --enable-threads=lib): Remove
9066 solaris.
9067
9068 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9069
9070 * config.gcc: Obsolete *-*-solaris2.8*.
9071 * doc/install.texi (Specific, *-*-solaris2*): Document it.
9072
9073 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9074
9075 PR bootstrap/48135
9076 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9077 reference. Solaris 8 perl works.
9078
9079 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9080
9081 PR bootstrap/48135
9082 * doc/install.texi (Prerequisites): Move jar etc. up.
9083 Explain support library version requirements.
9084
9085 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9086
9087 PR bootstrap/48135
9088 * doc/install.texi (Prerequisites): Move Perl to build
9089 requirements. Always necessary on Solaris 2 with Sun ld.
9090
9091 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9092
9093 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9094 binutils 2.21.
9095 (Specific, i?86-*-solaris2.[89]): Likewise.
9096 (Specific, i?86-*-solaris2.10): Likewise.
9097 (Specific, mips-sgi-irix6): Likewise.
9098 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9099 Update for binutils 2.21.
9100
9101 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9102
9103 * configure.ac (gcc_cv_lto_plugin): Fix typo.
9104 Allow -fuse-linker-plugin for non-default plugin linker.
9105 * configure: Regenerate.
9106
9107 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
9108
9109 PR bootstrap/48167
9110 * gengtype.c (files_rules): Added rule for cp/parser.h.
9111
9112 2011-03-21 Jakub Jelinek <jakub@redhat.com>
9113
9114 PR target/48213
9115 * config/s390/s390.c (s390_delegitimize_address): Don't call
9116 lowpart_subreg if orig_x has BLKmode.
9117
9118 2011-03-21 Kai Tietz <ktietz@redhat.com>
9119
9120 PR target/12171
9121 * doc/plugins.texi: Adjust documentation for plugin register_callback.
9122 * tree.h (attribute_spec): Add new member affects_type_identity.
9123 * attribs.c (empty_attribute_table): Adjust attribute_spec
9124 initializers.
9125 * config/alpha/alpha.c: Likewise.
9126 * config/arc/arc.c: Likewise.
9127 * config/arm/arm.c: Likewise.
9128 * config/avr/avr.c: Likewise.
9129 * config/bfin/bfin.c: Likewise.
9130 * config/crx/crx.c: Likewise.
9131 * config/darwin.h: Likewise.
9132 * config/h8300/h8300.c: Likewise.
9133 * config/i386/cygming.h: Likewise.
9134 * config/i386/i386.c: Likewise.
9135 * config/ia64/ia64.c: Likewise.
9136 * config/m32c/m32c.c: Likewise.
9137 * config/m32r/m32r.c: Likewise.
9138 * config/m68hc11/m68hc11.c: Likewise.
9139 * config/m68k/m68k.c: Likewise.
9140 * config/mcore/mcore.c: Likewise.
9141 * config/mep/mep.c: Likewise.
9142 * config/microblaze/microblaze.c: Likewise.
9143 * config/mips/mips.c: Likewise.
9144 * config/rs6000/rs6000.c: Likewise.
9145 * config/rx/rx.c: Likewise.
9146 * config/sh/sh.c: Likewise.
9147 * config/sol2.h: Likewise.
9148 * config/sparc/sparc.c: Likewise.
9149 * config/spu/spu.c: Likewise.
9150 * config/stormy16/stormy16.c: Likewise.
9151 * config/v850/v850.c: Likewise.
9152
9153 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9154
9155 * simplify-rtx.c (simplify_binary_operation_1): Handle
9156 (xor (and A B) C) case when B and C are both constants.
9157
9158 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
9159
9160 * tree-dfa.c (add_referenced_var): Fix typo in comment.
9161
9162 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
9163
9164 PR bootstrap/48168
9165 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9166
9167 2011-03-20 Jakub Jelinek <jakub@redhat.com>
9168
9169 PR rtl-optimization/48156
9170 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9171 assume df and df_lr are not NULL.
9172
9173 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9174
9175 PR debug/48023
9176 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9177 between a call and its CALL_ARG_LOCATION note.
9178
9179 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
9180
9181 PR debug/48178
9182 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9183 between a call and its corresponding CALL_ARG_LOCATION note.
9184
9185 2011-03-19 Anatoly Sokolov <aesok@post.ru>
9186
9187 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9188 instead of loop. Use HARD_REGISTER_NUM_P predicate.
9189 * haifa-sched.c (setup_ref_regs): Ditto.
9190 * caller-save.c (add_used_regs_1): Ditto.
9191 * dse.c (look_for_hardregs): Ditto.
9192 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9193 * sched-rgn.c (check_live_1): Ditto.
9194
9195 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9196
9197 * c-decl.c (diagnose_mismatched_decls): Give an error for
9198 redefining a typedef with variably modified type.
9199
9200 2011-03-18 Joseph Myers <joseph@codesourcery.com>
9201
9202 * c-decl.c (grokfield): Don't allow typedefs for structures or
9203 unions with no tag by default.
9204 * doc/extend.texi (Unnamed Fields): Update.
9205
9206 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
9207
9208 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9209 Rewrite using indirect functions.
9210 (lwp_slwpcb): Ditto.
9211 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9212 (avx_vinsertf128<mode>): Ditto.
9213
9214 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9215
9216 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9217 unspecs.
9218
9219 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9220
9221 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9222 splitting between a call and its corresponding CALL_ARG_LOCATION note.
9223
9224 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9225
9226 PR rtl-optimization/48170
9227 * gcse.c (hoist_code): Remove bogus asserts.
9228
9229 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
9230
9231 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9232 computation for prologue/epilogue.
9233
9234 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9235
9236 * Makefile.in (check-consistency): Remove.
9237
9238 2011-03-18 Jakub Jelinek <jakub@redhat.com>
9239
9240 PR debug/48176
9241 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9242 arange_table_in_use is 0, but either text_section_used or
9243 cold_text_section_used is true. Don't call it if
9244 !info_section_emitted.
9245
9246 2011-03-18 Anatoly Sokolov <aesok@post.ru>
9247
9248 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9249 FUNCTION_VALUE_REGNO_P): Remove.
9250 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9251 Remove.
9252 * config/avr/avr.c (avr_ret_register): Make static inline.
9253 (avr_function_value_regno_p): New function.
9254 (avr_libcall_value): Make static. Add 'func' argument.
9255 (avr_function_value): Make static. Rename 'func' argument to
9256 'fn_decl_or_type', forward it to avr_libcall_value. Call
9257 avr_ret_register function instead of RET_REGISTER macro.
9258 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9259
9260 2011-03-18 Jason Merrill <jason@redhat.com>
9261
9262 PR c++/23372
9263 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9264
9265 2011-03-18 Richard Guenther <rguenther@suse.de>
9266
9267 * doc/install.texi (--enable-gold): Remove.
9268 (--with-plugin-ld): Document.
9269 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9270
9271 2011-03-18 Andrew Pinski <pinskia@gmail.com>
9272
9273 PR middle-end/47790
9274 * expr.c (optimize_bitfield_assignment_op): Revamp to work
9275 again after expansion changes.
9276
9277 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
9278
9279 * combine.c (try_combine): Do simplification only call of
9280 subst() on i2 even when i1 is present. Update comments.
9281
9282 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
9283
9284 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9285 and UNSPEC_PCREL_SYMOFF.
9286
9287 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9288
9289 * config/s390/s390.md: Use define_c_enum for the unspec constant
9290 definitions.
9291
9292 2011-03-18 Richard Henderson <rth@redhat.com>
9293 Jakub Jelinek <jakub@redhat.com>
9294
9295 PR bootstrap/48161
9296 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9297 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9298
9299 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9300
9301 PR middle-end/47725
9302 * combine.c (cant_combine_insn_p): Don't check zero/sign
9303 extended hard registers.
9304
9305 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9306
9307 PR middle-end/47725
9308 * combine.c (cant_combine_insn_p): Check zero/sign extended
9309 hard registers.
9310
9311 2011-03-17 Anatoly Sokolov <aesok@post.ru>
9312
9313 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9314 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9315 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9316 Change return type to bool.
9317 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9318
9319 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9320
9321 PR debug/48163
9322 * var-tracking.c (prepare_call_arguments): If CALL target
9323 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9324 pc instead of looking it up using cselib_lookup and use
9325 Pmode for it if x has VOIDmode.
9326 * dwarf2out.c (gen_subprogram_die): If also both first and
9327 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9328
9329 PR debug/48163
9330 * function.c (assign_parms): For data.passed_pointer parms
9331 use MEM of data.entry_parm instead of data.entry_parm itself
9332 as DECL_INCOMING_RTL.
9333 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9334 also when passed and declared mode is the same, DECL_RTL
9335 is a MEM with pseudo as address and DECL_INCOMING_RTL is
9336 a MEM too.
9337
9338 2011-03-16 Jeff Law <law@redhat.com>
9339
9340 PR rtl-optimization/37273
9341 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9342 handle them like argument loads from stack slots. Do not double
9343 count memory for memory constants and argument loads from stack slots.
9344
9345 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9346
9347 PR debug/48160
9348 * var-tracking.c (prepare_call_arguments): Check SUBREG.
9349
9350 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9351
9352 PR target/48171
9353 * config/i386/i386.opt: Add Save to -mavx and -mfma.
9354
9355 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9356
9357 PR bootstrap/48153
9358 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9359 if dwarf_strict.
9360 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9361 Clear call_arg_locations and call_arg_loc_last always.
9362
9363 PR middle-end/48152
9364 * var-tracking.c (prepare_call_arguments): If argument needs to be
9365 passed by reference, adjust argtype and mode.
9366
9367 2011-03-17 Richard Guenther <rguenther@suse.de>
9368
9369 PR middle-end/48134
9370 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9371 a value make sure to fold the statement.
9372
9373 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
9374
9375 PR target/43872
9376 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9377 return condition with !cfun->calls_alloca.
9378
9379 2011-03-17 Richard Guenther <rguenther@suse.de>
9380
9381 PR bootstrap/48148
9382 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9383 origin for decls in other ltrans units.
9384 (input_varpool_node): Likewise.
9385
9386 2011-03-17 Richard Guenther <rguenther@suse.de>
9387
9388 PR middle-end/48165
9389 * tree-object-size.c (compute_object_offset): Properly return
9390 the offset operand of MEM_REFs as sizetype.
9391
9392 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9393
9394 PR rtl-optimization/48141
9395 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9396 * dse.c: Include params.h.
9397 (active_local_stores_len): New variable.
9398 (add_wild_read, dse_step1): Clear it when setting active_local_stores
9399 to NULL.
9400 (record_store, check_mem_read_rtx): Decrease it when removing
9401 from the chain.
9402 (scan_insn): Likewise. Increase it when adding to chain, if it
9403 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9404 set active_local_stores to NULL before the addition.
9405 * Makefile.in (dse.o): Depend on $(PARAMS_H).
9406
9407 PR rtl-optimization/48141
9408 * dse.c (record_store): If no positions are needed in an insn
9409 that cannot be deleted, at least unchain it from active_local_stores.
9410
9411 2011-03-16 Dodji Seketeli <dodji@redhat.com>
9412
9413 PR debug/47510
9414 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9415 (lookup_type_die_strip_naming_typedef): ... here.
9416 (get_context_die): Use it.
9417 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9418 the anonymous struct named by the naming typedef.
9419
9420 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
9421
9422 PR target/48154
9423 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9424 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9425
9426 2011-03-16 Jeff Law <law@redhat.com>
9427
9428 * tree-vrp.c (identify_jump_threads): Slightly simplify type
9429 check for operands of conditional. Allow type to be a pointer.
9430
9431 2011-03-16 Richard Guenther <rguenther@suse.de>
9432
9433 PR tree-optimization/48149
9434 * fold-const.c (fold_binary_loc): Fold
9435 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9436
9437 2011-03-16 Richard Guenther <rguenther@suse.de>
9438
9439 PR tree-optimization/26134
9440 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9441 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9442 (non_rewritable_mem_ref_base): Handle complex type component
9443 accesses, constrain offsets for vector and complex extracts
9444 more properly.
9445
9446 2011-03-16 Richard Guenther <rguenther@suse.de>
9447
9448 PR tree-optimization/48146
9449 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9450 operands avoiding the need for renaming.
9451
9452 2011-03-16 Richard Guenther <rguenther@suse.de>
9453
9454 * gimple-fold.c (maybe_fold_reference): Open-code relevant
9455 constant folding. Move MEM_REF canonicalization first.
9456 Rely on fold_const_aggregate_ref for initializer folding.
9457 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9458
9459 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9460
9461 PR middle-end/48136
9462 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9463 arg0/arg1 or their arguments are always fold converted to matching
9464 types.
9465
9466 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9467 to nargs.
9468
9469 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9470
9471 PR lto/46944
9472 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9473 Handle in-tree gold.
9474 (ld_vers): Extract binutils version for gold.
9475 (gcc_cv_ld_hidden): Handle gold here.
9476 (gcc_cv_lto_plugin): Determine level of linker plugin support.
9477 * configure: Regenerate.
9478 * config.in: Regenerate.
9479 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9480 -fuse-linker-plugin otherwise.
9481 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
9482 (LINK_COMMAND_SPEC): Use it.
9483 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9484
9485 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9486
9487 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9488 * calls.c: Remove debug.h include.
9489 (emit_call_1): Don't call virtual_call_token debug hook.
9490 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9491 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9492 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9493 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9494 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9495 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9496 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9497 dwarf2out_virtual_call): Remove.
9498 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9499 copy_call_info and virtual_call hooks.
9500 (dwarf2out_init): Don't initialize vcall_insn_table,
9501 debug_dcall_section and debug_vcall_section.
9502 (prune_unused_types): Don't mark nodes from dcall_table.
9503 (dwarf2out_finish): Don't output dcall or vcall tables.
9504 * final.c (final_scan_insn): Don't call direct_call or
9505 virtual_call debug hooks.
9506 * debug.h (struct gcc_debug_hooks): Remove direct_call,
9507 virtual_call_token, copy_call_info and virtual_call hooks.
9508 (debug_nothing_uid): Remove prototype.
9509 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9510 copy_call_info and virtual_call hooks.
9511 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9512 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9513 * debug.c (do_nothing_debug_hooks): Likewise.
9514 (debug_nothing_uid): Remove.
9515 * doc/invoke.texi (-fenable-icf-debug): Remove.
9516 * common.opt (-fenable-icf-debug): Likewise.
9517
9518 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9519 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9520 call's MEM. Handle functions returning aggregate through a hidden
9521 first pointer. For virtual calls add clobbered pc to call arguments
9522 chain.
9523 * dwarf2out.c (gen_subprogram_die): Emit
9524 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9525 can't be emitted.
9526
9527 PR debug/45882
9528 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9529 * rtl.h (ENTRY_VALUE_EXP): Define.
9530 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9531 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9532 * print-rtl.c (print_rtx): Likewise.
9533 * gengtype.c (adjust_field_rtx_def): Likewise.
9534 * var-tracking.c (vt_add_function_parameter): Adjust
9535 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9536 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9537 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9538 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9539 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9540
9541 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9542 Call var_location debug hook even on CALL_INSNs.
9543 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9544 * rtl.def (ENTRY_VALUE): New.
9545 * dwarf2out.c: Include cfglayout.h.
9546 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9547 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9548 (struct call_arg_loc_node): New type.
9549 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9550 tail_call_site_count): New variables.
9551 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9552 DW_TAG_GNU_call_site_parameter.
9553 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9554 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9555 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9556 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9557 and DW_AT_GNU_all_source_call_sites.
9558 (mem_loc_descriptor): Handle ENTRY_VALUE.
9559 (add_src_coords_attributes): Don't add enything if
9560 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9561 (dwarf2out_abstract_function): Save and clear call_arg_location,
9562 call_site_count and tail_call_site_count around dwarf2out_decl call.
9563 (gen_call_site_die): New function.
9564 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9565 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9566 (dwarf2out_function_decl): Clear call_arg_locations,
9567 call_arg_loc_last, set call_site_count and tail_call_site_count
9568 to -1 and free block_map.
9569 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9570 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
9571 followed by any real instructions.
9572 (dwarf2out_begin_function): Set call_site_count and
9573 tail_call_site_count to 0.
9574 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9575 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9576 attempt to force a DIE for it and worst case remove the attribute.
9577 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9578 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9579 the decl itself.
9580 * var-tracking.c: Include tm_p.h.
9581 (vt_stack_adjustments): For calls call note_register_arguments.
9582 (argument_reg_set): New variable.
9583 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9584 ensure the VALUE is resolved.
9585 (call_arguments): New variable.
9586 (prepare_call_arguments): New function.
9587 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9588 (struct expand_loc_callback_data): Add ignore_cur_loc field.
9589 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9590 always use the best expression.
9591 (vt_expand_loc): Add ignore_cur_loc argument.
9592 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9593 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9594 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9595 note for all calls.
9596 (vt_add_function_parameter): Use cselib_lookup_from_insn.
9597 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9598 argument. Don't call cselib_preserve_only_values and
9599 cselib_reset_table.
9600 (note_register_arguments): New function.
9601 (vt_initialize): Compute argument_reg_set. Call
9602 vt_add_function_parameters before processing basic blocks instead of
9603 afterwards. For calls call prepare_call_arguments before calling
9604 cselib_process_insn.
9605 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9606 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9607 (var-tracking.o): Depend on $(TM_P_H).
9608 * cfglayout.h (insn_scope): New prototype.
9609 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9610 * cfglayout.c (insn_scope): No longer static.
9611 * insn-notes.def (CALL_ARG_LOCATION): New.
9612 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9613 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9614 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9615 nothing for DECL_EXTERNAL BLOCK_VARS.
9616
9617 2011-03-16 Alan Modra <amodra@gmail.com>
9618
9619 PR target/45844
9620 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9621 create invalid offset address for vsx splat insn.
9622 * config/rs6000/predicates.md (splat_input_operand): New.
9623 * config/rs6000/vsx.md (vsx_splat_*): Use it.
9624
9625 2011-03-15 Xinliang David Li <davidxl@google.com>
9626
9627 PR c/47837
9628 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9629 (normalize_preds): New function.
9630 (is_use_properly_guarded): Normalize def predicates.
9631
9632 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9633
9634 PR target/46788
9635 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9636 in the output template.
9637
9638 2011-03-15 Richard Guenther <rguenther@suse.de>
9639
9640 PR middle-end/47650
9641 * tree-pretty-print.c (dump_function_declaration): Properly
9642 dump unprototyped and varargs function types.
9643
9644 2011-03-15 Richard Guenther <rguenther@suse.de>
9645
9646 PR tree-optimization/13954
9647 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9648 and friends.
9649
9650 2011-03-15 Richard Guenther <rguenther@suse.de>
9651
9652 PR tree-optimization/48037
9653 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9654 selects into BIT_FIELD_REFs.
9655 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9656 vector select.
9657
9658 2011-03-15 Jakub Jelinek <jakub@redhat.com>
9659
9660 PR tree-optimization/48129
9661 * builtins.c (fold_builtin_snprintf): Convert to type of
9662 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9663 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9664
9665 2011-03-15 Richard Guenther <rguenther@suse.de>
9666
9667 PR tree-optimization/41490
9668 * tree-ssa-dce.c (propagate_necessity): Handle returns without
9669 value but with VUSE.
9670 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9671 return statements.
9672 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9673 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9674 * tree-tailcall.c (find_tail_calls): Ignore returns.
9675
9676 2011-03-15 Richard Guenther <rguenther@suse.de>
9677
9678 PR middle-end/48031
9679 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9680 or variable-indexed array accesses when in gimple form.
9681
9682 2011-03-15 Richard Guenther <rguenther@suse.de>
9683
9684 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9685
9686 2011-03-15 Alan Modra <amodra@gmail.com>
9687
9688 PR target/48032
9689 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9690 presume symbol_refs without a symbol_ref_decl are suitably
9691 aligned, nor other trees we may see here. Handle anchor symbols.
9692 (legitimate_constant_pool_address_p): Comment. Add mode param.
9693 Check cmodel=medium addresses. Adjust all calls.
9694 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9695 creating cmodel=medium optimized access to locals.
9696 * config/rs6000/constraints.md (R): Pass QImode to
9697 legitimate_constant_pool_address_p.
9698 * config/rs6000/predicates.md (input_operand): Pass mode to
9699 legitimate_constant_pool_address_p.
9700 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9701 Update prototype.
9702
9703 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9704
9705 PR target/48053
9706 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9707 64-bit constants being loaded into registers other than GPRs such
9708 as loading 0 into a VSX register.
9709
9710 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9711
9712 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9713
9714 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9715
9716 PR middle-end/47917
9717 * builtins.c (fold_builtin_snprintf): New function.
9718 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9719 (fold_builtin_4): Likewise.
9720
9721 PR middle-end/38878
9722 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9723 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
9724 and C - X == X also strip nops from +/-/p+ operand.
9725 When optimizing -X == C, fold C to arg0's type.
9726
9727 PR debug/47946
9728 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9729 emit it as add_AT_int instead of add_AT_unsigned.
9730
9731 2011-03-14 Tom Tromey <tromey@redhat.com>
9732
9733 * unwind-dw2.c: Include sys/sdt.h if it exists.
9734 (_Unwind_DebugHook): Use STAP_PROBE2.
9735 * config.in, configure: Rebuild.
9736 * configure.ac: Check for sys/sdt.h.
9737
9738 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
9739
9740 * config/i386/i386.md (ROUND_FLOOR): New constant.
9741 (ROUND_CEIL): Ditto.
9742 (ROUND_TRUNC): Ditto.
9743 (ROUND_MXCSR): Ditto.
9744 (ROUND_NO_EXC): Ditto.
9745 (rint<mode>2): Use new defines instead of numerical constants.
9746 (floor<mode>2): Ditto.
9747 (ceil<mode>2): Ditto.
9748 (btrunc<mode>2): Ditto.
9749 * config/i386/i386-builtin-types.def: Define ROUND function type
9750 aliases.
9751 * config/i386/i386.c (enum ix86_builtins): Add
9752 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9753 (struct builtin_description): Add
9754 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9755 (ix86_expand_sse_round): New static function.
9756 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9757 function types.
9758 (ix86_builtin_vectorized_function): Handle
9759 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9760
9761 2011-03-14 Tom Tromey <tromey@redhat.com>
9762
9763 * c-parser.c (c_parser_asm_string_literal): Clear
9764 warn_overlength_strings.
9765
9766 2011-03-14 Tom Tromey <tromey@redhat.com>
9767
9768 * c-parser.c (disable_extension_diagnostics): Save
9769 warn_overlength_strings.
9770 (restore_extension_diagnostics): Restore warn_overlength_strings.
9771
9772 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9773
9774 * BASE-VER: Change to 4.7.0.
9775
9776 2011-03-14 Richard Guenther <rguenther@suse.de>
9777
9778 PR middle-end/48098
9779 * tree.c (build_vector_from_val): Adjust assert to requirements
9780 and reality.
9781
9782 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9783
9784 PR bootstrap/48102
9785 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9786
9787 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
9788
9789 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9790 terms of target_flags_explicit. Adjust copyright year.
9791
9792 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9793 * config/rs6000/t-freebsd: New file. Add override for
9794 LIB2FUNCS_EXTRA.
9795
9796 2011-03-13 Chris Demetriou <cgd@google.com>
9797
9798 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9799 (-fno-diagnostics-show-option): this, to reflect current default.
9800 (-Werror=): Update text about -fno-diagnostics-show-option.
9801
9802 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
9803
9804 PR target/48053
9805 * config/rs6000/predicates.md (easy_vector_constant_add_self,
9806 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9807 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9808 mode is not V2DImode or V2DFmode.
9809 (vspltis_constant): Do not handle V2DImode and V2DFmode.
9810 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9811 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9812 registers to 0.
9813 (movdi_internal64): Likewise.
9814
9815 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
9816
9817 PR tree-optimization/47127
9818 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9819 parameter.
9820 (set_cloog_options): Same.
9821 (scop_to_clast): Same.
9822 (print_clast_stmt): Do not call cloog_state_malloc and
9823 cloog_state_free.
9824 (print_generated_program): Same.
9825 (gloog): Same.
9826 * graphite-clast-to-gimple.h (cloog_state): Declared.
9827 (scop_to_clast): Adjust declaration.
9828 * graphite.c (cloog_state): Defined here.
9829 (graphite_initialize): Call cloog_state_malloc.
9830 (graphite_finalize): Call cloog_state_free.
9831
9832 2011-03-11 Jason Merrill <jason@redhat.com>
9833
9834 * attribs.c (lookup_attribute_spec): Take const_tree.
9835 * tree.h: Adjust.
9836
9837 2011-03-11 Joseph Myers <joseph@codesourcery.com>
9838
9839 * config/sparc/sparc.c (sparc_option_override): Use
9840 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9841
9842 2011-03-11 Richard Guenther <rguenther@suse.de>
9843
9844 PR tree-optimization/48067
9845 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9846 multiplication result will be only used once on the target
9847 stmt.
9848
9849 2011-03-11 Richard Guenther <rguenther@suse.de>
9850
9851 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9852
9853 2011-03-11 Richard Guenther <rguenther@suse.de>
9854
9855 PR lto/48073
9856 * tree.c (find_decls_types_r): Do not walk types only reachable
9857 from IDENTIFIER_NODEs.
9858
9859 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9860
9861 PR middle-end/48044
9862 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9863 all vnode->force_output nodes as needed.
9864
9865 2011-03-11 Jason Merrill <jason@redhat.com>
9866
9867 PR c++/48069
9868 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9869 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9870
9871 2011-03-11 Martin Jambor <mjambor@suse.cz>
9872
9873 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9874 cgraph_node.
9875
9876 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9877
9878 PR tree-optimization/48063
9879 * ipa-inline.c (cgraph_decide_inlining): Don't try to
9880 inline functions called once if !tree_can_inline_p (node->callers).
9881
9882 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9883
9884 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9885 extra_objs.
9886 * config/score/score3.c: Delete.
9887 * config/score/score3.h: Delete.
9888 * config/score/mul-div.S: Delete.
9889 * config/score/sfp-machine.h: Add new file.
9890 * config/score/constraints.md: Add new file.
9891 * config/score/t-score-softfp: Add new file.
9892 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9893 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9894 (score7_extra_constraint): Delete.
9895 (score7_option_override): Remove unused code.
9896 * config/score/score.c: Remove score3 and score5 define and code.
9897 * config/score/score.h: Remove score3 and score5 define and code.
9898 * config/score/score.md: Remove score3 template and unusual insn.
9899 * config/score/score.opt: Remove score3 and score5 options.
9900
9901 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9902
9903 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9904 when _HPUX_SOURCE is defined.
9905 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9906
9907 2011-03-10 Jason Merrill <jason@redhat.com>
9908
9909 PR c++/48029
9910 * stor-layout.c (layout_type): Don't set structural equality
9911 on arrays of incomplete type.
9912 * tree.c (type_hash_eq): Handle comparing them properly.
9913
9914 2011-03-10 Jakub Jelinek <jakub@redhat.com>
9915
9916 PR debug/48043
9917 * config/s390/s390.c (s390_delegitimize_address): Make sure the
9918 result mode matches original rtl mode.
9919
9920 2011-03-10 Nick Clifton <nickc@redhat.com>
9921
9922 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9923 (andsi3, andsi3_flags): Fix timings for three operand alternative.
9924
9925 2011-03-09 Jakub Jelinek <jakub@redhat.com>
9926
9927 PR rtl-optimization/47866
9928 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9929 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9930 if target wasn't scalar.
9931 * function.c (assign_stack_temp_for_type): Assert that neither
9932 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9933 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9934 macro.
9935 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9936
9937 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9938
9939 * config/s390/s390-protos.h (s390_label_align): New prototype.
9940 * config/s390/s390.c (s390_label_align): New function.
9941 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9942
9943 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9944
9945 PR target/47755
9946 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9947 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9948 (output_vec_const_move): Ditto.
9949
9950 2011-03-08 Anatoly Sokolov <aesok@post.ru>
9951
9952 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9953 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9954 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9955 Change 'rclass' argument and result type to reg_class_t.
9956 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9957
9958 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
9959
9960 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9961 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9962 (TARGET_MEMORY_MOVE_COST): Define.
9963 (avr_register_move_cost, avr_memory_move_cost): New Functions.
9964
9965 2011-03-08 Jakub Jelinek <jakub@redhat.com>
9966
9967 PR debug/47881
9968 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9969 removed anything.
9970
9971 PR tree-optimization/48022
9972 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9973 for EQ/NE_EXPR.
9974
9975 2011-03-07 Jakub Jelinek <jakub@redhat.com>
9976
9977 PR debug/47991
9978 * var-tracking.c (find_use_val): Return NULL for
9979 cui->sets && cui->store_p BLKmode MEMs.
9980
9981 2011-03-07 Anatoly Sokolov <aesok@post.ru>
9982
9983 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9984 Remove.
9985 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9986 xstormy16_print_operand_address): Remove.
9987 * config/stormy16/stormy16.c (xstormy16_print_operand,
9988 xstormy16_print_operand_address): Make static.
9989 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9990
9991 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
9992
9993 PR target/47862
9994 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9995 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9996 before definition.
9997
9998 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
9999
10000 PR bootstrap/48000
10001 * cfgloopmanip.c (fix_bb_placements): Return immediately
10002 if FROM is BASE_LOOP's header.
10003
10004 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
10005
10006 * gimplify.c (gimplify_function_tree): Fix building calls
10007 to __builtin_return_address.
10008
10009 2011-03-07 Alan Modra <amodra@gmail.com>
10010
10011 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10012 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10013 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10014 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10015 return_mode args.
10016 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10017 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10018 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10019 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10020 * config/rs6000/rs6000.c
10021 (rs6000_elf_end_indicate_exec_stack): Rename to..
10022 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
10023 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
10024 (rs6000_file_start): ..here.
10025 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10026 file scope variables.
10027 (call_ABI_of_interest): New function.
10028 (init_cumulative_args): Set above vars when function return value
10029 is a float, vector, or small struct.
10030 (rs6000_function_arg_advance_1): Likewise for function args.
10031 (rs6000_va_start): Set rs6000_passes_float if variable arg function
10032 references float args.
10033
10034 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
10035
10036 * doc/cfg.texi: Remove "See" before @ref.
10037 * doc/invoke.texi: Likewise.
10038
10039 2011-03-05 Jason Merrill <jason@redhat.com>
10040
10041 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10042
10043 2011-03-05 Anthony Green <green@moxielogic.com>
10044
10045 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10046
10047 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
10048
10049 PR rtl-optimization/47899
10050 * cfgloopmanip.c (fix_bb_placements): Fix first argument
10051 to flow_loop_nested_p when moving the loop upward.
10052
10053 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
10054
10055 PR target/47719
10056 * arm.md (movhi_insn_arch4): Accept any immediate constant.
10057
10058 2011-03-05 Jakub Jelinek <jakub@redhat.com>
10059
10060 PR tree-optimization/47967
10061 * ipa-cp.c (build_const_val): Return NULL instead of creating
10062 VIEW_CONVERT_EXPR for mismatching sizes.
10063 (ipcp_create_replace_map): Return NULL if build_const_val failed.
10064 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10065 give up on versioning.
10066
10067 2011-03-05 Alan Modra <amodra@gmail.com>
10068
10069 PR target/47986
10070 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10071 full cmodel medium/large lo_sum + high addresses.
10072
10073 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10074
10075 * config/s390/s390.c (s390_decompose_address): Reject non-literal
10076 pool references in UNSPEC_LTREL_OFFSET.
10077
10078 2011-03-04 Jan Hubicka <jh@suse.cz>
10079
10080 PR lto/47497
10081 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10082 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10083 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10084 Add node pointers.
10085 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10086 cgraph_add_thunk): Add node pointers.
10087 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10088 associated to right node.
10089 (input_node): Update use of cgraph_same_body_alias
10090 and cgraph_add_thunk.
10091
10092 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
10093
10094 * config/i386/i386.opt (mprefer-avx128): New flag.
10095 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10096 modes when the flag -mprefer-avx128 is on.
10097
10098 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
10099
10100 * dwarf2out.c (compare_loc_operands): Fix address handling.
10101
10102 2011-03-04 Alan Modra <amodra@gmail.com>
10103
10104 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10105
10106 2011-03-04 Richard Guenther <rguenther@suse.de>
10107
10108 PR middle-end/47968
10109 * expmed.c (extract_bit_field_1): Prefer vector modes that
10110 vec_extract patterns can handle.
10111
10112 2011-03-04 Richard Guenther <rguenther@suse.de>
10113
10114 PR middle-end/47975
10115 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10116
10117 2011-03-04 Richard Henderson <rth@redhat.com>
10118
10119 * explow.c (emit_stack_save): Remove 'after' parameter.
10120 (emit_stack_restore): Likewise.
10121 * expr.h: Update to match.
10122 * builtins.c, calls.c, stmt.c: Likewise.
10123 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10124 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10125 * function.c (expand_function_end): Insert the emit_stack_save
10126 sequence before parm_birth_insn instead of after.
10127
10128 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
10129
10130 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10131 (ssse3_pmaddubsw128): Ditto.
10132 (ssse3_pmaddubsw): Ditto.
10133
10134 2011-03-03 Steve Ellcey <sje@cup.hp.com>
10135
10136 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10137
10138 2011-03-03 Jakub Jelinek <jakub@redhat.com>
10139
10140 PR c/47963
10141 * gimplify.c (omp_add_variable): Only call omp_notice_variable
10142 on TYPE_SIZE_UNIT if it is a DECL.
10143
10144 PR debug/47283
10145 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10146 first operand is not is_gimple_mem_ref_addr, try to fold it.
10147 If the operand still isn't is_gimple_mem_ref_addr, clear
10148 MEM_EXPR on op0.
10149
10150 2011-03-03 Richard Guenther <rguenther@suse.de>
10151
10152 PR middle-end/47283
10153 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10154 match comment.
10155 (refs_may_alias_p_1): For release branches return true if
10156 we are confused by our input.
10157
10158 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10159
10160 * config/s390/s390.c (s390_function_value): Rename to ...
10161 (s390_function_and_libcall_value): ... this.
10162 (s390_function_value): New function.
10163 (s390_libcall_value): New function.
10164 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10165 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10166 target macro definitions.
10167 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10168
10169 2011-03-02 Joseph Myers <joseph@codesourcery.com>
10170
10171 * config/i386/freebsd64.h (CC1_SPEC): Define.
10172 * config/i386/linux64.h (CC1_SPEC): Define.
10173 * config/i386/x86-64.h (CC1_SPEC): Don't define.
10174
10175 2011-03-02 Anatoly Sokolov <aesok@post.ru>
10176
10177 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10178 Remove.
10179 * config/stormy16/stormy16.c: Include reload.h.
10180 (xstormy16_memory_move_cost): New function.
10181 (TARGET_MEMORY_MOVE_COST): Define.
10182
10183 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
10184
10185 PR rtl-optimization/47925
10186 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10187 with side effects. Remove the more-specific check for volatile asms.
10188
10189 2011-03-02 Alan Modra <amodra@gmail.com>
10190
10191 PR target/47935
10192 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10193 toc relative addresses for valid offsets.
10194
10195 2011-03-01 Richard Guenther <rguenther@suse.de>
10196
10197 PR tree-optimization/47890
10198 * tree-vect-loop.c (get_initial_def_for_induction): Set
10199 related stmt properly.
10200
10201 2011-03-01 Richard Guenther <rguenther@suse.de>
10202
10203 PR lto/47924
10204 * lto-streamer.c (lto_record_common_node): Also register
10205 the canonical type.
10206
10207 2011-03-01 Richard Guenther <rguenther@suse.de>
10208
10209 PR lto/46911
10210 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10211 Do not stream DECL_ABSTRACT_ORIGIN.
10212 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10213 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10214 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10215 Do not stream DECL_ABSTRACT_ORIGIN.
10216 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10217 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10218
10219 2011-02-28 Anatoly Sokolov <aesok@post.ru>
10220
10221 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10222 FUNCTION_VALUE_REGNO_P): Remove.
10223 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10224 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10225 Add 'outgoing' argument.
10226 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10227 function.
10228 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10229 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10230
10231 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
10232
10233 PR debug/28047
10234 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10235 (lookup_filename): Likewise.
10236 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10237
10238 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
10239 Jakub Jelinek <jakub@redhat.com>
10240
10241 PR middle-end/47893
10242 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10243 (assign_stack_local_1): Change last argument type to int.
10244 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10245 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
10246 don't record padding space into frame_space_list nor use those areas.
10247 (assign_stack_local): Adjust caller.
10248 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10249 of assign_stack_local, pass 0 as last argument.
10250 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10251 callers.
10252
10253 2011-02-28 Jakub Jelinek <jakub@redhat.com>
10254
10255 PR debug/47283
10256 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10257 Use target address_mode and pointer_mode hooks instead of hardcoded
10258 Pmode and ptr_mode. Handle some simple cases of extending if
10259 POINTERS_EXTEND_UNSIGNED < 0.
10260 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10261 Call convert_debug_memory_address.
10262 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10263 convert_debug_memory_address.
10264
10265 PR middle-end/46790
10266 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10267 * configure: Regenerated.
10268 * config.in: Regenerated.
10269 * varasm.c (default_function_section): Return NULL
10270 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10271
10272 2011-02-28 Martin Jambor <mjambor@suse.cz>
10273
10274 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10275 the description to match the printed values.
10276
10277 2011-02-28 Richard Guenther <rguenther@suse.de>
10278
10279 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10280 of the copied scope tree.
10281
10282 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10283
10284 * doc/extend.texi (Function Attributes): Avoid deeply (and
10285 wrongly) nested tables.
10286
10287 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10288
10289 PR middle-end/47903
10290 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10291 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10292 r isn't op0 nor op1.
10293
10294 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10295
10296 * config/avr/avr.md: Remove magic comment for emacs.
10297
10298 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10299
10300 PR target/45261
10301 * config/avr/avr.c (avr_option_override): Use error on bad options.
10302 (avr_help): New function.
10303 (TARGET_HELP): Define.
10304
10305 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
10306
10307 PR target/42240
10308 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10309 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10310
10311 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
10312
10313 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10314 (ARM Options): Ditto.
10315 (i386 and x86-64 Options): Ditto.
10316 (RX Options): Ditto.
10317 (SPARC Options): Ditto.
10318
10319 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
10320
10321 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10322 FreeBSD 6 and later. Generally use cpu generic.
10323
10324 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
10325
10326 * doc/cpp.texi: Update copyright years.
10327
10328 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
10329
10330 PR target/46898
10331 * config/lm32/lm32.md (ashrsi3): Added needed variable.
10332
10333 2011-02-25 Jon Beniston <jon@beniston.com>
10334
10335 PR target/46898
10336 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10337 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10338 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10339 (lm32_block_move_inline): Add type cast to remove warning.
10340 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10341 (gen_int_relational): Move declarations to start of function.
10342
10343 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
10344
10345 PR tree-optimization/45470
10346 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10347 can throw internally only.
10348 * tree-vect-stmts.c (vectorizable_call): Likewise.
10349
10350 2011-02-24 Anatoly Sokolov <aesok@post.ru>
10351
10352 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10353 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10354 * config/stormy16/stormy16-protos.h
10355 (xstormy16_preferred_reload_class): Remove.
10356 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10357 static. Change 'rclass' argument and return type to reg_class_t.
10358 (TARGET_PREFERRED_RELOAD_CLASS,
10359 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10360
10361 2011-02-24 Richard Guenther <rguenther@suse.de>
10362
10363 * lto-streamer-in.c (input_bb): Do not find referenced vars
10364 in debug statements.
10365
10366 2011-02-23 Jason Merrill <jason@redhat.com>
10367
10368 * common.opt (fabi-version): Document v5 and v6.
10369
10370 2011-02-23 Richard Guenther <rguenther@suse.de>
10371
10372 PR tree-optimization/47849
10373 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10374
10375 2011-02-23 Jie Zhang <jie@codesourcery.com>
10376
10377 * opts-common.c (decode_cmdline_option): Print empty string
10378 argument as "" in decoded->orig_option_with_args_text.
10379 * gcc.c (execute): Print empty string argument as ""
10380 in the verbose output.
10381 (do_spec_1): Keep empty string argument.
10382
10383 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
10384
10385 * config.gcc: Declare score-* and crx-* obsolete.
10386
10387 2011-02-23 Jie Zhang <jie@codesourcery.com>
10388
10389 PR rtl-optimization/47763
10390 * web.c (web_main): Ignore naked clobber when replacing register.
10391
10392 2011-02-22 Anatoly Sokolov <aesok@post.ru>
10393
10394 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10395 Remove.
10396
10397 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
10398
10399 PR doc/47848
10400 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10401
10402 2011-02-22 Mike Stump <mikestump@comcast.net>
10403
10404 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10405 assembler.
10406 * configure: Regenerate.
10407
10408 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
10409
10410 PR rtl-optimization/46002
10411 * ira-color.c (update_copy_costs): Change class intersection
10412 test to reg_class_contents[] test of 'hard_regno'.
10413
10414 2011-02-21 Joseph Myers <joseph@codesourcery.com>
10415
10416 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10417 than Driver option.
10418 * config/hpux11.opt (mt): Likewise.
10419 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10420 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10421 * config/vax/elf.opt (mno-asm-pic): Likewise.
10422 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10423
10424 2011-02-21 Mike Stump <mikestump@comcast.net>
10425
10426 PR target/47822
10427 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10428 tree so we can get save the type.
10429 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10430 for CFString instead of trying to use past the end of the builtins.
10431 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10432 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10433 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10434 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10435 Rename to darwin_builtin_cfstring.
10436 (darwin_init_cfstring_builtins): Return the built type.
10437
10438 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
10439
10440 PR target/47840
10441 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10442 (_mm256_insert_epi64): Use _mm_insert_epi64.
10443
10444 2011-02-21 Anatoly Sokolov <aesok@post.ru>
10445
10446 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10447 * config/stormy16/stormy16-protos.h
10448 (xstormy16_mode_dependent_address_p): Remove.
10449 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10450 Make static. Change return type to bool. Change argument type to
10451 const_rtx. Remove dead code.
10452 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10453
10454 2011-02-21 Richard Guenther <rguenther@suse.de>
10455
10456 PR lto/47820
10457 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10458 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10459 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10460 TUs context.
10461 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10462 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10463
10464 2011-02-20 Richard Guenther <rguenther@suse.de>
10465
10466 PR lto/47822
10467 * tree.c (free_lang_data_in_decl): Clean builtins from
10468 the TU decl BLOCK_VARS.
10469
10470 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
10471
10472 PR debug/47620
10473 PR debug/47630
10474 * haifa-sched.c (fix_tick_ready): Skip tick computation
10475 for debug insns.
10476
10477 2011-02-19 Richard Guenther <rguenther@suse.de>
10478
10479 PR lto/47647
10480 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10481 Remove lazy BLOCK_VARS streaming.
10482 (lto_input_ts_block_tree_pointers): Likewise.
10483 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10484
10485 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10486
10487 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10488
10489 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10490
10491 * config/i386/biarch32.h, config/i386/mach.h,
10492 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10493
10494 2011-02-19 Jakub Jelinek <jakub@redhat.com>
10495
10496 PR target/47800
10497 * config/i386/i386.md (peephole2 for shift and plus): Use
10498 operands[1] original mode in the first insn.
10499
10500 2011-02-18 Mike Stump <mikestump@comcast.net>
10501
10502 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10503
10504 2011-02-18 Jan Hubicka <jh@suse.cz>
10505
10506 PR middle-end/47788
10507 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10508 to zero when the function is not inlinable at all.
10509
10510 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10511
10512 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10513 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10514 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10515 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10516 * config/pa/t-pa64: Likewise.
10517 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10518
10519 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10520
10521 PR driver/47787
10522 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10523
10524 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10525
10526 PR target/47792
10527 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10528
10529 2011-02-18 Anatoly Sokolov <aesok@post.ru>
10530
10531 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10532 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10533 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10534 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10535 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10536 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10537 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10538 m32r_load_postinc_p, m32r_store_preinc_predec_p,
10539 m32r_legitimate_address_p): New functions.
10540 * config/m32r/constraints.md (constraint "S"): Don't use
10541 STORE_PREINC_PREDEC_P.
10542 (constraint "U"): Don't use LOAD_POSTINC_P.
10543
10544 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
10545
10546 PR rtl-optimization/46178
10547 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10548 compute ira_hard_regno_cover_class[].
10549
10550 2011-02-18 Richard Guenther <rguenther@suse.de>
10551
10552 PR lto/47798
10553 * lto-streamer.h (lto_global_var_decls): Declare.
10554 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10555 statics for global var processing.
10556
10557 2011-02-18 Richard Guenther <rguenther@suse.de>
10558
10559 PR tree-optimization/47737
10560 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10561 edge dominance check.
10562
10563 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10564
10565 PR debug/47780
10566 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10567 avoid invalid rtx sharing.
10568
10569 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
10570
10571 * doc/cpp.texi (Obsolete Features): Add background on the
10572 origin of assertions.
10573
10574 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
10575
10576 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10577 objc_abi == 2.
10578 * config/darwin.c (output_objc_section_asm_op): Added support for
10579 ABI v1 and v2.
10580 (is_objc_metadata): New.
10581 (darwin_objc2_section): New.
10582 (darwin_objc1_section): New.
10583 (machopic_select_section): Added support for ABI v1 and v2.
10584 (darwin_emit_objc_zeroed): New.
10585 (darwin_output_aligned_bss): Detect objc metadata and treat it
10586 appropriately.
10587 (darwin_asm_output_aligned_decl_common): Same.
10588 (darwin_asm_output_aligned_decl_local): Same.
10589 * config/darwin-sections.def: Updated for ABI v1 and v2.
10590 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10591 compiling Objective-C code for the NeXT runtime, default to using
10592 ABI version 0 for 32-bit, and version 2 for 64-bit.
10593
10594 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10595
10596 * common.opt (optimize_fast): New Variable.
10597 * opts.c (default_options_optimization): Use opts->x_optimize_fast
10598 instead of local variable ofast.
10599
10600 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
10601
10602 * doc/invoke.texi (fobjc-abi-version): Documented.
10603 (fobjc-nilcheck): Documented.
10604 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10605 version.
10606
10607 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10608
10609 PR driver/47390
10610 * common.opt (export-dynamic): New Driver option.
10611 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10612
10613 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10614
10615 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10616
10617 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
10618 Jan Hubicka <jh@suse.cz>
10619
10620 PR debug/47106
10621 PR debug/47402
10622 * cfgexpand.c (account_used_vars_for_block): Remove.
10623 (estimated_stack_frame_size): Use referenced vars.
10624 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10625 that were referenced in the original function. Test src_fn
10626 rather than cfun. Drop redundant get_var_ann.
10627 (setup_one_parameter): Drop redundant get_var_ann.
10628 (declare_return_variable): Likewise.
10629 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10630 (copy_arguments_for_versioning): Drop redundant get_var_ann.
10631 * ipa-inline.c (compute_inline_parameters): Do not compute
10632 disregard_inline_limits here.
10633 (compute_inlinable_for_current, pass_inlinable): New.
10634 (pass_inline_parameters): Require PROP_referenced_vars.
10635 * cgraphunit.c (cgraph_process_new_functions): Don't run
10636 compute_inline_parameters explicitly unless function is in SSA form.
10637 (cgraph_analyze_function): Set .disregard_inline_limits.
10638 * tree-sra.c (convert_callers): Compute inliner parameters
10639 only for functions already in SSA form.
10640
10641 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10642
10643 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10644 -mlittle-endian-data.
10645
10646 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10647
10648 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10649 -mno-fpu, not -fpu and -no-fpu.
10650 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10651 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10652
10653 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
10654
10655 PR target/43653
10656 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10657 input reload with PLUS RTX.
10658
10659 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10660
10661 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10662 of InverseVar(MDMX).
10663
10664 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10665
10666 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10667 --m4-340.
10668
10669 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10670
10671 * config/mn10300/mn10300.opt (mno-crt0): New.
10672
10673 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10674
10675 * config/m68k/uclinux.opt (static-libc): New Driver option.
10676
10677 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10678
10679 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10680
10681 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10682
10683 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10684 %{muser-extend-enabled}.
10685
10686 2011-02-16 Richard Guenther <rguenther@suse.de>
10687
10688 PR tree-optimization/47738
10689 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10690 the TODO from tree_predictive_commoning.
10691
10692 2011-02-15 Jeff Law <law@redhat.com>
10693
10694 Revert
10695 2011-01-25 Jeff Law <law@redhat.com>
10696
10697 PR rtl-optimization/37273
10698 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10699 handle them like argument loads from stack slots. Do not double
10700 count memory for memory constants and argument loads from stack slots.
10701
10702 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10703
10704 PR middle-end/47725
10705 * combine.c (cant_combine_insn_p): Revert the last change.
10706
10707 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10708
10709 PR target/47755
10710 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10711 mode for vector constants. Remove code that checks for TImode.
10712
10713 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10714
10715 PR debug/47106
10716 PR debug/47402
10717 * cgraph.h (compute_inline_parameters): Return void.
10718 * ipa-inline.c (compute_inline_parameters): Adjust.
10719
10720 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10721
10722 PR debug/47106
10723 PR debug/47402
10724 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10725 rather than decl.
10726 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10727 * ipa-inline.c (compute_inline_parameters): Adjust.
10728
10729 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10730
10731 PR debug/47106
10732 PR debug/47402
10733 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10734 Adjust all users. Pass FN to...
10735 * tree-flow-inline.h (first_referenced_var): ... this. Add
10736 fn argument.
10737 * ipa-struct-reorg.c: Adjust.
10738 * tree-dfa.c: Adjust.
10739 * tree-into-ssa.c: Adjust.
10740 * tree-sra.c: Adjust.
10741 * tree-ssa-alias.c: Adjust.
10742 * tree-ssa-live.c: Adjust.
10743 * tree-ssa.c: Adjust.
10744 * tree-ssanames.c: Adjust.
10745 * tree-tailcall.c: Adjust.
10746
10747 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10748
10749 PR debug/47106
10750 PR debug/47402
10751 * tree-flow.h (referenced_var_lookup): Add fn parameter.
10752 Adjust all callers.
10753 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10754 * tree-flow-inline.h: Adjust.
10755 * gimple-pretty-print.c: Adjust.
10756 * tree-into-ssa.c: Adjust.
10757 * tree-ssa.c: Adjust.
10758 * cfgexpand.c: Adjust.
10759
10760 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10761
10762 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10763 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10764 (EXTRA_CONSTRAINT): Delete.
10765 * config/iq2000/constraints.md: New file.
10766 * config/iq2000/iq2000.md: Include it.
10767 (define_insn ""): Delete.
10768 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10769 unsupported constraint letters from patterns.
10770 (call_value, call_value_internal1): Likewise.
10771 (call_value_multiple_internal1): Likewise.
10772
10773 2011-02-15 Nick Clifton <nickc@redhat.com>
10774
10775 * config/mn10300/mn10300.c: Include tm-constrs.h.
10776 (struct liw_data): New data structure describing an LIW candidate
10777 instruction.
10778 (extract_bundle): Use struct liw_data. Allow small integer
10779 operands for some instructions.
10780 (check_liw_constraints): Use struct liw_data. Remove swapped
10781 parameter. Add comments describing the checks. Fix bug when
10782 assigning the source of liw1 to the source of liw2.
10783 (liw_candidate): Delete. Code moved into extract_bundle.
10784 (mn10300_bundle_liw): Use struct liw_data. Check constraints
10785 before swapping.
10786 * config/mn10300/predicates.md (liw_operand): New predicate.
10787 Allows registers and small integer constants.
10788 * config/mn10300/constraints.md (O): New constraint. Accetps
10789 integers in the range -8 to +7 inclusive.
10790 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10791 for moving a small integer into a register. Give this alternative
10792 LIW attributes.
10793 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10794 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10795 using the J,K,L and M constraints,
10796 (liw): Remove SI mode on second operands to allow for HI and QI
10797 mode values.
10798 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
10799 instruction.
10800
10801 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10802
10803 PR middle-end/47725
10804 * combine.c (cant_combine_insn_p): Check zero/sign extended
10805 hard registers.
10806
10807 2011-02-15 Richard Guenther <rguenther@suse.de>
10808
10809 PR tree-optimization/47743
10810 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10811 for a non-type-compatible VN lookup bail out.
10812
10813 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10814
10815 * config/fr30/constraints.md: New file.
10816 * config/fr30/fr30.md: Include it.
10817 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10818 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10819 (EXTRA_CONSTRAINT): Delete.
10820
10821 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10822
10823 * config/frv/constraints.md: New file.
10824 * config/frv/predicates.md: Include it.
10825 * config/frv/frv.c (reg_class_from_letter): Delete.
10826 (frv_option_override): Don't initialize it.
10827 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10828 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10829 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10830 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10831 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10832 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10833 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10834 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10835 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10836 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10837 (REG_CLASS_FROM_CONSTRAINT): Delete.
10838
10839 2011-02-15 Jakub Jelinek <jakub@redhat.com>
10840
10841 PR middle-end/47581
10842 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10843 if frame size is 0 in a leaf function.
10844
10845 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10846
10847 PR pch/14940
10848 * config/alpha/host-osf.c: New file.
10849 * config/alpha/x-osf: New file.
10850 * config.host (alpha*-dec-osf*): Use it.
10851
10852 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10853
10854 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10855 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10856 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10857 (rx_mode_dependent_address_p): ...this. Make static. Change argument
10858 type to const_rtx.
10859 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10860
10861 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10862
10863 * config/stormy16/constraints.md: New file.
10864 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10865 Use satisfies_constraint_Q and satisfies_constraint_R.
10866 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10867 Delete.
10868 (xstormy16_legitiamte_address_p): Declare.
10869 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10870 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10871 (EXTRA_CONSTRAINT): Delete.
10872 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10873 Un-staticize.
10874 (xstormy16_extra_constraint_p): Delete.
10875
10876 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
10877
10878 PR tree-optimization/46494
10879 * loop-unroll.c (split_edge_and_insert): Adjust comment.
10880 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10881 (pass_rtl_loop_done): Add TODO_verify_flow.
10882 * fwprop.c (pass_rtl_fwprop): Likewise.
10883 * modulo-sched.c (pass_sms): Likewise.
10884 * tree-ssa-dom.c (pass_dominator): Likewise.
10885 * tree-ssa-loop-ch.c (pass_ch): Likewise.
10886 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10887 (pass_tree_loop_done): Likewise.
10888 * tree-ssa-pre.c (execute_pre): Likewise.
10889 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10890 * tree-ssa-sink.c (pass_sink_code): Likewise.
10891 * tree-vrp.c (pass_vrp): Likewise.
10892
10893 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10894
10895 * config/v850/constraints.md: New file.
10896 * config/v850/v850.md: Include it.
10897 * config/v850/predicates.md (reg_or_0_operand): Use
10898 satisfies_constraint_G.
10899 (special_symbolref_operand): Use satisfies_constraint_K.
10900 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10901 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10902 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10903 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10904 (EXTRA_CONSTRAINT): Delete.
10905 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10906 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10907 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10908
10909 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10910
10911 PR target/47696
10912 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10913 description.
10914
10915 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10916
10917 * config/mcore/constraints.md: New file.
10918 * config/mcore/mcore.md: Include it.
10919 * config/mcore/mcore.c (reg_class_from_letter): Delete.
10920 * config/mcore/mcore.h (reg_class_from_letter): Delete.
10921 (REG_CLASS_FROM_LETTER): Delete.
10922 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10923 insn_const_int_ok_for_constraint.
10924 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10925 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10926 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10927 (EXTRA_CONSTRAINT): Delete.
10928
10929 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10930
10931 PR ada/41929
10932 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10933 (IS_SIGHANDLER): Define.
10934 (sparc64_is_sighandler): New function, split off from
10935 sparc64_fallback_frame_state.
10936 (sparc_is_sighandler): New function, split off from
10937 sparc_fallback_frame_state.
10938 (sparc64_fallback_frame_state): Merge with ...
10939 (sparc_fallback_frame_state): ... this into ...
10940 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10941 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10942 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10943 stack instead of hardcoded offsets.
10944
10945 2011-02-14 Andriy Gapon <avg@freebsd.org>
10946
10947 PR target/45808
10948 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10949
10950 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10951
10952 * configure: Regenerate.
10953
10954 2011-02-12 Joseph Myers <joseph@codesourcery.com>
10955
10956 PR driver/45731
10957 * gcc.c (asm_options): Correct spec matching --target-help.
10958
10959 2011-02-12 Martin Jambor <mjambor@suse.cz>
10960
10961 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10962 to gimple call error.
10963
10964 2011-02-12 Mike Stump <mikestump@comcast.net>
10965
10966 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10967 comments in backslash regions.
10968
10969 2011-02-12 Mike Stump <mikestump@comcast.net>
10970 Jakub Jelinek <jakub@redhat.com>
10971 Iain Sandoe <iains@gcc.gnu.org>
10972
10973 PR target/47324
10974 * dwarf2out.c (output_cfa_loc): When required, apply the
10975 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10976 (output_loc_sequence): Likewise.
10977 (output_loc_operands_raw): Likewise.
10978 (output_loc_sequence_raw): Likewise.
10979 (output_cfa_loc): Likewise.
10980 (output_loc_list): Suppress register number adjustment when
10981 calling output_loc_sequence()
10982 (output_die): Likewise.
10983
10984 2011-02-12 Anatoly Sokolov <aesok@post.ru>
10985
10986 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10987 Remove macros.
10988 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10989 xtensa_memory_move_cost): New functions.
10990 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10991
10992 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
10993
10994 PR lto/47225
10995 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10996 in the current directory.
10997 * configure: Rebuilt.
10998
10999 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11000
11001 * config/darwin.c (darwin_override_options): Add a hunk missed
11002 from the commit of r168571. Trim comment line lengths and
11003 correct indents of the preceding block.
11004
11005 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11006
11007 * gcc.c (driver_handle_option): Concatenate the argument to -F with
11008 the switch.
11009
11010 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11011
11012 * common.opt (nostartfiles): New Driver option.
11013
11014 2011-02-11 Xinliang David Li <davidxl@google.com>
11015
11016 PR tree-optimization/47707
11017 * tree-chrec.c (convert_affine_scev): Keep type precision.
11018
11019 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
11020
11021 PR tree-optimization/47420
11022 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11023
11024 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
11025
11026 PR rtl-optimization/47614
11027 * rtl.h (check_for_inc_dec): Declare.
11028 * dse.c (check_for_inc_dec): Externalize...
11029 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11030 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11031
11032 2011-02-11 Joseph Myers <joseph@codesourcery.com>
11033
11034 PR driver/47678
11035 * gcc.c (main): Do not compile inputs if there were errors in
11036 option handling.
11037 * opts-common.c (read_cmdline_option): Check for wrong language
11038 after other error checks.
11039
11040 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
11041
11042 * cgraph.c: Fix comment typos.
11043 * cgraph.h: Likewise.
11044 * cgraphunit.c: Likewise.
11045 * ipa-cp.c: Likewise.
11046 * ipa-inline.c: Likewise.
11047 * ipa-prop.c: Likewise.
11048 * ipa-pure-const.c: Likewise.
11049 * ipa-ref.c: Likewise.
11050 * ipa-reference.c: Likewise.
11051
11052 2011-02-11 Jakub Jelinek <jakub@redhat.com>
11053
11054 PR debug/47684
11055 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11056
11057 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11058
11059 PR testsuite/47400
11060 * doc/sourcebuild.texi (Require Support): Document
11061 dg-require-ascii-locale.
11062
11063 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
11064
11065 * doc/lto.texi (Write summary): Fix missing parentheses.
11066
11067 2011-02-10 DJ Delorie <dj@redhat.com>
11068
11069 * config/m32c/m32c.c (m32c_option_override): Disable
11070 -fcombine-stack-adjustments until flag value tracking and compare
11071 optimization can be rewritten.
11072
11073 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
11074
11075 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11076 PROCESSOR_POWER7.
11077 (PROCESSOR_DEFAULT64): Likewise.
11078
11079 2011-02-10 Richard Henderson <rth@redhat.com>
11080
11081 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11082 change from 2011-02-03.
11083 * config/rx/rx.c (flags_from_code): Likewise.
11084 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11085 is valid, n/pz otherwise.
11086 (rx_select_cc_mode): Return CCmode if Y is not zero.
11087
11088 2011-02-10 Richard Guenther <rguenther@suse.de>
11089
11090 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11091
11092 2011-02-10 Richard Guenther <rguenther@suse.de>
11093
11094 PR tree-optimization/47677
11095 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11096
11097 2011-02-10 Jakub Jelinek <jakub@redhat.com>
11098
11099 PR target/47665
11100 * combine.c (make_compound_operation): Only change shifts into
11101 multiplication for SCALAR_INT_MODE_P.
11102
11103 2011-02-10 Jie Zhang <jie@codesourcery.com>
11104
11105 PR testsuite/47622
11106 Revert
11107 2011-02-05 Jie Zhang <jie@codesourcery.com>
11108 PR debug/42631
11109 * web.c (entry_register): Don't clobber the number of the
11110 first uninitialized reference in used[].
11111
11112 2011-02-09 Richard Guenther <rguenther@suse.de>
11113
11114 PR tree-optimization/47664
11115 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11116 all edges again.
11117
11118 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
11119
11120 PR target/46481
11121 PR target/47032
11122 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11123 PROCESSOR_POWER7.
11124 (PROCESSOR_DEFAULT64): Same.
11125 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11126
11127 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11128
11129 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11130
11131 2011-02-09 Martin Jambor <mjambor@suse.cz>
11132
11133 PR middle-end/45505
11134 * tree-sra.c (struct access): New flags grp_scalar_read and
11135 grp_scalar_write. Changed description of assignment read and write
11136 flags.
11137 (dump_access): Dump new flags, reorder all of them.
11138 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11139 to detect multiple scalar reads.
11140 (analyze_access_subtree): Use the new scalar read write flags instead
11141 of the old flags. Adjusted comments.
11142
11143 2011-02-08 DJ Delorie <dj@redhat.com>
11144
11145 PR target/47548
11146 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11147 patterns.
11148
11149 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11150
11151 * config/m68k/uclinux.opt: New.
11152 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11153
11154 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11155
11156 * config/cris/elf.opt (sim): New Driver option.
11157
11158 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11159
11160 * config/xtensa/elf.opt: New.
11161 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11162
11163 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11164
11165 * config/vax/elf.opt: New.
11166 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11167
11168 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11169
11170 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11171
11172 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11173
11174 * config/gnu-user.opt: New.
11175 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11176 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11177 *-*-uclinux*): Use gnu-user.opt.
11178
11179 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
11180
11181 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11182 * config/i386/gnu.h (CPP_SPEC): Likewise.
11183
11184 2011-02-08 Ian Lance Taylor <iant@google.com>
11185
11186 * common.opt (fcx-limited-range): Add SetByCombined flag.
11187 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11188 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11189 (fassociative-math, freciprocal-math): Likewise.
11190 (funsafe-math-optimizations): Likewise.
11191 * opth-gen.awk: Handle SetByCombined.
11192 * optc-gen.awk: Likewise.
11193 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11194 (set_unsafe_math_optimizations_flags): Likewise.
11195 * doc/options.texi (Option properties): Document SetByCombined.
11196
11197 2011-02-08 Joseph Myers <joseph@codesourcery.com>
11198
11199 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11200 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11201 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11202 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11203 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11204
11205 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
11206
11207 PR tree-optimization/46834
11208 PR tree-optimization/46994
11209 PR tree-optimization/46995
11210 * graphite-sese-to-poly.c (used_outside_reduction): New.
11211 (detect_commutative_reduction): Call used_outside_reduction.
11212 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11213 translate_scalar_reduction_to_array only when at least one
11214 loop-phi/close-phi tuple has been detected.
11215
11216 2011-02-08 Richard Guenther <rguenther@suse.de>
11217
11218 PR middle-end/47639
11219 * tree-vect-generic.c (expand_vector_operations_1): Update
11220 stmts here ...
11221 (expand_vector_operations): ... not here. Cleanup EH info
11222 and the CFG if required.
11223
11224 2011-02-08 Richard Guenther <rguenther@suse.de>
11225
11226 PR tree-optimization/47641
11227 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11228 require type compatibility.
11229
11230 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11231
11232 * gimple-low.c (lower_function_body): Don't remove the location of
11233 the return statement here.
11234 (lower_gimple_return): Do it here instead but only if the return
11235 statement is actually used twice.
11236
11237 2011-02-08 Richard Guenther <rguenther@suse.de>
11238
11239 PR tree-optimization/47632
11240 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11241 unused up_to_stmt parameter, return whether cfg-cleanup is
11242 necessary, remove EH info properly.
11243 (forward_propagate_into_gimple_cond): Adjust caller.
11244 (forward_propagate_into_cond): Likewise.
11245 (forward_propagate_comparison): Likewise.
11246 (tree_ssa_forward_propagate_single_use_vars): Make
11247 forward_propagate_comparison case similar to the two others.
11248
11249 2011-02-08 Nick Clifton <nickc@redhat.com>
11250
11251 * config/mn10300/mn10300.opt (mliw): New command line option.
11252 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11253 (liw_bundling): New automaton.
11254 (liw): New attribute.
11255 (liw_op): New attribute.
11256 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11257 (movsi_internal): Add LIW attributes.
11258 (andsi3): Likewise.
11259 (iorsi3): Likewise.
11260 (xorsi3): Likewise.
11261 (addsi3): Separate register and immediate alternatives.
11262 Add LIW attributes.
11263 (subsi3): Likewise.
11264 (cmpsi): Likewise.
11265 (aslsi3): Likewise.
11266 (lshrsi3): Likewise.
11267 (ashrsi3): Likewise.
11268 (liw): New pattern.
11269 * config/mn10300/mn10300.c (liw_op_names): New
11270 (mn10300_print_operand): Handle 'W' operand descriptor.
11271 (extract_bundle): New function.
11272 (check_liw_constraints): New function.
11273 (liw_candidate): New function.
11274 (mn10300_bundle_liw): New function.
11275 (mn10300_reorg): New function.
11276 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11277 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11278 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11279 __LIW__ or __NO_LIW__.
11280 * doc/invoke.texi: Describe the -mliw command line option.
11281
11282 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11283
11284 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11285 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11286 pthread_mutex_unlock): Remove.
11287 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11288 * config/pa/t-pa64: Likewise.
11289 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11290 shared libc if not linking against libpthread.
11291 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11292
11293 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
11294
11295 PR target/47558
11296 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11297 on 10.6 and later to ensure that we always use the unwinder from
11298 the system. Only add -no_compact_unwind when tarteting darwin
11299 10.6 or later.
11300
11301 2011-02-07 Steve Ellcey <sje@cup.hp.com>
11302
11303 PR target/46997
11304 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11305 (vec_interleave_lowv2sf): Ditto.
11306 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11307 (vec_extract_oddv2sf): Ditto.
11308
11309 2011-02-07 Mike Stump <mikestump@comcast.net>
11310
11311 PR target/42333
11312 Add __ieee_divdc3 entry point.
11313 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11314 entry point.
11315 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11316 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11317 * config/darwin.c (darwin_rename_builtins): Add.
11318 * config/darwin-protos.h (darwin_rename_builtins): Add.
11319
11320 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
11321
11322 PR target/47636
11323 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11324 for the condition.
11325
11326 2011-02-07 Mike Stump <mikestump@comcast.net>
11327
11328 * config/darwin.opt (mmacosx-version-min): Update default OS version.
11329
11330 2011-02-07 Denis Chertykov <chertykov@gmail.com>
11331
11332 PR target/47534
11333 * config/avr/libgcc.S (exit): Move .endfunc
11334
11335 2011-02-07 Richard Guenther <rguenther@suse.de>
11336
11337 PR tree-optimization/47615
11338 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11339 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11340 (run_scc_vn): Initialize it.
11341 (visit_reference_op_load): Use it.
11342 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11343
11344 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11345
11346 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11347 DImode trapping arithmetic libfuncs.
11348
11349 2011-02-07 Richard Guenther <rguenther@suse.de>
11350
11351 PR tree-optimization/47621
11352 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11353 two duplicates ...
11354 (execute_update_addresses_taken): ... here. Make it more
11355 conservative in what we accept.
11356
11357 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11358
11359 * config/sparc/freebsd.h (ASM_SPEC): Define.
11360 * config/sparc/vxworks.h (ASM_SPEC): Define.
11361
11362 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11363
11364 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11365
11366 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
11367
11368 * doc/invoke.texi: Remove reference to compiler internals from
11369 user documentation.
11370
11371 * reg-notes.def: Remove REG_VALUE_PROFILE.
11372 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11373
11374 2011-02-05 Jakub Jelinek <jakub@redhat.com>
11375
11376 PR middle-end/47610
11377 * varasm.c (default_section_type_flags): If decl is NULL,
11378 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11379
11380 2011-02-05 Jie Zhang <jie@codesourcery.com>
11381
11382 PR debug/42631
11383 * web.c (entry_register): Don't clobber the number of the
11384 first uninitialized reference in used[].
11385
11386 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
11387
11388 PR tree-optimization/46194
11389 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11390 (build_classic_dist_vector_1): Do not represent classic distance
11391 vectors when the access functions are variating in different loops.
11392
11393 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11394
11395 * config/mips/iris6.opt: New.
11396 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11397
11398 2011-02-04 Richard Henderson <rth@redhat.com>
11399 Steve Ellcey <sje@cup.hp.com>
11400
11401 PR target/46997
11402 * config/ia64/predicates.md (mux1_brcst_element): New.
11403 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11404 * config/ia64/ia64.c (ia64_unpack_assemble): New.
11405 (ia64_unpack_sign): New.
11406 (ia64_expand_unpack): Rewrite using new routines.
11407 (ia64_expand_widen_sum): Ditto.
11408 (ia64_expand_dot_prod_v8qi): Ditto.
11409 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11410 routines, add endian check.
11411 (pmpy2_even): Rename from pmpy2_r, add endian check.
11412 (pmpy2_odd): Rename from pmpy2_l, add endian check.
11413 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11414 (vec_widen_smult_hi_v4hi): Ditto.
11415 (vec_widen_umult_lo_v4hi): Ditto.
11416 (vec_widen_umult_hi_v4hi): Ditto.
11417 (mulv2si3): Change endian checks.
11418 (sdot_prodv4hi): Rewrite with new calls.
11419 (udot_prodv4hi): New.
11420 (vec_pack_ssat_v4hi): Add endian check.
11421 (vec_pack_usat_v4hi): Ditto.
11422 (vec_pack_ssat_v2si): Ditto.
11423 (max1_even): Rename from max1_r, add endian check.
11424 (max1_odd): Rename from max1_l, add endian check.
11425 (*mux1_rev): Format change.
11426 (*mux1_mix): Ditto.
11427 (*mux1_shuf): Ditto.
11428 (*mux1_alt): Ditto.
11429 (*mux1_brcst_v8qi): Use new predicate.
11430 (vec_extract_evenv8qi): Remove endian check.
11431 (vec_extract_oddv8qi): Ditto.
11432 (vec_interleave_lowv4hi): Format change.
11433 (vec_interleave_highv4hi): Ditto.
11434 (mix2_even): Rename from mix2_r, add endian check.
11435 (mix2_odd): Rename from mux2_l, add endian check.
11436 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11437 (vec_extract_evenodd_helper): Format change.
11438 (vec_extract_evenv4hi): Remove endian check.
11439 (vec_extract_oddv4hi): Remove endian check.
11440 (vec_interleave_lowv2si): Format change.
11441 (vec_interleave_highv2si): Format change.
11442 (vec_initv2si): Remove endian check.
11443 (vecinit_v2si): Add endian check.
11444 (reduc_splus_v2sf): Add endian check.
11445 (reduc_smax_v2sf): Ditto.
11446 (reduc_smin_v2sf): Ditto.
11447 (vec_initv2sf): Remove endian check.
11448 (fpack): Add endian check.
11449 (fswap): Add endian check.
11450 (vec_interleave_highv2sf): Add endian check.
11451 (vec_interleave_lowv2sf): Add endian check.
11452 (fmix_lr): Add endian check.
11453 (vec_setv2sf): Format change.
11454 (*vec_extractv2sf_0_be): Use shift to extract operand.
11455 (*vec_extractv2sf_1_be): New.
11456 (vec_pack_trunc_v4hi): Add endian check.
11457 (vec_pack_trunc_v2si): Format change.
11458
11459 2011-02-04 Jakub Jelinek <jakub@redhat.com>
11460
11461 PR inline-asm/23200
11462 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
11463 do bb, locus and block comparison and disallow loads if it is not set.
11464 (stmt_is_replaceable_p): New function.
11465 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11466 callers.
11467 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11468 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11469 SSA_NAME_DEF_STMT.
11470 * tree-flow.h (stmt_is_replaceable_p): New prototype.
11471
11472 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11473
11474 * config/rs6000/xilinx.opt: New.
11475 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11476
11477 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11478
11479 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11480
11481 2011-02-03 Anatoly Sokolov <aesok@post.ru>
11482
11483 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11484 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11485 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11486 secondary_reload_info, xtensa_secondary_reload): Remove.
11487 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11488 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11489 (xtensa_preferred_reload_class): Make static. Change return and
11490 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11491 Use CONST_DOUBLE_P predicate.
11492 (xtensa_preferred_output_reload_class): New function.
11493 (xtensa_secondary_reload): Make static.
11494
11495 2011-02-03 Joseph Myers <joseph@codesourcery.com>
11496
11497 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11498 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11499 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11500
11501 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11502
11503 PR middle-end/31490
11504 * output.h (SECTION_RELRO): Define.
11505 (SECTION_MACH_DEP): Adjust.
11506 (get_variable_section): New prototype.
11507 * varpool.c (varpool_finalize_named_section_flags): New function.
11508 (varpool_assemble_pending_decls): Call it.
11509 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11510 * cgraphunit.c (cgraph_output_in_order): Call
11511 varpool_finalize_named_section_flags.
11512 * varasm.c (get_section): Allow section flags conflicts between
11513 relro and read-only sections if the section hasn't been declared yet.
11514 Set SECTION_OVERRIDE after diagnosing section type conflict.
11515 (get_variable_section): No longer static.
11516 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11517 readonly sections that need relocations.
11518 (decl_readonly_section_1): New function.
11519 (decl_readonly_section): Use it.
11520
11521 Revert:
11522 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
11523 Steve Ellcey <sje@cup.hp.com>
11524
11525 PR middle-end/31490
11526 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11527 if section attribute used.
11528
11529 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11530
11531 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11532 * config/darwin.c (SECTION_NO_ANCHOR): Define.
11533 (darwin_init_sections): Remove assertion.
11534
11535 2011-02-03 Nick Clifton <nickc@redhat.com>
11536
11537 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11538 lt and ge.
11539 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11540 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11541 instead of "n" and "pz".
11542 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11543 CC_FLAG_S.
11544
11545 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11546
11547 PR target/47312
11548 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11549 fma, expand FMA_EXPR as fma{,f,l} call.
11550
11551 PR lto/47274
11552 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11553 copy them into a unsigned char variable and pass address of it to
11554 lto_output_data_stream.
11555
11556 PR target/47564
11557 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11558 around backend_init_target and lang_dependent_init_target calls.
11559 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11560 (verify_cgraph_node): Don't call set_cfun here. Use
11561 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11562 Set error_found for incorrectly represented calls to thunks.
11563
11564 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11565
11566 PR debug/43092
11567 PR rtl-optimization/43494
11568 * rtl.h (for_each_inc_dec_fn): New type.
11569 (for_each_inc_dec): Declare.
11570 * rtlanal.c (struct for_each_inc_dec_ops): New type.
11571 (for_each_inc_dec_find_inc_dec): New fn.
11572 (for_each_inc_dec_find_mem): New fn.
11573 (for_each_inc_dec): New fn.
11574 * dse.c (struct insn_size): Remove.
11575 (replace_inc_dec, replace_inc_dec_mem): Remove.
11576 (emit_inc_dec_insn_before): New fn.
11577 (check_for_inc_dec): Use it, along with for_each_inc_dec.
11578 (canon_address): Pass mem modes to cselib_lookup.
11579 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
11580 (cselib_lookup_from_insn): Likewise.
11581 (cselib_subst_to_values): Likewise.
11582 * cselib.c (find_slot_memmode): New var.
11583 (cselib_find_slot): New fn. Use it instead of
11584 htab_find_slot_with_hash everywhere.
11585 (entry_and_rtx_equal_p): Use find_slot_memmode.
11586 (autoinc_split): New fn.
11587 (rtx_equal_for_cselib_p): Rename and implement in terms of...
11588 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
11589 Deal with autoinc. Special-case recursion into MEMs.
11590 (cselib_hash_rtx): Likewise.
11591 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
11592 address and MEM modes.
11593 (cselib_subst_to_values): Add memmode, pass it on.
11594 Deal with autoinc.
11595 (cselib_lookup): Add memmode argument, pass it on.
11596 (cselib_lookup_from_insn): Add memmode.
11597 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11598 (struct cselib_record_autoinc_data): New.
11599 (cselib_record_autoinc_cb): New fn.
11600 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
11601 mode to cselib_lookup. Reset autoinced REGs here instead of...
11602 (cselib_process_insn): ... here.
11603 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11604 to cselib_lookup.
11605 (add_uses): Likewise, also to cselib_subst_to_values.
11606 (add_stores): Likewise.
11607 * sched-deps.c (add_insn_mem_dependence): Pass mode to
11608 cselib_subst_to_values.
11609 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
11610 * gcse.c (do_local_cprop): Adjusted.
11611 * postreload.c (reload_cse_simplify_set): Adjusted.
11612 (reload_cse_simplify_operands): Adjusted.
11613 * sel-sched-dump (debug_mem_addr_value): Pass mode.
11614
11615 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11616
11617 PR tree-optimization/45122
11618 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11619 unsafe assumptions when there's more than one loop exit.
11620
11621 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11622
11623 PR target/47272
11624 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11625 Document using vector double with the load/store builtins, and
11626 that the load/store builtins always use Altivec instructions.
11627
11628 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11629 to use altivec memory instructions, even on VSX.
11630 (vector_altivec_store_<mode>): Ditto.
11631
11632 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11633 function.
11634
11635 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11636 V2DF, V2DI support to load/store overloaded builtins.
11637
11638 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11639 altivec load/store builtins for V2DF/V2DI types.
11640
11641 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11642 set avoid indexed addresses on power6 if -maltivec.
11643 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11644 vector_altivec_load/vector_altivec_store builtins.
11645 (altivec_expand_st_builtin): Ditto.
11646 (altivec_expand_builtin): Add VSX memory builtins.
11647 (rs6000_init_builtins): Add V2DI types to internal types.
11648 (altivec_init_builtins): Add support for V2DF/V2DI altivec
11649 load/store builtins.
11650 (rs6000_address_for_altivec): Insure memory address is appropriate
11651 for Altivec.
11652
11653 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11654 vec_vsx_ld and vec_vsx_st.
11655 (vsx_store_<mode>): Ditto.
11656
11657 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11658 variables to hold long long types for VSX vector memory builtins.
11659 (RS6000_BTI_unsigned_long_long): Ditto.
11660 (long_long_integer_type_internal_node): Ditti.
11661 (long_long_unsigned_type_internal_node): Ditti.
11662
11663 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11664 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11665 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11666
11667 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11668 short cuts.
11669 (vec_vsx_st): Ditto.
11670
11671 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11672
11673 * config/pa/pa-hpux10.opt: New.
11674 * config/hpux11.opt (pthread): New Driver option.
11675 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11676 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11677
11678 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11679
11680 * config/ia64/vms.opt: New.
11681 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11682
11683 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11684
11685 PR target/47580
11686 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11687 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11688 generator functions.
11689 (vsx_floatuns<VSi><mode>2): Ditto.
11690 (vsx_fix_trunc<mode><VSi>2): Ditto.
11691 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11692
11693 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11694
11695 * config/i386/djgpp.opt (posix): New Driver option.
11696
11697 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
11698
11699 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11700 Move to the unsupported targets list.
11701
11702 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
11703
11704 PR rtl-optimization/47525
11705 * df-scan.c: Update copyright years.
11706 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11707 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11708
11709 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11710
11711 * config/i386/sysv4.h (TARGET_VERSION): Remove.
11712 (SUBTARGET_RETURN_IN_MEMORY): Remove.
11713 (ASM_OUTPUT_ASCII): Remove.
11714 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11715
11716 2011-02-02 Jeff Law <law@redhat.com>
11717
11718 PR middle-end/47543
11719 * reload.c (find_reloads_address): Handle reg+d address where both
11720 components are invalid by reloading the entire address.
11721
11722 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11723 Richard Guenther <rguenther@suse.de>
11724
11725 PR tree-optimization/40979
11726 PR bootstrap/47044
11727 * passes.c (init_optimization_passes): After LIM call copy_prop
11728 and DCE to clean up.
11729 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11730
11731 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11732
11733 PR tree-optimization/47576
11734 PR tree-optimization/47555
11735 * doc/invoke.texi (scev-max-expr-complexity): Documented.
11736 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11737 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11738 * tree-scalar-evolution.c (follow_ssa_edge): Use
11739 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11740
11741 2011-02-02 Richard Guenther <rguenther@suse.de>
11742
11743 PR tree-optimization/47566
11744 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11745
11746 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11747
11748 PR debug/47106
11749 PR debug/47402
11750 * tree-inline.c (declare_return_variable): Remove unused caller
11751 variable.
11752
11753 PR debug/47106
11754 PR debug/47402
11755 * tree-flow-inline.h (clear_is_used, is_used_p): New.
11756 * cfgexpand.c (account_used_vars_for_block): Use them.
11757 * tree-nrv.c (tree_nrv): Likewise.
11758 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11759 (dump_scope_block): Likewise.
11760 (remove_unused_locals): Likewise.
11761
11762 PR debug/47106
11763 PR debug/47402
11764 * tree-inline.c (declare_return_variable): Add result decl to
11765 local decls only once.
11766 * gimple-low.c (record_vars_into): Mark newly-created variables
11767 as referenced.
11768
11769 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11770
11771 PR debug/47498
11772 PR debug/47501
11773 PR debug/45136
11774 PR debug/45130
11775 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11776 debug insns.
11777 (no_real_insns_p, schedule_block, set_priorities): Drop special
11778 treatment of boundary debug insns.
11779 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11780 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11781 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11782 (BOUNDARY_DEBUG_INSN_P): Likewise.
11783 (SCHEDULE_DEBUG_INSN_P): Likewise.
11784 * sched-rgn.c (init_ready_list): Drop special treatment of
11785 boundary debug insns.
11786 * final.c (rest_of_clean_state): Clear notes' BB.
11787
11788 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11789
11790 * config/openbsd.opt (assert=): New Driver option.
11791
11792 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11793
11794 * config/i386/nto.opt: New.
11795 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11796
11797 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11798
11799 * config/i386/netware.opt: New.
11800 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11801
11802 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11803
11804 * config/interix.opt (posix): New Driver option.
11805
11806 2011-02-01 DJ Delorie <dj@redhat.com>
11807
11808 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11809
11810 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11811 class for A0/A1.
11812
11813 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
11814
11815 PR tree-optimization/47561
11816 * toplev.c (process_options): Print the Graphite flags. Add
11817 flag_loop_flatten to the list of options requiring Graphite.
11818
11819 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11820
11821 * config/i386/cygming.opt (posix): New Driver option.
11822
11823 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11824
11825 * config/arm/vxworks.opt: New.
11826 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11827
11828 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11829
11830 * config/alpha/elf.opt: New.
11831 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11832 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11833
11834 2011-02-01 Richard Guenther <rguenther@suse.de>
11835
11836 PR tree-optimization/47559
11837 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11838 store-motion on references that can throw.
11839
11840 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
11841
11842 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11843 * tree-pass.h (TDF_CSELIB): New macro.
11844 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11845 cselib_lookup): Check for it rather than for TDF_DETAILS.
11846
11847 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
11848
11849 PR driver/47547
11850 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11851 is HOST_BIT_BUCKET.
11852
11853 * opts.c (finish_options): Don't add x_aux_base_name if it is
11854 HOST_BIT_BUCKET.
11855
11856 2011-02-01 Richard Guenther <rguenther@suse.de>
11857
11858 PR tree-optimization/47555
11859 Revert
11860 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
11861
11862 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11863
11864 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
11865
11866 PR gcc/46692
11867 * config/lm32/t-lm32: Add multilib for all CPU options.
11868
11869 2011-02-01 Richard Guenther <rguenther@suse.de>
11870
11871 PR tree-optimization/47541
11872 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11873 sure to have a field at offset zero.
11874
11875 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11876
11877 * config/arc/arc.opt (EB, EL): New Driver options.
11878
11879 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11880
11881 * config/alpha/osf5.opt: New.
11882 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11883
11884 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11885
11886 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11887
11888 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
11889
11890 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11891 -floop-interchange.
11892 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11893 is an alias of -floop-interchange and that it requires the
11894 Graphite infrastructure.
11895 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11896 flag_loop_interchange based on the value of flag_tree_loop_linear.
11897
11898 2011-01-31 Jakub Jelinek <jakub@redhat.com>
11899 Richard Guenther <rguenther@suse.de>
11900
11901 PR tree-optimization/47538
11902 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11903 type instead of r1type, except for comparisons. For right
11904 shifts and comparisons punt if there are mismatches in
11905 sizetype vs. non-sizetype types.
11906
11907 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11908
11909 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11910 avx_runtime.
11911
11912 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11913
11914 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11915 version number.
11916 * configure: Regenerate.
11917
11918 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11919
11920 * configure.ac (gcc_cv_ld_static_option): Define.
11921 (gcc_cv_ld_dynamic_option): Define.
11922 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11923 instead.
11924 (HAVE_LD_STATIC_DYNAMIC): Update message.
11925 (LD_STATIC_OPTION): Define.
11926 (LD_DYNAMIC_OPTION): Define.
11927 * configure: Regenerate.
11928 * config.in: Regenerate.
11929 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11930 HAVE_LD_STATIC_DYNAMIC]: Use them.
11931
11932 2011-01-31 Nick Clifton <nickc@redhat.com>
11933
11934 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11935 registers inside interrupt handlers if the handler is not a leaf
11936 function.
11937
11938 2011-01-31 Nick Clifton <nickc@redhat.com>
11939
11940 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11941 reg_renumber returning an INVALID_REGNUM.
11942
11943 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11944
11945 PR libgcj/44341
11946 * doc/install.texi: Document host options discarded when cross
11947 configuring target libraries.
11948
11949 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11950
11951 Reverted:
11952 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11953 PR debug/45136
11954 PR debug/45130
11955 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11956 debug insns.
11957 (no_real_insns_p, schedule_block, set_priorities): Drop special
11958 treatment of boundary debug insns.
11959 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11960 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11961 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11962 (BOUNDARY_DEBUG_INSN_P): Likewise.
11963 (SCHEDULE_DEBUG_INSN_P): Likewise.
11964 * sched-rgn.c (init_ready_list): Drop special treatment of
11965 boundary debug insns.
11966 * final.c (rest_of_clean-state): Clear notes' BB.
11967
11968 2011-01-31 Alan Modra <amodra@gmail.com>
11969
11970 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11971 toc relative expressions as we do in print_operand_address.
11972
11973 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
11974
11975 * doc/extend.texi: Follow spelling conventions.
11976 * doc/invoke.texi: Fix a typo.
11977
11978 2011-01-30 Joseph Myers <joseph@codesourcery.com>
11979
11980 * config/hpux11.opt: New.
11981 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11982 ia64*-*-hpux*): Use hpux11.opt.
11983
11984 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
11985
11986 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11987 to tmake_file.
11988
11989 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11990
11991 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11992 support sites.
11993
11994 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11995
11996 * doc/install.texi (Binaries): Remove outdated reference for
11997 Motorola 68HC11/68HC12 downloads.
11998
11999 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12000
12001 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12002 Drepper's paper.
12003
12004 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
12005
12006 PR bootstrap/47147
12007 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12008 used by NetBSD.
12009
12010 2011-01-28 Ahmad Sharif <asharif@google.com>
12011
12012 * value-prof.c (check_counter): Corrected error message.
12013
12014 2011-01-29 Jie Zhang <jie@codesourcery.com>
12015
12016 * config/arm/arm.c (arm_legitimize_reload_address): New.
12017 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12018 arm_legitimize_reload_address.
12019 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12020
12021 2011-01-28 Ian Lance Taylor <iant@google.com>
12022
12023 * godump.c (go_define): Ignore macros whose definitions include
12024 two adjacent operands.
12025
12026 2011-01-28 Jakub Jelinek <jakub@redhat.com>
12027
12028 PR target/42894
12029 * varasm.c (force_const_mem): Store copy of x in desc->constant
12030 instead of x itself.
12031 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12032 itself into REG_EQUAL note.
12033
12034 2011-01-28 Joseph Myers <joseph@codesourcery.com>
12035
12036 * config/freebsd.opt (posix, rdynamic): New Driver options.
12037
12038 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12039
12040 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12041 -Bstatic/-Bdynamic.
12042 * configure: Regenerate.
12043
12044 2011-01-27 Joseph Myers <joseph@codesourcery.com>
12045
12046 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12047 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12048
12049 2011-01-27 Anatoly Sokolov <aesok@post.ru>
12050
12051 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12052 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12053 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12054 (s390_preferred_reload_class): Make static. Change return and
12055 'rclass' argument type to reg_class_t.
12056
12057 2011-01-27 Jan Hubicka <jh@suse.cz>
12058
12059 PR middle-end/46949
12060 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12061 (process_function_and_variable_attributes): Check defined weakrefs.
12062
12063 2011-01-27 Martin Jambor <mjambor@suse.cz>
12064
12065 PR tree-optimization/47228
12066 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12067 build_ref_for_offset.
12068
12069 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12070
12071 * config/spu/spu-elf.h (ASM_SPEC): Remove.
12072
12073 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
12074
12075 PR rtl-optimization/46856
12076 * postreload.c (reload_combine_recognize_const_pattern): Do not
12077 separate cc0 setter and user on cc0 targets.
12078
12079 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
12080
12081 PR c/43082
12082 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12083 passed a VOID_TYPE expression, immediately emit an error and
12084 return error_mark_node.
12085
12086 2011-01-26 Jeff Law <law@redhat.com>
12087
12088 PR rtl-optimization/47464
12089 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12090 rather than may_trap_p as needed.
12091
12092 2011-01-26 DJ Delorie <dj@redhat.com>
12093
12094 PR rtl-optimization/46878
12095 * combine.c (insn_a_feeds_b): Check for the implicit cc0
12096 setter/user dependency as well.
12097
12098 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
12099
12100 PR rtl-optimization/44469
12101 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12102 after removing trivially dead basic blocks.
12103
12104 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12105
12106 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12107 * config/frv/frv.h (LINK_SPEC): Likewise.
12108 * config/i386/netware.h (LINK_SPEC): Likewise.
12109 * config/m68k/linux.h (ASM_SPEC): Likewise.
12110 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12111 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12112 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12113 * config/sparc/linux.h (ASM_SPEC): Likewise.
12114 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12115 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12116
12117 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12118
12119 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12120 * config/frv/frv.h (ASM_SPEC): Likewise.
12121 * config/m68k/linux.h (ASM_SPEC): Likewise.
12122 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12123 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12124 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12125 * config/sparc/linux.h (ASM_SPEC): Likewise.
12126 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12127 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12128
12129 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12130
12131 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12132 * config/frv/frv.h (LINK_SPEC): Likewise.
12133 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12134
12135 2011-01-26 Joseph Myers <joseph@codesourcery.com>
12136
12137 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12138 * config/frv/frv.h (ASM_SPEC): Likewise.
12139 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12140 * config/m68k/linux.h (ASM_SPEC): Likewise.
12141 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12142 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12143 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12144 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12145 * config/sparc/linux.h (ASM_SPEC): Likewise.
12146 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12147 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12148 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12149
12150 2011-01-26 Steve Ellcey <sje@cup.hp.com>
12151
12152 PR target/46997
12153 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12154 (*mux2): Ditto.
12155 (vec_extract_evenodd_help): Ditto.
12156 (vec_extract_evenv4hi): Ditto.
12157 (vec_extract_oddv4hi): Ditto.
12158 (vec_interleave_lowv2si): Ditto.
12159 (vec_interleave_highv2si): Ditto.
12160 (vec_extract_evenv2si): Ditto.
12161 (vec_extract_oddv2si: Ditto.
12162 (vec_pack_trunc_v2si): Ditto.
12163
12164 2011-01-22 Jan Hubicka <jh@suse.cz>
12165
12166 PR target/47237
12167 * cgraph.h (cgraph_local_info): New field can_change_signature.
12168 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12169 signature can change.
12170 (ipcp_estimate_growth): Call sequence simplify only if calle signature
12171 can change.
12172 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12173 (cgraph_function_versioning): We can not change signature of functions
12174 that don't allow that.
12175 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12176 (lto_input_node): Likewise.
12177 * ipa-inline.c (compute_inline_parameters): Compute
12178 local.can_change_signature.
12179 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12180 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12181 functions that can not change signature.
12182 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12183 init_cumulative_args): Do not use local calling conventions
12184 for functions that can not change signature.
12185
12186 2011-01-22 Jan Hubicka <jh@suse.cz>
12187
12188 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12189
12190 2011-01-26 Richard Guenther <rguenther@suse.de>
12191
12192 PR tree-optimization/47190
12193 * cgraphunit.c (process_common_attributes): New function.
12194 (process_function_and_variable_attributes): Use it.
12195
12196 2011-01-26 Richard Guenther <rguenther@suse.de>
12197
12198 PR lto/47423
12199 * cgraphbuild.c (record_eh_tables): Record reference to personality
12200 function.
12201
12202 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
12203
12204 PR debug/45454
12205 * sel-sched.c (moveup_expr): Don't let debug insns prevent
12206 non-debug insns from moving up.
12207
12208 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12209
12210 PR target/40125
12211 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12212 t-dlldir{,-x} fragment for build and add it to tmake_file.
12213 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12214 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12215 * config/i386/t-dlldir: New file.
12216 (SHLIB_DLLDIR): Define.
12217 * config/i386/t-dlldir-x: New file.
12218 (SHLIB_DLLDIR): Define.
12219 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12220 (SHLIB_INSTALL): Use it.
12221
12222 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
12223
12224 PR target/47246
12225 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12226 lower bound of the allowed Thumb-2 coprocessor load/store
12227 index range to -256. Add explaining comment.
12228
12229 2011-01-25 Ian Lance Taylor <iant@google.com>
12230
12231 * godump.c (go_define): Improve lexing of macro expansion to only
12232 accept expressions which match Go spec.
12233
12234 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12235
12236 PR c++/43601
12237 * tree.c (handle_dll_attribute): Handle it.
12238 * doc/extend.texi (@item dllexport): Mention it.
12239 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12240
12241 2011-01-25 Ian Lance Taylor <iant@google.com>
12242
12243 PR tree-optimization/26854
12244 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12245 (decl_jump_unsafe): Move higher in file, with no other change.
12246 (bind): Set has_jump_unsafe_decl if appropriate.
12247 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12248 (check_earlier_gotos): Likewise.
12249 (c_check_switch_jump_warnings): Likewise.
12250
12251 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
12252
12253 * doc/invoke.texi (Warning Options): Add missing hyphen.
12254 (-fprofile-dir): Minor grammatical fixes.
12255 (-fbranch-probabilities): Likewise.
12256
12257 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12258
12259 PR debug/45136
12260 PR debug/45130
12261 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12262 debug insns.
12263 (no_real_insns_p, schedule_block, set_priorities): Drop special
12264 treatment of boundary debug insns.
12265 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12266 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12267 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12268 (BOUNDARY_DEBUG_INSN_P): Likewise.
12269 (SCHEDULE_DEBUG_INSN_P): Likewise.
12270 * sched-rgn.c (init_ready_list): Drop special treatment of
12271 boundary debug insns.
12272 * final.c (rest_of_clean-state): Clear notes' BB.
12273
12274 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12275
12276 * Makefile.in (LAMBDA_H): Removed.
12277 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12278 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12279 lambda-trans.o, and tree-loop-linear.o.
12280 (lto-symtab.o): Remove dependence on LAMBDA_H.
12281 (tree-loop-linear.o): Remove rule.
12282 (lambda-mat.o): Same.
12283 (lambda-trans.o): Same.
12284 (lambda-code.o): Same.
12285 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12286 (tree-vect-slp.o): Same.
12287 * hwint.h (gcd): Moved here.
12288 (least_common_multiple): Same.
12289 * lambda-code.c: Removed.
12290 * lambda-mat.c: Removed.
12291 * lambda-trans.c: Removed.
12292 * lambda.h: Removed.
12293 * tree-loop-linear.c: Removed.
12294 * lto-symtab.c: Do not include lambda.h.
12295 * omega.c (gcd): Removed.
12296 * passes.c (init_optimization_passes): Remove pass_linear_transform.
12297 * tree-data-ref.c (print_lambda_vector): Moved here.
12298 (lambda_vector_copy): Same.
12299 (lambda_matrix_copy): Same.
12300 (lambda_matrix_id): Same.
12301 (lambda_vector_first_nz): Same.
12302 (lambda_matrix_row_add): Same.
12303 (lambda_matrix_row_exchange): Same.
12304 (lambda_vector_mult_const): Same.
12305 (lambda_vector_negate): Same.
12306 (lambda_matrix_row_negate): Same.
12307 (lambda_vector_equal): Same.
12308 (lambda_matrix_right_hermite): Same.
12309 * tree-data-ref.h: Do not include lambda.h.
12310 (lambda_vector): Moved here.
12311 (lambda_matrix): Same.
12312 (dependence_level): Same.
12313 (lambda_transform_legal_p): Removed declaration.
12314 (lambda_collect_parameters): Same.
12315 (lambda_compute_access_matrices): Same.
12316 (lambda_vector_gcd): Same.
12317 (lambda_vector_new): Same.
12318 (lambda_vector_clear): Same.
12319 (lambda_vector_lexico_pos): Same.
12320 (lambda_vector_zerop): Same.
12321 (lambda_matrix_new): Same.
12322 * tree-flow.h (least_common_multiple): Removed declaration.
12323 * tree-parloops.c (lambda_trans_matrix): Moved here.
12324 (LTM_MATRIX): Same.
12325 (LTM_ROWSIZE): Same.
12326 (LTM_COLSIZE): Same.
12327 (LTM_DENOMINATOR): Same.
12328 (lambda_trans_matrix_new): Same.
12329 (lambda_matrix_vector_mult): Same.
12330 (lambda_transform_legal_p): Same.
12331 * tree-pass.h (pass_linear_transform): Removed declaration.
12332 * tree-ssa-loop.c (tree_linear_transform): Removed.
12333 (gate_tree_linear_transform): Removed.
12334 (pass_linear_transform): Removed.
12335 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12336 flag_loop_interchange.
12337
12338 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12339
12340 PR tree-optimization/47265
12341 PR tree-optimization/47443
12342 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12343 if name still has some uses.
12344
12345 2011-01-25 Martin Jambor <mjambor@suse.cz>
12346
12347 PR tree-optimization/47382
12348 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12349 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12350
12351 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
12352
12353 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12354 sjlj_except_unwind_info.
12355
12356 2011-01-25 Richard Guenther <rguenther@suse.de>
12357
12358 PR tree-optimization/47426
12359 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12360 visible functions results escape.
12361
12362 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12363
12364 PR target/45701
12365 * config/arm/arm.c (any_sibcall_uses_r3): New function.
12366 (arm_get_frame_offsets): Use it.
12367
12368 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12369 Jakub Jelinek <jakub@redhat.com>
12370
12371 PR tree-optimization/47271
12372 * tree-if-conv.c (bb_postdominates_preds): New.
12373 (if_convertible_bb_p): Call bb_postdominates_preds.
12374 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12375 (predicate_scalar_phi): Call bb_postdominates_preds.
12376
12377 2011-01-25 Nick Clifton <nickc@redhat.com>
12378
12379 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12380 * config/rx/rx.c (rx_function_value): Likewise.
12381 (rx_promote_function_mode): Likewise.
12382 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12383 in order to make it legitimate.
12384 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12385 make sure that the first operand is the same as the result register.
12386 (addsi3_unspec): Delete.
12387 (subdi3): Do not accept immediate operands.
12388 (subdi3_internal): Likewise.
12389
12390 2011-01-25 Jeff Law <law@redhat.com>
12391
12392 PR rtl-optimization/37273
12393 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12394 handle them like argument loads from stack slots. Do not double
12395 count memory for memory constants and argument loads from stack slots.
12396
12397 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12398
12399 PR tree-optimization/47427
12400 PR tree-optimization/47428
12401 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12402 coalesce if the new root var would be TREE_READONLY.
12403
12404 2011-01-25 Richard Guenther <rguenther@suse.de>
12405
12406 PR middle-end/47414
12407 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12408 correct type for TBAA.
12409
12410 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12411
12412 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12413 (close_phi_written_to_memory): Call for_each_index with
12414 dr_indices_valid_in_loop.
12415
12416 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12417
12418 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12419 when it is initialized.
12420
12421 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12422
12423 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12424 call to graphite_find_data_references_in_stmt.
12425 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12426 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
12427 call to graphite_find_data_references_in_stmt.
12428 (analyze_drs_in_stmts): Same.
12429 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12430 in which the scalar analysis of indices is performed.
12431 (create_data_ref): Same. Update call to dr_analyze_indices.
12432 (find_data_references_in_stmt): Update call to create_data_ref.
12433 (graphite_find_data_references_in_stmt): Same.
12434 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12435 declaration.
12436 (create_data_ref): Same.
12437 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12438 call to create_data_ref.
12439
12440 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12441
12442 * graphite-sese-to-poly.c (build_poly_scop): Move
12443 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12444
12445 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12446
12447 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12448 VAR_DECL, PARM_DECL, and RESULT_DECL.
12449
12450 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12451
12452 * graphite-dependences.c (reduction_dr_1): Allow several reductions
12453 in a reduction PBB.
12454 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12455 that have already been marked as PBB_IS_REDUCTION.
12456
12457 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12458
12459 * graphite-scop-detection.c (same_close_phi_node): New.
12460 (remove_duplicate_close_phi): New.
12461 (make_close_phi_nodes_unique): New.
12462 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12463
12464 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12465
12466 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12467 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12468 of both data references to be the same.
12469
12470 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12471
12472 * graphite-dependences.c (build_lexicographical_constraint): Remove
12473 the gdim parameter.
12474 (build_lexicographical_constraint): Adjust call to
12475 ppl_powerset_is_empty.
12476 (dependence_polyhedron): Same.
12477 (graphite_legal_transform_dr): Same.
12478 (graphite_carried_dependence_level_k): Same.
12479 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12480 parameter.
12481 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12482
12483 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12484
12485 * graphite-sese-to-poly.c
12486 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12487 (close_phi_written_to_memory): New.
12488 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12489 and unshare_expr.
12490
12491 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12492
12493 * doc/install.texi: Update the expected version number of PPL to 0.11.
12494 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12495 #if PPL_VERSION_MINOR < 11.
12496
12497 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12498
12499 * graphite-dependences.c: Include graphite-cloog-util.h.
12500 (new_poly_ddr): Inlined into dependence_polyhedron.
12501 (free_poly_ddr): Moved close by new_poly_ddr.
12502 (dependence_polyhedron_1): Renamed dependence_polyhedron.
12503 Early return NULL when ppl_powerset_is_empty returns true.
12504 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
12505 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
12506 (graphite_legal_transform_dr): Call new_poly_ddr.
12507 (graphite_carried_dependence_level_k): Same.
12508 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
12509 (dot_transformed_deps_stmt_1): Removed.
12510 (dot_deps_stmt_1): Call dot_deps_stmt_2.
12511 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
12512 (dot_deps_1): Call dot_deps_2.
12513 * Makefile.in (graphite-dependences.o): Add missing dependence on
12514 graphite-cloog-util.h.
12515
12516 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12517
12518 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12519 (build_lexicographical_constraint): Same.
12520 (dependence_polyhedron_1): Same.
12521 (graphite_legal_transform_dr): Same.
12522 (graphite_carried_dependence_level_k): Same.
12523 * graphite-ppl.c (ppl_powerset_is_empty): New.
12524 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12525 * tree-data-ref.c (dump_data_reference): Print the basic block index.
12526
12527 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12528
12529 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12530 the "a followed by b" relation and document it.
12531
12532 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12533
12534 * graphite-dependences.c (build_lexicographical_constraint): Stop the
12535 iteration when the bag of constraints is empty.
12536
12537 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12538
12539 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12540
12541 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12542
12543 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12544 nest and two loop depths as parameters.
12545 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12546 lst_perfect_nestify.
12547
12548 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12549
12550 * graphite-dependences.c (print_pddr): Call
12551 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12552
12553 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12554
12555 * graphite-ppl.c (debug_gmp_value): New.
12556 * graphite-ppl.h (debug_gmp_value): Declared.
12557
12558 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
12559
12560 * doc/install.texi: Document availability of cloog-0.16.
12561
12562 2011-01-25 Vladimir Kargov <kargov@gmail.com>
12563
12564 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12565 invalid postdominance info.
12566
12567 2011-01-24 Jan Hubicka <jh@suse.cz>
12568
12569 PR c/21659
12570 * doc/extend.texi (weak pragma): Drop claim that it must
12571 appear before definition.
12572 * varasm.c (merge_weak, declare_weak): Only sanity check
12573 that DECL is not output at a time it is declared weak.
12574
12575 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
12576
12577 * machmode.def: Fixed comments.
12578
12579 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
12580
12581 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12582
12583 2011-01-24 Paul Koning <ni1d@arrl.net>
12584
12585 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12586 WORDS_BIG_ENDIAN.
12587
12588 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
12589
12590 PR target/46519
12591 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12592 (block_info): Add scanned and prev.
12593 (move_or_delete_vzeroupper_2): Return if the basic block
12594 has been scanned and the upper 128bit state is unchanged
12595 from the last scan.
12596 (move_or_delete_vzeroupper_1): Return true if the exit
12597 state is changed.
12598 (move_or_delete_vzeroupper): Visit basic blocks using the
12599 work-list based algorithm based on vt_find_locations in
12600 var-tracking.c.
12601
12602 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12603
12604 2011-01-24 Nick Clifton <nickc@redhat.com>
12605
12606 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12607 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12608 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
12609 then define __v850e1__.
12610 * doc/invoke.texi: Document -mv850es.
12611
12612 2011-01-24 Richard Henderson <rth@redhat.com>
12613
12614 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12615 compound unordered comparisons.
12616 * config/rx/rx.c (rx_split_fp_compare): Remove.
12617 * config/rx/rx-protos.h: Update.
12618 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12619 (cbranchsf4): Don't call rx_split_fp_compare.
12620 (*cbranchsf4): Use rx_split_cbranch.
12621 (*cmpsf): Don't accept "i" constraint.
12622 (*conditional_branch): Only valid after reload.
12623 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
12624
12625 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12626
12627 PR target/47385
12628 * config/rs6000/altivec.md (vector constant splitters): Add
12629 support for creating vector single precision constants if -mvsx is
12630 used and we would create the constant using Altivec primitives.
12631
12632 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
12633 Richard Sandiford <rdsandiford@googlemail.com>
12634
12635 PR rtl-optimization/47166
12636 * reload1.c (emit_reload_insns): Disable the spill_reg_store
12637 mechanism for PRE_MODIFY and POST_MODIFY.
12638 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12639 reloadreg.
12640
12641 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
12642
12643 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12644
12645 2011-01-22 Jan Hubicka <jh@suse.cz>
12646
12647 PR lto/47333
12648 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12649
12650 2011-01-22 Jan Hubicka <jh@suse.cz>
12651
12652 PR tree-optimization/43884
12653 PR lto/44334
12654 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12655 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12656
12657 2011-01-22 Anatoly Sokolov <aesok@post.ru>
12658
12659 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12660 * config/s390/s390.c (s390_register_move_cost,
12661 s390_memory_move_cost): New.
12662 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12663
12664 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12665
12666 PR middle-end/47401
12667 * except.c (sjlj_assign_call_site_values): Move setting the
12668 crtl->uses_eh_lsda flag to ...
12669 (sjlj_mark_call_sites): ... here.
12670 (sjlj_emit_function_enter): Support NULL dispatch label.
12671 (sjlj_build_landing_pads): In a function with no landing pads
12672 that still has must-not-throw regions, generate code to register
12673 a personality function with empty LSDA.
12674
12675 2011-01-21 Richard Henderson <rth@redhat.com>
12676
12677 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12678
12679 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12680
12681 * compare-elim.c: New file.
12682 * Makefile.in (OBJS-common): Add it.
12683 (compare-elim.o): New.
12684 * common.opt (fcompare-elim): New.
12685 * opts.c (default_options_table): Add OPT_fcompare_elim.
12686 * tree-pass.h (pass_compare_elim_after_reload): New.
12687 * passes.c (init_optimization_passes): Add it.
12688 * recog.h: Protect against re-inclusion.
12689 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12690 * doc/invoke.texi (-fcompare-elim): Document it.
12691 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12692 * doc/tm.texi: Rebuild.
12693
12694 2011-01-22 Nick Clifton <nickc@redhat.com>
12695
12696 * config/rx/rx.md (cstoresf4): Pass comparison operator to
12697 rx_split_fp_compare.
12698
12699 2011-01-22 Nick Clifton <nickc@redhat.com>
12700
12701 * config/rx/rx.md (UNSPEC_CONST): New.
12702 (deallocate_and_return): Wrap the amount popped off the stack in
12703 an UNSPEC_CONST in order to stop it being rejected by
12704 -mmax-constant-size.
12705 (pop_and_return): Add a "(return)" rtx.
12706 (call): Drop the immediate operand.
12707 (call_internal): Likewise.
12708 (call_value): Likewise.
12709 (call_value_internal): Likewise.
12710 (sibcall_internal): Likewise.
12711 (sibcall_value_internal): Likewise.
12712 (sibcall): Likewise. Generate an explicit call using
12713 sibcall_internal.
12714 (sibcall_value): Likewise.
12715 (mov<>): FAIL if a constant operand is not legitimate.
12716 (addsi3_unpsec): New pattern.
12717
12718 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12719 (ok_for_max_constant): New function.
12720 (gen_safe_add): New function.
12721 (rx_expand_prologue): Use gen_safe_add.
12722 (rx_expand_epilogue): Likewise.
12723 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
12724 UNSPEC CONSTs.
12725
12726 2011-01-21 Jeff Law <law@redhat.com>
12727
12728 PR tree-optimization/47053
12729 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12730 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12731 statements are deleted.
12732 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
12733 is nonempty, then purge dead edges and cleanup the CFG.
12734
12735 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12736
12737 PR debug/47402
12738 Temporarily revert:
12739 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12740 PR debug/47106
12741 * tree-dfa.c (create_var_ann): Mark variable as used.
12742
12743 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12744
12745 PR middle-end/45566
12746 * except.c (convert_to_eh_region_ranges): Emit queued no-region
12747 notes from other section in hot/cold partitioning even if
12748 last_action is -3. Increment call_site_base.
12749
12750 PR rtl-optimization/47366
12751 * fwprop.c (forward_propagate_into): Return bool. If
12752 any changes are made, -fnon-call-exceptions is used and
12753 REG_EH_REGION note is present, call purge_dead_edges
12754 and return true if it purged anything.
12755 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12756 any EH edges were purged.
12757
12758 2011-01-21 Jeff Law <law@redhat.com>
12759
12760 PR rtl-optimization/41619
12761 * caller-save.c (setup_save_areas): Break out code to determine
12762 which hard regs are live across calls by examining the reload chains
12763 so that it is always used.
12764 Eliminate code which checked REG_N_CALLS_CROSSED.
12765
12766 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12767
12768 PR tree-optimization/47355
12769 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12770 NOP has non-debug uses beyond PHIs in new_bb.
12771
12772 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12773
12774 PR debug/47106
12775 * cfgexpand.c (account_used_vars_for_block): Only account vars
12776 that are annotated as used.
12777 (estimated_stack_frame_size): Don't set TREE_USED.
12778 * tree-dfa.c (create_var_ann): Mark variable as used.
12779
12780 2011-01-21 Richard Guenther <rguenther@suse.de>
12781
12782 PR middle-end/47395
12783 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12784
12785 2011-01-21 Richard Guenther <rguenther@suse.de>
12786
12787 PR tree-optimization/47365
12788 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12789 (vn_reference_lookup_pieces): Adjust.
12790 (vn_reference_lookup): Likewise.
12791 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12792 (vn_reference_lookup_3): Only look through kills if in
12793 VN_WALKREWRITE mode.
12794 (vn_reference_lookup_pieces): Adjust.
12795 (vn_reference_lookup): Likewise.
12796 (visit_reference_op_load): Likewise.
12797 (visit_reference_op_store): Likewise.
12798 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12799 (compute_avail): Likewise.
12800 (eliminate): Likewise.
12801
12802 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12803
12804 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12805 DECL_IGNORED_P non-reg vars if they are used.
12806
12807 PR tree-optimization/47391
12808 * varpool.c (const_value_known_p): Return false if
12809 decl is volatile.
12810
12811 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
12812
12813 PR bootstrap/47215
12814 * config/i386/i386.c (ix86_local_alignment): Handle
12815 case for va_list_type_node is nil.
12816 (ix86_canonical_va_list_type): Likewise.
12817
12818 2011-01-21 Alan Modra <amodra@gmail.com>
12819
12820 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12821 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12822
12823 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12824
12825 * config/arm/arm.md (define_attr type): Rename f_load
12826 and f_store to f_fpa_load and f_fpa_store. Update.
12827 (write_conflict): Deal with rename fallout.
12828 (*push_fp_multi): Likewise.
12829 * config/arm/fpa.md (f_load): Use f_fpa_load.
12830 (f_store): Use f_fpa_store.
12831 (*movsf_fpa): Likewise.
12832 (*movdf_fpa): Likewise.
12833 (*movxf_fpa): Likewise.
12834 (*thumb2_movsf_fpa): Likewise.
12835 (*thumb2_movdf_fpa): Likewise.
12836 (*thumb2_movxf_fpa): Likewise.
12837 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12838 f_loadd and f_stored.
12839 (*thumb2_movdi_vfp): Likewise.
12840 (*thumb2_movsf_vfp): Fix attribute to f_loads.
12841 (*thumb2_movsi_vfp): Likewise.
12842 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12843 Use f_loads instead of f_load.
12844 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12845
12846 2011-01-20 Anatoly Sokolov <aesok@post.ru>
12847
12848 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12849 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12850 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12851 (xtensa_mode_dependent_address_p): New function.
12852 (constantpool_address_p): Make static. Change return type to bool.
12853 Change argument type to const_rtx. Use CONST_INT_P predicate.
12854
12855 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
12856
12857 PR debug/46583
12858 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12859
12860 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12861
12862 PR debug/47283
12863 * cfgexpand.c (expand_debug_expr): Instead of generating
12864 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12865 etc. handling.
12866
12867 2011-01-20 Richard Guenther <rguenther@suse.de>
12868
12869 PR middle-end/47370
12870 * tree-inline.c (remap_gimple_op_r): Recurse manually for
12871 the pointer operand of MEM_REFs.
12872
12873 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12874
12875 PR tree-optimization/46130
12876 * ipa-split.c (consider_split): If return_bb contains non-virtual
12877 PHIs other than for retval or if split_function would not adjust it,
12878 refuse to split.
12879
12880 2011-01-20 Richard Guenther <rguenther@suse.de>
12881
12882 PR tree-optimization/47167
12883 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12884 Revert previous change, only avoid enumeral type changes.
12885
12886 2011-01-19 Mike Stump <mikestump@comcast.net>
12887
12888 * doc/tm.texi.in (BRANCH_COST): Englishify.
12889 * doc/tm.texi (BRANCH_COST): Likewise.
12890
12891 2011-01-19 Dodji Seketeli <dodji@redhat.com>
12892
12893 PR c++/47291
12894 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12895 (gen_scheduled_generic_parms_dies): New functions.
12896 (gen_struct_or_union_type_die): Schedule template parameters DIEs
12897 generation for the end of CU compilation.
12898 (dwarf2out_finish): Generate template parameters DIEs here.
12899
12900 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12901
12902 PR debug/46240
12903 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12904 debug bind stmt on merge edges.
12905
12906 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12907
12908 PR debug/47079
12909 PR debug/46724
12910 * function.c (instantiate_expr): Instantiate incoming rtl of
12911 implicit arguments, and recurse on VALUE_EXPRs.
12912 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12913 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12914
12915 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12916
12917 * c-parser.c (c_parser_for_statement): Initialize
12918 collection_expression.
12919
12920 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12921
12922 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12923
12924 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12925
12926 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12927 (LINK_SHLIB_SPEC): Don't use %(link_path).
12928 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12929
12930 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12931
12932 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12933 (NO_SHARED_LIB_SUPPORT): Remove.
12934 (LINK_SHLIB_SPEC): Remove one conditional definition.
12935
12936 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12937
12938 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12939 %{call_shared}.
12940 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12941 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12942 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12943 %{call_shared} and conditionals on these options not being passed.
12944 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12945 %{call_shared}.
12946
12947 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12948
12949 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12950 simplify.
12951
12952 * ipa-split.c: Spelling fixes.
12953
12954 2011-01-19 Richard Henderson <rth@redhat.com>
12955
12956 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12957 (*mulsi3): Likewise.
12958
12959 * longlong.h [__mn10300__] (count_leading_zeros): New.
12960 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12961 [__mn10300__] (add_ssaaaa, subddmmss): New.
12962 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12963 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12964
12965 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12966
12967 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12968
12969 2011-01-19 Richard Henderson <rth@redhat.com>
12970
12971 * config/mn10300/mn10300.md (addsi3_flags): New.
12972 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12973 (subsi3_flags, subc_internal, subdi3): New.
12974 (subdi3_internal, *subdi3_degenerate): New.
12975 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12976
12977 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12978 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12979 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12980 * config/mn10300/mn10300-protos.h: Update.
12981 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12982 (return_ret): Likewise. Rename from return_internal_regs.
12983 (return_internal): Remove.
12984
12985 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12986 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12987 (mn10300_legitimate_constant_p): Likewise.
12988 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12989 (mn10300_frame_size): New.
12990 (mn10300_expand_prologue): Use it.
12991 (mn10300_expand_epilogue): Likewise.
12992 (mn10300_initial_offset): Likewise.
12993 * config/mn10300/mn10300-protos.h: Update.
12994 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12995 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12996 (prologue, epilogue, return_internal): Tidy output code.
12997 (mn10300_store_multiple_operation, return): Likewise.
12998 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12999 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13000 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13001 (load_pic, am33_load_pic): New.
13002 (mn10300_load_pic0, mn10300_load_pic1): New.
13003
13004 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13005 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13006 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13007 (cc_flags_for_mode, cc_flags_for_code): New.
13008 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13009 overflow flag is not valid. Validate that the flags we need
13010 for the comparison are valid.
13011 (mn10300_output_cmp): Remove.
13012 (mn10300_output_add): New.
13013 (mn10300_select_cc_mode): Use cc_flags_for_code.
13014 (mn10300_split_cbranch): New.
13015 (mn10300_match_ccmode): New.
13016 (mn10300_split_and_operand_count): New.
13017 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13018 to the function.
13019 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13020 (addsi3): ... here. Use mn10300_output_add.
13021 (*addsi3_flags): New.
13022 (*am33_subsi3, *mn10300_subsi3): Merge...
13023 (subsi3): ... here. Use attribute isa.
13024 (*subsi3_flags): New.
13025 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
13026 when possible.
13027 (*am33_andsi3, *mn10300_andsi3): Merge...
13028 (andsi3): ... here.
13029 (*andsi3_flags): New.
13030 (andsi3 splitters): New.
13031 (*am33_iorsi3, *mn10300_iorsi3): Merge...
13032 (iorsi3): ... here.
13033 (*iorsi3_flags): New.
13034 (*am33_xorsi3, *mn10300_xorsi3): Merge...
13035 (xorsi3): ... here.
13036 (*xorsi3_flags): New.
13037 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13038 (one_cmplsi2): ... here.
13039 (*one_cmplsi2_flags): New.
13040 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
13041 instead of "dax" in constraints. Use mn10300_split_cbranch.
13042 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
13043 use matching constraints to eliminate a self-comparison.
13044 (*integer_conditional_branch): Rename from integer_conditional_branch.
13045 Use int_mode_flags to match CC_REG.
13046 (*cbranchsi4_btst, *btstsi): New.
13047 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
13048 mn10300_split_cbranch.
13049 (*am33_cmpsf): Rename from am33_cmpsf.
13050 (*float_conditional_branch): Rename from float_conditional_branch.
13051 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13052 (zero_extendqisi2): ... here.
13053 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13054 (zero_extendhisi2): ... here.
13055 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13056 (extendqisi2): ... here.
13057 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13058 (extendhisi2): ... here.
13059 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13060 (ashlsi3): ... here.
13061 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13062 (lshrsi3): ... here.
13063 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13064 (ashrsi3): ... here.
13065 (consecutive add peephole): Remove.
13066 * config/mn10300/predicates.md (label_ref_operand): New.
13067 (int_mode_flags): New.
13068 (CCZN_comparison_operator): New.
13069
13070 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13071 (throughput_42_latency_43): New reservation.
13072 (mulsidi3, umulsidi3): New expanders.
13073 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
13074 the MDR register to allocation; separately allocate the low and
13075 high parts of the DImode result.
13076 (umulsidi3_internal): Similarly.
13077 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13078 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
13079 (udivsi3, umodsi3): Remove.
13080 (udivmodsi4, divmodsi4): New expanders.
13081 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
13082 (*divmodsi4): Simiarly.
13083 (ext_internal): New.
13084
13085 * config/mn10300/constraints.md ("z"): New constraint.
13086 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13087 (FIXED_REGISTERS): Don't fix MDR.
13088 (CALL_USED_REGSITERS): Reformat nicely.
13089 (REG_ALLOC_ORDER): Add MDR.
13090 (enum regclass): Add MDR_REGS.
13091 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13092 (IRA_COVER_CLASSES): Add MDR_REGS.
13093 (REGNO_REG_CLASS): Handle MDR_REG.
13094 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13095 (mn10300_register_move_cost): Likewise.
13096 * config/mn10300/mn10300.md (MDR_REG): New.
13097 (*movsi_internal): Handle moves to/from MDR_REGS.
13098
13099 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13100 POST_MODIFY.
13101 (mn10300_secondary_reload): Tidy combination reload classes.
13102 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13103 addresses for AM33. Allow symbolic offsets for reg+imm.
13104 (mn10300_regno_in_class_p): New.
13105 (mn10300_legitimize_reload_address): New.
13106 * config/mn10300/mn10300.h (enum reg_class): Remove
13107 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13108 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
13109 SP_OR_GENERAL_REGS.
13110 (REG_CLASS_NAMES): Update to match.
13111 (REG_CLASS_CONTENTS): Likewise.
13112 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13113 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13114 (REGNO_IN_RANGE_P): Remove.
13115 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13116 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13117 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13118 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13119 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13120 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13121 (REGNO_GENERAL_P): New.
13122 (HAVE_POST_MODIFY_DISP): New.
13123 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13124 (LEGITIMIZE_RELOAD_ADDRESS): New.
13125 * config/mn10300/mn10300-protos.h: Update.
13126
13127 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13128 DATA_REGS for AM33 stack-pointer destination.
13129 (mn10300_preferred_output_reload_class): Likewise.
13130 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13131 into a form appropriate for ...
13132 (TARGET_SECONDARY_RELOAD): New.
13133 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13134 * config/mn10300/mn10300-protos.h: Update.
13135 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13136 reload_insi; use the "A" constraint for the scratch; handle AM33
13137 moves of sp to non-address registers.
13138
13139 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13140 (*movqi_internal): ... here.
13141 (*am33_movhi, *mn10300_movhi): Merge into...
13142 (*movhi_internal): ... here.
13143 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
13144 as the source/destination of moves from/to SP.
13145 (movsf): Only allow for AM33-2.
13146 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13147 any integer constant constraint. Only allow for AM33-2. Tidy
13148 all of the alternative outputs.
13149 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13150 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
13151 for MN103.
13152 (udivsi3, umodsi3): New patterns for MN103 only.
13153
13154 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
13155
13156 * doc/tm.texi.in: Spell out that a lack of register class unions
13157 can lead to ICEs.
13158 * doc/tm.texi: Regenerate.
13159
13160 2011-01-19 Jakub Jelinek <jakub@redhat.com>
13161
13162 PR rtl-optimization/47337
13163 * dce.c (check_argument_store): New function.
13164 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
13165
13166 PR tree-optimization/47290
13167 * tree-eh.c (infinite_empty_loop_p): New function.
13168 (cleanup_empty_eh): Use it.
13169
13170 2011-01-18 Steve Ellcey <sje@cup.hp.com>
13171
13172 PR target/46997
13173 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13174 (a64_expand_widen_sum): Ditto.
13175 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13176 (vec_extract_evenodd_help): Ditto.
13177 (vec_extract_evenv4hi): Ditto.
13178 (vec_extract_oddv4hi): Ditto.
13179 (vec_extract_evenv2si): Ditto.
13180 (vec_extract_oddv2si): Ditto.
13181 (vec_extract_evenv2sf): Ditto.
13182 (vec_extract_oddv2sf): Ditto.
13183 (vec_pack_trunc_v4hi: Ditto.
13184 (vec_pack_trunc_v2si): Ditto.
13185 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13186 (vec_interleave_highv8qi): Ditto.
13187 (mix1_r): Ditto.
13188 (vec_extract_oddv8qi): Ditto.
13189 (vec_interleave_lowv4hi): Ditto.
13190 (vec_interleave_highv4hi): Ditto.
13191 (vec_interleave_lowv2si): Ditto.
13192 (vec_interleave_highv2si): Ditto.
13193
13194 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13195
13196 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13197 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13198 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
13199 (pa_c_mode_for_suffix): New.
13200 (TARGET_EXPAND_BUILTIN): Define.
13201 (TARGET_C_MODE_FOR_SUFFIX): Define.
13202 (pa_builtins): Define.
13203 (pa_init_builtins): Register __float128 type and init new support
13204 builtins.
13205 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13206 * config/pa/quadlib.c (_U_Qfcopysign): New.
13207
13208 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
13209
13210 PR middle-end/46894
13211 * explow.c (allocate_dynamic_stack_space): Do not assume more than
13212 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13213 are defined.
13214
13215 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13216
13217 PR tree-optimization/47179
13218 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13219 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13220
13221 2011-01-18 Richard Guenther <rguenther@suse.de>
13222
13223 PR rtl-optimization/47216
13224 * emit-rtl.c: Include tree-flow.h.
13225 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13226 of replicating it with different semantics.
13227 * Makefile.in (emit-rtl.o): Adjust.
13228
13229 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13230
13231 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13232 (cortex_a9_dp): Handle neon types correctly.
13233
13234 2011-01-18 Jakub Jelinek <jakub@redhat.com>
13235
13236 PR rtl-optimization/47299
13237 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13238 subtarget. Use normal multiplication if both operands are constants.
13239 * expmed.c (expand_widening_mult): Don't try to optimize constant
13240 multiplication if op0 has VOIDmode. Convert op1 constant to mode
13241 before using it.
13242
13243 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13244
13245 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
13246 spacing after 'e.g.', typos, comma, hyphenation.
13247
13248 2011-01-17 Richard Henderson <rth@redhat.com>
13249
13250 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13251 (rx_restricted_mem_operand): New.
13252 (rx_shift_operand): Use register_operand.
13253 (rx_source_operand, rx_compare_operand): Likewise.
13254 * config/rx/rx.md (addsi3_flags): New expander.
13255 (adddi3): Rewrite as expander.
13256 (adc_internal, *adc_flags, adddi3_internal): New patterns.
13257 (subsi3_flags): New expander.
13258 (subdi3): Rewrite as expander.
13259 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13260
13261 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13262 (rx_init_builtins): Remove sat builtin.
13263 (rx_expand_builtin): Likewise.
13264 * config/rx/rx.md (ssaddsi3): New.
13265 (*sat): Rename from sat. Represent the CC_REG input.
13266
13267 * config/rx/predicates.md (rshift_operator): New.
13268 * config/rx/rx.c (rx_expand_insv): Remove.
13269 * config/rx/rx-protos.h: Update.
13270 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
13271 operand to the canonical position.
13272 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13273 (*bitclr, *bitclr_in_memory): Similarly.
13274 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13275 (insv): Retain the zero_extract in the expansion.
13276
13277 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13278 (bswaphi2, bitinvert, revw): Likewise.
13279
13280 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13281 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13282 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13283 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13284 (bitset, bitset_in_memory): Likewise.
13285 (bitinvert, bitinvert_in_memory): Likewise.
13286 (bitclr, bitclr_in_memory): Likewise.
13287 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13288 (rx_strend, rx_cmpstrn): Likewise.
13289 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
13290 (bitop peep2 patterns): Remove.
13291
13292 * config/rx/rx.c (rx_match_ccmode): New.
13293 * config/rx/rx-protos.h: Update.
13294 * config/rx/rx.md (abssi2): Clobber, don't set flags.
13295 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13296 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13297 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13298 (fix_truncsfsi2, floatsisf2): Likewise.
13299 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13300 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13301 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13302 (*subsi3_flags, *xorsi3_flags): New.
13303
13304 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13305
13306 * config/rx/rx.c (rx_print_operand): Remove workaround for
13307 unsplit comparison operations.
13308
13309 * config/rx/rx.md (movsicc): Split after reload.
13310 (*movsicc): Merge *movsieq and *movsine via match_operator.
13311 (*stcc): New pattern.
13312
13313 * config/rx/rx.c (rx_float_compare_mode): Remove.
13314 * config/rx/rx.h (rx_float_compare_mode): Remove.
13315 * config/rx/rx.md (cstoresi4): Split after reload.
13316 (*sccc): New pattern.
13317
13318 * config/rx/predicates.md (label_ref_operand): New.
13319 (rx_z_comparison_operator): New.
13320 (rx_zs_comparison_operator): New.
13321 (rx_fp_comparison_operator): New.
13322 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13323 Validate that the flags are set properly for the comparison.
13324 (rx_gen_cond_branch_template): Remove.
13325 (rx_cc_modes_compatible): Remove.
13326 (mode_from_flags): New.
13327 (flags_from_code): Rename from flags_needed_for_conditional.
13328 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13329 (rx_select_cc_mode): Likewise.
13330 (rx_split_fp_compare): New.
13331 (rx_split_cbranch): New.
13332 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13333 (*cbranchsi4): Use match_operator and rx_split_cbranch.
13334 (*cbranchsf4): Similarly.
13335 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
13336 match_operator and rx_split_cbranch.
13337 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13338 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
13339 (*cmpsi): Rename from cmpsi.
13340 (*tstsi): Rename from tstsi.
13341 (*cmpsf): Rename from cmpsf; use CC_Fmode.
13342 (*conditional_branch): Rename from conditional_branch.
13343 (*reveresed_conditional_branch): Remove.
13344 (b<code>): Remove expander.
13345 * config/rx/rx-protos.h: Update.
13346
13347 * config/rx/rx.c (rx_compare_redundant): Remove.
13348 * config/rx/rx.md (cmpsi): Don't use it.
13349 * config/rx/rx-protos.h: Update.
13350
13351 * config/rx/rx-modes.def (CC_F): New mode.
13352 * config/rx/rx.c (rx_select_cc_mode): New.
13353 * config/rx/rx.h (SELECT_CC_MODE): Use it.
13354 * config/rx/rx-protos.h: Update.
13355
13356 2011-01-17 Richard Henderson <rth@redhat.com>
13357
13358 * except.c (dump_eh_tree): Fix stray ; after for statement.
13359
13360 2011-01-17 Richard Guenther <rguenther@suse.de>
13361
13362 PR tree-optimization/47313
13363 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13364 handling before copying the body. Properly deal with
13365 by-reference result in SSA form.
13366
13367 2011-01-17 Ian Lance Taylor <iant@google.com>
13368
13369 PR target/47219
13370 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13371 (struct_value_alias_set): Don't define.
13372 (sparc_option_override): Don't set sparc_sr_alias_set and
13373 struct_value_alias_set.
13374 (save_or_restore_regs): Use gen_frame_mem rather than calling
13375 set_mem_alias_set.
13376 (sparc_struct_value_rtx): Likewise.
13377
13378 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
13379
13380 PR target/47318
13381 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13382 (_mm_maskstore_pd): Likewise.
13383 (_mm_maskload_ps): Likewise.
13384 (_mm_maskstore_ps): Likewise.
13385 (_mm256_maskload_pd): Change mask to __m256i.
13386 (_mm256_maskstore_pd): Likewise.
13387 (_mm256_maskload_ps): Likewise.
13388 (_mm256_maskstore_ps): Likewise.
13389
13390 * config/i386/i386-builtin-types.def: Updated.
13391 (ix86_expand_special_args_builtin): Likewise.
13392
13393 * config/i386/i386.c (bdesc_special_args): Update
13394 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13395 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13396 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13397 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13398
13399 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13400 Use <avxpermvecmode> on mask register.
13401 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13402
13403 2011-01-17 Olivier Hainque <hainque@adacore.com>
13404 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13405 Eric Botcazou <ebotcazou@adacore.com>
13406
13407 PR target/46655
13408 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13409 if <= USHRT_MAX in 32-bit mode.
13410
13411 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13412
13413 * doc/install.texi (Configuration, Specific): Wrap long
13414 lines in examples. Allow line wrapping in long options
13415 and URLs where beneficial for PDF output.
13416
13417 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
13418
13419 * config/mips/mips.c (mips_classify_symbol): Don't return
13420 SYMBOL_PC_RELATIVE for nonlocal labels.
13421
13422 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
13423
13424 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13425
13426 2011-01-15 Jan Hubicka <jh@suse.cz>
13427
13428 PR tree-optimization/47276
13429 * ipa.c (function_and_variable_visibility): Do not try to mark alias
13430 declarations as needed.
13431
13432 2011-01-15 Martin Jambor <mjambor@suse.cz>
13433
13434 * common.opt (fdevirtualize): New flag.
13435 * doc/invoke.texi (Option Summary): Document it.
13436 * opts.c (default_options_table): Add devirtualize flag.
13437 * ipa-prop.c (detect_type_change): Return immediately if
13438 devirtualize flag is not set.
13439 (detect_type_change_ssa): Likewise.
13440 (compute_known_type_jump_func): Likewise.
13441 (ipa_analyze_virtual_call_uses): Likewise.
13442
13443 2011-01-14 Martin Jambor <mjambor@suse.cz>
13444
13445 PR tree-optimization/45934
13446 PR tree-optimization/46302
13447 * ipa-prop.c (type_change_info): New type.
13448 (stmt_may_be_vtbl_ptr_store): New function.
13449 (check_stmt_for_type_change): Likewise.
13450 (detect_type_change): Likewise.
13451 (detect_type_change_ssa): Likewise.
13452 (compute_complex_assign_jump_func): Check for dynamic type change.
13453 (compute_complex_ancestor_jump_func): Likewise.
13454 (compute_known_type_jump_func): Likewise.
13455 (compute_scalar_jump_functions): Likewise.
13456 (ipa_analyze_virtual_call_uses): Likewise.
13457 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13458
13459 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13460
13461 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13462 * config/i386/i386.opt (msse5): New Alias.
13463
13464 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13465
13466 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13467 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13468 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13469 * config/sparc/sparc.h (CC1_SPEC): Likewise.
13470
13471 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13472
13473 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13474 -mcpu options.
13475 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13476 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13477 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13478 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13479 Likewise.
13480 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13481
13482 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13483
13484 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13485
13486 2011-01-14 Mike Stump <mikestump@comcast.net>
13487
13488 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13489 * config/fr30/fr30.md: Likweise
13490 (movsi_push): Likewise.
13491 (movsi_pop): Likewise.
13492 (enter_func): Likewise.
13493 * config/moxie/moxie.md (movsi_push): Likewise.
13494 (movsi_pop): Likewise.
13495
13496 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13497
13498 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13499 %{no_archive} %{exact_version}.
13500 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13501 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13502 %{no_archive} %{exact_version}.
13503 * config/mips/openbsd.h (LINK_SPEC): Likewise.
13504 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13505 * config/mips/vxworks.h: Likewise.
13506
13507 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13508
13509 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13510
13511 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13512
13513 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13514 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13515
13516 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13517
13518 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13519 -nodefaultlib.
13520
13521 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13522
13523 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13524 for mcpu not cpu.
13525 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13526 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13527 not cpu.
13528 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13529 Don't handle -shlib.
13530
13531 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13532
13533 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13534 (CC1_SPEC): Don't handle -profile.
13535
13536 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13537
13538 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13539 * config/mips/mips.h (CC1_SPEC): Likewise.
13540
13541 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13542
13543 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13544 * config/mips/mips.h (CC1_SPEC): Likewise.
13545
13546 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13547
13548 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13549 * config/m32r/linux.h (LINK_SPEC): Likewise.
13550 * config/mips/linux.h (LINK_SPEC): Likewise.
13551 * config/mips/linux64.h (LINK_SPEC): Likewise.
13552 * config/sparc/linux.h (LINK_SPEC): Likewise.
13553 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13554 LINK_SPEC): Likewise.
13555 * config/xtensa/linux.h (LINK_SPEC): Likewise.
13556
13557 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13558
13559 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13560 %{version:-v}.
13561 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13562
13563 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13564
13565 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13566 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13567
13568 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13569
13570 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13571
13572 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13573
13574 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13575 supports -Bstatic/-Bdynamic.
13576 * configure: Regenerate.
13577
13578 2011-01-14 Jan Hubicka <jh@suse.cz>
13579 Jack Howarth <howarth@bromo.med.uc.edu>
13580
13581 PR target/46037
13582 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13583 when checking debug_info_level. Test write_symbols instead of
13584 debug_hooks->var_location when setting flag_var_tracking_uninit.
13585
13586 2011-01-14 Richard Guenther <rguenther@suse.de>
13587
13588 PR tree-optimization/47179
13589 * target.def (ref_may_alias_errno): New target hook.
13590 * targhooks.h (default_ref_may_alias_errno): Declare.
13591 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13592 (default_ref_may_alias_errno): New function.
13593 * target.h (struct ao_ref_s): Declare.
13594 * tree-ssa-alias.c: Include target.h.
13595 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13596 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13597 (targhooks.o): Likewise.
13598 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13599 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13600
13601 2011-01-14 Richard Guenther <rguenther@suse.de>
13602
13603 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
13604
13605 2011-01-14 Richard Guenther <rguenther@suse.de>
13606
13607 PR tree-optimization/47280
13608 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13609 return CFG changes.
13610 (tree_ssa_forward_propagate_single_use_vars): Deal with
13611 CFG changes from associate_plusminus.
13612
13613 2011-01-14 Richard Guenther <rguenther@suse.de>
13614
13615 PR middle-end/47281
13616 Revert
13617 2011-01-11 Richard Guenther <rguenther@suse.de>
13618
13619 PR tree-optimization/46076
13620 * tree-ssa.c (useless_type_conversion_p): Conversions from
13621 unprototyped to empty argument list function types are useless.
13622
13623 2011-01-14 Richard Guenther <rguenther@suse.de>
13624
13625 PR tree-optimization/47286
13626 * tree-ssa-structalias.c (new_var_info): Register variables are global.
13627
13628 2011-01-14 Martin Jambor <mjambor@suse.cz>
13629
13630 PR middle-end/46823
13631 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13632
13633 2011-01-13 Anatoly Sokolov <aesok@post.ru>
13634
13635 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13636 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13637 * config/xtensa/xtensa.c (xtensa_libcall_value,
13638 xtensa_function_value_regno_p): New functions.
13639 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13640
13641 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
13642
13643 PR c++/47213
13644 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13645 PE specific hook.
13646 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13647 New function prototype.
13648 * config/i386/winnt.c (i386_pe_assemble_visibility):
13649 Warn only if attribute was specified by user.
13650
13651 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13652
13653 PR target/47251
13654 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13655 floating point.
13656 (floatunsdidf2_fcfidu): Ditto.
13657
13658 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13659
13660 * config/s390/s390.c (print_operand_address): Replace 'error' with
13661 'output_operand_lossage'.
13662 (print_operand): Likewise.
13663
13664 2011-01-13 Jeff Law <law@redhat.com>
13665
13666 PR rtl-optimization/39077
13667 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13668 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13669 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13670 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13671 * gcse.c (prune_insertions_deletions): New function.
13672 (compute_pre_data): Use it.
13673
13674 2011-01-13 Dodji Seketeli <dodji@redhat.com>
13675
13676 PR debug/PR46973
13677 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13678 static function.
13679 (prune_unused_types_mark): Use it.
13680
13681 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
13682
13683 PR rtl-optimization/45352
13684 * sel-sched.c: Update copyright years.
13685 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13686 in the advancing loop when we have issued issue_rate insns.
13687
13688 2011-01-12 Richard Henderson <rth@redhat.com>
13689
13690 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13691 (TARGET_MD_ASM_CLOBBERS): New.
13692
13693 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13694 (TARGET_DELEGITIMIZE_ADDRESS): New.
13695
13696 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13697 (clzsi2, *bsch): New patterns.
13698
13699 * config/mn10300/mn10300.md (INT): New mode iterator.
13700 (*mov<INT>_clr): New pattern, and peep2 to generate it.
13701
13702 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13703 flag_split_wide_types.
13704
13705 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13706 (mn10300_trampoline_init): Rewrite without a template, an immediate
13707 load and a direct branch.
13708 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13709
13710 2011-01-12 Anatoly Sokolov <aesok@post.ru>
13711
13712 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13713 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13714 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13715 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13716
13717 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
13718
13719 PR debug/47209
13720 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13721 of type.
13722
13723 2011-01-12 Jan Hubicka <jh@suse.cz>
13724
13725 PR driver/47244
13726 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13727 (PLUGIN_COND_CLOSE): New macro.
13728 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13729
13730 2011-01-12 Richard Guenther <rguenther@suse.de>
13731
13732 PR lto/47259
13733 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13734 register variables in a MEM_REF.
13735
13736 2011-01-12 Joseph Myers <joseph@codesourcery.com>
13737
13738 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13739 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13740 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13741 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13742 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13743 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13744 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13745 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13746 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13747 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13748 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13749 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13750 * config/gnu-user.h: New. Copied from linux.h.
13751 (LINUX_TARGET_STARTFILE_SPEC): Rename to
13752 GNU_USER_TARGET_STARTFILE_SPEC.
13753 (LINUX_TARGET_ENDFILE_SPEC): Rename to
13754 GNU_USER_TARGET_ENDFILE_SPEC.
13755 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13756 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13757 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13758 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13759 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13760 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13761 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13762 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13763 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13764 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13765 * config/arm/linux-eabi.h (CC1_SPEC): Use
13766 GNU_USER_TARGET_CC1_SPEC.
13767 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13768 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13769 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13770 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13771 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13772 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13773 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13774 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13775
13776 2011-01-12 Richard Guenther <rguenther@suse.de>
13777
13778 PR other/46946
13779 * doc/invoke.texi (ffast-math): Document it is turned on
13780 with -Ofast.
13781
13782 2011-01-12 Jan Hubicka <jh@suse.cz>
13783
13784 PR tree-optimization/47233
13785 * opts.c (common_handle_option): Disable ipa-reference with profile
13786 feedback.
13787
13788 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13789
13790 * c-parser.c (c_parser_objc_at_property_declaration): Improved
13791 error message.
13792
13793 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13794
13795 * c-parser.c (c_lex_one_token): Updated and reindented some
13796 comments. No changes in code.
13797
13798 2011-01-11 Ian Lance Taylor <iant@google.com>
13799
13800 * godump.c (go_output_var): Don't output the variable if there is
13801 already a type with the same name.
13802
13803 2011-01-11 Ian Lance Taylor <iant@google.com>
13804
13805 * godump.c (go_format_type): Don't generate float80.
13806
13807 2011-01-11 Richard Henderson <rth@redhat.com>
13808
13809 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13810 declaration. Rewrite for both speed and size.
13811 (mn10300_address_cost_1): Remove.
13812 (mn10300_register_move_cost): New.
13813 (mn10300_memory_move_cost): New.
13814 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
13815 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
13816 extensions, shifts, BSWAP, CLZ.
13817 (mn10300_wide_const_load_uses_clr): Remove.
13818 (TARGET_REGISTER_MOVE_COST): New.
13819 (TARGET_MEMORY_MOVE_COST): New.
13820 * config/mn10300/mn10300-protos.h: Update.
13821 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13822
13823 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13824 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13825 * config/mn10300/mn10300-protos.h: Update.
13826 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13827 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13828 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13829 (*test_int_bitfield, *test_byte_bitfield): Remove.
13830 (*bit_test, *subreg_bit_test): Remove.
13831 * config/mn10300/predicates.md (const_8bit_operand): Remove.
13832
13833 * config/mn10300/constraints.md ("c"): Rename from "A".
13834 ("A", "D"): New constraint letters.
13835 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13836 (fmssf4, fnmasf4, fnmssf4): Likewise.
13837
13838 * config/mn10300/mn10300.md (isa): New attribute.
13839 (enabled): New attribute.
13840
13841 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13842 (abssf2, negsf2): Define only for hardware fp.
13843 (sqrtsf2): Reformat.
13844 (addsf3, subsf3, mulsf3): Merge expander and insn.
13845
13846 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13847 (DEBUGGER_AUTO_OFFSET): Remove.
13848 (DEBUGGER_ARG_OFFSET): Remove.
13849
13850 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13851 Emit register stores with the same offsets as the hardware.
13852 (mn10300_store_multiple_operation): Don't check that the register
13853 save offsets are monotonic.
13854 * config/mn10300/mn10300-protos.h: Update.
13855
13856 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13857
13858 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13859 in terms of the value on the stack, not the MDR register.
13860
13861 2011-01-11 Jan Hubicka <jh@suse.cz>
13862
13863 PR lto/45721
13864 PR lto/45375
13865 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13866 (symbol_alias_set_destroy, symbol_alias_set_contains,
13867 propagate_aliases_backward): Declare.
13868 * lto-streamer-out.c (struct sets): New sturcture.
13869 (trivally_defined_alias): New function.
13870 (output_alias_pair_p): Rewrite.
13871 (output_unreferenced_globals): Fix output of alias pairs.
13872 (produce_symtab): Likewise.
13873 * ipa.c (function_and_variable_visibility): Set weak alias destination
13874 as needed in lto.
13875 * varasm.c (symbol_alias_set_t): Remove.
13876 (symbol_alias_set_destroy): Export.
13877 (propagate_aliases_forward, propagate_aliases_backward): New functions
13878 based on ...
13879 (compute_visible_aliases): ... this one; remove.
13880 (trivially_visible_alias): New
13881 (trivially_defined_alias): New.
13882 (remove_unreachable_alias_pairs): Rewrite.
13883 (finish_aliases_1): Reorganize code checking if alias is defined.
13884 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13885 in LTO mode.
13886
13887 2011-01-11 Richard Guenther <rguenther@suse.de>
13888
13889 PR tree-optimization/46076
13890 * tree-ssa.c (useless_type_conversion_p): Conversions from
13891 unprototyped to empty argument list function types are useless.
13892
13893 2011-01-11 Richard Guenther <rguenther@suse.de>
13894
13895 PR middle-end/45235
13896 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13897 volatile MEMs as MEM_READONLY_P.
13898
13899 2011-01-11 Richard Guenther <rguenther@suse.de>
13900
13901 PR tree-optimization/47239
13902 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13903
13904 2011-01-11 Jeff Law <law@redhat.com>
13905
13906 PR tree-optimization/47086
13907 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13908 IVs from statements that might throw.
13909
13910 2011-01-10 Jan Hubicka <jh@suse.cz>
13911
13912 PR lto/45375
13913 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13914
13915 2011-01-10 Jan Hubicka <jh@suse.cz>
13916
13917 PR lto/45375
13918 * profile.c (read_profile_edge_counts): Ignore profile inconistency
13919 when correcting profile.
13920
13921 2011-01-10 Jan Hubicka <jh@suse.cz>
13922
13923 PR lto/46083
13924 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13925 DECL_FINI_PRIORITY.
13926 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13927 Restore DECL_FINI_PRIORITY.
13928
13929 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13930
13931 * doc/gimple.texi: Fix quoting of multi-word return values in
13932 @deftypefn statements. Ensure presence of return value. Wrap
13933 overlong @deftypefn lines.
13934 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13935 descriptions of removed functions.
13936 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13937 of multi-word return value in @deftypefn statement.
13938
13939 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13940
13941 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13942 (Conditional Expressions, Logical Operators)
13943 (Statement and operand traversals): Do not indent smallexample
13944 code. Fix duplicate function argument in example.
13945
13946 2011-01-10 Jeff Law <law@redhat.com>
13947
13948 PR tree-optimization/47141
13949 * ipa-split.c (split_function): Handle case where we are
13950 returning a value and the return block has a virtual operand phi.
13951
13952 2011-01-10 Jan Hubicka <jh@suse.cz>
13953
13954 PR tree-optimization/47234
13955 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13956 (pass_feedback_split_functions): Declare.
13957 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13958 tree-profile.
13959 * ipa-split.c (gate_split_functions): Update comments; disable
13960 split-functions for profile_arc_flag and branch_probabilities.
13961 (gate_feedback_split_functions): New function.
13962 (execute_feedback_split_functions): New function.
13963 (pass_feedback_split_functions): New global var.
13964
13965 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13966
13967 PR lto/46760
13968 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13969 calling gimple_call_set_cannot_inline.
13970
13971 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13972
13973 * config/darwin-sections.def: Remove unused section.
13974
13975 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13976
13977 PR c++/47218
13978 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13979
13980 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13981
13982 PR objc/47232
13983 * c-parser.c (c_parser_declaration_or_fndef): Improved
13984 error message.
13985
13986 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
13987
13988 * config/i386/winnt.c (i386_pe_start_function): Make sure
13989 to switch back to function's section.
13990
13991 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13992
13993 PR gcc/46902
13994 PR testsuite/46912
13995 * plugin.c: Move include of dlfcn.h from here...
13996 * system.h: ... to here.
13997
13998 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13999
14000 * doc/cpp.texi (C++ Named Operators): Fix markup for header
14001 file name.
14002 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14003 two extra empty pages in PDF output.
14004
14005 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
14006
14007 PR objc/47078
14008 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14009 for error recovery purposes behave as if it was not specified so
14010 that the default type is usd.
14011
14012 2011-01-07 Jan Hubicka <jh@suse.cz>
14013
14014 PR tree-optmization/46469
14015 * ipa.c (function_and_variable_visibility): Clear needed flags on
14016 nodes with external decls; handle weakrefs merging correctly.
14017
14018 2011-01-07 Joseph Myers <joseph@codesourcery.com>
14019
14020 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14021 not false.
14022
14023 2011-01-07 Jan Hubicka <jh@suse.cz>
14024
14025 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14026 and no longer claim that gold is required for linker plugin.
14027 * configure: Regenerate.
14028 * gcc.c (PLUGIN_COND): New macro.
14029 (LINK_COMMAND_SPEC): Use it.
14030 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14031 * config.in (HAVE_LTO_PLUGIN): New.
14032 * configure.ac (--with-lto-plugin): New parameter; autodetect
14033 HAVE_LTO_PLUGIN.
14034
14035 2011-01-07 Jan Hubicka <jh@suse.cz>
14036
14037 PR tree-optimization/46367
14038 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14039 when we can update original.
14040 (cgraph_mark_inline_edge): Sanity check.
14041 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14042
14043 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14044
14045 * config/spu/spu.h (ASM_COMMENT_START): Define.
14046
14047 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
14048
14049 PR driver/42445
14050 * gcc.c (%>S): New.
14051 (SWITCH_KEEP_FOR_GCC): Likewise.
14052 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14053 (do_spec_1): Handle "%>".
14054
14055 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14056
14057 2011-01-07 Jakub Jelinek <jakub@redhat.com>
14058
14059 PR target/47201
14060 * config/i386/i386.c (ix86_delegitimize_address): If
14061 simplify_gen_subreg fails, return orig_x.
14062
14063 PR bootstrap/47187
14064 * value-prof.c (gimple_stringop_fixed_value): Handle
14065 lhs of the call properly.
14066
14067 2011-01-07 Jan Hubicka <jh@suse.cz>
14068
14069 PR lto/45375
14070 * lto-opt.c (lto_reissue_options): Set flag_shlib.
14071
14072 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14073
14074 * target.def (function_switched_text_sections): New hook.
14075 * doc/tm.texi: Regenerated.
14076 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14077 * final.c (default_function_switched_text_sections): New.
14078 (final_scan_insn): Call function_switched_text_sections when a
14079 mid-function section change occurs.
14080 * output.h (default_function_switched_text_sections): Declare.
14081 * config/darwin-protos.h (darwin_function_switched_text_sections):
14082 Likewise.
14083 * config/darwin.c (darwin_function_switched_text_sections): New.
14084 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14085
14086 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14087
14088 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
14089 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
14090 the secondary code fragment when outputting for DWARF == 2.
14091
14092 2011-01-07 Anatoly Sokolov <aesok@post.ru>
14093
14094 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14095 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14096 Remove.
14097 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14098 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14099
14100 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
14101
14102 PR debug/46704
14103 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14104 when it is not empty.
14105
14106 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14107
14108 Bobcat Enablement
14109 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14110 (case ${target}): Add btver1.
14111 * config/i386/driver-i386.c (host_detect_local_cpu): Let
14112 -march=native recognize btver1 processors.
14113 * config/i386/i386-c.c (ix86_target_macros_internal): Add
14114 btver1 def_and_undef
14115 * config/i386/i386.c (struct processor_costs btver1_cost): New
14116 btver1 cost table.
14117 (m_BTVER1): New definition.
14118 (m_AMD_MULTIPLE): Includes m_BTVER1.
14119 (initial_ix86_tune_features): Add btver1 tune.
14120 (processor_target_table): Add btver1 entry.
14121 (static const char *const cpu_names): Add btver1 entry.
14122 (software_prefetching_beneficial_p): Add btver1.
14123 (ix86_option_override_internal): Add btver1 instruction sets.
14124 (ix86_issue_rate): Add btver1.
14125 (ix86_adjust_cost): Add btver1.
14126 * config/i386/i386.h (TARGET_BTVER1): New definition.
14127 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14128 (enum processor_type): Add PROCESSOR_BTVER1.
14129 * config/i386/i386.md (define_attr "cpu"): Add btver1.
14130
14131 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14132
14133 PR target/43309
14134 * config/i386/i386.c (legitimize_tls_address)
14135 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14136 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14137 (tls_initial_exec_64_sun): New pattern.
14138
14139 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14140
14141 * doc/invoke.texi (Overall Options): Improve wording and markup
14142 of the description of -wrapper.
14143
14144 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14145
14146 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14147 rdynamic, threads): New Driver options.
14148
14149 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14150
14151 PR target/38118
14152 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14153 if coming from .tdata.
14154 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14155
14156 2011-01-06 Jan Hubicka <jh@suse.cz>
14157
14158 PR lto/47188
14159 * collect2.c (main): Do not enable LTOmode when plugin is active.
14160
14161 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14162
14163 PR other/45915
14164 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14165 --version output if supported.
14166 * configure: Regenerate.
14167
14168 2011-01-06 Joseph Myers <joseph@codesourcery.com>
14169
14170 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14171 Driver options.
14172
14173 2011-01-06 Jakub Jelinek <jakub@redhat.com>
14174
14175 PR c/47150
14176 * c-convert.c (convert): When converting a complex expression
14177 other than COMPLEX_EXPR to a different complex type, ensure
14178 c_save_expr is called instead of save_expr, unless in_late_binary_op.
14179 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14180 when converting COMPLEX_TYPE.
14181
14182 2011-01-06 Ira Rosen <irar@il.ibm.com>
14183
14184 PR tree-optimization/47139
14185 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14186 only the last reduction value is used outside the loop. Update
14187 documentation.
14188
14189 2011-01-05 Joseph Myers <joseph@codesourcery.com>
14190
14191 * config/rtems.opt: New.
14192 * config.gcc (*-*-rtems*): Use rtems.opt.
14193
14194 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
14195
14196 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14197 processors do not support 3DNow instructions.
14198
14199 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14200
14201 * config/spu/spu.c (spu_option_override): Set parameter
14202 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14203
14204 2011-01-05 Jan Hubicka <jh@suse.cz>
14205
14206 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14207 at the command line.
14208
14209 2011-01-05 Martin Jambor <mjambor@suse.cz>
14210
14211 PR lto/47162
14212 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14213 deltas on streamed outgoing edges.
14214 (output_node_opt_summary): Output info for outgoing edges only when
14215 the node is in new parameter set.
14216 (output_cgraph_opt_summary): New parameter set, passed to the two
14217 aforementioned functions. Update its forward declaration and its
14218 callee too.
14219
14220 2011-01-05 Tom Tromey <tromey@redhat.com>
14221
14222 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14223 operator to c_finish_omp_atomic.
14224 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14225 (build_unary_op): Update.
14226 (build_modify_expr): Update.
14227 (build_asm_expr): Update.
14228
14229 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14230
14231 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14232 newly inserted insns.
14233 (pad_bb): Likewise.
14234 (spu_emit_branch_hint): Likewise.
14235 (insert_hbrp_for_ilb_runout): Likewise.
14236 (spu_machine_dependent_reorg): Call df_finish_pass after
14237 schedule_insns returns.
14238
14239 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14240
14241 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14242
14243 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
14244
14245 PR tree-optimization/47005
14246 * tree-sra.c (struct access): Add 'non_addressable' bit.
14247 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14248 (decide_one_param_reduction): Return 0 if the parameter is passed by
14249 reference and one of the accesses in the group is non_addressable.
14250
14251 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14252
14253 PR tree-optimization/47056
14254 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14255 (mark_load): Likewise. Handle FUNCTION_DECL specially.
14256 (mark_store): Likewise. Pass STMT to ipa_record_reference.
14257
14258 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14259
14260 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14261 initializer. Skip view conversions from aggregate types.
14262
14263 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
14264
14265 PR bootstrap/47055
14266 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14267
14268 2011-01-04 Philipp Thomas <pth@suse.de>
14269
14270 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14271 obvious typo.
14272
14273 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14274
14275 * function.c (thread_prologue_and_epilogue_insns): Do not crash
14276 on empty epilogue sequences.
14277
14278 2011-01-04 Joseph Myers <joseph@codesourcery.com>
14279
14280 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14281 non-static): New Driver options.
14282
14283 2011-01-04 Jie Zhang <jie@codesourcery.com>
14284
14285 PR driver/47137
14286 * gcc.c (default_compilers[]): Set combinable field to 0
14287 for all assembly languages.
14288
14289 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
14290
14291 * config/mips/loongson3a.md: New file.
14292 * config/mips/mips.md: Include loongson3a.md.
14293 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14294 TUNE_LOONGSON_3A.
14295
14296 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
14297
14298 PR middle-end/47017
14299 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14300 instead of convert_memory_address_addr_space on the base expression.
14301
14302 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14303
14304 * config/spu/spu.c (spu_option_override): Update error text
14305 for bad -march= / -mtune= values.
14306
14307 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14308
14309 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14310 if branch-hint optimization will be performed.
14311
14312 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14313
14314 PR tree-optimization/47148
14315 * ipa-split.c (split_function): Convert arguments to
14316 DECL_ARG_TYPE if possible.
14317
14318 PR tree-optimization/47155
14319 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14320 when computing uns.
14321
14322 PR rtl-optimization/47157
14323 * combine.c (try_combine): If undobuf.other_insn becomes
14324 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14325 and set *new_direct_jump_p too.
14326
14327 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
14328
14329 PR tree-optimization/47021
14330 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14331
14332 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14333
14334 * gcc.c (process_command): Update copyright notice dates.
14335 * gcov.c (print_version): Likewise.
14336 * gcov-dump.c (print_version): Likewise.
14337 * mips-tfile.c (main): Likewise.
14338 * mips-tdump.c (main): Likewise.
14339
14340 2011-01-03 Martin Jambor <mjambor@suse.cz>
14341
14342 PR tree-optimization/46801
14343 * tree-sra.c (type_internals_preclude_sra_p): Check whether
14344 aggregate fields start at byte boundary instead of the bit-field flag.
14345
14346 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
14347
14348 PR driver/47137
14349 * gcc.c (main): Revert revision 168407.
14350
14351 2011-01-03 Martin Jambor <mjambor@suse.cz>
14352
14353 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14354
14355 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14356
14357 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14358 vector optab to expand vector/scalar shift, update gimple to vector.
14359
14360 2011-01-03 Martin Jambor <mjambor@suse.cz>
14361
14362 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14363 a thunk.
14364
14365 2011-01-03 Martin Jambor <mjambor@suse.cz>
14366
14367 PR tree-optimization/46984
14368 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14369 HOST_WIDE_INT.
14370 (cgraph_create_indirect_edge): Fixed line length.
14371 (cgraph_indirect_call_info): Declare.
14372 (cgraph_make_edge_direct) Update declaration.
14373 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14374 (cgraph_create_indirect_edge): Use it.
14375 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
14376 callees.
14377 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14378 the new thunk_delta representation.
14379 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14380 HOST_WIDE_INT.
14381 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14382 (ipa_read_indirect_edge_info): Likewise.
14383 * lto-cgraph.c (output_edge_opt_summary): New function.
14384 (output_node_opt_summary): Call it on all outgoing edges.
14385 (input_edge_opt_summary): New function.
14386 (input_node_opt_summary): Call it on all outgoing edges.
14387
14388 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
14389
14390 PR driver/47137
14391 * gcc.c (main): Don't check have_o when settting combine_inputs.
14392
14393 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
14394
14395 * regrename.c: Add general comment describing the pass.
14396 (struct du_head): Remove 'length' field.
14397 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14398 (regrename_optimize): Do not sort chains. Rework comments, add others.
14399 Force renaming to the preferred class (if any) in the first pass and do
14400 not consider registers that belong to it in the second pass.
14401 (create_new_chain): Do not set 'length' field.
14402 (scan_rtx_reg): Likewise.
14403
14404 2011-01-02 Jakub Jelinek <jakub@redhat.com>
14405
14406 PR tree-optimization/47140
14407 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14408 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14409 to bit_value_binop.
14410
14411 PR rtl-optimization/47028
14412 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14413 parm_birth_insn instead of at the beginning of first bb.
14414
14415 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
14416
14417 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14418 Remove the word "see" before "@pxref".
14419 * doc/rtl.texi: Remove the word "see" before "@pxref".
14420
14421 2011-01-01 Jan Hubicka <jh@suse.cz>
14422
14423 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14424 memory.
14425
14426 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
14427
14428 PR target/38662
14429 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14430
14431 \f
14432 Copyright (C) 2011 Free Software Foundation, Inc.
14433
14434 Copying and distribution of this file, with or without modification,
14435 are permitted in any medium without royalty provided the copyright
14436 notice and this notice are preserved.